From 11ca9fc683672878f22dedc820d63953398b9dc7 Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Mon, 12 Jan 2026 19:41:09 -0500 Subject: [PATCH] Compile protos with v33.3 --- .../proto/offline_wire_formats.pb.cc | 25737 +++---- .../proto/offline_wire_formats.pb.h | 30122 ++++---- .../proto/analytics/connections_log.pb.cc | 16839 ++--- .../proto/analytics/connections_log.pb.h | 18822 ++--- .../internal/proto/credential.pb.cc | 1632 +- compiled_proto/internal/proto/credential.pb.h | 1947 +- .../internal/proto/local_credential.pb.cc | 1788 +- .../internal/proto/local_credential.pb.h | 1852 +- compiled_proto/internal/proto/metadata.pb.cc | 2004 +- compiled_proto/internal/proto/metadata.pb.h | 2022 +- compiled_proto/proto/connections_enums.pb.cc | 5593 +- compiled_proto/proto/connections_enums.pb.h | 1170 +- .../proto/errorcode/error_code_enums.pb.cc | 2867 +- .../proto/errorcode/error_code_enums.pb.h | 735 +- compiled_proto/proto/mediums/ble_frames.pb.cc | 2136 +- compiled_proto/proto/mediums/ble_frames.pb.h | 2369 +- .../proto/mediums/multiplex_frames.pb.cc | 3296 +- .../proto/mediums/multiplex_frames.pb.h | 3344 +- compiled_proto/proto/mediums/nfc_frames.pb.cc | 1076 +- compiled_proto/proto/mediums/nfc_frames.pb.h | 1281 +- .../mediums/web_rtc_signaling_frames.pb.cc | 3650 +- .../mediums/web_rtc_signaling_frames.pb.h | 3949 +- compiled_proto/proto/sharing_enums.pb.cc | 5240 +- compiled_proto/proto/sharing_enums.pb.h | 1926 +- .../proto/analytics/nearby_sharing_log.pb.cc | 49095 +++++++------- .../proto/analytics/nearby_sharing_log.pb.h | 56619 +++++++++------- .../proto/device_to_device_messages.pb.cc | 1834 + .../proto/device_to_device_messages.pb.h | 1999 + .../compiled_proto/proto/securegcm.pb.cc | 2620 + .../ukey2/compiled_proto/proto/securegcm.pb.h | 3947 ++ .../compiled_proto/proto/securemessage.pb.cc | 3031 + .../compiled_proto/proto/securemessage.pb.h | 3435 + .../ukey2/compiled_proto/proto/ukey.pb.cc | 2211 + .../ukey2/compiled_proto/proto/ukey.pb.h | 2324 + .../proto/device_to_device_messages.pb.cc | 2630 +- .../main/proto/device_to_device_messages.pb.h | 2739 +- .../src/main/proto/securegcm.pb.cc | 4433 +- .../src/main/proto/securegcm.pb.h | 5225 +- .../src/main/proto/securemessage.pb.cc | 4472 +- .../src/main/proto/securemessage.pb.h | 4454 +- .../compiled_proto/src/main/proto/ukey.pb.cc | 3243 +- .../compiled_proto/src/main/proto/ukey.pb.h | 3135 +- 42 files changed, 169733 insertions(+), 129110 deletions(-) create mode 100644 third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc create mode 100644 third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h create mode 100644 third_party/ukey2/compiled_proto/proto/securegcm.pb.cc create mode 100644 third_party/ukey2/compiled_proto/proto/securegcm.pb.h create mode 100644 third_party/ukey2/compiled_proto/proto/securemessage.pb.cc create mode 100644 third_party/ukey2/compiled_proto/proto/securemessage.pb.h create mode 100644 third_party/ukey2/compiled_proto/proto/ukey.pb.cc create mode 100644 third_party/ukey2/compiled_proto/proto/ukey.pb.h diff --git a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc index 23d5cf27..5c907238 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -1,3375 +1,3476 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: connections/implementation/proto/offline_wire_formats.proto +// Protobuf C++ Version: 6.33.3 #include "connections/implementation/proto/offline_wire_formats.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// 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 connections { -constexpr OfflineFrame::OfflineFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : v1_(nullptr) - , version_(0) -{} -struct OfflineFrameDefaultTypeInternal { - constexpr OfflineFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~OfflineFrameDefaultTypeInternal() {} - union { - OfflineFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_; -constexpr V1Frame::V1Frame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connection_request_(nullptr) - , connection_response_(nullptr) - , payload_transfer_(nullptr) - , bandwidth_upgrade_negotiation_(nullptr) - , keep_alive_(nullptr) - , disconnection_(nullptr) - , paired_key_encryption_(nullptr) - , authentication_message_(nullptr) - , authentication_result_(nullptr) - , auto_resume_(nullptr) - , auto_reconnect_(nullptr) - , bandwidth_upgrade_retry_(nullptr) - , type_(0) -{} -struct V1FrameDefaultTypeInternal { - constexpr V1FrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~V1FrameDefaultTypeInternal() {} - union { - V1Frame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT V1FrameDefaultTypeInternal _V1Frame_default_instance_; -constexpr ConnectionRequestFrame::ConnectionRequestFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : mediums_() - , endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , medium_metadata_(nullptr) - , location_hint_(nullptr) - , nonce_(0) - , keep_alive_interval_millis_(0) - , keep_alive_timeout_millis_(0) - , device_type_(0) - , connection_mode_(0) - , _oneof_case_{}{} -struct ConnectionRequestFrameDefaultTypeInternal { - constexpr ConnectionRequestFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionRequestFrameDefaultTypeInternal() {} - union { - ConnectionRequestFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; -constexpr ConnectionResponseFrame::ConnectionResponseFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , os_info_(nullptr) - , location_hint_(nullptr) - , status_(0) - , response_(0) +inline constexpr WifiLanUsableChannels::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channels_{}, + _channels_cached_byte_size_{0} {} - , multiplex_socket_bitmask_(0) - , nearby_connections_version_(0) - , safe_to_disconnect_version_(0) - , keep_alive_timeout_millis_(0){} -struct ConnectionResponseFrameDefaultTypeInternal { - constexpr ConnectionResponseFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionResponseFrameDefaultTypeInternal() {} - union { - ConnectionResponseFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; -constexpr PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : file_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , parent_folder_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , id_(int64_t{0}) - , total_size_(int64_t{0}) - , type_(0) - - , is_sensitive_(false) - , last_modified_timestamp_millis_(int64_t{0}){} -struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal { - constexpr PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() {} - union { - PayloadTransferFrame_PayloadHeader _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; -constexpr PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , offset_(int64_t{0}) - , flags_(0) - , index_(0){} -struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal { - constexpr PayloadTransferFrame_PayloadChunkDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_PayloadChunkDefaultTypeInternal() {} - union { - PayloadTransferFrame_PayloadChunk _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_; -constexpr PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : offset_(int64_t{0}) - , event_(0) -{} -struct PayloadTransferFrame_ControlMessageDefaultTypeInternal { - constexpr PayloadTransferFrame_ControlMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_ControlMessageDefaultTypeInternal() {} - union { - PayloadTransferFrame_ControlMessage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_; -constexpr PayloadTransferFrame::PayloadTransferFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : payload_header_(nullptr) - , payload_chunk_(nullptr) - , control_message_(nullptr) - , packet_type_(0) -{} -struct PayloadTransferFrameDefaultTypeInternal { - constexpr PayloadTransferFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrameDefaultTypeInternal() {} - union { - PayloadTransferFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; -constexpr ServiceAddress::ServiceAddress( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , port_(0){} -struct ServiceAddressDefaultTypeInternal { - constexpr ServiceAddressDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ServiceAddressDefaultTypeInternal() {} - union { - ServiceAddress _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServiceAddressDefaultTypeInternal _ServiceAddress_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : address_candidates_() - , ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , gateway_(nullptr) - , port_(0) - , frequency_(-1){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : address_candidates_() - , ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , wifi_port_(0){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , gateway_(nullptr) - , ip_v6_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , pin_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , port_(0) - , frequency_(0){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : peer_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , location_hint_(nullptr){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : mediums_() - , _mediums_cached_byte_size_(0) - , medium_meta_data_(nullptr){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : wifi_hotspot_credentials_(nullptr) - , wifi_lan_socket_(nullptr) - , bluetooth_credentials_(nullptr) - , wifi_aware_credentials_(nullptr) - , wifi_direct_credentials_(nullptr) - , web_rtc_credentials_(nullptr) - , upgrade_path_request_(nullptr) - , awdl_credentials_(nullptr) - , medium_(0) - - , supports_disabling_encryption_(false) - , supports_client_introduction_ack_(false){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sta_frequency_(0){} -struct BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , last_endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , supports_disabling_encryption_(false){} -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_ClientIntroduction _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : upgrade_path_info_(nullptr) - , client_introduction_(nullptr) - , client_introduction_ack_(nullptr) - , safe_to_close_prior_channel_(nullptr) - , event_type_(0) -{} -struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrameDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_; -constexpr BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : supported_medium_() - , is_request_(false){} -struct BandwidthUpgradeRetryFrameDefaultTypeInternal { - constexpr BandwidthUpgradeRetryFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeRetryFrameDefaultTypeInternal() {} - union { - BandwidthUpgradeRetryFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeRetryFrameDefaultTypeInternal _BandwidthUpgradeRetryFrame_default_instance_; -constexpr KeepAliveFrame::KeepAliveFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ack_(false) - , seq_num_(0u){} -struct KeepAliveFrameDefaultTypeInternal { - constexpr KeepAliveFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~KeepAliveFrameDefaultTypeInternal() {} - union { - KeepAliveFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; -constexpr DisconnectionFrame::DisconnectionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : request_safe_to_disconnect_(false) - , ack_safe_to_disconnect_(false){} -struct DisconnectionFrameDefaultTypeInternal { - constexpr DisconnectionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DisconnectionFrameDefaultTypeInternal() {} - union { - DisconnectionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; -constexpr PairedKeyEncryptionFrame::PairedKeyEncryptionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : signed_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct PairedKeyEncryptionFrameDefaultTypeInternal { - constexpr PairedKeyEncryptionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PairedKeyEncryptionFrameDefaultTypeInternal() {} - union { - PairedKeyEncryptionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; -constexpr AuthenticationMessageFrame::AuthenticationMessageFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : auth_message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct AuthenticationMessageFrameDefaultTypeInternal { - constexpr AuthenticationMessageFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AuthenticationMessageFrameDefaultTypeInternal() {} - union { - AuthenticationMessageFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AuthenticationMessageFrameDefaultTypeInternal _AuthenticationMessageFrame_default_instance_; -constexpr AuthenticationResultFrame::AuthenticationResultFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : result_(0){} -struct AuthenticationResultFrameDefaultTypeInternal { - constexpr AuthenticationResultFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AuthenticationResultFrameDefaultTypeInternal() {} - union { - AuthenticationResultFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AuthenticationResultFrameDefaultTypeInternal _AuthenticationResultFrame_default_instance_; -constexpr AutoResumeFrame::AutoResumeFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : pending_payload_id_(int64_t{0}) - , event_type_(0) - - , next_payload_chunk_index_(0) - , version_(0){} -struct AutoResumeFrameDefaultTypeInternal { - constexpr AutoResumeFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AutoResumeFrameDefaultTypeInternal() {} - union { - AutoResumeFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AutoResumeFrameDefaultTypeInternal _AutoResumeFrame_default_instance_; -constexpr AutoReconnectFrame::AutoReconnectFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , last_endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , event_type_(0) -{} -struct AutoReconnectFrameDefaultTypeInternal { - constexpr AutoReconnectFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AutoReconnectFrameDefaultTypeInternal() {} - union { - AutoReconnectFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AutoReconnectFrameDefaultTypeInternal _AutoReconnectFrame_default_instance_; -constexpr MediumMetadata::MediumMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : supported_wifi_direct_auth_types_() - , _supported_wifi_direct_auth_types_cached_byte_size_(0) - , bssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , available_channels_(nullptr) - , wifi_direct_cli_usable_channels_(nullptr) - , wifi_lan_usable_channels_(nullptr) - , wifi_aware_usable_channels_(nullptr) - , wifi_hotspot_sta_usable_channels_(nullptr) - , medium_role_(nullptr) - , supports_5_ghz_(false) - , supports_6_ghz_(false) - , mobile_radio_(false) - , ap_frequency_(-1){} -struct MediumMetadataDefaultTypeInternal { - constexpr MediumMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MediumMetadataDefaultTypeInternal() {} - union { - MediumMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_; -constexpr AvailableChannels::AvailableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct AvailableChannelsDefaultTypeInternal { - constexpr AvailableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AvailableChannelsDefaultTypeInternal() {} - union { - AvailableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; -constexpr WifiDirectCliUsableChannels::WifiDirectCliUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiDirectCliUsableChannelsDefaultTypeInternal { - constexpr WifiDirectCliUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiDirectCliUsableChannelsDefaultTypeInternal() {} - union { - WifiDirectCliUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_; -constexpr WifiLanUsableChannels::WifiLanUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} +template +PROTOBUF_CONSTEXPR WifiLanUsableChannels::WifiLanUsableChannels(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(WifiLanUsableChannels_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct WifiLanUsableChannelsDefaultTypeInternal { - constexpr WifiLanUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WifiLanUsableChannelsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~WifiLanUsableChannelsDefaultTypeInternal() {} union { WifiLanUsableChannels _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_; -constexpr WifiAwareUsableChannels::WifiAwareUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiAwareUsableChannelsDefaultTypeInternal { - constexpr WifiAwareUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiAwareUsableChannelsDefaultTypeInternal() {} - union { - WifiAwareUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_; -constexpr WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_; + +inline constexpr WifiHotspotStaUsableChannels::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channels_{}, + _channels_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(WifiHotspotStaUsableChannels_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct WifiHotspotStaUsableChannelsDefaultTypeInternal { - constexpr WifiHotspotStaUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WifiHotspotStaUsableChannelsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~WifiHotspotStaUsableChannelsDefaultTypeInternal() {} union { WifiHotspotStaUsableChannels _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_; -constexpr MediumRole::MediumRole( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : support_wifi_direct_group_owner_(false) - , support_wifi_direct_group_client_(false) - , support_wifi_hotspot_host_(false) - , support_wifi_hotspot_client_(false) - , support_wifi_aware_publisher_(false) - , support_wifi_aware_subscriber_(false) - , support_awdl_publisher_(false) - , support_awdl_subscriber_(false){} -struct MediumRoleDefaultTypeInternal { - constexpr MediumRoleDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MediumRoleDefaultTypeInternal() {} - union { - MediumRole _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MediumRoleDefaultTypeInternal _MediumRole_default_instance_; -constexpr LocationHint::LocationHint( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : location_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , format_(0) -{} -struct LocationHintDefaultTypeInternal { - constexpr LocationHintDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LocationHintDefaultTypeInternal() {} - union { - LocationHint _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationHintDefaultTypeInternal _LocationHint_default_instance_; -constexpr LocationStandard::LocationStandard( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct LocationStandardDefaultTypeInternal { - constexpr LocationStandardDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LocationStandardDefaultTypeInternal() {} - union { - LocationStandard _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationStandardDefaultTypeInternal _LocationStandard_default_instance_; -constexpr OsInfo::OsInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : type_(0) -{} -struct OsInfoDefaultTypeInternal { - constexpr OsInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~OsInfoDefaultTypeInternal() {} - union { - OsInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OsInfoDefaultTypeInternal _OsInfo_default_instance_; -constexpr ConnectionsDevice::ConnectionsDevice( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , connectivity_info_list_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_type_(0) -{} -struct ConnectionsDeviceDefaultTypeInternal { - constexpr ConnectionsDeviceDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsDeviceDefaultTypeInternal() {} - union { - ConnectionsDevice _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsDeviceDefaultTypeInternal _ConnectionsDevice_default_instance_; -constexpr PresenceDevice::PresenceDevice( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : discovery_medium_() - , _discovery_medium_cached_byte_size_(0) - , actions_() - , _actions_cached_byte_size_(0) - , identity_type_() - , _identity_type_cached_byte_size_(0) - , endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , connectivity_info_list_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_image_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_id_(int64_t{0}) - , endpoint_type_(0) - , device_type_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_; + +inline constexpr WifiDirectCliUsableChannels::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channels_{}, + _channels_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(WifiDirectCliUsableChannels_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct WifiDirectCliUsableChannelsDefaultTypeInternal { + PROTOBUF_CONSTEXPR WifiDirectCliUsableChannelsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~WifiDirectCliUsableChannelsDefaultTypeInternal() {} + union { + WifiDirectCliUsableChannels _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_; + +inline constexpr WifiAwareUsableChannels::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channels_{}, + _channels_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR WifiAwareUsableChannels::WifiAwareUsableChannels(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(WifiAwareUsableChannels_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct WifiAwareUsableChannelsDefaultTypeInternal { + PROTOBUF_CONSTEXPR WifiAwareUsableChannelsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~WifiAwareUsableChannelsDefaultTypeInternal() {} + union { + WifiAwareUsableChannels _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_; + +inline constexpr ServiceAddress::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ip_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + port_{0} {} + +template +PROTOBUF_CONSTEXPR ServiceAddress::ServiceAddress(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ServiceAddress_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ServiceAddressDefaultTypeInternal { + PROTOBUF_CONSTEXPR ServiceAddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ServiceAddressDefaultTypeInternal() {} + union { + ServiceAddress _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceAddressDefaultTypeInternal _ServiceAddress_default_instance_; + +inline constexpr PresenceDevice::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + discovery_medium_{}, + _discovery_medium_cached_byte_size_{0}, + actions_{}, + _actions_cached_byte_size_{0}, + identity_type_{}, + _identity_type_cached_byte_size_{0}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + connectivity_info_list_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_image_url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_id_{::int64_t{0}}, + endpoint_type_{static_cast< ::location::nearby::connections::EndpointType >(0)}, + device_type_{static_cast< ::location::nearby::connections::PresenceDevice_DeviceType >(0)} {} + +template +PROTOBUF_CONSTEXPR PresenceDevice::PresenceDevice(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PresenceDevice_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PresenceDeviceDefaultTypeInternal { - constexpr PresenceDeviceDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PresenceDeviceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PresenceDeviceDefaultTypeInternal() {} union { PresenceDevice _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; + +inline constexpr PayloadTransferFrame_PayloadHeader::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + file_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + parent_folder_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + id_{::int64_t{0}}, + total_size_{::int64_t{0}}, + type_{static_cast< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType >(0)}, + is_sensitive_{false}, + last_modified_timestamp_millis_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PayloadTransferFrame_PayloadHeader_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal { + PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() {} + union { + PayloadTransferFrame_PayloadHeader _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; + +inline constexpr PayloadTransferFrame_PayloadChunk::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + offset_{::int64_t{0}}, + flags_{0}, + index_{0} {} + +template +PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PayloadTransferFrame_PayloadChunk_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal { + PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PayloadTransferFrame_PayloadChunkDefaultTypeInternal() {} + union { + PayloadTransferFrame_PayloadChunk _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_; + +inline constexpr PayloadTransferFrame_ControlMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + offset_{::int64_t{0}}, + event_{static_cast< ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType >(0)} {} + +template +PROTOBUF_CONSTEXPR PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PayloadTransferFrame_ControlMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PayloadTransferFrame_ControlMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR PayloadTransferFrame_ControlMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PayloadTransferFrame_ControlMessageDefaultTypeInternal() {} + union { + PayloadTransferFrame_ControlMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_; + +inline constexpr PairedKeyEncryptionFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + signed_data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PairedKeyEncryptionFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PairedKeyEncryptionFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR PairedKeyEncryptionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PairedKeyEncryptionFrameDefaultTypeInternal() {} + union { + PairedKeyEncryptionFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; + +inline constexpr OsInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_{static_cast< ::location::nearby::connections::OsInfo_OsType >(0)} {} + +template +PROTOBUF_CONSTEXPR OsInfo::OsInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(OsInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct OsInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR OsInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OsInfoDefaultTypeInternal() {} + union { + OsInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OsInfoDefaultTypeInternal _OsInfo_default_instance_; + +inline constexpr MediumRole::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + support_wifi_direct_group_owner_{false}, + support_wifi_direct_group_client_{false}, + support_wifi_hotspot_host_{false}, + support_wifi_hotspot_client_{false}, + support_wifi_aware_publisher_{false}, + support_wifi_aware_subscriber_{false}, + support_awdl_publisher_{false}, + support_awdl_subscriber_{false} {} + +template +PROTOBUF_CONSTEXPR MediumRole::MediumRole(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MediumRole_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MediumRoleDefaultTypeInternal { + PROTOBUF_CONSTEXPR MediumRoleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MediumRoleDefaultTypeInternal() {} + union { + MediumRole _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MediumRoleDefaultTypeInternal _MediumRole_default_instance_; + +inline constexpr LocationStandard::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR LocationStandard::LocationStandard(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LocationStandard_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct LocationStandardDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationStandardDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationStandardDefaultTypeInternal() {} + union { + LocationStandard _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationStandardDefaultTypeInternal _LocationStandard_default_instance_; + +inline constexpr LocationHint::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + location_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + format_{static_cast< ::location::nearby::connections::LocationStandard_Format >(0)} {} + +template +PROTOBUF_CONSTEXPR LocationHint::LocationHint(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LocationHint_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct LocationHintDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationHintDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationHintDefaultTypeInternal() {} + union { + LocationHint _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationHintDefaultTypeInternal _LocationHint_default_instance_; + +inline constexpr KeepAliveFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ack_{false}, + seq_num_{0u} {} + +template +PROTOBUF_CONSTEXPR KeepAliveFrame::KeepAliveFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(KeepAliveFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct KeepAliveFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR KeepAliveFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~KeepAliveFrameDefaultTypeInternal() {} + union { + KeepAliveFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; + +inline constexpr DisconnectionFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + request_safe_to_disconnect_{false}, + ack_safe_to_disconnect_{false} {} + +template +PROTOBUF_CONSTEXPR DisconnectionFrame::DisconnectionFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DisconnectionFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DisconnectionFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisconnectionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DisconnectionFrameDefaultTypeInternal() {} + union { + DisconnectionFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; + +inline constexpr ConnectionsDevice::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + connectivity_info_list_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endpoint_info_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endpoint_type_{static_cast< ::location::nearby::connections::EndpointType >(0)} {} + +template +PROTOBUF_CONSTEXPR ConnectionsDevice::ConnectionsDevice(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ConnectionsDevice_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ConnectionsDeviceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConnectionsDeviceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConnectionsDeviceDefaultTypeInternal() {} + union { + ConnectionsDevice _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsDeviceDefaultTypeInternal _ConnectionsDevice_default_instance_; + +inline constexpr BandwidthUpgradeRetryFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + supported_medium_{}, + is_request_{false} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeRetryFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeRetryFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeRetryFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeRetryFrameDefaultTypeInternal() {} + union { + BandwidthUpgradeRetryFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeRetryFrameDefaultTypeInternal _BandwidthUpgradeRetryFrame_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ssid_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + password_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + gateway_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ip_v6_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + service_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pin_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + port_{0}, + frequency_{0} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + service_info_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + password_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + mac_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + service_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + password_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + sta_frequency_{0} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + last_endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + supports_disabling_encryption_{false} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_ClientIntroduction _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_; + +inline constexpr AvailableChannels::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channels_{}, + _channels_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR AvailableChannels::AvailableChannels(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AvailableChannels_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AvailableChannelsDefaultTypeInternal { + PROTOBUF_CONSTEXPR AvailableChannelsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AvailableChannelsDefaultTypeInternal() {} + union { + AvailableChannels _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; + +inline constexpr AutoResumeFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + pending_payload_id_{::int64_t{0}}, + event_type_{static_cast< ::location::nearby::connections::AutoResumeFrame_EventType >(0)}, + next_payload_chunk_index_{0}, + version_{0} {} + +template +PROTOBUF_CONSTEXPR AutoResumeFrame::AutoResumeFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AutoResumeFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AutoResumeFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR AutoResumeFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AutoResumeFrameDefaultTypeInternal() {} + union { + AutoResumeFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutoResumeFrameDefaultTypeInternal _AutoResumeFrame_default_instance_; + +inline constexpr AutoReconnectFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + last_endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + event_type_{static_cast< ::location::nearby::connections::AutoReconnectFrame_EventType >(0)} {} + +template +PROTOBUF_CONSTEXPR AutoReconnectFrame::AutoReconnectFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AutoReconnectFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AutoReconnectFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR AutoReconnectFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AutoReconnectFrameDefaultTypeInternal() {} + union { + AutoReconnectFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AutoReconnectFrameDefaultTypeInternal _AutoReconnectFrame_default_instance_; + +inline constexpr AuthenticationResultFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + result_{0} {} + +template +PROTOBUF_CONSTEXPR AuthenticationResultFrame::AuthenticationResultFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AuthenticationResultFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AuthenticationResultFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticationResultFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticationResultFrameDefaultTypeInternal() {} + union { + AuthenticationResultFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticationResultFrameDefaultTypeInternal _AuthenticationResultFrame_default_instance_; + +inline constexpr AuthenticationMessageFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + auth_message_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR AuthenticationMessageFrame::AuthenticationMessageFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AuthenticationMessageFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AuthenticationMessageFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticationMessageFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticationMessageFrameDefaultTypeInternal() {} + union { + AuthenticationMessageFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticationMessageFrameDefaultTypeInternal _AuthenticationMessageFrame_default_instance_; + +inline constexpr PayloadTransferFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + payload_header_{nullptr}, + payload_chunk_{nullptr}, + control_message_{nullptr}, + packet_type_{static_cast< ::location::nearby::connections::PayloadTransferFrame_PacketType >(0)} {} + +template +PROTOBUF_CONSTEXPR PayloadTransferFrame::PayloadTransferFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PayloadTransferFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PayloadTransferFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR PayloadTransferFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PayloadTransferFrameDefaultTypeInternal() {} + union { + PayloadTransferFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; + +inline constexpr MediumMetadata::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + supported_wifi_direct_auth_types_{}, + _supported_wifi_direct_auth_types_cached_byte_size_{0}, + bssid_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ip_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + available_channels_{nullptr}, + wifi_direct_cli_usable_channels_{nullptr}, + wifi_lan_usable_channels_{nullptr}, + wifi_aware_usable_channels_{nullptr}, + wifi_hotspot_sta_usable_channels_{nullptr}, + medium_role_{nullptr}, + supports_5_ghz_{false}, + supports_6_ghz_{false}, + mobile_radio_{false}, + ap_frequency_{-1} {} + +template +PROTOBUF_CONSTEXPR MediumMetadata::MediumMetadata(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MediumMetadata_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MediumMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MediumMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MediumMetadataDefaultTypeInternal() {} + union { + MediumMetadata _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_; + +inline constexpr ConnectionResponseFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + handshake_data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + os_info_{nullptr}, + location_hint_{nullptr}, + status_{0}, + response_{static_cast< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus >(0)}, + multiplex_socket_bitmask_{0}, + nearby_connections_version_{0}, + safe_to_disconnect_version_{0}, + keep_alive_timeout_millis_{0} {} + +template +PROTOBUF_CONSTEXPR ConnectionResponseFrame::ConnectionResponseFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ConnectionResponseFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ConnectionResponseFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConnectionResponseFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConnectionResponseFrameDefaultTypeInternal() {} + union { + ConnectionResponseFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + address_candidates_{}, + ip_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + wifi_port_{0} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + address_candidates_{}, + ssid_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + password_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + gateway_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + port_{0}, + frequency_{-1} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + peer_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + location_hint_{nullptr} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_; + +inline constexpr ConnectionRequestFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + mediums_{}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endpoint_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + handshake_data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endpoint_info_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_info_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + medium_metadata_{nullptr}, + location_hint_{nullptr}, + nonce_{0}, + keep_alive_interval_millis_{0}, + keep_alive_timeout_millis_{0}, + device_type_{0}, + connection_mode_{static_cast< ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode >(0)}, + Device_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR ConnectionRequestFrame::ConnectionRequestFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ConnectionRequestFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ConnectionRequestFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConnectionRequestFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConnectionRequestFrameDefaultTypeInternal() {} + union { + ConnectionRequestFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + mediums_{}, + _mediums_cached_byte_size_{0}, + medium_meta_data_{nullptr} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + wifi_hotspot_credentials_{nullptr}, + wifi_lan_socket_{nullptr}, + bluetooth_credentials_{nullptr}, + wifi_aware_credentials_{nullptr}, + wifi_direct_credentials_{nullptr}, + web_rtc_credentials_{nullptr}, + upgrade_path_request_{nullptr}, + awdl_credentials_{nullptr}, + medium_{static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium >(0)}, + supports_disabling_encryption_{false}, + supports_client_introduction_ack_{false} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; + +inline constexpr BandwidthUpgradeNegotiationFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + upgrade_path_info_{nullptr}, + client_introduction_{nullptr}, + client_introduction_ack_{nullptr}, + safe_to_close_prior_channel_{nullptr}, + event_type_{static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType >(0)} {} + +template +PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(BandwidthUpgradeNegotiationFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BandwidthUpgradeNegotiationFrameDefaultTypeInternal() {} + union { + BandwidthUpgradeNegotiationFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_; + +inline constexpr V1Frame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + connection_request_{nullptr}, + connection_response_{nullptr}, + payload_transfer_{nullptr}, + bandwidth_upgrade_negotiation_{nullptr}, + keep_alive_{nullptr}, + disconnection_{nullptr}, + paired_key_encryption_{nullptr}, + authentication_message_{nullptr}, + authentication_result_{nullptr}, + auto_resume_{nullptr}, + auto_reconnect_{nullptr}, + bandwidth_upgrade_retry_{nullptr}, + type_{static_cast< ::location::nearby::connections::V1Frame_FrameType >(0)} {} + +template +PROTOBUF_CONSTEXPR V1Frame::V1Frame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(V1Frame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct V1FrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR V1FrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~V1FrameDefaultTypeInternal() {} + union { + V1Frame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 V1FrameDefaultTypeInternal _V1Frame_default_instance_; + +inline constexpr OfflineFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + v1_{nullptr}, + version_{static_cast< ::location::nearby::connections::OfflineFrame_Version >(0)} {} + +template +PROTOBUF_CONSTEXPR OfflineFrame::OfflineFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(OfflineFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct OfflineFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR OfflineFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OfflineFrameDefaultTypeInternal() {} + union { + OfflineFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_; } // namespace connections } // namespace nearby } // namespace location namespace location { namespace nearby { namespace connections { -bool OfflineFrame_Version_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t OfflineFrame_Version_internal_data_[] = { + 131072u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + OfflineFrame_Version_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OfflineFrame_Version_strings[2] = {}; +static const char OfflineFrame_Version_names[] = { + "UNKNOWN_VERSION" + "V1" +}; -static const char OfflineFrame_Version_names[] = - "UNKNOWN_VERSION" - "V1"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OfflineFrame_Version_entries[] = { - { {OfflineFrame_Version_names + 0, 15}, 0 }, - { {OfflineFrame_Version_names + 15, 2}, 1 }, +static const ::google::protobuf::internal::EnumEntry OfflineFrame_Version_entries[] = { + {{&OfflineFrame_Version_names[0], 15}, 0}, + {{&OfflineFrame_Version_names[15], 2}, 1}, }; static const int OfflineFrame_Version_entries_by_number[] = { - 0, // 0 -> UNKNOWN_VERSION - 1, // 1 -> V1 + 0, // 0 -> UNKNOWN_VERSION + 1, // 1 -> V1 }; -const std::string& OfflineFrame_Version_Name( - OfflineFrame_Version value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OfflineFrame_Version_entries, - OfflineFrame_Version_entries_by_number, - 2, OfflineFrame_Version_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OfflineFrame_Version_entries, - OfflineFrame_Version_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OfflineFrame_Version_strings[idx].get(); +const ::std::string& OfflineFrame_Version_Name(OfflineFrame_Version value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + OfflineFrame_Version_entries, OfflineFrame_Version_entries_by_number, 2, + OfflineFrame_Version_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(OfflineFrame_Version_entries, + OfflineFrame_Version_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OfflineFrame_Version_strings[idx].get(); } -bool OfflineFrame_Version_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value) { + +bool OfflineFrame_Version_Parse(::absl::string_view name, OfflineFrame_Version* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( OfflineFrame_Version_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr OfflineFrame_Version OfflineFrame::UNKNOWN_VERSION; -constexpr OfflineFrame_Version OfflineFrame::V1; -constexpr OfflineFrame_Version OfflineFrame::Version_MIN; -constexpr OfflineFrame_Version OfflineFrame::Version_MAX; -constexpr int OfflineFrame::Version_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool V1Frame_FrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t V1Frame_FrameType_internal_data_[] = { + 851968u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + V1Frame_FrameType_strings[13] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed V1Frame_FrameType_strings[13] = {}; +static const char V1Frame_FrameType_names[] = { + "AUTHENTICATION_MESSAGE" + "AUTHENTICATION_RESULT" + "AUTO_RECONNECT" + "AUTO_RESUME" + "BANDWIDTH_UPGRADE_NEGOTIATION" + "BANDWIDTH_UPGRADE_RETRY" + "CONNECTION_REQUEST" + "CONNECTION_RESPONSE" + "DISCONNECTION" + "KEEP_ALIVE" + "PAIRED_KEY_ENCRYPTION" + "PAYLOAD_TRANSFER" + "UNKNOWN_FRAME_TYPE" +}; -static const char V1Frame_FrameType_names[] = - "AUTHENTICATION_MESSAGE" - "AUTHENTICATION_RESULT" - "AUTO_RECONNECT" - "AUTO_RESUME" - "BANDWIDTH_UPGRADE_NEGOTIATION" - "BANDWIDTH_UPGRADE_RETRY" - "CONNECTION_REQUEST" - "CONNECTION_RESPONSE" - "DISCONNECTION" - "KEEP_ALIVE" - "PAIRED_KEY_ENCRYPTION" - "PAYLOAD_TRANSFER" - "UNKNOWN_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry V1Frame_FrameType_entries[] = { - { {V1Frame_FrameType_names + 0, 22}, 8 }, - { {V1Frame_FrameType_names + 22, 21}, 9 }, - { {V1Frame_FrameType_names + 43, 14}, 11 }, - { {V1Frame_FrameType_names + 57, 11}, 10 }, - { {V1Frame_FrameType_names + 68, 29}, 4 }, - { {V1Frame_FrameType_names + 97, 23}, 12 }, - { {V1Frame_FrameType_names + 120, 18}, 1 }, - { {V1Frame_FrameType_names + 138, 19}, 2 }, - { {V1Frame_FrameType_names + 157, 13}, 6 }, - { {V1Frame_FrameType_names + 170, 10}, 5 }, - { {V1Frame_FrameType_names + 180, 21}, 7 }, - { {V1Frame_FrameType_names + 201, 16}, 3 }, - { {V1Frame_FrameType_names + 217, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry V1Frame_FrameType_entries[] = { + {{&V1Frame_FrameType_names[0], 22}, 8}, + {{&V1Frame_FrameType_names[22], 21}, 9}, + {{&V1Frame_FrameType_names[43], 14}, 11}, + {{&V1Frame_FrameType_names[57], 11}, 10}, + {{&V1Frame_FrameType_names[68], 29}, 4}, + {{&V1Frame_FrameType_names[97], 23}, 12}, + {{&V1Frame_FrameType_names[120], 18}, 1}, + {{&V1Frame_FrameType_names[138], 19}, 2}, + {{&V1Frame_FrameType_names[157], 13}, 6}, + {{&V1Frame_FrameType_names[170], 10}, 5}, + {{&V1Frame_FrameType_names[180], 21}, 7}, + {{&V1Frame_FrameType_names[201], 16}, 3}, + {{&V1Frame_FrameType_names[217], 18}, 0}, }; static const int V1Frame_FrameType_entries_by_number[] = { - 12, // 0 -> UNKNOWN_FRAME_TYPE - 6, // 1 -> CONNECTION_REQUEST - 7, // 2 -> CONNECTION_RESPONSE - 11, // 3 -> PAYLOAD_TRANSFER - 4, // 4 -> BANDWIDTH_UPGRADE_NEGOTIATION - 9, // 5 -> KEEP_ALIVE - 8, // 6 -> DISCONNECTION - 10, // 7 -> PAIRED_KEY_ENCRYPTION - 0, // 8 -> AUTHENTICATION_MESSAGE - 1, // 9 -> AUTHENTICATION_RESULT - 3, // 10 -> AUTO_RESUME - 2, // 11 -> AUTO_RECONNECT - 5, // 12 -> BANDWIDTH_UPGRADE_RETRY + 12, // 0 -> UNKNOWN_FRAME_TYPE + 6, // 1 -> CONNECTION_REQUEST + 7, // 2 -> CONNECTION_RESPONSE + 11, // 3 -> PAYLOAD_TRANSFER + 4, // 4 -> BANDWIDTH_UPGRADE_NEGOTIATION + 9, // 5 -> KEEP_ALIVE + 8, // 6 -> DISCONNECTION + 10, // 7 -> PAIRED_KEY_ENCRYPTION + 0, // 8 -> AUTHENTICATION_MESSAGE + 1, // 9 -> AUTHENTICATION_RESULT + 3, // 10 -> AUTO_RESUME + 2, // 11 -> AUTO_RECONNECT + 5, // 12 -> BANDWIDTH_UPGRADE_RETRY }; -const std::string& V1Frame_FrameType_Name( - V1Frame_FrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - V1Frame_FrameType_entries, - V1Frame_FrameType_entries_by_number, - 13, V1Frame_FrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - V1Frame_FrameType_entries, - V1Frame_FrameType_entries_by_number, - 13, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - V1Frame_FrameType_strings[idx].get(); +const ::std::string& V1Frame_FrameType_Name(V1Frame_FrameType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + V1Frame_FrameType_entries, V1Frame_FrameType_entries_by_number, 13, + V1Frame_FrameType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(V1Frame_FrameType_entries, + V1Frame_FrameType_entries_by_number, + 13, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : V1Frame_FrameType_strings[idx].get(); } -bool V1Frame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value) { + +bool V1Frame_FrameType_Parse(::absl::string_view name, V1Frame_FrameType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( V1Frame_FrameType_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr V1Frame_FrameType V1Frame::UNKNOWN_FRAME_TYPE; -constexpr V1Frame_FrameType V1Frame::CONNECTION_REQUEST; -constexpr V1Frame_FrameType V1Frame::CONNECTION_RESPONSE; -constexpr V1Frame_FrameType V1Frame::PAYLOAD_TRANSFER; -constexpr V1Frame_FrameType V1Frame::BANDWIDTH_UPGRADE_NEGOTIATION; -constexpr V1Frame_FrameType V1Frame::KEEP_ALIVE; -constexpr V1Frame_FrameType V1Frame::DISCONNECTION; -constexpr V1Frame_FrameType V1Frame::PAIRED_KEY_ENCRYPTION; -constexpr V1Frame_FrameType V1Frame::AUTHENTICATION_MESSAGE; -constexpr V1Frame_FrameType V1Frame::AUTHENTICATION_RESULT; -constexpr V1Frame_FrameType V1Frame::AUTO_RESUME; -constexpr V1Frame_FrameType V1Frame::AUTO_RECONNECT; -constexpr V1Frame_FrameType V1Frame::BANDWIDTH_UPGRADE_RETRY; -constexpr V1Frame_FrameType V1Frame::FrameType_MIN; -constexpr V1Frame_FrameType V1Frame::FrameType_MAX; -constexpr int V1Frame::FrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionRequestFrame_Medium_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionRequestFrame_Medium_internal_data_[] = { + 917504u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionRequestFrame_Medium_strings[14] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionRequestFrame_Medium_strings[14] = {}; +static const char ConnectionRequestFrame_Medium_names[] = { + "AWDL" + "BLE" + "BLE_L2CAP" + "BLUETOOTH" + "MDNS" + "NFC" + "UNKNOWN_MEDIUM" + "USB" + "WEB_RTC" + "WEB_RTC_NON_CELLULAR" + "WIFI_AWARE" + "WIFI_DIRECT" + "WIFI_HOTSPOT" + "WIFI_LAN" +}; -static const char ConnectionRequestFrame_Medium_names[] = - "AWDL" - "BLE" - "BLE_L2CAP" - "BLUETOOTH" - "MDNS" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WEB_RTC_NON_CELLULAR" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame_Medium_entries[] = { - { {ConnectionRequestFrame_Medium_names + 0, 4}, 13 }, - { {ConnectionRequestFrame_Medium_names + 4, 3}, 4 }, - { {ConnectionRequestFrame_Medium_names + 7, 9}, 10 }, - { {ConnectionRequestFrame_Medium_names + 16, 9}, 2 }, - { {ConnectionRequestFrame_Medium_names + 25, 4}, 1 }, - { {ConnectionRequestFrame_Medium_names + 29, 3}, 7 }, - { {ConnectionRequestFrame_Medium_names + 32, 14}, 0 }, - { {ConnectionRequestFrame_Medium_names + 46, 3}, 11 }, - { {ConnectionRequestFrame_Medium_names + 49, 7}, 9 }, - { {ConnectionRequestFrame_Medium_names + 56, 20}, 12 }, - { {ConnectionRequestFrame_Medium_names + 76, 10}, 6 }, - { {ConnectionRequestFrame_Medium_names + 86, 11}, 8 }, - { {ConnectionRequestFrame_Medium_names + 97, 12}, 3 }, - { {ConnectionRequestFrame_Medium_names + 109, 8}, 5 }, +static const ::google::protobuf::internal::EnumEntry ConnectionRequestFrame_Medium_entries[] = { + {{&ConnectionRequestFrame_Medium_names[0], 4}, 13}, + {{&ConnectionRequestFrame_Medium_names[4], 3}, 4}, + {{&ConnectionRequestFrame_Medium_names[7], 9}, 10}, + {{&ConnectionRequestFrame_Medium_names[16], 9}, 2}, + {{&ConnectionRequestFrame_Medium_names[25], 4}, 1}, + {{&ConnectionRequestFrame_Medium_names[29], 3}, 7}, + {{&ConnectionRequestFrame_Medium_names[32], 14}, 0}, + {{&ConnectionRequestFrame_Medium_names[46], 3}, 11}, + {{&ConnectionRequestFrame_Medium_names[49], 7}, 9}, + {{&ConnectionRequestFrame_Medium_names[56], 20}, 12}, + {{&ConnectionRequestFrame_Medium_names[76], 10}, 6}, + {{&ConnectionRequestFrame_Medium_names[86], 11}, 8}, + {{&ConnectionRequestFrame_Medium_names[97], 12}, 3}, + {{&ConnectionRequestFrame_Medium_names[109], 8}, 5}, }; static const int ConnectionRequestFrame_Medium_entries_by_number[] = { - 6, // 0 -> UNKNOWN_MEDIUM - 4, // 1 -> MDNS - 3, // 2 -> BLUETOOTH - 12, // 3 -> WIFI_HOTSPOT - 1, // 4 -> BLE - 13, // 5 -> WIFI_LAN - 10, // 6 -> WIFI_AWARE - 5, // 7 -> NFC - 11, // 8 -> WIFI_DIRECT - 8, // 9 -> WEB_RTC - 2, // 10 -> BLE_L2CAP - 7, // 11 -> USB - 9, // 12 -> WEB_RTC_NON_CELLULAR - 0, // 13 -> AWDL + 6, // 0 -> UNKNOWN_MEDIUM + 4, // 1 -> MDNS + 3, // 2 -> BLUETOOTH + 12, // 3 -> WIFI_HOTSPOT + 1, // 4 -> BLE + 13, // 5 -> WIFI_LAN + 10, // 6 -> WIFI_AWARE + 5, // 7 -> NFC + 11, // 8 -> WIFI_DIRECT + 8, // 9 -> WEB_RTC + 2, // 10 -> BLE_L2CAP + 7, // 11 -> USB + 9, // 12 -> WEB_RTC_NON_CELLULAR + 0, // 13 -> AWDL }; -const std::string& ConnectionRequestFrame_Medium_Name( - ConnectionRequestFrame_Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionRequestFrame_Medium_entries, - ConnectionRequestFrame_Medium_entries_by_number, - 14, ConnectionRequestFrame_Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionRequestFrame_Medium_entries, - ConnectionRequestFrame_Medium_entries_by_number, - 14, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionRequestFrame_Medium_strings[idx].get(); +const ::std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionRequestFrame_Medium_entries, ConnectionRequestFrame_Medium_entries_by_number, 14, + ConnectionRequestFrame_Medium_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionRequestFrame_Medium_entries, + ConnectionRequestFrame_Medium_entries_by_number, + 14, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionRequestFrame_Medium_strings[idx].get(); } -bool ConnectionRequestFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value) { + +bool ConnectionRequestFrame_Medium_Parse(::absl::string_view name, ConnectionRequestFrame_Medium* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionRequestFrame_Medium_entries, 14, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::UNKNOWN_MEDIUM; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::MDNS; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLUETOOTH; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_HOTSPOT; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_LAN; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_AWARE; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::NFC; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_DIRECT; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE_L2CAP; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::USB; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC_NON_CELLULAR; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::AWDL; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MIN; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MAX; -constexpr int ConnectionRequestFrame::Medium_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionRequestFrame_ConnectionMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionRequestFrame_ConnectionMode_internal_data_[] = { + 131072u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionRequestFrame_ConnectionMode_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionRequestFrame_ConnectionMode_strings[2] = {}; +static const char ConnectionRequestFrame_ConnectionMode_names[] = { + "INSTANT" + "LEGACY" +}; -static const char ConnectionRequestFrame_ConnectionMode_names[] = - "INSTANT" - "LEGACY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame_ConnectionMode_entries[] = { - { {ConnectionRequestFrame_ConnectionMode_names + 0, 7}, 1 }, - { {ConnectionRequestFrame_ConnectionMode_names + 7, 6}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionRequestFrame_ConnectionMode_entries[] = { + {{&ConnectionRequestFrame_ConnectionMode_names[0], 7}, 1}, + {{&ConnectionRequestFrame_ConnectionMode_names[7], 6}, 0}, }; static const int ConnectionRequestFrame_ConnectionMode_entries_by_number[] = { - 1, // 0 -> LEGACY - 0, // 1 -> INSTANT + 1, // 0 -> LEGACY + 0, // 1 -> INSTANT }; -const std::string& ConnectionRequestFrame_ConnectionMode_Name( - ConnectionRequestFrame_ConnectionMode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionRequestFrame_ConnectionMode_entries, - ConnectionRequestFrame_ConnectionMode_entries_by_number, - 2, ConnectionRequestFrame_ConnectionMode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionRequestFrame_ConnectionMode_entries, - ConnectionRequestFrame_ConnectionMode_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionRequestFrame_ConnectionMode_strings[idx].get(); +const ::std::string& ConnectionRequestFrame_ConnectionMode_Name(ConnectionRequestFrame_ConnectionMode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionRequestFrame_ConnectionMode_entries, ConnectionRequestFrame_ConnectionMode_entries_by_number, 2, + ConnectionRequestFrame_ConnectionMode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionRequestFrame_ConnectionMode_entries, + ConnectionRequestFrame_ConnectionMode_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionRequestFrame_ConnectionMode_strings[idx].get(); } -bool ConnectionRequestFrame_ConnectionMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_ConnectionMode* value) { + +bool ConnectionRequestFrame_ConnectionMode_Parse(::absl::string_view name, ConnectionRequestFrame_ConnectionMode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionRequestFrame_ConnectionMode_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::LEGACY; -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::INSTANT; -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::ConnectionMode_MIN; -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::ConnectionMode_MAX; -constexpr int ConnectionRequestFrame::ConnectionMode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionResponseFrame_ResponseStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionResponseFrame_ResponseStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionResponseFrame_ResponseStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionResponseFrame_ResponseStatus_strings[3] = {}; +static const char ConnectionResponseFrame_ResponseStatus_names[] = { + "ACCEPT" + "REJECT" + "UNKNOWN_RESPONSE_STATUS" +}; -static const char ConnectionResponseFrame_ResponseStatus_names[] = - "ACCEPT" - "REJECT" - "UNKNOWN_RESPONSE_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionResponseFrame_ResponseStatus_entries[] = { - { {ConnectionResponseFrame_ResponseStatus_names + 0, 6}, 1 }, - { {ConnectionResponseFrame_ResponseStatus_names + 6, 6}, 2 }, - { {ConnectionResponseFrame_ResponseStatus_names + 12, 23}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionResponseFrame_ResponseStatus_entries[] = { + {{&ConnectionResponseFrame_ResponseStatus_names[0], 6}, 1}, + {{&ConnectionResponseFrame_ResponseStatus_names[6], 6}, 2}, + {{&ConnectionResponseFrame_ResponseStatus_names[12], 23}, 0}, }; static const int ConnectionResponseFrame_ResponseStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_RESPONSE_STATUS - 0, // 1 -> ACCEPT - 1, // 2 -> REJECT + 2, // 0 -> UNKNOWN_RESPONSE_STATUS + 0, // 1 -> ACCEPT + 1, // 2 -> REJECT }; -const std::string& ConnectionResponseFrame_ResponseStatus_Name( - ConnectionResponseFrame_ResponseStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionResponseFrame_ResponseStatus_entries, - ConnectionResponseFrame_ResponseStatus_entries_by_number, - 3, ConnectionResponseFrame_ResponseStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionResponseFrame_ResponseStatus_entries, - ConnectionResponseFrame_ResponseStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionResponseFrame_ResponseStatus_strings[idx].get(); +const ::std::string& ConnectionResponseFrame_ResponseStatus_Name(ConnectionResponseFrame_ResponseStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionResponseFrame_ResponseStatus_entries, ConnectionResponseFrame_ResponseStatus_entries_by_number, 3, + ConnectionResponseFrame_ResponseStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionResponseFrame_ResponseStatus_entries, + ConnectionResponseFrame_ResponseStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionResponseFrame_ResponseStatus_strings[idx].get(); } -bool ConnectionResponseFrame_ResponseStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value) { + +bool ConnectionResponseFrame_ResponseStatus_Parse(::absl::string_view name, ConnectionResponseFrame_ResponseStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionResponseFrame_ResponseStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::UNKNOWN_RESPONSE_STATUS; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ACCEPT; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::REJECT; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MIN; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MAX; -constexpr int ConnectionResponseFrame::ResponseStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadTransferFrame_PayloadHeader_PayloadType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadTransferFrame_PayloadHeader_PayloadType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PayloadHeader_PayloadType_strings[4] = {}; +static const char PayloadTransferFrame_PayloadHeader_PayloadType_names[] = { + "BYTES" + "FILE" + "STREAM" + "UNKNOWN_PAYLOAD_TYPE" +}; -static const char PayloadTransferFrame_PayloadHeader_PayloadType_names[] = - "BYTES" - "FILE" - "STREAM" - "UNKNOWN_PAYLOAD_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadHeader_PayloadType_entries[] = { - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 0, 5}, 1 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 5, 4}, 2 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 9, 6}, 3 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 15, 20}, 0 }, +static const ::google::protobuf::internal::EnumEntry PayloadTransferFrame_PayloadHeader_PayloadType_entries[] = { + {{&PayloadTransferFrame_PayloadHeader_PayloadType_names[0], 5}, 1}, + {{&PayloadTransferFrame_PayloadHeader_PayloadType_names[5], 4}, 2}, + {{&PayloadTransferFrame_PayloadHeader_PayloadType_names[9], 6}, 3}, + {{&PayloadTransferFrame_PayloadHeader_PayloadType_names[15], 20}, 0}, }; static const int PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_PAYLOAD_TYPE - 0, // 1 -> BYTES - 1, // 2 -> FILE - 2, // 3 -> STREAM + 3, // 0 -> UNKNOWN_PAYLOAD_TYPE + 0, // 1 -> BYTES + 1, // 2 -> FILE + 2, // 3 -> STREAM }; -const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name( - PayloadTransferFrame_PayloadHeader_PayloadType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PayloadHeader_PayloadType_entries, - PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, - 4, PayloadTransferFrame_PayloadHeader_PayloadType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PayloadHeader_PayloadType_entries, - PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PayloadHeader_PayloadType_strings[idx].get(); +const ::std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(PayloadTransferFrame_PayloadHeader_PayloadType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadTransferFrame_PayloadHeader_PayloadType_entries, PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, 4, + PayloadTransferFrame_PayloadHeader_PayloadType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadTransferFrame_PayloadHeader_PayloadType_entries, + PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadTransferFrame_PayloadHeader_PayloadType_strings[idx].get(); } -bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value) { + +bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse(::absl::string_view name, PayloadTransferFrame_PayloadHeader_PayloadType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadTransferFrame_PayloadHeader_PayloadType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::UNKNOWN_PAYLOAD_TYPE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::BYTES; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::FILE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::STREAM; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MIN; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MAX; -constexpr int PayloadTransferFrame_PayloadHeader::PayloadType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value) { - switch (value) { - case 1: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadTransferFrame_PayloadChunk_Flags_internal_data_[] = { + 65537u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadTransferFrame_PayloadChunk_Flags_strings[1] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PayloadChunk_Flags_strings[1] = {}; +static const char PayloadTransferFrame_PayloadChunk_Flags_names[] = { + "LAST_CHUNK" +}; -static const char PayloadTransferFrame_PayloadChunk_Flags_names[] = - "LAST_CHUNK"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadChunk_Flags_entries[] = { - { {PayloadTransferFrame_PayloadChunk_Flags_names + 0, 10}, 1 }, +static const ::google::protobuf::internal::EnumEntry PayloadTransferFrame_PayloadChunk_Flags_entries[] = { + {{&PayloadTransferFrame_PayloadChunk_Flags_names[0], 10}, 1}, }; static const int PayloadTransferFrame_PayloadChunk_Flags_entries_by_number[] = { - 0, // 1 -> LAST_CHUNK + 0, // 1 -> LAST_CHUNK }; -const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name( - PayloadTransferFrame_PayloadChunk_Flags value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PayloadChunk_Flags_entries, - PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, - 1, PayloadTransferFrame_PayloadChunk_Flags_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PayloadChunk_Flags_entries, - PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, - 1, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PayloadChunk_Flags_strings[idx].get(); +const ::std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(PayloadTransferFrame_PayloadChunk_Flags value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadTransferFrame_PayloadChunk_Flags_entries, PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, 1, + PayloadTransferFrame_PayloadChunk_Flags_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadTransferFrame_PayloadChunk_Flags_entries, + PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, + 1, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadTransferFrame_PayloadChunk_Flags_strings[idx].get(); } -bool PayloadTransferFrame_PayloadChunk_Flags_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value) { + +bool PayloadTransferFrame_PayloadChunk_Flags_Parse(::absl::string_view name, PayloadTransferFrame_PayloadChunk_Flags* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadTransferFrame_PayloadChunk_Flags_entries, 1, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::LAST_CHUNK; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MIN; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MAX; -constexpr int PayloadTransferFrame_PayloadChunk::Flags_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadTransferFrame_ControlMessage_EventType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadTransferFrame_ControlMessage_EventType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_ControlMessage_EventType_strings[4] = {}; +static const char PayloadTransferFrame_ControlMessage_EventType_names[] = { + "PAYLOAD_CANCELED" + "PAYLOAD_ERROR" + "PAYLOAD_RECEIVED_ACK" + "UNKNOWN_EVENT_TYPE" +}; -static const char PayloadTransferFrame_ControlMessage_EventType_names[] = - "PAYLOAD_CANCELED" - "PAYLOAD_ERROR" - "PAYLOAD_RECEIVED_ACK" - "UNKNOWN_EVENT_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_ControlMessage_EventType_entries[] = { - { {PayloadTransferFrame_ControlMessage_EventType_names + 0, 16}, 2 }, - { {PayloadTransferFrame_ControlMessage_EventType_names + 16, 13}, 1 }, - { {PayloadTransferFrame_ControlMessage_EventType_names + 29, 20}, 3 }, - { {PayloadTransferFrame_ControlMessage_EventType_names + 49, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry PayloadTransferFrame_ControlMessage_EventType_entries[] = { + {{&PayloadTransferFrame_ControlMessage_EventType_names[0], 16}, 2}, + {{&PayloadTransferFrame_ControlMessage_EventType_names[16], 13}, 1}, + {{&PayloadTransferFrame_ControlMessage_EventType_names[29], 20}, 3}, + {{&PayloadTransferFrame_ControlMessage_EventType_names[49], 18}, 0}, }; static const int PayloadTransferFrame_ControlMessage_EventType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_EVENT_TYPE - 1, // 1 -> PAYLOAD_ERROR - 0, // 2 -> PAYLOAD_CANCELED - 2, // 3 -> PAYLOAD_RECEIVED_ACK + 3, // 0 -> UNKNOWN_EVENT_TYPE + 1, // 1 -> PAYLOAD_ERROR + 0, // 2 -> PAYLOAD_CANCELED + 2, // 3 -> PAYLOAD_RECEIVED_ACK }; -const std::string& PayloadTransferFrame_ControlMessage_EventType_Name( - PayloadTransferFrame_ControlMessage_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_ControlMessage_EventType_entries, - PayloadTransferFrame_ControlMessage_EventType_entries_by_number, - 4, PayloadTransferFrame_ControlMessage_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_ControlMessage_EventType_entries, - PayloadTransferFrame_ControlMessage_EventType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_ControlMessage_EventType_strings[idx].get(); +const ::std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadTransferFrame_ControlMessage_EventType_entries, PayloadTransferFrame_ControlMessage_EventType_entries_by_number, 4, + PayloadTransferFrame_ControlMessage_EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadTransferFrame_ControlMessage_EventType_entries, + PayloadTransferFrame_ControlMessage_EventType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadTransferFrame_ControlMessage_EventType_strings[idx].get(); } -bool PayloadTransferFrame_ControlMessage_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value) { + +bool PayloadTransferFrame_ControlMessage_EventType_Parse(::absl::string_view name, PayloadTransferFrame_ControlMessage_EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadTransferFrame_ControlMessage_EventType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::UNKNOWN_EVENT_TYPE; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_ERROR; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_CANCELED; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_RECEIVED_ACK; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MIN; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MAX; -constexpr int PayloadTransferFrame_ControlMessage::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PacketType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadTransferFrame_PacketType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadTransferFrame_PacketType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PacketType_strings[4] = {}; +static const char PayloadTransferFrame_PacketType_names[] = { + "CONTROL" + "DATA" + "PAYLOAD_ACK" + "UNKNOWN_PACKET_TYPE" +}; -static const char PayloadTransferFrame_PacketType_names[] = - "CONTROL" - "DATA" - "PAYLOAD_ACK" - "UNKNOWN_PACKET_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PacketType_entries[] = { - { {PayloadTransferFrame_PacketType_names + 0, 7}, 2 }, - { {PayloadTransferFrame_PacketType_names + 7, 4}, 1 }, - { {PayloadTransferFrame_PacketType_names + 11, 11}, 3 }, - { {PayloadTransferFrame_PacketType_names + 22, 19}, 0 }, +static const ::google::protobuf::internal::EnumEntry PayloadTransferFrame_PacketType_entries[] = { + {{&PayloadTransferFrame_PacketType_names[0], 7}, 2}, + {{&PayloadTransferFrame_PacketType_names[7], 4}, 1}, + {{&PayloadTransferFrame_PacketType_names[11], 11}, 3}, + {{&PayloadTransferFrame_PacketType_names[22], 19}, 0}, }; static const int PayloadTransferFrame_PacketType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_PACKET_TYPE - 1, // 1 -> DATA - 0, // 2 -> CONTROL - 2, // 3 -> PAYLOAD_ACK + 3, // 0 -> UNKNOWN_PACKET_TYPE + 1, // 1 -> DATA + 0, // 2 -> CONTROL + 2, // 3 -> PAYLOAD_ACK }; -const std::string& PayloadTransferFrame_PacketType_Name( - PayloadTransferFrame_PacketType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PacketType_entries, - PayloadTransferFrame_PacketType_entries_by_number, - 4, PayloadTransferFrame_PacketType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PacketType_entries, - PayloadTransferFrame_PacketType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PacketType_strings[idx].get(); +const ::std::string& PayloadTransferFrame_PacketType_Name(PayloadTransferFrame_PacketType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadTransferFrame_PacketType_entries, PayloadTransferFrame_PacketType_entries_by_number, 4, + PayloadTransferFrame_PacketType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadTransferFrame_PacketType_entries, + PayloadTransferFrame_PacketType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadTransferFrame_PacketType_strings[idx].get(); } -bool PayloadTransferFrame_PacketType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value) { + +bool PayloadTransferFrame_PacketType_Parse(::absl::string_view name, PayloadTransferFrame_PacketType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadTransferFrame_PacketType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::UNKNOWN_PACKET_TYPE; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::DATA; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::CONTROL; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PAYLOAD_ACK; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MIN; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MAX; -constexpr int PayloadTransferFrame::PacketType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 11: - case 12: - case 13: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_[] = { + 655360u, 32u, 14u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[13] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[13] = {}; +static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] = { + "AWDL" + "BLE" + "BLUETOOTH" + "MDNS" + "NFC" + "UNKNOWN_MEDIUM" + "USB" + "WEB_RTC" + "WEB_RTC_NON_CELLULAR" + "WIFI_AWARE" + "WIFI_DIRECT" + "WIFI_HOTSPOT" + "WIFI_LAN" +}; -static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] = - "AWDL" - "BLE" - "BLUETOOTH" - "MDNS" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WEB_RTC_NON_CELLULAR" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries[] = { - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 0, 4}, 13 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 4, 3}, 4 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 7, 9}, 2 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 16, 4}, 1 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 20, 3}, 7 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 23, 14}, 0 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 37, 3}, 11 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 40, 7}, 9 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 47, 20}, 12 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 67, 10}, 6 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 77, 11}, 8 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 88, 12}, 3 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 100, 8}, 5 }, +static const ::google::protobuf::internal::EnumEntry BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries[] = { + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[0], 4}, 13}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[4], 3}, 4}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[7], 9}, 2}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[16], 4}, 1}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[20], 3}, 7}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[23], 14}, 0}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[37], 3}, 11}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[40], 7}, 9}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[47], 20}, 12}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[67], 10}, 6}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[77], 11}, 8}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[88], 12}, 3}, + {{&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[100], 8}, 5}, }; static const int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number[] = { - 5, // 0 -> UNKNOWN_MEDIUM - 3, // 1 -> MDNS - 2, // 2 -> BLUETOOTH - 11, // 3 -> WIFI_HOTSPOT - 1, // 4 -> BLE - 12, // 5 -> WIFI_LAN - 9, // 6 -> WIFI_AWARE - 4, // 7 -> NFC - 10, // 8 -> WIFI_DIRECT - 7, // 9 -> WEB_RTC - 6, // 11 -> USB - 8, // 12 -> WEB_RTC_NON_CELLULAR - 0, // 13 -> AWDL + 5, // 0 -> UNKNOWN_MEDIUM + 3, // 1 -> MDNS + 2, // 2 -> BLUETOOTH + 11, // 3 -> WIFI_HOTSPOT + 1, // 4 -> BLE + 12, // 5 -> WIFI_LAN + 9, // 6 -> WIFI_AWARE + 4, // 7 -> NFC + 10, // 8 -> WIFI_DIRECT + 7, // 9 -> WEB_RTC + 6, // 11 -> USB + 8, // 12 -> WEB_RTC_NON_CELLULAR + 0, // 13 -> AWDL }; -const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, - 13, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, - 13, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get(); +const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, 13, + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, + 13, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get(); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value) { + +bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(::absl::string_view name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MDNS; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLUETOOTH; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_HOTSPOT; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLE; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_LAN; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_AWARE; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::NFC; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_DIRECT; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::USB; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC_NON_CELLULAR; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::AWDL; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MIN; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MAX; -constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t BandwidthUpgradeNegotiationFrame_EventType_internal_data_[] = { + 524288u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + BandwidthUpgradeNegotiationFrame_EventType_strings[8] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeNegotiationFrame_EventType_strings[8] = {}; +static const char BandwidthUpgradeNegotiationFrame_EventType_names[] = { + "CLIENT_INTRODUCTION" + "CLIENT_INTRODUCTION_ACK" + "LAST_WRITE_TO_PRIOR_CHANNEL" + "SAFE_TO_CLOSE_PRIOR_CHANNEL" + "UNKNOWN_EVENT_TYPE" + "UPGRADE_FAILURE" + "UPGRADE_PATH_AVAILABLE" + "UPGRADE_PATH_REQUEST" +}; -static const char BandwidthUpgradeNegotiationFrame_EventType_names[] = - "CLIENT_INTRODUCTION" - "CLIENT_INTRODUCTION_ACK" - "LAST_WRITE_TO_PRIOR_CHANNEL" - "SAFE_TO_CLOSE_PRIOR_CHANNEL" - "UNKNOWN_EVENT_TYPE" - "UPGRADE_FAILURE" - "UPGRADE_PATH_AVAILABLE" - "UPGRADE_PATH_REQUEST"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_EventType_entries[] = { - { {BandwidthUpgradeNegotiationFrame_EventType_names + 0, 19}, 4 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 19, 23}, 6 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 42, 27}, 2 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 69, 27}, 3 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 96, 18}, 0 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 114, 15}, 5 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 129, 22}, 1 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 151, 20}, 7 }, +static const ::google::protobuf::internal::EnumEntry BandwidthUpgradeNegotiationFrame_EventType_entries[] = { + {{&BandwidthUpgradeNegotiationFrame_EventType_names[0], 19}, 4}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[19], 23}, 6}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[42], 27}, 2}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[69], 27}, 3}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[96], 18}, 0}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[114], 15}, 5}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[129], 22}, 1}, + {{&BandwidthUpgradeNegotiationFrame_EventType_names[151], 20}, 7}, }; static const int BandwidthUpgradeNegotiationFrame_EventType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_EVENT_TYPE - 6, // 1 -> UPGRADE_PATH_AVAILABLE - 2, // 2 -> LAST_WRITE_TO_PRIOR_CHANNEL - 3, // 3 -> SAFE_TO_CLOSE_PRIOR_CHANNEL - 0, // 4 -> CLIENT_INTRODUCTION - 5, // 5 -> UPGRADE_FAILURE - 1, // 6 -> CLIENT_INTRODUCTION_ACK - 7, // 7 -> UPGRADE_PATH_REQUEST + 4, // 0 -> UNKNOWN_EVENT_TYPE + 6, // 1 -> UPGRADE_PATH_AVAILABLE + 2, // 2 -> LAST_WRITE_TO_PRIOR_CHANNEL + 3, // 3 -> SAFE_TO_CLOSE_PRIOR_CHANNEL + 0, // 4 -> CLIENT_INTRODUCTION + 5, // 5 -> UPGRADE_FAILURE + 1, // 6 -> CLIENT_INTRODUCTION_ACK + 7, // 7 -> UPGRADE_PATH_REQUEST }; -const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name( - BandwidthUpgradeNegotiationFrame_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeNegotiationFrame_EventType_entries, - BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, - 8, BandwidthUpgradeNegotiationFrame_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeNegotiationFrame_EventType_entries, - BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, - 8, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeNegotiationFrame_EventType_strings[idx].get(); +const ::std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(BandwidthUpgradeNegotiationFrame_EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + BandwidthUpgradeNegotiationFrame_EventType_entries, BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, 8, + BandwidthUpgradeNegotiationFrame_EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(BandwidthUpgradeNegotiationFrame_EventType_entries, + BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, + 8, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BandwidthUpgradeNegotiationFrame_EventType_strings[idx].get(); } -bool BandwidthUpgradeNegotiationFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value) { + +bool BandwidthUpgradeNegotiationFrame_EventType_Parse(::absl::string_view name, BandwidthUpgradeNegotiationFrame_EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( BandwidthUpgradeNegotiationFrame_EventType_entries, 8, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UNKNOWN_EVENT_TYPE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_PATH_AVAILABLE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::LAST_WRITE_TO_PRIOR_CHANNEL; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::SAFE_TO_CLOSE_PRIOR_CHANNEL; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_FAILURE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION_ACK; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_PATH_REQUEST; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MIN; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MAX; -constexpr int BandwidthUpgradeNegotiationFrame::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool BandwidthUpgradeRetryFrame_Medium_IsValid(int value) { - switch (value) { - case 0: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t BandwidthUpgradeRetryFrame_Medium_internal_data_[] = { + 65536u, 32u, 8190u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + BandwidthUpgradeRetryFrame_Medium_strings[13] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeRetryFrame_Medium_strings[13] = {}; +static const char BandwidthUpgradeRetryFrame_Medium_names[] = { + "AWDL" + "BLE" + "BLE_L2CAP" + "BLUETOOTH" + "NFC" + "UNKNOWN_MEDIUM" + "USB" + "WEB_RTC" + "WEB_RTC_NON_CELLULAR" + "WIFI_AWARE" + "WIFI_DIRECT" + "WIFI_HOTSPOT" + "WIFI_LAN" +}; -static const char BandwidthUpgradeRetryFrame_Medium_names[] = - "AWDL" - "BLE" - "BLE_L2CAP" - "BLUETOOTH" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WEB_RTC_NON_CELLULAR" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeRetryFrame_Medium_entries[] = { - { {BandwidthUpgradeRetryFrame_Medium_names + 0, 4}, 13 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 4, 3}, 4 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 7, 9}, 10 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 16, 9}, 2 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 25, 3}, 7 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 28, 14}, 0 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 42, 3}, 11 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 45, 7}, 9 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 52, 20}, 12 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 72, 10}, 6 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 82, 11}, 8 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 93, 12}, 3 }, - { {BandwidthUpgradeRetryFrame_Medium_names + 105, 8}, 5 }, +static const ::google::protobuf::internal::EnumEntry BandwidthUpgradeRetryFrame_Medium_entries[] = { + {{&BandwidthUpgradeRetryFrame_Medium_names[0], 4}, 13}, + {{&BandwidthUpgradeRetryFrame_Medium_names[4], 3}, 4}, + {{&BandwidthUpgradeRetryFrame_Medium_names[7], 9}, 10}, + {{&BandwidthUpgradeRetryFrame_Medium_names[16], 9}, 2}, + {{&BandwidthUpgradeRetryFrame_Medium_names[25], 3}, 7}, + {{&BandwidthUpgradeRetryFrame_Medium_names[28], 14}, 0}, + {{&BandwidthUpgradeRetryFrame_Medium_names[42], 3}, 11}, + {{&BandwidthUpgradeRetryFrame_Medium_names[45], 7}, 9}, + {{&BandwidthUpgradeRetryFrame_Medium_names[52], 20}, 12}, + {{&BandwidthUpgradeRetryFrame_Medium_names[72], 10}, 6}, + {{&BandwidthUpgradeRetryFrame_Medium_names[82], 11}, 8}, + {{&BandwidthUpgradeRetryFrame_Medium_names[93], 12}, 3}, + {{&BandwidthUpgradeRetryFrame_Medium_names[105], 8}, 5}, }; static const int BandwidthUpgradeRetryFrame_Medium_entries_by_number[] = { - 5, // 0 -> UNKNOWN_MEDIUM - 3, // 2 -> BLUETOOTH - 11, // 3 -> WIFI_HOTSPOT - 1, // 4 -> BLE - 12, // 5 -> WIFI_LAN - 9, // 6 -> WIFI_AWARE - 4, // 7 -> NFC - 10, // 8 -> WIFI_DIRECT - 7, // 9 -> WEB_RTC - 2, // 10 -> BLE_L2CAP - 6, // 11 -> USB - 8, // 12 -> WEB_RTC_NON_CELLULAR - 0, // 13 -> AWDL + 5, // 0 -> UNKNOWN_MEDIUM + 3, // 2 -> BLUETOOTH + 11, // 3 -> WIFI_HOTSPOT + 1, // 4 -> BLE + 12, // 5 -> WIFI_LAN + 9, // 6 -> WIFI_AWARE + 4, // 7 -> NFC + 10, // 8 -> WIFI_DIRECT + 7, // 9 -> WEB_RTC + 2, // 10 -> BLE_L2CAP + 6, // 11 -> USB + 8, // 12 -> WEB_RTC_NON_CELLULAR + 0, // 13 -> AWDL }; -const std::string& BandwidthUpgradeRetryFrame_Medium_Name( - BandwidthUpgradeRetryFrame_Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeRetryFrame_Medium_entries, - BandwidthUpgradeRetryFrame_Medium_entries_by_number, - 13, BandwidthUpgradeRetryFrame_Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeRetryFrame_Medium_entries, - BandwidthUpgradeRetryFrame_Medium_entries_by_number, - 13, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeRetryFrame_Medium_strings[idx].get(); +const ::std::string& BandwidthUpgradeRetryFrame_Medium_Name(BandwidthUpgradeRetryFrame_Medium value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + BandwidthUpgradeRetryFrame_Medium_entries, BandwidthUpgradeRetryFrame_Medium_entries_by_number, 13, + BandwidthUpgradeRetryFrame_Medium_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(BandwidthUpgradeRetryFrame_Medium_entries, + BandwidthUpgradeRetryFrame_Medium_entries_by_number, + 13, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BandwidthUpgradeRetryFrame_Medium_strings[idx].get(); } -bool BandwidthUpgradeRetryFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeRetryFrame_Medium* value) { + +bool BandwidthUpgradeRetryFrame_Medium_Parse(::absl::string_view name, BandwidthUpgradeRetryFrame_Medium* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( BandwidthUpgradeRetryFrame_Medium_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::BLUETOOTH; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WIFI_HOTSPOT; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::BLE; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WIFI_LAN; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WIFI_AWARE; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::NFC; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WIFI_DIRECT; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WEB_RTC; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::BLE_L2CAP; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::USB; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WEB_RTC_NON_CELLULAR; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::AWDL; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::Medium_MIN; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::Medium_MAX; -constexpr int BandwidthUpgradeRetryFrame::Medium_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool AutoResumeFrame_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AutoResumeFrame_EventType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AutoResumeFrame_EventType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AutoResumeFrame_EventType_strings[3] = {}; +static const char AutoResumeFrame_EventType_names[] = { + "PAYLOAD_RESUME_TRANSFER_ACK" + "PAYLOAD_RESUME_TRANSFER_START" + "UNKNOWN_AUTO_RESUME_EVENT_TYPE" +}; -static const char AutoResumeFrame_EventType_names[] = - "PAYLOAD_RESUME_TRANSFER_ACK" - "PAYLOAD_RESUME_TRANSFER_START" - "UNKNOWN_AUTO_RESUME_EVENT_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AutoResumeFrame_EventType_entries[] = { - { {AutoResumeFrame_EventType_names + 0, 27}, 2 }, - { {AutoResumeFrame_EventType_names + 27, 29}, 1 }, - { {AutoResumeFrame_EventType_names + 56, 30}, 0 }, +static const ::google::protobuf::internal::EnumEntry AutoResumeFrame_EventType_entries[] = { + {{&AutoResumeFrame_EventType_names[0], 27}, 2}, + {{&AutoResumeFrame_EventType_names[27], 29}, 1}, + {{&AutoResumeFrame_EventType_names[56], 30}, 0}, }; static const int AutoResumeFrame_EventType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_AUTO_RESUME_EVENT_TYPE - 1, // 1 -> PAYLOAD_RESUME_TRANSFER_START - 0, // 2 -> PAYLOAD_RESUME_TRANSFER_ACK + 2, // 0 -> UNKNOWN_AUTO_RESUME_EVENT_TYPE + 1, // 1 -> PAYLOAD_RESUME_TRANSFER_START + 0, // 2 -> PAYLOAD_RESUME_TRANSFER_ACK }; -const std::string& AutoResumeFrame_EventType_Name( - AutoResumeFrame_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AutoResumeFrame_EventType_entries, - AutoResumeFrame_EventType_entries_by_number, - 3, AutoResumeFrame_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AutoResumeFrame_EventType_entries, - AutoResumeFrame_EventType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AutoResumeFrame_EventType_strings[idx].get(); +const ::std::string& AutoResumeFrame_EventType_Name(AutoResumeFrame_EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AutoResumeFrame_EventType_entries, AutoResumeFrame_EventType_entries_by_number, 3, + AutoResumeFrame_EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AutoResumeFrame_EventType_entries, + AutoResumeFrame_EventType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AutoResumeFrame_EventType_strings[idx].get(); } -bool AutoResumeFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AutoResumeFrame_EventType* value) { + +bool AutoResumeFrame_EventType_Parse(::absl::string_view name, AutoResumeFrame_EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AutoResumeFrame_EventType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr AutoResumeFrame_EventType AutoResumeFrame::UNKNOWN_AUTO_RESUME_EVENT_TYPE; -constexpr AutoResumeFrame_EventType AutoResumeFrame::PAYLOAD_RESUME_TRANSFER_START; -constexpr AutoResumeFrame_EventType AutoResumeFrame::PAYLOAD_RESUME_TRANSFER_ACK; -constexpr AutoResumeFrame_EventType AutoResumeFrame::EventType_MIN; -constexpr AutoResumeFrame_EventType AutoResumeFrame::EventType_MAX; -constexpr int AutoResumeFrame::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool AutoReconnectFrame_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AutoReconnectFrame_EventType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AutoReconnectFrame_EventType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AutoReconnectFrame_EventType_strings[3] = {}; +static const char AutoReconnectFrame_EventType_names[] = { + "CLIENT_INTRODUCTION" + "CLIENT_INTRODUCTION_ACK" + "UNKNOWN_EVENT_TYPE" +}; -static const char AutoReconnectFrame_EventType_names[] = - "CLIENT_INTRODUCTION" - "CLIENT_INTRODUCTION_ACK" - "UNKNOWN_EVENT_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AutoReconnectFrame_EventType_entries[] = { - { {AutoReconnectFrame_EventType_names + 0, 19}, 1 }, - { {AutoReconnectFrame_EventType_names + 19, 23}, 2 }, - { {AutoReconnectFrame_EventType_names + 42, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry AutoReconnectFrame_EventType_entries[] = { + {{&AutoReconnectFrame_EventType_names[0], 19}, 1}, + {{&AutoReconnectFrame_EventType_names[19], 23}, 2}, + {{&AutoReconnectFrame_EventType_names[42], 18}, 0}, }; static const int AutoReconnectFrame_EventType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_EVENT_TYPE - 0, // 1 -> CLIENT_INTRODUCTION - 1, // 2 -> CLIENT_INTRODUCTION_ACK + 2, // 0 -> UNKNOWN_EVENT_TYPE + 0, // 1 -> CLIENT_INTRODUCTION + 1, // 2 -> CLIENT_INTRODUCTION_ACK }; -const std::string& AutoReconnectFrame_EventType_Name( - AutoReconnectFrame_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AutoReconnectFrame_EventType_entries, - AutoReconnectFrame_EventType_entries_by_number, - 3, AutoReconnectFrame_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AutoReconnectFrame_EventType_entries, - AutoReconnectFrame_EventType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AutoReconnectFrame_EventType_strings[idx].get(); +const ::std::string& AutoReconnectFrame_EventType_Name(AutoReconnectFrame_EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AutoReconnectFrame_EventType_entries, AutoReconnectFrame_EventType_entries_by_number, 3, + AutoReconnectFrame_EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AutoReconnectFrame_EventType_entries, + AutoReconnectFrame_EventType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AutoReconnectFrame_EventType_strings[idx].get(); } -bool AutoReconnectFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AutoReconnectFrame_EventType* value) { + +bool AutoReconnectFrame_EventType_Parse(::absl::string_view name, AutoReconnectFrame_EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AutoReconnectFrame_EventType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr AutoReconnectFrame_EventType AutoReconnectFrame::UNKNOWN_EVENT_TYPE; -constexpr AutoReconnectFrame_EventType AutoReconnectFrame::CLIENT_INTRODUCTION; -constexpr AutoReconnectFrame_EventType AutoReconnectFrame::CLIENT_INTRODUCTION_ACK; -constexpr AutoReconnectFrame_EventType AutoReconnectFrame::EventType_MIN; -constexpr AutoReconnectFrame_EventType AutoReconnectFrame::EventType_MAX; -constexpr int AutoReconnectFrame::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool MediumMetadata_WifiDirectAuthType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t MediumMetadata_WifiDirectAuthType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + MediumMetadata_WifiDirectAuthType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed MediumMetadata_WifiDirectAuthType_strings[3] = {}; +static const char MediumMetadata_WifiDirectAuthType_names[] = { + "WIFI_DIRECT_TYPE_UNKNOWN" + "WIFI_DIRECT_WITH_PASSWORD" + "WIFI_DIRECT_WITH_PIN" +}; -static const char MediumMetadata_WifiDirectAuthType_names[] = - "WIFI_DIRECT_TYPE_UNKNOWN" - "WIFI_DIRECT_WITH_PASSWORD" - "WIFI_DIRECT_WITH_PIN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry MediumMetadata_WifiDirectAuthType_entries[] = { - { {MediumMetadata_WifiDirectAuthType_names + 0, 24}, 0 }, - { {MediumMetadata_WifiDirectAuthType_names + 24, 25}, 1 }, - { {MediumMetadata_WifiDirectAuthType_names + 49, 20}, 2 }, +static const ::google::protobuf::internal::EnumEntry MediumMetadata_WifiDirectAuthType_entries[] = { + {{&MediumMetadata_WifiDirectAuthType_names[0], 24}, 0}, + {{&MediumMetadata_WifiDirectAuthType_names[24], 25}, 1}, + {{&MediumMetadata_WifiDirectAuthType_names[49], 20}, 2}, }; static const int MediumMetadata_WifiDirectAuthType_entries_by_number[] = { - 0, // 0 -> WIFI_DIRECT_TYPE_UNKNOWN - 1, // 1 -> WIFI_DIRECT_WITH_PASSWORD - 2, // 2 -> WIFI_DIRECT_WITH_PIN + 0, // 0 -> WIFI_DIRECT_TYPE_UNKNOWN + 1, // 1 -> WIFI_DIRECT_WITH_PASSWORD + 2, // 2 -> WIFI_DIRECT_WITH_PIN }; -const std::string& MediumMetadata_WifiDirectAuthType_Name( - MediumMetadata_WifiDirectAuthType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - MediumMetadata_WifiDirectAuthType_entries, - MediumMetadata_WifiDirectAuthType_entries_by_number, - 3, MediumMetadata_WifiDirectAuthType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - MediumMetadata_WifiDirectAuthType_entries, - MediumMetadata_WifiDirectAuthType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - MediumMetadata_WifiDirectAuthType_strings[idx].get(); +const ::std::string& MediumMetadata_WifiDirectAuthType_Name(MediumMetadata_WifiDirectAuthType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + MediumMetadata_WifiDirectAuthType_entries, MediumMetadata_WifiDirectAuthType_entries_by_number, 3, + MediumMetadata_WifiDirectAuthType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(MediumMetadata_WifiDirectAuthType_entries, + MediumMetadata_WifiDirectAuthType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MediumMetadata_WifiDirectAuthType_strings[idx].get(); } -bool MediumMetadata_WifiDirectAuthType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediumMetadata_WifiDirectAuthType* value) { + +bool MediumMetadata_WifiDirectAuthType_Parse(::absl::string_view name, MediumMetadata_WifiDirectAuthType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( MediumMetadata_WifiDirectAuthType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata::WIFI_DIRECT_TYPE_UNKNOWN; -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata::WIFI_DIRECT_WITH_PASSWORD; -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata::WIFI_DIRECT_WITH_PIN; -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata::WifiDirectAuthType_MIN; -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata::WifiDirectAuthType_MAX; -constexpr int MediumMetadata::WifiDirectAuthType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool LocationStandard_Format_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t LocationStandard_Format_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + LocationStandard_Format_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LocationStandard_Format_strings[3] = {}; +static const char LocationStandard_Format_names[] = { + "E164_CALLING" + "ISO_3166_1_ALPHA_2" + "UNKNOWN" +}; -static const char LocationStandard_Format_names[] = - "E164_CALLING" - "ISO_3166_1_ALPHA_2" - "UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LocationStandard_Format_entries[] = { - { {LocationStandard_Format_names + 0, 12}, 1 }, - { {LocationStandard_Format_names + 12, 18}, 2 }, - { {LocationStandard_Format_names + 30, 7}, 0 }, +static const ::google::protobuf::internal::EnumEntry LocationStandard_Format_entries[] = { + {{&LocationStandard_Format_names[0], 12}, 1}, + {{&LocationStandard_Format_names[12], 18}, 2}, + {{&LocationStandard_Format_names[30], 7}, 0}, }; static const int LocationStandard_Format_entries_by_number[] = { - 2, // 0 -> UNKNOWN - 0, // 1 -> E164_CALLING - 1, // 2 -> ISO_3166_1_ALPHA_2 + 2, // 0 -> UNKNOWN + 0, // 1 -> E164_CALLING + 1, // 2 -> ISO_3166_1_ALPHA_2 }; -const std::string& LocationStandard_Format_Name( - LocationStandard_Format value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - LocationStandard_Format_entries, - LocationStandard_Format_entries_by_number, - 3, LocationStandard_Format_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - LocationStandard_Format_entries, - LocationStandard_Format_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - LocationStandard_Format_strings[idx].get(); +const ::std::string& LocationStandard_Format_Name(LocationStandard_Format value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + LocationStandard_Format_entries, LocationStandard_Format_entries_by_number, 3, + LocationStandard_Format_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(LocationStandard_Format_entries, + LocationStandard_Format_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : LocationStandard_Format_strings[idx].get(); } -bool LocationStandard_Format_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value) { + +bool LocationStandard_Format_Parse(::absl::string_view name, LocationStandard_Format* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( LocationStandard_Format_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr LocationStandard_Format LocationStandard::UNKNOWN; -constexpr LocationStandard_Format LocationStandard::E164_CALLING; -constexpr LocationStandard_Format LocationStandard::ISO_3166_1_ALPHA_2; -constexpr LocationStandard_Format LocationStandard::Format_MIN; -constexpr LocationStandard_Format LocationStandard::Format_MAX; -constexpr int LocationStandard::Format_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool OsInfo_OsType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 100: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t OsInfo_OsType_internal_data_[] = { + 327680u, 65536u, 100u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + OsInfo_OsType_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OsInfo_OsType_strings[6] = {}; +static const char OsInfo_OsType_names[] = { + "ANDROID" + "APPLE" + "CHROME_OS" + "LINUX" + "UNKNOWN_OS_TYPE" + "WINDOWS" +}; -static const char OsInfo_OsType_names[] = - "ANDROID" - "APPLE" - "CHROME_OS" - "LINUX" - "UNKNOWN_OS_TYPE" - "WINDOWS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OsInfo_OsType_entries[] = { - { {OsInfo_OsType_names + 0, 7}, 1 }, - { {OsInfo_OsType_names + 7, 5}, 4 }, - { {OsInfo_OsType_names + 12, 9}, 2 }, - { {OsInfo_OsType_names + 21, 5}, 100 }, - { {OsInfo_OsType_names + 26, 15}, 0 }, - { {OsInfo_OsType_names + 41, 7}, 3 }, +static const ::google::protobuf::internal::EnumEntry OsInfo_OsType_entries[] = { + {{&OsInfo_OsType_names[0], 7}, 1}, + {{&OsInfo_OsType_names[7], 5}, 4}, + {{&OsInfo_OsType_names[12], 9}, 2}, + {{&OsInfo_OsType_names[21], 5}, 100}, + {{&OsInfo_OsType_names[26], 15}, 0}, + {{&OsInfo_OsType_names[41], 7}, 3}, }; static const int OsInfo_OsType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_OS_TYPE - 0, // 1 -> ANDROID - 2, // 2 -> CHROME_OS - 5, // 3 -> WINDOWS - 1, // 4 -> APPLE - 3, // 100 -> LINUX + 4, // 0 -> UNKNOWN_OS_TYPE + 0, // 1 -> ANDROID + 2, // 2 -> CHROME_OS + 5, // 3 -> WINDOWS + 1, // 4 -> APPLE + 3, // 100 -> LINUX }; -const std::string& OsInfo_OsType_Name( - OsInfo_OsType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OsInfo_OsType_entries, - OsInfo_OsType_entries_by_number, - 6, OsInfo_OsType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OsInfo_OsType_entries, - OsInfo_OsType_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OsInfo_OsType_strings[idx].get(); +const ::std::string& OsInfo_OsType_Name(OsInfo_OsType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + OsInfo_OsType_entries, OsInfo_OsType_entries_by_number, 6, + OsInfo_OsType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(OsInfo_OsType_entries, + OsInfo_OsType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OsInfo_OsType_strings[idx].get(); } -bool OsInfo_OsType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsInfo_OsType* value) { + +bool OsInfo_OsType_Parse(::absl::string_view name, OsInfo_OsType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( OsInfo_OsType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr OsInfo_OsType OsInfo::UNKNOWN_OS_TYPE; -constexpr OsInfo_OsType OsInfo::ANDROID; -constexpr OsInfo_OsType OsInfo::CHROME_OS; -constexpr OsInfo_OsType OsInfo::WINDOWS; -constexpr OsInfo_OsType OsInfo::APPLE; -constexpr OsInfo_OsType OsInfo::LINUX; -constexpr OsInfo_OsType OsInfo::OsType_MIN; -constexpr OsInfo_OsType OsInfo::OsType_MAX; -constexpr int OsInfo::OsType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PresenceDevice_DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PresenceDevice_DeviceType_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PresenceDevice_DeviceType_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PresenceDevice_DeviceType_strings[7] = {}; +static const char PresenceDevice_DeviceType_names[] = { + "DISPLAY" + "LAPTOP" + "PHONE" + "TABLET" + "TV" + "UNKNOWN" + "WATCH" +}; -static const char PresenceDevice_DeviceType_names[] = - "DISPLAY" - "LAPTOP" - "PHONE" - "TABLET" - "TV" - "UNKNOWN" - "WATCH"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PresenceDevice_DeviceType_entries[] = { - { {PresenceDevice_DeviceType_names + 0, 7}, 3 }, - { {PresenceDevice_DeviceType_names + 7, 6}, 4 }, - { {PresenceDevice_DeviceType_names + 13, 5}, 1 }, - { {PresenceDevice_DeviceType_names + 18, 6}, 2 }, - { {PresenceDevice_DeviceType_names + 24, 2}, 5 }, - { {PresenceDevice_DeviceType_names + 26, 7}, 0 }, - { {PresenceDevice_DeviceType_names + 33, 5}, 6 }, +static const ::google::protobuf::internal::EnumEntry PresenceDevice_DeviceType_entries[] = { + {{&PresenceDevice_DeviceType_names[0], 7}, 3}, + {{&PresenceDevice_DeviceType_names[7], 6}, 4}, + {{&PresenceDevice_DeviceType_names[13], 5}, 1}, + {{&PresenceDevice_DeviceType_names[18], 6}, 2}, + {{&PresenceDevice_DeviceType_names[24], 2}, 5}, + {{&PresenceDevice_DeviceType_names[26], 7}, 0}, + {{&PresenceDevice_DeviceType_names[33], 5}, 6}, }; static const int PresenceDevice_DeviceType_entries_by_number[] = { - 5, // 0 -> UNKNOWN - 2, // 1 -> PHONE - 3, // 2 -> TABLET - 0, // 3 -> DISPLAY - 1, // 4 -> LAPTOP - 4, // 5 -> TV - 6, // 6 -> WATCH + 5, // 0 -> UNKNOWN + 2, // 1 -> PHONE + 3, // 2 -> TABLET + 0, // 3 -> DISPLAY + 1, // 4 -> LAPTOP + 4, // 5 -> TV + 6, // 6 -> WATCH }; -const std::string& PresenceDevice_DeviceType_Name( - PresenceDevice_DeviceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PresenceDevice_DeviceType_entries, - PresenceDevice_DeviceType_entries_by_number, - 7, PresenceDevice_DeviceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PresenceDevice_DeviceType_entries, - PresenceDevice_DeviceType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PresenceDevice_DeviceType_strings[idx].get(); +const ::std::string& PresenceDevice_DeviceType_Name(PresenceDevice_DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PresenceDevice_DeviceType_entries, PresenceDevice_DeviceType_entries_by_number, 7, + PresenceDevice_DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PresenceDevice_DeviceType_entries, + PresenceDevice_DeviceType_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PresenceDevice_DeviceType_strings[idx].get(); } -bool PresenceDevice_DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PresenceDevice_DeviceType* value) { + +bool PresenceDevice_DeviceType_Parse(::absl::string_view name, PresenceDevice_DeviceType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PresenceDevice_DeviceType_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PresenceDevice_DeviceType PresenceDevice::UNKNOWN; -constexpr PresenceDevice_DeviceType PresenceDevice::PHONE; -constexpr PresenceDevice_DeviceType PresenceDevice::TABLET; -constexpr PresenceDevice_DeviceType PresenceDevice::DISPLAY; -constexpr PresenceDevice_DeviceType PresenceDevice::LAPTOP; -constexpr PresenceDevice_DeviceType PresenceDevice::TV; -constexpr PresenceDevice_DeviceType PresenceDevice::WATCH; -constexpr PresenceDevice_DeviceType PresenceDevice::DeviceType_MIN; -constexpr PresenceDevice_DeviceType PresenceDevice::DeviceType_MAX; -constexpr int PresenceDevice::DeviceType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool EndpointType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EndpointType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EndpointType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EndpointType_strings[3] = {}; +static const char EndpointType_names[] = { + "CONNECTIONS_ENDPOINT" + "PRESENCE_ENDPOINT" + "UNKNOWN_ENDPOINT" +}; -static const char EndpointType_names[] = - "CONNECTIONS_ENDPOINT" - "PRESENCE_ENDPOINT" - "UNKNOWN_ENDPOINT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EndpointType_entries[] = { - { {EndpointType_names + 0, 20}, 1 }, - { {EndpointType_names + 20, 17}, 2 }, - { {EndpointType_names + 37, 16}, 0 }, +static const ::google::protobuf::internal::EnumEntry EndpointType_entries[] = { + {{&EndpointType_names[0], 20}, 1}, + {{&EndpointType_names[20], 17}, 2}, + {{&EndpointType_names[37], 16}, 0}, }; static const int EndpointType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_ENDPOINT - 0, // 1 -> CONNECTIONS_ENDPOINT - 1, // 2 -> PRESENCE_ENDPOINT + 2, // 0 -> UNKNOWN_ENDPOINT + 0, // 1 -> CONNECTIONS_ENDPOINT + 1, // 2 -> PRESENCE_ENDPOINT }; -const std::string& EndpointType_Name( - EndpointType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EndpointType_entries, - EndpointType_entries_by_number, - 3, EndpointType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EndpointType_entries, - EndpointType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EndpointType_strings[idx].get(); +const ::std::string& EndpointType_Name(EndpointType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EndpointType_entries, EndpointType_entries_by_number, 3, + EndpointType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EndpointType_entries, + EndpointType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EndpointType_strings[idx].get(); } -bool EndpointType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EndpointType* value) { + +bool EndpointType_Parse(::absl::string_view name, EndpointType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EndpointType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class OfflineFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::V1Frame& v1(const OfflineFrame* msg); - static void set_has_v1(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_._has_bits_); }; -const ::location::nearby::connections::V1Frame& -OfflineFrame::_Internal::v1(const OfflineFrame* msg) { - return *msg->v1_; -} -OfflineFrame::OfflineFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +OfflineFrame::OfflineFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, OfflineFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.OfflineFrame) } -OfflineFrame::OfflineFrame(const OfflineFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_v1()) { - v1_ = new ::location::nearby::connections::V1Frame(*from.v1_); - } else { - v1_ = nullptr; - } - version_ = from.version_; +PROTOBUF_NDEBUG_INLINE OfflineFrame::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::connections::OfflineFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +OfflineFrame::OfflineFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const OfflineFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, OfflineFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + OfflineFrame* 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_.v1_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.v1_) + : nullptr; + _impl_.version_ = from._impl_.version_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.OfflineFrame) } +PROTOBUF_NDEBUG_INLINE OfflineFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void OfflineFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&v1_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&v1_)) + sizeof(version_)); +inline void OfflineFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, v1_), + 0, + offsetof(Impl_, version_) - + offsetof(Impl_, v1_) + + sizeof(Impl_::version_)); } - OfflineFrame::~OfflineFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.OfflineFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void OfflineFrame::SharedDtor(MessageLite& self) { + OfflineFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.v1_; + this_._impl_.~Impl_(); } -inline void OfflineFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete v1_; +inline void* PROTOBUF_NONNULL OfflineFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) OfflineFrame(arena); +} +constexpr auto OfflineFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OfflineFrame), + alignof(OfflineFrame)); +} +constexpr auto OfflineFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<41>{ + { + &_OfflineFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &OfflineFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &OfflineFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &OfflineFrame::ByteSizeLong, + &OfflineFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.OfflineFrame", + }; } -void OfflineFrame::ArenaDtor(void* object) { - OfflineFrame* _this = reinterpret_cast< OfflineFrame* >(object); - (void)_this; -} -void OfflineFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OfflineFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<41> OfflineFrame_class_data_ = + OfflineFrame::InternalGenerateClassData_(); -void OfflineFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +OfflineFrame::GetClassData() const { + return OfflineFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +OfflineFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(OfflineFrame, _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), + OfflineFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::OfflineFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.V1Frame v1 = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.v1_)}}, + // optional .location.nearby.connections.OfflineFrame.Version version = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 1, + PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.version_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.OfflineFrame.Version version = 1; + {PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.version_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.V1Frame v1 = 2; + {PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.v1_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::V1Frame>()}, + {0, 1}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void OfflineFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.OfflineFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(v1_ != nullptr); - v1_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.v1_ != nullptr); + _impl_.v1_->Clear(); } - version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* OfflineFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::OfflineFrame_Version_IsValid(val))) { - _internal_set_version(static_cast<::location::nearby::connections::OfflineFrame_Version>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.V1Frame v1 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_v1(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* OfflineFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL OfflineFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const OfflineFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL OfflineFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const OfflineFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.OfflineFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.OfflineFrame.Version version = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_version(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_version(), target); } // optional .location.nearby.connections.V1Frame v1 = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::v1(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.v1_, this_._impl_.v1_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.OfflineFrame) return target; } -size_t OfflineFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OfflineFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t OfflineFrame::ByteSizeLong(const MessageLite& base) { + const OfflineFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t OfflineFrame::ByteSizeLong() const { + const OfflineFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OfflineFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.connections.V1Frame v1 = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *v1_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.v1_); } - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_version()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void OfflineFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void OfflineFrame::MergeFrom(const OfflineFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OfflineFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_v1()->::location::nearby::connections::V1Frame::MergeFrom(from._internal_v1()); - } - if (cached_has_bits & 0x00000002u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; +void OfflineFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OfflineFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.v1_ != nullptr); + if (_this->_impl_.v1_ == nullptr) { + _this->_impl_.v1_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.v1_); + } else { + _this->_impl_.v1_->MergeFrom(*from._impl_.v1_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void OfflineFrame::CopyFrom(const OfflineFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OfflineFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OfflineFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool OfflineFrame::IsInitialized() const { - return true; -} -void OfflineFrame::InternalSwap(OfflineFrame* other) { - using std::swap; +void OfflineFrame::InternalSwap(OfflineFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(OfflineFrame, version_) - + sizeof(OfflineFrame::version_) - - PROTOBUF_FIELD_OFFSET(OfflineFrame, v1_)>( - reinterpret_cast(&v1_), - reinterpret_cast(&other->v1_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.version_) + + sizeof(OfflineFrame::_impl_.version_) + - PROTOBUF_FIELD_OFFSET(OfflineFrame, _impl_.v1_)>( + reinterpret_cast(&_impl_.v1_), + reinterpret_cast(&other->_impl_.v1_)); } -std::string OfflineFrame::GetTypeName() const { - return "location.nearby.connections.OfflineFrame"; -} - - // =================================================================== class V1Frame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static const ::location::nearby::connections::ConnectionRequestFrame& connection_request(const V1Frame* msg); - static void set_has_connection_request(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::ConnectionResponseFrame& connection_response(const V1Frame* msg); - static void set_has_connection_response(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::PayloadTransferFrame& payload_transfer(const V1Frame* msg); - static void set_has_payload_transfer(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation(const V1Frame* msg); - static void set_has_bandwidth_upgrade_negotiation(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::KeepAliveFrame& keep_alive(const V1Frame* msg); - static void set_has_keep_alive(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::DisconnectionFrame& disconnection(const V1Frame* msg); - static void set_has_disconnection(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption(const V1Frame* msg); - static void set_has_paired_key_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::location::nearby::connections::AuthenticationMessageFrame& authentication_message(const V1Frame* msg); - static void set_has_authentication_message(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::location::nearby::connections::AuthenticationResultFrame& authentication_result(const V1Frame* msg); - static void set_has_authentication_result(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::location::nearby::connections::AutoResumeFrame& auto_resume(const V1Frame* msg); - static void set_has_auto_resume(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::location::nearby::connections::AutoReconnectFrame& auto_reconnect(const V1Frame* msg); - static void set_has_auto_reconnect(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static const ::location::nearby::connections::BandwidthUpgradeRetryFrame& bandwidth_upgrade_retry(const V1Frame* msg); - static void set_has_bandwidth_upgrade_retry(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(V1Frame, _impl_._has_bits_); }; -const ::location::nearby::connections::ConnectionRequestFrame& -V1Frame::_Internal::connection_request(const V1Frame* msg) { - return *msg->connection_request_; -} -const ::location::nearby::connections::ConnectionResponseFrame& -V1Frame::_Internal::connection_response(const V1Frame* msg) { - return *msg->connection_response_; -} -const ::location::nearby::connections::PayloadTransferFrame& -V1Frame::_Internal::payload_transfer(const V1Frame* msg) { - return *msg->payload_transfer_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& -V1Frame::_Internal::bandwidth_upgrade_negotiation(const V1Frame* msg) { - return *msg->bandwidth_upgrade_negotiation_; -} -const ::location::nearby::connections::KeepAliveFrame& -V1Frame::_Internal::keep_alive(const V1Frame* msg) { - return *msg->keep_alive_; -} -const ::location::nearby::connections::DisconnectionFrame& -V1Frame::_Internal::disconnection(const V1Frame* msg) { - return *msg->disconnection_; -} -const ::location::nearby::connections::PairedKeyEncryptionFrame& -V1Frame::_Internal::paired_key_encryption(const V1Frame* msg) { - return *msg->paired_key_encryption_; -} -const ::location::nearby::connections::AuthenticationMessageFrame& -V1Frame::_Internal::authentication_message(const V1Frame* msg) { - return *msg->authentication_message_; -} -const ::location::nearby::connections::AuthenticationResultFrame& -V1Frame::_Internal::authentication_result(const V1Frame* msg) { - return *msg->authentication_result_; -} -const ::location::nearby::connections::AutoResumeFrame& -V1Frame::_Internal::auto_resume(const V1Frame* msg) { - return *msg->auto_resume_; -} -const ::location::nearby::connections::AutoReconnectFrame& -V1Frame::_Internal::auto_reconnect(const V1Frame* msg) { - return *msg->auto_reconnect_; -} -const ::location::nearby::connections::BandwidthUpgradeRetryFrame& -V1Frame::_Internal::bandwidth_upgrade_retry(const V1Frame* msg) { - return *msg->bandwidth_upgrade_retry_; -} -V1Frame::V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +V1Frame::V1Frame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, V1Frame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.V1Frame) } -V1Frame::V1Frame(const V1Frame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_connection_request()) { - connection_request_ = new ::location::nearby::connections::ConnectionRequestFrame(*from.connection_request_); - } else { - connection_request_ = nullptr; - } - if (from._internal_has_connection_response()) { - connection_response_ = new ::location::nearby::connections::ConnectionResponseFrame(*from.connection_response_); - } else { - connection_response_ = nullptr; - } - if (from._internal_has_payload_transfer()) { - payload_transfer_ = new ::location::nearby::connections::PayloadTransferFrame(*from.payload_transfer_); - } else { - payload_transfer_ = nullptr; - } - if (from._internal_has_bandwidth_upgrade_negotiation()) { - bandwidth_upgrade_negotiation_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame(*from.bandwidth_upgrade_negotiation_); - } else { - bandwidth_upgrade_negotiation_ = nullptr; - } - if (from._internal_has_keep_alive()) { - keep_alive_ = new ::location::nearby::connections::KeepAliveFrame(*from.keep_alive_); - } else { - keep_alive_ = nullptr; - } - if (from._internal_has_disconnection()) { - disconnection_ = new ::location::nearby::connections::DisconnectionFrame(*from.disconnection_); - } else { - disconnection_ = nullptr; - } - if (from._internal_has_paired_key_encryption()) { - paired_key_encryption_ = new ::location::nearby::connections::PairedKeyEncryptionFrame(*from.paired_key_encryption_); - } else { - paired_key_encryption_ = nullptr; - } - if (from._internal_has_authentication_message()) { - authentication_message_ = new ::location::nearby::connections::AuthenticationMessageFrame(*from.authentication_message_); - } else { - authentication_message_ = nullptr; - } - if (from._internal_has_authentication_result()) { - authentication_result_ = new ::location::nearby::connections::AuthenticationResultFrame(*from.authentication_result_); - } else { - authentication_result_ = nullptr; - } - if (from._internal_has_auto_resume()) { - auto_resume_ = new ::location::nearby::connections::AutoResumeFrame(*from.auto_resume_); - } else { - auto_resume_ = nullptr; - } - if (from._internal_has_auto_reconnect()) { - auto_reconnect_ = new ::location::nearby::connections::AutoReconnectFrame(*from.auto_reconnect_); - } else { - auto_reconnect_ = nullptr; - } - if (from._internal_has_bandwidth_upgrade_retry()) { - bandwidth_upgrade_retry_ = new ::location::nearby::connections::BandwidthUpgradeRetryFrame(*from.bandwidth_upgrade_retry_); - } else { - bandwidth_upgrade_retry_ = nullptr; - } - type_ = from.type_; +PROTOBUF_NDEBUG_INLINE V1Frame::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::connections::V1Frame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +V1Frame::V1Frame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const V1Frame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, V1Frame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + V1Frame* 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_request_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_request_) + : nullptr; + _impl_.connection_response_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_response_) + : nullptr; + _impl_.payload_transfer_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_transfer_) + : nullptr; + _impl_.bandwidth_upgrade_negotiation_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bandwidth_upgrade_negotiation_) + : nullptr; + _impl_.keep_alive_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keep_alive_) + : nullptr; + _impl_.disconnection_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_) + : nullptr; + _impl_.paired_key_encryption_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.paired_key_encryption_) + : nullptr; + _impl_.authentication_message_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.authentication_message_) + : nullptr; + _impl_.authentication_result_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.authentication_result_) + : nullptr; + _impl_.auto_resume_ = (CheckHasBit(cached_has_bits, 0x00000200U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_resume_) + : nullptr; + _impl_.auto_reconnect_ = (CheckHasBit(cached_has_bits, 0x00000400U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_reconnect_) + : nullptr; + _impl_.bandwidth_upgrade_retry_ = (CheckHasBit(cached_has_bits, 0x00000800U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bandwidth_upgrade_retry_) + : nullptr; + _impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.V1Frame) } +PROTOBUF_NDEBUG_INLINE V1Frame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void V1Frame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&connection_request_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&connection_request_)) + sizeof(type_)); +inline void V1Frame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, connection_request_), + 0, + offsetof(Impl_, type_) - + offsetof(Impl_, connection_request_) + + sizeof(Impl_::type_)); } - V1Frame::~V1Frame() { // @@protoc_insertion_point(destructor:location.nearby.connections.V1Frame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void V1Frame::SharedDtor(MessageLite& self) { + V1Frame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.connection_request_; + delete this_._impl_.connection_response_; + delete this_._impl_.payload_transfer_; + delete this_._impl_.bandwidth_upgrade_negotiation_; + delete this_._impl_.keep_alive_; + delete this_._impl_.disconnection_; + delete this_._impl_.paired_key_encryption_; + delete this_._impl_.authentication_message_; + delete this_._impl_.authentication_result_; + delete this_._impl_.auto_resume_; + delete this_._impl_.auto_reconnect_; + delete this_._impl_.bandwidth_upgrade_retry_; + this_._impl_.~Impl_(); } -inline void V1Frame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete connection_request_; - if (this != internal_default_instance()) delete connection_response_; - if (this != internal_default_instance()) delete payload_transfer_; - if (this != internal_default_instance()) delete bandwidth_upgrade_negotiation_; - if (this != internal_default_instance()) delete keep_alive_; - if (this != internal_default_instance()) delete disconnection_; - if (this != internal_default_instance()) delete paired_key_encryption_; - if (this != internal_default_instance()) delete authentication_message_; - if (this != internal_default_instance()) delete authentication_result_; - if (this != internal_default_instance()) delete auto_resume_; - if (this != internal_default_instance()) delete auto_reconnect_; - if (this != internal_default_instance()) delete bandwidth_upgrade_retry_; +inline void* PROTOBUF_NONNULL V1Frame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) V1Frame(arena); +} +constexpr auto V1Frame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(V1Frame), + alignof(V1Frame)); +} +constexpr auto V1Frame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<36>{ + { + &_V1Frame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &V1Frame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &V1Frame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &V1Frame::ByteSizeLong, + &V1Frame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.V1Frame", + }; } -void V1Frame::ArenaDtor(void* object) { - V1Frame* _this = reinterpret_cast< V1Frame* >(object); - (void)_this; -} -void V1Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void V1Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<36> V1Frame_class_data_ = + V1Frame::InternalGenerateClassData_(); -void V1Frame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +V1Frame::GetClassData() const { + return V1Frame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 13, 0, 2> +V1Frame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(V1Frame, _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 + 13, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + V1Frame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::V1Frame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.connections.V1Frame.FrameType type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 12, 12, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.type_)}}, + // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.connection_request_)}}, + // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.connection_response_)}}, + // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.payload_transfer_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; + {::_pbi::TcParser::FastMtS1, + {42, 3, 3, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.bandwidth_upgrade_negotiation_)}}, + // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; + {::_pbi::TcParser::FastMtS1, + {50, 4, 4, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.keep_alive_)}}, + // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; + {::_pbi::TcParser::FastMtS1, + {58, 5, 5, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.disconnection_)}}, + // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; + {::_pbi::TcParser::FastMtS1, + {66, 6, 6, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.paired_key_encryption_)}}, + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + {::_pbi::TcParser::FastMtS1, + {74, 7, 7, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.authentication_message_)}}, + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + {::_pbi::TcParser::FastMtS1, + {82, 8, 8, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.authentication_result_)}}, + // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; + {::_pbi::TcParser::FastMtS1, + {90, 9, 9, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.auto_resume_)}}, + // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; + {::_pbi::TcParser::FastMtS1, + {98, 10, 10, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.auto_reconnect_)}}, + // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; + {::_pbi::TcParser::FastMtS1, + {106, 11, 11, + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.bandwidth_upgrade_retry_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.V1Frame.FrameType type = 1; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.type_), _Internal::kHasBitsOffset + 12, 12, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.connection_request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.connection_response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.payload_transfer_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.bandwidth_upgrade_negotiation_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.keep_alive_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.disconnection_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.paired_key_encryption_), _Internal::kHasBitsOffset + 6, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.authentication_message_), _Internal::kHasBitsOffset + 7, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.authentication_result_), _Internal::kHasBitsOffset + 8, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.auto_resume_), _Internal::kHasBitsOffset + 9, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.auto_reconnect_), _Internal::kHasBitsOffset + 10, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; + {PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.bandwidth_upgrade_retry_), _Internal::kHasBitsOffset + 11, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionRequestFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionResponseFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::KeepAliveFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::DisconnectionFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::PairedKeyEncryptionFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::AuthenticationMessageFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::AuthenticationResultFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::AutoResumeFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::AutoReconnectFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeRetryFrame>()}, + {0, 12}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void V1Frame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.V1Frame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(connection_request_ != nullptr); - connection_request_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.connection_request_ != nullptr); + _impl_.connection_request_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(connection_response_ != nullptr); - connection_response_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.connection_response_ != nullptr); + _impl_.connection_response_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(payload_transfer_ != nullptr); - payload_transfer_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.payload_transfer_ != nullptr); + _impl_.payload_transfer_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(bandwidth_upgrade_negotiation_ != nullptr); - bandwidth_upgrade_negotiation_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.bandwidth_upgrade_negotiation_ != nullptr); + _impl_.bandwidth_upgrade_negotiation_->Clear(); } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(keep_alive_ != nullptr); - keep_alive_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.keep_alive_ != nullptr); + _impl_.keep_alive_->Clear(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(disconnection_ != nullptr); - disconnection_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.disconnection_ != nullptr); + _impl_.disconnection_->Clear(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(paired_key_encryption_ != nullptr); - paired_key_encryption_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.paired_key_encryption_ != nullptr); + _impl_.paired_key_encryption_->Clear(); } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(authentication_message_ != nullptr); - authentication_message_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.authentication_message_ != nullptr); + _impl_.authentication_message_->Clear(); } } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(authentication_result_ != nullptr); - authentication_result_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.authentication_result_ != nullptr); + _impl_.authentication_result_->Clear(); } - if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(auto_resume_ != nullptr); - auto_resume_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(_impl_.auto_resume_ != nullptr); + _impl_.auto_resume_->Clear(); } - if (cached_has_bits & 0x00000400u) { - GOOGLE_DCHECK(auto_reconnect_ != nullptr); - auto_reconnect_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(_impl_.auto_reconnect_ != nullptr); + _impl_.auto_reconnect_->Clear(); } - if (cached_has_bits & 0x00000800u) { - GOOGLE_DCHECK(bandwidth_upgrade_retry_ != nullptr); - bandwidth_upgrade_retry_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(_impl_.bandwidth_upgrade_retry_ != nullptr); + _impl_.bandwidth_upgrade_retry_->Clear(); } } - type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* V1Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::V1Frame_FrameType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::connections::V1Frame_FrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_request(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_response(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_transfer(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_bandwidth_upgrade_negotiation(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_keep_alive(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_disconnection(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_paired_key_encryption(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_authentication_message(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_authentication_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_auto_resume(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_auto_reconnect(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_bandwidth_upgrade_retry(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* V1Frame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL V1Frame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const V1Frame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL V1Frame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const V1Frame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.V1Frame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.V1Frame.FrameType type = 1; - if (cached_has_bits & 0x00001000u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::connection_request(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.connection_request_, this_._impl_.connection_request_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::connection_response(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.connection_response_, this_._impl_.connection_response_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::payload_transfer(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.payload_transfer_, this_._impl_.payload_transfer_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::bandwidth_upgrade_negotiation(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.bandwidth_upgrade_negotiation_, this_._impl_.bandwidth_upgrade_negotiation_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::keep_alive(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.keep_alive_, this_._impl_.keep_alive_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::disconnection(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.disconnection_, this_._impl_.disconnection_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::paired_key_encryption(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.paired_key_encryption_, this_._impl_.paired_key_encryption_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::authentication_message(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.authentication_message_, this_._impl_.authentication_message_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::authentication_result(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.authentication_result_, this_._impl_.authentication_result_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::auto_resume(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.auto_resume_, this_._impl_.auto_resume_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::auto_reconnect(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.auto_reconnect_, this_._impl_.auto_reconnect_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 13, _Internal::bandwidth_upgrade_retry(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 13, *this_._impl_.bandwidth_upgrade_retry_, this_._impl_.bandwidth_upgrade_retry_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.V1Frame) return target; } -size_t V1Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.V1Frame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t V1Frame::ByteSizeLong(const MessageLite& base) { + const V1Frame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t V1Frame::ByteSizeLong() const { + const V1Frame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.V1Frame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_request_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_request_); } - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_response_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_response_); } - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_transfer_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_transfer_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bandwidth_upgrade_negotiation_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.bandwidth_upgrade_negotiation_); } - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *keep_alive_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.keep_alive_); } - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *disconnection_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.disconnection_); } - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *paired_key_encryption_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.paired_key_encryption_); } - // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *authentication_message_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.authentication_message_); } - } - if (cached_has_bits & 0x00001f00u) { + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *authentication_result_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.authentication_result_); } - // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *auto_resume_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auto_resume_); } - // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *auto_reconnect_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auto_reconnect_); } - // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bandwidth_upgrade_retry_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.bandwidth_upgrade_retry_); } - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - if (cached_has_bits & 0x00001000u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void V1Frame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void V1Frame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.V1Frame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void V1Frame::MergeFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.V1Frame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_connection_request()->::location::nearby::connections::ConnectionRequestFrame::MergeFrom(from._internal_connection_request()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.connection_request_ != nullptr); + if (_this->_impl_.connection_request_ == nullptr) { + _this->_impl_.connection_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_request_); + } else { + _this->_impl_.connection_request_->MergeFrom(*from._impl_.connection_request_); + } } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_connection_response()->::location::nearby::connections::ConnectionResponseFrame::MergeFrom(from._internal_connection_response()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.connection_response_ != nullptr); + if (_this->_impl_.connection_response_ == nullptr) { + _this->_impl_.connection_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_response_); + } else { + _this->_impl_.connection_response_->MergeFrom(*from._impl_.connection_response_); + } } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_payload_transfer()->::location::nearby::connections::PayloadTransferFrame::MergeFrom(from._internal_payload_transfer()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.payload_transfer_ != nullptr); + if (_this->_impl_.payload_transfer_ == nullptr) { + _this->_impl_.payload_transfer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_transfer_); + } else { + _this->_impl_.payload_transfer_->MergeFrom(*from._impl_.payload_transfer_); + } } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_bandwidth_upgrade_negotiation()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame::MergeFrom(from._internal_bandwidth_upgrade_negotiation()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.bandwidth_upgrade_negotiation_ != nullptr); + if (_this->_impl_.bandwidth_upgrade_negotiation_ == nullptr) { + _this->_impl_.bandwidth_upgrade_negotiation_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bandwidth_upgrade_negotiation_); + } else { + _this->_impl_.bandwidth_upgrade_negotiation_->MergeFrom(*from._impl_.bandwidth_upgrade_negotiation_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_keep_alive()->::location::nearby::connections::KeepAliveFrame::MergeFrom(from._internal_keep_alive()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.keep_alive_ != nullptr); + if (_this->_impl_.keep_alive_ == nullptr) { + _this->_impl_.keep_alive_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keep_alive_); + } else { + _this->_impl_.keep_alive_->MergeFrom(*from._impl_.keep_alive_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_disconnection()->::location::nearby::connections::DisconnectionFrame::MergeFrom(from._internal_disconnection()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.disconnection_ != nullptr); + if (_this->_impl_.disconnection_ == nullptr) { + _this->_impl_.disconnection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_); + } else { + _this->_impl_.disconnection_->MergeFrom(*from._impl_.disconnection_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_paired_key_encryption()->::location::nearby::connections::PairedKeyEncryptionFrame::MergeFrom(from._internal_paired_key_encryption()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.paired_key_encryption_ != nullptr); + if (_this->_impl_.paired_key_encryption_ == nullptr) { + _this->_impl_.paired_key_encryption_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.paired_key_encryption_); + } else { + _this->_impl_.paired_key_encryption_->MergeFrom(*from._impl_.paired_key_encryption_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_authentication_message()->::location::nearby::connections::AuthenticationMessageFrame::MergeFrom(from._internal_authentication_message()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.authentication_message_ != nullptr); + if (_this->_impl_.authentication_message_ == nullptr) { + _this->_impl_.authentication_message_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.authentication_message_); + } else { + _this->_impl_.authentication_message_->MergeFrom(*from._impl_.authentication_message_); + } } } - if (cached_has_bits & 0x00001f00u) { - if (cached_has_bits & 0x00000100u) { - _internal_mutable_authentication_result()->::location::nearby::connections::AuthenticationResultFrame::MergeFrom(from._internal_authentication_result()); + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(from._impl_.authentication_result_ != nullptr); + if (_this->_impl_.authentication_result_ == nullptr) { + _this->_impl_.authentication_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.authentication_result_); + } else { + _this->_impl_.authentication_result_->MergeFrom(*from._impl_.authentication_result_); + } } - if (cached_has_bits & 0x00000200u) { - _internal_mutable_auto_resume()->::location::nearby::connections::AutoResumeFrame::MergeFrom(from._internal_auto_resume()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(from._impl_.auto_resume_ != nullptr); + if (_this->_impl_.auto_resume_ == nullptr) { + _this->_impl_.auto_resume_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_resume_); + } else { + _this->_impl_.auto_resume_->MergeFrom(*from._impl_.auto_resume_); + } } - if (cached_has_bits & 0x00000400u) { - _internal_mutable_auto_reconnect()->::location::nearby::connections::AutoReconnectFrame::MergeFrom(from._internal_auto_reconnect()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(from._impl_.auto_reconnect_ != nullptr); + if (_this->_impl_.auto_reconnect_ == nullptr) { + _this->_impl_.auto_reconnect_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_reconnect_); + } else { + _this->_impl_.auto_reconnect_->MergeFrom(*from._impl_.auto_reconnect_); + } } - if (cached_has_bits & 0x00000800u) { - _internal_mutable_bandwidth_upgrade_retry()->::location::nearby::connections::BandwidthUpgradeRetryFrame::MergeFrom(from._internal_bandwidth_upgrade_retry()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(from._impl_.bandwidth_upgrade_retry_ != nullptr); + if (_this->_impl_.bandwidth_upgrade_retry_ == nullptr) { + _this->_impl_.bandwidth_upgrade_retry_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bandwidth_upgrade_retry_); + } else { + _this->_impl_.bandwidth_upgrade_retry_->MergeFrom(*from._impl_.bandwidth_upgrade_retry_); + } } - if (cached_has_bits & 0x00001000u) { - type_ = from.type_; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_impl_.type_ = from._impl_.type_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void V1Frame::CopyFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.V1Frame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.V1Frame) if (&from == this) return; Clear(); MergeFrom(from); } -bool V1Frame::IsInitialized() const { - return true; -} -void V1Frame::InternalSwap(V1Frame* other) { - using std::swap; +void V1Frame::InternalSwap(V1Frame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(V1Frame, type_) - + sizeof(V1Frame::type_) - - PROTOBUF_FIELD_OFFSET(V1Frame, connection_request_)>( - reinterpret_cast(&connection_request_), - reinterpret_cast(&other->connection_request_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.type_) + + sizeof(V1Frame::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(V1Frame, _impl_.connection_request_)>( + reinterpret_cast(&_impl_.connection_request_), + reinterpret_cast(&other->_impl_.connection_request_)); } -std::string V1Frame::GetTypeName() const { - return "location.nearby.connections.V1Frame"; -} - - // =================================================================== class ConnectionRequestFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endpoint_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_handshake_data(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_nonce(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_endpoint_info(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::MediumMetadata& medium_metadata(const ConnectionRequestFrame* msg); - static void set_has_medium_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_keep_alive_interval_millis(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_keep_alive_timeout_millis(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_device_info(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::ConnectionsDevice& connections_device(const ConnectionRequestFrame* msg); - static const ::location::nearby::connections::PresenceDevice& presence_device(const ConnectionRequestFrame* msg); - static void set_has_connection_mode(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static const ::location::nearby::connections::LocationHint& location_hint(const ConnectionRequestFrame* msg); - static void set_has_location_hint(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::location::nearby::connections::ConnectionRequestFrame, _impl_._oneof_case_); }; -const ::location::nearby::connections::MediumMetadata& -ConnectionRequestFrame::_Internal::medium_metadata(const ConnectionRequestFrame* msg) { - return *msg->medium_metadata_; -} -const ::location::nearby::connections::ConnectionsDevice& -ConnectionRequestFrame::_Internal::connections_device(const ConnectionRequestFrame* msg) { - return *msg->Device_.connections_device_; -} -const ::location::nearby::connections::PresenceDevice& -ConnectionRequestFrame::_Internal::presence_device(const ConnectionRequestFrame* msg) { - return *msg->Device_.presence_device_; -} -const ::location::nearby::connections::LocationHint& -ConnectionRequestFrame::_Internal::location_hint(const ConnectionRequestFrame* msg) { - return *msg->location_hint_; -} -void ConnectionRequestFrame::set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void ConnectionRequestFrame::set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE connections_device) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Device(); if (connections_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionsDevice>::GetOwningArena(connections_device); + ::google::protobuf::Arena* submessage_arena = connections_device->GetArena(); if (message_arena != submessage_arena) { - connections_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connections_device, submessage_arena); + connections_device = ::google::protobuf::internal::GetOwnedMessage(message_arena, connections_device, submessage_arena); } set_has_connections_device(); - Device_.connections_device_ = connections_device; + _impl_.Device_.connections_device_ = connections_device; } // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.connections_device) } -void ConnectionRequestFrame::set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void ConnectionRequestFrame::set_allocated_presence_device(::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE presence_device) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Device(); if (presence_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PresenceDevice>::GetOwningArena(presence_device); + ::google::protobuf::Arena* submessage_arena = presence_device->GetArena(); if (message_arena != submessage_arena) { - presence_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, presence_device, submessage_arena); + presence_device = ::google::protobuf::internal::GetOwnedMessage(message_arena, presence_device, submessage_arena); } set_has_presence_device(); - Device_.presence_device_ = presence_device; + _impl_.Device_.presence_device_ = presence_device; } // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.presence_device) } -ConnectionRequestFrame::ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - mediums_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ConnectionRequestFrame::ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionRequestFrame) } -ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - mediums_(from.mediums_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_name()) { - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_name(), - GetArenaForAllocation()); - } - handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_handshake_data()) { - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_handshake_data(), - GetArenaForAllocation()); - } - endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_info()) { - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_info(), - GetArenaForAllocation()); - } - device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_info()) { - device_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_info(), - GetArenaForAllocation()); - } - if (from._internal_has_medium_metadata()) { - medium_metadata_ = new ::location::nearby::connections::MediumMetadata(*from.medium_metadata_); - } else { - medium_metadata_ = nullptr; - } - if (from._internal_has_location_hint()) { - location_hint_ = new ::location::nearby::connections::LocationHint(*from.location_hint_); - } else { - location_hint_ = nullptr; - } - ::memcpy(&nonce_, &from.nonce_, - static_cast(reinterpret_cast(&connection_mode_) - - reinterpret_cast(&nonce_)) + sizeof(connection_mode_)); - clear_has_Device(); - switch (from.Device_case()) { - case kConnectionsDevice: { - _internal_mutable_connections_device()->::location::nearby::connections::ConnectionsDevice::MergeFrom(from._internal_connections_device()); +PROTOBUF_NDEBUG_INLINE ConnectionRequestFrame::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::connections::ConnectionRequestFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + mediums_{visibility, arena, from.mediums_}, + endpoint_id_(arena, from.endpoint_id_), + endpoint_name_(arena, from.endpoint_name_), + handshake_data_(arena, from.handshake_data_), + endpoint_info_(arena, from.endpoint_info_), + device_info_(arena, from.device_info_), + Device_{}, + _oneof_case_{from._oneof_case_[0]} {} + +ConnectionRequestFrame::ConnectionRequestFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ConnectionRequestFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ConnectionRequestFrame* 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_.medium_metadata_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_metadata_) + : nullptr; + _impl_.location_hint_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, nonce_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, nonce_), + offsetof(Impl_, connection_mode_) - + offsetof(Impl_, nonce_) + + sizeof(Impl_::connection_mode_)); + switch (Device_case()) { + case DEVICE_NOT_SET: break; - } - case kPresenceDevice: { - _internal_mutable_presence_device()->::location::nearby::connections::PresenceDevice::MergeFrom(from._internal_presence_device()); - break; - } - case DEVICE_NOT_SET: { - break; - } + case kConnectionsDevice: + _impl_.Device_.connections_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Device_.connections_device_); + break; + case kPresenceDevice: + _impl_.Device_.presence_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Device_.presence_device_); + break; } + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionRequestFrame) } +PROTOBUF_NDEBUG_INLINE ConnectionRequestFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + mediums_{visibility, arena}, + endpoint_id_(arena), + endpoint_name_(arena), + handshake_data_(arena), + endpoint_info_(arena), + device_info_(arena), + Device_{}, + _oneof_case_{} {} -inline void ConnectionRequestFrame::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&medium_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&connection_mode_) - - reinterpret_cast(&medium_metadata_)) + sizeof(connection_mode_)); -clear_has_Device(); +inline void ConnectionRequestFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, medium_metadata_), + 0, + offsetof(Impl_, connection_mode_) - + offsetof(Impl_, medium_metadata_) + + sizeof(Impl_::connection_mode_)); } - ConnectionRequestFrame::~ConnectionRequestFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionRequestFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void ConnectionRequestFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - handshake_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete medium_metadata_; - if (this != internal_default_instance()) delete location_hint_; - if (has_Device()) { - clear_Device(); +inline void ConnectionRequestFrame::SharedDtor(MessageLite& self) { + ConnectionRequestFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void ConnectionRequestFrame::ArenaDtor(void* object) { - ConnectionRequestFrame* _this = reinterpret_cast< ConnectionRequestFrame* >(object); - (void)_this; -} -void ConnectionRequestFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionRequestFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.endpoint_name_.Destroy(); + this_._impl_.handshake_data_.Destroy(); + this_._impl_.endpoint_info_.Destroy(); + this_._impl_.device_info_.Destroy(); + delete this_._impl_.medium_metadata_; + delete this_._impl_.location_hint_; + if (this_.has_Device()) { + this_.clear_Device(); + } + this_._impl_.~Impl_(); } void ConnectionRequestFrame::clear_Device() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.connections.ConnectionRequestFrame) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (Device_case()) { case kConnectionsDevice: { - if (GetArenaForAllocation() == nullptr) { - delete Device_.connections_device_; + if (GetArena() == nullptr) { + delete _impl_.Device_.connections_device_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Device_.connections_device_ != nullptr) { + _impl_.Device_.connections_device_->Clear(); + } } break; } case kPresenceDevice: { - if (GetArenaForAllocation() == nullptr) { - delete Device_.presence_device_; + if (GetArena() == nullptr) { + delete _impl_.Device_.presence_device_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Device_.presence_device_ != nullptr) { + _impl_.Device_.presence_device_->Clear(); + } } break; } @@ -3377,12507 +3478,13635 @@ void ConnectionRequestFrame::clear_Device() { break; } } - _oneof_case_[0] = DEVICE_NOT_SET; + _impl_._oneof_case_[0] = DEVICE_NOT_SET; } -void ConnectionRequestFrame::Clear() { +inline void* PROTOBUF_NONNULL ConnectionRequestFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConnectionRequestFrame(arena); +} +constexpr auto ConnectionRequestFrame::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.mediums_) + + decltype(ConnectionRequestFrame::_impl_.mediums_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ConnectionRequestFrame), alignof(ConnectionRequestFrame), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ConnectionRequestFrame::PlacementNew_, + sizeof(ConnectionRequestFrame), + alignof(ConnectionRequestFrame)); + } +} +constexpr auto ConnectionRequestFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<51>{ + { + &_ConnectionRequestFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConnectionRequestFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionRequestFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionRequestFrame::ByteSizeLong, + &ConnectionRequestFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.ConnectionRequestFrame", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<51> ConnectionRequestFrame_class_data_ = + ConnectionRequestFrame::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConnectionRequestFrame::GetClassData() const { + return ConnectionRequestFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 15, 6, 0, 2> +ConnectionRequestFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _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 + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ConnectionRequestFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionRequestFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_id_)}}, + // optional string endpoint_name = 2; + {::_pbi::TcParser::FastBS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_name_)}}, + // optional bytes handshake_data = 3; + {::_pbi::TcParser::FastBS1, + {26, 3, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.handshake_data_)}}, + // optional int32 nonce = 4; + {::_pbi::TcParser::FastV32S1, + {32, 8, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.nonce_)}}, + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; + {::_pbi::TcParser::FastEr0R1, + {40, 0, 13, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.mediums_)}}, + // optional bytes endpoint_info = 6; + {::_pbi::TcParser::FastBS1, + {50, 4, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_info_)}}, + // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; + {::_pbi::TcParser::FastMtS1, + {58, 6, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.medium_metadata_)}}, + // optional int32 keep_alive_interval_millis = 8; + {::_pbi::TcParser::FastV32S1, + {64, 9, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.keep_alive_interval_millis_)}}, + // optional int32 keep_alive_timeout_millis = 9; + {::_pbi::TcParser::FastV32S1, + {72, 10, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.keep_alive_timeout_millis_)}}, + // optional int32 device_type = 10 [default = 0, deprecated = true]; + {::_pbi::TcParser::FastV32S1, + {80, 11, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.device_type_)}}, + // optional bytes device_info = 11 [deprecated = true]; + {::_pbi::TcParser::FastBS1, + {90, 5, 0, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.device_info_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; + {::_pbi::TcParser::FastEr0S1, + {112, 12, 1, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.connection_mode_)}}, + // optional .location.nearby.connections.LocationHint location_hint = 15; + {::_pbi::TcParser::FastMtS1, + {122, 7, 3, + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.location_hint_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string endpoint_name = 2; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes handshake_data = 3; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.handshake_data_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 nonce = 4; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.nonce_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.mediums_), _Internal::kHasBitsOffset + 0, 4, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // optional bytes endpoint_info = 6; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.endpoint_info_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.medium_metadata_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 keep_alive_interval_millis = 8; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.keep_alive_interval_millis_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 keep_alive_timeout_millis = 9; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.keep_alive_timeout_millis_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 device_type = 10 [default = 0, deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.device_type_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes device_info = 11 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.device_info_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .location.nearby.connections.ConnectionsDevice connections_device = 12; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.Device_.connections_device_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.connections.PresenceDevice presence_device = 13; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.Device_.presence_device_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.connection_mode_), _Internal::kHasBitsOffset + 12, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.LocationHint location_hint = 15; + {PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.location_hint_), _Internal::kHasBitsOffset + 7, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::MediumMetadata>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionsDevice>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::PresenceDevice>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::LocationHint>()}, + {0, 13}, + {0, 1}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ConnectionRequestFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - mediums_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.mediums_.Clear(); } - if (cached_has_bits & 0x00000002u) { - endpoint_name_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - handshake_data_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.endpoint_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - endpoint_info_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.handshake_data_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000010u) { - device_info_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.endpoint_info_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(medium_metadata_ != nullptr); - medium_metadata_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.device_info_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(location_hint_ != nullptr); - location_hint_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.medium_metadata_ != nullptr); + _impl_.medium_metadata_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.location_hint_ != nullptr); + _impl_.location_hint_->Clear(); } } - nonce_ = 0; - if (cached_has_bits & 0x00000f00u) { - ::memset(&keep_alive_interval_millis_, 0, static_cast( - reinterpret_cast(&connection_mode_) - - reinterpret_cast(&keep_alive_interval_millis_)) + sizeof(connection_mode_)); + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + ::memset(&_impl_.nonce_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.connection_mode_) - + reinterpret_cast(&_impl_.nonce_)) + sizeof(_impl_.connection_mode_)); } clear_Device(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string endpoint_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_endpoint_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes handshake_data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_handshake_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 nonce = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_nonce(&has_bits); - nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(val))) { - _internal_add_mediums(static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr)); - } else if (static_cast(tag) == 42) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_mediums(), ptr, ctx, ::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid, &_internal_metadata_, 5); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes endpoint_info = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_endpoint_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_medium_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 keep_alive_interval_millis = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_keep_alive_interval_millis(&has_bits); - keep_alive_interval_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 keep_alive_timeout_millis = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_keep_alive_timeout_millis(&has_bits); - keep_alive_timeout_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 device_type = 10 [default = 0, deprecated = true]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_device_type(&has_bits); - device_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes device_info = 11 [deprecated = true]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - auto str = _internal_mutable_device_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.connections.ConnectionsDevice connections_device = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_connections_device(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.connections.PresenceDevice presence_device = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_presence_device(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_IsValid(val))) { - _internal_set_connection_mode(static_cast<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationHint location_hint = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr = ctx->ParseMessage(_internal_mutable_location_hint(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionRequestFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConnectionRequestFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConnectionRequestFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string endpoint_name = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_endpoint_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_endpoint_name(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional bytes handshake_data = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_handshake_data(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_handshake_data(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional int32 nonce = 4; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_nonce(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_nonce(), target); } // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - for (int i = 0, n = this->_internal_mediums_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_mediums(i), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_mediums_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(this_._internal_mediums().Get(i)), + target); + } } // optional bytes endpoint_info = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_endpoint_info(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + const ::std::string& _s = this_._internal_endpoint_info(); + target = stream->WriteBytesMaybeAliased(6, _s, target); } // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::medium_metadata(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.medium_metadata_, this_._impl_.medium_metadata_->GetCachedSize(), target, + stream); } // optional int32 keep_alive_interval_millis = 8; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_keep_alive_interval_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_keep_alive_interval_millis(), target); } // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_keep_alive_timeout_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_keep_alive_timeout_millis(), target); } // optional int32 device_type = 10 [default = 0, deprecated = true]; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_device_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( + stream, this_._internal_device_type(), target); } // optional bytes device_info = 11 [deprecated = true]; - if (cached_has_bits & 0x00000010u) { - target = stream->WriteBytesMaybeAliased( - 11, this->_internal_device_info(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_device_info(); + target = stream->WriteBytesMaybeAliased(11, _s, target); } - switch (Device_case()) { + switch (this_.Device_case()) { case kConnectionsDevice: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::connections_device(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.Device_.connections_device_, this_._impl_.Device_.connections_device_->GetCachedSize(), target, + stream); break; } case kPresenceDevice: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 13, _Internal::presence_device(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 13, *this_._impl_.Device_.presence_device_, this_._impl_.Device_.presence_device_->GetCachedSize(), target, + stream); break; } - default: ; + default: + break; } // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 14, this->_internal_connection_mode(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 14, this_._internal_connection_mode(), target); } // optional .location.nearby.connections.LocationHint location_hint = 15; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 15, _Internal::location_hint(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 15, *this_._impl_.location_hint_, this_._impl_.location_hint_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ConnectionRequestFrame) return target; } -size_t ConnectionRequestFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionRequestFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionRequestFrame::ByteSizeLong(const MessageLite& base) { + const ConnectionRequestFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ConnectionRequestFrame::ByteSizeLong() const { + const ConnectionRequestFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionRequestFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_mediums_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_mediums(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_mediums()); + ::size_t tag_size = ::size_t{1} * + ::_pbi::FromIntSize(this_._internal_mediums_size()); + total_size += data_size + tag_size; } - total_size += (1UL * count) + data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional string endpoint_name = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_name()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_name()); } - // optional bytes handshake_data = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_handshake_data()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_handshake_data()); } - // optional bytes endpoint_info = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_endpoint_info()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_endpoint_info()); } - // optional bytes device_info = 11 [deprecated = true]; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_device_info()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_device_info()); } - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *medium_metadata_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.medium_metadata_); } - // optional .location.nearby.connections.LocationHint location_hint = 15; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *location_hint_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.location_hint_); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { // optional int32 nonce = 4; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_nonce()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_nonce()); } - - } - if (cached_has_bits & 0x00000f00u) { // optional int32 keep_alive_interval_millis = 8; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_interval_millis()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_keep_alive_interval_millis()); } - // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_timeout_millis()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_keep_alive_timeout_millis()); } - // optional int32 device_type = 10 [default = 0, deprecated = true]; - if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_type()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_device_type()); } - // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_mode()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_mode()); } - } - switch (Device_case()) { + switch (this_.Device_case()) { // .location.nearby.connections.ConnectionsDevice connections_device = 12; case kConnectionsDevice: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Device_.connections_device_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Device_.connections_device_); break; } // .location.nearby.connections.PresenceDevice presence_device = 13; case kPresenceDevice: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Device_.presence_device_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Device_.presence_device_); break; } case DEVICE_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionRequestFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void ConnectionRequestFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionRequestFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ConnectionRequestFrame::MergeFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionRequestFrame) - GOOGLE_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_mediums()->MergeFrom(from._internal_mediums()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_endpoint_name(from._internal_endpoint_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_handshake_data(from._internal_handshake_data()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_set_endpoint_info(from._internal_endpoint_info()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_device_info(from._internal_device_info()); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.medium_metadata_ != nullptr); + if (_this->_impl_.medium_metadata_ == nullptr) { + _this->_impl_.medium_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_metadata_); + } else { + _this->_impl_.medium_metadata_->MergeFrom(*from._impl_.medium_metadata_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.location_hint_ != nullptr); + if (_this->_impl_.location_hint_ == nullptr) { + _this->_impl_.location_hint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_); + } else { + _this->_impl_.location_hint_->MergeFrom(*from._impl_.location_hint_); + } + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.nonce_ = from._impl_.nonce_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.keep_alive_interval_millis_ = from._impl_.keep_alive_interval_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.keep_alive_timeout_millis_ = from._impl_.keep_alive_timeout_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_impl_.connection_mode_ = from._impl_.connection_mode_; + } + } + _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_Device(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } - mediums_.MergeFrom(from.mediums_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_endpoint_name(from._internal_endpoint_name()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_handshake_data(from._internal_handshake_data()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_endpoint_info(from._internal_endpoint_info()); - } - if (cached_has_bits & 0x00000010u) { - _internal_set_device_info(from._internal_device_info()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_medium_metadata()->::location::nearby::connections::MediumMetadata::MergeFrom(from._internal_medium_metadata()); - } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_location_hint()->::location::nearby::connections::LocationHint::MergeFrom(from._internal_location_hint()); - } - if (cached_has_bits & 0x00000080u) { - nonce_ = from.nonce_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - keep_alive_interval_millis_ = from.keep_alive_interval_millis_; - } - if (cached_has_bits & 0x00000200u) { - keep_alive_timeout_millis_ = from.keep_alive_timeout_millis_; - } - if (cached_has_bits & 0x00000400u) { - device_type_ = from.device_type_; - } - if (cached_has_bits & 0x00000800u) { - connection_mode_ = from.connection_mode_; - } - _has_bits_[0] |= cached_has_bits; - } - switch (from.Device_case()) { - case kConnectionsDevice: { - _internal_mutable_connections_device()->::location::nearby::connections::ConnectionsDevice::MergeFrom(from._internal_connections_device()); - break; - } - case kPresenceDevice: { - _internal_mutable_presence_device()->::location::nearby::connections::PresenceDevice::MergeFrom(from._internal_presence_device()); - break; - } - case DEVICE_NOT_SET: { - break; + switch (oneof_from_case) { + case kConnectionsDevice: { + if (oneof_needs_init) { + _this->_impl_.Device_.connections_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Device_.connections_device_); + } else { + _this->_impl_.Device_.connections_device_->MergeFrom(*from._impl_.Device_.connections_device_); + } + break; + } + case kPresenceDevice: { + if (oneof_needs_init) { + _this->_impl_.Device_.presence_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Device_.presence_device_); + } else { + _this->_impl_.Device_.presence_device_->MergeFrom(*from._impl_.Device_.presence_device_); + } + break; + } + case DEVICE_NOT_SET: + break; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ConnectionRequestFrame::CopyFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionRequestFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionRequestFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionRequestFrame::IsInitialized() const { - return true; -} -void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - mediums_.InternalSwap(&other->mediums_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_name_, lhs_arena, - &other->endpoint_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &handshake_data_, lhs_arena, - &other->handshake_data_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_info_, lhs_arena, - &other->endpoint_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_info_, lhs_arena, - &other->device_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, connection_mode_) - + sizeof(ConnectionRequestFrame::connection_mode_) - - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, medium_metadata_)>( - reinterpret_cast(&medium_metadata_), - reinterpret_cast(&other->medium_metadata_)); - swap(Device_, other->Device_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.mediums_.InternalSwap(&other->_impl_.mediums_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_name_, &other->_impl_.endpoint_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.handshake_data_, &other->_impl_.handshake_data_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_info_, &other->_impl_.endpoint_info_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_info_, &other->_impl_.device_info_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.connection_mode_) + + sizeof(ConnectionRequestFrame::_impl_.connection_mode_) + - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_.medium_metadata_)>( + reinterpret_cast(&_impl_.medium_metadata_), + reinterpret_cast(&other->_impl_.medium_metadata_)); + swap(_impl_.Device_, other->_impl_.Device_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string ConnectionRequestFrame::GetTypeName() const { - return "location.nearby.connections.ConnectionRequestFrame"; -} - - // =================================================================== class ConnectionResponseFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_handshake_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_response(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::OsInfo& os_info(const ConnectionResponseFrame* msg); - static void set_has_os_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_multiplex_socket_bitmask(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_nearby_connections_version(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_safe_to_disconnect_version(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::location::nearby::connections::LocationHint& location_hint(const ConnectionResponseFrame* msg); - static void set_has_location_hint(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_keep_alive_timeout_millis(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_); }; -const ::location::nearby::connections::OsInfo& -ConnectionResponseFrame::_Internal::os_info(const ConnectionResponseFrame* msg) { - return *msg->os_info_; -} -const ::location::nearby::connections::LocationHint& -ConnectionResponseFrame::_Internal::location_hint(const ConnectionResponseFrame* msg) { - return *msg->location_hint_; -} -ConnectionResponseFrame::ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ConnectionResponseFrame::ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionResponseFrame) } -ConnectionResponseFrame::ConnectionResponseFrame(const ConnectionResponseFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_handshake_data()) { - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_handshake_data(), - GetArenaForAllocation()); - } - if (from._internal_has_os_info()) { - os_info_ = new ::location::nearby::connections::OsInfo(*from.os_info_); - } else { - os_info_ = nullptr; - } - if (from._internal_has_location_hint()) { - location_hint_ = new ::location::nearby::connections::LocationHint(*from.location_hint_); - } else { - location_hint_ = nullptr; - } - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&keep_alive_timeout_millis_) - - reinterpret_cast(&status_)) + sizeof(keep_alive_timeout_millis_)); +PROTOBUF_NDEBUG_INLINE ConnectionResponseFrame::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::connections::ConnectionResponseFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + handshake_data_(arena, from.handshake_data_) {} + +ConnectionResponseFrame::ConnectionResponseFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ConnectionResponseFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ConnectionResponseFrame* 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_.os_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.os_info_) + : nullptr; + _impl_.location_hint_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, status_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, status_), + offsetof(Impl_, keep_alive_timeout_millis_) - + offsetof(Impl_, status_) + + sizeof(Impl_::keep_alive_timeout_millis_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionResponseFrame) } +PROTOBUF_NDEBUG_INLINE ConnectionResponseFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + handshake_data_(arena) {} -inline void ConnectionResponseFrame::SharedCtor() { -handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&os_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&keep_alive_timeout_millis_) - - reinterpret_cast(&os_info_)) + sizeof(keep_alive_timeout_millis_)); +inline void ConnectionResponseFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, os_info_), + 0, + offsetof(Impl_, keep_alive_timeout_millis_) - + offsetof(Impl_, os_info_) + + sizeof(Impl_::keep_alive_timeout_millis_)); } - ConnectionResponseFrame::~ConnectionResponseFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionResponseFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionResponseFrame::SharedDtor(MessageLite& self) { + ConnectionResponseFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.handshake_data_.Destroy(); + delete this_._impl_.os_info_; + delete this_._impl_.location_hint_; + this_._impl_.~Impl_(); } -inline void ConnectionResponseFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - handshake_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete os_info_; - if (this != internal_default_instance()) delete location_hint_; +inline void* PROTOBUF_NONNULL ConnectionResponseFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConnectionResponseFrame(arena); +} +constexpr auto ConnectionResponseFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionResponseFrame), + alignof(ConnectionResponseFrame)); +} +constexpr auto ConnectionResponseFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<52>{ + { + &_ConnectionResponseFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConnectionResponseFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionResponseFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionResponseFrame::ByteSizeLong, + &ConnectionResponseFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.ConnectionResponseFrame", + }; } -void ConnectionResponseFrame::ArenaDtor(void* object) { - ConnectionResponseFrame* _this = reinterpret_cast< ConnectionResponseFrame* >(object); - (void)_this; -} -void ConnectionResponseFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionResponseFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<52> ConnectionResponseFrame_class_data_ = + ConnectionResponseFrame::InternalGenerateClassData_(); -void ConnectionResponseFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConnectionResponseFrame::GetClassData() const { + return ConnectionResponseFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 3, 0, 2> +ConnectionResponseFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _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 + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ConnectionResponseFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionResponseFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int32 status = 1 [deprecated = true]; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.status_)}}, + // optional bytes handshake_data = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.handshake_data_)}}, + // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 4, 2, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.response_)}}, + // optional .location.nearby.connections.OsInfo os_info = 4; + {::_pbi::TcParser::FastMtS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_)}}, + // optional int32 multiplex_socket_bitmask = 5; + {::_pbi::TcParser::FastV32S1, + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.multiplex_socket_bitmask_)}}, + // optional int32 nearby_connections_version = 6 [deprecated = true]; + {::_pbi::TcParser::FastV32S1, + {48, 6, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.nearby_connections_version_)}}, + // optional int32 safe_to_disconnect_version = 7; + {::_pbi::TcParser::FastV32S1, + {56, 7, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.safe_to_disconnect_version_)}}, + // optional .location.nearby.connections.LocationHint location_hint = 8; + {::_pbi::TcParser::FastMtS1, + {66, 2, 1, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.location_hint_)}}, + // optional int32 keep_alive_timeout_millis = 9; + {::_pbi::TcParser::FastV32S1, + {72, 8, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 status = 1 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.status_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes handshake_data = 2; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.handshake_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.response_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.OsInfo os_info = 4; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 multiplex_socket_bitmask = 5; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.multiplex_socket_bitmask_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 nearby_connections_version = 6 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.nearby_connections_version_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 safe_to_disconnect_version = 7; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.safe_to_disconnect_version_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .location.nearby.connections.LocationHint location_hint = 8; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.location_hint_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 keep_alive_timeout_millis = 9; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::OsInfo>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::LocationHint>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - handshake_data_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.handshake_data_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(os_info_ != nullptr); - os_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.os_info_ != nullptr); + _impl_.os_info_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(location_hint_ != nullptr); - location_hint_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.location_hint_ != nullptr); + _impl_.location_hint_->Clear(); } } - if (cached_has_bits & 0x000000f8u) { - ::memset(&status_, 0, static_cast( - reinterpret_cast(&safe_to_disconnect_version_) - - reinterpret_cast(&status_)) + sizeof(safe_to_disconnect_version_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.safe_to_disconnect_version_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.safe_to_disconnect_version_)); } - keep_alive_timeout_millis_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.keep_alive_timeout_millis_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionResponseFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 status = 1 [deprecated = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_status(&has_bits); - status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes handshake_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_handshake_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_IsValid(val))) { - _internal_set_response(static_cast<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.OsInfo os_info = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_os_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 multiplex_socket_bitmask = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_multiplex_socket_bitmask(&has_bits); - multiplex_socket_bitmask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 nearby_connections_version = 6 [deprecated = true]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_nearby_connections_version(&has_bits); - nearby_connections_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 safe_to_disconnect_version = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_safe_to_disconnect_version(&has_bits); - safe_to_disconnect_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationHint location_hint = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_location_hint(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 keep_alive_timeout_millis = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_keep_alive_timeout_millis(&has_bits); - keep_alive_timeout_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionResponseFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConnectionResponseFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConnectionResponseFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 status = 1 [deprecated = true]; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_status(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_status(), target); } // optional bytes handshake_data = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_handshake_data(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_handshake_data(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_response(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_response(), target); } // optional .location.nearby.connections.OsInfo os_info = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::os_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.os_info_, this_._impl_.os_info_->GetCachedSize(), target, + stream); } // optional int32 multiplex_socket_bitmask = 5; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_multiplex_socket_bitmask(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_multiplex_socket_bitmask(), target); } // optional int32 nearby_connections_version = 6 [deprecated = true]; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_nearby_connections_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_nearby_connections_version(), target); } // optional int32 safe_to_disconnect_version = 7; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_safe_to_disconnect_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_safe_to_disconnect_version(), target); } // optional .location.nearby.connections.LocationHint location_hint = 8; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::location_hint(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.location_hint_, this_._impl_.location_hint_->GetCachedSize(), target, + stream); } // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_keep_alive_timeout_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_keep_alive_timeout_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ConnectionResponseFrame) return target; } -size_t ConnectionResponseFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionResponseFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionResponseFrame::ByteSizeLong(const MessageLite& base) { + const ConnectionResponseFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ConnectionResponseFrame::ByteSizeLong() const { + const ConnectionResponseFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionResponseFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional bytes handshake_data = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_handshake_data()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_handshake_data()); } - // optional .location.nearby.connections.OsInfo os_info = 4; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *os_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.os_info_); } - // optional .location.nearby.connections.LocationHint location_hint = 8; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *location_hint_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.location_hint_); } - // optional int32 status = 1 [deprecated = true]; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_status()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_status()); } - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_response()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_response()); } - // optional int32 multiplex_socket_bitmask = 5; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_multiplex_socket_bitmask()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_multiplex_socket_bitmask()); } - // optional int32 nearby_connections_version = 6 [deprecated = true]; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_nearby_connections_version()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_nearby_connections_version()); } - // optional int32 safe_to_disconnect_version = 7; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_safe_to_disconnect_version()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_safe_to_disconnect_version()); } - } - // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_timeout_millis()); + { + // optional int32 keep_alive_timeout_millis = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_keep_alive_timeout_millis()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionResponseFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionResponseFrame::MergeFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionResponseFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_handshake_data(from._internal_handshake_data()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_os_info()->::location::nearby::connections::OsInfo::MergeFrom(from._internal_os_info()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_location_hint()->::location::nearby::connections::LocationHint::MergeFrom(from._internal_location_hint()); - } - if (cached_has_bits & 0x00000008u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000010u) { - response_ = from.response_; - } - if (cached_has_bits & 0x00000020u) { - multiplex_socket_bitmask_ = from.multiplex_socket_bitmask_; - } - if (cached_has_bits & 0x00000040u) { - nearby_connections_version_ = from.nearby_connections_version_; - } - if (cached_has_bits & 0x00000080u) { - safe_to_disconnect_version_ = from.safe_to_disconnect_version_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000100u) { - _internal_set_keep_alive_timeout_millis(from._internal_keep_alive_timeout_millis()); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionResponseFrame) + 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_handshake_data(from._internal_handshake_data()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.os_info_ != nullptr); + if (_this->_impl_.os_info_ == nullptr) { + _this->_impl_.os_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.os_info_); + } else { + _this->_impl_.os_info_->MergeFrom(*from._impl_.os_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.location_hint_ != nullptr); + if (_this->_impl_.location_hint_ == nullptr) { + _this->_impl_.location_hint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_); + } else { + _this->_impl_.location_hint_->MergeFrom(*from._impl_.location_hint_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.response_ = from._impl_.response_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.multiplex_socket_bitmask_ = from._impl_.multiplex_socket_bitmask_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.nearby_connections_version_ = from._impl_.nearby_connections_version_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.safe_to_disconnect_version_ = from._impl_.safe_to_disconnect_version_; + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.keep_alive_timeout_millis_ = from._impl_.keep_alive_timeout_millis_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ConnectionResponseFrame::CopyFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionResponseFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionResponseFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionResponseFrame::IsInitialized() const { - return true; -} -void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &handshake_data_, lhs_arena, - &other->handshake_data_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, keep_alive_timeout_millis_) - + sizeof(ConnectionResponseFrame::keep_alive_timeout_millis_) - - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, os_info_)>( - reinterpret_cast(&os_info_), - reinterpret_cast(&other->os_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.handshake_data_, &other->_impl_.handshake_data_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_) + + sizeof(ConnectionResponseFrame::_impl_.keep_alive_timeout_millis_) + - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_)>( + reinterpret_cast(&_impl_.os_info_), + reinterpret_cast(&other->_impl_.os_info_)); } -std::string ConnectionResponseFrame::GetTypeName() const { - return "location.nearby.connections.ConnectionResponseFrame"; -} - - // =================================================================== class PayloadTransferFrame_PayloadHeader::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_total_size(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_is_sensitive(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_file_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_parent_folder(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_last_modified_timestamp_millis(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_._has_bits_); }; -PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_PayloadHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) } -PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_file_name()) { - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_file_name(), - GetArenaForAllocation()); - } - parent_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_parent_folder()) { - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_parent_folder(), - GetArenaForAllocation()); - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&last_modified_timestamp_millis_) - - reinterpret_cast(&id_)) + sizeof(last_modified_timestamp_millis_)); +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame_PayloadHeader::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::connections::PayloadTransferFrame_PayloadHeader& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + file_name_(arena, from.file_name_), + parent_folder_(arena, from.parent_folder_) {} + +PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PayloadTransferFrame_PayloadHeader& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_PayloadHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PayloadTransferFrame_PayloadHeader* 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(&_impl_) + + offsetof(Impl_, id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, id_), + offsetof(Impl_, last_modified_timestamp_millis_) - + offsetof(Impl_, id_) + + sizeof(Impl_::last_modified_timestamp_millis_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) } +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame_PayloadHeader::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + file_name_(arena), + parent_folder_(arena) {} -inline void PayloadTransferFrame_PayloadHeader::SharedCtor() { -file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -parent_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&last_modified_timestamp_millis_) - - reinterpret_cast(&id_)) + sizeof(last_modified_timestamp_millis_)); +inline void PayloadTransferFrame_PayloadHeader::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, id_), + 0, + offsetof(Impl_, last_modified_timestamp_millis_) - + offsetof(Impl_, id_) + + sizeof(Impl_::last_modified_timestamp_millis_)); } - PayloadTransferFrame_PayloadHeader::~PayloadTransferFrame_PayloadHeader() { // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PayloadTransferFrame_PayloadHeader::SharedDtor(MessageLite& self) { + PayloadTransferFrame_PayloadHeader& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.file_name_.Destroy(); + this_._impl_.parent_folder_.Destroy(); + this_._impl_.~Impl_(); } -inline void PayloadTransferFrame_PayloadHeader::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - parent_folder_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PayloadTransferFrame_PayloadHeader(arena); +} +constexpr auto PayloadTransferFrame_PayloadHeader::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PayloadTransferFrame_PayloadHeader), + alignof(PayloadTransferFrame_PayloadHeader)); +} +constexpr auto PayloadTransferFrame_PayloadHeader::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<63>{ + { + &_PayloadTransferFrame_PayloadHeader_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PayloadTransferFrame_PayloadHeader::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PayloadTransferFrame_PayloadHeader::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PayloadTransferFrame_PayloadHeader::ByteSizeLong, + &PayloadTransferFrame_PayloadHeader::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PayloadTransferFrame.PayloadHeader", + }; } -void PayloadTransferFrame_PayloadHeader::ArenaDtor(void* object) { - PayloadTransferFrame_PayloadHeader* _this = reinterpret_cast< PayloadTransferFrame_PayloadHeader* >(object); - (void)_this; -} -void PayloadTransferFrame_PayloadHeader::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_PayloadHeader::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> PayloadTransferFrame_PayloadHeader_class_data_ = + PayloadTransferFrame_PayloadHeader::InternalGenerateClassData_(); -void PayloadTransferFrame_PayloadHeader::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PayloadTransferFrame_PayloadHeader::GetClassData() const { + return PayloadTransferFrame_PayloadHeader_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 1, 0, 2> +PayloadTransferFrame_PayloadHeader::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + PayloadTransferFrame_PayloadHeader_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.id_)}}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 4, 3, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.type_)}}, + // optional int64 total_size = 3; + {::_pbi::TcParser::FastV64S1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.total_size_)}}, + // optional bool is_sensitive = 4; + {::_pbi::TcParser::FastV8S1, + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.is_sensitive_)}}, + // optional string file_name = 5; + {::_pbi::TcParser::FastBS1, + {42, 0, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.file_name_)}}, + // optional string parent_folder = 6; + {::_pbi::TcParser::FastBS1, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.parent_folder_)}}, + // optional int64 last_modified_timestamp_millis = 7; + {::_pbi::TcParser::FastV64S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.last_modified_timestamp_millis_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 id = 1; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.type_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 total_size = 3; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.total_size_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional bool is_sensitive = 4; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.is_sensitive_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string file_name = 5; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.file_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string parent_folder = 6; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.parent_folder_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 last_modified_timestamp_millis = 7; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.last_modified_timestamp_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void PayloadTransferFrame_PayloadHeader::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - file_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.file_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - parent_folder_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.parent_folder_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000007cu) { - ::memset(&id_, 0, static_cast( - reinterpret_cast(&last_modified_timestamp_millis_) - - reinterpret_cast(&id_)) + sizeof(last_modified_timestamp_millis_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) { + ::memset(&_impl_.id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.last_modified_timestamp_millis_) - + reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.last_modified_timestamp_millis_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PayloadTransferFrame_PayloadHeader::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_id(&has_bits); - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 total_size = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_total_size(&has_bits); - total_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_sensitive = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_is_sensitive(&has_bits); - is_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string file_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_file_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string parent_folder = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_parent_folder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 last_modified_timestamp_millis = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_last_modified_timestamp_millis(&has_bits); - last_modified_timestamp_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_PayloadHeader::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PayloadTransferFrame_PayloadHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PayloadTransferFrame_PayloadHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_id(), target); } // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); } // optional int64 total_size = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_total_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_total_size(), target); } // optional bool is_sensitive = 4; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_sensitive(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_sensitive(), target); } // optional string file_name = 5; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_file_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_file_name(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional string parent_folder = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 6, this->_internal_parent_folder(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_parent_folder(); + target = stream->WriteStringMaybeAliased(6, _s, target); } // optional int64 last_modified_timestamp_millis = 7; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_last_modified_timestamp_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( + stream, this_._internal_last_modified_timestamp_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.PayloadHeader) return target; } -size_t PayloadTransferFrame_PayloadHeader::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PayloadTransferFrame_PayloadHeader::ByteSizeLong(const MessageLite& base) { + const PayloadTransferFrame_PayloadHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PayloadTransferFrame_PayloadHeader::ByteSizeLong() const { + const PayloadTransferFrame_PayloadHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000020U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x0000005fU)) { // optional string file_name = 5; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_file_name()); } - // optional string parent_folder = 6; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_parent_folder()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_parent_folder()); } - // optional int64 id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_id()); } - // optional int64 total_size = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_total_size()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_total_size()); } - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - - // optional bool is_sensitive = 4; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - // optional int64 last_modified_timestamp_millis = 7; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_last_modified_timestamp_millis()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_last_modified_timestamp_millis()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PayloadTransferFrame_PayloadHeader::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_PayloadHeader::MergeFrom(const PayloadTransferFrame_PayloadHeader& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_file_name(from._internal_file_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_parent_folder(from._internal_parent_folder()); - } - if (cached_has_bits & 0x00000004u) { - id_ = from.id_; - } - if (cached_has_bits & 0x00000008u) { - total_size_ = from.total_size_; - } - if (cached_has_bits & 0x00000010u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000020u) { - is_sensitive_ = from.is_sensitive_; - } - if (cached_has_bits & 0x00000040u) { - last_modified_timestamp_millis_ = from.last_modified_timestamp_millis_; - } - _has_bits_[0] |= cached_has_bits; +void PayloadTransferFrame_PayloadHeader::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) + 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_file_name(from._internal_file_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_parent_folder(from._internal_parent_folder()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.id_ = from._impl_.id_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.total_size_ = from._impl_.total_size_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.type_ = from._impl_.type_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.is_sensitive_ = from._impl_.is_sensitive_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.last_modified_timestamp_millis_ = from._impl_.last_modified_timestamp_millis_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PayloadTransferFrame_PayloadHeader::CopyFrom(const PayloadTransferFrame_PayloadHeader& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) if (&from == this) return; Clear(); MergeFrom(from); } -bool PayloadTransferFrame_PayloadHeader::IsInitialized() const { - return true; -} -void PayloadTransferFrame_PayloadHeader::InternalSwap(PayloadTransferFrame_PayloadHeader* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PayloadTransferFrame_PayloadHeader::InternalSwap(PayloadTransferFrame_PayloadHeader* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &file_name_, lhs_arena, - &other->file_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &parent_folder_, lhs_arena, - &other->parent_folder_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, last_modified_timestamp_millis_) - + sizeof(PayloadTransferFrame_PayloadHeader::last_modified_timestamp_millis_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, id_)>( - reinterpret_cast(&id_), - reinterpret_cast(&other->id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_name_, &other->_impl_.file_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_folder_, &other->_impl_.parent_folder_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.last_modified_timestamp_millis_) + + sizeof(PayloadTransferFrame_PayloadHeader::_impl_.last_modified_timestamp_millis_) + - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, _impl_.id_)>( + reinterpret_cast(&_impl_.id_), + reinterpret_cast(&other->_impl_.id_)); } -std::string PayloadTransferFrame_PayloadHeader::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.PayloadHeader"; -} - - // =================================================================== class PayloadTransferFrame_PayloadChunk::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_flags(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_offset(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_._has_bits_); }; -PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_PayloadChunk_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) } -PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_body()) { - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArenaForAllocation()); - } - ::memcpy(&offset_, &from.offset_, - static_cast(reinterpret_cast(&index_) - - reinterpret_cast(&offset_)) + sizeof(index_)); +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame_PayloadChunk::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::connections::PayloadTransferFrame_PayloadChunk& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + body_(arena, from.body_) {} + +PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PayloadTransferFrame_PayloadChunk& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_PayloadChunk_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PayloadTransferFrame_PayloadChunk* 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(&_impl_) + + offsetof(Impl_, offset_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, offset_), + offsetof(Impl_, index_) - + offsetof(Impl_, offset_) + + sizeof(Impl_::index_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) } +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame_PayloadChunk::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + body_(arena) {} -inline void PayloadTransferFrame_PayloadChunk::SharedCtor() { -body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&offset_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&index_) - - reinterpret_cast(&offset_)) + sizeof(index_)); +inline void PayloadTransferFrame_PayloadChunk::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, offset_), + 0, + offsetof(Impl_, index_) - + offsetof(Impl_, offset_) + + sizeof(Impl_::index_)); } - PayloadTransferFrame_PayloadChunk::~PayloadTransferFrame_PayloadChunk() { // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PayloadTransferFrame_PayloadChunk::SharedDtor(MessageLite& self) { + PayloadTransferFrame_PayloadChunk& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.body_.Destroy(); + this_._impl_.~Impl_(); } -inline void PayloadTransferFrame_PayloadChunk::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PayloadTransferFrame_PayloadChunk::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PayloadTransferFrame_PayloadChunk(arena); +} +constexpr auto PayloadTransferFrame_PayloadChunk::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PayloadTransferFrame_PayloadChunk), + alignof(PayloadTransferFrame_PayloadChunk)); +} +constexpr auto PayloadTransferFrame_PayloadChunk::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_PayloadTransferFrame_PayloadChunk_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PayloadTransferFrame_PayloadChunk::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PayloadTransferFrame_PayloadChunk::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PayloadTransferFrame_PayloadChunk::ByteSizeLong, + &PayloadTransferFrame_PayloadChunk::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PayloadTransferFrame.PayloadChunk", + }; } -void PayloadTransferFrame_PayloadChunk::ArenaDtor(void* object) { - PayloadTransferFrame_PayloadChunk* _this = reinterpret_cast< PayloadTransferFrame_PayloadChunk* >(object); - (void)_this; -} -void PayloadTransferFrame_PayloadChunk::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_PayloadChunk::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> PayloadTransferFrame_PayloadChunk_class_data_ = + PayloadTransferFrame_PayloadChunk::InternalGenerateClassData_(); -void PayloadTransferFrame_PayloadChunk::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PayloadTransferFrame_PayloadChunk::GetClassData() const { + return PayloadTransferFrame_PayloadChunk_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +PayloadTransferFrame_PayloadChunk::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PayloadTransferFrame_PayloadChunk_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 index = 4; + {::_pbi::TcParser::FastV32S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.index_)}}, + // optional int32 flags = 1; + {::_pbi::TcParser::FastV32S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.flags_)}}, + // optional int64 offset = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.offset_)}}, + // optional bytes body = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 flags = 1; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.flags_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int64 offset = 2; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.offset_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional bytes body = 3; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 index = 4; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.index_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void PayloadTransferFrame_PayloadChunk::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - body_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.body_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { - ::memset(&offset_, 0, static_cast( - reinterpret_cast(&index_) - - reinterpret_cast(&offset_)) + sizeof(index_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) { + ::memset(&_impl_.offset_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.index_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PayloadTransferFrame_PayloadChunk::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 flags = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_flags(&has_bits); - flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 offset = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_offset(&has_bits); - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes body = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 index = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_index(&has_bits); - index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_PayloadChunk::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_PayloadChunk::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PayloadTransferFrame_PayloadChunk& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_PayloadChunk::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PayloadTransferFrame_PayloadChunk& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 flags = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_flags(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_flags(), target); } // optional int64 offset = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_offset(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_offset(), target); } // optional bytes body = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_body(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_body(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional int32 index = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_index(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_index(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.PayloadChunk) return target; } -size_t PayloadTransferFrame_PayloadChunk::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PayloadTransferFrame_PayloadChunk::ByteSizeLong(const MessageLite& base) { + const PayloadTransferFrame_PayloadChunk& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PayloadTransferFrame_PayloadChunk::ByteSizeLong() const { + const PayloadTransferFrame_PayloadChunk& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional bytes body = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body()); } - // optional int64 offset = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_offset()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_offset()); } - // optional int32 flags = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_flags()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_flags()); } - // optional int32 index = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_index()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PayloadTransferFrame_PayloadChunk::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_PayloadChunk::MergeFrom(const PayloadTransferFrame_PayloadChunk& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_body(from._internal_body()); - } - if (cached_has_bits & 0x00000002u) { - offset_ = from.offset_; - } - if (cached_has_bits & 0x00000004u) { - flags_ = from.flags_; - } - if (cached_has_bits & 0x00000008u) { - index_ = from.index_; - } - _has_bits_[0] |= cached_has_bits; +void PayloadTransferFrame_PayloadChunk::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) + 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_body(from._internal_body()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.offset_ = from._impl_.offset_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.flags_ = from._impl_.flags_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.index_ = from._impl_.index_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PayloadTransferFrame_PayloadChunk::CopyFrom(const PayloadTransferFrame_PayloadChunk& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) if (&from == this) return; Clear(); MergeFrom(from); } -bool PayloadTransferFrame_PayloadChunk::IsInitialized() const { - return true; -} -void PayloadTransferFrame_PayloadChunk::InternalSwap(PayloadTransferFrame_PayloadChunk* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PayloadTransferFrame_PayloadChunk::InternalSwap(PayloadTransferFrame_PayloadChunk* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &body_, lhs_arena, - &other->body_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, index_) - + sizeof(PayloadTransferFrame_PayloadChunk::index_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, offset_)>( - reinterpret_cast(&offset_), - reinterpret_cast(&other->offset_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.index_) + + sizeof(PayloadTransferFrame_PayloadChunk::_impl_.index_) + - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, _impl_.offset_)>( + reinterpret_cast(&_impl_.offset_), + reinterpret_cast(&other->_impl_.offset_)); } -std::string PayloadTransferFrame_PayloadChunk::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.PayloadChunk"; -} - - // =================================================================== class PayloadTransferFrame_ControlMessage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_offset(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_._has_bits_); }; -PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_ControlMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) } -PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&offset_, &from.offset_, - static_cast(reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) +PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PayloadTransferFrame_ControlMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_ControlMessage_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 PayloadTransferFrame_ControlMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void PayloadTransferFrame_ControlMessage::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&offset_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); +inline void PayloadTransferFrame_ControlMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, offset_), + 0, + offsetof(Impl_, event_) - + offsetof(Impl_, offset_) + + sizeof(Impl_::event_)); } - PayloadTransferFrame_ControlMessage::~PayloadTransferFrame_ControlMessage() { // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PayloadTransferFrame_ControlMessage::SharedDtor(MessageLite& self) { + PayloadTransferFrame_ControlMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void PayloadTransferFrame_ControlMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL PayloadTransferFrame_ControlMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PayloadTransferFrame_ControlMessage(arena); +} +constexpr auto PayloadTransferFrame_ControlMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PayloadTransferFrame_ControlMessage), + alignof(PayloadTransferFrame_ControlMessage)); +} +constexpr auto PayloadTransferFrame_ControlMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<64>{ + { + &_PayloadTransferFrame_ControlMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PayloadTransferFrame_ControlMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PayloadTransferFrame_ControlMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PayloadTransferFrame_ControlMessage::ByteSizeLong, + &PayloadTransferFrame_ControlMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PayloadTransferFrame.ControlMessage", + }; } -void PayloadTransferFrame_ControlMessage::ArenaDtor(void* object) { - PayloadTransferFrame_ControlMessage* _this = reinterpret_cast< PayloadTransferFrame_ControlMessage* >(object); - (void)_this; -} -void PayloadTransferFrame_ControlMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_ControlMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> PayloadTransferFrame_ControlMessage_class_data_ = + PayloadTransferFrame_ControlMessage::InternalGenerateClassData_(); -void PayloadTransferFrame_ControlMessage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PayloadTransferFrame_ControlMessage::GetClassData() const { + return PayloadTransferFrame_ControlMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +PayloadTransferFrame_ControlMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _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), + PayloadTransferFrame_ControlMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 offset = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.offset_)}}, + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 3, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.event_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.event_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 offset = 2; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.offset_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void PayloadTransferFrame_ControlMessage::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&offset_, 0, static_cast( - reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.offset_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.event_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.event_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PayloadTransferFrame_ControlMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_IsValid(val))) { - _internal_set_event(static_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 offset = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_offset(&has_bits); - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_ControlMessage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_ControlMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PayloadTransferFrame_ControlMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame_ControlMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PayloadTransferFrame_ControlMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event(), target); } // optional int64 offset = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_offset(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_offset(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.ControlMessage) return target; } -size_t PayloadTransferFrame_ControlMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PayloadTransferFrame_ControlMessage::ByteSizeLong(const MessageLite& base) { + const PayloadTransferFrame_ControlMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PayloadTransferFrame_ControlMessage::ByteSizeLong() const { + const PayloadTransferFrame_ControlMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional int64 offset = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_offset()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_offset()); } - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PayloadTransferFrame_ControlMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_ControlMessage::MergeFrom(const PayloadTransferFrame_ControlMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - offset_ = from.offset_; - } - if (cached_has_bits & 0x00000002u) { - event_ = from.event_; - } - _has_bits_[0] |= cached_has_bits; +void PayloadTransferFrame_ControlMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) + 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_.offset_ = from._impl_.offset_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.event_ = from._impl_.event_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PayloadTransferFrame_ControlMessage::CopyFrom(const PayloadTransferFrame_ControlMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool PayloadTransferFrame_ControlMessage::IsInitialized() const { - return true; -} -void PayloadTransferFrame_ControlMessage::InternalSwap(PayloadTransferFrame_ControlMessage* other) { - using std::swap; +void PayloadTransferFrame_ControlMessage::InternalSwap(PayloadTransferFrame_ControlMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, event_) - + sizeof(PayloadTransferFrame_ControlMessage::event_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, offset_)>( - reinterpret_cast(&offset_), - reinterpret_cast(&other->offset_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.event_) + + sizeof(PayloadTransferFrame_ControlMessage::_impl_.event_) + - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, _impl_.offset_)>( + reinterpret_cast(&_impl_.offset_), + reinterpret_cast(&other->_impl_.offset_)); } -std::string PayloadTransferFrame_ControlMessage::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.ControlMessage"; -} - - // =================================================================== class PayloadTransferFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_packet_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header(const PayloadTransferFrame* msg); - static void set_has_payload_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk(const PayloadTransferFrame* msg); - static void set_has_payload_chunk(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& control_message(const PayloadTransferFrame* msg); - static void set_has_control_message(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_._has_bits_); }; -const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& -PayloadTransferFrame::_Internal::payload_header(const PayloadTransferFrame* msg) { - return *msg->payload_header_; -} -const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& -PayloadTransferFrame::_Internal::payload_chunk(const PayloadTransferFrame* msg) { - return *msg->payload_chunk_; -} -const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& -PayloadTransferFrame::_Internal::control_message(const PayloadTransferFrame* msg) { - return *msg->control_message_; -} -PayloadTransferFrame::PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PayloadTransferFrame::PayloadTransferFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame) } -PayloadTransferFrame::PayloadTransferFrame(const PayloadTransferFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_payload_header()) { - payload_header_ = new ::location::nearby::connections::PayloadTransferFrame_PayloadHeader(*from.payload_header_); - } else { - payload_header_ = nullptr; - } - if (from._internal_has_payload_chunk()) { - payload_chunk_ = new ::location::nearby::connections::PayloadTransferFrame_PayloadChunk(*from.payload_chunk_); - } else { - payload_chunk_ = nullptr; - } - if (from._internal_has_control_message()) { - control_message_ = new ::location::nearby::connections::PayloadTransferFrame_ControlMessage(*from.control_message_); - } else { - control_message_ = nullptr; - } - packet_type_ = from.packet_type_; +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame::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::connections::PayloadTransferFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +PayloadTransferFrame::PayloadTransferFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PayloadTransferFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PayloadTransferFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PayloadTransferFrame* 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_.payload_header_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_header_) + : nullptr; + _impl_.payload_chunk_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_chunk_) + : nullptr; + _impl_.control_message_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.control_message_) + : nullptr; + _impl_.packet_type_ = from._impl_.packet_type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame) } +PROTOBUF_NDEBUG_INLINE PayloadTransferFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void PayloadTransferFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&payload_header_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&packet_type_) - - reinterpret_cast(&payload_header_)) + sizeof(packet_type_)); +inline void PayloadTransferFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, payload_header_), + 0, + offsetof(Impl_, packet_type_) - + offsetof(Impl_, payload_header_) + + sizeof(Impl_::packet_type_)); } - PayloadTransferFrame::~PayloadTransferFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PayloadTransferFrame::SharedDtor(MessageLite& self) { + PayloadTransferFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.payload_header_; + delete this_._impl_.payload_chunk_; + delete this_._impl_.control_message_; + this_._impl_.~Impl_(); } -inline void PayloadTransferFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete payload_header_; - if (this != internal_default_instance()) delete payload_chunk_; - if (this != internal_default_instance()) delete control_message_; +inline void* PROTOBUF_NONNULL PayloadTransferFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PayloadTransferFrame(arena); +} +constexpr auto PayloadTransferFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PayloadTransferFrame), + alignof(PayloadTransferFrame)); +} +constexpr auto PayloadTransferFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<49>{ + { + &_PayloadTransferFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PayloadTransferFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PayloadTransferFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PayloadTransferFrame::ByteSizeLong, + &PayloadTransferFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PayloadTransferFrame", + }; } -void PayloadTransferFrame::ArenaDtor(void* object) { - PayloadTransferFrame* _this = reinterpret_cast< PayloadTransferFrame* >(object); - (void)_this; -} -void PayloadTransferFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<49> PayloadTransferFrame_class_data_ = + PayloadTransferFrame::InternalGenerateClassData_(); -void PayloadTransferFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PayloadTransferFrame::GetClassData() const { + return PayloadTransferFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> +PayloadTransferFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + PayloadTransferFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.control_message_)}}, + // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 3, 3, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.packet_type_)}}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.payload_header_)}}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.payload_chunk_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.packet_type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.payload_header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.payload_chunk_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; + {PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.control_message_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::PayloadTransferFrame_ControlMessage>()}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void PayloadTransferFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(payload_header_ != nullptr); - payload_header_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.payload_header_ != nullptr); + _impl_.payload_header_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(payload_chunk_ != nullptr); - payload_chunk_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.payload_chunk_ != nullptr); + _impl_.payload_chunk_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(control_message_ != nullptr); - control_message_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.control_message_ != nullptr); + _impl_.control_message_->Clear(); } } - packet_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.packet_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PayloadTransferFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_PacketType_IsValid(val))) { - _internal_set_packet_type(static_cast<::location::nearby::connections::PayloadTransferFrame_PacketType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_chunk(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_control_message(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PayloadTransferFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PayloadTransferFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PayloadTransferFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_packet_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_packet_type(), target); } // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::payload_header(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.payload_header_, this_._impl_.payload_header_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::payload_chunk(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.payload_chunk_, this_._impl_.payload_chunk_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::control_message(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.control_message_, this_._impl_.control_message_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame) return target; } -size_t PayloadTransferFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PayloadTransferFrame::ByteSizeLong(const MessageLite& base) { + const PayloadTransferFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PayloadTransferFrame::ByteSizeLong() const { + const PayloadTransferFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_header_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_header_); } - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_chunk_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_chunk_); } - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *control_message_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.control_message_); } - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_packet_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_packet_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PayloadTransferFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame::MergeFrom(const PayloadTransferFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_payload_header()->::location::nearby::connections::PayloadTransferFrame_PayloadHeader::MergeFrom(from._internal_payload_header()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_payload_chunk()->::location::nearby::connections::PayloadTransferFrame_PayloadChunk::MergeFrom(from._internal_payload_chunk()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_control_message()->::location::nearby::connections::PayloadTransferFrame_ControlMessage::MergeFrom(from._internal_control_message()); - } - if (cached_has_bits & 0x00000008u) { - packet_type_ = from.packet_type_; - } - _has_bits_[0] |= cached_has_bits; +void PayloadTransferFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.payload_header_ != nullptr); + if (_this->_impl_.payload_header_ == nullptr) { + _this->_impl_.payload_header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_header_); + } else { + _this->_impl_.payload_header_->MergeFrom(*from._impl_.payload_header_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.payload_chunk_ != nullptr); + if (_this->_impl_.payload_chunk_ == nullptr) { + _this->_impl_.payload_chunk_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_chunk_); + } else { + _this->_impl_.payload_chunk_->MergeFrom(*from._impl_.payload_chunk_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.control_message_ != nullptr); + if (_this->_impl_.control_message_ == nullptr) { + _this->_impl_.control_message_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.control_message_); + } else { + _this->_impl_.control_message_->MergeFrom(*from._impl_.control_message_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.packet_type_ = from._impl_.packet_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PayloadTransferFrame::CopyFrom(const PayloadTransferFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool PayloadTransferFrame::IsInitialized() const { - return true; -} -void PayloadTransferFrame::InternalSwap(PayloadTransferFrame* other) { - using std::swap; +void PayloadTransferFrame::InternalSwap(PayloadTransferFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, packet_type_) - + sizeof(PayloadTransferFrame::packet_type_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, payload_header_)>( - reinterpret_cast(&payload_header_), - reinterpret_cast(&other->payload_header_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.packet_type_) + + sizeof(PayloadTransferFrame::_impl_.packet_type_) + - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, _impl_.payload_header_)>( + reinterpret_cast(&_impl_.payload_header_), + reinterpret_cast(&other->_impl_.payload_header_)); } -std::string PayloadTransferFrame::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame"; -} - - // =================================================================== class ServiceAddress::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ip_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_._has_bits_); }; -ServiceAddress::ServiceAddress(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ServiceAddress::ServiceAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ServiceAddress_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ServiceAddress) } -ServiceAddress::ServiceAddress(const ServiceAddress& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_address()) { - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), - GetArenaForAllocation()); - } - port_ = from.port_; +PROTOBUF_NDEBUG_INLINE ServiceAddress::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::connections::ServiceAddress& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + ip_address_(arena, from.ip_address_) {} + +ServiceAddress::ServiceAddress( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ServiceAddress& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ServiceAddress_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ServiceAddress* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.port_ = from._impl_.port_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ServiceAddress) } +PROTOBUF_NDEBUG_INLINE ServiceAddress::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + ip_address_(arena) {} -inline void ServiceAddress::SharedCtor() { -ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -port_ = 0; +inline void ServiceAddress::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.port_ = {}; } - ServiceAddress::~ServiceAddress() { // @@protoc_insertion_point(destructor:location.nearby.connections.ServiceAddress) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ServiceAddress::SharedDtor(MessageLite& self) { + ServiceAddress& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.ip_address_.Destroy(); + this_._impl_.~Impl_(); } -inline void ServiceAddress::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL ServiceAddress::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ServiceAddress(arena); +} +constexpr auto ServiceAddress::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ServiceAddress), + alignof(ServiceAddress)); +} +constexpr auto ServiceAddress::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_ServiceAddress_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ServiceAddress::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ServiceAddress::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ServiceAddress::ByteSizeLong, + &ServiceAddress::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_._cached_size_), + true, + }, + "location.nearby.connections.ServiceAddress", + }; } -void ServiceAddress::ArenaDtor(void* object) { - ServiceAddress* _this = reinterpret_cast< ServiceAddress* >(object); - (void)_this; -} -void ServiceAddress::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ServiceAddress::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> ServiceAddress_class_data_ = + ServiceAddress::InternalGenerateClassData_(); -void ServiceAddress::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ServiceAddress::GetClassData() const { + return ServiceAddress_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ServiceAddress::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ServiceAddress_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::ServiceAddress>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 port = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_.port_)}}, + // optional bytes ip_address = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_.ip_address_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes ip_address = 1; + {PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_.ip_address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 port = 2; + {PROTOBUF_FIELD_OFFSET(ServiceAddress, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ServiceAddress::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.ServiceAddress) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ip_address_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.ip_address_.ClearNonDefaultToEmpty(); } - port_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.port_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ServiceAddress::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes ip_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ip_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 port = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_port(&has_bits); - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ServiceAddress::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ServiceAddress::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ServiceAddress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ServiceAddress::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ServiceAddress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ServiceAddress) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_ip_address(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_ip_address(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional int32 port = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_port(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ServiceAddress) return target; } -size_t ServiceAddress::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ServiceAddress) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ServiceAddress::ByteSizeLong(const MessageLite& base) { + const ServiceAddress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ServiceAddress::ByteSizeLong() const { + const ServiceAddress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ServiceAddress) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_address()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ip_address()); } - // optional int32 port = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ServiceAddress::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ServiceAddress::MergeFrom(const ServiceAddress& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ServiceAddress) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ip_address(from._internal_ip_address()); - } - if (cached_has_bits & 0x00000002u) { - port_ = from.port_; - } - _has_bits_[0] |= cached_has_bits; +void ServiceAddress::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ServiceAddress) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_ip_address(from._internal_ip_address()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.port_ = from._impl_.port_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ServiceAddress::CopyFrom(const ServiceAddress& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ServiceAddress) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ServiceAddress) if (&from == this) return; Clear(); MergeFrom(from); } -bool ServiceAddress::IsInitialized() const { - return true; -} -void ServiceAddress::InternalSwap(ServiceAddress* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void ServiceAddress::InternalSwap(ServiceAddress* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_address_, lhs_arena, - &other->ip_address_, rhs_arena - ); - swap(port_, other->port_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_address_, &other->_impl_.ip_address_, arena); + swap(_impl_.port_, other->_impl_.port_); } -std::string ServiceAddress::GetTypeName() const { - return "location.nearby.connections.ServiceAddress"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_gateway(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_._has_bits_); }; -const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - address_candidates_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +/*static*/ const ::_pbi::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_{ + {{"0.0.0.0", 7}}, + {nullptr}, +}; +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - address_candidates_(from.address_candidates_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ssid()) { - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ssid(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } - gateway_.UnsafeSetDefault(nullptr); - if (from._internal_has_gateway()) { - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(), - GetArenaForAllocation()); - } - ::memcpy(&port_, &from.port_, - static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + address_candidates_{visibility, arena, from.address_candidates_}, + ssid_(arena, from.ssid_), + password_(arena, from.password_), + gateway_(arena, from.gateway_, _i_give_permission_to_break_this_code_default_gateway_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* 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(&_impl_) + + offsetof(Impl_, port_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, port_), + offsetof(Impl_, frequency_) - + offsetof(Impl_, port_) + + sizeof(Impl_::frequency_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + address_candidates_{visibility, arena}, + ssid_(arena), + password_(arena), + gateway_(arena, Impl_::_i_give_permission_to_break_this_code_default_gateway_), + frequency_{-1} {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedCtor() { -ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -gateway_.UnsafeSetDefault(nullptr); -port_ = 0; -frequency_ = -1; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.port_ = {}; } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.ssid_.Destroy(); + this_._impl_.password_.Destroy(); + this_._impl_.gateway_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gateway_.DestroyNoArena(nullptr); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.address_candidates_) + + decltype(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_impl_.address_candidates_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials), alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::PlacementNew_, + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials)); + } +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<100>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<100> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 1, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _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 + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string ssid = 1; + {::_pbi::TcParser::FastBS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.ssid_)}}, + // optional string password = 2; + {::_pbi::TcParser::FastBS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.password_)}}, + // optional int32 port = 3; + {::_pbi::TcParser::FastV32S1, + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.port_)}}, + // optional string gateway = 4 [default = "0.0.0.0"]; + {::_pbi::TcParser::FastBS1, + {34, 3, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.gateway_)}}, + // optional int32 frequency = 5 [default = -1]; + {::_pbi::TcParser::FastV32S1, + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.frequency_)}}, + // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; + {::_pbi::TcParser::FastMtR1, + {50, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.address_candidates_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string ssid = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.ssid_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string password = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.password_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 port = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.port_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string gateway = 4 [default = "0.0.0.0"]; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.gateway_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 frequency = 5 [default = -1]; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.frequency_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.address_candidates_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::ServiceAddress>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - address_candidates_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ssid_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.address_candidates_.Clear(); } - if (cached_has_bits & 0x00000002u) { - password_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.ssid_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.password_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); } - if (cached_has_bits & 0x00000004u) { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - } } - if (cached_has_bits & 0x00000018u) { - port_ = 0; - frequency_ = -1; + if (BatchCheckHasBit(cached_has_bits, 0x00000030U)) { + _impl_.port_ = 0; + _impl_.frequency_ = -1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string ssid = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 port = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_port(&has_bits); - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string gateway = 4 [default = "0.0.0.0"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_gateway(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 frequency = 5 [default = -1]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_frequency(&has_bits); - frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_address_candidates(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_ssid(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_ssid(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_password(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_password(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_port(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_port(), target); } // optional string gateway = 4 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_gateway(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_gateway(); + target = stream->WriteStringMaybeAliased(4, _s, target); } // optional int32 frequency = 5 [default = -1]; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_frequency(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_frequency(), target); } // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_address_candidates_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_address_candidates(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_address_candidates_size()); + i < n; i++) { + const auto& repfield = this_._internal_address_candidates().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; - total_size += 1UL * this->_internal_address_candidates_size(); - for (const auto& msg : this->address_candidates_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_address_candidates_size(); + for (const auto& msg : this_._internal_address_candidates()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ssid()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_ssid()); } - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_password()); } - // optional string gateway = 4 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_gateway()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_gateway()); } - // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); } - // optional int32 frequency = 5 [default = -1]; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_frequency()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - address_candidates_.MergeFrom(from.address_candidates_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ssid(from._internal_ssid()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_password(from._internal_password()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_gateway(from._internal_gateway()); - } - if (cached_has_bits & 0x00000008u) { - port_ = from.port_; - } - if (cached_has_bits & 0x00000010u) { - frequency_ = from.frequency_; - } - _has_bits_[0] |= cached_has_bits; +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_address_candidates()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_address_candidates()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_ssid(from._internal_ssid()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_password(from._internal_password()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_gateway(from._internal_gateway()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.port_ = from._impl_.port_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.frequency_ = from._impl_.frequency_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - address_candidates_.InternalSwap(&other->address_candidates_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ssid_, lhs_arena, - &other->ssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - nullptr, - &gateway_, lhs_arena, - &other->gateway_, rhs_arena - ); - swap(port_, other->port_); - swap(frequency_, other->frequency_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.address_candidates_.InternalSwap(&other->_impl_.address_candidates_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ssid_, &other->_impl_.ssid_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.password_, &other->_impl_.password_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.gateway_, &other->_impl_.gateway_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.frequency_) + + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_impl_.frequency_) + - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials, _impl_.port_)>( + reinterpret_cast(&_impl_.port_), + reinterpret_cast(&other->_impl_.port_)); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ip_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_wifi_port(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - address_candidates_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - address_candidates_(from.address_candidates_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_address()) { - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), - GetArenaForAllocation()); - } - wifi_port_ = from.wifi_port_; +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + address_candidates_{visibility, arena, from.address_candidates_}, + ip_address_(arena, from.ip_address_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.wifi_port_ = from._impl_.wifi_port_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + address_candidates_{visibility, arena}, + ip_address_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedCtor() { -ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -wifi_port_ = 0; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.wifi_port_ = {}; } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.ip_address_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.address_candidates_) + + decltype(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_impl_.address_candidates_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket), alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::PlacementNew_, + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket)); + } +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<91>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<91> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bytes ip_address = 1; + {::_pbi::TcParser::FastBS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.ip_address_)}}, + // optional int32 wifi_port = 2; + {::_pbi::TcParser::FastV32S1, + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.wifi_port_)}}, + // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; + {::_pbi::TcParser::FastMtR1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.address_candidates_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes ip_address = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.ip_address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 wifi_port = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.wifi_port_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket, _impl_.address_candidates_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::ServiceAddress>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - address_candidates_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ip_address_.ClearNonDefaultToEmpty(); - } - wifi_port_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes ip_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ip_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 wifi_port = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_wifi_port(&has_bits); - wifi_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_address_candidates(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.address_candidates_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.ip_address_.ClearNonDefaultToEmpty(); + } + } + _impl_.wifi_port_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_ip_address(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_ip_address(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional int32 wifi_port = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_wifi_port(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_wifi_port(), target); } // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_address_candidates_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_address_candidates(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_address_candidates_size()); + i < n; i++) { + const auto& repfield = this_._internal_address_candidates().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; - total_size += 1UL * this->_internal_address_candidates_size(); - for (const auto& msg : this->address_candidates_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_address_candidates_size(); + for (const auto& msg : this_._internal_address_candidates()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_address()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ip_address()); } - // optional int32 wifi_port = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wifi_port()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_wifi_port()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - address_candidates_.MergeFrom(from.address_candidates_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ip_address(from._internal_ip_address()); - } - if (cached_has_bits & 0x00000002u) { - wifi_port_ = from.wifi_port_; - } - _has_bits_[0] |= cached_has_bits; +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) + 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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_address_candidates()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_address_candidates()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_ip_address(from._internal_ip_address()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.wifi_port_ = from._impl_.wifi_port_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - address_candidates_.InternalSwap(&other->address_candidates_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_address_, lhs_arena, - &other->ip_address_, rhs_arena - ); - swap(wifi_port_, other->wifi_port_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.address_candidates_.InternalSwap(&other->_impl_.address_candidates_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_address_, &other->_impl_.ip_address_, arena); + swap(_impl_.wifi_port_, other->_impl_.wifi_port_); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_mac_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_name()) { - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_name(), - GetArenaForAllocation()); - } - mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_mac_address()) { - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mac_address(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_name_(arena, from.service_name_), + mac_address_(arena, from.mac_address_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_name_(arena), + mac_address_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedCtor() { -service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_name_.Destroy(); + this_._impl_.mac_address_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<98>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string mac_address = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_.mac_address_)}}, + // optional string service_name = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_.service_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string service_name = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_.service_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string mac_address = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials, _impl_.mac_address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - service_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - mac_address_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.mac_address_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string mac_address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_mac_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_name(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string mac_address = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_mac_address(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_mac_address(); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_name()); } - // optional string mac_address = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_mac_address()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mac_address()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_name(from._internal_service_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_name(from._internal_service_name()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_mac_address(from._internal_mac_address()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_mac_address(from._internal_mac_address()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_name_, lhs_arena, - &other->service_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mac_address_, lhs_arena, - &other->mac_address_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_name_, &other->_impl_.service_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mac_address_, &other->_impl_.mac_address_, arena); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_service_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id()) { - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id(), - GetArenaForAllocation()); - } - service_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_info()) { - service_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_info(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_id_(arena, from.service_id_), + service_info_(arena, from.service_info_), + password_(arena, from.password_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_id_(arena), + service_info_(arena), + password_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedCtor() { -service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& this_ = static_cast(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_.service_info_.Destroy(); + this_._impl_.password_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<98>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _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 + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string service_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.service_id_)}}, + // optional bytes service_info = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.service_info_)}}, + // optional string password = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.password_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string service_id = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.service_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes service_info = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.service_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string password = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials, _impl_.password_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - service_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - service_info_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.service_info_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - password_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.password_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes service_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_service_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional bytes service_info = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_service_info(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_service_info(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_password(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_password(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_id()); } - // optional bytes service_info = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_service_info()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_service_info()); } - // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_password()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id(from._internal_service_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_id(from._internal_service_id()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_service_info(from._internal_service_info()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_service_info(from._internal_service_info()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_password(from._internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_password(from._internal_password()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_, lhs_arena, - &other->service_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_info_, lhs_arena, - &other->service_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); + 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_.service_info_, &other->_impl_.service_info_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.password_, &other->_impl_.password_, arena); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_gateway(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_ip_v6_address(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_service_name(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_pin(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_._has_bits_); }; -const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +/*static*/ const ::_pbi::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_{ + {{"0.0.0.0", 7}}, + {nullptr}, +}; +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ssid()) { - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ssid(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } - gateway_.UnsafeSetDefault(nullptr); - if (from._internal_has_gateway()) { - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(), - GetArenaForAllocation()); - } - ip_v6_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_v6_address()) { - ip_v6_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_v6_address(), - GetArenaForAllocation()); - } - service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_name()) { - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_name(), - GetArenaForAllocation()); - } - pin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - pin_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_pin()) { - pin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pin(), - GetArenaForAllocation()); - } - ::memcpy(&port_, &from.port_, - static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + ssid_(arena, from.ssid_), + password_(arena, from.password_), + gateway_(arena, from.gateway_, _i_give_permission_to_break_this_code_default_gateway_), + ip_v6_address_(arena, from.ip_v6_address_), + service_name_(arena, from.service_name_), + pin_(arena, from.pin_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* 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(&_impl_) + + offsetof(Impl_, port_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, port_), + offsetof(Impl_, frequency_) - + offsetof(Impl_, port_) + + sizeof(Impl_::frequency_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + ssid_(arena), + password_(arena), + gateway_(arena, Impl_::_i_give_permission_to_break_this_code_default_gateway_), + ip_v6_address_(arena), + service_name_(arena), + pin_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedCtor() { -ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -gateway_.UnsafeSetDefault(nullptr); -ip_v6_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -pin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - pin_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&port_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, port_), + 0, + offsetof(Impl_, frequency_) - + offsetof(Impl_, port_) + + sizeof(Impl_::frequency_)); } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.ssid_.Destroy(); + this_._impl_.password_.Destroy(); + this_._impl_.gateway_.Destroy(); + this_._impl_.ip_v6_address_.Destroy(); + this_._impl_.service_name_.Destroy(); + this_._impl_.pin_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gateway_.DestroyNoArena(nullptr); - ip_v6_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pin_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<99>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<99> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _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 + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string pin = 8; + {::_pbi::TcParser::FastBS1, + {66, 5, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.pin_)}}, + // optional string ssid = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.ssid_)}}, + // optional string password = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.password_)}}, + // optional int32 port = 3; + {::_pbi::TcParser::FastV32S1, + {24, 6, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.port_)}}, + // optional int32 frequency = 4; + {::_pbi::TcParser::FastV32S1, + {32, 7, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.frequency_)}}, + // optional string gateway = 5 [default = "0.0.0.0"]; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.gateway_)}}, + // optional bytes ip_v6_address = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.ip_v6_address_)}}, + // optional string service_name = 7; + {::_pbi::TcParser::FastBS1, + {58, 4, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.service_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string ssid = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.ssid_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string password = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.password_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 port = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.port_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 frequency = 4; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.frequency_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string gateway = 5 [default = "0.0.0.0"]; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.gateway_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes ip_v6_address = 6; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.ip_v6_address_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string service_name = 7; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.service_name_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string pin = 8; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.pin_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - ssid_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.ssid_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - password_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.password_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - } - if (cached_has_bits & 0x00000008u) { - ip_v6_address_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); } - if (cached_has_bits & 0x00000010u) { - service_name_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.ip_v6_address_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000020u) { - pin_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.service_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.pin_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x000000c0u) { - ::memset(&port_, 0, static_cast( - reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) { + ::memset(&_impl_.port_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.frequency_) - + reinterpret_cast(&_impl_.port_)) + sizeof(_impl_.frequency_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string ssid = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 port = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_port(&has_bits); - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 frequency = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_frequency(&has_bits); - frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string gateway = 5 [default = "0.0.0.0"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_gateway(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes ip_v6_address = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_ip_v6_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string service_name = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_service_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string pin = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_pin(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_ssid(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_ssid(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_password(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_password(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional int32 port = 3; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_port(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_port(), target); } // optional int32 frequency = 4; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_frequency(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_frequency(), target); } // optional string gateway = 5 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_gateway(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_gateway(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional bytes ip_v6_address = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_ip_v6_address(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_ip_v6_address(); + target = stream->WriteBytesMaybeAliased(6, _s, target); } // optional string service_name = 7; - if (cached_has_bits & 0x00000010u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_service_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + const ::std::string& _s = this_._internal_service_name(); + target = stream->WriteStringMaybeAliased(7, _s, target); } // optional string pin = 8; - if (cached_has_bits & 0x00000020u) { - target = stream->WriteStringMaybeAliased( - 8, this->_internal_pin(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_pin(); + target = stream->WriteStringMaybeAliased(8, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ssid()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_ssid()); } - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_password()); } - // optional string gateway = 5 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_gateway()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_gateway()); } - // optional bytes ip_v6_address = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_v6_address()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ip_v6_address()); } - // optional string service_name = 7; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_name()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_name()); } - // optional string pin = 8; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_pin()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_pin()); } - // optional int32 port = 3; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); } - // optional int32 frequency = 4; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_frequency()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ssid(from._internal_ssid()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_password(from._internal_password()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_gateway(from._internal_gateway()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_ip_v6_address(from._internal_ip_v6_address()); - } - if (cached_has_bits & 0x00000010u) { - _internal_set_service_name(from._internal_service_name()); - } - if (cached_has_bits & 0x00000020u) { - _internal_set_pin(from._internal_pin()); - } - if (cached_has_bits & 0x00000040u) { - port_ = from.port_; - } - if (cached_has_bits & 0x00000080u) { - frequency_ = from.frequency_; - } - _has_bits_[0] |= cached_has_bits; +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) + 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_ssid(from._internal_ssid()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_password(from._internal_password()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_gateway(from._internal_gateway()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_ip_v6_address(from._internal_ip_v6_address()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_set_service_name(from._internal_service_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_pin(from._internal_pin()); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.port_ = from._impl_.port_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.frequency_ = from._impl_.frequency_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ssid_, lhs_arena, - &other->ssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - nullptr, - &gateway_, lhs_arena, - &other->gateway_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_v6_address_, lhs_arena, - &other->ip_v6_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_name_, lhs_arena, - &other->service_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &pin_, lhs_arena, - &other->pin_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, frequency_) - + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, port_)>( - reinterpret_cast(&port_), - reinterpret_cast(&other->port_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ssid_, &other->_impl_.ssid_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.password_, &other->_impl_.password_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.gateway_, &other->_impl_.gateway_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_v6_address_, &other->_impl_.ip_v6_address_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_name_, &other->_impl_.service_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.frequency_) + + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_impl_.frequency_) + - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, _impl_.port_)>( + reinterpret_cast(&_impl_.port_), + reinterpret_cast(&other->_impl_.port_)); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_peer_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::LocationHint& location_hint(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* msg); - static void set_has_location_hint(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_._has_bits_); }; -const ::location::nearby::connections::LocationHint& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_Internal::location_hint(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* msg) { - return *msg->location_hint_; -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - peer_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_peer_id()) { - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_peer_id(), - GetArenaForAllocation()); - } - if (from._internal_has_location_hint()) { - location_hint_ = new ::location::nearby::connections::LocationHint(*from.location_hint_); - } else { - location_hint_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + peer_id_(arena, from.peer_id_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* 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_.location_hint_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + peer_id_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedCtor() { -peer_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -location_hint_ = nullptr; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.location_hint_ = {}; } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.peer_id_.Destroy(); + delete this_._impl_.location_hint_; + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - peer_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete location_hint_; +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<95>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<95> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _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), + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.LocationHint location_hint = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_.location_hint_)}}, + // optional string peer_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_.peer_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string peer_id = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_.peer_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.LocationHint location_hint = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials, _impl_.location_hint_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::LocationHint>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - peer_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.peer_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(location_hint_ != nullptr); - location_hint_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.location_hint_ != nullptr); + _impl_.location_hint_->Clear(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_peer_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationHint location_hint = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_location_hint(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string peer_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_peer_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_peer_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .location.nearby.connections.LocationHint location_hint = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::location_hint(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.location_hint_, this_._impl_.location_hint_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string peer_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_peer_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_peer_id()); } - // optional .location.nearby.connections.LocationHint location_hint = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *location_hint_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.location_hint_); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_peer_id(from._internal_peer_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_peer_id(from._internal_peer_id()); } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_location_hint()->::location::nearby::connections::LocationHint::MergeFrom(from._internal_location_hint()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.location_hint_ != nullptr); + if (_this->_impl_.location_hint_ == nullptr) { + _this->_impl_.location_hint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_); + } else { + _this->_impl_.location_hint_->MergeFrom(*from._impl_.location_hint_); + } } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &peer_id_, lhs_arena, - &other->peer_id_, rhs_arena - ); - swap(location_hint_, other->location_hint_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.peer_id_, &other->_impl_.peer_id_, arena); + swap(_impl_.location_hint_, other->_impl_.location_hint_); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_service_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_name()) { - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_name(), - GetArenaForAllocation()); - } - service_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_type()) { - service_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_type(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_name_(arena, from.service_name_), + service_type_(arena, from.service_type_), + password_(arena, from.password_) {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_name_(arena), + service_type_(arena), + password_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SharedCtor() { -service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_name_.Destroy(); + this_._impl_.service_type_.Destroy(); + this_._impl_.password_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<93>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<93> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _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 + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string service_name = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.service_name_)}}, + // optional string service_type = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.service_type_)}}, + // optional string password = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.password_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string service_name = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.service_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string service_type = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.service_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string password = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials, _impl_.password_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - service_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - service_type_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.service_type_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - password_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.password_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string service_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_service_type(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_name(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string service_type = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_service_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_service_type(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_password(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_password(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_name()); } - // optional string service_type = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_type()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_type()); } - // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_password()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_name(from._internal_service_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_name(from._internal_service_name()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_service_type(from._internal_service_type()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_service_type(from._internal_service_type()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_password(from._internal_password()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_password(from._internal_password()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_name_, lhs_arena, - &other->service_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_type_, lhs_arena, - &other->service_type_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_name_, &other->_impl_.service_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_type_, &other->_impl_.service_type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.password_, &other->_impl_.password_, arena); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::location::nearby::connections::MediumMetadata& medium_meta_data(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* msg); - static void set_has_medium_meta_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_._has_bits_); }; -const ::location::nearby::connections::MediumMetadata& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_Internal::medium_meta_data(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* msg) { - return *msg->medium_meta_data_; -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - mediums_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - mediums_(from.mediums_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_medium_meta_data()) { - medium_meta_data_ = new ::location::nearby::connections::MediumMetadata(*from.medium_meta_data_); - } else { - medium_meta_data_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + mediums_{visibility, arena, from.mediums_}, + _mediums_cached_byte_size_{0} {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* 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_.medium_meta_data_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_meta_data_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + mediums_{visibility, arena}, + _mediums_cached_byte_size_{0} {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SharedCtor() { -medium_meta_data_ = nullptr; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.medium_meta_data_ = {}; } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.medium_meta_data_; + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete medium_meta_data_; +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_.mediums_) + + decltype(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_impl_.mediums_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest), alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::PlacementNew_, + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest)); + } +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<96>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<96> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _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), + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_.medium_meta_data_)}}, + // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; + {::_pbi::TcParser::FastEvP1, + {10, 0, 1, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_.mediums_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_.mediums_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnum)}, + // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest, _impl_.medium_meta_data_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::MediumMetadata>()}, + {::_pbi::FieldAuxEnumData{}, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - mediums_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(medium_meta_data_ != nullptr); - medium_meta_data_->Clear(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_mediums(), ptr, ctx, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid, &_internal_metadata_, 1); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(val))) { - _internal_add_mediums(static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_medium_meta_data(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.mediums_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.medium_meta_data_ != nullptr); + _impl_.medium_meta_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; - { - int byte_size = _mediums_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 1, mediums_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._mediums_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, this_._internal_mediums(), byte_size, target); + } } } - cached_has_bits = _has_bits_[0]; // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::medium_meta_data(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.medium_meta_data_, this_._impl_.medium_meta_data_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_mediums_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_mediums(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_mediums(), 1, this_._impl_._mediums_cached_byte_size_); } - if (data_size > 0) { + // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.medium_meta_data_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _mediums_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *medium_meta_data_); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - mediums_.MergeFrom(from.mediums_); - if (from._internal_has_medium_meta_data()) { - _internal_mutable_medium_meta_data()->::location::nearby::connections::MediumMetadata::MergeFrom(from._internal_medium_meta_data()); +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_mediums()->MergeFrom(from._internal_mediums()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.medium_meta_data_ != nullptr); + if (_this->_impl_.medium_meta_data_ == nullptr) { + _this->_impl_.medium_meta_data_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_meta_data_); + } else { + _this->_impl_.medium_meta_data_->MergeFrom(*from._impl_.medium_meta_data_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* other) { - using std::swap; +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - mediums_.InternalSwap(&other->mediums_); - swap(medium_meta_data_, other->medium_meta_data_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.mediums_.InternalSwap(&other->_impl_.mediums_); + swap(_impl_.medium_meta_data_, other->_impl_.medium_meta_data_); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& wifi_hotspot_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_hotspot_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& wifi_lan_socket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_lan_socket(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& bluetooth_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_bluetooth_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& wifi_aware_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_aware_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& wifi_direct_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_direct_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& web_rtc_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_web_rtc_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& awdl_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_awdl_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_supports_disabling_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_supports_client_introduction_ack(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& upgrade_path_request(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_upgrade_path_request(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_._has_bits_); }; -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_hotspot_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_hotspot_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_lan_socket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_lan_socket_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::bluetooth_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->bluetooth_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_aware_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_aware_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_direct_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_direct_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::web_rtc_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->web_rtc_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::awdl_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->awdl_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::upgrade_path_request(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->upgrade_path_request_; -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) } -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_wifi_hotspot_credentials()) { - wifi_hotspot_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(*from.wifi_hotspot_credentials_); - } else { - wifi_hotspot_credentials_ = nullptr; - } - if (from._internal_has_wifi_lan_socket()) { - wifi_lan_socket_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(*from.wifi_lan_socket_); - } else { - wifi_lan_socket_ = nullptr; - } - if (from._internal_has_bluetooth_credentials()) { - bluetooth_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(*from.bluetooth_credentials_); - } else { - bluetooth_credentials_ = nullptr; - } - if (from._internal_has_wifi_aware_credentials()) { - wifi_aware_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(*from.wifi_aware_credentials_); - } else { - wifi_aware_credentials_ = nullptr; - } - if (from._internal_has_wifi_direct_credentials()) { - wifi_direct_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(*from.wifi_direct_credentials_); - } else { - wifi_direct_credentials_ = nullptr; - } - if (from._internal_has_web_rtc_credentials()) { - web_rtc_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(*from.web_rtc_credentials_); - } else { - web_rtc_credentials_ = nullptr; - } - if (from._internal_has_upgrade_path_request()) { - upgrade_path_request_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(*from.upgrade_path_request_); - } else { - upgrade_path_request_ = nullptr; - } - if (from._internal_has_awdl_credentials()) { - awdl_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(*from.awdl_credentials_); - } else { - awdl_credentials_ = nullptr; - } - ::memcpy(&medium_, &from.medium_, - static_cast(reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&medium_)) + sizeof(supports_client_introduction_ack_)); +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::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::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_UpgradePathInfo* 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_.wifi_hotspot_credentials_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_hotspot_credentials_) + : nullptr; + _impl_.wifi_lan_socket_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_lan_socket_) + : nullptr; + _impl_.bluetooth_credentials_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bluetooth_credentials_) + : nullptr; + _impl_.wifi_aware_credentials_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_aware_credentials_) + : nullptr; + _impl_.wifi_direct_credentials_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_direct_credentials_) + : nullptr; + _impl_.web_rtc_credentials_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.web_rtc_credentials_) + : nullptr; + _impl_.upgrade_path_request_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.upgrade_path_request_) + : nullptr; + _impl_.awdl_credentials_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.awdl_credentials_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, medium_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, medium_), + offsetof(Impl_, supports_client_introduction_ack_) - + offsetof(Impl_, medium_) + + sizeof(Impl_::supports_client_introduction_ack_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&wifi_hotspot_credentials_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&wifi_hotspot_credentials_)) + sizeof(supports_client_introduction_ack_)); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, wifi_hotspot_credentials_), + 0, + offsetof(Impl_, supports_client_introduction_ack_) - + offsetof(Impl_, wifi_hotspot_credentials_) + + sizeof(Impl_::supports_client_introduction_ack_)); } - BandwidthUpgradeNegotiationFrame_UpgradePathInfo::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_UpgradePathInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.wifi_hotspot_credentials_; + delete this_._impl_.wifi_lan_socket_; + delete this_._impl_.bluetooth_credentials_; + delete this_._impl_.wifi_aware_credentials_; + delete this_._impl_.wifi_direct_credentials_; + delete this_._impl_.web_rtc_credentials_; + delete this_._impl_.upgrade_path_request_; + delete this_._impl_.awdl_credentials_; + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete wifi_hotspot_credentials_; - if (this != internal_default_instance()) delete wifi_lan_socket_; - if (this != internal_default_instance()) delete bluetooth_credentials_; - if (this != internal_default_instance()) delete wifi_aware_credentials_; - if (this != internal_default_instance()) delete wifi_direct_credentials_; - if (this != internal_default_instance()) delete web_rtc_credentials_; - if (this != internal_default_instance()) delete upgrade_path_request_; - if (this != internal_default_instance()) delete awdl_credentials_; +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_UpgradePathInfo(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo), + alignof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<77>{ + { + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo", + }; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<77> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_ = + BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 11, 9, 0, 2> +BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _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), + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; + {::_pbi::TcParser::FastEvS1, + {8, 8, 8, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.medium_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_hotspot_credentials_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_lan_socket_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.bluetooth_credentials_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; + {::_pbi::TcParser::FastMtS1, + {42, 3, 3, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_aware_credentials_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; + {::_pbi::TcParser::FastMtS1, + {50, 4, 4, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_direct_credentials_)}}, + // optional bool supports_disabling_encryption = 7; + {::_pbi::TcParser::FastV8S1, + {56, 9, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.supports_disabling_encryption_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; + {::_pbi::TcParser::FastMtS1, + {66, 5, 5, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.web_rtc_credentials_)}}, + // optional bool supports_client_introduction_ack = 9; + {::_pbi::TcParser::FastV8S1, + {72, 10, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.supports_client_introduction_ack_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; + {::_pbi::TcParser::FastMtS1, + {82, 6, 6, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.upgrade_path_request_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; + {::_pbi::TcParser::FastMtS1, + {90, 7, 7, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.awdl_credentials_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.medium_), _Internal::kHasBitsOffset + 8, 8, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_hotspot_credentials_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_lan_socket_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.bluetooth_credentials_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_aware_credentials_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_direct_credentials_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bool supports_disabling_encryption = 7; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.supports_disabling_encryption_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.web_rtc_credentials_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bool supports_client_introduction_ack = 9; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.supports_client_introduction_ack_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.upgrade_path_request_), _Internal::kHasBitsOffset + 6, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.awdl_credentials_), _Internal::kHasBitsOffset + 7, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>()}, + {::_pbi::FieldAuxEnumData{}, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(wifi_hotspot_credentials_ != nullptr); - wifi_hotspot_credentials_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.wifi_hotspot_credentials_ != nullptr); + _impl_.wifi_hotspot_credentials_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(wifi_lan_socket_ != nullptr); - wifi_lan_socket_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.wifi_lan_socket_ != nullptr); + _impl_.wifi_lan_socket_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(bluetooth_credentials_ != nullptr); - bluetooth_credentials_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.bluetooth_credentials_ != nullptr); + _impl_.bluetooth_credentials_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(wifi_aware_credentials_ != nullptr); - wifi_aware_credentials_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.wifi_aware_credentials_ != nullptr); + _impl_.wifi_aware_credentials_->Clear(); } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(wifi_direct_credentials_ != nullptr); - wifi_direct_credentials_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.wifi_direct_credentials_ != nullptr); + _impl_.wifi_direct_credentials_->Clear(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(web_rtc_credentials_ != nullptr); - web_rtc_credentials_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.web_rtc_credentials_ != nullptr); + _impl_.web_rtc_credentials_->Clear(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(upgrade_path_request_ != nullptr); - upgrade_path_request_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.upgrade_path_request_ != nullptr); + _impl_.upgrade_path_request_->Clear(); } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(awdl_credentials_ != nullptr); - awdl_credentials_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.awdl_credentials_ != nullptr); + _impl_.awdl_credentials_->Clear(); } } - if (cached_has_bits & 0x00000700u) { - ::memset(&medium_, 0, static_cast( - reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&medium_)) + sizeof(supports_client_introduction_ack_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + ::memset(&_impl_.medium_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.supports_client_introduction_ack_) - + reinterpret_cast(&_impl_.medium_)) + sizeof(_impl_.supports_client_introduction_ack_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_hotspot_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_lan_socket(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_bluetooth_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_aware_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_direct_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_disabling_encryption = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_supports_disabling_encryption(&has_bits); - supports_disabling_encryption_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_web_rtc_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_client_introduction_ack = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_supports_client_introduction_ack(&has_bits); - supports_client_introduction_ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_upgrade_path_request(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_awdl_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_medium(), target); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::wifi_hotspot_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.wifi_hotspot_credentials_, this_._impl_.wifi_hotspot_credentials_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::wifi_lan_socket(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.wifi_lan_socket_, this_._impl_.wifi_lan_socket_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::bluetooth_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.bluetooth_credentials_, this_._impl_.bluetooth_credentials_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::wifi_aware_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.wifi_aware_credentials_, this_._impl_.wifi_aware_credentials_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::wifi_direct_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.wifi_direct_credentials_, this_._impl_.wifi_direct_credentials_->GetCachedSize(), target, + stream); } // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_supports_disabling_encryption(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_supports_disabling_encryption(), target); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::web_rtc_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.web_rtc_credentials_, this_._impl_.web_rtc_credentials_->GetCachedSize(), target, + stream); } // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_supports_client_introduction_ack(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_supports_client_introduction_ack(), target); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::upgrade_path_request(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.upgrade_path_request_, this_._impl_.upgrade_path_request_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::awdl_credentials(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.awdl_credentials_, this_._impl_.awdl_credentials_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) return target; } -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000600U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_hotspot_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_hotspot_credentials_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_lan_socket_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_lan_socket_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bluetooth_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.bluetooth_credentials_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_aware_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_aware_credentials_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_direct_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_direct_credentials_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *web_rtc_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.web_rtc_credentials_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *upgrade_path_request_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upgrade_path_request_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *awdl_credentials_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.awdl_credentials_); } - } - if (cached_has_bits & 0x00000700u) { + { // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - - // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_wifi_hotspot_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeFrom(from._internal_wifi_hotspot_credentials()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.wifi_hotspot_credentials_ != nullptr); + if (_this->_impl_.wifi_hotspot_credentials_ == nullptr) { + _this->_impl_.wifi_hotspot_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_hotspot_credentials_); + } else { + _this->_impl_.wifi_hotspot_credentials_->MergeFrom(*from._impl_.wifi_hotspot_credentials_); + } } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_wifi_lan_socket()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeFrom(from._internal_wifi_lan_socket()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.wifi_lan_socket_ != nullptr); + if (_this->_impl_.wifi_lan_socket_ == nullptr) { + _this->_impl_.wifi_lan_socket_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_lan_socket_); + } else { + _this->_impl_.wifi_lan_socket_->MergeFrom(*from._impl_.wifi_lan_socket_); + } } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_bluetooth_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeFrom(from._internal_bluetooth_credentials()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.bluetooth_credentials_ != nullptr); + if (_this->_impl_.bluetooth_credentials_ == nullptr) { + _this->_impl_.bluetooth_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.bluetooth_credentials_); + } else { + _this->_impl_.bluetooth_credentials_->MergeFrom(*from._impl_.bluetooth_credentials_); + } } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_wifi_aware_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeFrom(from._internal_wifi_aware_credentials()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.wifi_aware_credentials_ != nullptr); + if (_this->_impl_.wifi_aware_credentials_ == nullptr) { + _this->_impl_.wifi_aware_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_aware_credentials_); + } else { + _this->_impl_.wifi_aware_credentials_->MergeFrom(*from._impl_.wifi_aware_credentials_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_wifi_direct_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeFrom(from._internal_wifi_direct_credentials()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.wifi_direct_credentials_ != nullptr); + if (_this->_impl_.wifi_direct_credentials_ == nullptr) { + _this->_impl_.wifi_direct_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_direct_credentials_); + } else { + _this->_impl_.wifi_direct_credentials_->MergeFrom(*from._impl_.wifi_direct_credentials_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_web_rtc_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeFrom(from._internal_web_rtc_credentials()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.web_rtc_credentials_ != nullptr); + if (_this->_impl_.web_rtc_credentials_ == nullptr) { + _this->_impl_.web_rtc_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.web_rtc_credentials_); + } else { + _this->_impl_.web_rtc_credentials_->MergeFrom(*from._impl_.web_rtc_credentials_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_upgrade_path_request()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeFrom(from._internal_upgrade_path_request()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.upgrade_path_request_ != nullptr); + if (_this->_impl_.upgrade_path_request_ == nullptr) { + _this->_impl_.upgrade_path_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.upgrade_path_request_); + } else { + _this->_impl_.upgrade_path_request_->MergeFrom(*from._impl_.upgrade_path_request_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_awdl_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeFrom(from._internal_awdl_credentials()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.awdl_credentials_ != nullptr); + if (_this->_impl_.awdl_credentials_ == nullptr) { + _this->_impl_.awdl_credentials_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.awdl_credentials_); + } else { + _this->_impl_.awdl_credentials_->MergeFrom(*from._impl_.awdl_credentials_); + } } } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { - medium_ = from.medium_; + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.medium_ = from._impl_.medium_; } - if (cached_has_bits & 0x00000200u) { - supports_disabling_encryption_ = from.supports_disabling_encryption_; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.supports_disabling_encryption_ = from._impl_.supports_disabling_encryption_; } - if (cached_has_bits & 0x00000400u) { - supports_client_introduction_ack_ = from.supports_client_introduction_ack_; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.supports_client_introduction_ack_ = from._impl_.supports_client_introduction_ack_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { - using std::swap; +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, supports_client_introduction_ack_) - + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_client_introduction_ack_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, wifi_hotspot_credentials_)>( - reinterpret_cast(&wifi_hotspot_credentials_), - reinterpret_cast(&other->wifi_hotspot_credentials_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.supports_client_introduction_ack_) + + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_impl_.supports_client_introduction_ack_) + - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, _impl_.wifi_hotspot_credentials_)>( + reinterpret_cast(&_impl_.wifi_hotspot_credentials_), + reinterpret_cast(&other->_impl_.wifi_hotspot_credentials_)); } -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_sta_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) } -BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - sta_frequency_ = from.sta_frequency_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) +BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_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 BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedCtor() { -sta_frequency_ = 0; +inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.sta_frequency_ = {}; } - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel), + alignof(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<85>{ + { + &_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel", + }; } -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<85> BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_ = + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 sta_frequency = 1; + {::_pbi::TcParser::FastV32S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel, _impl_.sta_frequency_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 sta_frequency = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel, _impl_.sta_frequency_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sta_frequency_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.sta_frequency_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 sta_frequency = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_sta_frequency(&has_bits); - sta_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 sta_frequency = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_sta_frequency(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_sta_frequency(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) return target; } -size_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 sta_frequency = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sta_frequency()); + { + // optional int32 sta_frequency = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_sta_frequency()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_sta_frequency()) { - _internal_set_sta_frequency(from._internal_sta_frequency()); +void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.sta_frequency_ = from._impl_.sta_frequency_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::CopyFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) { - using std::swap; +void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(sta_frequency_, other->sta_frequency_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.sta_frequency_, other->_impl_.sta_frequency_); } -std::string BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_ClientIntroduction::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_supports_disabling_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_last_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_._has_bits_); }; -BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) } -BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_last_endpoint_id()) { - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_endpoint_id(), - GetArenaForAllocation()); - } - supports_disabling_encryption_ = from.supports_disabling_encryption_; +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_ClientIntroduction::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::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + endpoint_id_(arena, from.endpoint_id_), + last_endpoint_id_(arena, from.last_endpoint_id_) {} + +BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame_ClientIntroduction* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.supports_disabling_encryption_ = from._impl_.supports_disabling_encryption_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame_ClientIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + endpoint_id_(arena), + last_endpoint_id_(arena) {} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -supports_disabling_encryption_ = false; +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.supports_disabling_encryption_ = {}; } - BandwidthUpgradeNegotiationFrame_ClientIntroduction::~BandwidthUpgradeNegotiationFrame_ClientIntroduction() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_ClientIntroduction& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.last_endpoint_id_.Destroy(); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - last_endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_ClientIntroduction(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BandwidthUpgradeNegotiationFrame_ClientIntroduction), + alignof(BandwidthUpgradeNegotiationFrame_ClientIntroduction)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<80>{ + { + &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction", + }; } -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_ClientIntroduction* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_ClientIntroduction* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<80> BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_ = + BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_ClientIntroduction::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_ClientIntroduction::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _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 + BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.endpoint_id_)}}, + // optional bool supports_disabling_encryption = 2; + {::_pbi::TcParser::FastV8S1, + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.supports_disabling_encryption_)}}, + // optional string last_endpoint_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.last_endpoint_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool supports_disabling_encryption = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.supports_disabling_encryption_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string last_endpoint_id = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroduction, _impl_.last_endpoint_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_ClientIntroduction::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - last_endpoint_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.last_endpoint_id_.ClearNonDefaultToEmpty(); } } - supports_disabling_encryption_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.supports_disabling_encryption_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_disabling_encryption = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_supports_disabling_encryption(&has_bits); - supports_disabling_encryption_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string last_endpoint_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_last_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional bool supports_disabling_encryption = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_supports_disabling_encryption(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_supports_disabling_encryption(), target); } // optional string last_endpoint_id = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_last_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_last_endpoint_id(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) return target; } -size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000004U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional string last_endpoint_id = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_last_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_last_endpoint_id()); } - - // optional bool supports_disabling_encryption = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_last_endpoint_id(from._internal_last_endpoint_id()); - } - if (cached_has_bits & 0x00000004u) { - supports_disabling_encryption_ = from.supports_disabling_encryption_; - } - _has_bits_[0] |= cached_has_bits; +void BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_last_endpoint_id(from._internal_last_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.supports_disabling_encryption_ = from._impl_.supports_disabling_encryption_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_ClientIntroduction::CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &last_endpoint_id_, lhs_arena, - &other->last_endpoint_id_, rhs_arena - ); - swap(supports_disabling_encryption_, other->supports_disabling_encryption_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_endpoint_id_, &other->_impl_.last_endpoint_id_, arena); + swap(_impl_.supports_disabling_encryption_, other->_impl_.supports_disabling_encryption_); } -std::string BandwidthUpgradeNegotiationFrame_ClientIntroduction::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_Internal { public: }; -BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) } -BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) +BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_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 BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedCtor() { +inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::~BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck), + alignof(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck)); +} +constexpr auto BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<83>{ + { + &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck", + }; } -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<83> BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_ = + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) return target; } -size_t BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - using std::swap; +void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck"; -} - - // =================================================================== class BandwidthUpgradeNegotiationFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& upgrade_path_info(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_upgrade_path_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& client_introduction(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_client_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& client_introduction_ack(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_client_introduction_ack(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& safe_to_close_prior_channel(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_safe_to_close_prior_channel(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_._has_bits_); }; -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& -BandwidthUpgradeNegotiationFrame::_Internal::upgrade_path_info(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->upgrade_path_info_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& -BandwidthUpgradeNegotiationFrame::_Internal::client_introduction(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->client_introduction_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& -BandwidthUpgradeNegotiationFrame::_Internal::client_introduction_ack(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->client_introduction_ack_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& -BandwidthUpgradeNegotiationFrame::_Internal::safe_to_close_prior_channel(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->safe_to_close_prior_channel_; -} -BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) } -BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(const BandwidthUpgradeNegotiationFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_upgrade_path_info()) { - upgrade_path_info_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(*from.upgrade_path_info_); - } else { - upgrade_path_info_ = nullptr; - } - if (from._internal_has_client_introduction()) { - client_introduction_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction(*from.client_introduction_); - } else { - client_introduction_ = nullptr; - } - if (from._internal_has_client_introduction_ack()) { - client_introduction_ack_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(*from.client_introduction_ack_); - } else { - client_introduction_ack_ = nullptr; - } - if (from._internal_has_safe_to_close_prior_channel()) { - safe_to_close_prior_channel_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(*from.safe_to_close_prior_channel_); - } else { - safe_to_close_prior_channel_ = nullptr; - } - event_type_ = from.event_type_; +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame::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::connections::BandwidthUpgradeNegotiationFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeNegotiationFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeNegotiationFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeNegotiationFrame* 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_.upgrade_path_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.upgrade_path_info_) + : nullptr; + _impl_.client_introduction_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_introduction_) + : nullptr; + _impl_.client_introduction_ack_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_introduction_ack_) + : nullptr; + _impl_.safe_to_close_prior_channel_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.safe_to_close_prior_channel_) + : nullptr; + _impl_.event_type_ = from._impl_.event_type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeNegotiationFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void BandwidthUpgradeNegotiationFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&upgrade_path_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&event_type_) - - reinterpret_cast(&upgrade_path_info_)) + sizeof(event_type_)); +inline void BandwidthUpgradeNegotiationFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, upgrade_path_info_), + 0, + offsetof(Impl_, event_type_) - + offsetof(Impl_, upgrade_path_info_) + + sizeof(Impl_::event_type_)); } - BandwidthUpgradeNegotiationFrame::~BandwidthUpgradeNegotiationFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeNegotiationFrame::SharedDtor(MessageLite& self) { + BandwidthUpgradeNegotiationFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.upgrade_path_info_; + delete this_._impl_.client_introduction_; + delete this_._impl_.client_introduction_ack_; + delete this_._impl_.safe_to_close_prior_channel_; + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeNegotiationFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete upgrade_path_info_; - if (this != internal_default_instance()) delete client_introduction_; - if (this != internal_default_instance()) delete client_introduction_ack_; - if (this != internal_default_instance()) delete safe_to_close_prior_channel_; +inline void* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeNegotiationFrame(arena); +} +constexpr auto BandwidthUpgradeNegotiationFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BandwidthUpgradeNegotiationFrame), + alignof(BandwidthUpgradeNegotiationFrame)); +} +constexpr auto BandwidthUpgradeNegotiationFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<61>{ + { + &_BandwidthUpgradeNegotiationFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeNegotiationFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeNegotiationFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeNegotiationFrame::ByteSizeLong, + &BandwidthUpgradeNegotiationFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeNegotiationFrame", + }; } -void BandwidthUpgradeNegotiationFrame::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> BandwidthUpgradeNegotiationFrame_class_data_ = + BandwidthUpgradeNegotiationFrame::InternalGenerateClassData_(); -void BandwidthUpgradeNegotiationFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame::GetClassData() const { + return BandwidthUpgradeNegotiationFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 5, 0, 2> +BandwidthUpgradeNegotiationFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _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 + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + BandwidthUpgradeNegotiationFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 4, 7, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.event_type_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.upgrade_path_info_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.client_introduction_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.client_introduction_ack_)}}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; + {::_pbi::TcParser::FastMtS1, + {42, 3, 3, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.safe_to_close_prior_channel_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.event_type_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.upgrade_path_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.client_introduction_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.client_introduction_ack_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.safe_to_close_prior_channel_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>()}, + {0, 7}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeNegotiationFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(upgrade_path_info_ != nullptr); - upgrade_path_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.upgrade_path_info_ != nullptr); + _impl_.upgrade_path_info_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(client_introduction_ != nullptr); - client_introduction_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.client_introduction_ != nullptr); + _impl_.client_introduction_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(client_introduction_ack_ != nullptr); - client_introduction_ack_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.client_introduction_ack_ != nullptr); + _impl_.client_introduction_ack_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(safe_to_close_prior_channel_ != nullptr); - safe_to_close_prior_channel_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.safe_to_close_prior_channel_ != nullptr); + _impl_.safe_to_close_prior_channel_->Clear(); } } - event_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.event_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeNegotiationFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_upgrade_path_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_client_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_client_introduction_ack(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_safe_to_close_prior_channel(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeNegotiationFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeNegotiationFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event_type(), target); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::upgrade_path_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.upgrade_path_info_, this_._impl_.upgrade_path_info_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::client_introduction(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.client_introduction_, this_._impl_.client_introduction_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::client_introduction_ack(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.client_introduction_ack_, this_._impl_.client_introduction_ack_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::safe_to_close_prior_channel(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.safe_to_close_prior_channel_, this_._impl_.safe_to_close_prior_channel_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame) return target; } -size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeNegotiationFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong() const { + const BandwidthUpgradeNegotiationFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *upgrade_path_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upgrade_path_info_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *client_introduction_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.client_introduction_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *client_introduction_ack_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.client_introduction_ack_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *safe_to_close_prior_channel_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.safe_to_close_prior_channel_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeNegotiationFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame::MergeFrom(const BandwidthUpgradeNegotiationFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_upgrade_path_info()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(from._internal_upgrade_path_info()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_client_introduction()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeFrom(from._internal_client_introduction()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_client_introduction_ack()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeFrom(from._internal_client_introduction_ack()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_safe_to_close_prior_channel()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeFrom(from._internal_safe_to_close_prior_channel()); - } - if (cached_has_bits & 0x00000010u) { - event_type_ = from.event_type_; - } - _has_bits_[0] |= cached_has_bits; +void BandwidthUpgradeNegotiationFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.upgrade_path_info_ != nullptr); + if (_this->_impl_.upgrade_path_info_ == nullptr) { + _this->_impl_.upgrade_path_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.upgrade_path_info_); + } else { + _this->_impl_.upgrade_path_info_->MergeFrom(*from._impl_.upgrade_path_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.client_introduction_ != nullptr); + if (_this->_impl_.client_introduction_ == nullptr) { + _this->_impl_.client_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_introduction_); + } else { + _this->_impl_.client_introduction_->MergeFrom(*from._impl_.client_introduction_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.client_introduction_ack_ != nullptr); + if (_this->_impl_.client_introduction_ack_ == nullptr) { + _this->_impl_.client_introduction_ack_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.client_introduction_ack_); + } else { + _this->_impl_.client_introduction_ack_->MergeFrom(*from._impl_.client_introduction_ack_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.safe_to_close_prior_channel_ != nullptr); + if (_this->_impl_.safe_to_close_prior_channel_ == nullptr) { + _this->_impl_.safe_to_close_prior_channel_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.safe_to_close_prior_channel_); + } else { + _this->_impl_.safe_to_close_prior_channel_->MergeFrom(*from._impl_.safe_to_close_prior_channel_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.event_type_ = from._impl_.event_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeNegotiationFrame::CopyFrom(const BandwidthUpgradeNegotiationFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeNegotiationFrame::IsInitialized() const { - return true; -} -void BandwidthUpgradeNegotiationFrame::InternalSwap(BandwidthUpgradeNegotiationFrame* other) { - using std::swap; +void BandwidthUpgradeNegotiationFrame::InternalSwap(BandwidthUpgradeNegotiationFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, event_type_) - + sizeof(BandwidthUpgradeNegotiationFrame::event_type_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, upgrade_path_info_)>( - reinterpret_cast(&upgrade_path_info_), - reinterpret_cast(&other->upgrade_path_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.event_type_) + + sizeof(BandwidthUpgradeNegotiationFrame::_impl_.event_type_) + - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, _impl_.upgrade_path_info_)>( + reinterpret_cast(&_impl_.upgrade_path_info_), + reinterpret_cast(&other->_impl_.upgrade_path_info_)); } -std::string BandwidthUpgradeNegotiationFrame::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame"; -} - - // =================================================================== class BandwidthUpgradeRetryFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_is_request(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_._has_bits_); }; -BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - supported_medium_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeRetryFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeRetryFrame) } -BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame(const BandwidthUpgradeRetryFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - supported_medium_(from.supported_medium_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - is_request_ = from.is_request_; +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeRetryFrame::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::connections::BandwidthUpgradeRetryFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + supported_medium_{visibility, arena, from.supported_medium_} {} + +BandwidthUpgradeRetryFrame::BandwidthUpgradeRetryFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BandwidthUpgradeRetryFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, BandwidthUpgradeRetryFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + BandwidthUpgradeRetryFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.is_request_ = from._impl_.is_request_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeRetryFrame) } +PROTOBUF_NDEBUG_INLINE BandwidthUpgradeRetryFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + supported_medium_{visibility, arena} {} -inline void BandwidthUpgradeRetryFrame::SharedCtor() { -is_request_ = false; +inline void BandwidthUpgradeRetryFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.is_request_ = {}; } - BandwidthUpgradeRetryFrame::~BandwidthUpgradeRetryFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeRetryFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void BandwidthUpgradeRetryFrame::SharedDtor(MessageLite& self) { + BandwidthUpgradeRetryFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void BandwidthUpgradeRetryFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL BandwidthUpgradeRetryFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BandwidthUpgradeRetryFrame(arena); +} +constexpr auto BandwidthUpgradeRetryFrame::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_.supported_medium_) + + decltype(BandwidthUpgradeRetryFrame::_impl_.supported_medium_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(BandwidthUpgradeRetryFrame), alignof(BandwidthUpgradeRetryFrame), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&BandwidthUpgradeRetryFrame::PlacementNew_, + sizeof(BandwidthUpgradeRetryFrame), + alignof(BandwidthUpgradeRetryFrame)); + } +} +constexpr auto BandwidthUpgradeRetryFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<55>{ + { + &_BandwidthUpgradeRetryFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BandwidthUpgradeRetryFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BandwidthUpgradeRetryFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &BandwidthUpgradeRetryFrame::ByteSizeLong, + &BandwidthUpgradeRetryFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.BandwidthUpgradeRetryFrame", + }; } -void BandwidthUpgradeRetryFrame::ArenaDtor(void* object) { - BandwidthUpgradeRetryFrame* _this = reinterpret_cast< BandwidthUpgradeRetryFrame* >(object); - (void)_this; -} -void BandwidthUpgradeRetryFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeRetryFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> BandwidthUpgradeRetryFrame_class_data_ = + BandwidthUpgradeRetryFrame::InternalGenerateClassData_(); -void BandwidthUpgradeRetryFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BandwidthUpgradeRetryFrame::GetClassData() const { + return BandwidthUpgradeRetryFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +BandwidthUpgradeRetryFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _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), + BandwidthUpgradeRetryFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::BandwidthUpgradeRetryFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool is_request = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_.is_request_)}}, + // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; + {::_pbi::TcParser::FastEvR1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_.supported_medium_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_.supported_medium_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kEnum)}, + // optional bool is_request = 2; + {PROTOBUF_FIELD_OFFSET(BandwidthUpgradeRetryFrame, _impl_.is_request_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void BandwidthUpgradeRetryFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeRetryFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - supported_medium_.Clear(); - is_request_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.supported_medium_.Clear(); + } + _impl_.is_request_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* BandwidthUpgradeRetryFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_IsValid(val))) { - _internal_add_supported_medium(static_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<8>(ptr)); - } else if (static_cast(tag) == 10) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_supported_medium(), ptr, ctx, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_IsValid, &_internal_metadata_, 1); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_request = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_is_request(&has_bits); - is_request_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeRetryFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeRetryFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BandwidthUpgradeRetryFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BandwidthUpgradeRetryFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BandwidthUpgradeRetryFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeRetryFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; - for (int i = 0, n = this->_internal_supported_medium_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_supported_medium(i), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_supported_medium_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, static_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium>(this_._internal_supported_medium().Get(i)), + target); + } } - cached_has_bits = _has_bits_[0]; // optional bool is_request = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_is_request(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_is_request(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeRetryFrame) return target; } -size_t BandwidthUpgradeRetryFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeRetryFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BandwidthUpgradeRetryFrame::ByteSizeLong(const MessageLite& base) { + const BandwidthUpgradeRetryFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BandwidthUpgradeRetryFrame::ByteSizeLong() const { + const BandwidthUpgradeRetryFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeRetryFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_supported_medium_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_supported_medium(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000002U & cached_has_bits) * 2; + { + // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_medium()); + ::size_t tag_size = ::size_t{1} * + ::_pbi::FromIntSize(this_._internal_supported_medium_size()); + total_size += data_size + tag_size; } - total_size += (1UL * count) + data_size; } - - // optional bool is_request = 2; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void BandwidthUpgradeRetryFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeRetryFrame::MergeFrom(const BandwidthUpgradeRetryFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeRetryFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - supported_medium_.MergeFrom(from.supported_medium_); - if (from._internal_has_is_request()) { - _internal_set_is_request(from._internal_is_request()); +void BandwidthUpgradeRetryFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeRetryFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_supported_medium()->MergeFrom(from._internal_supported_medium()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.is_request_ = from._impl_.is_request_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void BandwidthUpgradeRetryFrame::CopyFrom(const BandwidthUpgradeRetryFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeRetryFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeRetryFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool BandwidthUpgradeRetryFrame::IsInitialized() const { - return true; -} -void BandwidthUpgradeRetryFrame::InternalSwap(BandwidthUpgradeRetryFrame* other) { - using std::swap; +void BandwidthUpgradeRetryFrame::InternalSwap(BandwidthUpgradeRetryFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - supported_medium_.InternalSwap(&other->supported_medium_); - swap(is_request_, other->is_request_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.supported_medium_.InternalSwap(&other->_impl_.supported_medium_); + swap(_impl_.is_request_, other->_impl_.is_request_); } -std::string BandwidthUpgradeRetryFrame::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeRetryFrame"; -} - - // =================================================================== class KeepAliveFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ack(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_seq_num(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_._has_bits_); }; -KeepAliveFrame::KeepAliveFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +KeepAliveFrame::KeepAliveFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, KeepAliveFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.KeepAliveFrame) } -KeepAliveFrame::KeepAliveFrame(const KeepAliveFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&ack_, &from.ack_, - static_cast(reinterpret_cast(&seq_num_) - - reinterpret_cast(&ack_)) + sizeof(seq_num_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.KeepAliveFrame) +KeepAliveFrame::KeepAliveFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeepAliveFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, KeepAliveFrame_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 KeepAliveFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void KeepAliveFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ack_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&seq_num_) - - reinterpret_cast(&ack_)) + sizeof(seq_num_)); +inline void KeepAliveFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, ack_), + 0, + offsetof(Impl_, seq_num_) - + offsetof(Impl_, ack_) + + sizeof(Impl_::seq_num_)); } - KeepAliveFrame::~KeepAliveFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.KeepAliveFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void KeepAliveFrame::SharedDtor(MessageLite& self) { + KeepAliveFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void KeepAliveFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL KeepAliveFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) KeepAliveFrame(arena); +} +constexpr auto KeepAliveFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(KeepAliveFrame), + alignof(KeepAliveFrame)); +} +constexpr auto KeepAliveFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_KeepAliveFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KeepAliveFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KeepAliveFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &KeepAliveFrame::ByteSizeLong, + &KeepAliveFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.KeepAliveFrame", + }; } -void KeepAliveFrame::ArenaDtor(void* object) { - KeepAliveFrame* _this = reinterpret_cast< KeepAliveFrame* >(object); - (void)_this; -} -void KeepAliveFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void KeepAliveFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> KeepAliveFrame_class_data_ = + KeepAliveFrame::InternalGenerateClassData_(); -void KeepAliveFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +KeepAliveFrame::GetClassData() const { + return KeepAliveFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +KeepAliveFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + KeepAliveFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::KeepAliveFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional uint32 seq_num = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.seq_num_)}}, + // optional bool ack = 1; + {::_pbi::TcParser::FastV8S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.ack_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool ack = 1; + {PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.ack_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional uint32 seq_num = 2; + {PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.seq_num_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void KeepAliveFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.KeepAliveFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&ack_, 0, static_cast( - reinterpret_cast(&seq_num_) - - reinterpret_cast(&ack_)) + sizeof(seq_num_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.ack_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.seq_num_) - + reinterpret_cast(&_impl_.ack_)) + sizeof(_impl_.seq_num_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* KeepAliveFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool ack = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_ack(&has_bits); - ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 seq_num = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_seq_num(&has_bits); - seq_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* KeepAliveFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL KeepAliveFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const KeepAliveFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL KeepAliveFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const KeepAliveFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.KeepAliveFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool ack = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ack(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_ack(), target); } // optional uint32 seq_num = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq_num(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_seq_num(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.KeepAliveFrame) return target; } -size_t KeepAliveFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.KeepAliveFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t KeepAliveFrame::ByteSizeLong(const MessageLite& base) { + const KeepAliveFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t KeepAliveFrame::ByteSizeLong() const { + const KeepAliveFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.KeepAliveFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bool ack = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000001U & cached_has_bits) * 2; + { // optional uint32 seq_num = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq_num()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_seq_num()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void KeepAliveFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void KeepAliveFrame::MergeFrom(const KeepAliveFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.KeepAliveFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ack_ = from.ack_; - } - if (cached_has_bits & 0x00000002u) { - seq_num_ = from.seq_num_; - } - _has_bits_[0] |= cached_has_bits; +void KeepAliveFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.KeepAliveFrame) + 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_.ack_ = from._impl_.ack_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.seq_num_ = from._impl_.seq_num_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void KeepAliveFrame::CopyFrom(const KeepAliveFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.KeepAliveFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.KeepAliveFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool KeepAliveFrame::IsInitialized() const { - return true; -} -void KeepAliveFrame::InternalSwap(KeepAliveFrame* other) { - using std::swap; +void KeepAliveFrame::InternalSwap(KeepAliveFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(KeepAliveFrame, seq_num_) - + sizeof(KeepAliveFrame::seq_num_) - - PROTOBUF_FIELD_OFFSET(KeepAliveFrame, ack_)>( - reinterpret_cast(&ack_), - reinterpret_cast(&other->ack_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.seq_num_) + + sizeof(KeepAliveFrame::_impl_.seq_num_) + - PROTOBUF_FIELD_OFFSET(KeepAliveFrame, _impl_.ack_)>( + reinterpret_cast(&_impl_.ack_), + reinterpret_cast(&other->_impl_.ack_)); } -std::string KeepAliveFrame::GetTypeName() const { - return "location.nearby.connections.KeepAliveFrame"; -} - - // =================================================================== class DisconnectionFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_request_safe_to_disconnect(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_ack_safe_to_disconnect(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._has_bits_); }; -DisconnectionFrame::DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DisconnectionFrame::DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.DisconnectionFrame) } -DisconnectionFrame::DisconnectionFrame(const DisconnectionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&request_safe_to_disconnect_, &from.request_safe_to_disconnect_, - static_cast(reinterpret_cast(&ack_safe_to_disconnect_) - - reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.DisconnectionFrame) +DisconnectionFrame::DisconnectionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectionFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectionFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE DisconnectionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void DisconnectionFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&request_safe_to_disconnect_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ack_safe_to_disconnect_) - - reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); +inline void DisconnectionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, request_safe_to_disconnect_), + 0, + offsetof(Impl_, ack_safe_to_disconnect_) - + offsetof(Impl_, request_safe_to_disconnect_) + + sizeof(Impl_::ack_safe_to_disconnect_)); } - DisconnectionFrame::~DisconnectionFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.DisconnectionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void DisconnectionFrame::SharedDtor(MessageLite& self) { + DisconnectionFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void DisconnectionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL DisconnectionFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DisconnectionFrame(arena); +} +constexpr auto DisconnectionFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DisconnectionFrame), + alignof(DisconnectionFrame)); +} +constexpr auto DisconnectionFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<47>{ + { + &_DisconnectionFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisconnectionFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisconnectionFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DisconnectionFrame::ByteSizeLong, + &DisconnectionFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.DisconnectionFrame", + }; } -void DisconnectionFrame::ArenaDtor(void* object) { - DisconnectionFrame* _this = reinterpret_cast< DisconnectionFrame* >(object); - (void)_this; -} -void DisconnectionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DisconnectionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<47> DisconnectionFrame_class_data_ = + DisconnectionFrame::InternalGenerateClassData_(); -void DisconnectionFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DisconnectionFrame::GetClassData() const { + return DisconnectionFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +DisconnectionFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DisconnectionFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::DisconnectionFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool ack_safe_to_disconnect = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.ack_safe_to_disconnect_)}}, + // optional bool request_safe_to_disconnect = 1; + {::_pbi::TcParser::FastV8S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.request_safe_to_disconnect_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool request_safe_to_disconnect = 1; + {PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.request_safe_to_disconnect_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool ack_safe_to_disconnect = 2; + {PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.ack_safe_to_disconnect_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DisconnectionFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.DisconnectionFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&request_safe_to_disconnect_, 0, static_cast( - reinterpret_cast(&ack_safe_to_disconnect_) - - reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(&_impl_.request_safe_to_disconnect_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.ack_safe_to_disconnect_) - + reinterpret_cast(&_impl_.request_safe_to_disconnect_)) + sizeof(_impl_.ack_safe_to_disconnect_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* DisconnectionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool request_safe_to_disconnect = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_request_safe_to_disconnect(&has_bits); - request_safe_to_disconnect_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool ack_safe_to_disconnect = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_ack_safe_to_disconnect(&has_bits); - ack_safe_to_disconnect_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DisconnectionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DisconnectionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DisconnectionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.DisconnectionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool request_safe_to_disconnect = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_request_safe_to_disconnect(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_request_safe_to_disconnect(), target); } // optional bool ack_safe_to_disconnect = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ack_safe_to_disconnect(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_ack_safe_to_disconnect(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.DisconnectionFrame) return target; } -size_t DisconnectionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.DisconnectionFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DisconnectionFrame::ByteSizeLong(const MessageLite& base) { + const DisconnectionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DisconnectionFrame::ByteSizeLong() const { + const DisconnectionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.DisconnectionFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bool request_safe_to_disconnect = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } - - // optional bool ack_safe_to_disconnect = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 2; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DisconnectionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DisconnectionFrame::MergeFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.DisconnectionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - request_safe_to_disconnect_ = from.request_safe_to_disconnect_; - } - if (cached_has_bits & 0x00000002u) { - ack_safe_to_disconnect_ = from.ack_safe_to_disconnect_; - } - _has_bits_[0] |= cached_has_bits; +void DisconnectionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.DisconnectionFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.request_safe_to_disconnect_ = from._impl_.request_safe_to_disconnect_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.ack_safe_to_disconnect_ = from._impl_.ack_safe_to_disconnect_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DisconnectionFrame::CopyFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.DisconnectionFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.DisconnectionFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool DisconnectionFrame::IsInitialized() const { - return true; -} -void DisconnectionFrame::InternalSwap(DisconnectionFrame* other) { - using std::swap; +void DisconnectionFrame::InternalSwap(DisconnectionFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DisconnectionFrame, ack_safe_to_disconnect_) - + sizeof(DisconnectionFrame::ack_safe_to_disconnect_) - - PROTOBUF_FIELD_OFFSET(DisconnectionFrame, request_safe_to_disconnect_)>( - reinterpret_cast(&request_safe_to_disconnect_), - reinterpret_cast(&other->request_safe_to_disconnect_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.ack_safe_to_disconnect_) + + sizeof(DisconnectionFrame::_impl_.ack_safe_to_disconnect_) + - PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.request_safe_to_disconnect_)>( + reinterpret_cast(&_impl_.request_safe_to_disconnect_), + reinterpret_cast(&other->_impl_.request_safe_to_disconnect_)); } -std::string DisconnectionFrame::GetTypeName() const { - return "location.nearby.connections.DisconnectionFrame"; -} - - // =================================================================== class PairedKeyEncryptionFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_signed_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PairedKeyEncryptionFrame, _impl_._has_bits_); }; -PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PairedKeyEncryptionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PairedKeyEncryptionFrame) } -PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(const PairedKeyEncryptionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signed_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_signed_data()) { - signed_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signed_data(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE PairedKeyEncryptionFrame::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::connections::PairedKeyEncryptionFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + signed_data_(arena, from.signed_data_) {} + +PairedKeyEncryptionFrame::PairedKeyEncryptionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PairedKeyEncryptionFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PairedKeyEncryptionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PairedKeyEncryptionFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PairedKeyEncryptionFrame) } +PROTOBUF_NDEBUG_INLINE PairedKeyEncryptionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + signed_data_(arena) {} -inline void PairedKeyEncryptionFrame::SharedCtor() { -signed_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void PairedKeyEncryptionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - PairedKeyEncryptionFrame::~PairedKeyEncryptionFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.PairedKeyEncryptionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PairedKeyEncryptionFrame::SharedDtor(MessageLite& self) { + PairedKeyEncryptionFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.signed_data_.Destroy(); + this_._impl_.~Impl_(); } -inline void PairedKeyEncryptionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - signed_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PairedKeyEncryptionFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PairedKeyEncryptionFrame(arena); +} +constexpr auto PairedKeyEncryptionFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PairedKeyEncryptionFrame), + alignof(PairedKeyEncryptionFrame)); +} +constexpr auto PairedKeyEncryptionFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<53>{ + { + &_PairedKeyEncryptionFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PairedKeyEncryptionFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PairedKeyEncryptionFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PairedKeyEncryptionFrame::ByteSizeLong, + &PairedKeyEncryptionFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PairedKeyEncryptionFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PairedKeyEncryptionFrame", + }; } -void PairedKeyEncryptionFrame::ArenaDtor(void* object) { - PairedKeyEncryptionFrame* _this = reinterpret_cast< PairedKeyEncryptionFrame* >(object); - (void)_this; -} -void PairedKeyEncryptionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PairedKeyEncryptionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<53> PairedKeyEncryptionFrame_class_data_ = + PairedKeyEncryptionFrame::InternalGenerateClassData_(); -void PairedKeyEncryptionFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PairedKeyEncryptionFrame::GetClassData() const { + return PairedKeyEncryptionFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +PairedKeyEncryptionFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PairedKeyEncryptionFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PairedKeyEncryptionFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PairedKeyEncryptionFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes signed_data = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(PairedKeyEncryptionFrame, _impl_.signed_data_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes signed_data = 1; + {PROTOBUF_FIELD_OFFSET(PairedKeyEncryptionFrame, _impl_.signed_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void PairedKeyEncryptionFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PairedKeyEncryptionFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - signed_data_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.signed_data_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PairedKeyEncryptionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes signed_data = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_signed_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PairedKeyEncryptionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PairedKeyEncryptionFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PairedKeyEncryptionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PairedKeyEncryptionFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PairedKeyEncryptionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PairedKeyEncryptionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes signed_data = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_signed_data(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_signed_data(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PairedKeyEncryptionFrame) return target; } -size_t PairedKeyEncryptionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PairedKeyEncryptionFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PairedKeyEncryptionFrame::ByteSizeLong(const MessageLite& base) { + const PairedKeyEncryptionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PairedKeyEncryptionFrame::ByteSizeLong() const { + const PairedKeyEncryptionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PairedKeyEncryptionFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional bytes signed_data = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signed_data()); + { + // optional bytes signed_data = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_signed_data()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PairedKeyEncryptionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PairedKeyEncryptionFrame::MergeFrom(const PairedKeyEncryptionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PairedKeyEncryptionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_signed_data()) { - _internal_set_signed_data(from._internal_signed_data()); +void PairedKeyEncryptionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PairedKeyEncryptionFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_signed_data(from._internal_signed_data()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PairedKeyEncryptionFrame::CopyFrom(const PairedKeyEncryptionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PairedKeyEncryptionFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PairedKeyEncryptionFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool PairedKeyEncryptionFrame::IsInitialized() const { - return true; -} -void PairedKeyEncryptionFrame::InternalSwap(PairedKeyEncryptionFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PairedKeyEncryptionFrame::InternalSwap(PairedKeyEncryptionFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &signed_data_, lhs_arena, - &other->signed_data_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signed_data_, &other->_impl_.signed_data_, arena); } -std::string PairedKeyEncryptionFrame::GetTypeName() const { - return "location.nearby.connections.PairedKeyEncryptionFrame"; -} - - // =================================================================== class AuthenticationMessageFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_auth_message(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AuthenticationMessageFrame, _impl_._has_bits_); }; -AuthenticationMessageFrame::AuthenticationMessageFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AuthenticationMessageFrame::AuthenticationMessageFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AuthenticationMessageFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AuthenticationMessageFrame) } -AuthenticationMessageFrame::AuthenticationMessageFrame(const AuthenticationMessageFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - auth_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_auth_message()) { - auth_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_auth_message(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE AuthenticationMessageFrame::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::connections::AuthenticationMessageFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + auth_message_(arena, from.auth_message_) {} + +AuthenticationMessageFrame::AuthenticationMessageFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const AuthenticationMessageFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AuthenticationMessageFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AuthenticationMessageFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AuthenticationMessageFrame) } +PROTOBUF_NDEBUG_INLINE AuthenticationMessageFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + auth_message_(arena) {} -inline void AuthenticationMessageFrame::SharedCtor() { -auth_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void AuthenticationMessageFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - AuthenticationMessageFrame::~AuthenticationMessageFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.AuthenticationMessageFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AuthenticationMessageFrame::SharedDtor(MessageLite& self) { + AuthenticationMessageFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.auth_message_.Destroy(); + this_._impl_.~Impl_(); } -inline void AuthenticationMessageFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - auth_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL AuthenticationMessageFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AuthenticationMessageFrame(arena); +} +constexpr auto AuthenticationMessageFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AuthenticationMessageFrame), + alignof(AuthenticationMessageFrame)); +} +constexpr auto AuthenticationMessageFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<55>{ + { + &_AuthenticationMessageFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AuthenticationMessageFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AuthenticationMessageFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AuthenticationMessageFrame::ByteSizeLong, + &AuthenticationMessageFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AuthenticationMessageFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.AuthenticationMessageFrame", + }; } -void AuthenticationMessageFrame::ArenaDtor(void* object) { - AuthenticationMessageFrame* _this = reinterpret_cast< AuthenticationMessageFrame* >(object); - (void)_this; -} -void AuthenticationMessageFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AuthenticationMessageFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> AuthenticationMessageFrame_class_data_ = + AuthenticationMessageFrame::InternalGenerateClassData_(); -void AuthenticationMessageFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AuthenticationMessageFrame::GetClassData() const { + return AuthenticationMessageFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +AuthenticationMessageFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AuthenticationMessageFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AuthenticationMessageFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::AuthenticationMessageFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes auth_message = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(AuthenticationMessageFrame, _impl_.auth_message_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes auth_message = 1; + {PROTOBUF_FIELD_OFFSET(AuthenticationMessageFrame, _impl_.auth_message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AuthenticationMessageFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.AuthenticationMessageFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - auth_message_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.auth_message_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AuthenticationMessageFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes auth_message = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_auth_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AuthenticationMessageFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AuthenticationMessageFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AuthenticationMessageFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AuthenticationMessageFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AuthenticationMessageFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AuthenticationMessageFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes auth_message = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_auth_message(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_auth_message(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AuthenticationMessageFrame) return target; } -size_t AuthenticationMessageFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationMessageFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AuthenticationMessageFrame::ByteSizeLong(const MessageLite& base) { + const AuthenticationMessageFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AuthenticationMessageFrame::ByteSizeLong() const { + const AuthenticationMessageFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationMessageFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional bytes auth_message = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_auth_message()); + { + // optional bytes auth_message = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_auth_message()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AuthenticationMessageFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AuthenticationMessageFrame::MergeFrom(const AuthenticationMessageFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationMessageFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_auth_message()) { - _internal_set_auth_message(from._internal_auth_message()); +void AuthenticationMessageFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationMessageFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_auth_message(from._internal_auth_message()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AuthenticationMessageFrame::CopyFrom(const AuthenticationMessageFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationMessageFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationMessageFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool AuthenticationMessageFrame::IsInitialized() const { - return true; -} -void AuthenticationMessageFrame::InternalSwap(AuthenticationMessageFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void AuthenticationMessageFrame::InternalSwap(AuthenticationMessageFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &auth_message_, lhs_arena, - &other->auth_message_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.auth_message_, &other->_impl_.auth_message_, arena); } -std::string AuthenticationMessageFrame::GetTypeName() const { - return "location.nearby.connections.AuthenticationMessageFrame"; -} - - // =================================================================== class AuthenticationResultFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AuthenticationResultFrame, _impl_._has_bits_); }; -AuthenticationResultFrame::AuthenticationResultFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AuthenticationResultFrame::AuthenticationResultFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AuthenticationResultFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AuthenticationResultFrame) } -AuthenticationResultFrame::AuthenticationResultFrame(const AuthenticationResultFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - result_ = from.result_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AuthenticationResultFrame) +AuthenticationResultFrame::AuthenticationResultFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AuthenticationResultFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AuthenticationResultFrame_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 AuthenticationResultFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void AuthenticationResultFrame::SharedCtor() { -result_ = 0; +inline void AuthenticationResultFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - AuthenticationResultFrame::~AuthenticationResultFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.AuthenticationResultFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AuthenticationResultFrame::SharedDtor(MessageLite& self) { + AuthenticationResultFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void AuthenticationResultFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL AuthenticationResultFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AuthenticationResultFrame(arena); +} +constexpr auto AuthenticationResultFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AuthenticationResultFrame), + alignof(AuthenticationResultFrame)); +} +constexpr auto AuthenticationResultFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<54>{ + { + &_AuthenticationResultFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AuthenticationResultFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AuthenticationResultFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AuthenticationResultFrame::ByteSizeLong, + &AuthenticationResultFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AuthenticationResultFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.AuthenticationResultFrame", + }; } -void AuthenticationResultFrame::ArenaDtor(void* object) { - AuthenticationResultFrame* _this = reinterpret_cast< AuthenticationResultFrame* >(object); - (void)_this; -} -void AuthenticationResultFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AuthenticationResultFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<54> AuthenticationResultFrame_class_data_ = + AuthenticationResultFrame::InternalGenerateClassData_(); -void AuthenticationResultFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AuthenticationResultFrame::GetClassData() const { + return AuthenticationResultFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +AuthenticationResultFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AuthenticationResultFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AuthenticationResultFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::AuthenticationResultFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 result = 1; + {::_pbi::TcParser::FastV32S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(AuthenticationResultFrame, _impl_.result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 result = 1; + {PROTOBUF_FIELD_OFFSET(AuthenticationResultFrame, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AuthenticationResultFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.AuthenticationResultFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.result_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AuthenticationResultFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_result(&has_bits); - result_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AuthenticationResultFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AuthenticationResultFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AuthenticationResultFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AuthenticationResultFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AuthenticationResultFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AuthenticationResultFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 result = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_result(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_result(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AuthenticationResultFrame) return target; } -size_t AuthenticationResultFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationResultFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AuthenticationResultFrame::ByteSizeLong(const MessageLite& base) { + const AuthenticationResultFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AuthenticationResultFrame::ByteSizeLong() const { + const AuthenticationResultFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationResultFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 result = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_result()); + { + // optional int32 result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_result()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AuthenticationResultFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AuthenticationResultFrame::MergeFrom(const AuthenticationResultFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationResultFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_result()) { - _internal_set_result(from._internal_result()); +void AuthenticationResultFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationResultFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AuthenticationResultFrame::CopyFrom(const AuthenticationResultFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationResultFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationResultFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool AuthenticationResultFrame::IsInitialized() const { - return true; -} -void AuthenticationResultFrame::InternalSwap(AuthenticationResultFrame* other) { - using std::swap; +void AuthenticationResultFrame::InternalSwap(AuthenticationResultFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(result_, other->result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.result_, other->_impl_.result_); } -std::string AuthenticationResultFrame::GetTypeName() const { - return "location.nearby.connections.AuthenticationResultFrame"; -} - - // =================================================================== class AutoResumeFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_pending_payload_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_next_payload_chunk_index(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_._has_bits_); }; -AutoResumeFrame::AutoResumeFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AutoResumeFrame::AutoResumeFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AutoResumeFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AutoResumeFrame) } -AutoResumeFrame::AutoResumeFrame(const AutoResumeFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&pending_payload_id_, &from.pending_payload_id_, - static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&pending_payload_id_)) + sizeof(version_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AutoResumeFrame) +AutoResumeFrame::AutoResumeFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AutoResumeFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AutoResumeFrame_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 AutoResumeFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void AutoResumeFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&pending_payload_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&pending_payload_id_)) + sizeof(version_)); +inline void AutoResumeFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, pending_payload_id_), + 0, + offsetof(Impl_, version_) - + offsetof(Impl_, pending_payload_id_) + + sizeof(Impl_::version_)); } - AutoResumeFrame::~AutoResumeFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.AutoResumeFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AutoResumeFrame::SharedDtor(MessageLite& self) { + AutoResumeFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void AutoResumeFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL AutoResumeFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AutoResumeFrame(arena); +} +constexpr auto AutoResumeFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AutoResumeFrame), + alignof(AutoResumeFrame)); +} +constexpr auto AutoResumeFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<44>{ + { + &_AutoResumeFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AutoResumeFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AutoResumeFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AutoResumeFrame::ByteSizeLong, + &AutoResumeFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.AutoResumeFrame", + }; } -void AutoResumeFrame::ArenaDtor(void* object) { - AutoResumeFrame* _this = reinterpret_cast< AutoResumeFrame* >(object); - (void)_this; -} -void AutoResumeFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AutoResumeFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<44> AutoResumeFrame_class_data_ = + AutoResumeFrame::InternalGenerateClassData_(); -void AutoResumeFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AutoResumeFrame::GetClassData() const { + return AutoResumeFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +AutoResumeFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _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), + AutoResumeFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::AutoResumeFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 version = 4; + {::_pbi::TcParser::FastV32S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.version_)}}, + // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 2, + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.event_type_)}}, + // optional int64 pending_payload_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.pending_payload_id_)}}, + // optional int32 next_payload_chunk_index = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.next_payload_chunk_index_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; + {PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.event_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 pending_payload_id = 2; + {PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.pending_payload_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 next_payload_chunk_index = 3; + {PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.next_payload_chunk_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 version = 4; + {PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void AutoResumeFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.AutoResumeFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&pending_payload_id_, 0, static_cast( - reinterpret_cast(&version_) - - reinterpret_cast(&pending_payload_id_)) + sizeof(version_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.pending_payload_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.pending_payload_id_)) + sizeof(_impl_.version_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AutoResumeFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::AutoResumeFrame_EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::connections::AutoResumeFrame_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 pending_payload_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_pending_payload_id(&has_bits); - pending_payload_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 next_payload_chunk_index = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_next_payload_chunk_index(&has_bits); - next_payload_chunk_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 version = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_version(&has_bits); - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AutoResumeFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AutoResumeFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AutoResumeFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AutoResumeFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AutoResumeFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AutoResumeFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event_type(), target); } // optional int64 pending_payload_id = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_pending_payload_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_pending_payload_id(), target); } // optional int32 next_payload_chunk_index = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_next_payload_chunk_index(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_next_payload_chunk_index(), target); } // optional int32 version = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_version(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AutoResumeFrame) return target; } -size_t AutoResumeFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AutoResumeFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AutoResumeFrame::ByteSizeLong(const MessageLite& base) { + const AutoResumeFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AutoResumeFrame::ByteSizeLong() const { + const AutoResumeFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AutoResumeFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional int64 pending_payload_id = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_pending_payload_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_pending_payload_id()); } - // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type()); } - // optional int32 next_payload_chunk_index = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_next_payload_chunk_index()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_next_payload_chunk_index()); } - // optional int32 version = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AutoResumeFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AutoResumeFrame::MergeFrom(const AutoResumeFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AutoResumeFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - pending_payload_id_ = from.pending_payload_id_; - } - if (cached_has_bits & 0x00000002u) { - event_type_ = from.event_type_; - } - if (cached_has_bits & 0x00000004u) { - next_payload_chunk_index_ = from.next_payload_chunk_index_; - } - if (cached_has_bits & 0x00000008u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; +void AutoResumeFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AutoResumeFrame) + 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_.pending_payload_id_ = from._impl_.pending_payload_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.event_type_ = from._impl_.event_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.next_payload_chunk_index_ = from._impl_.next_payload_chunk_index_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AutoResumeFrame::CopyFrom(const AutoResumeFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AutoResumeFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AutoResumeFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool AutoResumeFrame::IsInitialized() const { - return true; -} -void AutoResumeFrame::InternalSwap(AutoResumeFrame* other) { - using std::swap; +void AutoResumeFrame::InternalSwap(AutoResumeFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AutoResumeFrame, version_) - + sizeof(AutoResumeFrame::version_) - - PROTOBUF_FIELD_OFFSET(AutoResumeFrame, pending_payload_id_)>( - reinterpret_cast(&pending_payload_id_), - reinterpret_cast(&other->pending_payload_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.version_) + + sizeof(AutoResumeFrame::_impl_.version_) + - PROTOBUF_FIELD_OFFSET(AutoResumeFrame, _impl_.pending_payload_id_)>( + reinterpret_cast(&_impl_.pending_payload_id_), + reinterpret_cast(&other->_impl_.pending_payload_id_)); } -std::string AutoResumeFrame::GetTypeName() const { - return "location.nearby.connections.AutoResumeFrame"; -} - - // =================================================================== class AutoReconnectFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_last_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_._has_bits_); }; -AutoReconnectFrame::AutoReconnectFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AutoReconnectFrame::AutoReconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AutoReconnectFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AutoReconnectFrame) } -AutoReconnectFrame::AutoReconnectFrame(const AutoReconnectFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_last_endpoint_id()) { - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_endpoint_id(), - GetArenaForAllocation()); - } - event_type_ = from.event_type_; +PROTOBUF_NDEBUG_INLINE AutoReconnectFrame::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::connections::AutoReconnectFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + endpoint_id_(arena, from.endpoint_id_), + last_endpoint_id_(arena, from.last_endpoint_id_) {} + +AutoReconnectFrame::AutoReconnectFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const AutoReconnectFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AutoReconnectFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AutoReconnectFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.event_type_ = from._impl_.event_type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AutoReconnectFrame) } +PROTOBUF_NDEBUG_INLINE AutoReconnectFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + endpoint_id_(arena), + last_endpoint_id_(arena) {} -inline void AutoReconnectFrame::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -event_type_ = 0; +inline void AutoReconnectFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.event_type_ = {}; } - AutoReconnectFrame::~AutoReconnectFrame() { // @@protoc_insertion_point(destructor:location.nearby.connections.AutoReconnectFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AutoReconnectFrame::SharedDtor(MessageLite& self) { + AutoReconnectFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.last_endpoint_id_.Destroy(); + this_._impl_.~Impl_(); } -inline void AutoReconnectFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - last_endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL AutoReconnectFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AutoReconnectFrame(arena); +} +constexpr auto AutoReconnectFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AutoReconnectFrame), + alignof(AutoReconnectFrame)); +} +constexpr auto AutoReconnectFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<47>{ + { + &_AutoReconnectFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AutoReconnectFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AutoReconnectFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AutoReconnectFrame::ByteSizeLong, + &AutoReconnectFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_._cached_size_), + true, + }, + "location.nearby.connections.AutoReconnectFrame", + }; } -void AutoReconnectFrame::ArenaDtor(void* object) { - AutoReconnectFrame* _this = reinterpret_cast< AutoReconnectFrame* >(object); - (void)_this; -} -void AutoReconnectFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AutoReconnectFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<47> AutoReconnectFrame_class_data_ = + AutoReconnectFrame::InternalGenerateClassData_(); -void AutoReconnectFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AutoReconnectFrame::GetClassData() const { + return AutoReconnectFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +AutoReconnectFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + AutoReconnectFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::AutoReconnectFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.endpoint_id_)}}, + // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 2, 2, + PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.event_type_)}}, + // optional string last_endpoint_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.last_endpoint_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; + {PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.event_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string last_endpoint_id = 3; + {PROTOBUF_FIELD_OFFSET(AutoReconnectFrame, _impl_.last_endpoint_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void AutoReconnectFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.AutoReconnectFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - last_endpoint_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.last_endpoint_id_.ClearNonDefaultToEmpty(); } } - event_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.event_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AutoReconnectFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::AutoReconnectFrame_EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::connections::AutoReconnectFrame_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string last_endpoint_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_last_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AutoReconnectFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AutoReconnectFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AutoReconnectFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AutoReconnectFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AutoReconnectFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AutoReconnectFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_event_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_event_type(), target); } // optional string last_endpoint_id = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_last_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_last_endpoint_id(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AutoReconnectFrame) return target; } -size_t AutoReconnectFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AutoReconnectFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AutoReconnectFrame::ByteSizeLong(const MessageLite& base) { + const AutoReconnectFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AutoReconnectFrame::ByteSizeLong() const { + const AutoReconnectFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AutoReconnectFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional string last_endpoint_id = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_last_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_last_endpoint_id()); } - // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AutoReconnectFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AutoReconnectFrame::MergeFrom(const AutoReconnectFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AutoReconnectFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_last_endpoint_id(from._internal_last_endpoint_id()); - } - if (cached_has_bits & 0x00000004u) { - event_type_ = from.event_type_; - } - _has_bits_[0] |= cached_has_bits; +void AutoReconnectFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AutoReconnectFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_last_endpoint_id(from._internal_last_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.event_type_ = from._impl_.event_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AutoReconnectFrame::CopyFrom(const AutoReconnectFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AutoReconnectFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AutoReconnectFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool AutoReconnectFrame::IsInitialized() const { - return true; -} -void AutoReconnectFrame::InternalSwap(AutoReconnectFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void AutoReconnectFrame::InternalSwap(AutoReconnectFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &last_endpoint_id_, lhs_arena, - &other->last_endpoint_id_, rhs_arena - ); - swap(event_type_, other->event_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_endpoint_id_, &other->_impl_.last_endpoint_id_, arena); + swap(_impl_.event_type_, other->_impl_.event_type_); } -std::string AutoReconnectFrame::GetTypeName() const { - return "location.nearby.connections.AutoReconnectFrame"; -} - - // =================================================================== class MediumMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_supports_5_ghz(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_bssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_ip_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_supports_6_ghz(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_mobile_radio(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_ap_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static const ::location::nearby::connections::AvailableChannels& available_channels(const MediumMetadata* msg); - static void set_has_available_channels(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::WifiDirectCliUsableChannels& wifi_direct_cli_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_direct_cli_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::WifiLanUsableChannels& wifi_lan_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_lan_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::WifiAwareUsableChannels& wifi_aware_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_aware_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::location::nearby::connections::WifiHotspotStaUsableChannels& wifi_hotspot_sta_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_hotspot_sta_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::location::nearby::connections::MediumRole& medium_role(const MediumMetadata* msg); - static void set_has_medium_role(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_._has_bits_); }; -const ::location::nearby::connections::AvailableChannels& -MediumMetadata::_Internal::available_channels(const MediumMetadata* msg) { - return *msg->available_channels_; -} -const ::location::nearby::connections::WifiDirectCliUsableChannels& -MediumMetadata::_Internal::wifi_direct_cli_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_direct_cli_usable_channels_; -} -const ::location::nearby::connections::WifiLanUsableChannels& -MediumMetadata::_Internal::wifi_lan_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_lan_usable_channels_; -} -const ::location::nearby::connections::WifiAwareUsableChannels& -MediumMetadata::_Internal::wifi_aware_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_aware_usable_channels_; -} -const ::location::nearby::connections::WifiHotspotStaUsableChannels& -MediumMetadata::_Internal::wifi_hotspot_sta_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_hotspot_sta_usable_channels_; -} -const ::location::nearby::connections::MediumRole& -MediumMetadata::_Internal::medium_role(const MediumMetadata* msg) { - return *msg->medium_role_; -} -MediumMetadata::MediumMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - supported_wifi_direct_auth_types_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MediumMetadata::MediumMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MediumMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.MediumMetadata) } -MediumMetadata::MediumMetadata(const MediumMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - supported_wifi_direct_auth_types_(from.supported_wifi_direct_auth_types_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - bssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_bssid()) { - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bssid(), - GetArenaForAllocation()); - } - ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_address()) { - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), - GetArenaForAllocation()); - } - if (from._internal_has_available_channels()) { - available_channels_ = new ::location::nearby::connections::AvailableChannels(*from.available_channels_); - } else { - available_channels_ = nullptr; - } - if (from._internal_has_wifi_direct_cli_usable_channels()) { - wifi_direct_cli_usable_channels_ = new ::location::nearby::connections::WifiDirectCliUsableChannels(*from.wifi_direct_cli_usable_channels_); - } else { - wifi_direct_cli_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_lan_usable_channels()) { - wifi_lan_usable_channels_ = new ::location::nearby::connections::WifiLanUsableChannels(*from.wifi_lan_usable_channels_); - } else { - wifi_lan_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_aware_usable_channels()) { - wifi_aware_usable_channels_ = new ::location::nearby::connections::WifiAwareUsableChannels(*from.wifi_aware_usable_channels_); - } else { - wifi_aware_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_hotspot_sta_usable_channels()) { - wifi_hotspot_sta_usable_channels_ = new ::location::nearby::connections::WifiHotspotStaUsableChannels(*from.wifi_hotspot_sta_usable_channels_); - } else { - wifi_hotspot_sta_usable_channels_ = nullptr; - } - if (from._internal_has_medium_role()) { - medium_role_ = new ::location::nearby::connections::MediumRole(*from.medium_role_); - } else { - medium_role_ = nullptr; - } - ::memcpy(&supports_5_ghz_, &from.supports_5_ghz_, - static_cast(reinterpret_cast(&ap_frequency_) - - reinterpret_cast(&supports_5_ghz_)) + sizeof(ap_frequency_)); +PROTOBUF_NDEBUG_INLINE MediumMetadata::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::connections::MediumMetadata& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + supported_wifi_direct_auth_types_{visibility, arena, from.supported_wifi_direct_auth_types_}, + _supported_wifi_direct_auth_types_cached_byte_size_{0}, + bssid_(arena, from.bssid_), + ip_address_(arena, from.ip_address_) {} + +MediumMetadata::MediumMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MediumMetadata& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MediumMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MediumMetadata* 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_.available_channels_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.available_channels_) + : nullptr; + _impl_.wifi_direct_cli_usable_channels_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_direct_cli_usable_channels_) + : nullptr; + _impl_.wifi_lan_usable_channels_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_lan_usable_channels_) + : nullptr; + _impl_.wifi_aware_usable_channels_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_aware_usable_channels_) + : nullptr; + _impl_.wifi_hotspot_sta_usable_channels_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_hotspot_sta_usable_channels_) + : nullptr; + _impl_.medium_role_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_role_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, supports_5_ghz_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, supports_5_ghz_), + offsetof(Impl_, ap_frequency_) - + offsetof(Impl_, supports_5_ghz_) + + sizeof(Impl_::ap_frequency_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.MediumMetadata) } +PROTOBUF_NDEBUG_INLINE MediumMetadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + supported_wifi_direct_auth_types_{visibility, arena}, + _supported_wifi_direct_auth_types_cached_byte_size_{0}, + bssid_(arena), + ip_address_(arena), + ap_frequency_{-1} {} -inline void MediumMetadata::SharedCtor() { -bssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&available_channels_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&mobile_radio_) - - reinterpret_cast(&available_channels_)) + sizeof(mobile_radio_)); -ap_frequency_ = -1; +inline void MediumMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, available_channels_), + 0, + offsetof(Impl_, mobile_radio_) - + offsetof(Impl_, available_channels_) + + sizeof(Impl_::mobile_radio_)); } - MediumMetadata::~MediumMetadata() { // @@protoc_insertion_point(destructor:location.nearby.connections.MediumMetadata) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void MediumMetadata::SharedDtor(MessageLite& self) { + MediumMetadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.bssid_.Destroy(); + this_._impl_.ip_address_.Destroy(); + delete this_._impl_.available_channels_; + delete this_._impl_.wifi_direct_cli_usable_channels_; + delete this_._impl_.wifi_lan_usable_channels_; + delete this_._impl_.wifi_aware_usable_channels_; + delete this_._impl_.wifi_hotspot_sta_usable_channels_; + delete this_._impl_.medium_role_; + this_._impl_.~Impl_(); } -inline void MediumMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - bssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete available_channels_; - if (this != internal_default_instance()) delete wifi_direct_cli_usable_channels_; - if (this != internal_default_instance()) delete wifi_lan_usable_channels_; - if (this != internal_default_instance()) delete wifi_aware_usable_channels_; - if (this != internal_default_instance()) delete wifi_hotspot_sta_usable_channels_; - if (this != internal_default_instance()) delete medium_role_; +inline void* PROTOBUF_NONNULL MediumMetadata::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MediumMetadata(arena); +} +constexpr auto MediumMetadata::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supported_wifi_direct_auth_types_) + + decltype(MediumMetadata::_impl_.supported_wifi_direct_auth_types_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(MediumMetadata), alignof(MediumMetadata), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&MediumMetadata::PlacementNew_, + sizeof(MediumMetadata), + alignof(MediumMetadata)); + } +} +constexpr auto MediumMetadata::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_MediumMetadata_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MediumMetadata::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MediumMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MediumMetadata::ByteSizeLong, + &MediumMetadata::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_._cached_size_), + true, + }, + "location.nearby.connections.MediumMetadata", + }; } -void MediumMetadata::ArenaDtor(void* object) { - MediumMetadata* _this = reinterpret_cast< MediumMetadata* >(object); - (void)_this; -} -void MediumMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MediumMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> MediumMetadata_class_data_ = + MediumMetadata::InternalGenerateClassData_(); -void MediumMetadata::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MediumMetadata::GetClassData() const { + return MediumMetadata_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 7, 0, 2> +MediumMetadata::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MediumMetadata, _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 + 7, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + MediumMetadata_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::MediumMetadata>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bool supports_5_ghz = 1; + {::_pbi::TcParser::FastV8S1, + {8, 9, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supports_5_ghz_)}}, + // optional string bssid = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.bssid_)}}, + // optional bytes ip_address = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.ip_address_)}}, + // optional bool supports_6_ghz = 4; + {::_pbi::TcParser::FastV8S1, + {32, 10, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supports_6_ghz_)}}, + // optional bool mobile_radio = 5; + {::_pbi::TcParser::FastV8S1, + {40, 11, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.mobile_radio_)}}, + // optional int32 ap_frequency = 6 [default = -1]; + {::_pbi::TcParser::FastV32S1, + {48, 12, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.ap_frequency_)}}, + // optional .location.nearby.connections.AvailableChannels available_channels = 7; + {::_pbi::TcParser::FastMtS1, + {58, 3, 0, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.available_channels_)}}, + // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; + {::_pbi::TcParser::FastMtS1, + {66, 4, 1, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_direct_cli_usable_channels_)}}, + // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; + {::_pbi::TcParser::FastMtS1, + {74, 5, 2, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_lan_usable_channels_)}}, + // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; + {::_pbi::TcParser::FastMtS1, + {82, 6, 3, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_aware_usable_channels_)}}, + // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; + {::_pbi::TcParser::FastMtS1, + {90, 7, 4, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_hotspot_sta_usable_channels_)}}, + // optional .location.nearby.connections.MediumRole medium_role = 12; + {::_pbi::TcParser::FastMtS1, + {98, 8, 5, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.medium_role_)}}, + // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {106, 0, 2, + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supported_wifi_direct_auth_types_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool supports_5_ghz = 1; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supports_5_ghz_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string bssid = 2; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.bssid_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes ip_address = 3; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.ip_address_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool supports_6_ghz = 4; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supports_6_ghz_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool mobile_radio = 5; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.mobile_radio_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional int32 ap_frequency = 6 [default = -1]; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.ap_frequency_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .location.nearby.connections.AvailableChannels available_channels = 7; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.available_channels_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_direct_cli_usable_channels_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_lan_usable_channels_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_aware_usable_channels_), _Internal::kHasBitsOffset + 6, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.wifi_hotspot_sta_usable_channels_), _Internal::kHasBitsOffset + 7, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.connections.MediumRole medium_role = 12; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.medium_role_), _Internal::kHasBitsOffset + 8, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; + {PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.supported_wifi_direct_auth_types_), _Internal::kHasBitsOffset + 0, 6, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::connections::AvailableChannels>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::WifiDirectCliUsableChannels>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::WifiLanUsableChannels>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::WifiAwareUsableChannels>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::WifiHotspotStaUsableChannels>()}, + {::_pbi::TcParser::GetTable<::location::nearby::connections::MediumRole>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void MediumMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.MediumMetadata) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - supported_wifi_direct_auth_types_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - bssid_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.supported_wifi_direct_auth_types_.Clear(); } - if (cached_has_bits & 0x00000002u) { - ip_address_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.bssid_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(available_channels_ != nullptr); - available_channels_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.ip_address_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(wifi_direct_cli_usable_channels_ != nullptr); - wifi_direct_cli_usable_channels_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.available_channels_ != nullptr); + _impl_.available_channels_->Clear(); } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(wifi_lan_usable_channels_ != nullptr); - wifi_lan_usable_channels_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.wifi_direct_cli_usable_channels_ != nullptr); + _impl_.wifi_direct_cli_usable_channels_->Clear(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(wifi_aware_usable_channels_ != nullptr); - wifi_aware_usable_channels_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.wifi_lan_usable_channels_ != nullptr); + _impl_.wifi_lan_usable_channels_->Clear(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(wifi_hotspot_sta_usable_channels_ != nullptr); - wifi_hotspot_sta_usable_channels_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.wifi_aware_usable_channels_ != nullptr); + _impl_.wifi_aware_usable_channels_->Clear(); } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(medium_role_ != nullptr); - medium_role_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.wifi_hotspot_sta_usable_channels_ != nullptr); + _impl_.wifi_hotspot_sta_usable_channels_->Clear(); } } - ::memset(&supports_5_ghz_, 0, static_cast( - reinterpret_cast(&mobile_radio_) - - reinterpret_cast(&supports_5_ghz_)) + sizeof(mobile_radio_)); - ap_frequency_ = -1; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.medium_role_ != nullptr); + _impl_.medium_role_->Clear(); + } + ::memset(&_impl_.supports_5_ghz_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.mobile_radio_) - + reinterpret_cast(&_impl_.supports_5_ghz_)) + sizeof(_impl_.mobile_radio_)); + _impl_.ap_frequency_ = -1; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MediumMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool supports_5_ghz = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_supports_5_ghz(&has_bits); - supports_5_ghz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string bssid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_bssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes ip_address = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_ip_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_6_ghz = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_supports_6_ghz(&has_bits); - supports_6_ghz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool mobile_radio = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_mobile_radio(&has_bits); - mobile_radio_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 ap_frequency = 6 [default = -1]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_ap_frequency(&has_bits); - ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_available_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_direct_cli_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_lan_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_aware_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_hotspot_sta_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.MediumRole medium_role = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_medium_role(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_supported_wifi_direct_auth_types(), ptr, ctx, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType_IsValid, &_internal_metadata_, 13); - CHK_(ptr); - } else if (static_cast(tag) == 104) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::MediumMetadata_WifiDirectAuthType_IsValid(val))) { - _internal_add_supported_wifi_direct_auth_types(static_cast<::location::nearby::connections::MediumMetadata_WifiDirectAuthType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MediumMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MediumMetadata::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MediumMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MediumMetadata::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MediumMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.MediumMetadata) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool supports_5_ghz = 1; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_5_ghz(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_supports_5_ghz(), target); } // optional string bssid = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_bssid(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_bssid(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional bytes ip_address = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_ip_address(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_ip_address(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional bool supports_6_ghz = 4; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_supports_6_ghz(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_supports_6_ghz(), target); } // optional bool mobile_radio = 5; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_mobile_radio(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_mobile_radio(), target); } // optional int32 ap_frequency = 6 [default = -1]; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_ap_frequency(), target); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_ap_frequency(), target); } // optional .location.nearby.connections.AvailableChannels available_channels = 7; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::available_channels(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.available_channels_, this_._impl_.available_channels_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::wifi_direct_cli_usable_channels(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.wifi_direct_cli_usable_channels_, this_._impl_.wifi_direct_cli_usable_channels_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::wifi_lan_usable_channels(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.wifi_lan_usable_channels_, this_._impl_.wifi_lan_usable_channels_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::wifi_aware_usable_channels(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.wifi_aware_usable_channels_, this_._impl_.wifi_aware_usable_channels_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::wifi_hotspot_sta_usable_channels(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.wifi_hotspot_sta_usable_channels_, this_._impl_.wifi_hotspot_sta_usable_channels_->GetCachedSize(), target, + stream); } // optional .location.nearby.connections.MediumRole medium_role = 12; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::medium_role(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.medium_role_, this_._impl_.medium_role_->GetCachedSize(), target, + stream); } // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; - { - int byte_size = _supported_wifi_direct_auth_types_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 13, supported_wifi_direct_auth_types_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._supported_wifi_direct_auth_types_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 13, this_._internal_supported_wifi_direct_auth_types(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.MediumMetadata) return target; } -size_t MediumMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.MediumMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MediumMetadata::ByteSizeLong(const MessageLite& base) { + const MediumMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MediumMetadata::ByteSizeLong() const { + const MediumMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.MediumMetadata) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_supported_wifi_direct_auth_types_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_supported_wifi_direct_auth_types(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000e00U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_supported_wifi_direct_auth_types(), 1, this_._impl_._supported_wifi_direct_auth_types_cached_byte_size_); } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_wifi_direct_auth_types_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { // optional string bssid = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_bssid()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_bssid()); } - // optional bytes ip_address = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_address()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ip_address()); } - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *available_channels_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.available_channels_); } - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_direct_cli_usable_channels_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_direct_cli_usable_channels_); } - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_lan_usable_channels_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_lan_usable_channels_); } - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_aware_usable_channels_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_aware_usable_channels_); } - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_hotspot_sta_usable_channels_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.wifi_hotspot_sta_usable_channels_); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00001100U)) { // optional .location.nearby.connections.MediumRole medium_role = 12; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *medium_role_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.medium_role_); } - - } - if (cached_has_bits & 0x00000f00u) { - // optional bool supports_5_ghz = 1; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - // optional bool supports_6_ghz = 4; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - // optional bool mobile_radio = 5; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + 1; - } - // optional int32 ap_frequency = 6 [default = -1]; - if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_ap_frequency()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_ap_frequency()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MediumMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void MediumMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.MediumMetadata) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void MediumMetadata::MergeFrom(const MediumMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.MediumMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - supported_wifi_direct_auth_types_.MergeFrom(from.supported_wifi_direct_auth_types_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_bssid(from._internal_bssid()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_supported_wifi_direct_auth_types()->MergeFrom(from._internal_supported_wifi_direct_auth_types()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_ip_address(from._internal_ip_address()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_bssid(from._internal_bssid()); } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_available_channels()->::location::nearby::connections::AvailableChannels::MergeFrom(from._internal_available_channels()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_ip_address(from._internal_ip_address()); } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_wifi_direct_cli_usable_channels()->::location::nearby::connections::WifiDirectCliUsableChannels::MergeFrom(from._internal_wifi_direct_cli_usable_channels()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.available_channels_ != nullptr); + if (_this->_impl_.available_channels_ == nullptr) { + _this->_impl_.available_channels_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.available_channels_); + } else { + _this->_impl_.available_channels_->MergeFrom(*from._impl_.available_channels_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_wifi_lan_usable_channels()->::location::nearby::connections::WifiLanUsableChannels::MergeFrom(from._internal_wifi_lan_usable_channels()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.wifi_direct_cli_usable_channels_ != nullptr); + if (_this->_impl_.wifi_direct_cli_usable_channels_ == nullptr) { + _this->_impl_.wifi_direct_cli_usable_channels_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_direct_cli_usable_channels_); + } else { + _this->_impl_.wifi_direct_cli_usable_channels_->MergeFrom(*from._impl_.wifi_direct_cli_usable_channels_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_wifi_aware_usable_channels()->::location::nearby::connections::WifiAwareUsableChannels::MergeFrom(from._internal_wifi_aware_usable_channels()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.wifi_lan_usable_channels_ != nullptr); + if (_this->_impl_.wifi_lan_usable_channels_ == nullptr) { + _this->_impl_.wifi_lan_usable_channels_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_lan_usable_channels_); + } else { + _this->_impl_.wifi_lan_usable_channels_->MergeFrom(*from._impl_.wifi_lan_usable_channels_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_wifi_hotspot_sta_usable_channels()->::location::nearby::connections::WifiHotspotStaUsableChannels::MergeFrom(from._internal_wifi_hotspot_sta_usable_channels()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.wifi_aware_usable_channels_ != nullptr); + if (_this->_impl_.wifi_aware_usable_channels_ == nullptr) { + _this->_impl_.wifi_aware_usable_channels_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_aware_usable_channels_); + } else { + _this->_impl_.wifi_aware_usable_channels_->MergeFrom(*from._impl_.wifi_aware_usable_channels_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_medium_role()->::location::nearby::connections::MediumRole::MergeFrom(from._internal_medium_role()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.wifi_hotspot_sta_usable_channels_ != nullptr); + if (_this->_impl_.wifi_hotspot_sta_usable_channels_ == nullptr) { + _this->_impl_.wifi_hotspot_sta_usable_channels_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.wifi_hotspot_sta_usable_channels_); + } else { + _this->_impl_.wifi_hotspot_sta_usable_channels_->MergeFrom(*from._impl_.wifi_hotspot_sta_usable_channels_); + } } } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - supports_5_ghz_ = from.supports_5_ghz_; + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(from._impl_.medium_role_ != nullptr); + if (_this->_impl_.medium_role_ == nullptr) { + _this->_impl_.medium_role_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.medium_role_); + } else { + _this->_impl_.medium_role_->MergeFrom(*from._impl_.medium_role_); + } } - if (cached_has_bits & 0x00000200u) { - supports_6_ghz_ = from.supports_6_ghz_; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.supports_5_ghz_ = from._impl_.supports_5_ghz_; } - if (cached_has_bits & 0x00000400u) { - mobile_radio_ = from.mobile_radio_; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.supports_6_ghz_ = from._impl_.supports_6_ghz_; } - if (cached_has_bits & 0x00000800u) { - ap_frequency_ = from.ap_frequency_; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.mobile_radio_ = from._impl_.mobile_radio_; + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_impl_.ap_frequency_ = from._impl_.ap_frequency_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MediumMetadata::CopyFrom(const MediumMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.MediumMetadata) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.MediumMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool MediumMetadata::IsInitialized() const { - return true; -} -void MediumMetadata::InternalSwap(MediumMetadata* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void MediumMetadata::InternalSwap(MediumMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - supported_wifi_direct_auth_types_.InternalSwap(&other->supported_wifi_direct_auth_types_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bssid_, lhs_arena, - &other->bssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_address_, lhs_arena, - &other->ip_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MediumMetadata, mobile_radio_) - + sizeof(MediumMetadata::mobile_radio_) - - PROTOBUF_FIELD_OFFSET(MediumMetadata, available_channels_)>( - reinterpret_cast(&available_channels_), - reinterpret_cast(&other->available_channels_)); - swap(ap_frequency_, other->ap_frequency_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.supported_wifi_direct_auth_types_.InternalSwap(&other->_impl_.supported_wifi_direct_auth_types_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bssid_, &other->_impl_.bssid_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_address_, &other->_impl_.ip_address_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.ap_frequency_) + + sizeof(MediumMetadata::_impl_.ap_frequency_) + - PROTOBUF_FIELD_OFFSET(MediumMetadata, _impl_.available_channels_)>( + reinterpret_cast(&_impl_.available_channels_), + reinterpret_cast(&other->_impl_.available_channels_)); } -std::string MediumMetadata::GetTypeName() const { - return "location.nearby.connections.MediumMetadata"; -} - - // =================================================================== class AvailableChannels::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_._has_bits_); }; -AvailableChannels::AvailableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AvailableChannels::AvailableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AvailableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AvailableChannels) } -AvailableChannels::AvailableChannels(const AvailableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE AvailableChannels::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::connections::AvailableChannels& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + _channels_cached_byte_size_{0} {} + +AvailableChannels::AvailableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const AvailableChannels& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AvailableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AvailableChannels* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AvailableChannels) } +PROTOBUF_NDEBUG_INLINE AvailableChannels::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + _channels_cached_byte_size_{0} {} -inline void AvailableChannels::SharedCtor() { +inline void AvailableChannels::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - AvailableChannels::~AvailableChannels() { // @@protoc_insertion_point(destructor:location.nearby.connections.AvailableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AvailableChannels::SharedDtor(MessageLite& self) { + AvailableChannels& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void AvailableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL AvailableChannels::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AvailableChannels(arena); +} +constexpr auto AvailableChannels::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_.channels_) + + decltype(AvailableChannels::_impl_.channels_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(AvailableChannels), alignof(AvailableChannels), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&AvailableChannels::PlacementNew_, + sizeof(AvailableChannels), + alignof(AvailableChannels)); + } +} +constexpr auto AvailableChannels::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<46>{ + { + &_AvailableChannels_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AvailableChannels::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AvailableChannels::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AvailableChannels::ByteSizeLong, + &AvailableChannels::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_._cached_size_), + true, + }, + "location.nearby.connections.AvailableChannels", + }; } -void AvailableChannels::ArenaDtor(void* object) { - AvailableChannels* _this = reinterpret_cast< AvailableChannels* >(object); - (void)_this; -} -void AvailableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AvailableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<46> AvailableChannels_class_data_ = + AvailableChannels::InternalGenerateClassData_(); -void AvailableChannels::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AvailableChannels::GetClassData() const { + return AvailableChannels_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +AvailableChannels::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AvailableChannels_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::AvailableChannels>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated int32 channels = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_.channels_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 channels = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(AvailableChannels, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AvailableChannels::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.AvailableChannels) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - channels_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AvailableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AvailableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AvailableChannels::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AvailableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AvailableChannels::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AvailableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AvailableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._channels_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 1, this_._internal_channels(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AvailableChannels) return target; } -size_t AvailableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AvailableChannels) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AvailableChannels::ByteSizeLong(const MessageLite& base) { + const AvailableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AvailableChannels::ByteSizeLong() const { + const AvailableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AvailableChannels) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated int32 channels = 1 [packed = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_channels(), 1, + this_._impl_._channels_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AvailableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void AvailableChannels::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AvailableChannels) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void AvailableChannels::MergeFrom(const AvailableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AvailableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->MergeFrom(from._internal_channels()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AvailableChannels::CopyFrom(const AvailableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AvailableChannels) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AvailableChannels) if (&from == this) return; Clear(); MergeFrom(from); } -bool AvailableChannels::IsInitialized() const { - return true; -} -void AvailableChannels::InternalSwap(AvailableChannels* other) { - using std::swap; +void AvailableChannels::InternalSwap(AvailableChannels* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.channels_.InternalSwap(&other->_impl_.channels_); } -std::string AvailableChannels::GetTypeName() const { - return "location.nearby.connections.AvailableChannels"; -} - - // =================================================================== class WifiDirectCliUsableChannels::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_._has_bits_); }; -WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiDirectCliUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiDirectCliUsableChannels) } -WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(const WifiDirectCliUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE WifiDirectCliUsableChannels::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::connections::WifiDirectCliUsableChannels& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + _channels_cached_byte_size_{0} {} + +WifiDirectCliUsableChannels::WifiDirectCliUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const WifiDirectCliUsableChannels& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiDirectCliUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + WifiDirectCliUsableChannels* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiDirectCliUsableChannels) } +PROTOBUF_NDEBUG_INLINE WifiDirectCliUsableChannels::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + _channels_cached_byte_size_{0} {} -inline void WifiDirectCliUsableChannels::SharedCtor() { +inline void WifiDirectCliUsableChannels::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - WifiDirectCliUsableChannels::~WifiDirectCliUsableChannels() { // @@protoc_insertion_point(destructor:location.nearby.connections.WifiDirectCliUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void WifiDirectCliUsableChannels::SharedDtor(MessageLite& self) { + WifiDirectCliUsableChannels& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void WifiDirectCliUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL WifiDirectCliUsableChannels::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WifiDirectCliUsableChannels(arena); +} +constexpr auto WifiDirectCliUsableChannels::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_.channels_) + + decltype(WifiDirectCliUsableChannels::_impl_.channels_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(WifiDirectCliUsableChannels), alignof(WifiDirectCliUsableChannels), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&WifiDirectCliUsableChannels::PlacementNew_, + sizeof(WifiDirectCliUsableChannels), + alignof(WifiDirectCliUsableChannels)); + } +} +constexpr auto WifiDirectCliUsableChannels::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_WifiDirectCliUsableChannels_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &WifiDirectCliUsableChannels::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WifiDirectCliUsableChannels::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &WifiDirectCliUsableChannels::ByteSizeLong, + &WifiDirectCliUsableChannels::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_._cached_size_), + true, + }, + "location.nearby.connections.WifiDirectCliUsableChannels", + }; } -void WifiDirectCliUsableChannels::ArenaDtor(void* object) { - WifiDirectCliUsableChannels* _this = reinterpret_cast< WifiDirectCliUsableChannels* >(object); - (void)_this; -} -void WifiDirectCliUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiDirectCliUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> WifiDirectCliUsableChannels_class_data_ = + WifiDirectCliUsableChannels::InternalGenerateClassData_(); -void WifiDirectCliUsableChannels::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WifiDirectCliUsableChannels::GetClassData() const { + return WifiDirectCliUsableChannels_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +WifiDirectCliUsableChannels::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + WifiDirectCliUsableChannels_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::WifiDirectCliUsableChannels>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated int32 channels = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_.channels_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 channels = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(WifiDirectCliUsableChannels, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void WifiDirectCliUsableChannels::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiDirectCliUsableChannels) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - channels_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* WifiDirectCliUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiDirectCliUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WifiDirectCliUsableChannels::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WifiDirectCliUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WifiDirectCliUsableChannels::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WifiDirectCliUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiDirectCliUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._channels_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 1, this_._internal_channels(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiDirectCliUsableChannels) return target; } -size_t WifiDirectCliUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiDirectCliUsableChannels) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WifiDirectCliUsableChannels::ByteSizeLong(const MessageLite& base) { + const WifiDirectCliUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t WifiDirectCliUsableChannels::ByteSizeLong() const { + const WifiDirectCliUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiDirectCliUsableChannels) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated int32 channels = 1 [packed = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_channels(), 1, + this_._impl_._channels_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void WifiDirectCliUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void WifiDirectCliUsableChannels::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiDirectCliUsableChannels) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void WifiDirectCliUsableChannels::MergeFrom(const WifiDirectCliUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiDirectCliUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->MergeFrom(from._internal_channels()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void WifiDirectCliUsableChannels::CopyFrom(const WifiDirectCliUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiDirectCliUsableChannels) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiDirectCliUsableChannels) if (&from == this) return; Clear(); MergeFrom(from); } -bool WifiDirectCliUsableChannels::IsInitialized() const { - return true; -} -void WifiDirectCliUsableChannels::InternalSwap(WifiDirectCliUsableChannels* other) { - using std::swap; +void WifiDirectCliUsableChannels::InternalSwap(WifiDirectCliUsableChannels* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.channels_.InternalSwap(&other->_impl_.channels_); } -std::string WifiDirectCliUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiDirectCliUsableChannels"; -} - - // =================================================================== class WifiLanUsableChannels::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_._has_bits_); }; -WifiLanUsableChannels::WifiLanUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +WifiLanUsableChannels::WifiLanUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiLanUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiLanUsableChannels) } -WifiLanUsableChannels::WifiLanUsableChannels(const WifiLanUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE WifiLanUsableChannels::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::connections::WifiLanUsableChannels& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + _channels_cached_byte_size_{0} {} + +WifiLanUsableChannels::WifiLanUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const WifiLanUsableChannels& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiLanUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + WifiLanUsableChannels* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiLanUsableChannels) } +PROTOBUF_NDEBUG_INLINE WifiLanUsableChannels::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + _channels_cached_byte_size_{0} {} -inline void WifiLanUsableChannels::SharedCtor() { +inline void WifiLanUsableChannels::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - WifiLanUsableChannels::~WifiLanUsableChannels() { // @@protoc_insertion_point(destructor:location.nearby.connections.WifiLanUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void WifiLanUsableChannels::SharedDtor(MessageLite& self) { + WifiLanUsableChannels& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void WifiLanUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL WifiLanUsableChannels::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WifiLanUsableChannels(arena); +} +constexpr auto WifiLanUsableChannels::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_.channels_) + + decltype(WifiLanUsableChannels::_impl_.channels_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(WifiLanUsableChannels), alignof(WifiLanUsableChannels), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&WifiLanUsableChannels::PlacementNew_, + sizeof(WifiLanUsableChannels), + alignof(WifiLanUsableChannels)); + } +} +constexpr auto WifiLanUsableChannels::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<50>{ + { + &_WifiLanUsableChannels_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &WifiLanUsableChannels::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WifiLanUsableChannels::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &WifiLanUsableChannels::ByteSizeLong, + &WifiLanUsableChannels::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_._cached_size_), + true, + }, + "location.nearby.connections.WifiLanUsableChannels", + }; } -void WifiLanUsableChannels::ArenaDtor(void* object) { - WifiLanUsableChannels* _this = reinterpret_cast< WifiLanUsableChannels* >(object); - (void)_this; -} -void WifiLanUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiLanUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<50> WifiLanUsableChannels_class_data_ = + WifiLanUsableChannels::InternalGenerateClassData_(); -void WifiLanUsableChannels::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WifiLanUsableChannels::GetClassData() const { + return WifiLanUsableChannels_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +WifiLanUsableChannels::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + WifiLanUsableChannels_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::WifiLanUsableChannels>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated int32 channels = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_.channels_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 channels = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(WifiLanUsableChannels, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void WifiLanUsableChannels::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiLanUsableChannels) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - channels_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* WifiLanUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiLanUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WifiLanUsableChannels::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WifiLanUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WifiLanUsableChannels::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WifiLanUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiLanUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._channels_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 1, this_._internal_channels(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiLanUsableChannels) return target; } -size_t WifiLanUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiLanUsableChannels) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WifiLanUsableChannels::ByteSizeLong(const MessageLite& base) { + const WifiLanUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t WifiLanUsableChannels::ByteSizeLong() const { + const WifiLanUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiLanUsableChannels) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated int32 channels = 1 [packed = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_channels(), 1, + this_._impl_._channels_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void WifiLanUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void WifiLanUsableChannels::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiLanUsableChannels) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void WifiLanUsableChannels::MergeFrom(const WifiLanUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiLanUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->MergeFrom(from._internal_channels()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void WifiLanUsableChannels::CopyFrom(const WifiLanUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiLanUsableChannels) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiLanUsableChannels) if (&from == this) return; Clear(); MergeFrom(from); } -bool WifiLanUsableChannels::IsInitialized() const { - return true; -} -void WifiLanUsableChannels::InternalSwap(WifiLanUsableChannels* other) { - using std::swap; +void WifiLanUsableChannels::InternalSwap(WifiLanUsableChannels* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.channels_.InternalSwap(&other->_impl_.channels_); } -std::string WifiLanUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiLanUsableChannels"; -} - - // =================================================================== class WifiAwareUsableChannels::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_._has_bits_); }; -WifiAwareUsableChannels::WifiAwareUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +WifiAwareUsableChannels::WifiAwareUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiAwareUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiAwareUsableChannels) } -WifiAwareUsableChannels::WifiAwareUsableChannels(const WifiAwareUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE WifiAwareUsableChannels::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::connections::WifiAwareUsableChannels& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + _channels_cached_byte_size_{0} {} + +WifiAwareUsableChannels::WifiAwareUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const WifiAwareUsableChannels& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiAwareUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + WifiAwareUsableChannels* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiAwareUsableChannels) } +PROTOBUF_NDEBUG_INLINE WifiAwareUsableChannels::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + _channels_cached_byte_size_{0} {} -inline void WifiAwareUsableChannels::SharedCtor() { +inline void WifiAwareUsableChannels::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - WifiAwareUsableChannels::~WifiAwareUsableChannels() { // @@protoc_insertion_point(destructor:location.nearby.connections.WifiAwareUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void WifiAwareUsableChannels::SharedDtor(MessageLite& self) { + WifiAwareUsableChannels& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void WifiAwareUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL WifiAwareUsableChannels::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WifiAwareUsableChannels(arena); +} +constexpr auto WifiAwareUsableChannels::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_.channels_) + + decltype(WifiAwareUsableChannels::_impl_.channels_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(WifiAwareUsableChannels), alignof(WifiAwareUsableChannels), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&WifiAwareUsableChannels::PlacementNew_, + sizeof(WifiAwareUsableChannels), + alignof(WifiAwareUsableChannels)); + } +} +constexpr auto WifiAwareUsableChannels::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<52>{ + { + &_WifiAwareUsableChannels_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &WifiAwareUsableChannels::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WifiAwareUsableChannels::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &WifiAwareUsableChannels::ByteSizeLong, + &WifiAwareUsableChannels::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_._cached_size_), + true, + }, + "location.nearby.connections.WifiAwareUsableChannels", + }; } -void WifiAwareUsableChannels::ArenaDtor(void* object) { - WifiAwareUsableChannels* _this = reinterpret_cast< WifiAwareUsableChannels* >(object); - (void)_this; -} -void WifiAwareUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiAwareUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<52> WifiAwareUsableChannels_class_data_ = + WifiAwareUsableChannels::InternalGenerateClassData_(); -void WifiAwareUsableChannels::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WifiAwareUsableChannels::GetClassData() const { + return WifiAwareUsableChannels_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +WifiAwareUsableChannels::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + WifiAwareUsableChannels_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::WifiAwareUsableChannels>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated int32 channels = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_.channels_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 channels = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(WifiAwareUsableChannels, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void WifiAwareUsableChannels::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiAwareUsableChannels) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - channels_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* WifiAwareUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiAwareUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WifiAwareUsableChannels::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WifiAwareUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WifiAwareUsableChannels::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WifiAwareUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiAwareUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._channels_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 1, this_._internal_channels(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiAwareUsableChannels) return target; } -size_t WifiAwareUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiAwareUsableChannels) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WifiAwareUsableChannels::ByteSizeLong(const MessageLite& base) { + const WifiAwareUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t WifiAwareUsableChannels::ByteSizeLong() const { + const WifiAwareUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiAwareUsableChannels) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated int32 channels = 1 [packed = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_channels(), 1, + this_._impl_._channels_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void WifiAwareUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void WifiAwareUsableChannels::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiAwareUsableChannels) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void WifiAwareUsableChannels::MergeFrom(const WifiAwareUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiAwareUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->MergeFrom(from._internal_channels()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void WifiAwareUsableChannels::CopyFrom(const WifiAwareUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiAwareUsableChannels) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiAwareUsableChannels) if (&from == this) return; Clear(); MergeFrom(from); } -bool WifiAwareUsableChannels::IsInitialized() const { - return true; -} -void WifiAwareUsableChannels::InternalSwap(WifiAwareUsableChannels* other) { - using std::swap; +void WifiAwareUsableChannels::InternalSwap(WifiAwareUsableChannels* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.channels_.InternalSwap(&other->_impl_.channels_); } -std::string WifiAwareUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiAwareUsableChannels"; -} - - // =================================================================== class WifiHotspotStaUsableChannels::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_._has_bits_); }; -WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiHotspotStaUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiHotspotStaUsableChannels) } -WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(const WifiHotspotStaUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE WifiHotspotStaUsableChannels::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::connections::WifiHotspotStaUsableChannels& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + _channels_cached_byte_size_{0} {} + +WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const WifiHotspotStaUsableChannels& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WifiHotspotStaUsableChannels_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + WifiHotspotStaUsableChannels* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiHotspotStaUsableChannels) } +PROTOBUF_NDEBUG_INLINE WifiHotspotStaUsableChannels::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + _channels_cached_byte_size_{0} {} -inline void WifiHotspotStaUsableChannels::SharedCtor() { +inline void WifiHotspotStaUsableChannels::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - WifiHotspotStaUsableChannels::~WifiHotspotStaUsableChannels() { // @@protoc_insertion_point(destructor:location.nearby.connections.WifiHotspotStaUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void WifiHotspotStaUsableChannels::SharedDtor(MessageLite& self) { + WifiHotspotStaUsableChannels& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void WifiHotspotStaUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL WifiHotspotStaUsableChannels::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WifiHotspotStaUsableChannels(arena); +} +constexpr auto WifiHotspotStaUsableChannels::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_.channels_) + + decltype(WifiHotspotStaUsableChannels::_impl_.channels_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(WifiHotspotStaUsableChannels), alignof(WifiHotspotStaUsableChannels), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&WifiHotspotStaUsableChannels::PlacementNew_, + sizeof(WifiHotspotStaUsableChannels), + alignof(WifiHotspotStaUsableChannels)); + } +} +constexpr auto WifiHotspotStaUsableChannels::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_WifiHotspotStaUsableChannels_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &WifiHotspotStaUsableChannels::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WifiHotspotStaUsableChannels::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &WifiHotspotStaUsableChannels::ByteSizeLong, + &WifiHotspotStaUsableChannels::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_._cached_size_), + true, + }, + "location.nearby.connections.WifiHotspotStaUsableChannels", + }; } -void WifiHotspotStaUsableChannels::ArenaDtor(void* object) { - WifiHotspotStaUsableChannels* _this = reinterpret_cast< WifiHotspotStaUsableChannels* >(object); - (void)_this; -} -void WifiHotspotStaUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiHotspotStaUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> WifiHotspotStaUsableChannels_class_data_ = + WifiHotspotStaUsableChannels::InternalGenerateClassData_(); -void WifiHotspotStaUsableChannels::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WifiHotspotStaUsableChannels::GetClassData() const { + return WifiHotspotStaUsableChannels_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +WifiHotspotStaUsableChannels::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + WifiHotspotStaUsableChannels_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::WifiHotspotStaUsableChannels>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated int32 channels = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_.channels_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 channels = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(WifiHotspotStaUsableChannels, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void WifiHotspotStaUsableChannels::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiHotspotStaUsableChannels) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - channels_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* WifiHotspotStaUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiHotspotStaUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WifiHotspotStaUsableChannels::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WifiHotspotStaUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WifiHotspotStaUsableChannels::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WifiHotspotStaUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiHotspotStaUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._channels_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 1, this_._internal_channels(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiHotspotStaUsableChannels) return target; } -size_t WifiHotspotStaUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiHotspotStaUsableChannels) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WifiHotspotStaUsableChannels::ByteSizeLong(const MessageLite& base) { + const WifiHotspotStaUsableChannels& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t WifiHotspotStaUsableChannels::ByteSizeLong() const { + const WifiHotspotStaUsableChannels& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiHotspotStaUsableChannels) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated int32 channels = 1 [packed = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_channels(), 1, + this_._impl_._channels_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void WifiHotspotStaUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void WifiHotspotStaUsableChannels::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void WifiHotspotStaUsableChannels::MergeFrom(const WifiHotspotStaUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->MergeFrom(from._internal_channels()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void WifiHotspotStaUsableChannels::CopyFrom(const WifiHotspotStaUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) if (&from == this) return; Clear(); MergeFrom(from); } -bool WifiHotspotStaUsableChannels::IsInitialized() const { - return true; -} -void WifiHotspotStaUsableChannels::InternalSwap(WifiHotspotStaUsableChannels* other) { - using std::swap; +void WifiHotspotStaUsableChannels::InternalSwap(WifiHotspotStaUsableChannels* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.channels_.InternalSwap(&other->_impl_.channels_); } -std::string WifiHotspotStaUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiHotspotStaUsableChannels"; -} - - // =================================================================== class MediumRole::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_support_wifi_direct_group_owner(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_support_wifi_direct_group_client(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_support_wifi_hotspot_host(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_support_wifi_hotspot_client(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_support_wifi_aware_publisher(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_support_wifi_aware_subscriber(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_support_awdl_publisher(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_support_awdl_subscriber(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MediumRole, _impl_._has_bits_); }; -MediumRole::MediumRole(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MediumRole::MediumRole(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MediumRole_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.MediumRole) } -MediumRole::MediumRole(const MediumRole& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&support_wifi_direct_group_owner_, &from.support_wifi_direct_group_owner_, - static_cast(reinterpret_cast(&support_awdl_subscriber_) - - reinterpret_cast(&support_wifi_direct_group_owner_)) + sizeof(support_awdl_subscriber_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.MediumRole) +MediumRole::MediumRole( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MediumRole& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MediumRole_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 MediumRole::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void MediumRole::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&support_wifi_direct_group_owner_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&support_awdl_subscriber_) - - reinterpret_cast(&support_wifi_direct_group_owner_)) + sizeof(support_awdl_subscriber_)); +inline void MediumRole::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, support_wifi_direct_group_owner_), + 0, + offsetof(Impl_, support_awdl_subscriber_) - + offsetof(Impl_, support_wifi_direct_group_owner_) + + sizeof(Impl_::support_awdl_subscriber_)); } - MediumRole::~MediumRole() { // @@protoc_insertion_point(destructor:location.nearby.connections.MediumRole) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void MediumRole::SharedDtor(MessageLite& self) { + MediumRole& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void MediumRole::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL MediumRole::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MediumRole(arena); +} +constexpr auto MediumRole::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MediumRole), + alignof(MediumRole)); +} +constexpr auto MediumRole::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<39>{ + { + &_MediumRole_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MediumRole::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MediumRole::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MediumRole::ByteSizeLong, + &MediumRole::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_._cached_size_), + true, + }, + "location.nearby.connections.MediumRole", + }; } -void MediumRole::ArenaDtor(void* object) { - MediumRole* _this = reinterpret_cast< MediumRole* >(object); - (void)_this; -} -void MediumRole::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MediumRole::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<39> MediumRole_class_data_ = + MediumRole::InternalGenerateClassData_(); -void MediumRole::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MediumRole::GetClassData() const { + return MediumRole_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 0, 2> +MediumRole::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MediumRole, _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 + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + MediumRole_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::MediumRole>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool support_awdl_subscriber = 8; + {::_pbi::TcParser::FastV8S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_awdl_subscriber_)}}, + // optional bool support_wifi_direct_group_owner = 1; + {::_pbi::TcParser::FastV8S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_direct_group_owner_)}}, + // optional bool support_wifi_direct_group_client = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_direct_group_client_)}}, + // optional bool support_wifi_hotspot_host = 3; + {::_pbi::TcParser::FastV8S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_hotspot_host_)}}, + // optional bool support_wifi_hotspot_client = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_hotspot_client_)}}, + // optional bool support_wifi_aware_publisher = 5; + {::_pbi::TcParser::FastV8S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_aware_publisher_)}}, + // optional bool support_wifi_aware_subscriber = 6; + {::_pbi::TcParser::FastV8S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_aware_subscriber_)}}, + // optional bool support_awdl_publisher = 7; + {::_pbi::TcParser::FastV8S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_awdl_publisher_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool support_wifi_direct_group_owner = 1; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_direct_group_owner_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_wifi_direct_group_client = 2; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_direct_group_client_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_wifi_hotspot_host = 3; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_hotspot_host_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_wifi_hotspot_client = 4; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_hotspot_client_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_wifi_aware_publisher = 5; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_aware_publisher_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_wifi_aware_subscriber = 6; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_aware_subscriber_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_awdl_publisher = 7; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_awdl_publisher_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool support_awdl_subscriber = 8; + {PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_awdl_subscriber_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void MediumRole::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.MediumRole) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - ::memset(&support_wifi_direct_group_owner_, 0, static_cast( - reinterpret_cast(&support_awdl_subscriber_) - - reinterpret_cast(&support_wifi_direct_group_owner_)) + sizeof(support_awdl_subscriber_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + ::memset(&_impl_.support_wifi_direct_group_owner_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.support_awdl_subscriber_) - + reinterpret_cast(&_impl_.support_wifi_direct_group_owner_)) + sizeof(_impl_.support_awdl_subscriber_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MediumRole::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool support_wifi_direct_group_owner = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_support_wifi_direct_group_owner(&has_bits); - support_wifi_direct_group_owner_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_wifi_direct_group_client = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_support_wifi_direct_group_client(&has_bits); - support_wifi_direct_group_client_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_wifi_hotspot_host = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_support_wifi_hotspot_host(&has_bits); - support_wifi_hotspot_host_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_wifi_hotspot_client = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_support_wifi_hotspot_client(&has_bits); - support_wifi_hotspot_client_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_wifi_aware_publisher = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_support_wifi_aware_publisher(&has_bits); - support_wifi_aware_publisher_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_wifi_aware_subscriber = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_support_wifi_aware_subscriber(&has_bits); - support_wifi_aware_subscriber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_awdl_publisher = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_support_awdl_publisher(&has_bits); - support_awdl_publisher_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool support_awdl_subscriber = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_support_awdl_subscriber(&has_bits); - support_awdl_subscriber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MediumRole::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MediumRole::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MediumRole& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MediumRole::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MediumRole& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.MediumRole) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool support_wifi_direct_group_owner = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_support_wifi_direct_group_owner(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_support_wifi_direct_group_owner(), target); } // optional bool support_wifi_direct_group_client = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_support_wifi_direct_group_client(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_support_wifi_direct_group_client(), target); } // optional bool support_wifi_hotspot_host = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_support_wifi_hotspot_host(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_support_wifi_hotspot_host(), target); } // optional bool support_wifi_hotspot_client = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_support_wifi_hotspot_client(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_support_wifi_hotspot_client(), target); } // optional bool support_wifi_aware_publisher = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_support_wifi_aware_publisher(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_support_wifi_aware_publisher(), target); } // optional bool support_wifi_aware_subscriber = 6; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_support_wifi_aware_subscriber(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_support_wifi_aware_subscriber(), target); } // optional bool support_awdl_publisher = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_support_awdl_publisher(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_support_awdl_publisher(), target); } // optional bool support_awdl_subscriber = 8; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_support_awdl_subscriber(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_support_awdl_subscriber(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.MediumRole) return target; } -size_t MediumRole::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.MediumRole) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MediumRole::ByteSizeLong(const MessageLite& base) { + const MediumRole& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MediumRole::ByteSizeLong() const { + const MediumRole& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.MediumRole) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional bool support_wifi_direct_group_owner = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } - - // optional bool support_wifi_direct_group_client = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional bool support_wifi_hotspot_host = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - - // optional bool support_wifi_hotspot_client = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional bool support_wifi_aware_publisher = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 1; - } - - // optional bool support_wifi_aware_subscriber = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional bool support_awdl_publisher = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; - } - - // optional bool support_awdl_subscriber = 8; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x000000ffU & cached_has_bits) * 2; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MediumRole::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MediumRole::MergeFrom(const MediumRole& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.MediumRole) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - support_wifi_direct_group_owner_ = from.support_wifi_direct_group_owner_; - } - if (cached_has_bits & 0x00000002u) { - support_wifi_direct_group_client_ = from.support_wifi_direct_group_client_; - } - if (cached_has_bits & 0x00000004u) { - support_wifi_hotspot_host_ = from.support_wifi_hotspot_host_; - } - if (cached_has_bits & 0x00000008u) { - support_wifi_hotspot_client_ = from.support_wifi_hotspot_client_; - } - if (cached_has_bits & 0x00000010u) { - support_wifi_aware_publisher_ = from.support_wifi_aware_publisher_; - } - if (cached_has_bits & 0x00000020u) { - support_wifi_aware_subscriber_ = from.support_wifi_aware_subscriber_; - } - if (cached_has_bits & 0x00000040u) { - support_awdl_publisher_ = from.support_awdl_publisher_; - } - if (cached_has_bits & 0x00000080u) { - support_awdl_subscriber_ = from.support_awdl_subscriber_; - } - _has_bits_[0] |= cached_has_bits; +void MediumRole::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.MediumRole) + 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_.support_wifi_direct_group_owner_ = from._impl_.support_wifi_direct_group_owner_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.support_wifi_direct_group_client_ = from._impl_.support_wifi_direct_group_client_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.support_wifi_hotspot_host_ = from._impl_.support_wifi_hotspot_host_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.support_wifi_hotspot_client_ = from._impl_.support_wifi_hotspot_client_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.support_wifi_aware_publisher_ = from._impl_.support_wifi_aware_publisher_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.support_wifi_aware_subscriber_ = from._impl_.support_wifi_aware_subscriber_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.support_awdl_publisher_ = from._impl_.support_awdl_publisher_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.support_awdl_subscriber_ = from._impl_.support_awdl_subscriber_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MediumRole::CopyFrom(const MediumRole& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.MediumRole) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.MediumRole) if (&from == this) return; Clear(); MergeFrom(from); } -bool MediumRole::IsInitialized() const { - return true; -} -void MediumRole::InternalSwap(MediumRole* other) { - using std::swap; +void MediumRole::InternalSwap(MediumRole* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MediumRole, support_awdl_subscriber_) - + sizeof(MediumRole::support_awdl_subscriber_) - - PROTOBUF_FIELD_OFFSET(MediumRole, support_wifi_direct_group_owner_)>( - reinterpret_cast(&support_wifi_direct_group_owner_), - reinterpret_cast(&other->support_wifi_direct_group_owner_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_awdl_subscriber_) + + sizeof(MediumRole::_impl_.support_awdl_subscriber_) + - PROTOBUF_FIELD_OFFSET(MediumRole, _impl_.support_wifi_direct_group_owner_)>( + reinterpret_cast(&_impl_.support_wifi_direct_group_owner_), + reinterpret_cast(&other->_impl_.support_wifi_direct_group_owner_)); } -std::string MediumRole::GetTypeName() const { - return "location.nearby.connections.MediumRole"; -} - - // =================================================================== class LocationHint::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_format(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LocationHint, _impl_._has_bits_); }; -LocationHint::LocationHint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LocationHint::LocationHint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocationHint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.LocationHint) } -LocationHint::LocationHint(const LocationHint& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_location()) { - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_location(), - GetArenaForAllocation()); - } - format_ = from.format_; +PROTOBUF_NDEBUG_INLINE LocationHint::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::connections::LocationHint& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + location_(arena, from.location_) {} + +LocationHint::LocationHint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LocationHint& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocationHint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LocationHint* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.format_ = from._impl_.format_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.LocationHint) } +PROTOBUF_NDEBUG_INLINE LocationHint::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + location_(arena) {} -inline void LocationHint::SharedCtor() { -location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -format_ = 0; +inline void LocationHint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.format_ = {}; } - LocationHint::~LocationHint() { // @@protoc_insertion_point(destructor:location.nearby.connections.LocationHint) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void LocationHint::SharedDtor(MessageLite& self) { + LocationHint& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.location_.Destroy(); + this_._impl_.~Impl_(); } -inline void LocationHint::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - location_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL LocationHint::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LocationHint(arena); +} +constexpr auto LocationHint::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocationHint), + alignof(LocationHint)); +} +constexpr auto LocationHint::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<41>{ + { + &_LocationHint_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LocationHint::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LocationHint::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LocationHint::ByteSizeLong, + &LocationHint::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LocationHint, _impl_._cached_size_), + true, + }, + "location.nearby.connections.LocationHint", + }; } -void LocationHint::ArenaDtor(void* object) { - LocationHint* _this = reinterpret_cast< LocationHint* >(object); - (void)_this; -} -void LocationHint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LocationHint::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<41> LocationHint_class_data_ = + LocationHint::InternalGenerateClassData_(); -void LocationHint::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LocationHint::GetClassData() const { + return LocationHint_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +LocationHint::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LocationHint, _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), + LocationHint_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::LocationHint>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.LocationStandard.Format format = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(LocationHint, _impl_.format_)}}, + // optional string location = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(LocationHint, _impl_.location_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string location = 1; + {PROTOBUF_FIELD_OFFSET(LocationHint, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.LocationStandard.Format format = 2; + {PROTOBUF_FIELD_OFFSET(LocationHint, _impl_.format_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void LocationHint::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.LocationHint) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - location_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.location_.ClearNonDefaultToEmpty(); } - format_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.format_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* LocationHint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string location = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_location(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationStandard.Format format = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::LocationStandard_Format_IsValid(val))) { - _internal_set_format(static_cast<::location::nearby::connections::LocationStandard_Format>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LocationHint::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LocationHint::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LocationHint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LocationHint::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LocationHint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.LocationHint) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string location = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_location(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_location(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .location.nearby.connections.LocationStandard.Format format = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_format(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_format(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.LocationHint) return target; } -size_t LocationHint::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationHint) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LocationHint::ByteSizeLong(const MessageLite& base) { + const LocationHint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LocationHint::ByteSizeLong() const { + const LocationHint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationHint) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string location = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_location()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_location()); } - // optional .location.nearby.connections.LocationStandard.Format format = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_format()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_format()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void LocationHint::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void LocationHint::MergeFrom(const LocationHint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationHint) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_location(from._internal_location()); - } - if (cached_has_bits & 0x00000002u) { - format_ = from.format_; - } - _has_bits_[0] |= cached_has_bits; +void LocationHint::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationHint) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_location(from._internal_location()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.format_ = from._impl_.format_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LocationHint::CopyFrom(const LocationHint& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationHint) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationHint) if (&from == this) return; Clear(); MergeFrom(from); } -bool LocationHint::IsInitialized() const { - return true; -} -void LocationHint::InternalSwap(LocationHint* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void LocationHint::InternalSwap(LocationHint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &location_, lhs_arena, - &other->location_, rhs_arena - ); - swap(format_, other->format_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); + swap(_impl_.format_, other->_impl_.format_); } -std::string LocationHint::GetTypeName() const { - return "location.nearby.connections.LocationHint"; -} - - // =================================================================== class LocationStandard::_Internal { public: }; -LocationStandard::LocationStandard(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LocationStandard::LocationStandard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocationStandard_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.LocationStandard) } -LocationStandard::LocationStandard(const LocationStandard& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.LocationStandard) +LocationStandard::LocationStandard( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocationStandard& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocationStandard_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 LocationStandard::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void LocationStandard::SharedCtor() { +inline void LocationStandard::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - LocationStandard::~LocationStandard() { // @@protoc_insertion_point(destructor:location.nearby.connections.LocationStandard) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void LocationStandard::SharedDtor(MessageLite& self) { + LocationStandard& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void LocationStandard::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL LocationStandard::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LocationStandard(arena); +} +constexpr auto LocationStandard::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LocationStandard), + alignof(LocationStandard)); +} +constexpr auto LocationStandard::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<45>{ + { + &_LocationStandard_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LocationStandard::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LocationStandard::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LocationStandard::ByteSizeLong, + &LocationStandard::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LocationStandard, _impl_._cached_size_), + true, + }, + "location.nearby.connections.LocationStandard", + }; } -void LocationStandard::ArenaDtor(void* object) { - LocationStandard* _this = reinterpret_cast< LocationStandard* >(object); - (void)_this; -} -void LocationStandard::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LocationStandard::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<45> LocationStandard_class_data_ = + LocationStandard::InternalGenerateClassData_(); -void LocationStandard::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LocationStandard::GetClassData() const { + return LocationStandard_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +LocationStandard::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + LocationStandard_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::LocationStandard>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void LocationStandard::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.LocationStandard) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* LocationStandard::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LocationStandard::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LocationStandard::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LocationStandard& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LocationStandard::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LocationStandard& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.LocationStandard) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.LocationStandard) return target; } -size_t LocationStandard::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationStandard) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LocationStandard::ByteSizeLong(const MessageLite& base) { + const LocationStandard& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LocationStandard::ByteSizeLong() const { + const LocationStandard& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationStandard) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void LocationStandard::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void LocationStandard::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationStandard) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void LocationStandard::MergeFrom(const LocationStandard& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationStandard) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LocationStandard::CopyFrom(const LocationStandard& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationStandard) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationStandard) if (&from == this) return; Clear(); MergeFrom(from); } -bool LocationStandard::IsInitialized() const { - return true; -} -void LocationStandard::InternalSwap(LocationStandard* other) { - using std::swap; +void LocationStandard::InternalSwap(LocationStandard* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string LocationStandard::GetTypeName() const { - return "location.nearby.connections.LocationStandard"; -} - - // =================================================================== class OsInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(OsInfo, _impl_._has_bits_); }; -OsInfo::OsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +OsInfo::OsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, OsInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.OsInfo) } -OsInfo::OsInfo(const OsInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.OsInfo) +OsInfo::OsInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OsInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, OsInfo_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 OsInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void OsInfo::SharedCtor() { -type_ = 0; +inline void OsInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.type_ = {}; } - OsInfo::~OsInfo() { // @@protoc_insertion_point(destructor:location.nearby.connections.OsInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void OsInfo::SharedDtor(MessageLite& self) { + OsInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void OsInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL OsInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) OsInfo(arena); +} +constexpr auto OsInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OsInfo), + alignof(OsInfo)); +} +constexpr auto OsInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<35>{ + { + &_OsInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &OsInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &OsInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &OsInfo::ByteSizeLong, + &OsInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(OsInfo, _impl_._cached_size_), + true, + }, + "location.nearby.connections.OsInfo", + }; } -void OsInfo::ArenaDtor(void* object) { - OsInfo* _this = reinterpret_cast< OsInfo* >(object); - (void)_this; -} -void OsInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OsInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<35> OsInfo_class_data_ = + OsInfo::InternalGenerateClassData_(); -void OsInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +OsInfo::GetClassData() const { + return OsInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +OsInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(OsInfo, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + OsInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::OsInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.connections.OsInfo.OsType type = 1; + {::_pbi::TcParser::FastEvS1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(OsInfo, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.connections.OsInfo.OsType type = 1; + {PROTOBUF_FIELD_OFFSET(OsInfo, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::location::nearby::connections::OsInfo_OsType_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void OsInfo::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.OsInfo) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* OsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.OsInfo.OsType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::OsInfo_OsType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::connections::OsInfo_OsType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* OsInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL OsInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const OsInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL OsInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const OsInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.OsInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.connections.OsInfo.OsType type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.OsInfo) return target; } -size_t OsInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OsInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t OsInfo::ByteSizeLong(const MessageLite& base) { + const OsInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t OsInfo::ByteSizeLong() const { + const OsInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OsInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.connections.OsInfo.OsType type = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + { + // optional .location.nearby.connections.OsInfo.OsType type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void OsInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void OsInfo::MergeFrom(const OsInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OsInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_type()) { - _internal_set_type(from._internal_type()); +void OsInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OsInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.type_ = from._impl_.type_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void OsInfo::CopyFrom(const OsInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OsInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OsInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool OsInfo::IsInitialized() const { - return true; -} -void OsInfo::InternalSwap(OsInfo* other) { - using std::swap; +void OsInfo::InternalSwap(OsInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(type_, other->type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.type_, other->_impl_.type_); } -std::string OsInfo::GetTypeName() const { - return "location.nearby.connections.OsInfo"; -} - - // =================================================================== class ConnectionsDevice::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endpoint_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_connectivity_info_list(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_endpoint_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_._has_bits_); }; -ConnectionsDevice::ConnectionsDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ConnectionsDevice::ConnectionsDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionsDevice_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionsDevice) } -ConnectionsDevice::ConnectionsDevice(const ConnectionsDevice& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connectivity_info_list()) { - connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connectivity_info_list(), - GetArenaForAllocation()); - } - endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_info()) { - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_info(), - GetArenaForAllocation()); - } - endpoint_type_ = from.endpoint_type_; +PROTOBUF_NDEBUG_INLINE ConnectionsDevice::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::connections::ConnectionsDevice& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + endpoint_id_(arena, from.endpoint_id_), + connectivity_info_list_(arena, from.connectivity_info_list_), + endpoint_info_(arena, from.endpoint_info_) {} + +ConnectionsDevice::ConnectionsDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ConnectionsDevice& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionsDevice_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ConnectionsDevice* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.endpoint_type_ = from._impl_.endpoint_type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionsDevice) } +PROTOBUF_NDEBUG_INLINE ConnectionsDevice::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + endpoint_id_(arena), + connectivity_info_list_(arena), + endpoint_info_(arena) {} -inline void ConnectionsDevice::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_type_ = 0; +inline void ConnectionsDevice::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.endpoint_type_ = {}; } - ConnectionsDevice::~ConnectionsDevice() { // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionsDevice) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsDevice::SharedDtor(MessageLite& self) { + ConnectionsDevice& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.connectivity_info_list_.Destroy(); + this_._impl_.endpoint_info_.Destroy(); + this_._impl_.~Impl_(); } -inline void ConnectionsDevice::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - connectivity_info_list_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL ConnectionsDevice::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConnectionsDevice(arena); +} +constexpr auto ConnectionsDevice::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectionsDevice), + alignof(ConnectionsDevice)); +} +constexpr auto ConnectionsDevice::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<46>{ + { + &_ConnectionsDevice_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConnectionsDevice::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsDevice::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionsDevice::ByteSizeLong, + &ConnectionsDevice::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_._cached_size_), + true, + }, + "location.nearby.connections.ConnectionsDevice", + }; } -void ConnectionsDevice::ArenaDtor(void* object) { - ConnectionsDevice* _this = reinterpret_cast< ConnectionsDevice* >(object); - (void)_this; -} -void ConnectionsDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsDevice::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<46> ConnectionsDevice_class_data_ = + ConnectionsDevice::InternalGenerateClassData_(); -void ConnectionsDevice::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConnectionsDevice::GetClassData() const { + return ConnectionsDevice_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +ConnectionsDevice::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _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), + ConnectionsDevice_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::ConnectionsDevice>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes endpoint_info = 4; + {::_pbi::TcParser::FastBS1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_info_)}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_id_)}}, + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 3, 2, + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_type_)}}, + // optional bytes connectivity_info_list = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.connectivity_info_list_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + {PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes connectivity_info_list = 3; + {PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.connectivity_info_list_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes endpoint_info = 4; + {PROTOBUF_FIELD_OFFSET(ConnectionsDevice, _impl_.endpoint_info_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ConnectionsDevice::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionsDevice) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - connectivity_info_list_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.connectivity_info_list_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - endpoint_info_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.endpoint_info_.ClearNonDefaultToEmpty(); } } - endpoint_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.endpoint_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsDevice::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.EndpointType endpoint_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::EndpointType_IsValid(val))) { - _internal_set_endpoint_type(static_cast<::location::nearby::connections::EndpointType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes connectivity_info_list = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_connectivity_info_list(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes endpoint_info = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_endpoint_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsDevice::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConnectionsDevice::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConnectionsDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConnectionsDevice::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConnectionsDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionsDevice) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .location.nearby.connections.EndpointType endpoint_type = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_endpoint_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_endpoint_type(), target); } // optional bytes connectivity_info_list = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_connectivity_info_list(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_connectivity_info_list(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional bytes endpoint_info = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_endpoint_info(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_endpoint_info(); + target = stream->WriteBytesMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ConnectionsDevice) return target; } -size_t ConnectionsDevice::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionsDevice) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsDevice::ByteSizeLong(const MessageLite& base) { + const ConnectionsDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ConnectionsDevice::ByteSizeLong() const { + const ConnectionsDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionsDevice) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional bytes connectivity_info_list = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_connectivity_info_list()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_connectivity_info_list()); } - // optional bytes endpoint_info = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_endpoint_info()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_endpoint_info()); } - // optional .location.nearby.connections.EndpointType endpoint_type = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endpoint_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_endpoint_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsDevice::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsDevice::MergeFrom(const ConnectionsDevice& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionsDevice) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_connectivity_info_list(from._internal_connectivity_info_list()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_endpoint_info(from._internal_endpoint_info()); - } - if (cached_has_bits & 0x00000008u) { - endpoint_type_ = from.endpoint_type_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsDevice::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionsDevice) + 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_endpoint_id(from._internal_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_connectivity_info_list(from._internal_connectivity_info_list()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_endpoint_info(from._internal_endpoint_info()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.endpoint_type_ = from._impl_.endpoint_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ConnectionsDevice::CopyFrom(const ConnectionsDevice& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionsDevice) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionsDevice) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsDevice::IsInitialized() const { - return true; -} -void ConnectionsDevice::InternalSwap(ConnectionsDevice* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void ConnectionsDevice::InternalSwap(ConnectionsDevice* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connectivity_info_list_, lhs_arena, - &other->connectivity_info_list_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_info_, lhs_arena, - &other->endpoint_info_, rhs_arena - ); - swap(endpoint_type_, other->endpoint_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connectivity_info_list_, &other->_impl_.connectivity_info_list_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_info_, &other->_impl_.endpoint_info_, arena); + swap(_impl_.endpoint_type_, other->_impl_.endpoint_type_); } -std::string ConnectionsDevice::GetTypeName() const { - return "location.nearby.connections.ConnectionsDevice"; -} - - // =================================================================== class PresenceDevice::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endpoint_type(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_connectivity_info_list(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_device_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_device_image_url(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_._has_bits_); }; -PresenceDevice::PresenceDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - discovery_medium_(arena), - actions_(arena), - identity_type_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PresenceDevice::PresenceDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PresenceDevice_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PresenceDevice) } -PresenceDevice::PresenceDevice(const PresenceDevice& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - discovery_medium_(from.discovery_medium_), - actions_(from.actions_), - identity_type_(from.identity_type_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connectivity_info_list()) { - connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connectivity_info_list(), - GetArenaForAllocation()); - } - device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_name()) { - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_name(), - GetArenaForAllocation()); - } - device_image_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_image_url()) { - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_image_url(), - GetArenaForAllocation()); - } - ::memcpy(&device_id_, &from.device_id_, - static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&device_id_)) + sizeof(device_type_)); +PROTOBUF_NDEBUG_INLINE PresenceDevice::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::connections::PresenceDevice& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + discovery_medium_{visibility, arena, from.discovery_medium_}, + _discovery_medium_cached_byte_size_{0}, + actions_{visibility, arena, from.actions_}, + _actions_cached_byte_size_{0}, + identity_type_{visibility, arena, from.identity_type_}, + _identity_type_cached_byte_size_{0}, + endpoint_id_(arena, from.endpoint_id_), + connectivity_info_list_(arena, from.connectivity_info_list_), + device_name_(arena, from.device_name_), + device_image_url_(arena, from.device_image_url_) {} + +PresenceDevice::PresenceDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PresenceDevice& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PresenceDevice_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PresenceDevice* 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(&_impl_) + + offsetof(Impl_, device_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, device_id_), + offsetof(Impl_, device_type_) - + offsetof(Impl_, device_id_) + + sizeof(Impl_::device_type_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PresenceDevice) } +PROTOBUF_NDEBUG_INLINE PresenceDevice::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + discovery_medium_{visibility, arena}, + _discovery_medium_cached_byte_size_{0}, + actions_{visibility, arena}, + _actions_cached_byte_size_{0}, + identity_type_{visibility, arena}, + _identity_type_cached_byte_size_{0}, + endpoint_id_(arena), + connectivity_info_list_(arena), + device_name_(arena), + device_image_url_(arena) {} -inline void PresenceDevice::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_image_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&device_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&device_id_)) + sizeof(device_type_)); +inline void PresenceDevice::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, device_id_), + 0, + offsetof(Impl_, device_type_) - + offsetof(Impl_, device_id_) + + sizeof(Impl_::device_type_)); } - PresenceDevice::~PresenceDevice() { // @@protoc_insertion_point(destructor:location.nearby.connections.PresenceDevice) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PresenceDevice::SharedDtor(MessageLite& self) { + PresenceDevice& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.connectivity_info_list_.Destroy(); + this_._impl_.device_name_.Destroy(); + this_._impl_.device_image_url_.Destroy(); + this_._impl_.~Impl_(); } -inline void PresenceDevice::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - connectivity_info_list_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_image_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PresenceDevice::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PresenceDevice(arena); +} +constexpr auto PresenceDevice::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.discovery_medium_) + + decltype(PresenceDevice::_impl_.discovery_medium_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.actions_) + + decltype(PresenceDevice::_impl_.actions_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.identity_type_) + + decltype(PresenceDevice::_impl_.identity_type_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(PresenceDevice), alignof(PresenceDevice), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&PresenceDevice::PlacementNew_, + sizeof(PresenceDevice), + alignof(PresenceDevice)); + } +} +constexpr auto PresenceDevice::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_PresenceDevice_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PresenceDevice::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PresenceDevice::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PresenceDevice::ByteSizeLong, + &PresenceDevice::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_._cached_size_), + true, + }, + "location.nearby.connections.PresenceDevice", + }; } -void PresenceDevice::ArenaDtor(void* object) { - PresenceDevice* _this = reinterpret_cast< PresenceDevice* >(object); - (void)_this; -} -void PresenceDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PresenceDevice::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> PresenceDevice_class_data_ = + PresenceDevice::InternalGenerateClassData_(); -void PresenceDevice::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PresenceDevice::GetClassData() const { + return PresenceDevice_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 3, 0, 2> +PresenceDevice::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + PresenceDevice_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::connections::PresenceDevice>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 3, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.endpoint_id_)}}, + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 8, 2, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.endpoint_type_)}}, + // optional bytes connectivity_info_list = 3; + {::_pbi::TcParser::FastBS1, + {26, 4, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.connectivity_info_list_)}}, + // optional int64 device_id = 4; + {::_pbi::TcParser::FastV64S1, + {32, 7, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_id_)}}, + // optional string device_name = 5; + {::_pbi::TcParser::FastBS1, + {42, 5, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_name_)}}, + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + {::_pbi::TcParser::FastEr0S1, + {48, 9, 6, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_type_)}}, + // optional string device_image_url = 7; + {::_pbi::TcParser::FastBS1, + {58, 6, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_image_url_)}}, + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {66, 0, 13, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.discovery_medium_)}}, + // repeated int32 actions = 9 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {74, 1, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.actions_)}}, + // repeated int64 identity_type = 10 [packed = true]; + {::_pbi::TcParser::FastV64P1, + {82, 2, 0, + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.identity_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.endpoint_type_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes connectivity_info_list = 3; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.connectivity_info_list_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 device_id = 4; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_name = 5; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_name_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_type_), _Internal::kHasBitsOffset + 9, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string device_image_url = 7; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_image_url_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.discovery_medium_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + // repeated int32 actions = 9 [packed = true]; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.actions_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + // repeated int64 identity_type = 10 [packed = true]; + {PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.identity_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)}, + }}, + {{ + {0, 2}, + {0, 6}, + {0, 13}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void PresenceDevice::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.PresenceDevice) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - discovery_medium_.Clear(); - actions_.Clear(); - identity_type_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.discovery_medium_.Clear(); } - if (cached_has_bits & 0x00000002u) { - connectivity_info_list_.ClearNonDefaultToEmpty(); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.actions_.Clear(); } - if (cached_has_bits & 0x00000004u) { - device_name_.ClearNonDefaultToEmpty(); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.identity_type_.Clear(); } - if (cached_has_bits & 0x00000008u) { - device_image_url_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.connectivity_info_list_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.device_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _impl_.device_image_url_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x00000070u) { - ::memset(&device_id_, 0, static_cast( - reinterpret_cast(&device_type_) - - reinterpret_cast(&device_id_)) + sizeof(device_type_)); + _impl_.device_id_ = ::int64_t{0}; + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.endpoint_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.device_type_) - + reinterpret_cast(&_impl_.endpoint_type_)) + sizeof(_impl_.device_type_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PresenceDevice::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.EndpointType endpoint_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::EndpointType_IsValid(val))) { - _internal_set_endpoint_type(static_cast<::location::nearby::connections::EndpointType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes connectivity_info_list = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_connectivity_info_list(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_device_id(&has_bits); - device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_device_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PresenceDevice_DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::connections::PresenceDevice_DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string device_image_url = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_device_image_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_discovery_medium(), ptr, ctx, ::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid, &_internal_metadata_, 8); - CHK_(ptr); - } else if (static_cast(tag) == 64) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(val))) { - _internal_add_discovery_medium(static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // repeated int32 actions = 9 [packed = true]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_actions(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 72) { - _internal_add_actions(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int64 identity_type = 10 [packed = true]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_identity_type(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 80) { - _internal_add_identity_type(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PresenceDevice::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PresenceDevice::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PresenceDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PresenceDevice::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PresenceDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PresenceDevice) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .location.nearby.connections.EndpointType endpoint_type = 2; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_endpoint_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_endpoint_type(), target); } // optional bytes connectivity_info_list = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_connectivity_info_list(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + const ::std::string& _s = this_._internal_connectivity_info_list(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional int64 device_id = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_device_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_device_id(), target); } // optional string device_name = 5; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_device_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_device_name(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_device_type(), target); } // optional string device_image_url = 7; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_device_image_url(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + const ::std::string& _s = this_._internal_device_image_url(); + target = stream->WriteStringMaybeAliased(7, _s, target); } // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; - { - int byte_size = _discovery_medium_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 8, discovery_medium_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._discovery_medium_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 8, this_._internal_discovery_medium(), byte_size, target); + } } } // repeated int32 actions = 9 [packed = true]; - { - int byte_size = _actions_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 9, _internal_actions(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + int byte_size = this_._impl_._actions_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 9, this_._internal_actions(), byte_size, target); + } } } // repeated int64 identity_type = 10 [packed = true]; - { - int byte_size = _identity_type_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 10, _internal_identity_type(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + { + int byte_size = this_._impl_._identity_type_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt64Packed( + 10, this_._internal_identity_type(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PresenceDevice) return target; } -size_t PresenceDevice::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PresenceDevice) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PresenceDevice::ByteSizeLong(const MessageLite& base) { + const PresenceDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PresenceDevice::ByteSizeLong() const { + const PresenceDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PresenceDevice) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_discovery_medium_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_discovery_medium(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_discovery_medium(), 1, this_._impl_._discovery_medium_cached_byte_size_); } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + // repeated int32 actions = 9 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_actions(), 1, + this_._impl_._actions_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _discovery_medium_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int32 actions = 9 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->actions_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + // repeated int64 identity_type = 10 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + total_size += + ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize( + this_._internal_identity_type(), 1, + this_._impl_._identity_type_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _actions_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int64 identity_type = 10 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->identity_type_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _identity_type_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional bytes connectivity_info_list = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_connectivity_info_list()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_connectivity_info_list()); } - // optional string device_name = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_name()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_name()); } - // optional string device_image_url = 7; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_image_url()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_image_url()); } - // optional int64 device_id = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_id()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_device_id()); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { // optional .location.nearby.connections.EndpointType endpoint_type = 2; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endpoint_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_endpoint_type()); } - // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PresenceDevice::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PresenceDevice::MergeFrom(const PresenceDevice& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PresenceDevice) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - discovery_medium_.MergeFrom(from.discovery_medium_); - actions_.MergeFrom(from.actions_); - identity_type_.MergeFrom(from.identity_type_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_connectivity_info_list(from._internal_connectivity_info_list()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_device_name(from._internal_device_name()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_device_image_url(from._internal_device_image_url()); - } - if (cached_has_bits & 0x00000010u) { - device_id_ = from.device_id_; - } - if (cached_has_bits & 0x00000020u) { - endpoint_type_ = from.endpoint_type_; - } - if (cached_has_bits & 0x00000040u) { - device_type_ = from.device_type_; - } - _has_bits_[0] |= cached_has_bits; +void PresenceDevice::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PresenceDevice) + 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_discovery_medium()->MergeFrom(from._internal_discovery_medium()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_actions()->MergeFrom(from._internal_actions()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_identity_type()->MergeFrom(from._internal_identity_type()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_set_connectivity_info_list(from._internal_connectivity_info_list()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_device_name(from._internal_device_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_internal_set_device_image_url(from._internal_device_image_url()); + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.device_id_ = from._impl_.device_id_; + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.endpoint_type_ = from._impl_.endpoint_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PresenceDevice::CopyFrom(const PresenceDevice& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PresenceDevice) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PresenceDevice) if (&from == this) return; Clear(); MergeFrom(from); } -bool PresenceDevice::IsInitialized() const { - return true; -} -void PresenceDevice::InternalSwap(PresenceDevice* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PresenceDevice::InternalSwap(PresenceDevice* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - discovery_medium_.InternalSwap(&other->discovery_medium_); - actions_.InternalSwap(&other->actions_); - identity_type_.InternalSwap(&other->identity_type_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connectivity_info_list_, lhs_arena, - &other->connectivity_info_list_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_name_, lhs_arena, - &other->device_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_image_url_, lhs_arena, - &other->device_image_url_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PresenceDevice, device_type_) - + sizeof(PresenceDevice::device_type_) - - PROTOBUF_FIELD_OFFSET(PresenceDevice, device_id_)>( - reinterpret_cast(&device_id_), - reinterpret_cast(&other->device_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.discovery_medium_.InternalSwap(&other->_impl_.discovery_medium_); + _impl_.actions_.InternalSwap(&other->_impl_.actions_); + _impl_.identity_type_.InternalSwap(&other->_impl_.identity_type_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connectivity_info_list_, &other->_impl_.connectivity_info_list_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_name_, &other->_impl_.device_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_image_url_, &other->_impl_.device_image_url_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_type_) + + sizeof(PresenceDevice::_impl_.device_type_) + - PROTOBUF_FIELD_OFFSET(PresenceDevice, _impl_.device_id_)>( + reinterpret_cast(&_impl_.device_id_), + reinterpret_cast(&other->_impl_.device_id_)); } -std::string PresenceDevice::GetTypeName() const { - return "location.nearby.connections.PresenceDevice"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace connections } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::connections::OfflineFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::OfflineFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::OfflineFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage< ::location::nearby::connections::V1Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::V1Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionRequestFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionRequestFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionRequestFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionResponseFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionResponseFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionResponseFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_ControlMessage* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_ControlMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_ControlMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ServiceAddress* Arena::CreateMaybeMessage< ::location::nearby::connections::ServiceAddress >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ServiceAddress >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeRetryFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeRetryFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeRetryFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::KeepAliveFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::KeepAliveFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::KeepAliveFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::DisconnectionFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::DisconnectionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::DisconnectionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PairedKeyEncryptionFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::PairedKeyEncryptionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PairedKeyEncryptionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AuthenticationMessageFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AuthenticationMessageFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AuthenticationMessageFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AuthenticationResultFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AuthenticationResultFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AuthenticationResultFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AutoResumeFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AutoResumeFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AutoResumeFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AutoReconnectFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AutoReconnectFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AutoReconnectFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage< ::location::nearby::connections::MediumMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::MediumMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AvailableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::AvailableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AvailableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiDirectCliUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiDirectCliUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiLanUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiLanUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiLanUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiAwareUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiAwareUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiHotspotStaUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiHotspotStaUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiHotspotStaUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::MediumRole* Arena::CreateMaybeMessage< ::location::nearby::connections::MediumRole >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::MediumRole >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::LocationHint* Arena::CreateMaybeMessage< ::location::nearby::connections::LocationHint >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::LocationHint >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::LocationStandard* Arena::CreateMaybeMessage< ::location::nearby::connections::LocationStandard >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::LocationStandard >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::OsInfo* Arena::CreateMaybeMessage< ::location::nearby::connections::OsInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::OsInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionsDevice* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionsDevice >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionsDevice >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PresenceDevice* Arena::CreateMaybeMessage< ::location::nearby::connections::PresenceDevice >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PresenceDevice >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h index 89c74a22..9c8cf9cb 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -1,255 +1,353 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: connections/implementation/proto/offline_wire_formats.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto +#ifndef connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto_2epb_2eh +#define connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019005 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[42] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { namespace connections { +enum AutoReconnectFrame_EventType : int; +extern const uint32_t AutoReconnectFrame_EventType_internal_data_[]; +enum AutoResumeFrame_EventType : int; +extern const uint32_t AutoResumeFrame_EventType_internal_data_[]; +enum BandwidthUpgradeNegotiationFrame_EventType : int; +extern const uint32_t BandwidthUpgradeNegotiationFrame_EventType_internal_data_[]; +enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int; +extern const uint32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_[]; +enum BandwidthUpgradeRetryFrame_Medium : int; +extern const uint32_t BandwidthUpgradeRetryFrame_Medium_internal_data_[]; +enum ConnectionRequestFrame_ConnectionMode : int; +extern const uint32_t ConnectionRequestFrame_ConnectionMode_internal_data_[]; +enum ConnectionRequestFrame_Medium : int; +extern const uint32_t ConnectionRequestFrame_Medium_internal_data_[]; +enum ConnectionResponseFrame_ResponseStatus : int; +extern const uint32_t ConnectionResponseFrame_ResponseStatus_internal_data_[]; +enum EndpointType : int; +extern const uint32_t EndpointType_internal_data_[]; +enum LocationStandard_Format : int; +extern const uint32_t LocationStandard_Format_internal_data_[]; +enum MediumMetadata_WifiDirectAuthType : int; +extern const uint32_t MediumMetadata_WifiDirectAuthType_internal_data_[]; +enum OfflineFrame_Version : int; +extern const uint32_t OfflineFrame_Version_internal_data_[]; +enum OsInfo_OsType : int; +extern const uint32_t OsInfo_OsType_internal_data_[]; +enum PayloadTransferFrame_ControlMessage_EventType : int; +extern const uint32_t PayloadTransferFrame_ControlMessage_EventType_internal_data_[]; +enum PayloadTransferFrame_PacketType : int; +extern const uint32_t PayloadTransferFrame_PacketType_internal_data_[]; +enum PayloadTransferFrame_PayloadChunk_Flags : int; +extern const uint32_t PayloadTransferFrame_PayloadChunk_Flags_internal_data_[]; +enum PayloadTransferFrame_PayloadHeader_PayloadType : int; +extern const uint32_t PayloadTransferFrame_PayloadHeader_PayloadType_internal_data_[]; +enum PresenceDevice_DeviceType : int; +extern const uint32_t PresenceDevice_DeviceType_internal_data_[]; +enum V1Frame_FrameType : int; +extern const uint32_t V1Frame_FrameType_internal_data_[]; class AuthenticationMessageFrame; struct AuthenticationMessageFrameDefaultTypeInternal; extern AuthenticationMessageFrameDefaultTypeInternal _AuthenticationMessageFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> AuthenticationMessageFrame_class_data_; class AuthenticationResultFrame; struct AuthenticationResultFrameDefaultTypeInternal; extern AuthenticationResultFrameDefaultTypeInternal _AuthenticationResultFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<54> AuthenticationResultFrame_class_data_; class AutoReconnectFrame; struct AutoReconnectFrameDefaultTypeInternal; extern AutoReconnectFrameDefaultTypeInternal _AutoReconnectFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<47> AutoReconnectFrame_class_data_; class AutoResumeFrame; struct AutoResumeFrameDefaultTypeInternal; extern AutoResumeFrameDefaultTypeInternal _AutoResumeFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<44> AutoResumeFrame_class_data_; class AvailableChannels; struct AvailableChannelsDefaultTypeInternal; extern AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<46> AvailableChannels_class_data_; class BandwidthUpgradeNegotiationFrame; struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> BandwidthUpgradeNegotiationFrame_class_data_; class BandwidthUpgradeNegotiationFrame_ClientIntroduction; struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<80> BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_; class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck; struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<83> BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_; class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel; struct BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<85> BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<77> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<93> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequestDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<96> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<95> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<99> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<100> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<91> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_; class BandwidthUpgradeRetryFrame; struct BandwidthUpgradeRetryFrameDefaultTypeInternal; extern BandwidthUpgradeRetryFrameDefaultTypeInternal _BandwidthUpgradeRetryFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> BandwidthUpgradeRetryFrame_class_data_; class ConnectionRequestFrame; struct ConnectionRequestFrameDefaultTypeInternal; extern ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<51> ConnectionRequestFrame_class_data_; class ConnectionResponseFrame; struct ConnectionResponseFrameDefaultTypeInternal; extern ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<52> ConnectionResponseFrame_class_data_; class ConnectionsDevice; struct ConnectionsDeviceDefaultTypeInternal; extern ConnectionsDeviceDefaultTypeInternal _ConnectionsDevice_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<46> ConnectionsDevice_class_data_; class DisconnectionFrame; struct DisconnectionFrameDefaultTypeInternal; extern DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<47> DisconnectionFrame_class_data_; class KeepAliveFrame; struct KeepAliveFrameDefaultTypeInternal; extern KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> KeepAliveFrame_class_data_; class LocationHint; struct LocationHintDefaultTypeInternal; extern LocationHintDefaultTypeInternal _LocationHint_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<41> LocationHint_class_data_; class LocationStandard; struct LocationStandardDefaultTypeInternal; extern LocationStandardDefaultTypeInternal _LocationStandard_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<45> LocationStandard_class_data_; class MediumMetadata; struct MediumMetadataDefaultTypeInternal; extern MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> MediumMetadata_class_data_; class MediumRole; struct MediumRoleDefaultTypeInternal; extern MediumRoleDefaultTypeInternal _MediumRole_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<39> MediumRole_class_data_; class OfflineFrame; struct OfflineFrameDefaultTypeInternal; extern OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<41> OfflineFrame_class_data_; class OsInfo; struct OsInfoDefaultTypeInternal; extern OsInfoDefaultTypeInternal _OsInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<35> OsInfo_class_data_; class PairedKeyEncryptionFrame; struct PairedKeyEncryptionFrameDefaultTypeInternal; extern PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<53> PairedKeyEncryptionFrame_class_data_; class PayloadTransferFrame; struct PayloadTransferFrameDefaultTypeInternal; extern PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<49> PayloadTransferFrame_class_data_; class PayloadTransferFrame_ControlMessage; struct PayloadTransferFrame_ControlMessageDefaultTypeInternal; extern PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> PayloadTransferFrame_ControlMessage_class_data_; class PayloadTransferFrame_PayloadChunk; struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal; extern PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> PayloadTransferFrame_PayloadChunk_class_data_; class PayloadTransferFrame_PayloadHeader; struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal; extern PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> PayloadTransferFrame_PayloadHeader_class_data_; class PresenceDevice; struct PresenceDeviceDefaultTypeInternal; extern PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> PresenceDevice_class_data_; class ServiceAddress; struct ServiceAddressDefaultTypeInternal; extern ServiceAddressDefaultTypeInternal _ServiceAddress_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> ServiceAddress_class_data_; class V1Frame; struct V1FrameDefaultTypeInternal; extern V1FrameDefaultTypeInternal _V1Frame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<36> V1Frame_class_data_; class WifiAwareUsableChannels; struct WifiAwareUsableChannelsDefaultTypeInternal; extern WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<52> WifiAwareUsableChannels_class_data_; class WifiDirectCliUsableChannels; struct WifiDirectCliUsableChannelsDefaultTypeInternal; extern WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> WifiDirectCliUsableChannels_class_data_; class WifiHotspotStaUsableChannels; struct WifiHotspotStaUsableChannelsDefaultTypeInternal; extern WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> WifiHotspotStaUsableChannels_class_data_; class WifiLanUsableChannels; struct WifiLanUsableChannelsDefaultTypeInternal; extern WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<50> WifiLanUsableChannels_class_data_; } // namespace connections } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::connections::AuthenticationMessageFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AuthenticationMessageFrame>(Arena*); -template<> ::location::nearby::connections::AuthenticationResultFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AuthenticationResultFrame>(Arena*); -template<> ::location::nearby::connections::AutoReconnectFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AutoReconnectFrame>(Arena*); -template<> ::location::nearby::connections::AutoResumeFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AutoResumeFrame>(Arena*); -template<> ::location::nearby::connections::AvailableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::AvailableChannels>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeRetryFrame* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeRetryFrame>(Arena*); -template<> ::location::nearby::connections::ConnectionRequestFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionRequestFrame>(Arena*); -template<> ::location::nearby::connections::ConnectionResponseFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionResponseFrame>(Arena*); -template<> ::location::nearby::connections::ConnectionsDevice* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionsDevice>(Arena*); -template<> ::location::nearby::connections::DisconnectionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::DisconnectionFrame>(Arena*); -template<> ::location::nearby::connections::KeepAliveFrame* Arena::CreateMaybeMessage<::location::nearby::connections::KeepAliveFrame>(Arena*); -template<> ::location::nearby::connections::LocationHint* Arena::CreateMaybeMessage<::location::nearby::connections::LocationHint>(Arena*); -template<> ::location::nearby::connections::LocationStandard* Arena::CreateMaybeMessage<::location::nearby::connections::LocationStandard>(Arena*); -template<> ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(Arena*); -template<> ::location::nearby::connections::MediumRole* Arena::CreateMaybeMessage<::location::nearby::connections::MediumRole>(Arena*); -template<> ::location::nearby::connections::OfflineFrame* Arena::CreateMaybeMessage<::location::nearby::connections::OfflineFrame>(Arena*); -template<> ::location::nearby::connections::OsInfo* Arena::CreateMaybeMessage<::location::nearby::connections::OsInfo>(Arena*); -template<> ::location::nearby::connections::PairedKeyEncryptionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PairedKeyEncryptionFrame>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_ControlMessage* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(Arena*); -template<> ::location::nearby::connections::PresenceDevice* Arena::CreateMaybeMessage<::location::nearby::connections::PresenceDevice>(Arena*); -template<> ::location::nearby::connections::ServiceAddress* Arena::CreateMaybeMessage<::location::nearby::connections::ServiceAddress>(Arena*); -template<> ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage<::location::nearby::connections::V1Frame>(Arena*); -template<> ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiHotspotStaUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiHotspotStaUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiLanUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiLanUsableChannels>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::connections::AutoReconnectFrame_EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::AutoReconnectFrame_EventType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::AutoResumeFrame_EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::AutoResumeFrame_EventType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>; +template <> +internal::EnumTraitsT<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium>; +template <> +internal::EnumTraitsT<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode>; +template <> +internal::EnumTraitsT<::location::nearby::connections::ConnectionRequestFrame_Medium_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::ConnectionRequestFrame_Medium>; +template <> +internal::EnumTraitsT<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus>; +template <> +internal::EnumTraitsT<::location::nearby::connections::EndpointType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::EndpointType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::LocationStandard_Format_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::LocationStandard_Format>; +template <> +internal::EnumTraitsT<::location::nearby::connections::MediumMetadata_WifiDirectAuthType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::MediumMetadata_WifiDirectAuthType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::OfflineFrame_Version_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::OfflineFrame_Version>; +template <> +internal::EnumTraitsT<::location::nearby::connections::OsInfo_OsType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::OsInfo_OsType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::PayloadTransferFrame_PacketType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::PayloadTransferFrame_PacketType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags>; +template <> +internal::EnumTraitsT<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::PresenceDevice_DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::PresenceDevice_DeviceType>; +template <> +internal::EnumTraitsT<::location::nearby::connections::V1Frame_FrameType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::connections::V1Frame_FrameType>; +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace connections { - enum OfflineFrame_Version : int { OfflineFrame_Version_UNKNOWN_VERSION = 0, - OfflineFrame_Version_V1 = 1 + OfflineFrame_Version_V1 = 1, }; -bool OfflineFrame_Version_IsValid(int value); -constexpr OfflineFrame_Version OfflineFrame_Version_Version_MIN = OfflineFrame_Version_UNKNOWN_VERSION; -constexpr OfflineFrame_Version OfflineFrame_Version_Version_MAX = OfflineFrame_Version_V1; -constexpr int OfflineFrame_Version_Version_ARRAYSIZE = OfflineFrame_Version_Version_MAX + 1; -const std::string& OfflineFrame_Version_Name(OfflineFrame_Version value); -template -inline const std::string& OfflineFrame_Version_Name(T enum_t_value) { +extern const uint32_t OfflineFrame_Version_internal_data_[]; +inline constexpr OfflineFrame_Version OfflineFrame_Version_Version_MIN = + static_cast(0); +inline constexpr OfflineFrame_Version OfflineFrame_Version_Version_MAX = + static_cast(1); +inline bool OfflineFrame_Version_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int OfflineFrame_Version_Version_ARRAYSIZE = 1 + 1; +const ::std::string& OfflineFrame_Version_Name(OfflineFrame_Version value); +template +const ::std::string& OfflineFrame_Version_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OfflineFrame_Version_Name."); - return OfflineFrame_Version_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Version_Name()."); + return OfflineFrame_Version_Name(static_cast(value)); } bool OfflineFrame_Version_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value); + ::absl::string_view name, OfflineFrame_Version* PROTOBUF_NONNULL value); enum V1Frame_FrameType : int { V1Frame_FrameType_UNKNOWN_FRAME_TYPE = 0, V1Frame_FrameType_CONNECTION_REQUEST = 1, @@ -263,26 +361,31 @@ enum V1Frame_FrameType : int { V1Frame_FrameType_AUTHENTICATION_RESULT = 9, V1Frame_FrameType_AUTO_RESUME = 10, V1Frame_FrameType_AUTO_RECONNECT = 11, - V1Frame_FrameType_BANDWIDTH_UPGRADE_RETRY = 12 + V1Frame_FrameType_BANDWIDTH_UPGRADE_RETRY = 12, }; -bool V1Frame_FrameType_IsValid(int value); -constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MIN = V1Frame_FrameType_UNKNOWN_FRAME_TYPE; -constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MAX = V1Frame_FrameType_BANDWIDTH_UPGRADE_RETRY; -constexpr int V1Frame_FrameType_FrameType_ARRAYSIZE = V1Frame_FrameType_FrameType_MAX + 1; -const std::string& V1Frame_FrameType_Name(V1Frame_FrameType value); -template -inline const std::string& V1Frame_FrameType_Name(T enum_t_value) { +extern const uint32_t V1Frame_FrameType_internal_data_[]; +inline constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MIN = + static_cast(0); +inline constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MAX = + static_cast(12); +inline bool V1Frame_FrameType_IsValid(int value) { + return 0 <= value && value <= 12; +} +inline constexpr int V1Frame_FrameType_FrameType_ARRAYSIZE = 12 + 1; +const ::std::string& V1Frame_FrameType_Name(V1Frame_FrameType value); +template +const ::std::string& V1Frame_FrameType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function V1Frame_FrameType_Name."); - return V1Frame_FrameType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to FrameType_Name()."); + return V1Frame_FrameType_Name(static_cast(value)); } bool V1Frame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value); + ::absl::string_view name, V1Frame_FrameType* PROTOBUF_NONNULL value); enum ConnectionRequestFrame_Medium : int { ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM = 0, - ConnectionRequestFrame_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1, + ConnectionRequestFrame_Medium_MDNS [[deprecated]] = 1, ConnectionRequestFrame_Medium_BLUETOOTH = 2, ConnectionRequestFrame_Medium_WIFI_HOTSPOT = 3, ConnectionRequestFrame_Medium_BLE = 4, @@ -294,146 +397,181 @@ enum ConnectionRequestFrame_Medium : int { ConnectionRequestFrame_Medium_BLE_L2CAP = 10, ConnectionRequestFrame_Medium_USB = 11, ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR = 12, - ConnectionRequestFrame_Medium_AWDL = 13 + ConnectionRequestFrame_Medium_AWDL = 13, }; -bool ConnectionRequestFrame_Medium_IsValid(int value); -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MIN = ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_AWDL; -constexpr int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_MAX + 1; -const std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value); -template -inline const std::string& ConnectionRequestFrame_Medium_Name(T enum_t_value) { +extern const uint32_t ConnectionRequestFrame_Medium_internal_data_[]; +inline constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MIN = + static_cast(0); +inline constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = + static_cast(13); +inline bool ConnectionRequestFrame_Medium_IsValid(int value) { + return 0 <= value && value <= 13; +} +inline constexpr int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = 13 + 1; +const ::std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value); +template +const ::std::string& ConnectionRequestFrame_Medium_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionRequestFrame_Medium_Name."); - return ConnectionRequestFrame_Medium_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Medium_Name()."); + return ConnectionRequestFrame_Medium_Name(static_cast(value)); } bool ConnectionRequestFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value); + ::absl::string_view name, ConnectionRequestFrame_Medium* PROTOBUF_NONNULL value); enum ConnectionRequestFrame_ConnectionMode : int { ConnectionRequestFrame_ConnectionMode_LEGACY = 0, - ConnectionRequestFrame_ConnectionMode_INSTANT = 1 + ConnectionRequestFrame_ConnectionMode_INSTANT = 1, }; -bool ConnectionRequestFrame_ConnectionMode_IsValid(int value); -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN = ConnectionRequestFrame_ConnectionMode_LEGACY; -constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX = ConnectionRequestFrame_ConnectionMode_INSTANT; -constexpr int ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE = ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX + 1; -const std::string& ConnectionRequestFrame_ConnectionMode_Name(ConnectionRequestFrame_ConnectionMode value); -template -inline const std::string& ConnectionRequestFrame_ConnectionMode_Name(T enum_t_value) { +extern const uint32_t ConnectionRequestFrame_ConnectionMode_internal_data_[]; +inline constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN = + static_cast(0); +inline constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX = + static_cast(1); +inline bool ConnectionRequestFrame_ConnectionMode_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE = 1 + 1; +const ::std::string& ConnectionRequestFrame_ConnectionMode_Name(ConnectionRequestFrame_ConnectionMode value); +template +const ::std::string& ConnectionRequestFrame_ConnectionMode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionRequestFrame_ConnectionMode_Name."); - return ConnectionRequestFrame_ConnectionMode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionMode_Name()."); + return ConnectionRequestFrame_ConnectionMode_Name(static_cast(value)); } bool ConnectionRequestFrame_ConnectionMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_ConnectionMode* value); + ::absl::string_view name, ConnectionRequestFrame_ConnectionMode* PROTOBUF_NONNULL value); enum ConnectionResponseFrame_ResponseStatus : int { ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS = 0, ConnectionResponseFrame_ResponseStatus_ACCEPT = 1, - ConnectionResponseFrame_ResponseStatus_REJECT = 2 + ConnectionResponseFrame_ResponseStatus_REJECT = 2, }; -bool ConnectionResponseFrame_ResponseStatus_IsValid(int value); -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN = ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX = ConnectionResponseFrame_ResponseStatus_REJECT; -constexpr int ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE = ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX + 1; -const std::string& ConnectionResponseFrame_ResponseStatus_Name(ConnectionResponseFrame_ResponseStatus value); -template -inline const std::string& ConnectionResponseFrame_ResponseStatus_Name(T enum_t_value) { +extern const uint32_t ConnectionResponseFrame_ResponseStatus_internal_data_[]; +inline constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN = + static_cast(0); +inline constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX = + static_cast(2); +inline bool ConnectionResponseFrame_ResponseStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE = 2 + 1; +const ::std::string& ConnectionResponseFrame_ResponseStatus_Name(ConnectionResponseFrame_ResponseStatus value); +template +const ::std::string& ConnectionResponseFrame_ResponseStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionResponseFrame_ResponseStatus_Name."); - return ConnectionResponseFrame_ResponseStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ResponseStatus_Name()."); + return ConnectionResponseFrame_ResponseStatus_Name(static_cast(value)); } bool ConnectionResponseFrame_ResponseStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value); + ::absl::string_view name, ConnectionResponseFrame_ResponseStatus* PROTOBUF_NONNULL value); enum PayloadTransferFrame_PayloadHeader_PayloadType : int { PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE = 0, PayloadTransferFrame_PayloadHeader_PayloadType_BYTES = 1, PayloadTransferFrame_PayloadHeader_PayloadType_FILE = 2, - PayloadTransferFrame_PayloadHeader_PayloadType_STREAM = 3 + PayloadTransferFrame_PayloadHeader_PayloadType_STREAM = 3, }; -bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value); -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN = PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX = PayloadTransferFrame_PayloadHeader_PayloadType_STREAM; -constexpr int PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX + 1; -const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(PayloadTransferFrame_PayloadHeader_PayloadType value); -template -inline const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(T enum_t_value) { +extern const uint32_t PayloadTransferFrame_PayloadHeader_PayloadType_internal_data_[]; +inline constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN = + static_cast(0); +inline constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX = + static_cast(3); +inline bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE = 3 + 1; +const ::std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(PayloadTransferFrame_PayloadHeader_PayloadType value); +template +const ::std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PayloadHeader_PayloadType_Name."); - return PayloadTransferFrame_PayloadHeader_PayloadType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PayloadType_Name()."); + return PayloadTransferFrame_PayloadHeader_PayloadType_Name(static_cast(value)); } bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value); + ::absl::string_view name, PayloadTransferFrame_PayloadHeader_PayloadType* PROTOBUF_NONNULL value); enum PayloadTransferFrame_PayloadChunk_Flags : int { - PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK = 1 + PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK = 1, }; -bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value); -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; -constexpr int PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE = PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX + 1; -const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(PayloadTransferFrame_PayloadChunk_Flags value); -template -inline const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(T enum_t_value) { +extern const uint32_t PayloadTransferFrame_PayloadChunk_Flags_internal_data_[]; +inline constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN = + static_cast(1); +inline constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX = + static_cast(1); +inline bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value) { + return 1 <= value && value <= 1; +} +inline constexpr int PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE = 1 + 1; +const ::std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(PayloadTransferFrame_PayloadChunk_Flags value); +template +const ::std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PayloadChunk_Flags_Name."); - return PayloadTransferFrame_PayloadChunk_Flags_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Flags_Name()."); + return PayloadTransferFrame_PayloadChunk_Flags_Name(static_cast(value)); } bool PayloadTransferFrame_PayloadChunk_Flags_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value); + ::absl::string_view name, PayloadTransferFrame_PayloadChunk_Flags* PROTOBUF_NONNULL value); enum PayloadTransferFrame_ControlMessage_EventType : int { PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE = 0, PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR = 1, PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED = 2, - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK PROTOBUF_DEPRECATED_ENUM = 3 + PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK [[deprecated]] = 3, }; -bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value); -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MIN = PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MAX = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK; -constexpr int PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE = PayloadTransferFrame_ControlMessage_EventType_EventType_MAX + 1; -const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value); -template -inline const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(T enum_t_value) { +extern const uint32_t PayloadTransferFrame_ControlMessage_EventType_internal_data_[]; +inline constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MIN = + static_cast(0); +inline constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MAX = + static_cast(3); +inline bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE = 3 + 1; +const ::std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value); +template +const ::std::string& PayloadTransferFrame_ControlMessage_EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_ControlMessage_EventType_Name."); - return PayloadTransferFrame_ControlMessage_EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return PayloadTransferFrame_ControlMessage_EventType_Name(static_cast(value)); } bool PayloadTransferFrame_ControlMessage_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value); + ::absl::string_view name, PayloadTransferFrame_ControlMessage_EventType* PROTOBUF_NONNULL value); enum PayloadTransferFrame_PacketType : int { PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE = 0, PayloadTransferFrame_PacketType_DATA = 1, PayloadTransferFrame_PacketType_CONTROL = 2, - PayloadTransferFrame_PacketType_PAYLOAD_ACK = 3 + PayloadTransferFrame_PacketType_PAYLOAD_ACK = 3, }; -bool PayloadTransferFrame_PacketType_IsValid(int value); -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MIN = PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MAX = PayloadTransferFrame_PacketType_PAYLOAD_ACK; -constexpr int PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE = PayloadTransferFrame_PacketType_PacketType_MAX + 1; -const std::string& PayloadTransferFrame_PacketType_Name(PayloadTransferFrame_PacketType value); -template -inline const std::string& PayloadTransferFrame_PacketType_Name(T enum_t_value) { +extern const uint32_t PayloadTransferFrame_PacketType_internal_data_[]; +inline constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MIN = + static_cast(0); +inline constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MAX = + static_cast(3); +inline bool PayloadTransferFrame_PacketType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE = 3 + 1; +const ::std::string& PayloadTransferFrame_PacketType_Name(PayloadTransferFrame_PacketType value); +template +const ::std::string& PayloadTransferFrame_PacketType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PacketType_Name."); - return PayloadTransferFrame_PacketType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PacketType_Name()."); + return PayloadTransferFrame_PacketType_Name(static_cast(value)); } bool PayloadTransferFrame_PacketType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value); + ::absl::string_view name, PayloadTransferFrame_PacketType* PROTOBUF_NONNULL value); enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM = 0, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1, + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS [[deprecated]] = 1, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH = 2, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT = 3, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE = 4, @@ -444,23 +582,28 @@ enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB = 11, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR = 12, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_AWDL = 13 + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_AWDL = 13, }; -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value); -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_AWDL; -constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX + 1; -const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); -template -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(T enum_t_value) { +extern const uint32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_[]; +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN = + static_cast(0); +inline constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = + static_cast(13); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value) { + return 0 <= value && value <= 13 && ((15359u >> value) & 1) != 0; +} +inline constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = 13 + 1; +const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); +template +const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name."); - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Medium_Name()."); + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(static_cast(value)); } bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value); + ::absl::string_view name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* PROTOBUF_NONNULL value); enum BandwidthUpgradeNegotiationFrame_EventType : int { BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE = 0, BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE = 1, @@ -469,23 +612,28 @@ enum BandwidthUpgradeNegotiationFrame_EventType : int { BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION = 4, BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE = 5, BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK = 6, - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_REQUEST = 7 + BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_REQUEST = 7, }; -bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value); -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN = BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX = BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_REQUEST; -constexpr int BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX + 1; -const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(BandwidthUpgradeNegotiationFrame_EventType value); -template -inline const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(T enum_t_value) { +extern const uint32_t BandwidthUpgradeNegotiationFrame_EventType_internal_data_[]; +inline constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN = + static_cast(0); +inline constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX = + static_cast(7); +inline bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value) { + return 0 <= value && value <= 7; +} +inline constexpr int BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE = 7 + 1; +const ::std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(BandwidthUpgradeNegotiationFrame_EventType value); +template +const ::std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeNegotiationFrame_EventType_Name."); - return BandwidthUpgradeNegotiationFrame_EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return BandwidthUpgradeNegotiationFrame_EventType_Name(static_cast(value)); } bool BandwidthUpgradeNegotiationFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value); + ::absl::string_view name, BandwidthUpgradeNegotiationFrame_EventType* PROTOBUF_NONNULL value); enum BandwidthUpgradeRetryFrame_Medium : int { BandwidthUpgradeRetryFrame_Medium_UNKNOWN_MEDIUM = 0, BandwidthUpgradeRetryFrame_Medium_BLUETOOTH = 2, @@ -499,126 +647,156 @@ enum BandwidthUpgradeRetryFrame_Medium : int { BandwidthUpgradeRetryFrame_Medium_BLE_L2CAP = 10, BandwidthUpgradeRetryFrame_Medium_USB = 11, BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR = 12, - BandwidthUpgradeRetryFrame_Medium_AWDL = 13 + BandwidthUpgradeRetryFrame_Medium_AWDL = 13, }; -bool BandwidthUpgradeRetryFrame_Medium_IsValid(int value); -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MIN = BandwidthUpgradeRetryFrame_Medium_UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MAX = BandwidthUpgradeRetryFrame_Medium_AWDL; -constexpr int BandwidthUpgradeRetryFrame_Medium_Medium_ARRAYSIZE = BandwidthUpgradeRetryFrame_Medium_Medium_MAX + 1; -const std::string& BandwidthUpgradeRetryFrame_Medium_Name(BandwidthUpgradeRetryFrame_Medium value); -template -inline const std::string& BandwidthUpgradeRetryFrame_Medium_Name(T enum_t_value) { +extern const uint32_t BandwidthUpgradeRetryFrame_Medium_internal_data_[]; +inline constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MIN = + static_cast(0); +inline constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MAX = + static_cast(13); +inline bool BandwidthUpgradeRetryFrame_Medium_IsValid(int value) { + return 0 <= value && value <= 13 && ((16381u >> value) & 1) != 0; +} +inline constexpr int BandwidthUpgradeRetryFrame_Medium_Medium_ARRAYSIZE = 13 + 1; +const ::std::string& BandwidthUpgradeRetryFrame_Medium_Name(BandwidthUpgradeRetryFrame_Medium value); +template +const ::std::string& BandwidthUpgradeRetryFrame_Medium_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeRetryFrame_Medium_Name."); - return BandwidthUpgradeRetryFrame_Medium_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Medium_Name()."); + return BandwidthUpgradeRetryFrame_Medium_Name(static_cast(value)); } bool BandwidthUpgradeRetryFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeRetryFrame_Medium* value); + ::absl::string_view name, BandwidthUpgradeRetryFrame_Medium* PROTOBUF_NONNULL value); enum AutoResumeFrame_EventType : int { AutoResumeFrame_EventType_UNKNOWN_AUTO_RESUME_EVENT_TYPE = 0, AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_START = 1, - AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_ACK = 2 + AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_ACK = 2, }; -bool AutoResumeFrame_EventType_IsValid(int value); -constexpr AutoResumeFrame_EventType AutoResumeFrame_EventType_EventType_MIN = AutoResumeFrame_EventType_UNKNOWN_AUTO_RESUME_EVENT_TYPE; -constexpr AutoResumeFrame_EventType AutoResumeFrame_EventType_EventType_MAX = AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_ACK; -constexpr int AutoResumeFrame_EventType_EventType_ARRAYSIZE = AutoResumeFrame_EventType_EventType_MAX + 1; -const std::string& AutoResumeFrame_EventType_Name(AutoResumeFrame_EventType value); -template -inline const std::string& AutoResumeFrame_EventType_Name(T enum_t_value) { +extern const uint32_t AutoResumeFrame_EventType_internal_data_[]; +inline constexpr AutoResumeFrame_EventType AutoResumeFrame_EventType_EventType_MIN = + static_cast(0); +inline constexpr AutoResumeFrame_EventType AutoResumeFrame_EventType_EventType_MAX = + static_cast(2); +inline bool AutoResumeFrame_EventType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int AutoResumeFrame_EventType_EventType_ARRAYSIZE = 2 + 1; +const ::std::string& AutoResumeFrame_EventType_Name(AutoResumeFrame_EventType value); +template +const ::std::string& AutoResumeFrame_EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AutoResumeFrame_EventType_Name."); - return AutoResumeFrame_EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return AutoResumeFrame_EventType_Name(static_cast(value)); } bool AutoResumeFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AutoResumeFrame_EventType* value); + ::absl::string_view name, AutoResumeFrame_EventType* PROTOBUF_NONNULL value); enum AutoReconnectFrame_EventType : int { AutoReconnectFrame_EventType_UNKNOWN_EVENT_TYPE = 0, AutoReconnectFrame_EventType_CLIENT_INTRODUCTION = 1, - AutoReconnectFrame_EventType_CLIENT_INTRODUCTION_ACK = 2 + AutoReconnectFrame_EventType_CLIENT_INTRODUCTION_ACK = 2, }; -bool AutoReconnectFrame_EventType_IsValid(int value); -constexpr AutoReconnectFrame_EventType AutoReconnectFrame_EventType_EventType_MIN = AutoReconnectFrame_EventType_UNKNOWN_EVENT_TYPE; -constexpr AutoReconnectFrame_EventType AutoReconnectFrame_EventType_EventType_MAX = AutoReconnectFrame_EventType_CLIENT_INTRODUCTION_ACK; -constexpr int AutoReconnectFrame_EventType_EventType_ARRAYSIZE = AutoReconnectFrame_EventType_EventType_MAX + 1; -const std::string& AutoReconnectFrame_EventType_Name(AutoReconnectFrame_EventType value); -template -inline const std::string& AutoReconnectFrame_EventType_Name(T enum_t_value) { +extern const uint32_t AutoReconnectFrame_EventType_internal_data_[]; +inline constexpr AutoReconnectFrame_EventType AutoReconnectFrame_EventType_EventType_MIN = + static_cast(0); +inline constexpr AutoReconnectFrame_EventType AutoReconnectFrame_EventType_EventType_MAX = + static_cast(2); +inline bool AutoReconnectFrame_EventType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int AutoReconnectFrame_EventType_EventType_ARRAYSIZE = 2 + 1; +const ::std::string& AutoReconnectFrame_EventType_Name(AutoReconnectFrame_EventType value); +template +const ::std::string& AutoReconnectFrame_EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AutoReconnectFrame_EventType_Name."); - return AutoReconnectFrame_EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return AutoReconnectFrame_EventType_Name(static_cast(value)); } bool AutoReconnectFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AutoReconnectFrame_EventType* value); + ::absl::string_view name, AutoReconnectFrame_EventType* PROTOBUF_NONNULL value); enum MediumMetadata_WifiDirectAuthType : int { MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_TYPE_UNKNOWN = 0, MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PASSWORD = 1, - MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PIN = 2 + MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PIN = 2, }; -bool MediumMetadata_WifiDirectAuthType_IsValid(int value); -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MIN = MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_TYPE_UNKNOWN; -constexpr MediumMetadata_WifiDirectAuthType MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MAX = MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PIN; -constexpr int MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_ARRAYSIZE = MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MAX + 1; -const std::string& MediumMetadata_WifiDirectAuthType_Name(MediumMetadata_WifiDirectAuthType value); -template -inline const std::string& MediumMetadata_WifiDirectAuthType_Name(T enum_t_value) { +extern const uint32_t MediumMetadata_WifiDirectAuthType_internal_data_[]; +inline constexpr MediumMetadata_WifiDirectAuthType MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MIN = + static_cast(0); +inline constexpr MediumMetadata_WifiDirectAuthType MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MAX = + static_cast(2); +inline bool MediumMetadata_WifiDirectAuthType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_ARRAYSIZE = 2 + 1; +const ::std::string& MediumMetadata_WifiDirectAuthType_Name(MediumMetadata_WifiDirectAuthType value); +template +const ::std::string& MediumMetadata_WifiDirectAuthType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MediumMetadata_WifiDirectAuthType_Name."); - return MediumMetadata_WifiDirectAuthType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to WifiDirectAuthType_Name()."); + return MediumMetadata_WifiDirectAuthType_Name(static_cast(value)); } bool MediumMetadata_WifiDirectAuthType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MediumMetadata_WifiDirectAuthType* value); + ::absl::string_view name, MediumMetadata_WifiDirectAuthType* PROTOBUF_NONNULL value); enum LocationStandard_Format : int { LocationStandard_Format_UNKNOWN = 0, LocationStandard_Format_E164_CALLING = 1, - LocationStandard_Format_ISO_3166_1_ALPHA_2 = 2 + LocationStandard_Format_ISO_3166_1_ALPHA_2 = 2, }; -bool LocationStandard_Format_IsValid(int value); -constexpr LocationStandard_Format LocationStandard_Format_Format_MIN = LocationStandard_Format_UNKNOWN; -constexpr LocationStandard_Format LocationStandard_Format_Format_MAX = LocationStandard_Format_ISO_3166_1_ALPHA_2; -constexpr int LocationStandard_Format_Format_ARRAYSIZE = LocationStandard_Format_Format_MAX + 1; -const std::string& LocationStandard_Format_Name(LocationStandard_Format value); -template -inline const std::string& LocationStandard_Format_Name(T enum_t_value) { +extern const uint32_t LocationStandard_Format_internal_data_[]; +inline constexpr LocationStandard_Format LocationStandard_Format_Format_MIN = + static_cast(0); +inline constexpr LocationStandard_Format LocationStandard_Format_Format_MAX = + static_cast(2); +inline bool LocationStandard_Format_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int LocationStandard_Format_Format_ARRAYSIZE = 2 + 1; +const ::std::string& LocationStandard_Format_Name(LocationStandard_Format value); +template +const ::std::string& LocationStandard_Format_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LocationStandard_Format_Name."); - return LocationStandard_Format_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Format_Name()."); + return LocationStandard_Format_Name(static_cast(value)); } bool LocationStandard_Format_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value); + ::absl::string_view name, LocationStandard_Format* PROTOBUF_NONNULL value); enum OsInfo_OsType : int { OsInfo_OsType_UNKNOWN_OS_TYPE = 0, OsInfo_OsType_ANDROID = 1, OsInfo_OsType_CHROME_OS = 2, OsInfo_OsType_WINDOWS = 3, OsInfo_OsType_APPLE = 4, - OsInfo_OsType_LINUX = 100 + OsInfo_OsType_LINUX = 100, }; -bool OsInfo_OsType_IsValid(int value); -constexpr OsInfo_OsType OsInfo_OsType_OsType_MIN = OsInfo_OsType_UNKNOWN_OS_TYPE; -constexpr OsInfo_OsType OsInfo_OsType_OsType_MAX = OsInfo_OsType_LINUX; -constexpr int OsInfo_OsType_OsType_ARRAYSIZE = OsInfo_OsType_OsType_MAX + 1; -const std::string& OsInfo_OsType_Name(OsInfo_OsType value); -template -inline const std::string& OsInfo_OsType_Name(T enum_t_value) { +extern const uint32_t OsInfo_OsType_internal_data_[]; +inline constexpr OsInfo_OsType OsInfo_OsType_OsType_MIN = + static_cast(0); +inline constexpr OsInfo_OsType OsInfo_OsType_OsType_MAX = + static_cast(100); +inline bool OsInfo_OsType_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, OsInfo_OsType_internal_data_); +} +inline constexpr int OsInfo_OsType_OsType_ARRAYSIZE = 100 + 1; +const ::std::string& OsInfo_OsType_Name(OsInfo_OsType value); +template +const ::std::string& OsInfo_OsType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OsInfo_OsType_Name."); - return OsInfo_OsType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to OsType_Name()."); + return OsInfo_OsType_Name(static_cast(value)); } bool OsInfo_OsType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsInfo_OsType* value); + ::absl::string_view name, OsInfo_OsType* PROTOBUF_NONNULL value); enum PresenceDevice_DeviceType : int { PresenceDevice_DeviceType_UNKNOWN = 0, PresenceDevice_DeviceType_PHONE = 1, @@ -626,257 +804,85 @@ enum PresenceDevice_DeviceType : int { PresenceDevice_DeviceType_DISPLAY = 3, PresenceDevice_DeviceType_LAPTOP = 4, PresenceDevice_DeviceType_TV = 5, - PresenceDevice_DeviceType_WATCH = 6 + PresenceDevice_DeviceType_WATCH = 6, }; -bool PresenceDevice_DeviceType_IsValid(int value); -constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MIN = PresenceDevice_DeviceType_UNKNOWN; -constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MAX = PresenceDevice_DeviceType_WATCH; -constexpr int PresenceDevice_DeviceType_DeviceType_ARRAYSIZE = PresenceDevice_DeviceType_DeviceType_MAX + 1; -const std::string& PresenceDevice_DeviceType_Name(PresenceDevice_DeviceType value); -template -inline const std::string& PresenceDevice_DeviceType_Name(T enum_t_value) { +extern const uint32_t PresenceDevice_DeviceType_internal_data_[]; +inline constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MIN = + static_cast(0); +inline constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MAX = + static_cast(6); +inline bool PresenceDevice_DeviceType_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int PresenceDevice_DeviceType_DeviceType_ARRAYSIZE = 6 + 1; +const ::std::string& PresenceDevice_DeviceType_Name(PresenceDevice_DeviceType value); +template +const ::std::string& PresenceDevice_DeviceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PresenceDevice_DeviceType_Name."); - return PresenceDevice_DeviceType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return PresenceDevice_DeviceType_Name(static_cast(value)); } bool PresenceDevice_DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PresenceDevice_DeviceType* value); + ::absl::string_view name, PresenceDevice_DeviceType* PROTOBUF_NONNULL value); enum EndpointType : int { UNKNOWN_ENDPOINT = 0, CONNECTIONS_ENDPOINT = 1, - PRESENCE_ENDPOINT = 2 + PRESENCE_ENDPOINT = 2, }; -bool EndpointType_IsValid(int value); -constexpr EndpointType EndpointType_MIN = UNKNOWN_ENDPOINT; -constexpr EndpointType EndpointType_MAX = PRESENCE_ENDPOINT; -constexpr int EndpointType_ARRAYSIZE = EndpointType_MAX + 1; -const std::string& EndpointType_Name(EndpointType value); -template -inline const std::string& EndpointType_Name(T enum_t_value) { +extern const uint32_t EndpointType_internal_data_[]; +inline constexpr EndpointType EndpointType_MIN = + static_cast(0); +inline constexpr EndpointType EndpointType_MAX = + static_cast(2); +inline bool EndpointType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int EndpointType_ARRAYSIZE = 2 + 1; +const ::std::string& EndpointType_Name(EndpointType value); +template +const ::std::string& EndpointType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EndpointType_Name."); - return EndpointType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EndpointType_Name()."); + return EndpointType_Name(static_cast(value)); } bool EndpointType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EndpointType* value); + ::absl::string_view name, EndpointType* PROTOBUF_NONNULL value); + // =================================================================== -class OfflineFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.OfflineFrame) */ { - public: - inline OfflineFrame() : OfflineFrame(nullptr) {} - ~OfflineFrame() override; - explicit constexpr OfflineFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - OfflineFrame(const OfflineFrame& from); - OfflineFrame(OfflineFrame&& from) noexcept - : OfflineFrame() { - *this = ::std::move(from); - } - - inline OfflineFrame& operator=(const OfflineFrame& from) { - CopyFrom(from); - return *this; - } - inline OfflineFrame& operator=(OfflineFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const OfflineFrame& default_instance() { - return *internal_default_instance(); - } - static inline const OfflineFrame* internal_default_instance() { - return reinterpret_cast( - &_OfflineFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(OfflineFrame& a, OfflineFrame& b) { - a.Swap(&b); - } - inline void Swap(OfflineFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OfflineFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OfflineFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const OfflineFrame& from); - void MergeFrom(const OfflineFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(OfflineFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.OfflineFrame"; - } - protected: - explicit OfflineFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef OfflineFrame_Version Version; - static constexpr Version UNKNOWN_VERSION = - OfflineFrame_Version_UNKNOWN_VERSION; - static constexpr Version V1 = - OfflineFrame_Version_V1; - static inline bool Version_IsValid(int value) { - return OfflineFrame_Version_IsValid(value); - } - static constexpr Version Version_MIN = - OfflineFrame_Version_Version_MIN; - static constexpr Version Version_MAX = - OfflineFrame_Version_Version_MAX; - static constexpr int Version_ARRAYSIZE = - OfflineFrame_Version_Version_ARRAYSIZE; - template - static inline const std::string& Version_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Version_Name."); - return OfflineFrame_Version_Name(enum_t_value); - } - static inline bool Version_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Version* value) { - return OfflineFrame_Version_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kV1FieldNumber = 2, - kVersionFieldNumber = 1, - }; - // optional .location.nearby.connections.V1Frame v1 = 2; - bool has_v1() const; - private: - bool _internal_has_v1() const; - public: - void clear_v1(); - const ::location::nearby::connections::V1Frame& v1() const; - PROTOBUF_NODISCARD ::location::nearby::connections::V1Frame* release_v1(); - ::location::nearby::connections::V1Frame* mutable_v1(); - void set_allocated_v1(::location::nearby::connections::V1Frame* v1); - private: - const ::location::nearby::connections::V1Frame& _internal_v1() const; - ::location::nearby::connections::V1Frame* _internal_mutable_v1(); - public: - void unsafe_arena_set_allocated_v1( - ::location::nearby::connections::V1Frame* v1); - ::location::nearby::connections::V1Frame* unsafe_arena_release_v1(); - - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - ::location::nearby::connections::OfflineFrame_Version version() const; - void set_version(::location::nearby::connections::OfflineFrame_Version value); - private: - ::location::nearby::connections::OfflineFrame_Version _internal_version() const; - void _internal_set_version(::location::nearby::connections::OfflineFrame_Version value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.OfflineFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::V1Frame* v1_; - int version_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; // ------------------------------------------------------------------- -class V1Frame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.V1Frame) */ { +class WifiLanUsableChannels final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiLanUsableChannels) */ { public: - inline V1Frame() : V1Frame(nullptr) {} - ~V1Frame() override; - explicit constexpr V1Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline WifiLanUsableChannels() : WifiLanUsableChannels(nullptr) {} + ~WifiLanUsableChannels() PROTOBUF_FINAL; - V1Frame(const V1Frame& from); - V1Frame(V1Frame&& from) noexcept - : V1Frame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WifiLanUsableChannels* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WifiLanUsableChannels)); } +#endif - inline V1Frame& operator=(const V1Frame& from) { + template + explicit PROTOBUF_CONSTEXPR WifiLanUsableChannels(::google::protobuf::internal::ConstantInitialized); + + inline WifiLanUsableChannels(const WifiLanUsableChannels& from) : WifiLanUsableChannels(nullptr, from) {} + inline WifiLanUsableChannels(WifiLanUsableChannels&& from) noexcept + : WifiLanUsableChannels(nullptr, ::std::move(from)) {} + inline WifiLanUsableChannels& operator=(const WifiLanUsableChannels& from) { CopyFrom(from); return *this; } - inline V1Frame& operator=(V1Frame&& from) noexcept { + inline WifiLanUsableChannels& operator=(WifiLanUsableChannels&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -884,429 +890,8084 @@ class V1Frame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const V1Frame& default_instance() { - return *internal_default_instance(); + static const WifiLanUsableChannels& default_instance() { + return *reinterpret_cast( + &_WifiLanUsableChannels_default_instance_); } - static inline const V1Frame* internal_default_instance() { - return reinterpret_cast( - &_V1Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(V1Frame& a, V1Frame& b) { - a.Swap(&b); - } - inline void Swap(V1Frame* other) { + static constexpr int kIndexInFileMessages = 33; + friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { a.Swap(&b); } + inline void Swap(WifiLanUsableChannels* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(V1Frame* other) { + void UnsafeArenaSwap(WifiLanUsableChannels* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - V1Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + WifiLanUsableChannels* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const V1Frame& from); - void MergeFrom(const V1Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const WifiLanUsableChannels& from); + void MergeFrom(const WifiLanUsableChannels& from) { WifiLanUsableChannels::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(V1Frame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.V1Frame"; - } - protected: - explicit V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WifiLanUsableChannels* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.WifiLanUsableChannels"; } + + explicit WifiLanUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WifiLanUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WifiLanUsableChannels& from); + WifiLanUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WifiLanUsableChannels&& from) noexcept + : WifiLanUsableChannels(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - typedef V1Frame_FrameType FrameType; - static constexpr FrameType UNKNOWN_FRAME_TYPE = - V1Frame_FrameType_UNKNOWN_FRAME_TYPE; - static constexpr FrameType CONNECTION_REQUEST = - V1Frame_FrameType_CONNECTION_REQUEST; - static constexpr FrameType CONNECTION_RESPONSE = - V1Frame_FrameType_CONNECTION_RESPONSE; - static constexpr FrameType PAYLOAD_TRANSFER = - V1Frame_FrameType_PAYLOAD_TRANSFER; - static constexpr FrameType BANDWIDTH_UPGRADE_NEGOTIATION = - V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION; - static constexpr FrameType KEEP_ALIVE = - V1Frame_FrameType_KEEP_ALIVE; - static constexpr FrameType DISCONNECTION = - V1Frame_FrameType_DISCONNECTION; - static constexpr FrameType PAIRED_KEY_ENCRYPTION = - V1Frame_FrameType_PAIRED_KEY_ENCRYPTION; - static constexpr FrameType AUTHENTICATION_MESSAGE = - V1Frame_FrameType_AUTHENTICATION_MESSAGE; - static constexpr FrameType AUTHENTICATION_RESULT = - V1Frame_FrameType_AUTHENTICATION_RESULT; - static constexpr FrameType AUTO_RESUME = - V1Frame_FrameType_AUTO_RESUME; - static constexpr FrameType AUTO_RECONNECT = - V1Frame_FrameType_AUTO_RECONNECT; - static constexpr FrameType BANDWIDTH_UPGRADE_RETRY = - V1Frame_FrameType_BANDWIDTH_UPGRADE_RETRY; - static inline bool FrameType_IsValid(int value) { - return V1Frame_FrameType_IsValid(value); + // accessors ------------------------------------------------------- + enum : int { + kChannelsFieldNumber = 1, + }; + // repeated int32 channels = 1 [packed = true]; + int channels_size() const; + private: + int _internal_channels_size() const; + + public: + void clear_channels() ; + ::int32_t channels(int index) const; + void set_channels(int index, ::int32_t value); + void add_channels(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_channels(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_channels(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiLanUsableChannels) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WifiLanUsableChannels& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int32_t> channels_; + ::google::protobuf::internal::CachedSize _channels_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<50> WifiLanUsableChannels_class_data_; +// ------------------------------------------------------------------- + +class WifiHotspotStaUsableChannels final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiHotspotStaUsableChannels) */ { + public: + inline WifiHotspotStaUsableChannels() : WifiHotspotStaUsableChannels(nullptr) {} + ~WifiHotspotStaUsableChannels() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WifiHotspotStaUsableChannels* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WifiHotspotStaUsableChannels)); } - static constexpr FrameType FrameType_MIN = - V1Frame_FrameType_FrameType_MIN; - static constexpr FrameType FrameType_MAX = - V1Frame_FrameType_FrameType_MAX; - static constexpr int FrameType_ARRAYSIZE = - V1Frame_FrameType_FrameType_ARRAYSIZE; - template - static inline const std::string& FrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FrameType_Name."); - return V1Frame_FrameType_Name(enum_t_value); +#endif + + template + explicit PROTOBUF_CONSTEXPR WifiHotspotStaUsableChannels(::google::protobuf::internal::ConstantInitialized); + + inline WifiHotspotStaUsableChannels(const WifiHotspotStaUsableChannels& from) : WifiHotspotStaUsableChannels(nullptr, from) {} + inline WifiHotspotStaUsableChannels(WifiHotspotStaUsableChannels&& from) noexcept + : WifiHotspotStaUsableChannels(nullptr, ::std::move(from)) {} + inline WifiHotspotStaUsableChannels& operator=(const WifiHotspotStaUsableChannels& from) { + CopyFrom(from); + return *this; } - static inline bool FrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - FrameType* value) { - return V1Frame_FrameType_Parse(name, value); + inline WifiHotspotStaUsableChannels& operator=(WifiHotspotStaUsableChannels&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const WifiHotspotStaUsableChannels& default_instance() { + return *reinterpret_cast( + &_WifiHotspotStaUsableChannels_default_instance_); + } + static constexpr int kIndexInFileMessages = 35; + friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { a.Swap(&b); } + inline void Swap(WifiHotspotStaUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WifiHotspotStaUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + WifiHotspotStaUsableChannels* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const WifiHotspotStaUsableChannels& from); + void MergeFrom(const WifiHotspotStaUsableChannels& from) { WifiHotspotStaUsableChannels::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WifiHotspotStaUsableChannels* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.WifiHotspotStaUsableChannels"; } + + explicit WifiHotspotStaUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WifiHotspotStaUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WifiHotspotStaUsableChannels& from); + WifiHotspotStaUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WifiHotspotStaUsableChannels&& from) noexcept + : WifiHotspotStaUsableChannels(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChannelsFieldNumber = 1, + }; + // repeated int32 channels = 1 [packed = true]; + int channels_size() const; + private: + int _internal_channels_size() const; + + public: + void clear_channels() ; + ::int32_t channels(int index) const; + void set_channels(int index, ::int32_t value); + void add_channels(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_channels(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_channels(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiHotspotStaUsableChannels) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WifiHotspotStaUsableChannels& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int32_t> channels_; + ::google::protobuf::internal::CachedSize _channels_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<57> WifiHotspotStaUsableChannels_class_data_; +// ------------------------------------------------------------------- + +class WifiDirectCliUsableChannels final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiDirectCliUsableChannels) */ { + public: + inline WifiDirectCliUsableChannels() : WifiDirectCliUsableChannels(nullptr) {} + ~WifiDirectCliUsableChannels() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WifiDirectCliUsableChannels* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WifiDirectCliUsableChannels)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR WifiDirectCliUsableChannels(::google::protobuf::internal::ConstantInitialized); + + inline WifiDirectCliUsableChannels(const WifiDirectCliUsableChannels& from) : WifiDirectCliUsableChannels(nullptr, from) {} + inline WifiDirectCliUsableChannels(WifiDirectCliUsableChannels&& from) noexcept + : WifiDirectCliUsableChannels(nullptr, ::std::move(from)) {} + inline WifiDirectCliUsableChannels& operator=(const WifiDirectCliUsableChannels& from) { + CopyFrom(from); + return *this; + } + inline WifiDirectCliUsableChannels& operator=(WifiDirectCliUsableChannels&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const WifiDirectCliUsableChannels& default_instance() { + return *reinterpret_cast( + &_WifiDirectCliUsableChannels_default_instance_); + } + static constexpr int kIndexInFileMessages = 32; + friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { a.Swap(&b); } + inline void Swap(WifiDirectCliUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WifiDirectCliUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + WifiDirectCliUsableChannels* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const WifiDirectCliUsableChannels& from); + void MergeFrom(const WifiDirectCliUsableChannels& from) { WifiDirectCliUsableChannels::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WifiDirectCliUsableChannels* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.WifiDirectCliUsableChannels"; } + + explicit WifiDirectCliUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WifiDirectCliUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WifiDirectCliUsableChannels& from); + WifiDirectCliUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WifiDirectCliUsableChannels&& from) noexcept + : WifiDirectCliUsableChannels(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChannelsFieldNumber = 1, + }; + // repeated int32 channels = 1 [packed = true]; + int channels_size() const; + private: + int _internal_channels_size() const; + + public: + void clear_channels() ; + ::int32_t channels(int index) const; + void set_channels(int index, ::int32_t value); + void add_channels(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_channels(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_channels(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiDirectCliUsableChannels) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WifiDirectCliUsableChannels& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int32_t> channels_; + ::google::protobuf::internal::CachedSize _channels_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> WifiDirectCliUsableChannels_class_data_; +// ------------------------------------------------------------------- + +class WifiAwareUsableChannels final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiAwareUsableChannels) */ { + public: + inline WifiAwareUsableChannels() : WifiAwareUsableChannels(nullptr) {} + ~WifiAwareUsableChannels() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WifiAwareUsableChannels* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WifiAwareUsableChannels)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR WifiAwareUsableChannels(::google::protobuf::internal::ConstantInitialized); + + inline WifiAwareUsableChannels(const WifiAwareUsableChannels& from) : WifiAwareUsableChannels(nullptr, from) {} + inline WifiAwareUsableChannels(WifiAwareUsableChannels&& from) noexcept + : WifiAwareUsableChannels(nullptr, ::std::move(from)) {} + inline WifiAwareUsableChannels& operator=(const WifiAwareUsableChannels& from) { + CopyFrom(from); + return *this; + } + inline WifiAwareUsableChannels& operator=(WifiAwareUsableChannels&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const WifiAwareUsableChannels& default_instance() { + return *reinterpret_cast( + &_WifiAwareUsableChannels_default_instance_); + } + static constexpr int kIndexInFileMessages = 34; + friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { a.Swap(&b); } + inline void Swap(WifiAwareUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WifiAwareUsableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + WifiAwareUsableChannels* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const WifiAwareUsableChannels& from); + void MergeFrom(const WifiAwareUsableChannels& from) { WifiAwareUsableChannels::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WifiAwareUsableChannels* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.WifiAwareUsableChannels"; } + + explicit WifiAwareUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WifiAwareUsableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WifiAwareUsableChannels& from); + WifiAwareUsableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WifiAwareUsableChannels&& from) noexcept + : WifiAwareUsableChannels(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChannelsFieldNumber = 1, + }; + // repeated int32 channels = 1 [packed = true]; + int channels_size() const; + private: + int _internal_channels_size() const; + + public: + void clear_channels() ; + ::int32_t channels(int index) const; + void set_channels(int index, ::int32_t value); + void add_channels(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_channels(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_channels(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiAwareUsableChannels) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WifiAwareUsableChannels& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int32_t> channels_; + ::google::protobuf::internal::CachedSize _channels_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<52> WifiAwareUsableChannels_class_data_; +// ------------------------------------------------------------------- + +class ServiceAddress final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.ServiceAddress) */ { + public: + inline ServiceAddress() : ServiceAddress(nullptr) {} + ~ServiceAddress() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ServiceAddress* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ServiceAddress)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ServiceAddress(::google::protobuf::internal::ConstantInitialized); + + inline ServiceAddress(const ServiceAddress& from) : ServiceAddress(nullptr, from) {} + inline ServiceAddress(ServiceAddress&& from) noexcept + : ServiceAddress(nullptr, ::std::move(from)) {} + inline ServiceAddress& operator=(const ServiceAddress& from) { + CopyFrom(from); + return *this; + } + inline ServiceAddress& operator=(ServiceAddress&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ServiceAddress& default_instance() { + return *reinterpret_cast( + &_ServiceAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(ServiceAddress& a, ServiceAddress& b) { a.Swap(&b); } + inline void Swap(ServiceAddress* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServiceAddress* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ServiceAddress* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ServiceAddress& from); + void MergeFrom(const ServiceAddress& from) { ServiceAddress::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ServiceAddress* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.ServiceAddress"; } + + explicit ServiceAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ServiceAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ServiceAddress& from); + ServiceAddress( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ServiceAddress&& from) noexcept + : ServiceAddress(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIpAddressFieldNumber = 1, + kPortFieldNumber = 2, + }; + // optional bytes ip_address = 1; + bool has_ip_address() const; + void clear_ip_address() ; + const ::std::string& ip_address() const; + template + void set_ip_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ip_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ip_address(); + void set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ip_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ip_address(); + + public: + // optional int32 port = 2; + bool has_port() const; + void clear_port() ; + ::int32_t port() const; + void set_port(::int32_t value); + + private: + ::int32_t _internal_port() const; + void _internal_set_port(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.ServiceAddress) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ServiceAddress& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr ip_address_; + ::int32_t port_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> ServiceAddress_class_data_; +// ------------------------------------------------------------------- + +class PresenceDevice final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PresenceDevice) */ { + public: + inline PresenceDevice() : PresenceDevice(nullptr) {} + ~PresenceDevice() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PresenceDevice* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PresenceDevice)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PresenceDevice(::google::protobuf::internal::ConstantInitialized); + + inline PresenceDevice(const PresenceDevice& from) : PresenceDevice(nullptr, from) {} + inline PresenceDevice(PresenceDevice&& from) noexcept + : PresenceDevice(nullptr, ::std::move(from)) {} + inline PresenceDevice& operator=(const PresenceDevice& from) { + CopyFrom(from); + return *this; + } + inline PresenceDevice& operator=(PresenceDevice&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PresenceDevice& default_instance() { + return *reinterpret_cast( + &_PresenceDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = 41; + friend void swap(PresenceDevice& a, PresenceDevice& b) { a.Swap(&b); } + inline void Swap(PresenceDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PresenceDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PresenceDevice* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PresenceDevice& from); + void MergeFrom(const PresenceDevice& from) { PresenceDevice::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PresenceDevice* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PresenceDevice"; } + + explicit PresenceDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PresenceDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PresenceDevice& from); + PresenceDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PresenceDevice&& from) noexcept + : PresenceDevice(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using DeviceType = PresenceDevice_DeviceType; + static constexpr DeviceType UNKNOWN = PresenceDevice_DeviceType_UNKNOWN; + static constexpr DeviceType PHONE = PresenceDevice_DeviceType_PHONE; + static constexpr DeviceType TABLET = PresenceDevice_DeviceType_TABLET; + static constexpr DeviceType DISPLAY = PresenceDevice_DeviceType_DISPLAY; + static constexpr DeviceType LAPTOP = PresenceDevice_DeviceType_LAPTOP; + static constexpr DeviceType TV = PresenceDevice_DeviceType_TV; + static constexpr DeviceType WATCH = PresenceDevice_DeviceType_WATCH; + static inline bool DeviceType_IsValid(int value) { + return PresenceDevice_DeviceType_IsValid(value); + } + static constexpr DeviceType DeviceType_MIN = PresenceDevice_DeviceType_DeviceType_MIN; + static constexpr DeviceType DeviceType_MAX = PresenceDevice_DeviceType_DeviceType_MAX; + static constexpr int DeviceType_ARRAYSIZE = PresenceDevice_DeviceType_DeviceType_ARRAYSIZE; + template + static inline const ::std::string& DeviceType_Name(T value) { + return PresenceDevice_DeviceType_Name(value); + } + static inline bool DeviceType_Parse( + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { + return PresenceDevice_DeviceType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kDiscoveryMediumFieldNumber = 8, + kActionsFieldNumber = 9, + kIdentityTypeFieldNumber = 10, + kEndpointIdFieldNumber = 1, + kConnectivityInfoListFieldNumber = 3, + kDeviceNameFieldNumber = 5, + kDeviceImageUrlFieldNumber = 7, + kDeviceIdFieldNumber = 4, + kEndpointTypeFieldNumber = 2, + kDeviceTypeFieldNumber = 6, + }; + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + int discovery_medium_size() const; + private: + int _internal_discovery_medium_size() const; + + public: + void clear_discovery_medium() ; + public: + ::location::nearby::connections::ConnectionRequestFrame_Medium discovery_medium(int index) const; + void set_discovery_medium(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value); + void add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value); + const ::google::protobuf::RepeatedField& discovery_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_discovery_medium(); + + private: + const ::google::protobuf::RepeatedField& _internal_discovery_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_discovery_medium(); + + public: + // repeated int32 actions = 9 [packed = true]; + int actions_size() const; + private: + int _internal_actions_size() const; + + public: + void clear_actions() ; + ::int32_t actions(int index) const; + void set_actions(int index, ::int32_t value); + void add_actions(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& actions() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_actions(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_actions() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_actions(); + + public: + // repeated int64 identity_type = 10 [packed = true]; + int identity_type_size() const; + private: + int _internal_identity_type_size() const; + + public: + void clear_identity_type() ; + ::int64_t identity_type(int index) const; + void set_identity_type(int index, ::int64_t value); + void add_identity_type(::int64_t value); + const ::google::protobuf::RepeatedField<::int64_t>& identity_type() const; + ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_identity_type(); + + private: + const ::google::protobuf::RepeatedField<::int64_t>& _internal_identity_type() const; + ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_identity_type(); + + public: + // optional string endpoint_id = 1; + bool has_endpoint_id() const; + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: + // optional bytes connectivity_info_list = 3; + bool has_connectivity_info_list() const; + void clear_connectivity_info_list() ; + const ::std::string& connectivity_info_list() const; + template + void set_connectivity_info_list(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connectivity_info_list(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connectivity_info_list(); + void set_allocated_connectivity_info_list(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connectivity_info_list() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connectivity_info_list(); + + public: + // optional string device_name = 5; + bool has_device_name() const; + void clear_device_name() ; + const ::std::string& device_name() const; + template + void set_device_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_name(); + void set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_name(); + + public: + // optional string device_image_url = 7; + bool has_device_image_url() const; + void clear_device_image_url() ; + const ::std::string& device_image_url() const; + template + void set_device_image_url(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_image_url(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_image_url(); + void set_allocated_device_image_url(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_image_url() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_image_url(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_image_url(); + + public: + // optional int64 device_id = 4; + bool has_device_id() const; + void clear_device_id() ; + ::int64_t device_id() const; + void set_device_id(::int64_t value); + + private: + ::int64_t _internal_device_id() const; + void _internal_set_device_id(::int64_t value); + + public: + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + bool has_endpoint_type() const; + void clear_endpoint_type() ; + ::location::nearby::connections::EndpointType endpoint_type() const; + void set_endpoint_type(::location::nearby::connections::EndpointType value); + + private: + ::location::nearby::connections::EndpointType _internal_endpoint_type() const; + void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); + + public: + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::connections::PresenceDevice_DeviceType device_type() const; + void set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); + + private: + ::location::nearby::connections::PresenceDevice_DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PresenceDevice) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PresenceDevice& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField discovery_medium_; + ::google::protobuf::internal::CachedSize _discovery_medium_cached_byte_size_; + ::google::protobuf::RepeatedField<::int32_t> actions_; + ::google::protobuf::internal::CachedSize _actions_cached_byte_size_; + ::google::protobuf::RepeatedField<::int64_t> identity_type_; + ::google::protobuf::internal::CachedSize _identity_type_cached_byte_size_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr connectivity_info_list_; + ::google::protobuf::internal::ArenaStringPtr device_name_; + ::google::protobuf::internal::ArenaStringPtr device_image_url_; + ::int64_t device_id_; + int endpoint_type_; + int device_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> PresenceDevice_class_data_; +// ------------------------------------------------------------------- + +class PayloadTransferFrame_PayloadHeader final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadHeader) */ { + public: + inline PayloadTransferFrame_PayloadHeader() : PayloadTransferFrame_PayloadHeader(nullptr) {} + ~PayloadTransferFrame_PayloadHeader() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PayloadTransferFrame_PayloadHeader)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadHeader(::google::protobuf::internal::ConstantInitialized); + + inline PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from) : PayloadTransferFrame_PayloadHeader(nullptr, from) {} + inline PayloadTransferFrame_PayloadHeader(PayloadTransferFrame_PayloadHeader&& from) noexcept + : PayloadTransferFrame_PayloadHeader(nullptr, ::std::move(from)) {} + inline PayloadTransferFrame_PayloadHeader& operator=(const PayloadTransferFrame_PayloadHeader& from) { + CopyFrom(from); + return *this; + } + inline PayloadTransferFrame_PayloadHeader& operator=(PayloadTransferFrame_PayloadHeader&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PayloadTransferFrame_PayloadHeader& default_instance() { + return *reinterpret_cast( + &_PayloadTransferFrame_PayloadHeader_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(PayloadTransferFrame_PayloadHeader& a, PayloadTransferFrame_PayloadHeader& b) { a.Swap(&b); } + inline void Swap(PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PayloadTransferFrame_PayloadHeader& from); + void MergeFrom(const PayloadTransferFrame_PayloadHeader& from) { PayloadTransferFrame_PayloadHeader::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PayloadTransferFrame.PayloadHeader"; } + + explicit PayloadTransferFrame_PayloadHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PayloadTransferFrame_PayloadHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PayloadTransferFrame_PayloadHeader& from); + PayloadTransferFrame_PayloadHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PayloadTransferFrame_PayloadHeader&& from) noexcept + : PayloadTransferFrame_PayloadHeader(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using PayloadType = PayloadTransferFrame_PayloadHeader_PayloadType; + static constexpr PayloadType UNKNOWN_PAYLOAD_TYPE = PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE; + static constexpr PayloadType BYTES = PayloadTransferFrame_PayloadHeader_PayloadType_BYTES; + static constexpr PayloadType FILE = PayloadTransferFrame_PayloadHeader_PayloadType_FILE; + static constexpr PayloadType STREAM = PayloadTransferFrame_PayloadHeader_PayloadType_STREAM; + static inline bool PayloadType_IsValid(int value) { + return PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value); + } + static constexpr PayloadType PayloadType_MIN = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN; + static constexpr PayloadType PayloadType_MAX = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX; + static constexpr int PayloadType_ARRAYSIZE = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE; + template + static inline const ::std::string& PayloadType_Name(T value) { + return PayloadTransferFrame_PayloadHeader_PayloadType_Name(value); + } + static inline bool PayloadType_Parse( + ::absl::string_view name, PayloadType* PROTOBUF_NONNULL value) { + return PayloadTransferFrame_PayloadHeader_PayloadType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kFileNameFieldNumber = 5, + kParentFolderFieldNumber = 6, + kIdFieldNumber = 1, + kTotalSizeFieldNumber = 3, + kTypeFieldNumber = 2, + kIsSensitiveFieldNumber = 4, + kLastModifiedTimestampMillisFieldNumber = 7, + }; + // optional string file_name = 5; + bool has_file_name() const; + void clear_file_name() ; + const ::std::string& file_name() const; + template + void set_file_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_file_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_file_name(); + void set_allocated_file_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_file_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_file_name(); + + public: + // optional string parent_folder = 6; + bool has_parent_folder() const; + void clear_parent_folder() ; + const ::std::string& parent_folder() const; + template + void set_parent_folder(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_parent_folder(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_parent_folder(); + void set_allocated_parent_folder(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_parent_folder() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_parent_folder(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_parent_folder(); + + public: + // optional int64 id = 1; + bool has_id() const; + void clear_id() ; + ::int64_t id() const; + void set_id(::int64_t value); + + private: + ::int64_t _internal_id() const; + void _internal_set_id(::int64_t value); + + public: + // optional int64 total_size = 3; + bool has_total_size() const; + void clear_total_size() ; + ::int64_t total_size() const; + void set_total_size(::int64_t value); + + private: + ::int64_t _internal_total_size() const; + void _internal_set_total_size(::int64_t value); + + public: + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; + bool has_type() const; + void clear_type() ; + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType type() const; + void set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); + + private: + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType _internal_type() const; + void _internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); + + public: + // optional bool is_sensitive = 4; + bool has_is_sensitive() const; + void clear_is_sensitive() ; + bool is_sensitive() const; + void set_is_sensitive(bool value); + + private: + bool _internal_is_sensitive() const; + void _internal_set_is_sensitive(bool value); + + public: + // optional int64 last_modified_timestamp_millis = 7; + bool has_last_modified_timestamp_millis() const; + void clear_last_modified_timestamp_millis() ; + ::int64_t last_modified_timestamp_millis() const; + void set_last_modified_timestamp_millis(::int64_t value); + + private: + ::int64_t _internal_last_modified_timestamp_millis() const; + void _internal_set_last_modified_timestamp_millis(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadHeader) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PayloadTransferFrame_PayloadHeader& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr file_name_; + ::google::protobuf::internal::ArenaStringPtr parent_folder_; + ::int64_t id_; + ::int64_t total_size_; + int type_; + bool is_sensitive_; + ::int64_t last_modified_timestamp_millis_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<63> PayloadTransferFrame_PayloadHeader_class_data_; +// ------------------------------------------------------------------- + +class PayloadTransferFrame_PayloadChunk final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadChunk) */ { + public: + inline PayloadTransferFrame_PayloadChunk() : PayloadTransferFrame_PayloadChunk(nullptr) {} + ~PayloadTransferFrame_PayloadChunk() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PayloadTransferFrame_PayloadChunk)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PayloadTransferFrame_PayloadChunk(::google::protobuf::internal::ConstantInitialized); + + inline PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from) : PayloadTransferFrame_PayloadChunk(nullptr, from) {} + inline PayloadTransferFrame_PayloadChunk(PayloadTransferFrame_PayloadChunk&& from) noexcept + : PayloadTransferFrame_PayloadChunk(nullptr, ::std::move(from)) {} + inline PayloadTransferFrame_PayloadChunk& operator=(const PayloadTransferFrame_PayloadChunk& from) { + CopyFrom(from); + return *this; + } + inline PayloadTransferFrame_PayloadChunk& operator=(PayloadTransferFrame_PayloadChunk&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PayloadTransferFrame_PayloadChunk& default_instance() { + return *reinterpret_cast( + &_PayloadTransferFrame_PayloadChunk_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(PayloadTransferFrame_PayloadChunk& a, PayloadTransferFrame_PayloadChunk& b) { a.Swap(&b); } + inline void Swap(PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PayloadTransferFrame_PayloadChunk& from); + void MergeFrom(const PayloadTransferFrame_PayloadChunk& from) { PayloadTransferFrame_PayloadChunk::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PayloadTransferFrame.PayloadChunk"; } + + explicit PayloadTransferFrame_PayloadChunk(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PayloadTransferFrame_PayloadChunk(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PayloadTransferFrame_PayloadChunk& from); + PayloadTransferFrame_PayloadChunk( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PayloadTransferFrame_PayloadChunk&& from) noexcept + : PayloadTransferFrame_PayloadChunk(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Flags = PayloadTransferFrame_PayloadChunk_Flags; + static constexpr Flags LAST_CHUNK = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; + static inline bool Flags_IsValid(int value) { + return PayloadTransferFrame_PayloadChunk_Flags_IsValid(value); + } + static constexpr Flags Flags_MIN = PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN; + static constexpr Flags Flags_MAX = PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX; + static constexpr int Flags_ARRAYSIZE = PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE; + template + static inline const ::std::string& Flags_Name(T value) { + return PayloadTransferFrame_PayloadChunk_Flags_Name(value); + } + static inline bool Flags_Parse( + ::absl::string_view name, Flags* PROTOBUF_NONNULL value) { + return PayloadTransferFrame_PayloadChunk_Flags_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kBodyFieldNumber = 3, + kOffsetFieldNumber = 2, + kFlagsFieldNumber = 1, + kIndexFieldNumber = 4, + }; + // optional bytes body = 3; + bool has_body() const; + void clear_body() ; + const ::std::string& body() const; + template + void set_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); + void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); + + public: + // optional int64 offset = 2; + bool has_offset() const; + void clear_offset() ; + ::int64_t offset() const; + void set_offset(::int64_t value); + + private: + ::int64_t _internal_offset() const; + void _internal_set_offset(::int64_t value); + + public: + // optional int32 flags = 1; + bool has_flags() const; + void clear_flags() ; + ::int32_t flags() const; + void set_flags(::int32_t value); + + private: + ::int32_t _internal_flags() const; + void _internal_set_flags(::int32_t value); + + public: + // optional int32 index = 4; + bool has_index() const; + void clear_index() ; + ::int32_t index() const; + void set_index(::int32_t value); + + private: + ::int32_t _internal_index() const; + void _internal_set_index(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadChunk) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PayloadTransferFrame_PayloadChunk& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr body_; + ::int64_t offset_; + ::int32_t flags_; + ::int32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> PayloadTransferFrame_PayloadChunk_class_data_; +// ------------------------------------------------------------------- + +class PayloadTransferFrame_ControlMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.ControlMessage) */ { + public: + inline PayloadTransferFrame_ControlMessage() : PayloadTransferFrame_ControlMessage(nullptr) {} + ~PayloadTransferFrame_ControlMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PayloadTransferFrame_ControlMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PayloadTransferFrame_ControlMessage(::google::protobuf::internal::ConstantInitialized); + + inline PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from) : PayloadTransferFrame_ControlMessage(nullptr, from) {} + inline PayloadTransferFrame_ControlMessage(PayloadTransferFrame_ControlMessage&& from) noexcept + : PayloadTransferFrame_ControlMessage(nullptr, ::std::move(from)) {} + inline PayloadTransferFrame_ControlMessage& operator=(const PayloadTransferFrame_ControlMessage& from) { + CopyFrom(from); + return *this; + } + inline PayloadTransferFrame_ControlMessage& operator=(PayloadTransferFrame_ControlMessage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PayloadTransferFrame_ControlMessage& default_instance() { + return *reinterpret_cast( + &_PayloadTransferFrame_ControlMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(PayloadTransferFrame_ControlMessage& a, PayloadTransferFrame_ControlMessage& b) { a.Swap(&b); } + inline void Swap(PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PayloadTransferFrame_ControlMessage& from); + void MergeFrom(const PayloadTransferFrame_ControlMessage& from) { PayloadTransferFrame_ControlMessage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PayloadTransferFrame.ControlMessage"; } + + explicit PayloadTransferFrame_ControlMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PayloadTransferFrame_ControlMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PayloadTransferFrame_ControlMessage& from); + PayloadTransferFrame_ControlMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PayloadTransferFrame_ControlMessage&& from) noexcept + : PayloadTransferFrame_ControlMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using EventType = PayloadTransferFrame_ControlMessage_EventType; + static constexpr EventType UNKNOWN_EVENT_TYPE = PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE; + static constexpr EventType PAYLOAD_ERROR = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR; + static constexpr EventType PAYLOAD_CANCELED = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED; + [[deprecated]] static constexpr EventType PAYLOAD_RECEIVED_ACK = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK; + static inline bool EventType_IsValid(int value) { + return PayloadTransferFrame_ControlMessage_EventType_IsValid(value); + } + static constexpr EventType EventType_MIN = PayloadTransferFrame_ControlMessage_EventType_EventType_MIN; + static constexpr EventType EventType_MAX = PayloadTransferFrame_ControlMessage_EventType_EventType_MAX; + static constexpr int EventType_ARRAYSIZE = PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE; + template + static inline const ::std::string& EventType_Name(T value) { + return PayloadTransferFrame_ControlMessage_EventType_Name(value); + } + static inline bool EventType_Parse( + ::absl::string_view name, EventType* PROTOBUF_NONNULL value) { + return PayloadTransferFrame_ControlMessage_EventType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kOffsetFieldNumber = 2, + kEventFieldNumber = 1, + }; + // optional int64 offset = 2; + bool has_offset() const; + void clear_offset() ; + ::int64_t offset() const; + void set_offset(::int64_t value); + + private: + ::int64_t _internal_offset() const; + void _internal_set_offset(::int64_t value); + + public: + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; + bool has_event() const; + void clear_event() ; + ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType event() const; + void set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); + + private: + ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType _internal_event() const; + void _internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.ControlMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PayloadTransferFrame_ControlMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t offset_; + int event_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<64> PayloadTransferFrame_ControlMessage_class_data_; +// ------------------------------------------------------------------- + +class PairedKeyEncryptionFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PairedKeyEncryptionFrame) */ { + public: + inline PairedKeyEncryptionFrame() : PairedKeyEncryptionFrame(nullptr) {} + ~PairedKeyEncryptionFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PairedKeyEncryptionFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PairedKeyEncryptionFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PairedKeyEncryptionFrame(::google::protobuf::internal::ConstantInitialized); + + inline PairedKeyEncryptionFrame(const PairedKeyEncryptionFrame& from) : PairedKeyEncryptionFrame(nullptr, from) {} + inline PairedKeyEncryptionFrame(PairedKeyEncryptionFrame&& from) noexcept + : PairedKeyEncryptionFrame(nullptr, ::std::move(from)) {} + inline PairedKeyEncryptionFrame& operator=(const PairedKeyEncryptionFrame& from) { + CopyFrom(from); + return *this; + } + inline PairedKeyEncryptionFrame& operator=(PairedKeyEncryptionFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PairedKeyEncryptionFrame& default_instance() { + return *reinterpret_cast( + &_PairedKeyEncryptionFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 25; + friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) { a.Swap(&b); } + inline void Swap(PairedKeyEncryptionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PairedKeyEncryptionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PairedKeyEncryptionFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PairedKeyEncryptionFrame& from); + void MergeFrom(const PairedKeyEncryptionFrame& from) { PairedKeyEncryptionFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PairedKeyEncryptionFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PairedKeyEncryptionFrame"; } + + explicit PairedKeyEncryptionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PairedKeyEncryptionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PairedKeyEncryptionFrame& from); + PairedKeyEncryptionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PairedKeyEncryptionFrame&& from) noexcept + : PairedKeyEncryptionFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSignedDataFieldNumber = 1, + }; + // optional bytes signed_data = 1; + bool has_signed_data() const; + void clear_signed_data() ; + const ::std::string& signed_data() const; + template + void set_signed_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_signed_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signed_data(); + void set_allocated_signed_data(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_signed_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signed_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signed_data(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PairedKeyEncryptionFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PairedKeyEncryptionFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr signed_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<53> PairedKeyEncryptionFrame_class_data_; +// ------------------------------------------------------------------- + +class OsInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.OsInfo) */ { + public: + inline OsInfo() : OsInfo(nullptr) {} + ~OsInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(OsInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(OsInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR OsInfo(::google::protobuf::internal::ConstantInitialized); + + inline OsInfo(const OsInfo& from) : OsInfo(nullptr, from) {} + inline OsInfo(OsInfo&& from) noexcept + : OsInfo(nullptr, ::std::move(from)) {} + inline OsInfo& operator=(const OsInfo& from) { + CopyFrom(from); + return *this; + } + inline OsInfo& operator=(OsInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const OsInfo& default_instance() { + return *reinterpret_cast( + &_OsInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 39; + friend void swap(OsInfo& a, OsInfo& b) { a.Swap(&b); } + inline void Swap(OsInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(OsInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OsInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const OsInfo& from); + void MergeFrom(const OsInfo& from) { OsInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(OsInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.OsInfo"; } + + explicit OsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + OsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OsInfo& from); + OsInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OsInfo&& from) noexcept + : OsInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using OsType = OsInfo_OsType; + static constexpr OsType UNKNOWN_OS_TYPE = OsInfo_OsType_UNKNOWN_OS_TYPE; + static constexpr OsType ANDROID = OsInfo_OsType_ANDROID; + static constexpr OsType CHROME_OS = OsInfo_OsType_CHROME_OS; + static constexpr OsType WINDOWS = OsInfo_OsType_WINDOWS; + static constexpr OsType APPLE = OsInfo_OsType_APPLE; + static constexpr OsType LINUX = OsInfo_OsType_LINUX; + static inline bool OsType_IsValid(int value) { + return OsInfo_OsType_IsValid(value); + } + static constexpr OsType OsType_MIN = OsInfo_OsType_OsType_MIN; + static constexpr OsType OsType_MAX = OsInfo_OsType_OsType_MAX; + static constexpr int OsType_ARRAYSIZE = OsInfo_OsType_OsType_ARRAYSIZE; + template + static inline const ::std::string& OsType_Name(T value) { + return OsInfo_OsType_Name(value); + } + static inline bool OsType_Parse( + ::absl::string_view name, OsType* PROTOBUF_NONNULL value) { + return OsInfo_OsType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { - kConnectionRequestFieldNumber = 2, - kConnectionResponseFieldNumber = 3, - kPayloadTransferFieldNumber = 4, - kBandwidthUpgradeNegotiationFieldNumber = 5, - kKeepAliveFieldNumber = 6, - kDisconnectionFieldNumber = 7, - kPairedKeyEncryptionFieldNumber = 8, - kAuthenticationMessageFieldNumber = 9, - kAuthenticationResultFieldNumber = 10, - kAutoResumeFieldNumber = 11, - kAutoReconnectFieldNumber = 12, - kBandwidthUpgradeRetryFieldNumber = 13, kTypeFieldNumber = 1, }; - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - bool has_connection_request() const; - private: - bool _internal_has_connection_request() const; - public: - void clear_connection_request(); - const ::location::nearby::connections::ConnectionRequestFrame& connection_request() const; - PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionRequestFrame* release_connection_request(); - ::location::nearby::connections::ConnectionRequestFrame* mutable_connection_request(); - void set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* connection_request); - private: - const ::location::nearby::connections::ConnectionRequestFrame& _internal_connection_request() const; - ::location::nearby::connections::ConnectionRequestFrame* _internal_mutable_connection_request(); - public: - void unsafe_arena_set_allocated_connection_request( - ::location::nearby::connections::ConnectionRequestFrame* connection_request); - ::location::nearby::connections::ConnectionRequestFrame* unsafe_arena_release_connection_request(); - - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - bool has_connection_response() const; - private: - bool _internal_has_connection_response() const; - public: - void clear_connection_response(); - const ::location::nearby::connections::ConnectionResponseFrame& connection_response() const; - PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionResponseFrame* release_connection_response(); - ::location::nearby::connections::ConnectionResponseFrame* mutable_connection_response(); - void set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* connection_response); - private: - const ::location::nearby::connections::ConnectionResponseFrame& _internal_connection_response() const; - ::location::nearby::connections::ConnectionResponseFrame* _internal_mutable_connection_response(); - public: - void unsafe_arena_set_allocated_connection_response( - ::location::nearby::connections::ConnectionResponseFrame* connection_response); - ::location::nearby::connections::ConnectionResponseFrame* unsafe_arena_release_connection_response(); - - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - bool has_payload_transfer() const; - private: - bool _internal_has_payload_transfer() const; - public: - void clear_payload_transfer(); - const ::location::nearby::connections::PayloadTransferFrame& payload_transfer() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame* release_payload_transfer(); - ::location::nearby::connections::PayloadTransferFrame* mutable_payload_transfer(); - void set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* payload_transfer); - private: - const ::location::nearby::connections::PayloadTransferFrame& _internal_payload_transfer() const; - ::location::nearby::connections::PayloadTransferFrame* _internal_mutable_payload_transfer(); - public: - void unsafe_arena_set_allocated_payload_transfer( - ::location::nearby::connections::PayloadTransferFrame* payload_transfer); - ::location::nearby::connections::PayloadTransferFrame* unsafe_arena_release_payload_transfer(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - bool has_bandwidth_upgrade_negotiation() const; - private: - bool _internal_has_bandwidth_upgrade_negotiation() const; - public: - void clear_bandwidth_upgrade_negotiation(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* release_bandwidth_upgrade_negotiation(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* mutable_bandwidth_upgrade_negotiation(); - void set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& _internal_bandwidth_upgrade_negotiation() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* _internal_mutable_bandwidth_upgrade_negotiation(); - public: - void unsafe_arena_set_allocated_bandwidth_upgrade_negotiation( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* unsafe_arena_release_bandwidth_upgrade_negotiation(); - - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - bool has_keep_alive() const; - private: - bool _internal_has_keep_alive() const; - public: - void clear_keep_alive(); - const ::location::nearby::connections::KeepAliveFrame& keep_alive() const; - PROTOBUF_NODISCARD ::location::nearby::connections::KeepAliveFrame* release_keep_alive(); - ::location::nearby::connections::KeepAliveFrame* mutable_keep_alive(); - void set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* keep_alive); - private: - const ::location::nearby::connections::KeepAliveFrame& _internal_keep_alive() const; - ::location::nearby::connections::KeepAliveFrame* _internal_mutable_keep_alive(); - public: - void unsafe_arena_set_allocated_keep_alive( - ::location::nearby::connections::KeepAliveFrame* keep_alive); - ::location::nearby::connections::KeepAliveFrame* unsafe_arena_release_keep_alive(); - - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - bool has_disconnection() const; - private: - bool _internal_has_disconnection() const; - public: - void clear_disconnection(); - const ::location::nearby::connections::DisconnectionFrame& disconnection() const; - PROTOBUF_NODISCARD ::location::nearby::connections::DisconnectionFrame* release_disconnection(); - ::location::nearby::connections::DisconnectionFrame* mutable_disconnection(); - void set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* disconnection); - private: - const ::location::nearby::connections::DisconnectionFrame& _internal_disconnection() const; - ::location::nearby::connections::DisconnectionFrame* _internal_mutable_disconnection(); - public: - void unsafe_arena_set_allocated_disconnection( - ::location::nearby::connections::DisconnectionFrame* disconnection); - ::location::nearby::connections::DisconnectionFrame* unsafe_arena_release_disconnection(); - - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - bool has_paired_key_encryption() const; - private: - bool _internal_has_paired_key_encryption() const; - public: - void clear_paired_key_encryption(); - const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PairedKeyEncryptionFrame* release_paired_key_encryption(); - ::location::nearby::connections::PairedKeyEncryptionFrame* mutable_paired_key_encryption(); - void set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption); - private: - const ::location::nearby::connections::PairedKeyEncryptionFrame& _internal_paired_key_encryption() const; - ::location::nearby::connections::PairedKeyEncryptionFrame* _internal_mutable_paired_key_encryption(); - public: - void unsafe_arena_set_allocated_paired_key_encryption( - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption); - ::location::nearby::connections::PairedKeyEncryptionFrame* unsafe_arena_release_paired_key_encryption(); - - // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; - bool has_authentication_message() const; - private: - bool _internal_has_authentication_message() const; - public: - void clear_authentication_message(); - const ::location::nearby::connections::AuthenticationMessageFrame& authentication_message() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AuthenticationMessageFrame* release_authentication_message(); - ::location::nearby::connections::AuthenticationMessageFrame* mutable_authentication_message(); - void set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* authentication_message); - private: - const ::location::nearby::connections::AuthenticationMessageFrame& _internal_authentication_message() const; - ::location::nearby::connections::AuthenticationMessageFrame* _internal_mutable_authentication_message(); - public: - void unsafe_arena_set_allocated_authentication_message( - ::location::nearby::connections::AuthenticationMessageFrame* authentication_message); - ::location::nearby::connections::AuthenticationMessageFrame* unsafe_arena_release_authentication_message(); - - // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; - bool has_authentication_result() const; - private: - bool _internal_has_authentication_result() const; - public: - void clear_authentication_result(); - const ::location::nearby::connections::AuthenticationResultFrame& authentication_result() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AuthenticationResultFrame* release_authentication_result(); - ::location::nearby::connections::AuthenticationResultFrame* mutable_authentication_result(); - void set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* authentication_result); - private: - const ::location::nearby::connections::AuthenticationResultFrame& _internal_authentication_result() const; - ::location::nearby::connections::AuthenticationResultFrame* _internal_mutable_authentication_result(); - public: - void unsafe_arena_set_allocated_authentication_result( - ::location::nearby::connections::AuthenticationResultFrame* authentication_result); - ::location::nearby::connections::AuthenticationResultFrame* unsafe_arena_release_authentication_result(); - - // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; - bool has_auto_resume() const; - private: - bool _internal_has_auto_resume() const; - public: - void clear_auto_resume(); - const ::location::nearby::connections::AutoResumeFrame& auto_resume() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AutoResumeFrame* release_auto_resume(); - ::location::nearby::connections::AutoResumeFrame* mutable_auto_resume(); - void set_allocated_auto_resume(::location::nearby::connections::AutoResumeFrame* auto_resume); - private: - const ::location::nearby::connections::AutoResumeFrame& _internal_auto_resume() const; - ::location::nearby::connections::AutoResumeFrame* _internal_mutable_auto_resume(); - public: - void unsafe_arena_set_allocated_auto_resume( - ::location::nearby::connections::AutoResumeFrame* auto_resume); - ::location::nearby::connections::AutoResumeFrame* unsafe_arena_release_auto_resume(); - - // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; - bool has_auto_reconnect() const; - private: - bool _internal_has_auto_reconnect() const; - public: - void clear_auto_reconnect(); - const ::location::nearby::connections::AutoReconnectFrame& auto_reconnect() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AutoReconnectFrame* release_auto_reconnect(); - ::location::nearby::connections::AutoReconnectFrame* mutable_auto_reconnect(); - void set_allocated_auto_reconnect(::location::nearby::connections::AutoReconnectFrame* auto_reconnect); - private: - const ::location::nearby::connections::AutoReconnectFrame& _internal_auto_reconnect() const; - ::location::nearby::connections::AutoReconnectFrame* _internal_mutable_auto_reconnect(); - public: - void unsafe_arena_set_allocated_auto_reconnect( - ::location::nearby::connections::AutoReconnectFrame* auto_reconnect); - ::location::nearby::connections::AutoReconnectFrame* unsafe_arena_release_auto_reconnect(); - - // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; - bool has_bandwidth_upgrade_retry() const; - private: - bool _internal_has_bandwidth_upgrade_retry() const; - public: - void clear_bandwidth_upgrade_retry(); - const ::location::nearby::connections::BandwidthUpgradeRetryFrame& bandwidth_upgrade_retry() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeRetryFrame* release_bandwidth_upgrade_retry(); - ::location::nearby::connections::BandwidthUpgradeRetryFrame* mutable_bandwidth_upgrade_retry(); - void set_allocated_bandwidth_upgrade_retry(::location::nearby::connections::BandwidthUpgradeRetryFrame* bandwidth_upgrade_retry); - private: - const ::location::nearby::connections::BandwidthUpgradeRetryFrame& _internal_bandwidth_upgrade_retry() const; - ::location::nearby::connections::BandwidthUpgradeRetryFrame* _internal_mutable_bandwidth_upgrade_retry(); - public: - void unsafe_arena_set_allocated_bandwidth_upgrade_retry( - ::location::nearby::connections::BandwidthUpgradeRetryFrame* bandwidth_upgrade_retry); - ::location::nearby::connections::BandwidthUpgradeRetryFrame* unsafe_arena_release_bandwidth_upgrade_retry(); - - // optional .location.nearby.connections.V1Frame.FrameType type = 1; + // optional .location.nearby.connections.OsInfo.OsType type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::connections::V1Frame_FrameType type() const; - void set_type(::location::nearby::connections::V1Frame_FrameType value); - private: - ::location::nearby::connections::V1Frame_FrameType _internal_type() const; - void _internal_set_type(::location::nearby::connections::V1Frame_FrameType value); - public: + void clear_type() ; + ::location::nearby::connections::OsInfo_OsType type() const; + void set_type(::location::nearby::connections::OsInfo_OsType value); - // @@protoc_insertion_point(class_scope:location.nearby.connections.V1Frame) + private: + ::location::nearby::connections::OsInfo_OsType _internal_type() const; + void _internal_set_type(::location::nearby::connections::OsInfo_OsType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.OsInfo) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::ConnectionRequestFrame* connection_request_; - ::location::nearby::connections::ConnectionResponseFrame* connection_response_; - ::location::nearby::connections::PayloadTransferFrame* payload_transfer_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation_; - ::location::nearby::connections::KeepAliveFrame* keep_alive_; - ::location::nearby::connections::DisconnectionFrame* disconnection_; - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption_; - ::location::nearby::connections::AuthenticationMessageFrame* authentication_message_; - ::location::nearby::connections::AuthenticationResultFrame* authentication_result_; - ::location::nearby::connections::AutoResumeFrame* auto_resume_; - ::location::nearby::connections::AutoReconnectFrame* auto_reconnect_; - ::location::nearby::connections::BandwidthUpgradeRetryFrame* bandwidth_upgrade_retry_; - int type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const OsInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<35> OsInfo_class_data_; // ------------------------------------------------------------------- -class ConnectionRequestFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionRequestFrame) */ { +class MediumRole final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.MediumRole) */ { public: - inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {} - ~ConnectionRequestFrame() override; - explicit constexpr ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MediumRole() : MediumRole(nullptr) {} + ~MediumRole() PROTOBUF_FINAL; - ConnectionRequestFrame(const ConnectionRequestFrame& from); - ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept - : ConnectionRequestFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MediumRole* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MediumRole)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR MediumRole(::google::protobuf::internal::ConstantInitialized); + + inline MediumRole(const MediumRole& from) : MediumRole(nullptr, from) {} + inline MediumRole(MediumRole&& from) noexcept + : MediumRole(nullptr, ::std::move(from)) {} + inline MediumRole& operator=(const MediumRole& from) { + CopyFrom(from); + return *this; + } + inline MediumRole& operator=(MediumRole&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const MediumRole& default_instance() { + return *reinterpret_cast( + &_MediumRole_default_instance_); + } + static constexpr int kIndexInFileMessages = 36; + friend void swap(MediumRole& a, MediumRole& b) { a.Swap(&b); } + inline void Swap(MediumRole* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MediumRole* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MediumRole* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const MediumRole& from); + void MergeFrom(const MediumRole& from) { MediumRole::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MediumRole* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.MediumRole"; } + + explicit MediumRole(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MediumRole(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MediumRole& from); + MediumRole( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MediumRole&& from) noexcept + : MediumRole(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSupportWifiDirectGroupOwnerFieldNumber = 1, + kSupportWifiDirectGroupClientFieldNumber = 2, + kSupportWifiHotspotHostFieldNumber = 3, + kSupportWifiHotspotClientFieldNumber = 4, + kSupportWifiAwarePublisherFieldNumber = 5, + kSupportWifiAwareSubscriberFieldNumber = 6, + kSupportAwdlPublisherFieldNumber = 7, + kSupportAwdlSubscriberFieldNumber = 8, + }; + // optional bool support_wifi_direct_group_owner = 1; + bool has_support_wifi_direct_group_owner() const; + void clear_support_wifi_direct_group_owner() ; + bool support_wifi_direct_group_owner() const; + void set_support_wifi_direct_group_owner(bool value); + + private: + bool _internal_support_wifi_direct_group_owner() const; + void _internal_set_support_wifi_direct_group_owner(bool value); + + public: + // optional bool support_wifi_direct_group_client = 2; + bool has_support_wifi_direct_group_client() const; + void clear_support_wifi_direct_group_client() ; + bool support_wifi_direct_group_client() const; + void set_support_wifi_direct_group_client(bool value); + + private: + bool _internal_support_wifi_direct_group_client() const; + void _internal_set_support_wifi_direct_group_client(bool value); + + public: + // optional bool support_wifi_hotspot_host = 3; + bool has_support_wifi_hotspot_host() const; + void clear_support_wifi_hotspot_host() ; + bool support_wifi_hotspot_host() const; + void set_support_wifi_hotspot_host(bool value); + + private: + bool _internal_support_wifi_hotspot_host() const; + void _internal_set_support_wifi_hotspot_host(bool value); + + public: + // optional bool support_wifi_hotspot_client = 4; + bool has_support_wifi_hotspot_client() const; + void clear_support_wifi_hotspot_client() ; + bool support_wifi_hotspot_client() const; + void set_support_wifi_hotspot_client(bool value); + + private: + bool _internal_support_wifi_hotspot_client() const; + void _internal_set_support_wifi_hotspot_client(bool value); + + public: + // optional bool support_wifi_aware_publisher = 5; + bool has_support_wifi_aware_publisher() const; + void clear_support_wifi_aware_publisher() ; + bool support_wifi_aware_publisher() const; + void set_support_wifi_aware_publisher(bool value); + + private: + bool _internal_support_wifi_aware_publisher() const; + void _internal_set_support_wifi_aware_publisher(bool value); + + public: + // optional bool support_wifi_aware_subscriber = 6; + bool has_support_wifi_aware_subscriber() const; + void clear_support_wifi_aware_subscriber() ; + bool support_wifi_aware_subscriber() const; + void set_support_wifi_aware_subscriber(bool value); + + private: + bool _internal_support_wifi_aware_subscriber() const; + void _internal_set_support_wifi_aware_subscriber(bool value); + + public: + // optional bool support_awdl_publisher = 7; + bool has_support_awdl_publisher() const; + void clear_support_awdl_publisher() ; + bool support_awdl_publisher() const; + void set_support_awdl_publisher(bool value); + + private: + bool _internal_support_awdl_publisher() const; + void _internal_set_support_awdl_publisher(bool value); + + public: + // optional bool support_awdl_subscriber = 8; + bool has_support_awdl_subscriber() const; + void clear_support_awdl_subscriber() ; + bool support_awdl_subscriber() const; + void set_support_awdl_subscriber(bool value); + + private: + bool _internal_support_awdl_subscriber() const; + void _internal_set_support_awdl_subscriber(bool value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.MediumRole) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MediumRole& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool support_wifi_direct_group_owner_; + bool support_wifi_direct_group_client_; + bool support_wifi_hotspot_host_; + bool support_wifi_hotspot_client_; + bool support_wifi_aware_publisher_; + bool support_wifi_aware_subscriber_; + bool support_awdl_publisher_; + bool support_awdl_subscriber_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<39> MediumRole_class_data_; +// ------------------------------------------------------------------- + +class LocationStandard final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationStandard) */ { + public: + inline LocationStandard() : LocationStandard(nullptr) {} + ~LocationStandard() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LocationStandard* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LocationStandard)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LocationStandard(::google::protobuf::internal::ConstantInitialized); + + inline LocationStandard(const LocationStandard& from) : LocationStandard(nullptr, from) {} + inline LocationStandard(LocationStandard&& from) noexcept + : LocationStandard(nullptr, ::std::move(from)) {} + inline LocationStandard& operator=(const LocationStandard& from) { + CopyFrom(from); + return *this; + } + inline LocationStandard& operator=(LocationStandard&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const LocationStandard& default_instance() { + return *reinterpret_cast( + &_LocationStandard_default_instance_); + } + static constexpr int kIndexInFileMessages = 38; + friend void swap(LocationStandard& a, LocationStandard& b) { a.Swap(&b); } + inline void Swap(LocationStandard* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LocationStandard* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocationStandard* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const LocationStandard& from); + void MergeFrom(const LocationStandard& from) { LocationStandard::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LocationStandard* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.LocationStandard"; } + + explicit LocationStandard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LocationStandard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocationStandard& from); + LocationStandard( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocationStandard&& from) noexcept + : LocationStandard(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Format = LocationStandard_Format; + static constexpr Format UNKNOWN = LocationStandard_Format_UNKNOWN; + static constexpr Format E164_CALLING = LocationStandard_Format_E164_CALLING; + static constexpr Format ISO_3166_1_ALPHA_2 = LocationStandard_Format_ISO_3166_1_ALPHA_2; + static inline bool Format_IsValid(int value) { + return LocationStandard_Format_IsValid(value); + } + static constexpr Format Format_MIN = LocationStandard_Format_Format_MIN; + static constexpr Format Format_MAX = LocationStandard_Format_Format_MAX; + static constexpr int Format_ARRAYSIZE = LocationStandard_Format_Format_ARRAYSIZE; + template + static inline const ::std::string& Format_Name(T value) { + return LocationStandard_Format_Name(value); + } + static inline bool Format_Parse( + ::absl::string_view name, Format* PROTOBUF_NONNULL value) { + return LocationStandard_Format_Parse(name, value); + } + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationStandard) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LocationStandard& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<45> LocationStandard_class_data_; +// ------------------------------------------------------------------- + +class LocationHint final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationHint) */ { + public: + inline LocationHint() : LocationHint(nullptr) {} + ~LocationHint() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LocationHint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LocationHint)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LocationHint(::google::protobuf::internal::ConstantInitialized); + + inline LocationHint(const LocationHint& from) : LocationHint(nullptr, from) {} + inline LocationHint(LocationHint&& from) noexcept + : LocationHint(nullptr, ::std::move(from)) {} + inline LocationHint& operator=(const LocationHint& from) { + CopyFrom(from); + return *this; + } + inline LocationHint& operator=(LocationHint&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const LocationHint& default_instance() { + return *reinterpret_cast( + &_LocationHint_default_instance_); + } + static constexpr int kIndexInFileMessages = 37; + friend void swap(LocationHint& a, LocationHint& b) { a.Swap(&b); } + inline void Swap(LocationHint* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LocationHint* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LocationHint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const LocationHint& from); + void MergeFrom(const LocationHint& from) { LocationHint::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LocationHint* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.LocationHint"; } + + explicit LocationHint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LocationHint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocationHint& from); + LocationHint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocationHint&& from) noexcept + : LocationHint(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kLocationFieldNumber = 1, + kFormatFieldNumber = 2, + }; + // optional string location = 1; + bool has_location() const; + void clear_location() ; + const ::std::string& location() const; + template + void set_location(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_location(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_location(); + void set_allocated_location(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_location() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_location(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_location(); + + public: + // optional .location.nearby.connections.LocationStandard.Format format = 2; + bool has_format() const; + void clear_format() ; + ::location::nearby::connections::LocationStandard_Format format() const; + void set_format(::location::nearby::connections::LocationStandard_Format value); + + private: + ::location::nearby::connections::LocationStandard_Format _internal_format() const; + void _internal_set_format(::location::nearby::connections::LocationStandard_Format value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationHint) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LocationHint& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr location_; + int format_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<41> LocationHint_class_data_; +// ------------------------------------------------------------------- + +class KeepAliveFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.KeepAliveFrame) */ { + public: + inline KeepAliveFrame() : KeepAliveFrame(nullptr) {} + ~KeepAliveFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(KeepAliveFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(KeepAliveFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR KeepAliveFrame(::google::protobuf::internal::ConstantInitialized); + + inline KeepAliveFrame(const KeepAliveFrame& from) : KeepAliveFrame(nullptr, from) {} + inline KeepAliveFrame(KeepAliveFrame&& from) noexcept + : KeepAliveFrame(nullptr, ::std::move(from)) {} + inline KeepAliveFrame& operator=(const KeepAliveFrame& from) { + CopyFrom(from); + return *this; + } + inline KeepAliveFrame& operator=(KeepAliveFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const KeepAliveFrame& default_instance() { + return *reinterpret_cast( + &_KeepAliveFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 23; + friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) { a.Swap(&b); } + inline void Swap(KeepAliveFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KeepAliveFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + KeepAliveFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const KeepAliveFrame& from); + void MergeFrom(const KeepAliveFrame& from) { KeepAliveFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(KeepAliveFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.KeepAliveFrame"; } + + explicit KeepAliveFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + KeepAliveFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeepAliveFrame& from); + KeepAliveFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, KeepAliveFrame&& from) noexcept + : KeepAliveFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAckFieldNumber = 1, + kSeqNumFieldNumber = 2, + }; + // optional bool ack = 1; + bool has_ack() const; + void clear_ack() ; + bool ack() const; + void set_ack(bool value); + + private: + bool _internal_ack() const; + void _internal_set_ack(bool value); + + public: + // optional uint32 seq_num = 2; + bool has_seq_num() const; + void clear_seq_num() ; + ::uint32_t seq_num() const; + void set_seq_num(::uint32_t value); + + private: + ::uint32_t _internal_seq_num() const; + void _internal_set_seq_num(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.KeepAliveFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const KeepAliveFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool ack_; + ::uint32_t seq_num_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> KeepAliveFrame_class_data_; +// ------------------------------------------------------------------- + +class DisconnectionFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.DisconnectionFrame) */ { + public: + inline DisconnectionFrame() : DisconnectionFrame(nullptr) {} + ~DisconnectionFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisconnectionFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisconnectionFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisconnectionFrame(::google::protobuf::internal::ConstantInitialized); + + inline DisconnectionFrame(const DisconnectionFrame& from) : DisconnectionFrame(nullptr, from) {} + inline DisconnectionFrame(DisconnectionFrame&& from) noexcept + : DisconnectionFrame(nullptr, ::std::move(from)) {} + inline DisconnectionFrame& operator=(const DisconnectionFrame& from) { + CopyFrom(from); + return *this; + } + inline DisconnectionFrame& operator=(DisconnectionFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DisconnectionFrame& default_instance() { + return *reinterpret_cast( + &_DisconnectionFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 24; + friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { a.Swap(&b); } + inline void Swap(DisconnectionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DisconnectionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisconnectionFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DisconnectionFrame& from); + void MergeFrom(const DisconnectionFrame& from) { DisconnectionFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DisconnectionFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.DisconnectionFrame"; } + + explicit DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectionFrame& from); + DisconnectionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DisconnectionFrame&& from) noexcept + : DisconnectionFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRequestSafeToDisconnectFieldNumber = 1, + kAckSafeToDisconnectFieldNumber = 2, + }; + // optional bool request_safe_to_disconnect = 1; + bool has_request_safe_to_disconnect() const; + void clear_request_safe_to_disconnect() ; + bool request_safe_to_disconnect() const; + void set_request_safe_to_disconnect(bool value); + + private: + bool _internal_request_safe_to_disconnect() const; + void _internal_set_request_safe_to_disconnect(bool value); + + public: + // optional bool ack_safe_to_disconnect = 2; + bool has_ack_safe_to_disconnect() const; + void clear_ack_safe_to_disconnect() ; + bool ack_safe_to_disconnect() const; + void set_ack_safe_to_disconnect(bool value); + + private: + bool _internal_ack_safe_to_disconnect() const; + void _internal_set_ack_safe_to_disconnect(bool value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.DisconnectionFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DisconnectionFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool request_safe_to_disconnect_; + bool ack_safe_to_disconnect_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<47> DisconnectionFrame_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsDevice final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionsDevice) */ { + public: + inline ConnectionsDevice() : ConnectionsDevice(nullptr) {} + ~ConnectionsDevice() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsDevice* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsDevice)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsDevice(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsDevice(const ConnectionsDevice& from) : ConnectionsDevice(nullptr, from) {} + inline ConnectionsDevice(ConnectionsDevice&& from) noexcept + : ConnectionsDevice(nullptr, ::std::move(from)) {} + inline ConnectionsDevice& operator=(const ConnectionsDevice& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsDevice& operator=(ConnectionsDevice&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsDevice& default_instance() { + return *reinterpret_cast( + &_ConnectionsDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = 40; + friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) { a.Swap(&b); } + inline void Swap(ConnectionsDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsDevice* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsDevice& from); + void MergeFrom(const ConnectionsDevice& from) { ConnectionsDevice::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsDevice* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.ConnectionsDevice"; } + + explicit ConnectionsDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsDevice& from); + ConnectionsDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsDevice&& from) noexcept + : ConnectionsDevice(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEndpointIdFieldNumber = 1, + kConnectivityInfoListFieldNumber = 3, + kEndpointInfoFieldNumber = 4, + kEndpointTypeFieldNumber = 2, + }; + // optional string endpoint_id = 1; + bool has_endpoint_id() const; + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: + // optional bytes connectivity_info_list = 3; + bool has_connectivity_info_list() const; + void clear_connectivity_info_list() ; + const ::std::string& connectivity_info_list() const; + template + void set_connectivity_info_list(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connectivity_info_list(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connectivity_info_list(); + void set_allocated_connectivity_info_list(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connectivity_info_list() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connectivity_info_list(); + + public: + // optional bytes endpoint_info = 4; + bool has_endpoint_info() const; + void clear_endpoint_info() ; + const ::std::string& endpoint_info() const; + template + void set_endpoint_info(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_info(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_info(); + void set_allocated_endpoint_info(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_endpoint_info() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_info(); + + public: + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + bool has_endpoint_type() const; + void clear_endpoint_type() ; + ::location::nearby::connections::EndpointType endpoint_type() const; + void set_endpoint_type(::location::nearby::connections::EndpointType value); + + private: + ::location::nearby::connections::EndpointType _internal_endpoint_type() const; + void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionsDevice) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsDevice& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr connectivity_info_list_; + ::google::protobuf::internal::ArenaStringPtr endpoint_info_; + int endpoint_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<46> ConnectionsDevice_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeRetryFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeRetryFrame) */ { + public: + inline BandwidthUpgradeRetryFrame() : BandwidthUpgradeRetryFrame(nullptr) {} + ~BandwidthUpgradeRetryFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeRetryFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeRetryFrame(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeRetryFrame(const BandwidthUpgradeRetryFrame& from) : BandwidthUpgradeRetryFrame(nullptr, from) {} + inline BandwidthUpgradeRetryFrame(BandwidthUpgradeRetryFrame&& from) noexcept + : BandwidthUpgradeRetryFrame(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeRetryFrame& operator=(const BandwidthUpgradeRetryFrame& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeRetryFrame& operator=(BandwidthUpgradeRetryFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeRetryFrame& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeRetryFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 22; + friend void swap(BandwidthUpgradeRetryFrame& a, BandwidthUpgradeRetryFrame& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeRetryFrame& from); + void MergeFrom(const BandwidthUpgradeRetryFrame& from) { BandwidthUpgradeRetryFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeRetryFrame"; } + + explicit BandwidthUpgradeRetryFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeRetryFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeRetryFrame& from); + BandwidthUpgradeRetryFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeRetryFrame&& from) noexcept + : BandwidthUpgradeRetryFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Medium = BandwidthUpgradeRetryFrame_Medium; + static constexpr Medium UNKNOWN_MEDIUM = BandwidthUpgradeRetryFrame_Medium_UNKNOWN_MEDIUM; + static constexpr Medium BLUETOOTH = BandwidthUpgradeRetryFrame_Medium_BLUETOOTH; + static constexpr Medium WIFI_HOTSPOT = BandwidthUpgradeRetryFrame_Medium_WIFI_HOTSPOT; + static constexpr Medium BLE = BandwidthUpgradeRetryFrame_Medium_BLE; + static constexpr Medium WIFI_LAN = BandwidthUpgradeRetryFrame_Medium_WIFI_LAN; + static constexpr Medium WIFI_AWARE = BandwidthUpgradeRetryFrame_Medium_WIFI_AWARE; + static constexpr Medium NFC = BandwidthUpgradeRetryFrame_Medium_NFC; + static constexpr Medium WIFI_DIRECT = BandwidthUpgradeRetryFrame_Medium_WIFI_DIRECT; + static constexpr Medium WEB_RTC = BandwidthUpgradeRetryFrame_Medium_WEB_RTC; + static constexpr Medium BLE_L2CAP = BandwidthUpgradeRetryFrame_Medium_BLE_L2CAP; + static constexpr Medium USB = BandwidthUpgradeRetryFrame_Medium_USB; + static constexpr Medium WEB_RTC_NON_CELLULAR = BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR; + static constexpr Medium AWDL = BandwidthUpgradeRetryFrame_Medium_AWDL; + static inline bool Medium_IsValid(int value) { + return BandwidthUpgradeRetryFrame_Medium_IsValid(value); + } + static constexpr Medium Medium_MIN = BandwidthUpgradeRetryFrame_Medium_Medium_MIN; + static constexpr Medium Medium_MAX = BandwidthUpgradeRetryFrame_Medium_Medium_MAX; + static constexpr int Medium_ARRAYSIZE = BandwidthUpgradeRetryFrame_Medium_Medium_ARRAYSIZE; + template + static inline const ::std::string& Medium_Name(T value) { + return BandwidthUpgradeRetryFrame_Medium_Name(value); + } + static inline bool Medium_Parse( + ::absl::string_view name, Medium* PROTOBUF_NONNULL value) { + return BandwidthUpgradeRetryFrame_Medium_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kSupportedMediumFieldNumber = 1, + kIsRequestFieldNumber = 2, + }; + // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; + int supported_medium_size() const; + private: + int _internal_supported_medium_size() const; + + public: + void clear_supported_medium() ; + public: + ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium supported_medium(int index) const; + void set_supported_medium(int index, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value); + void add_supported_medium(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value); + const ::google::protobuf::RepeatedField& supported_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_supported_medium(); + + private: + const ::google::protobuf::RepeatedField& _internal_supported_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_supported_medium(); + + public: + // optional bool is_request = 2; + bool has_is_request() const; + void clear_is_request() ; + bool is_request() const; + void set_is_request(bool value); + + private: + bool _internal_is_request() const; + void _internal_set_is_request(bool value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeRetryFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeRetryFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField supported_medium_; + bool is_request_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<55> BandwidthUpgradeRetryFrame_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSsidFieldNumber = 1, + kPasswordFieldNumber = 2, + kGatewayFieldNumber = 5, + kIpV6AddressFieldNumber = 6, + kServiceNameFieldNumber = 7, + kPinFieldNumber = 8, + kPortFieldNumber = 3, + kFrequencyFieldNumber = 4, + }; + // optional string ssid = 1; + bool has_ssid() const; + void clear_ssid() ; + const ::std::string& ssid() const; + template + void set_ssid(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ssid(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ssid(); + void set_allocated_ssid(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ssid() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ssid(); + + public: + // optional string password = 2; + bool has_password() const; + void clear_password() ; + const ::std::string& password() const; + template + void set_password(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_password(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_password(); + void set_allocated_password(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_password() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_password(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_password(); + + public: + // optional string gateway = 5 [default = "0.0.0.0"]; + bool has_gateway() const; + void clear_gateway() ; + const ::std::string& gateway() const; + template + void set_gateway(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_gateway(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_gateway(); + void set_allocated_gateway(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_gateway() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_gateway(); + + public: + // optional bytes ip_v6_address = 6; + bool has_ip_v6_address() const; + void clear_ip_v6_address() ; + const ::std::string& ip_v6_address() const; + template + void set_ip_v6_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ip_v6_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ip_v6_address(); + void set_allocated_ip_v6_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ip_v6_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ip_v6_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ip_v6_address(); + + public: + // optional string service_name = 7; + bool has_service_name() const; + void clear_service_name() ; + const ::std::string& service_name() const; + template + void set_service_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_name(); + void set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_name(); + + public: + // optional string pin = 8; + bool has_pin() const; + void clear_pin() ; + const ::std::string& pin() const; + template + void set_pin(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_pin(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_pin(); + void set_allocated_pin(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_pin() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_pin(); + + public: + // optional int32 port = 3; + bool has_port() const; + void clear_port() ; + ::int32_t port() const; + void set_port(::int32_t value); + + private: + ::int32_t _internal_port() const; + void _internal_set_port(::int32_t value); + + public: + // optional int32 frequency = 4; + bool has_frequency() const; + void clear_frequency() ; + ::int32_t frequency() const; + void set_frequency(::int32_t value); + + private: + ::int32_t _internal_frequency() const; + void _internal_set_frequency(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr ssid_; + ::google::protobuf::internal::ArenaStringPtr password_; + static const ::google::protobuf::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; + ::google::protobuf::internal::ArenaStringPtr gateway_; + ::google::protobuf::internal::ArenaStringPtr ip_v6_address_; + ::google::protobuf::internal::ArenaStringPtr service_name_; + ::google::protobuf::internal::ArenaStringPtr pin_; + ::int32_t port_; + ::int32_t frequency_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<99> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kServiceIdFieldNumber = 1, + kServiceInfoFieldNumber = 2, + kPasswordFieldNumber = 3, + }; + // optional string service_id = 1; + bool has_service_id() const; + void clear_service_id() ; + const ::std::string& service_id() const; + template + void set_service_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id(); + void set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id(); + + public: + // optional bytes service_info = 2; + bool has_service_info() const; + void clear_service_info() ; + const ::std::string& service_info() const; + template + void set_service_info(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_info(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_info(); + void set_allocated_service_info(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_info() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_info(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_info(); + + public: + // optional string password = 3; + bool has_password() const; + void clear_password() ; + const ::std::string& password() const; + template + void set_password(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_password(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_password(); + void set_allocated_password(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_password() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_password(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_password(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_; + ::google::protobuf::internal::ArenaStringPtr service_info_; + ::google::protobuf::internal::ArenaStringPtr password_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kServiceNameFieldNumber = 1, + kMacAddressFieldNumber = 2, + }; + // optional string service_name = 1; + bool has_service_name() const; + void clear_service_name() ; + const ::std::string& service_name() const; + template + void set_service_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_name(); + void set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_name(); + + public: + // optional string mac_address = 2; + bool has_mac_address() const; + void clear_mac_address() ; + const ::std::string& mac_address() const; + template + void set_mac_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_mac_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mac_address(); + void set_allocated_mac_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_mac_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mac_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mac_address(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_name_; + ::google::protobuf::internal::ArenaStringPtr mac_address_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<98> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kServiceNameFieldNumber = 1, + kServiceTypeFieldNumber = 2, + kPasswordFieldNumber = 3, + }; + // optional string service_name = 1; + bool has_service_name() const; + void clear_service_name() ; + const ::std::string& service_name() const; + template + void set_service_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_name(); + void set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_name(); + + public: + // optional string service_type = 2; + bool has_service_type() const; + void clear_service_type() ; + const ::std::string& service_type() const; + template + void set_service_type(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_type(); + void set_allocated_service_type(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_type(); + + public: + // optional string password = 3; + bool has_password() const; + void clear_password() ; + const ::std::string& password() const; + template + void set_password(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_password(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_password(); + void set_allocated_password(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_password() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_password(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_password(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_name_; + ::google::protobuf::internal::ArenaStringPtr service_type_; + ::google::protobuf::internal::ArenaStringPtr password_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<93> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) */ { + public: + inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept + : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); + } + static constexpr int kIndexInFileMessages = 18; + friend void swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& a, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) { BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel"; } + + explicit BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from); + BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept + : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStaFrequencyFieldNumber = 1, + }; + // optional int32 sta_frequency = 1; + bool has_sta_frequency() const; + void clear_sta_frequency() ; + ::int32_t sta_frequency() const; + void set_sta_frequency(::int32_t value); + + private: + ::int32_t _internal_sta_frequency() const; + void _internal_set_sta_frequency(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t sta_frequency_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<85> BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) */ { + public: + inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept + : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); + } + static constexpr int kIndexInFileMessages = 20; + friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck"; } + + explicit BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); + BandwidthUpgradeNegotiationFrame_ClientIntroductionAck( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept + : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<83> BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) */ { + public: + inline BandwidthUpgradeNegotiationFrame_ClientIntroduction() : BandwidthUpgradeNegotiationFrame_ClientIntroduction(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_ClientIntroduction() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_ClientIntroduction)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_ClientIntroduction(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_ClientIntroduction(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) : BandwidthUpgradeNegotiationFrame_ClientIntroduction(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_ClientIntroduction(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept + : BandwidthUpgradeNegotiationFrame_ClientIntroduction(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_ClientIntroduction& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); + } + static constexpr int kIndexInFileMessages = 19; + friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction"; } + + explicit BandwidthUpgradeNegotiationFrame_ClientIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_ClientIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); + BandwidthUpgradeNegotiationFrame_ClientIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept + : BandwidthUpgradeNegotiationFrame_ClientIntroduction(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEndpointIdFieldNumber = 1, + kLastEndpointIdFieldNumber = 3, + kSupportsDisablingEncryptionFieldNumber = 2, + }; + // optional string endpoint_id = 1; + bool has_endpoint_id() const; + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: + // optional string last_endpoint_id = 3; + bool has_last_endpoint_id() const; + void clear_last_endpoint_id() ; + const ::std::string& last_endpoint_id() const; + template + void set_last_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_last_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_last_endpoint_id(); + void set_allocated_last_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_last_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_last_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_last_endpoint_id(); + + public: + // optional bool supports_disabling_encryption = 2; + bool has_supports_disabling_encryption() const; + void clear_supports_disabling_encryption() ; + bool supports_disabling_encryption() const; + void set_supports_disabling_encryption(bool value); + + private: + bool _internal_supports_disabling_encryption() const; + void _internal_set_supports_disabling_encryption(bool value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr last_endpoint_id_; + bool supports_disabling_encryption_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<80> BandwidthUpgradeNegotiationFrame_ClientIntroduction_class_data_; +// ------------------------------------------------------------------- + +class AvailableChannels final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.AvailableChannels) */ { + public: + inline AvailableChannels() : AvailableChannels(nullptr) {} + ~AvailableChannels() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AvailableChannels* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AvailableChannels)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AvailableChannels(::google::protobuf::internal::ConstantInitialized); + + inline AvailableChannels(const AvailableChannels& from) : AvailableChannels(nullptr, from) {} + inline AvailableChannels(AvailableChannels&& from) noexcept + : AvailableChannels(nullptr, ::std::move(from)) {} + inline AvailableChannels& operator=(const AvailableChannels& from) { + CopyFrom(from); + return *this; + } + inline AvailableChannels& operator=(AvailableChannels&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AvailableChannels& default_instance() { + return *reinterpret_cast( + &_AvailableChannels_default_instance_); + } + static constexpr int kIndexInFileMessages = 31; + friend void swap(AvailableChannels& a, AvailableChannels& b) { a.Swap(&b); } + inline void Swap(AvailableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AvailableChannels* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AvailableChannels* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AvailableChannels& from); + void MergeFrom(const AvailableChannels& from) { AvailableChannels::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AvailableChannels* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.AvailableChannels"; } + + explicit AvailableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AvailableChannels(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AvailableChannels& from); + AvailableChannels( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AvailableChannels&& from) noexcept + : AvailableChannels(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChannelsFieldNumber = 1, + }; + // repeated int32 channels = 1 [packed = true]; + int channels_size() const; + private: + int _internal_channels_size() const; + + public: + void clear_channels() ; + ::int32_t channels(int index) const; + void set_channels(int index, ::int32_t value); + void add_channels(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_channels(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_channels() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_channels(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.AvailableChannels) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AvailableChannels& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int32_t> channels_; + ::google::protobuf::internal::CachedSize _channels_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<46> AvailableChannels_class_data_; +// ------------------------------------------------------------------- + +class AutoResumeFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.AutoResumeFrame) */ { + public: + inline AutoResumeFrame() : AutoResumeFrame(nullptr) {} + ~AutoResumeFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AutoResumeFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AutoResumeFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AutoResumeFrame(::google::protobuf::internal::ConstantInitialized); + + inline AutoResumeFrame(const AutoResumeFrame& from) : AutoResumeFrame(nullptr, from) {} + inline AutoResumeFrame(AutoResumeFrame&& from) noexcept + : AutoResumeFrame(nullptr, ::std::move(from)) {} + inline AutoResumeFrame& operator=(const AutoResumeFrame& from) { + CopyFrom(from); + return *this; + } + inline AutoResumeFrame& operator=(AutoResumeFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AutoResumeFrame& default_instance() { + return *reinterpret_cast( + &_AutoResumeFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 28; + friend void swap(AutoResumeFrame& a, AutoResumeFrame& b) { a.Swap(&b); } + inline void Swap(AutoResumeFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AutoResumeFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AutoResumeFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AutoResumeFrame& from); + void MergeFrom(const AutoResumeFrame& from) { AutoResumeFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AutoResumeFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.AutoResumeFrame"; } + + explicit AutoResumeFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AutoResumeFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AutoResumeFrame& from); + AutoResumeFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AutoResumeFrame&& from) noexcept + : AutoResumeFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using EventType = AutoResumeFrame_EventType; + static constexpr EventType UNKNOWN_AUTO_RESUME_EVENT_TYPE = AutoResumeFrame_EventType_UNKNOWN_AUTO_RESUME_EVENT_TYPE; + static constexpr EventType PAYLOAD_RESUME_TRANSFER_START = AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_START; + static constexpr EventType PAYLOAD_RESUME_TRANSFER_ACK = AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_ACK; + static inline bool EventType_IsValid(int value) { + return AutoResumeFrame_EventType_IsValid(value); + } + static constexpr EventType EventType_MIN = AutoResumeFrame_EventType_EventType_MIN; + static constexpr EventType EventType_MAX = AutoResumeFrame_EventType_EventType_MAX; + static constexpr int EventType_ARRAYSIZE = AutoResumeFrame_EventType_EventType_ARRAYSIZE; + template + static inline const ::std::string& EventType_Name(T value) { + return AutoResumeFrame_EventType_Name(value); + } + static inline bool EventType_Parse( + ::absl::string_view name, EventType* PROTOBUF_NONNULL value) { + return AutoResumeFrame_EventType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kPendingPayloadIdFieldNumber = 2, + kEventTypeFieldNumber = 1, + kNextPayloadChunkIndexFieldNumber = 3, + kVersionFieldNumber = 4, + }; + // optional int64 pending_payload_id = 2; + bool has_pending_payload_id() const; + void clear_pending_payload_id() ; + ::int64_t pending_payload_id() const; + void set_pending_payload_id(::int64_t value); + + private: + ::int64_t _internal_pending_payload_id() const; + void _internal_set_pending_payload_id(::int64_t value); + + public: + // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; + bool has_event_type() const; + void clear_event_type() ; + ::location::nearby::connections::AutoResumeFrame_EventType event_type() const; + void set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value); + + private: + ::location::nearby::connections::AutoResumeFrame_EventType _internal_event_type() const; + void _internal_set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value); + + public: + // optional int32 next_payload_chunk_index = 3; + bool has_next_payload_chunk_index() const; + void clear_next_payload_chunk_index() ; + ::int32_t next_payload_chunk_index() const; + void set_next_payload_chunk_index(::int32_t value); + + private: + ::int32_t _internal_next_payload_chunk_index() const; + void _internal_set_next_payload_chunk_index(::int32_t value); + + public: + // optional int32 version = 4; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.AutoResumeFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AutoResumeFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t pending_payload_id_; + int event_type_; + ::int32_t next_payload_chunk_index_; + ::int32_t version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<44> AutoResumeFrame_class_data_; +// ------------------------------------------------------------------- + +class AutoReconnectFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.AutoReconnectFrame) */ { + public: + inline AutoReconnectFrame() : AutoReconnectFrame(nullptr) {} + ~AutoReconnectFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AutoReconnectFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AutoReconnectFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AutoReconnectFrame(::google::protobuf::internal::ConstantInitialized); + + inline AutoReconnectFrame(const AutoReconnectFrame& from) : AutoReconnectFrame(nullptr, from) {} + inline AutoReconnectFrame(AutoReconnectFrame&& from) noexcept + : AutoReconnectFrame(nullptr, ::std::move(from)) {} + inline AutoReconnectFrame& operator=(const AutoReconnectFrame& from) { + CopyFrom(from); + return *this; + } + inline AutoReconnectFrame& operator=(AutoReconnectFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AutoReconnectFrame& default_instance() { + return *reinterpret_cast( + &_AutoReconnectFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 29; + friend void swap(AutoReconnectFrame& a, AutoReconnectFrame& b) { a.Swap(&b); } + inline void Swap(AutoReconnectFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AutoReconnectFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AutoReconnectFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AutoReconnectFrame& from); + void MergeFrom(const AutoReconnectFrame& from) { AutoReconnectFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AutoReconnectFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.AutoReconnectFrame"; } + + explicit AutoReconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AutoReconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AutoReconnectFrame& from); + AutoReconnectFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AutoReconnectFrame&& from) noexcept + : AutoReconnectFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using EventType = AutoReconnectFrame_EventType; + static constexpr EventType UNKNOWN_EVENT_TYPE = AutoReconnectFrame_EventType_UNKNOWN_EVENT_TYPE; + static constexpr EventType CLIENT_INTRODUCTION = AutoReconnectFrame_EventType_CLIENT_INTRODUCTION; + static constexpr EventType CLIENT_INTRODUCTION_ACK = AutoReconnectFrame_EventType_CLIENT_INTRODUCTION_ACK; + static inline bool EventType_IsValid(int value) { + return AutoReconnectFrame_EventType_IsValid(value); + } + static constexpr EventType EventType_MIN = AutoReconnectFrame_EventType_EventType_MIN; + static constexpr EventType EventType_MAX = AutoReconnectFrame_EventType_EventType_MAX; + static constexpr int EventType_ARRAYSIZE = AutoReconnectFrame_EventType_EventType_ARRAYSIZE; + template + static inline const ::std::string& EventType_Name(T value) { + return AutoReconnectFrame_EventType_Name(value); + } + static inline bool EventType_Parse( + ::absl::string_view name, EventType* PROTOBUF_NONNULL value) { + return AutoReconnectFrame_EventType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kEndpointIdFieldNumber = 1, + kLastEndpointIdFieldNumber = 3, + kEventTypeFieldNumber = 2, + }; + // optional string endpoint_id = 1; + bool has_endpoint_id() const; + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: + // optional string last_endpoint_id = 3; + bool has_last_endpoint_id() const; + void clear_last_endpoint_id() ; + const ::std::string& last_endpoint_id() const; + template + void set_last_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_last_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_last_endpoint_id(); + void set_allocated_last_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_last_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_last_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_last_endpoint_id(); + + public: + // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; + bool has_event_type() const; + void clear_event_type() ; + ::location::nearby::connections::AutoReconnectFrame_EventType event_type() const; + void set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value); + + private: + ::location::nearby::connections::AutoReconnectFrame_EventType _internal_event_type() const; + void _internal_set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.AutoReconnectFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AutoReconnectFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr last_endpoint_id_; + int event_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<47> AutoReconnectFrame_class_data_; +// ------------------------------------------------------------------- + +class AuthenticationResultFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationResultFrame) */ { + public: + inline AuthenticationResultFrame() : AuthenticationResultFrame(nullptr) {} + ~AuthenticationResultFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AuthenticationResultFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AuthenticationResultFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AuthenticationResultFrame(::google::protobuf::internal::ConstantInitialized); + + inline AuthenticationResultFrame(const AuthenticationResultFrame& from) : AuthenticationResultFrame(nullptr, from) {} + inline AuthenticationResultFrame(AuthenticationResultFrame&& from) noexcept + : AuthenticationResultFrame(nullptr, ::std::move(from)) {} + inline AuthenticationResultFrame& operator=(const AuthenticationResultFrame& from) { + CopyFrom(from); + return *this; + } + inline AuthenticationResultFrame& operator=(AuthenticationResultFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AuthenticationResultFrame& default_instance() { + return *reinterpret_cast( + &_AuthenticationResultFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 27; + friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) { a.Swap(&b); } + inline void Swap(AuthenticationResultFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuthenticationResultFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthenticationResultFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AuthenticationResultFrame& from); + void MergeFrom(const AuthenticationResultFrame& from) { AuthenticationResultFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AuthenticationResultFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.AuthenticationResultFrame"; } + + explicit AuthenticationResultFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AuthenticationResultFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AuthenticationResultFrame& from); + AuthenticationResultFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AuthenticationResultFrame&& from) noexcept + : AuthenticationResultFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kResultFieldNumber = 1, + }; + // optional int32 result = 1; + bool has_result() const; + void clear_result() ; + ::int32_t result() const; + void set_result(::int32_t value); + + private: + ::int32_t _internal_result() const; + void _internal_set_result(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationResultFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AuthenticationResultFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<54> AuthenticationResultFrame_class_data_; +// ------------------------------------------------------------------- + +class AuthenticationMessageFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationMessageFrame) */ { + public: + inline AuthenticationMessageFrame() : AuthenticationMessageFrame(nullptr) {} + ~AuthenticationMessageFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AuthenticationMessageFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AuthenticationMessageFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AuthenticationMessageFrame(::google::protobuf::internal::ConstantInitialized); + + inline AuthenticationMessageFrame(const AuthenticationMessageFrame& from) : AuthenticationMessageFrame(nullptr, from) {} + inline AuthenticationMessageFrame(AuthenticationMessageFrame&& from) noexcept + : AuthenticationMessageFrame(nullptr, ::std::move(from)) {} + inline AuthenticationMessageFrame& operator=(const AuthenticationMessageFrame& from) { + CopyFrom(from); + return *this; + } + inline AuthenticationMessageFrame& operator=(AuthenticationMessageFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AuthenticationMessageFrame& default_instance() { + return *reinterpret_cast( + &_AuthenticationMessageFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 26; + friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) { a.Swap(&b); } + inline void Swap(AuthenticationMessageFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuthenticationMessageFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthenticationMessageFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AuthenticationMessageFrame& from); + void MergeFrom(const AuthenticationMessageFrame& from) { AuthenticationMessageFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AuthenticationMessageFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.AuthenticationMessageFrame"; } + + explicit AuthenticationMessageFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AuthenticationMessageFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AuthenticationMessageFrame& from); + AuthenticationMessageFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AuthenticationMessageFrame&& from) noexcept + : AuthenticationMessageFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAuthMessageFieldNumber = 1, + }; + // optional bytes auth_message = 1; + bool has_auth_message() const; + void clear_auth_message() ; + const ::std::string& auth_message() const; + template + void set_auth_message(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_auth_message(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_auth_message(); + void set_allocated_auth_message(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_auth_message() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_auth_message(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_auth_message(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationMessageFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AuthenticationMessageFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr auth_message_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<55> AuthenticationMessageFrame_class_data_; +// ------------------------------------------------------------------- + +class PayloadTransferFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame) */ { + public: + inline PayloadTransferFrame() : PayloadTransferFrame(nullptr) {} + ~PayloadTransferFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PayloadTransferFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PayloadTransferFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PayloadTransferFrame(::google::protobuf::internal::ConstantInitialized); + + inline PayloadTransferFrame(const PayloadTransferFrame& from) : PayloadTransferFrame(nullptr, from) {} + inline PayloadTransferFrame(PayloadTransferFrame&& from) noexcept + : PayloadTransferFrame(nullptr, ::std::move(from)) {} + inline PayloadTransferFrame& operator=(const PayloadTransferFrame& from) { + CopyFrom(from); + return *this; + } + inline PayloadTransferFrame& operator=(PayloadTransferFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PayloadTransferFrame& default_instance() { + return *reinterpret_cast( + &_PayloadTransferFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(PayloadTransferFrame& a, PayloadTransferFrame& b) { a.Swap(&b); } + inline void Swap(PayloadTransferFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PayloadTransferFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PayloadTransferFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PayloadTransferFrame& from); + void MergeFrom(const PayloadTransferFrame& from) { PayloadTransferFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PayloadTransferFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.PayloadTransferFrame"; } + + explicit PayloadTransferFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PayloadTransferFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PayloadTransferFrame& from); + PayloadTransferFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PayloadTransferFrame&& from) noexcept + : PayloadTransferFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using PayloadHeader = PayloadTransferFrame_PayloadHeader; + using PayloadChunk = PayloadTransferFrame_PayloadChunk; + using ControlMessage = PayloadTransferFrame_ControlMessage; + using PacketType = PayloadTransferFrame_PacketType; + static constexpr PacketType UNKNOWN_PACKET_TYPE = PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE; + static constexpr PacketType DATA = PayloadTransferFrame_PacketType_DATA; + static constexpr PacketType CONTROL = PayloadTransferFrame_PacketType_CONTROL; + static constexpr PacketType PAYLOAD_ACK = PayloadTransferFrame_PacketType_PAYLOAD_ACK; + static inline bool PacketType_IsValid(int value) { + return PayloadTransferFrame_PacketType_IsValid(value); + } + static constexpr PacketType PacketType_MIN = PayloadTransferFrame_PacketType_PacketType_MIN; + static constexpr PacketType PacketType_MAX = PayloadTransferFrame_PacketType_PacketType_MAX; + static constexpr int PacketType_ARRAYSIZE = PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE; + template + static inline const ::std::string& PacketType_Name(T value) { + return PayloadTransferFrame_PacketType_Name(value); + } + static inline bool PacketType_Parse( + ::absl::string_view name, PacketType* PROTOBUF_NONNULL value) { + return PayloadTransferFrame_PacketType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kPayloadHeaderFieldNumber = 2, + kPayloadChunkFieldNumber = 3, + kControlMessageFieldNumber = 4, + kPacketTypeFieldNumber = 1, + }; + // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; + bool has_payload_header() const; + void clear_payload_header() ; + const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header() const; + [[nodiscard]] ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE release_payload_header(); + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL mutable_payload_header(); + void set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE unsafe_arena_release_payload_header(); + + private: + const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& _internal_payload_header() const; + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL _internal_mutable_payload_header(); + + public: + // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; + bool has_payload_chunk() const; + void clear_payload_chunk() ; + const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk() const; + [[nodiscard]] ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE release_payload_chunk(); + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL mutable_payload_chunk(); + void set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE unsafe_arena_release_payload_chunk(); + + private: + const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& _internal_payload_chunk() const; + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL _internal_mutable_payload_chunk(); + + public: + // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; + bool has_control_message() const; + void clear_control_message() ; + const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& control_message() const; + [[nodiscard]] ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE release_control_message(); + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL mutable_control_message(); + void set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE unsafe_arena_release_control_message(); + + private: + const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& _internal_control_message() const; + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL _internal_mutable_control_message(); + + public: + // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; + bool has_packet_type() const; + void clear_packet_type() ; + ::location::nearby::connections::PayloadTransferFrame_PacketType packet_type() const; + void set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); + + private: + ::location::nearby::connections::PayloadTransferFrame_PacketType _internal_packet_type() const; + void _internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 4, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PayloadTransferFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE payload_header_; + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE payload_chunk_; + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE control_message_; + int packet_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<49> PayloadTransferFrame_class_data_; +// ------------------------------------------------------------------- + +class MediumMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.MediumMetadata) */ { + public: + inline MediumMetadata() : MediumMetadata(nullptr) {} + ~MediumMetadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MediumMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MediumMetadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR MediumMetadata(::google::protobuf::internal::ConstantInitialized); + + inline MediumMetadata(const MediumMetadata& from) : MediumMetadata(nullptr, from) {} + inline MediumMetadata(MediumMetadata&& from) noexcept + : MediumMetadata(nullptr, ::std::move(from)) {} + inline MediumMetadata& operator=(const MediumMetadata& from) { + CopyFrom(from); + return *this; + } + inline MediumMetadata& operator=(MediumMetadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const MediumMetadata& default_instance() { + return *reinterpret_cast( + &_MediumMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 30; + friend void swap(MediumMetadata& a, MediumMetadata& b) { a.Swap(&b); } + inline void Swap(MediumMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MediumMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MediumMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const MediumMetadata& from); + void MergeFrom(const MediumMetadata& from) { MediumMetadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MediumMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.MediumMetadata"; } + + explicit MediumMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MediumMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MediumMetadata& from); + MediumMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MediumMetadata&& from) noexcept + : MediumMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using WifiDirectAuthType = MediumMetadata_WifiDirectAuthType; + static constexpr WifiDirectAuthType WIFI_DIRECT_TYPE_UNKNOWN = MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_TYPE_UNKNOWN; + static constexpr WifiDirectAuthType WIFI_DIRECT_WITH_PASSWORD = MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PASSWORD; + static constexpr WifiDirectAuthType WIFI_DIRECT_WITH_PIN = MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PIN; + static inline bool WifiDirectAuthType_IsValid(int value) { + return MediumMetadata_WifiDirectAuthType_IsValid(value); + } + static constexpr WifiDirectAuthType WifiDirectAuthType_MIN = MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MIN; + static constexpr WifiDirectAuthType WifiDirectAuthType_MAX = MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MAX; + static constexpr int WifiDirectAuthType_ARRAYSIZE = MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_ARRAYSIZE; + template + static inline const ::std::string& WifiDirectAuthType_Name(T value) { + return MediumMetadata_WifiDirectAuthType_Name(value); + } + static inline bool WifiDirectAuthType_Parse( + ::absl::string_view name, WifiDirectAuthType* PROTOBUF_NONNULL value) { + return MediumMetadata_WifiDirectAuthType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kSupportedWifiDirectAuthTypesFieldNumber = 13, + kBssidFieldNumber = 2, + kIpAddressFieldNumber = 3, + kAvailableChannelsFieldNumber = 7, + kWifiDirectCliUsableChannelsFieldNumber = 8, + kWifiLanUsableChannelsFieldNumber = 9, + kWifiAwareUsableChannelsFieldNumber = 10, + kWifiHotspotStaUsableChannelsFieldNumber = 11, + kMediumRoleFieldNumber = 12, + kSupports5GhzFieldNumber = 1, + kSupports6GhzFieldNumber = 4, + kMobileRadioFieldNumber = 5, + kApFrequencyFieldNumber = 6, + }; + // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; + int supported_wifi_direct_auth_types_size() const; + private: + int _internal_supported_wifi_direct_auth_types_size() const; + + public: + void clear_supported_wifi_direct_auth_types() ; + public: + ::location::nearby::connections::MediumMetadata_WifiDirectAuthType supported_wifi_direct_auth_types(int index) const; + void set_supported_wifi_direct_auth_types(int index, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType value); + void add_supported_wifi_direct_auth_types(::location::nearby::connections::MediumMetadata_WifiDirectAuthType value); + const ::google::protobuf::RepeatedField& supported_wifi_direct_auth_types() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_supported_wifi_direct_auth_types(); + + private: + const ::google::protobuf::RepeatedField& _internal_supported_wifi_direct_auth_types() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_supported_wifi_direct_auth_types(); + + public: + // optional string bssid = 2; + bool has_bssid() const; + void clear_bssid() ; + const ::std::string& bssid() const; + template + void set_bssid(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bssid(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bssid(); + void set_allocated_bssid(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_bssid() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bssid(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bssid(); + + public: + // optional bytes ip_address = 3; + bool has_ip_address() const; + void clear_ip_address() ; + const ::std::string& ip_address() const; + template + void set_ip_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ip_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ip_address(); + void set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ip_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ip_address(); + + public: + // optional .location.nearby.connections.AvailableChannels available_channels = 7; + bool has_available_channels() const; + void clear_available_channels() ; + const ::location::nearby::connections::AvailableChannels& available_channels() const; + [[nodiscard]] ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE release_available_channels(); + ::location::nearby::connections::AvailableChannels* PROTOBUF_NONNULL mutable_available_channels(); + void set_allocated_available_channels(::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_available_channels(::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE value); + ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE unsafe_arena_release_available_channels(); + + private: + const ::location::nearby::connections::AvailableChannels& _internal_available_channels() const; + ::location::nearby::connections::AvailableChannels* PROTOBUF_NONNULL _internal_mutable_available_channels(); + + public: + // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; + bool has_wifi_direct_cli_usable_channels() const; + void clear_wifi_direct_cli_usable_channels() ; + const ::location::nearby::connections::WifiDirectCliUsableChannels& wifi_direct_cli_usable_channels() const; + [[nodiscard]] ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE release_wifi_direct_cli_usable_channels(); + ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NONNULL mutable_wifi_direct_cli_usable_channels(); + void set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE value); + ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE unsafe_arena_release_wifi_direct_cli_usable_channels(); + + private: + const ::location::nearby::connections::WifiDirectCliUsableChannels& _internal_wifi_direct_cli_usable_channels() const; + ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NONNULL _internal_mutable_wifi_direct_cli_usable_channels(); + + public: + // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; + bool has_wifi_lan_usable_channels() const; + void clear_wifi_lan_usable_channels() ; + const ::location::nearby::connections::WifiLanUsableChannels& wifi_lan_usable_channels() const; + [[nodiscard]] ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE release_wifi_lan_usable_channels(); + ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NONNULL mutable_wifi_lan_usable_channels(); + void set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE value); + ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE unsafe_arena_release_wifi_lan_usable_channels(); + + private: + const ::location::nearby::connections::WifiLanUsableChannels& _internal_wifi_lan_usable_channels() const; + ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NONNULL _internal_mutable_wifi_lan_usable_channels(); + + public: + // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; + bool has_wifi_aware_usable_channels() const; + void clear_wifi_aware_usable_channels() ; + const ::location::nearby::connections::WifiAwareUsableChannels& wifi_aware_usable_channels() const; + [[nodiscard]] ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE release_wifi_aware_usable_channels(); + ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NONNULL mutable_wifi_aware_usable_channels(); + void set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE value); + ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE unsafe_arena_release_wifi_aware_usable_channels(); + + private: + const ::location::nearby::connections::WifiAwareUsableChannels& _internal_wifi_aware_usable_channels() const; + ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NONNULL _internal_mutable_wifi_aware_usable_channels(); + + public: + // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; + bool has_wifi_hotspot_sta_usable_channels() const; + void clear_wifi_hotspot_sta_usable_channels() ; + const ::location::nearby::connections::WifiHotspotStaUsableChannels& wifi_hotspot_sta_usable_channels() const; + [[nodiscard]] ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE release_wifi_hotspot_sta_usable_channels(); + ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NONNULL mutable_wifi_hotspot_sta_usable_channels(); + void set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE value); + ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE unsafe_arena_release_wifi_hotspot_sta_usable_channels(); + + private: + const ::location::nearby::connections::WifiHotspotStaUsableChannels& _internal_wifi_hotspot_sta_usable_channels() const; + ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NONNULL _internal_mutable_wifi_hotspot_sta_usable_channels(); + + public: + // optional .location.nearby.connections.MediumRole medium_role = 12; + bool has_medium_role() const; + void clear_medium_role() ; + const ::location::nearby::connections::MediumRole& medium_role() const; + [[nodiscard]] ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE release_medium_role(); + ::location::nearby::connections::MediumRole* PROTOBUF_NONNULL mutable_medium_role(); + void set_allocated_medium_role(::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_medium_role(::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE value); + ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE unsafe_arena_release_medium_role(); + + private: + const ::location::nearby::connections::MediumRole& _internal_medium_role() const; + ::location::nearby::connections::MediumRole* PROTOBUF_NONNULL _internal_mutable_medium_role(); + + public: + // optional bool supports_5_ghz = 1; + bool has_supports_5_ghz() const; + void clear_supports_5_ghz() ; + bool supports_5_ghz() const; + void set_supports_5_ghz(bool value); + + private: + bool _internal_supports_5_ghz() const; + void _internal_set_supports_5_ghz(bool value); + + public: + // optional bool supports_6_ghz = 4; + bool has_supports_6_ghz() const; + void clear_supports_6_ghz() ; + bool supports_6_ghz() const; + void set_supports_6_ghz(bool value); + + private: + bool _internal_supports_6_ghz() const; + void _internal_set_supports_6_ghz(bool value); + + public: + // optional bool mobile_radio = 5; + bool has_mobile_radio() const; + void clear_mobile_radio() ; + bool mobile_radio() const; + void set_mobile_radio(bool value); + + private: + bool _internal_mobile_radio() const; + void _internal_set_mobile_radio(bool value); + + public: + // optional int32 ap_frequency = 6 [default = -1]; + bool has_ap_frequency() const; + void clear_ap_frequency() ; + ::int32_t ap_frequency() const; + void set_ap_frequency(::int32_t value); + + private: + ::int32_t _internal_ap_frequency() const; + void _internal_set_ap_frequency(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.MediumMetadata) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 13, + 7, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MediumMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField supported_wifi_direct_auth_types_; + ::google::protobuf::internal::CachedSize _supported_wifi_direct_auth_types_cached_byte_size_; + ::google::protobuf::internal::ArenaStringPtr bssid_; + ::google::protobuf::internal::ArenaStringPtr ip_address_; + ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE available_channels_; + ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE wifi_direct_cli_usable_channels_; + ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE wifi_lan_usable_channels_; + ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE wifi_aware_usable_channels_; + ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE wifi_hotspot_sta_usable_channels_; + ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE medium_role_; + bool supports_5_ghz_; + bool supports_6_ghz_; + bool mobile_radio_; + ::int32_t ap_frequency_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> MediumMetadata_class_data_; +// ------------------------------------------------------------------- + +class ConnectionResponseFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionResponseFrame) */ { + public: + inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {} + ~ConnectionResponseFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionResponseFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionResponseFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionResponseFrame(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionResponseFrame(const ConnectionResponseFrame& from) : ConnectionResponseFrame(nullptr, from) {} + inline ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept + : ConnectionResponseFrame(nullptr, ::std::move(from)) {} + inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) { + CopyFrom(from); + return *this; + } + inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionResponseFrame& default_instance() { + return *reinterpret_cast( + &_ConnectionResponseFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) { a.Swap(&b); } + inline void Swap(ConnectionResponseFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionResponseFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionResponseFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionResponseFrame& from); + void MergeFrom(const ConnectionResponseFrame& from) { ConnectionResponseFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionResponseFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.ConnectionResponseFrame"; } + + explicit ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionResponseFrame& from); + ConnectionResponseFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionResponseFrame&& from) noexcept + : ConnectionResponseFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using ResponseStatus = ConnectionResponseFrame_ResponseStatus; + static constexpr ResponseStatus UNKNOWN_RESPONSE_STATUS = ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS; + static constexpr ResponseStatus ACCEPT = ConnectionResponseFrame_ResponseStatus_ACCEPT; + static constexpr ResponseStatus REJECT = ConnectionResponseFrame_ResponseStatus_REJECT; + static inline bool ResponseStatus_IsValid(int value) { + return ConnectionResponseFrame_ResponseStatus_IsValid(value); + } + static constexpr ResponseStatus ResponseStatus_MIN = ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN; + static constexpr ResponseStatus ResponseStatus_MAX = ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX; + static constexpr int ResponseStatus_ARRAYSIZE = ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE; + template + static inline const ::std::string& ResponseStatus_Name(T value) { + return ConnectionResponseFrame_ResponseStatus_Name(value); + } + static inline bool ResponseStatus_Parse( + ::absl::string_view name, ResponseStatus* PROTOBUF_NONNULL value) { + return ConnectionResponseFrame_ResponseStatus_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kHandshakeDataFieldNumber = 2, + kOsInfoFieldNumber = 4, + kLocationHintFieldNumber = 8, + kStatusFieldNumber = 1, + kResponseFieldNumber = 3, + kMultiplexSocketBitmaskFieldNumber = 5, + kNearbyConnectionsVersionFieldNumber = 6, + kSafeToDisconnectVersionFieldNumber = 7, + kKeepAliveTimeoutMillisFieldNumber = 9, + }; + // optional bytes handshake_data = 2; + bool has_handshake_data() const; + void clear_handshake_data() ; + const ::std::string& handshake_data() const; + template + void set_handshake_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_handshake_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_handshake_data(); + void set_allocated_handshake_data(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_handshake_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_handshake_data(); + + public: + // optional .location.nearby.connections.OsInfo os_info = 4; + bool has_os_info() const; + void clear_os_info() ; + const ::location::nearby::connections::OsInfo& os_info() const; + [[nodiscard]] ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE release_os_info(); + ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL mutable_os_info(); + void set_allocated_os_info(::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_os_info(::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE value); + ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE unsafe_arena_release_os_info(); + + private: + const ::location::nearby::connections::OsInfo& _internal_os_info() const; + ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL _internal_mutable_os_info(); + + public: + // optional .location.nearby.connections.LocationHint location_hint = 8; + bool has_location_hint() const; + void clear_location_hint() ; + const ::location::nearby::connections::LocationHint& location_hint() const; + [[nodiscard]] ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE release_location_hint(); + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL mutable_location_hint(); + void set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE unsafe_arena_release_location_hint(); + + private: + const ::location::nearby::connections::LocationHint& _internal_location_hint() const; + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL _internal_mutable_location_hint(); + + public: + // optional int32 status = 1 [deprecated = true]; + [[deprecated]] bool has_status() const; + [[deprecated]] void clear_status() ; + [[deprecated]] ::int32_t status() const; + [[deprecated]] void set_status(::int32_t value); + + private: + ::int32_t _internal_status() const; + void _internal_set_status(::int32_t value); + + public: + // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; + bool has_response() const; + void clear_response() ; + ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus response() const; + void set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); + + private: + ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus _internal_response() const; + void _internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); + + public: + // optional int32 multiplex_socket_bitmask = 5; + bool has_multiplex_socket_bitmask() const; + void clear_multiplex_socket_bitmask() ; + ::int32_t multiplex_socket_bitmask() const; + void set_multiplex_socket_bitmask(::int32_t value); + + private: + ::int32_t _internal_multiplex_socket_bitmask() const; + void _internal_set_multiplex_socket_bitmask(::int32_t value); + + public: + // optional int32 nearby_connections_version = 6 [deprecated = true]; + [[deprecated]] bool has_nearby_connections_version() const; + [[deprecated]] void clear_nearby_connections_version() ; + [[deprecated]] ::int32_t nearby_connections_version() const; + [[deprecated]] void set_nearby_connections_version(::int32_t value); + + private: + ::int32_t _internal_nearby_connections_version() const; + void _internal_set_nearby_connections_version(::int32_t value); + + public: + // optional int32 safe_to_disconnect_version = 7; + bool has_safe_to_disconnect_version() const; + void clear_safe_to_disconnect_version() ; + ::int32_t safe_to_disconnect_version() const; + void set_safe_to_disconnect_version(::int32_t value); + + private: + ::int32_t _internal_safe_to_disconnect_version() const; + void _internal_set_safe_to_disconnect_version(::int32_t value); + + public: + // optional int32 keep_alive_timeout_millis = 9; + bool has_keep_alive_timeout_millis() const; + void clear_keep_alive_timeout_millis() ; + ::int32_t keep_alive_timeout_millis() const; + void set_keep_alive_timeout_millis(::int32_t value); + + private: + ::int32_t _internal_keep_alive_timeout_millis() const; + void _internal_set_keep_alive_timeout_millis(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionResponseFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 9, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionResponseFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr handshake_data_; + ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE os_info_; + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE location_hint_; + ::int32_t status_; + int response_; + ::int32_t multiplex_socket_bitmask_; + ::int32_t nearby_connections_version_; + ::int32_t safe_to_disconnect_version_; + ::int32_t keep_alive_timeout_millis_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<52> ConnectionResponseFrame_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAddressCandidatesFieldNumber = 3, + kIpAddressFieldNumber = 1, + kWifiPortFieldNumber = 2, + }; + // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; + int address_candidates_size() const; + private: + int _internal_address_candidates_size() const; + + public: + void clear_address_candidates() ; + ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL mutable_address_candidates(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL mutable_address_candidates(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& _internal_address_candidates() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL _internal_mutable_address_candidates(); + public: + const ::location::nearby::connections::ServiceAddress& address_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL add_address_candidates(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& address_candidates() const; + // optional bytes ip_address = 1; + bool has_ip_address() const; + void clear_ip_address() ; + const ::std::string& ip_address() const; + template + void set_ip_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ip_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ip_address(); + void set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ip_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ip_address(); + + public: + // optional int32 wifi_port = 2; + bool has_wifi_port() const; + void clear_wifi_port() ; + ::int32_t wifi_port() const; + void set_wifi_port(::int32_t value); + + private: + ::int32_t _internal_wifi_port() const; + void _internal_set_wifi_port(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > address_candidates_; + ::google::protobuf::internal::ArenaStringPtr ip_address_; + ::int32_t wifi_port_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<91> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAddressCandidatesFieldNumber = 6, + kSsidFieldNumber = 1, + kPasswordFieldNumber = 2, + kGatewayFieldNumber = 4, + kPortFieldNumber = 3, + kFrequencyFieldNumber = 5, + }; + // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; + int address_candidates_size() const; + private: + int _internal_address_candidates_size() const; + + public: + void clear_address_candidates() ; + ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL mutable_address_candidates(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL mutable_address_candidates(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& _internal_address_candidates() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL _internal_mutable_address_candidates(); + public: + const ::location::nearby::connections::ServiceAddress& address_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL add_address_candidates(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& address_candidates() const; + // optional string ssid = 1; + bool has_ssid() const; + void clear_ssid() ; + const ::std::string& ssid() const; + template + void set_ssid(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_ssid(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ssid(); + void set_allocated_ssid(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_ssid() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ssid(); + + public: + // optional string password = 2; + bool has_password() const; + void clear_password() ; + const ::std::string& password() const; + template + void set_password(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_password(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_password(); + void set_allocated_password(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_password() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_password(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_password(); + + public: + // optional string gateway = 4 [default = "0.0.0.0"]; + bool has_gateway() const; + void clear_gateway() ; + const ::std::string& gateway() const; + template + void set_gateway(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_gateway(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_gateway(); + void set_allocated_gateway(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_gateway() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_gateway(); + + public: + // optional int32 port = 3; + bool has_port() const; + void clear_port() ; + ::int32_t port() const; + void set_port(::int32_t value); + + private: + ::int32_t _internal_port() const; + void _internal_set_port(::int32_t value); + + public: + // optional int32 frequency = 5 [default = -1]; + bool has_frequency() const; + void clear_frequency() ; + ::int32_t frequency() const; + void set_frequency(::int32_t value); + + private: + ::int32_t _internal_frequency() const; + void _internal_set_frequency(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > address_candidates_; + ::google::protobuf::internal::ArenaStringPtr ssid_; + ::google::protobuf::internal::ArenaStringPtr password_; + static const ::google::protobuf::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; + ::google::protobuf::internal::ArenaStringPtr gateway_; + ::int32_t port_; + ::int32_t frequency_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<100> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_class_data_; +// ------------------------------------------------------------------- + +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) */ { + public: + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(nullptr) {} + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(nullptr, ::std::move(from)) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { + CopyFrom(from); + return *this; + } + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& default_instance() { + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPeerIdFieldNumber = 1, + kLocationHintFieldNumber = 2, + }; + // optional string peer_id = 1; + bool has_peer_id() const; + void clear_peer_id() ; + const ::std::string& peer_id() const; + template + void set_peer_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_peer_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_peer_id(); + void set_allocated_peer_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_peer_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_peer_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_peer_id(); + + public: + // optional .location.nearby.connections.LocationHint location_hint = 2; + bool has_location_hint() const; + void clear_location_hint() ; + const ::location::nearby::connections::LocationHint& location_hint() const; + [[nodiscard]] ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE release_location_hint(); + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL mutable_location_hint(); + void set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE unsafe_arena_release_location_hint(); + + private: + const ::location::nearby::connections::LocationHint& _internal_location_hint() const; + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL _internal_mutable_location_hint(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr peer_id_; + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE location_hint_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<95> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_class_data_; +// ------------------------------------------------------------------- + +class ConnectionRequestFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionRequestFrame) */ { + public: + inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {} + ~ConnectionRequestFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionRequestFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionRequestFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionRequestFrame(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionRequestFrame(const ConnectionRequestFrame& from) : ConnectionRequestFrame(nullptr, from) {} + inline ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept + : ConnectionRequestFrame(nullptr, ::std::move(from)) {} inline ConnectionRequestFrame& operator=(const ConnectionRequestFrame& from) { CopyFrom(from); return *this; } inline ConnectionRequestFrame& operator=(ConnectionRequestFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1314,169 +8975,153 @@ class ConnectionRequestFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const ConnectionRequestFrame& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_ConnectionRequestFrame_default_instance_); } enum DeviceCase { kConnectionsDevice = 12, kPresenceDevice = 13, DEVICE_NOT_SET = 0, }; - - static inline const ConnectionRequestFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionRequestFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionRequestFrame* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) { a.Swap(&b); } + inline void Swap(ConnectionRequestFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionRequestFrame* other) { + void UnsafeArenaSwap(ConnectionRequestFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionRequestFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionRequestFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const ConnectionRequestFrame& from); - void MergeFrom(const ConnectionRequestFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const ConnectionRequestFrame& from) { ConnectionRequestFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionRequestFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ConnectionRequestFrame"; - } - protected: - explicit ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionRequestFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.ConnectionRequestFrame"; } + + explicit ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionRequestFrame& from); + ConnectionRequestFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionRequestFrame&& from) noexcept + : ConnectionRequestFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef ConnectionRequestFrame_Medium Medium; - static constexpr Medium UNKNOWN_MEDIUM = - ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM; - PROTOBUF_DEPRECATED_ENUM static constexpr Medium MDNS = - ConnectionRequestFrame_Medium_MDNS; - static constexpr Medium BLUETOOTH = - ConnectionRequestFrame_Medium_BLUETOOTH; - static constexpr Medium WIFI_HOTSPOT = - ConnectionRequestFrame_Medium_WIFI_HOTSPOT; - static constexpr Medium BLE = - ConnectionRequestFrame_Medium_BLE; - static constexpr Medium WIFI_LAN = - ConnectionRequestFrame_Medium_WIFI_LAN; - static constexpr Medium WIFI_AWARE = - ConnectionRequestFrame_Medium_WIFI_AWARE; - static constexpr Medium NFC = - ConnectionRequestFrame_Medium_NFC; - static constexpr Medium WIFI_DIRECT = - ConnectionRequestFrame_Medium_WIFI_DIRECT; - static constexpr Medium WEB_RTC = - ConnectionRequestFrame_Medium_WEB_RTC; - static constexpr Medium BLE_L2CAP = - ConnectionRequestFrame_Medium_BLE_L2CAP; - static constexpr Medium USB = - ConnectionRequestFrame_Medium_USB; - static constexpr Medium WEB_RTC_NON_CELLULAR = - ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR; - static constexpr Medium AWDL = - ConnectionRequestFrame_Medium_AWDL; + using Medium = ConnectionRequestFrame_Medium; + static constexpr Medium UNKNOWN_MEDIUM = ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM; + [[deprecated]] static constexpr Medium MDNS = ConnectionRequestFrame_Medium_MDNS; + static constexpr Medium BLUETOOTH = ConnectionRequestFrame_Medium_BLUETOOTH; + static constexpr Medium WIFI_HOTSPOT = ConnectionRequestFrame_Medium_WIFI_HOTSPOT; + static constexpr Medium BLE = ConnectionRequestFrame_Medium_BLE; + static constexpr Medium WIFI_LAN = ConnectionRequestFrame_Medium_WIFI_LAN; + static constexpr Medium WIFI_AWARE = ConnectionRequestFrame_Medium_WIFI_AWARE; + static constexpr Medium NFC = ConnectionRequestFrame_Medium_NFC; + static constexpr Medium WIFI_DIRECT = ConnectionRequestFrame_Medium_WIFI_DIRECT; + static constexpr Medium WEB_RTC = ConnectionRequestFrame_Medium_WEB_RTC; + static constexpr Medium BLE_L2CAP = ConnectionRequestFrame_Medium_BLE_L2CAP; + static constexpr Medium USB = ConnectionRequestFrame_Medium_USB; + static constexpr Medium WEB_RTC_NON_CELLULAR = ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR; + static constexpr Medium AWDL = ConnectionRequestFrame_Medium_AWDL; static inline bool Medium_IsValid(int value) { return ConnectionRequestFrame_Medium_IsValid(value); } - static constexpr Medium Medium_MIN = - ConnectionRequestFrame_Medium_Medium_MIN; - static constexpr Medium Medium_MAX = - ConnectionRequestFrame_Medium_Medium_MAX; - static constexpr int Medium_ARRAYSIZE = - ConnectionRequestFrame_Medium_Medium_ARRAYSIZE; - template - static inline const std::string& Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return ConnectionRequestFrame_Medium_Name(enum_t_value); + static constexpr Medium Medium_MIN = ConnectionRequestFrame_Medium_Medium_MIN; + static constexpr Medium Medium_MAX = ConnectionRequestFrame_Medium_Medium_MAX; + static constexpr int Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_ARRAYSIZE; + template + static inline const ::std::string& Medium_Name(T value) { + return ConnectionRequestFrame_Medium_Name(value); } - static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Medium* value) { + static inline bool Medium_Parse( + ::absl::string_view name, Medium* PROTOBUF_NONNULL value) { return ConnectionRequestFrame_Medium_Parse(name, value); } - - typedef ConnectionRequestFrame_ConnectionMode ConnectionMode; - static constexpr ConnectionMode LEGACY = - ConnectionRequestFrame_ConnectionMode_LEGACY; - static constexpr ConnectionMode INSTANT = - ConnectionRequestFrame_ConnectionMode_INSTANT; + using ConnectionMode = ConnectionRequestFrame_ConnectionMode; + static constexpr ConnectionMode LEGACY = ConnectionRequestFrame_ConnectionMode_LEGACY; + static constexpr ConnectionMode INSTANT = ConnectionRequestFrame_ConnectionMode_INSTANT; static inline bool ConnectionMode_IsValid(int value) { return ConnectionRequestFrame_ConnectionMode_IsValid(value); } - static constexpr ConnectionMode ConnectionMode_MIN = - ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN; - static constexpr ConnectionMode ConnectionMode_MAX = - ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX; - static constexpr int ConnectionMode_ARRAYSIZE = - ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE; - template - static inline const std::string& ConnectionMode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionMode_Name."); - return ConnectionRequestFrame_ConnectionMode_Name(enum_t_value); + static constexpr ConnectionMode ConnectionMode_MIN = ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN; + static constexpr ConnectionMode ConnectionMode_MAX = ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX; + static constexpr int ConnectionMode_ARRAYSIZE = ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE; + template + static inline const ::std::string& ConnectionMode_Name(T value) { + return ConnectionRequestFrame_ConnectionMode_Name(value); } - static inline bool ConnectionMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ConnectionMode* value) { + static inline bool ConnectionMode_Parse( + ::absl::string_view name, ConnectionMode* PROTOBUF_NONNULL value) { return ConnectionRequestFrame_ConnectionMode_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kMediumsFieldNumber = 5, kEndpointIdFieldNumber = 1, @@ -1498,246 +9143,224 @@ class ConnectionRequestFrame final : int mediums_size() const; private: int _internal_mediums_size() const; + public: - void clear_mediums(); - private: - ::location::nearby::connections::ConnectionRequestFrame_Medium _internal_mediums(int index) const; - void _internal_add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_mediums(); + void clear_mediums() ; public: ::location::nearby::connections::ConnectionRequestFrame_Medium mediums(int index) const; void set_mediums(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value); void add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& mediums() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_mediums(); + const ::google::protobuf::RepeatedField& mediums() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_mediums(); + private: + const ::google::protobuf::RepeatedField& _internal_mediums() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_mediums(); + + public: // optional string endpoint_id = 1; bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: // optional string endpoint_name = 2; bool has_endpoint_name() const; - private: - bool _internal_has_endpoint_name() const; - public: - void clear_endpoint_name(); - const std::string& endpoint_name() const; - template - void set_endpoint_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_name(); - PROTOBUF_NODISCARD std::string* release_endpoint_name(); - void set_allocated_endpoint_name(std::string* endpoint_name); - private: - const std::string& _internal_endpoint_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_name(const std::string& value); - std::string* _internal_mutable_endpoint_name(); - public: + void clear_endpoint_name() ; + const ::std::string& endpoint_name() const; + template + void set_endpoint_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_name(); + void set_allocated_endpoint_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_endpoint_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_name(); + + public: // optional bytes handshake_data = 3; bool has_handshake_data() const; - private: - bool _internal_has_handshake_data() const; - public: - void clear_handshake_data(); - const std::string& handshake_data() const; - template - void set_handshake_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_handshake_data(); - PROTOBUF_NODISCARD std::string* release_handshake_data(); - void set_allocated_handshake_data(std::string* handshake_data); - private: - const std::string& _internal_handshake_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value); - std::string* _internal_mutable_handshake_data(); - public: + void clear_handshake_data() ; + const ::std::string& handshake_data() const; + template + void set_handshake_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_handshake_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_handshake_data(); + void set_allocated_handshake_data(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_handshake_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_handshake_data(); + + public: // optional bytes endpoint_info = 6; bool has_endpoint_info() const; - private: - bool _internal_has_endpoint_info() const; - public: - void clear_endpoint_info(); - const std::string& endpoint_info() const; - template - void set_endpoint_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_info(); - PROTOBUF_NODISCARD std::string* release_endpoint_info(); - void set_allocated_endpoint_info(std::string* endpoint_info); - private: - const std::string& _internal_endpoint_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const std::string& value); - std::string* _internal_mutable_endpoint_info(); - public: + void clear_endpoint_info() ; + const ::std::string& endpoint_info() const; + template + void set_endpoint_info(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_info(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_info(); + void set_allocated_endpoint_info(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_endpoint_info() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_info(); + + public: // optional bytes device_info = 11 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_device_info() const; - private: - bool _internal_has_device_info() const; - public: - PROTOBUF_DEPRECATED void clear_device_info(); - PROTOBUF_DEPRECATED const std::string& device_info() const; - template - PROTOBUF_DEPRECATED void set_device_info(ArgT0&& arg0, ArgT... args); - PROTOBUF_DEPRECATED std::string* mutable_device_info(); - PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_device_info(); - PROTOBUF_DEPRECATED void set_allocated_device_info(std::string* device_info); - private: - const std::string& _internal_device_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_info(const std::string& value); - std::string* _internal_mutable_device_info(); - public: + [[deprecated]] bool has_device_info() const; + [[deprecated]] void clear_device_info() ; + [[deprecated]] const ::std::string& device_info() const; + template + [[deprecated]] void set_device_info(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_device_info(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_info(); + [[deprecated]] void set_allocated_device_info(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_info() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_info(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_info(); + + public: // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; bool has_medium_metadata() const; - private: - bool _internal_has_medium_metadata() const; - public: - void clear_medium_metadata(); + void clear_medium_metadata() ; const ::location::nearby::connections::MediumMetadata& medium_metadata() const; - PROTOBUF_NODISCARD ::location::nearby::connections::MediumMetadata* release_medium_metadata(); - ::location::nearby::connections::MediumMetadata* mutable_medium_metadata(); - void set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* medium_metadata); + [[nodiscard]] ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE release_medium_metadata(); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL mutable_medium_metadata(); + void set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE unsafe_arena_release_medium_metadata(); + private: const ::location::nearby::connections::MediumMetadata& _internal_medium_metadata() const; - ::location::nearby::connections::MediumMetadata* _internal_mutable_medium_metadata(); - public: - void unsafe_arena_set_allocated_medium_metadata( - ::location::nearby::connections::MediumMetadata* medium_metadata); - ::location::nearby::connections::MediumMetadata* unsafe_arena_release_medium_metadata(); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL _internal_mutable_medium_metadata(); + public: // optional .location.nearby.connections.LocationHint location_hint = 15; bool has_location_hint() const; - private: - bool _internal_has_location_hint() const; - public: - void clear_location_hint(); + void clear_location_hint() ; const ::location::nearby::connections::LocationHint& location_hint() const; - PROTOBUF_NODISCARD ::location::nearby::connections::LocationHint* release_location_hint(); - ::location::nearby::connections::LocationHint* mutable_location_hint(); - void set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint); + [[nodiscard]] ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE release_location_hint(); + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL mutable_location_hint(); + void set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE unsafe_arena_release_location_hint(); + private: const ::location::nearby::connections::LocationHint& _internal_location_hint() const; - ::location::nearby::connections::LocationHint* _internal_mutable_location_hint(); - public: - void unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint); - ::location::nearby::connections::LocationHint* unsafe_arena_release_location_hint(); + ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL _internal_mutable_location_hint(); + public: // optional int32 nonce = 4; bool has_nonce() const; - private: - bool _internal_has_nonce() const; - public: - void clear_nonce(); - int32_t nonce() const; - void set_nonce(int32_t value); - private: - int32_t _internal_nonce() const; - void _internal_set_nonce(int32_t value); - public: + void clear_nonce() ; + ::int32_t nonce() const; + void set_nonce(::int32_t value); + private: + ::int32_t _internal_nonce() const; + void _internal_set_nonce(::int32_t value); + + public: // optional int32 keep_alive_interval_millis = 8; bool has_keep_alive_interval_millis() const; - private: - bool _internal_has_keep_alive_interval_millis() const; - public: - void clear_keep_alive_interval_millis(); - int32_t keep_alive_interval_millis() const; - void set_keep_alive_interval_millis(int32_t value); - private: - int32_t _internal_keep_alive_interval_millis() const; - void _internal_set_keep_alive_interval_millis(int32_t value); - public: + void clear_keep_alive_interval_millis() ; + ::int32_t keep_alive_interval_millis() const; + void set_keep_alive_interval_millis(::int32_t value); + private: + ::int32_t _internal_keep_alive_interval_millis() const; + void _internal_set_keep_alive_interval_millis(::int32_t value); + + public: // optional int32 keep_alive_timeout_millis = 9; bool has_keep_alive_timeout_millis() const; - private: - bool _internal_has_keep_alive_timeout_millis() const; - public: - void clear_keep_alive_timeout_millis(); - int32_t keep_alive_timeout_millis() const; - void set_keep_alive_timeout_millis(int32_t value); - private: - int32_t _internal_keep_alive_timeout_millis() const; - void _internal_set_keep_alive_timeout_millis(int32_t value); - public: + void clear_keep_alive_timeout_millis() ; + ::int32_t keep_alive_timeout_millis() const; + void set_keep_alive_timeout_millis(::int32_t value); + private: + ::int32_t _internal_keep_alive_timeout_millis() const; + void _internal_set_keep_alive_timeout_millis(::int32_t value); + + public: // optional int32 device_type = 10 [default = 0, deprecated = true]; - PROTOBUF_DEPRECATED bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - PROTOBUF_DEPRECATED void clear_device_type(); - PROTOBUF_DEPRECATED int32_t device_type() const; - PROTOBUF_DEPRECATED void set_device_type(int32_t value); - private: - int32_t _internal_device_type() const; - void _internal_set_device_type(int32_t value); - public: + [[deprecated]] bool has_device_type() const; + [[deprecated]] void clear_device_type() ; + [[deprecated]] ::int32_t device_type() const; + [[deprecated]] void set_device_type(::int32_t value); + private: + ::int32_t _internal_device_type() const; + void _internal_set_device_type(::int32_t value); + + public: // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; bool has_connection_mode() const; - private: - bool _internal_has_connection_mode() const; - public: - void clear_connection_mode(); + void clear_connection_mode() ; ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode connection_mode() const; void set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value); + private: ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode _internal_connection_mode() const; void _internal_set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value); - public: + public: // .location.nearby.connections.ConnectionsDevice connections_device = 12; bool has_connections_device() const; private: bool _internal_has_connections_device() const; + public: - void clear_connections_device(); + void clear_connections_device() ; const ::location::nearby::connections::ConnectionsDevice& connections_device() const; - PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionsDevice* release_connections_device(); - ::location::nearby::connections::ConnectionsDevice* mutable_connections_device(); - void set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device); + [[nodiscard]] ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE release_connections_device(); + ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NONNULL mutable_connections_device(); + void set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE value); + ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE unsafe_arena_release_connections_device(); + private: const ::location::nearby::connections::ConnectionsDevice& _internal_connections_device() const; - ::location::nearby::connections::ConnectionsDevice* _internal_mutable_connections_device(); - public: - void unsafe_arena_set_allocated_connections_device( - ::location::nearby::connections::ConnectionsDevice* connections_device); - ::location::nearby::connections::ConnectionsDevice* unsafe_arena_release_connections_device(); + ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NONNULL _internal_mutable_connections_device(); + public: // .location.nearby.connections.PresenceDevice presence_device = 13; bool has_presence_device() const; private: bool _internal_has_presence_device() const; + public: - void clear_presence_device(); + void clear_presence_device() ; const ::location::nearby::connections::PresenceDevice& presence_device() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PresenceDevice* release_presence_device(); - ::location::nearby::connections::PresenceDevice* mutable_presence_device(); - void set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device); + [[nodiscard]] ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE release_presence_device(); + ::location::nearby::connections::PresenceDevice* PROTOBUF_NONNULL mutable_presence_device(); + void set_allocated_presence_device(::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_presence_device(::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE unsafe_arena_release_presence_device(); + private: const ::location::nearby::connections::PresenceDevice& _internal_presence_device() const; - ::location::nearby::connections::PresenceDevice* _internal_mutable_presence_device(); - public: - void unsafe_arena_set_allocated_presence_device( - ::location::nearby::connections::PresenceDevice* presence_device); - ::location::nearby::connections::PresenceDevice* unsafe_arena_release_presence_device(); + ::location::nearby::connections::PresenceDevice* PROTOBUF_NONNULL _internal_mutable_presence_device(); + public: void clear_Device(); DeviceCase Device_case() const; // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionRequestFrame) @@ -1745,2848 +9368,86 @@ class ConnectionRequestFrame final : class _Internal; void set_has_connections_device(); void set_has_presence_device(); - inline bool has_Device() const; inline void clear_has_Device(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 15, + 6, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField mediums_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_info_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_info_; - ::location::nearby::connections::MediumMetadata* medium_metadata_; - ::location::nearby::connections::LocationHint* location_hint_; - int32_t nonce_; - int32_t keep_alive_interval_millis_; - int32_t keep_alive_timeout_millis_; - int32_t device_type_; - int connection_mode_; - union DeviceUnion { - constexpr DeviceUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::location::nearby::connections::ConnectionsDevice* connections_device_; - ::location::nearby::connections::PresenceDevice* presence_device_; - } Device_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionResponseFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionResponseFrame) */ { - public: - inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {} - ~ConnectionResponseFrame() override; - explicit constexpr ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionResponseFrame(const ConnectionResponseFrame& from); - ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept - : ConnectionResponseFrame() { - *this = ::std::move(from); - } - - inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionResponseFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionResponseFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionResponseFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionResponseFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionResponseFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionResponseFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionResponseFrame& from); - void MergeFrom(const ConnectionResponseFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionResponseFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ConnectionResponseFrame"; - } - protected: - explicit ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionResponseFrame_ResponseStatus ResponseStatus; - static constexpr ResponseStatus UNKNOWN_RESPONSE_STATUS = - ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS; - static constexpr ResponseStatus ACCEPT = - ConnectionResponseFrame_ResponseStatus_ACCEPT; - static constexpr ResponseStatus REJECT = - ConnectionResponseFrame_ResponseStatus_REJECT; - static inline bool ResponseStatus_IsValid(int value) { - return ConnectionResponseFrame_ResponseStatus_IsValid(value); - } - static constexpr ResponseStatus ResponseStatus_MIN = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN; - static constexpr ResponseStatus ResponseStatus_MAX = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX; - static constexpr int ResponseStatus_ARRAYSIZE = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE; - template - static inline const std::string& ResponseStatus_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ResponseStatus_Name."); - return ConnectionResponseFrame_ResponseStatus_Name(enum_t_value); - } - static inline bool ResponseStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ResponseStatus* value) { - return ConnectionResponseFrame_ResponseStatus_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kHandshakeDataFieldNumber = 2, - kOsInfoFieldNumber = 4, - kLocationHintFieldNumber = 8, - kStatusFieldNumber = 1, - kResponseFieldNumber = 3, - kMultiplexSocketBitmaskFieldNumber = 5, - kNearbyConnectionsVersionFieldNumber = 6, - kSafeToDisconnectVersionFieldNumber = 7, - kKeepAliveTimeoutMillisFieldNumber = 9, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionRequestFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField mediums_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr endpoint_name_; + ::google::protobuf::internal::ArenaStringPtr handshake_data_; + ::google::protobuf::internal::ArenaStringPtr endpoint_info_; + ::google::protobuf::internal::ArenaStringPtr device_info_; + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE medium_metadata_; + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE location_hint_; + ::int32_t nonce_; + ::int32_t keep_alive_interval_millis_; + ::int32_t keep_alive_timeout_millis_; + ::int32_t device_type_; + int connection_mode_; + union DeviceUnion { + constexpr DeviceUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE connections_device_; + ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE presence_device_; + } Device_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional bytes handshake_data = 2; - bool has_handshake_data() const; - private: - bool _internal_has_handshake_data() const; - public: - void clear_handshake_data(); - const std::string& handshake_data() const; - template - void set_handshake_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_handshake_data(); - PROTOBUF_NODISCARD std::string* release_handshake_data(); - void set_allocated_handshake_data(std::string* handshake_data); - private: - const std::string& _internal_handshake_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value); - std::string* _internal_mutable_handshake_data(); - public: - - // optional .location.nearby.connections.OsInfo os_info = 4; - bool has_os_info() const; - private: - bool _internal_has_os_info() const; - public: - void clear_os_info(); - const ::location::nearby::connections::OsInfo& os_info() const; - PROTOBUF_NODISCARD ::location::nearby::connections::OsInfo* release_os_info(); - ::location::nearby::connections::OsInfo* mutable_os_info(); - void set_allocated_os_info(::location::nearby::connections::OsInfo* os_info); - private: - const ::location::nearby::connections::OsInfo& _internal_os_info() const; - ::location::nearby::connections::OsInfo* _internal_mutable_os_info(); - public: - void unsafe_arena_set_allocated_os_info( - ::location::nearby::connections::OsInfo* os_info); - ::location::nearby::connections::OsInfo* unsafe_arena_release_os_info(); - - // optional .location.nearby.connections.LocationHint location_hint = 8; - bool has_location_hint() const; - private: - bool _internal_has_location_hint() const; - public: - void clear_location_hint(); - const ::location::nearby::connections::LocationHint& location_hint() const; - PROTOBUF_NODISCARD ::location::nearby::connections::LocationHint* release_location_hint(); - ::location::nearby::connections::LocationHint* mutable_location_hint(); - void set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint); - private: - const ::location::nearby::connections::LocationHint& _internal_location_hint() const; - ::location::nearby::connections::LocationHint* _internal_mutable_location_hint(); - public: - void unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint); - ::location::nearby::connections::LocationHint* unsafe_arena_release_location_hint(); - - // optional int32 status = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_status() const; - private: - bool _internal_has_status() const; - public: - PROTOBUF_DEPRECATED void clear_status(); - PROTOBUF_DEPRECATED int32_t status() const; - PROTOBUF_DEPRECATED void set_status(int32_t value); - private: - int32_t _internal_status() const; - void _internal_set_status(int32_t value); - public: - - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - bool has_response() const; - private: - bool _internal_has_response() const; - public: - void clear_response(); - ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus response() const; - void set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); - private: - ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus _internal_response() const; - void _internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); - public: - - // optional int32 multiplex_socket_bitmask = 5; - bool has_multiplex_socket_bitmask() const; - private: - bool _internal_has_multiplex_socket_bitmask() const; - public: - void clear_multiplex_socket_bitmask(); - int32_t multiplex_socket_bitmask() const; - void set_multiplex_socket_bitmask(int32_t value); - private: - int32_t _internal_multiplex_socket_bitmask() const; - void _internal_set_multiplex_socket_bitmask(int32_t value); - public: - - // optional int32 nearby_connections_version = 6 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_nearby_connections_version() const; - private: - bool _internal_has_nearby_connections_version() const; - public: - PROTOBUF_DEPRECATED void clear_nearby_connections_version(); - PROTOBUF_DEPRECATED int32_t nearby_connections_version() const; - PROTOBUF_DEPRECATED void set_nearby_connections_version(int32_t value); - private: - int32_t _internal_nearby_connections_version() const; - void _internal_set_nearby_connections_version(int32_t value); - public: - - // optional int32 safe_to_disconnect_version = 7; - bool has_safe_to_disconnect_version() const; - private: - bool _internal_has_safe_to_disconnect_version() const; - public: - void clear_safe_to_disconnect_version(); - int32_t safe_to_disconnect_version() const; - void set_safe_to_disconnect_version(int32_t value); - private: - int32_t _internal_safe_to_disconnect_version() const; - void _internal_set_safe_to_disconnect_version(int32_t value); - public: - - // optional int32 keep_alive_timeout_millis = 9; - bool has_keep_alive_timeout_millis() const; - private: - bool _internal_has_keep_alive_timeout_millis() const; - public: - void clear_keep_alive_timeout_millis(); - int32_t keep_alive_timeout_millis() const; - void set_keep_alive_timeout_millis(int32_t value); - private: - int32_t _internal_keep_alive_timeout_millis() const; - void _internal_set_keep_alive_timeout_millis(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionResponseFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_; - ::location::nearby::connections::OsInfo* os_info_; - ::location::nearby::connections::LocationHint* location_hint_; - int32_t status_; - int response_; - int32_t multiplex_socket_bitmask_; - int32_t nearby_connections_version_; - int32_t safe_to_disconnect_version_; - int32_t keep_alive_timeout_millis_; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<51> ConnectionRequestFrame_class_data_; // ------------------------------------------------------------------- -class PayloadTransferFrame_PayloadHeader final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadHeader) */ { - public: - inline PayloadTransferFrame_PayloadHeader() : PayloadTransferFrame_PayloadHeader(nullptr) {} - ~PayloadTransferFrame_PayloadHeader() override; - explicit constexpr PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from); - PayloadTransferFrame_PayloadHeader(PayloadTransferFrame_PayloadHeader&& from) noexcept - : PayloadTransferFrame_PayloadHeader() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_PayloadHeader& operator=(const PayloadTransferFrame_PayloadHeader& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_PayloadHeader& operator=(PayloadTransferFrame_PayloadHeader&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_PayloadHeader& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_PayloadHeader* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_PayloadHeader_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(PayloadTransferFrame_PayloadHeader& a, PayloadTransferFrame_PayloadHeader& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_PayloadHeader* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_PayloadHeader* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_PayloadHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_PayloadHeader& from); - void MergeFrom(const PayloadTransferFrame_PayloadHeader& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_PayloadHeader* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.PayloadHeader"; - } - protected: - explicit PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadHeader_PayloadType PayloadType; - static constexpr PayloadType UNKNOWN_PAYLOAD_TYPE = - PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE; - static constexpr PayloadType BYTES = - PayloadTransferFrame_PayloadHeader_PayloadType_BYTES; - static constexpr PayloadType FILE = - PayloadTransferFrame_PayloadHeader_PayloadType_FILE; - static constexpr PayloadType STREAM = - PayloadTransferFrame_PayloadHeader_PayloadType_STREAM; - static inline bool PayloadType_IsValid(int value) { - return PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value); - } - static constexpr PayloadType PayloadType_MIN = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN; - static constexpr PayloadType PayloadType_MAX = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX; - static constexpr int PayloadType_ARRAYSIZE = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE; - template - static inline const std::string& PayloadType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadType_Name."); - return PayloadTransferFrame_PayloadHeader_PayloadType_Name(enum_t_value); - } - static inline bool PayloadType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - PayloadType* value) { - return PayloadTransferFrame_PayloadHeader_PayloadType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kFileNameFieldNumber = 5, - kParentFolderFieldNumber = 6, - kIdFieldNumber = 1, - kTotalSizeFieldNumber = 3, - kTypeFieldNumber = 2, - kIsSensitiveFieldNumber = 4, - kLastModifiedTimestampMillisFieldNumber = 7, - }; - // optional string file_name = 5; - bool has_file_name() const; - private: - bool _internal_has_file_name() const; - public: - void clear_file_name(); - const std::string& file_name() const; - template - void set_file_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_file_name(); - PROTOBUF_NODISCARD std::string* release_file_name(); - void set_allocated_file_name(std::string* file_name); - private: - const std::string& _internal_file_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value); - std::string* _internal_mutable_file_name(); - public: - - // optional string parent_folder = 6; - bool has_parent_folder() const; - private: - bool _internal_has_parent_folder() const; - public: - void clear_parent_folder(); - const std::string& parent_folder() const; - template - void set_parent_folder(ArgT0&& arg0, ArgT... args); - std::string* mutable_parent_folder(); - PROTOBUF_NODISCARD std::string* release_parent_folder(); - void set_allocated_parent_folder(std::string* parent_folder); - private: - const std::string& _internal_parent_folder() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_folder(const std::string& value); - std::string* _internal_mutable_parent_folder(); - public: - - // optional int64 id = 1; - bool has_id() const; - private: - bool _internal_has_id() const; - public: - void clear_id(); - int64_t id() const; - void set_id(int64_t value); - private: - int64_t _internal_id() const; - void _internal_set_id(int64_t value); - public: - - // optional int64 total_size = 3; - bool has_total_size() const; - private: - bool _internal_has_total_size() const; - public: - void clear_total_size(); - int64_t total_size() const; - void set_total_size(int64_t value); - private: - int64_t _internal_total_size() const; - void _internal_set_total_size(int64_t value); - public: - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType type() const; - void set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); - private: - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType _internal_type() const; - void _internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); - public: - - // optional bool is_sensitive = 4; - bool has_is_sensitive() const; - private: - bool _internal_has_is_sensitive() const; - public: - void clear_is_sensitive(); - bool is_sensitive() const; - void set_is_sensitive(bool value); - private: - bool _internal_is_sensitive() const; - void _internal_set_is_sensitive(bool value); - public: - - // optional int64 last_modified_timestamp_millis = 7; - bool has_last_modified_timestamp_millis() const; - private: - bool _internal_has_last_modified_timestamp_millis() const; - public: - void clear_last_modified_timestamp_millis(); - int64_t last_modified_timestamp_millis() const; - void set_last_modified_timestamp_millis(int64_t value); - private: - int64_t _internal_last_modified_timestamp_millis() const; - void _internal_set_last_modified_timestamp_millis(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_folder_; - int64_t id_; - int64_t total_size_; - int type_; - bool is_sensitive_; - int64_t last_modified_timestamp_millis_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame_PayloadChunk final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadChunk) */ { - public: - inline PayloadTransferFrame_PayloadChunk() : PayloadTransferFrame_PayloadChunk(nullptr) {} - ~PayloadTransferFrame_PayloadChunk() override; - explicit constexpr PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from); - PayloadTransferFrame_PayloadChunk(PayloadTransferFrame_PayloadChunk&& from) noexcept - : PayloadTransferFrame_PayloadChunk() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_PayloadChunk& operator=(const PayloadTransferFrame_PayloadChunk& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_PayloadChunk& operator=(PayloadTransferFrame_PayloadChunk&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_PayloadChunk& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_PayloadChunk* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_PayloadChunk_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(PayloadTransferFrame_PayloadChunk& a, PayloadTransferFrame_PayloadChunk& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_PayloadChunk* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_PayloadChunk* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_PayloadChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_PayloadChunk& from); - void MergeFrom(const PayloadTransferFrame_PayloadChunk& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_PayloadChunk* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.PayloadChunk"; - } - protected: - explicit PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadChunk_Flags Flags; - static constexpr Flags LAST_CHUNK = - PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; - static inline bool Flags_IsValid(int value) { - return PayloadTransferFrame_PayloadChunk_Flags_IsValid(value); - } - static constexpr Flags Flags_MIN = - PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN; - static constexpr Flags Flags_MAX = - PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX; - static constexpr int Flags_ARRAYSIZE = - PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE; - template - static inline const std::string& Flags_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Flags_Name."); - return PayloadTransferFrame_PayloadChunk_Flags_Name(enum_t_value); - } - static inline bool Flags_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Flags* value) { - return PayloadTransferFrame_PayloadChunk_Flags_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kBodyFieldNumber = 3, - kOffsetFieldNumber = 2, - kFlagsFieldNumber = 1, - kIndexFieldNumber = 4, - }; - // optional bytes body = 3; - bool has_body() const; - private: - bool _internal_has_body() const; - public: - void clear_body(); - const std::string& body() const; - template - void set_body(ArgT0&& arg0, ArgT... args); - std::string* mutable_body(); - PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* body); - private: - const std::string& _internal_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); - std::string* _internal_mutable_body(); - public: - - // optional int64 offset = 2; - bool has_offset() const; - private: - bool _internal_has_offset() const; - public: - void clear_offset(); - int64_t offset() const; - void set_offset(int64_t value); - private: - int64_t _internal_offset() const; - void _internal_set_offset(int64_t value); - public: - - // optional int32 flags = 1; - bool has_flags() const; - private: - bool _internal_has_flags() const; - public: - void clear_flags(); - int32_t flags() const; - void set_flags(int32_t value); - private: - int32_t _internal_flags() const; - void _internal_set_flags(int32_t value); - public: - - // optional int32 index = 4; - bool has_index() const; - private: - bool _internal_has_index() const; - public: - void clear_index(); - int32_t index() const; - void set_index(int32_t value); - private: - int32_t _internal_index() const; - void _internal_set_index(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - int64_t offset_; - int32_t flags_; - int32_t index_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame_ControlMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.ControlMessage) */ { - public: - inline PayloadTransferFrame_ControlMessage() : PayloadTransferFrame_ControlMessage(nullptr) {} - ~PayloadTransferFrame_ControlMessage() override; - explicit constexpr PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from); - PayloadTransferFrame_ControlMessage(PayloadTransferFrame_ControlMessage&& from) noexcept - : PayloadTransferFrame_ControlMessage() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_ControlMessage& operator=(const PayloadTransferFrame_ControlMessage& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_ControlMessage& operator=(PayloadTransferFrame_ControlMessage&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_ControlMessage& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_ControlMessage* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_ControlMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(PayloadTransferFrame_ControlMessage& a, PayloadTransferFrame_ControlMessage& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_ControlMessage* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_ControlMessage* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_ControlMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_ControlMessage& from); - void MergeFrom(const PayloadTransferFrame_ControlMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_ControlMessage* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.ControlMessage"; - } - protected: - explicit PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_ControlMessage_EventType EventType; - static constexpr EventType UNKNOWN_EVENT_TYPE = - PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE; - static constexpr EventType PAYLOAD_ERROR = - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR; - static constexpr EventType PAYLOAD_CANCELED = - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED; - PROTOBUF_DEPRECATED_ENUM static constexpr EventType PAYLOAD_RECEIVED_ACK = - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK; - static inline bool EventType_IsValid(int value) { - return PayloadTransferFrame_ControlMessage_EventType_IsValid(value); - } - static constexpr EventType EventType_MIN = - PayloadTransferFrame_ControlMessage_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - PayloadTransferFrame_ControlMessage_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return PayloadTransferFrame_ControlMessage_EventType_Name(enum_t_value); - } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { - return PayloadTransferFrame_ControlMessage_EventType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kOffsetFieldNumber = 2, - kEventFieldNumber = 1, - }; - // optional int64 offset = 2; - bool has_offset() const; - private: - bool _internal_has_offset() const; - public: - void clear_offset(); - int64_t offset() const; - void set_offset(int64_t value); - private: - int64_t _internal_offset() const; - void _internal_set_offset(int64_t value); - public: - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - bool has_event() const; - private: - bool _internal_has_event() const; - public: - void clear_event(); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType event() const; - void set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); - private: - ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType _internal_event() const; - void _internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.ControlMessage) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t offset_; - int event_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame) */ { - public: - inline PayloadTransferFrame() : PayloadTransferFrame(nullptr) {} - ~PayloadTransferFrame() override; - explicit constexpr PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame(const PayloadTransferFrame& from); - PayloadTransferFrame(PayloadTransferFrame&& from) noexcept - : PayloadTransferFrame() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame& operator=(const PayloadTransferFrame& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame& operator=(PayloadTransferFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PayloadTransferFrame& a, PayloadTransferFrame& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame& from); - void MergeFrom(const PayloadTransferFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame"; - } - protected: - explicit PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadHeader PayloadHeader; - typedef PayloadTransferFrame_PayloadChunk PayloadChunk; - typedef PayloadTransferFrame_ControlMessage ControlMessage; - - typedef PayloadTransferFrame_PacketType PacketType; - static constexpr PacketType UNKNOWN_PACKET_TYPE = - PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE; - static constexpr PacketType DATA = - PayloadTransferFrame_PacketType_DATA; - static constexpr PacketType CONTROL = - PayloadTransferFrame_PacketType_CONTROL; - static constexpr PacketType PAYLOAD_ACK = - PayloadTransferFrame_PacketType_PAYLOAD_ACK; - static inline bool PacketType_IsValid(int value) { - return PayloadTransferFrame_PacketType_IsValid(value); - } - static constexpr PacketType PacketType_MIN = - PayloadTransferFrame_PacketType_PacketType_MIN; - static constexpr PacketType PacketType_MAX = - PayloadTransferFrame_PacketType_PacketType_MAX; - static constexpr int PacketType_ARRAYSIZE = - PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE; - template - static inline const std::string& PacketType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PacketType_Name."); - return PayloadTransferFrame_PacketType_Name(enum_t_value); - } - static inline bool PacketType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - PacketType* value) { - return PayloadTransferFrame_PacketType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kPayloadHeaderFieldNumber = 2, - kPayloadChunkFieldNumber = 3, - kControlMessageFieldNumber = 4, - kPacketTypeFieldNumber = 1, - }; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - bool has_payload_header() const; - private: - bool _internal_has_payload_header() const; - public: - void clear_payload_header(); - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* release_payload_header(); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* mutable_payload_header(); - void set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header); - private: - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& _internal_payload_header() const; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* _internal_mutable_payload_header(); - public: - void unsafe_arena_set_allocated_payload_header( - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* unsafe_arena_release_payload_header(); - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - bool has_payload_chunk() const; - private: - bool _internal_has_payload_chunk() const; - public: - void clear_payload_chunk(); - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* release_payload_chunk(); - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* mutable_payload_chunk(); - void set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk); - private: - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& _internal_payload_chunk() const; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* _internal_mutable_payload_chunk(); - public: - void unsafe_arena_set_allocated_payload_chunk( - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk); - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* unsafe_arena_release_payload_chunk(); - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - bool has_control_message() const; - private: - bool _internal_has_control_message() const; - public: - void clear_control_message(); - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& control_message() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_ControlMessage* release_control_message(); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* mutable_control_message(); - void set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message); - private: - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& _internal_control_message() const; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* _internal_mutable_control_message(); - public: - void unsafe_arena_set_allocated_control_message( - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* unsafe_arena_release_control_message(); - - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - bool has_packet_type() const; - private: - bool _internal_has_packet_type() const; - public: - void clear_packet_type(); - ::location::nearby::connections::PayloadTransferFrame_PacketType packet_type() const; - void set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); - private: - ::location::nearby::connections::PayloadTransferFrame_PacketType _internal_packet_type() const; - void _internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header_; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk_; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message_; - int packet_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class ServiceAddress final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ServiceAddress) */ { - public: - inline ServiceAddress() : ServiceAddress(nullptr) {} - ~ServiceAddress() override; - explicit constexpr ServiceAddress(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ServiceAddress(const ServiceAddress& from); - ServiceAddress(ServiceAddress&& from) noexcept - : ServiceAddress() { - *this = ::std::move(from); - } - - inline ServiceAddress& operator=(const ServiceAddress& from) { - CopyFrom(from); - return *this; - } - inline ServiceAddress& operator=(ServiceAddress&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ServiceAddress& default_instance() { - return *internal_default_instance(); - } - static inline const ServiceAddress* internal_default_instance() { - return reinterpret_cast( - &_ServiceAddress_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(ServiceAddress& a, ServiceAddress& b) { - a.Swap(&b); - } - inline void Swap(ServiceAddress* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ServiceAddress* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ServiceAddress* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ServiceAddress& from); - void MergeFrom(const ServiceAddress& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ServiceAddress* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ServiceAddress"; - } - protected: - explicit ServiceAddress(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIpAddressFieldNumber = 1, - kPortFieldNumber = 2, - }; - // optional bytes ip_address = 1; - bool has_ip_address() const; - private: - bool _internal_has_ip_address() const; - public: - void clear_ip_address(); - const std::string& ip_address() const; - template - void set_ip_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_address(); - PROTOBUF_NODISCARD std::string* release_ip_address(); - void set_allocated_ip_address(std::string* ip_address); - private: - const std::string& _internal_ip_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); - std::string* _internal_mutable_ip_address(); - public: - - // optional int32 port = 2; - bool has_port() const; - private: - bool _internal_has_port() const; - public: - void clear_port(); - int32_t port() const; - void set_port(int32_t value); - private: - int32_t _internal_port() const; - void _internal_set_port(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.ServiceAddress) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; - int32_t port_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAddressCandidatesFieldNumber = 6, - kSsidFieldNumber = 1, - kPasswordFieldNumber = 2, - kGatewayFieldNumber = 4, - kPortFieldNumber = 3, - kFrequencyFieldNumber = 5, - }; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; - int address_candidates_size() const; - private: - int _internal_address_candidates_size() const; - public: - void clear_address_candidates(); - ::location::nearby::connections::ServiceAddress* mutable_address_candidates(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* - mutable_address_candidates(); - private: - const ::location::nearby::connections::ServiceAddress& _internal_address_candidates(int index) const; - ::location::nearby::connections::ServiceAddress* _internal_add_address_candidates(); - public: - const ::location::nearby::connections::ServiceAddress& address_candidates(int index) const; - ::location::nearby::connections::ServiceAddress* add_address_candidates(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& - address_candidates() const; - - // optional string ssid = 1; - bool has_ssid() const; - private: - bool _internal_has_ssid() const; - public: - void clear_ssid(); - const std::string& ssid() const; - template - void set_ssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_ssid(); - PROTOBUF_NODISCARD std::string* release_ssid(); - void set_allocated_ssid(std::string* ssid); - private: - const std::string& _internal_ssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const std::string& value); - std::string* _internal_mutable_ssid(); - public: - - // optional string password = 2; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // optional string gateway = 4 [default = "0.0.0.0"]; - bool has_gateway() const; - private: - bool _internal_has_gateway() const; - public: - void clear_gateway(); - const std::string& gateway() const; - template - void set_gateway(ArgT0&& arg0, ArgT... args); - std::string* mutable_gateway(); - PROTOBUF_NODISCARD std::string* release_gateway(); - void set_allocated_gateway(std::string* gateway); - private: - const std::string& _internal_gateway() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const std::string& value); - std::string* _internal_mutable_gateway(); - public: - - // optional int32 port = 3; - bool has_port() const; - private: - bool _internal_has_port() const; - public: - void clear_port(); - int32_t port() const; - void set_port(int32_t value); - private: - int32_t _internal_port() const; - void _internal_set_port(int32_t value); - public: - - // optional int32 frequency = 5 [default = -1]; - bool has_frequency() const; - private: - bool _internal_has_frequency() const; - public: - void clear_frequency(); - int32_t frequency() const; - void set_frequency(int32_t value); - private: - int32_t _internal_frequency() const; - void _internal_set_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > address_candidates_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gateway_; - int32_t port_; - int32_t frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAddressCandidatesFieldNumber = 3, - kIpAddressFieldNumber = 1, - kWifiPortFieldNumber = 2, - }; - // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; - int address_candidates_size() const; - private: - int _internal_address_candidates_size() const; - public: - void clear_address_candidates(); - ::location::nearby::connections::ServiceAddress* mutable_address_candidates(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* - mutable_address_candidates(); - private: - const ::location::nearby::connections::ServiceAddress& _internal_address_candidates(int index) const; - ::location::nearby::connections::ServiceAddress* _internal_add_address_candidates(); - public: - const ::location::nearby::connections::ServiceAddress& address_candidates(int index) const; - ::location::nearby::connections::ServiceAddress* add_address_candidates(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& - address_candidates() const; - - // optional bytes ip_address = 1; - bool has_ip_address() const; - private: - bool _internal_has_ip_address() const; - public: - void clear_ip_address(); - const std::string& ip_address() const; - template - void set_ip_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_address(); - PROTOBUF_NODISCARD std::string* release_ip_address(); - void set_allocated_ip_address(std::string* ip_address); - private: - const std::string& _internal_ip_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); - std::string* _internal_mutable_ip_address(); - public: - - // optional int32 wifi_port = 2; - bool has_wifi_port() const; - private: - bool _internal_has_wifi_port() const; - public: - void clear_wifi_port(); - int32_t wifi_port() const; - void set_wifi_port(int32_t value); - private: - int32_t _internal_wifi_port() const; - void _internal_set_wifi_port(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > address_candidates_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; - int32_t wifi_port_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceNameFieldNumber = 1, - kMacAddressFieldNumber = 2, - }; - // optional string service_name = 1; - bool has_service_name() const; - private: - bool _internal_has_service_name() const; - public: - void clear_service_name(); - const std::string& service_name() const; - template - void set_service_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_name(); - PROTOBUF_NODISCARD std::string* release_service_name(); - void set_allocated_service_name(std::string* service_name); - private: - const std::string& _internal_service_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const std::string& value); - std::string* _internal_mutable_service_name(); - public: - - // optional string mac_address = 2; - bool has_mac_address() const; - private: - bool _internal_has_mac_address() const; - public: - void clear_mac_address(); - const std::string& mac_address() const; - template - void set_mac_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_mac_address(); - PROTOBUF_NODISCARD std::string* release_mac_address(); - void set_allocated_mac_address(std::string* mac_address); - private: - const std::string& _internal_mac_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mac_address(const std::string& value); - std::string* _internal_mutable_mac_address(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mac_address_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceIdFieldNumber = 1, - kServiceInfoFieldNumber = 2, - kPasswordFieldNumber = 3, - }; - // optional string service_id = 1; - bool has_service_id() const; - private: - bool _internal_has_service_id() const; - public: - void clear_service_id(); - const std::string& service_id() const; - template - void set_service_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id(); - PROTOBUF_NODISCARD std::string* release_service_id(); - void set_allocated_service_id(std::string* service_id); - private: - const std::string& _internal_service_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const std::string& value); - std::string* _internal_mutable_service_id(); - public: - - // optional bytes service_info = 2; - bool has_service_info() const; - private: - bool _internal_has_service_info() const; - public: - void clear_service_info(); - const std::string& service_info() const; - template - void set_service_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_info(); - PROTOBUF_NODISCARD std::string* release_service_info(); - void set_allocated_service_info(std::string* service_info); - private: - const std::string& _internal_service_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_info(const std::string& value); - std::string* _internal_mutable_service_info(); - public: - - // optional string password = 3; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_info_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSsidFieldNumber = 1, - kPasswordFieldNumber = 2, - kGatewayFieldNumber = 5, - kIpV6AddressFieldNumber = 6, - kServiceNameFieldNumber = 7, - kPinFieldNumber = 8, - kPortFieldNumber = 3, - kFrequencyFieldNumber = 4, - }; - // optional string ssid = 1; - bool has_ssid() const; - private: - bool _internal_has_ssid() const; - public: - void clear_ssid(); - const std::string& ssid() const; - template - void set_ssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_ssid(); - PROTOBUF_NODISCARD std::string* release_ssid(); - void set_allocated_ssid(std::string* ssid); - private: - const std::string& _internal_ssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const std::string& value); - std::string* _internal_mutable_ssid(); - public: - - // optional string password = 2; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // optional string gateway = 5 [default = "0.0.0.0"]; - bool has_gateway() const; - private: - bool _internal_has_gateway() const; - public: - void clear_gateway(); - const std::string& gateway() const; - template - void set_gateway(ArgT0&& arg0, ArgT... args); - std::string* mutable_gateway(); - PROTOBUF_NODISCARD std::string* release_gateway(); - void set_allocated_gateway(std::string* gateway); - private: - const std::string& _internal_gateway() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const std::string& value); - std::string* _internal_mutable_gateway(); - public: - - // optional bytes ip_v6_address = 6; - bool has_ip_v6_address() const; - private: - bool _internal_has_ip_v6_address() const; - public: - void clear_ip_v6_address(); - const std::string& ip_v6_address() const; - template - void set_ip_v6_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_v6_address(); - PROTOBUF_NODISCARD std::string* release_ip_v6_address(); - void set_allocated_ip_v6_address(std::string* ip_v6_address); - private: - const std::string& _internal_ip_v6_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_v6_address(const std::string& value); - std::string* _internal_mutable_ip_v6_address(); - public: - - // optional string service_name = 7; - bool has_service_name() const; - private: - bool _internal_has_service_name() const; - public: - void clear_service_name(); - const std::string& service_name() const; - template - void set_service_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_name(); - PROTOBUF_NODISCARD std::string* release_service_name(); - void set_allocated_service_name(std::string* service_name); - private: - const std::string& _internal_service_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const std::string& value); - std::string* _internal_mutable_service_name(); - public: - - // optional string pin = 8; - bool has_pin() const; - private: - bool _internal_has_pin() const; - public: - void clear_pin(); - const std::string& pin() const; - template - void set_pin(ArgT0&& arg0, ArgT... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* pin); - private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); - std::string* _internal_mutable_pin(); - public: - - // optional int32 port = 3; - bool has_port() const; - private: - bool _internal_has_port() const; - public: - void clear_port(); - int32_t port() const; - void set_port(int32_t value); - private: - int32_t _internal_port() const; - void _internal_set_port(int32_t value); - public: - - // optional int32 frequency = 4; - bool has_frequency() const; - private: - bool _internal_has_frequency() const; - public: - void clear_frequency(); - int32_t frequency() const; - void set_frequency(int32_t value); - private: - int32_t _internal_frequency() const; - void _internal_set_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gateway_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_v6_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; - int32_t port_; - int32_t frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerIdFieldNumber = 1, - kLocationHintFieldNumber = 2, - }; - // optional string peer_id = 1; - bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: - void clear_peer_id(); - const std::string& peer_id() const; - template - void set_peer_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_peer_id(); - PROTOBUF_NODISCARD std::string* release_peer_id(); - void set_allocated_peer_id(std::string* peer_id); - private: - const std::string& _internal_peer_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_peer_id(const std::string& value); - std::string* _internal_mutable_peer_id(); - public: - - // optional .location.nearby.connections.LocationHint location_hint = 2; - bool has_location_hint() const; - private: - bool _internal_has_location_hint() const; - public: - void clear_location_hint(); - const ::location::nearby::connections::LocationHint& location_hint() const; - PROTOBUF_NODISCARD ::location::nearby::connections::LocationHint* release_location_hint(); - ::location::nearby::connections::LocationHint* mutable_location_hint(); - void set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint); - private: - const ::location::nearby::connections::LocationHint& _internal_location_hint() const; - ::location::nearby::connections::LocationHint* _internal_mutable_location_hint(); - public: - void unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint); - ::location::nearby::connections::LocationHint* unsafe_arena_release_location_hint(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr peer_id_; - ::location::nearby::connections::LocationHint* location_hint_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceNameFieldNumber = 1, - kServiceTypeFieldNumber = 2, - kPasswordFieldNumber = 3, - }; - // optional string service_name = 1; - bool has_service_name() const; - private: - bool _internal_has_service_name() const; - public: - void clear_service_name(); - const std::string& service_name() const; - template - void set_service_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_name(); - PROTOBUF_NODISCARD std::string* release_service_name(); - void set_allocated_service_name(std::string* service_name); - private: - const std::string& _internal_service_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const std::string& value); - std::string* _internal_mutable_service_name(); - public: - - // optional string service_type = 2; - bool has_service_type() const; - private: - bool _internal_has_service_type() const; - public: - void clear_service_type(); - const std::string& service_type() const; - template - void set_service_type(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_type(); - PROTOBUF_NODISCARD std::string* release_service_type(); - void set_allocated_service_type(std::string* service_type); - private: - const std::string& _internal_service_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_type(const std::string& value); - std::string* _internal_mutable_service_type(); - public: - - // optional string password = 3; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) */ { +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) */ { public: inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest() PROTOBUF_FINAL; - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(nullptr, ::std::move(from)) {} inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) { CopyFrom(from); return *this; } inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4594,87 +9455,102 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* other) { + static constexpr int kIndexInFileMessages = 16; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* other) { + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMediumsFieldNumber = 1, kMediumMetaDataFieldNumber = 2, @@ -4683,77 +9559,100 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final int mediums_size() const; private: int _internal_mediums_size() const; + public: - void clear_mediums(); - private: - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium _internal_mediums(int index) const; - void _internal_add_mediums(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_mediums(); + void clear_mediums() ; public: ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium mediums(int index) const; void set_mediums(int index, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); void add_mediums(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& mediums() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_mediums(); + const ::google::protobuf::RepeatedField& mediums() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_mediums(); + private: + const ::google::protobuf::RepeatedField& _internal_mediums() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_mediums(); + + public: // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; bool has_medium_meta_data() const; - private: - bool _internal_has_medium_meta_data() const; - public: - void clear_medium_meta_data(); + void clear_medium_meta_data() ; const ::location::nearby::connections::MediumMetadata& medium_meta_data() const; - PROTOBUF_NODISCARD ::location::nearby::connections::MediumMetadata* release_medium_meta_data(); - ::location::nearby::connections::MediumMetadata* mutable_medium_meta_data(); - void set_allocated_medium_meta_data(::location::nearby::connections::MediumMetadata* medium_meta_data); + [[nodiscard]] ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE release_medium_meta_data(); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL mutable_medium_meta_data(); + void set_allocated_medium_meta_data(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_medium_meta_data(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE unsafe_arena_release_medium_meta_data(); + private: const ::location::nearby::connections::MediumMetadata& _internal_medium_meta_data() const; - ::location::nearby::connections::MediumMetadata* _internal_mutable_medium_meta_data(); - public: - void unsafe_arena_set_allocated_medium_meta_data( - ::location::nearby::connections::MediumMetadata* medium_meta_data); - ::location::nearby::connections::MediumMetadata* unsafe_arena_release_medium_meta_data(); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL _internal_mutable_medium_meta_data(); + public: // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField mediums_; - mutable std::atomic _mediums_cached_byte_size_; - ::location::nearby::connections::MediumMetadata* medium_meta_data_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField mediums_; + ::google::protobuf::internal::CachedSize _mediums_cached_byte_size_; + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE medium_meta_data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<96> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_class_data_; // ------------------------------------------------------------------- -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) */ { +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) */ { public: inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo() PROTOBUF_FINAL; - BandwidthUpgradeNegotiationFrame_UpgradePathInfo(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo(BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo)); } +#endif + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) : BandwidthUpgradeNegotiationFrame_UpgradePathInfo(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo(BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo(nullptr, ::std::move(from)) {} inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { CopyFrom(from); return *this; } inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4761,144 +9660,138 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { + static constexpr int kIndexInFileMessages = 17; + friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BandwidthUpgradeNegotiationFrame_UpgradePathInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo"; } + + explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); + BandwidthUpgradeNegotiationFrame_UpgradePathInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept + : BandwidthUpgradeNegotiationFrame_UpgradePathInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials WifiHotspotCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket WifiLanSocket; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials BluetoothCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials WifiAwareCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials WifiDirectCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials WebRtcCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials AwdlCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest UpgradePathRequest; - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium Medium; - static constexpr Medium UNKNOWN_MEDIUM = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM; - PROTOBUF_DEPRECATED_ENUM static constexpr Medium MDNS = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS; - static constexpr Medium BLUETOOTH = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH; - static constexpr Medium WIFI_HOTSPOT = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT; - static constexpr Medium BLE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE; - static constexpr Medium WIFI_LAN = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_LAN; - static constexpr Medium WIFI_AWARE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE; - static constexpr Medium NFC = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC; - static constexpr Medium WIFI_DIRECT = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT; - static constexpr Medium WEB_RTC = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC; - static constexpr Medium USB = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB; - static constexpr Medium WEB_RTC_NON_CELLULAR = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR; - static constexpr Medium AWDL = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_AWDL; + using WifiHotspotCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials; + using WifiLanSocket = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket; + using BluetoothCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials; + using WifiAwareCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials; + using WifiDirectCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials; + using WebRtcCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials; + using AwdlCredentials = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials; + using UpgradePathRequest = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest; + using Medium = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium; + static constexpr Medium UNKNOWN_MEDIUM = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM; + [[deprecated]] static constexpr Medium MDNS = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS; + static constexpr Medium BLUETOOTH = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH; + static constexpr Medium WIFI_HOTSPOT = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT; + static constexpr Medium BLE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE; + static constexpr Medium WIFI_LAN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_LAN; + static constexpr Medium WIFI_AWARE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE; + static constexpr Medium NFC = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC; + static constexpr Medium WIFI_DIRECT = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT; + static constexpr Medium WEB_RTC = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC; + static constexpr Medium USB = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB; + static constexpr Medium WEB_RTC_NON_CELLULAR = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR; + static constexpr Medium AWDL = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_AWDL; static inline bool Medium_IsValid(int value) { return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value); } - static constexpr Medium Medium_MIN = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN; - static constexpr Medium Medium_MAX = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX; - static constexpr int Medium_ARRAYSIZE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE; - template - static inline const std::string& Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(enum_t_value); + static constexpr Medium Medium_MIN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN; + static constexpr Medium Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX; + static constexpr int Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE; + template + static inline const ::std::string& Medium_Name(T value) { + return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(value); } - static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Medium* value) { + static inline bool Medium_Parse( + ::absl::string_view name, Medium* PROTOBUF_NONNULL value) { return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kWifiHotspotCredentialsFieldNumber = 2, kWifiLanSocketFieldNumber = 3, @@ -4914,683 +9807,229 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : }; // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; bool has_wifi_hotspot_credentials() const; - private: - bool _internal_has_wifi_hotspot_credentials() const; - public: - void clear_wifi_hotspot_credentials(); + void clear_wifi_hotspot_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& wifi_hotspot_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* release_wifi_hotspot_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* mutable_wifi_hotspot_credentials(); - void set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE release_wifi_hotspot_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL mutable_wifi_hotspot_credentials(); + void set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE unsafe_arena_release_wifi_hotspot_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& _internal_wifi_hotspot_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _internal_mutable_wifi_hotspot_credentials(); - public: - void unsafe_arena_set_allocated_wifi_hotspot_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* unsafe_arena_release_wifi_hotspot_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL _internal_mutable_wifi_hotspot_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; bool has_wifi_lan_socket() const; - private: - bool _internal_has_wifi_lan_socket() const; - public: - void clear_wifi_lan_socket(); + void clear_wifi_lan_socket() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& wifi_lan_socket() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* release_wifi_lan_socket(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* mutable_wifi_lan_socket(); - void set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE release_wifi_lan_socket(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL mutable_wifi_lan_socket(); + void set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE unsafe_arena_release_wifi_lan_socket(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& _internal_wifi_lan_socket() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _internal_mutable_wifi_lan_socket(); - public: - void unsafe_arena_set_allocated_wifi_lan_socket( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* unsafe_arena_release_wifi_lan_socket(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL _internal_mutable_wifi_lan_socket(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; bool has_bluetooth_credentials() const; - private: - bool _internal_has_bluetooth_credentials() const; - public: - void clear_bluetooth_credentials(); + void clear_bluetooth_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& bluetooth_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* release_bluetooth_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* mutable_bluetooth_credentials(); - void set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE release_bluetooth_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL mutable_bluetooth_credentials(); + void set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE unsafe_arena_release_bluetooth_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& _internal_bluetooth_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _internal_mutable_bluetooth_credentials(); - public: - void unsafe_arena_set_allocated_bluetooth_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* unsafe_arena_release_bluetooth_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL _internal_mutable_bluetooth_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; bool has_wifi_aware_credentials() const; - private: - bool _internal_has_wifi_aware_credentials() const; - public: - void clear_wifi_aware_credentials(); + void clear_wifi_aware_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& wifi_aware_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* release_wifi_aware_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* mutable_wifi_aware_credentials(); - void set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE release_wifi_aware_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL mutable_wifi_aware_credentials(); + void set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE unsafe_arena_release_wifi_aware_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& _internal_wifi_aware_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _internal_mutable_wifi_aware_credentials(); - public: - void unsafe_arena_set_allocated_wifi_aware_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* unsafe_arena_release_wifi_aware_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL _internal_mutable_wifi_aware_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; bool has_wifi_direct_credentials() const; - private: - bool _internal_has_wifi_direct_credentials() const; - public: - void clear_wifi_direct_credentials(); + void clear_wifi_direct_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& wifi_direct_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* release_wifi_direct_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* mutable_wifi_direct_credentials(); - void set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE release_wifi_direct_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL mutable_wifi_direct_credentials(); + void set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE unsafe_arena_release_wifi_direct_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& _internal_wifi_direct_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _internal_mutable_wifi_direct_credentials(); - public: - void unsafe_arena_set_allocated_wifi_direct_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* unsafe_arena_release_wifi_direct_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL _internal_mutable_wifi_direct_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; bool has_web_rtc_credentials() const; - private: - bool _internal_has_web_rtc_credentials() const; - public: - void clear_web_rtc_credentials(); + void clear_web_rtc_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& web_rtc_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* release_web_rtc_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* mutable_web_rtc_credentials(); - void set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE release_web_rtc_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL mutable_web_rtc_credentials(); + void set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE unsafe_arena_release_web_rtc_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& _internal_web_rtc_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _internal_mutable_web_rtc_credentials(); - public: - void unsafe_arena_set_allocated_web_rtc_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* unsafe_arena_release_web_rtc_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL _internal_mutable_web_rtc_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; bool has_upgrade_path_request() const; - private: - bool _internal_has_upgrade_path_request() const; - public: - void clear_upgrade_path_request(); + void clear_upgrade_path_request() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& upgrade_path_request() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* release_upgrade_path_request(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* mutable_upgrade_path_request(); - void set_allocated_upgrade_path_request(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE release_upgrade_path_request(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL mutable_upgrade_path_request(); + void set_allocated_upgrade_path_request(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_upgrade_path_request(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE unsafe_arena_release_upgrade_path_request(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& _internal_upgrade_path_request() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* _internal_mutable_upgrade_path_request(); - public: - void unsafe_arena_set_allocated_upgrade_path_request( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* unsafe_arena_release_upgrade_path_request(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL _internal_mutable_upgrade_path_request(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; bool has_awdl_credentials() const; - private: - bool _internal_has_awdl_credentials() const; - public: - void clear_awdl_credentials(); + void clear_awdl_credentials() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& awdl_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* release_awdl_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* mutable_awdl_credentials(); - void set_allocated_awdl_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* awdl_credentials); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE release_awdl_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL mutable_awdl_credentials(); + void set_allocated_awdl_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_awdl_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE unsafe_arena_release_awdl_credentials(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& _internal_awdl_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* _internal_mutable_awdl_credentials(); - public: - void unsafe_arena_set_allocated_awdl_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* awdl_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* unsafe_arena_release_awdl_credentials(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL _internal_mutable_awdl_credentials(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); + void clear_medium() ; ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium medium() const; void set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); + private: ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium _internal_medium() const; void _internal_set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); - public: + public: // optional bool supports_disabling_encryption = 7; bool has_supports_disabling_encryption() const; - private: - bool _internal_has_supports_disabling_encryption() const; - public: - void clear_supports_disabling_encryption(); + void clear_supports_disabling_encryption() ; bool supports_disabling_encryption() const; void set_supports_disabling_encryption(bool value); + private: bool _internal_supports_disabling_encryption() const; void _internal_set_supports_disabling_encryption(bool value); - public: + public: // optional bool supports_client_introduction_ack = 9; bool has_supports_client_introduction_ack() const; - private: - bool _internal_has_supports_client_introduction_ack() const; - public: - void clear_supports_client_introduction_ack(); + void clear_supports_client_introduction_ack() ; bool supports_client_introduction_ack() const; void set_supports_client_introduction_ack(bool value); + private: bool _internal_supports_client_introduction_ack() const; void _internal_set_supports_client_introduction_ack(bool value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, + 9, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* awdl_credentials_; - int medium_; - bool supports_disabling_encryption_; - bool supports_client_introduction_ack_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) */ { - public: - inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from); - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept - : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& a, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStaFrequencyFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE wifi_hotspot_credentials_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE wifi_lan_socket_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE bluetooth_credentials_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE wifi_aware_credentials_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE wifi_direct_credentials_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE web_rtc_credentials_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE upgrade_path_request_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE awdl_credentials_; + int medium_; + bool supports_disabling_encryption_; + bool supports_client_introduction_ack_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional int32 sta_frequency = 1; - bool has_sta_frequency() const; - private: - bool _internal_has_sta_frequency() const; - public: - void clear_sta_frequency(); - int32_t sta_frequency() const; - void set_sta_frequency(int32_t value); - private: - int32_t _internal_sta_frequency() const; - void _internal_set_sta_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t sta_frequency_; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<77> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_class_data_; // ------------------------------------------------------------------- -class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) */ { - public: - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction() : BandwidthUpgradeNegotiationFrame_ClientIntroduction(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroduction() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_ClientIntroduction(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - BandwidthUpgradeNegotiationFrame_ClientIntroduction(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept - : BandwidthUpgradeNegotiationFrame_ClientIntroduction() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_ClientIntroduction& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_ClientIntroduction* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_ClientIntroduction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_ClientIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEndpointIdFieldNumber = 1, - kLastEndpointIdFieldNumber = 3, - kSupportsDisablingEncryptionFieldNumber = 2, - }; - // optional string endpoint_id = 1; - bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: - - // optional string last_endpoint_id = 3; - bool has_last_endpoint_id() const; - private: - bool _internal_has_last_endpoint_id() const; - public: - void clear_last_endpoint_id(); - const std::string& last_endpoint_id() const; - template - void set_last_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_last_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_last_endpoint_id(); - void set_allocated_last_endpoint_id(std::string* last_endpoint_id); - private: - const std::string& _internal_last_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_endpoint_id(const std::string& value); - std::string* _internal_mutable_last_endpoint_id(); - public: - - // optional bool supports_disabling_encryption = 2; - bool has_supports_disabling_encryption() const; - private: - bool _internal_has_supports_disabling_encryption() const; - public: - void clear_supports_disabling_encryption(); - bool supports_disabling_encryption() const; - void set_supports_disabling_encryption(bool value); - private: - bool _internal_supports_disabling_encryption() const; - void _internal_set_supports_disabling_encryption(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_endpoint_id_; - bool supports_disabling_encryption_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) */ { - public: - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept - : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame) */ { +class BandwidthUpgradeNegotiationFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame) */ { public: inline BandwidthUpgradeNegotiationFrame() : BandwidthUpgradeNegotiationFrame(nullptr) {} - ~BandwidthUpgradeNegotiationFrame() override; - explicit constexpr BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~BandwidthUpgradeNegotiationFrame() PROTOBUF_FINAL; - BandwidthUpgradeNegotiationFrame(const BandwidthUpgradeNegotiationFrame& from); - BandwidthUpgradeNegotiationFrame(BandwidthUpgradeNegotiationFrame&& from) noexcept - : BandwidthUpgradeNegotiationFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BandwidthUpgradeNegotiationFrame)); } +#endif + template + explicit PROTOBUF_CONSTEXPR BandwidthUpgradeNegotiationFrame(::google::protobuf::internal::ConstantInitialized); + + inline BandwidthUpgradeNegotiationFrame(const BandwidthUpgradeNegotiationFrame& from) : BandwidthUpgradeNegotiationFrame(nullptr, from) {} + inline BandwidthUpgradeNegotiationFrame(BandwidthUpgradeNegotiationFrame&& from) noexcept + : BandwidthUpgradeNegotiationFrame(nullptr, ::std::move(from)) {} inline BandwidthUpgradeNegotiationFrame& operator=(const BandwidthUpgradeNegotiationFrame& from) { CopyFrom(from); return *this; } inline BandwidthUpgradeNegotiationFrame& operator=(BandwidthUpgradeNegotiationFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5598,130 +10037,129 @@ class BandwidthUpgradeNegotiationFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const BandwidthUpgradeNegotiationFrame& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_BandwidthUpgradeNegotiationFrame_default_instance_); } - static inline const BandwidthUpgradeNegotiationFrame* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame* other) { + static constexpr int kIndexInFileMessages = 21; + friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) { a.Swap(&b); } + inline void Swap(BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame* other) { + void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BandwidthUpgradeNegotiationFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const BandwidthUpgradeNegotiationFrame& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const BandwidthUpgradeNegotiationFrame& from) { BandwidthUpgradeNegotiationFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.BandwidthUpgradeNegotiationFrame"; } + + explicit BandwidthUpgradeNegotiationFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BandwidthUpgradeNegotiationFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BandwidthUpgradeNegotiationFrame& from); + BandwidthUpgradeNegotiationFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BandwidthUpgradeNegotiationFrame&& from) noexcept + : BandwidthUpgradeNegotiationFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo UpgradePathInfo; - typedef BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel SafeToClosePriorChannel; - typedef BandwidthUpgradeNegotiationFrame_ClientIntroduction ClientIntroduction; - typedef BandwidthUpgradeNegotiationFrame_ClientIntroductionAck ClientIntroductionAck; - - typedef BandwidthUpgradeNegotiationFrame_EventType EventType; - static constexpr EventType UNKNOWN_EVENT_TYPE = - BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE; - static constexpr EventType UPGRADE_PATH_AVAILABLE = - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE; - static constexpr EventType LAST_WRITE_TO_PRIOR_CHANNEL = - BandwidthUpgradeNegotiationFrame_EventType_LAST_WRITE_TO_PRIOR_CHANNEL; - static constexpr EventType SAFE_TO_CLOSE_PRIOR_CHANNEL = - BandwidthUpgradeNegotiationFrame_EventType_SAFE_TO_CLOSE_PRIOR_CHANNEL; - static constexpr EventType CLIENT_INTRODUCTION = - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION; - static constexpr EventType UPGRADE_FAILURE = - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE; - static constexpr EventType CLIENT_INTRODUCTION_ACK = - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK; - static constexpr EventType UPGRADE_PATH_REQUEST = - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_REQUEST; + using UpgradePathInfo = BandwidthUpgradeNegotiationFrame_UpgradePathInfo; + using SafeToClosePriorChannel = BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel; + using ClientIntroduction = BandwidthUpgradeNegotiationFrame_ClientIntroduction; + using ClientIntroductionAck = BandwidthUpgradeNegotiationFrame_ClientIntroductionAck; + using EventType = BandwidthUpgradeNegotiationFrame_EventType; + static constexpr EventType UNKNOWN_EVENT_TYPE = BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE; + static constexpr EventType UPGRADE_PATH_AVAILABLE = BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE; + static constexpr EventType LAST_WRITE_TO_PRIOR_CHANNEL = BandwidthUpgradeNegotiationFrame_EventType_LAST_WRITE_TO_PRIOR_CHANNEL; + static constexpr EventType SAFE_TO_CLOSE_PRIOR_CHANNEL = BandwidthUpgradeNegotiationFrame_EventType_SAFE_TO_CLOSE_PRIOR_CHANNEL; + static constexpr EventType CLIENT_INTRODUCTION = BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION; + static constexpr EventType UPGRADE_FAILURE = BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE; + static constexpr EventType CLIENT_INTRODUCTION_ACK = BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK; + static constexpr EventType UPGRADE_PATH_REQUEST = BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_REQUEST; static inline bool EventType_IsValid(int value) { return BandwidthUpgradeNegotiationFrame_EventType_IsValid(value); } - static constexpr EventType EventType_MIN = - BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return BandwidthUpgradeNegotiationFrame_EventType_Name(enum_t_value); + static constexpr EventType EventType_MIN = BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN; + static constexpr EventType EventType_MAX = BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX; + static constexpr int EventType_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE; + template + static inline const ::std::string& EventType_Name(T value) { + return BandwidthUpgradeNegotiationFrame_EventType_Name(value); } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { + static inline bool EventType_Parse( + ::absl::string_view name, EventType* PROTOBUF_NONNULL value) { return BandwidthUpgradeNegotiationFrame_EventType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kUpgradePathInfoFieldNumber = 2, kClientIntroductionFieldNumber = 3, @@ -5731,340 +10169,141 @@ class BandwidthUpgradeNegotiationFrame final : }; // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; bool has_upgrade_path_info() const; - private: - bool _internal_has_upgrade_path_info() const; - public: - void clear_upgrade_path_info(); + void clear_upgrade_path_info() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& upgrade_path_info() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* release_upgrade_path_info(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* mutable_upgrade_path_info(); - void set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE release_upgrade_path_info(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL mutable_upgrade_path_info(); + void set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE unsafe_arena_release_upgrade_path_info(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& _internal_upgrade_path_info() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _internal_mutable_upgrade_path_info(); - public: - void unsafe_arena_set_allocated_upgrade_path_info( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* unsafe_arena_release_upgrade_path_info(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL _internal_mutable_upgrade_path_info(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; bool has_client_introduction() const; - private: - bool _internal_has_client_introduction() const; - public: - void clear_client_introduction(); + void clear_client_introduction() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& client_introduction() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* release_client_introduction(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* mutable_client_introduction(); - void set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE release_client_introduction(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL mutable_client_introduction(); + void set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE unsafe_arena_release_client_introduction(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& _internal_client_introduction() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* _internal_mutable_client_introduction(); - public: - void unsafe_arena_set_allocated_client_introduction( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* unsafe_arena_release_client_introduction(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL _internal_mutable_client_introduction(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; bool has_client_introduction_ack() const; - private: - bool _internal_has_client_introduction_ack() const; - public: - void clear_client_introduction_ack(); + void clear_client_introduction_ack() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& client_introduction_ack() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* release_client_introduction_ack(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* mutable_client_introduction_ack(); - void set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE release_client_introduction_ack(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL mutable_client_introduction_ack(); + void set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE unsafe_arena_release_client_introduction_ack(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& _internal_client_introduction_ack() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _internal_mutable_client_introduction_ack(); - public: - void unsafe_arena_set_allocated_client_introduction_ack( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* unsafe_arena_release_client_introduction_ack(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL _internal_mutable_client_introduction_ack(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; bool has_safe_to_close_prior_channel() const; - private: - bool _internal_has_safe_to_close_prior_channel() const; - public: - void clear_safe_to_close_prior_channel(); + void clear_safe_to_close_prior_channel() ; const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& safe_to_close_prior_channel() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* release_safe_to_close_prior_channel(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* mutable_safe_to_close_prior_channel(); - void set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel); + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE release_safe_to_close_prior_channel(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL mutable_safe_to_close_prior_channel(); + void set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE unsafe_arena_release_safe_to_close_prior_channel(); + private: const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& _internal_safe_to_close_prior_channel() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _internal_mutable_safe_to_close_prior_channel(); - public: - void unsafe_arena_set_allocated_safe_to_close_prior_channel( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* unsafe_arena_release_safe_to_close_prior_channel(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL _internal_mutable_safe_to_close_prior_channel(); + public: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); + void clear_event_type() ; ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType event_type() const; void set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value); + private: ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType _internal_event_type() const; void _internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 5, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel_; - int event_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeRetryFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeRetryFrame) */ { - public: - inline BandwidthUpgradeRetryFrame() : BandwidthUpgradeRetryFrame(nullptr) {} - ~BandwidthUpgradeRetryFrame() override; - explicit constexpr BandwidthUpgradeRetryFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeRetryFrame(const BandwidthUpgradeRetryFrame& from); - BandwidthUpgradeRetryFrame(BandwidthUpgradeRetryFrame&& from) noexcept - : BandwidthUpgradeRetryFrame() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeRetryFrame& operator=(const BandwidthUpgradeRetryFrame& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeRetryFrame& operator=(BandwidthUpgradeRetryFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeRetryFrame& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeRetryFrame* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeRetryFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(BandwidthUpgradeRetryFrame& a, BandwidthUpgradeRetryFrame& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeRetryFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeRetryFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeRetryFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeRetryFrame& from); - void MergeFrom(const BandwidthUpgradeRetryFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeRetryFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeRetryFrame"; - } - protected: - explicit BandwidthUpgradeRetryFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef BandwidthUpgradeRetryFrame_Medium Medium; - static constexpr Medium UNKNOWN_MEDIUM = - BandwidthUpgradeRetryFrame_Medium_UNKNOWN_MEDIUM; - static constexpr Medium BLUETOOTH = - BandwidthUpgradeRetryFrame_Medium_BLUETOOTH; - static constexpr Medium WIFI_HOTSPOT = - BandwidthUpgradeRetryFrame_Medium_WIFI_HOTSPOT; - static constexpr Medium BLE = - BandwidthUpgradeRetryFrame_Medium_BLE; - static constexpr Medium WIFI_LAN = - BandwidthUpgradeRetryFrame_Medium_WIFI_LAN; - static constexpr Medium WIFI_AWARE = - BandwidthUpgradeRetryFrame_Medium_WIFI_AWARE; - static constexpr Medium NFC = - BandwidthUpgradeRetryFrame_Medium_NFC; - static constexpr Medium WIFI_DIRECT = - BandwidthUpgradeRetryFrame_Medium_WIFI_DIRECT; - static constexpr Medium WEB_RTC = - BandwidthUpgradeRetryFrame_Medium_WEB_RTC; - static constexpr Medium BLE_L2CAP = - BandwidthUpgradeRetryFrame_Medium_BLE_L2CAP; - static constexpr Medium USB = - BandwidthUpgradeRetryFrame_Medium_USB; - static constexpr Medium WEB_RTC_NON_CELLULAR = - BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR; - static constexpr Medium AWDL = - BandwidthUpgradeRetryFrame_Medium_AWDL; - static inline bool Medium_IsValid(int value) { - return BandwidthUpgradeRetryFrame_Medium_IsValid(value); - } - static constexpr Medium Medium_MIN = - BandwidthUpgradeRetryFrame_Medium_Medium_MIN; - static constexpr Medium Medium_MAX = - BandwidthUpgradeRetryFrame_Medium_Medium_MAX; - static constexpr int Medium_ARRAYSIZE = - BandwidthUpgradeRetryFrame_Medium_Medium_ARRAYSIZE; - template - static inline const std::string& Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return BandwidthUpgradeRetryFrame_Medium_Name(enum_t_value); - } - static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Medium* value) { - return BandwidthUpgradeRetryFrame_Medium_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSupportedMediumFieldNumber = 1, - kIsRequestFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BandwidthUpgradeNegotiationFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE upgrade_path_info_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE client_introduction_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE client_introduction_ack_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE safe_to_close_prior_channel_; + int event_type_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; - int supported_medium_size() const; - private: - int _internal_supported_medium_size() const; - public: - void clear_supported_medium(); - private: - ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium _internal_supported_medium(int index) const; - void _internal_add_supported_medium(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_supported_medium(); - public: - ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium supported_medium(int index) const; - void set_supported_medium(int index, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value); - void add_supported_medium(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& supported_medium() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_supported_medium(); - - // optional bool is_request = 2; - bool has_is_request() const; - private: - bool _internal_has_is_request() const; - public: - void clear_is_request(); - bool is_request() const; - void set_is_request(bool value); - private: - bool _internal_is_request() const; - void _internal_set_is_request(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeRetryFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField supported_medium_; - bool is_request_; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<61> BandwidthUpgradeNegotiationFrame_class_data_; // ------------------------------------------------------------------- -class KeepAliveFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.KeepAliveFrame) */ { +class V1Frame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.V1Frame) */ { public: - inline KeepAliveFrame() : KeepAliveFrame(nullptr) {} - ~KeepAliveFrame() override; - explicit constexpr KeepAliveFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline V1Frame() : V1Frame(nullptr) {} + ~V1Frame() PROTOBUF_FINAL; - KeepAliveFrame(const KeepAliveFrame& from); - KeepAliveFrame(KeepAliveFrame&& from) noexcept - : KeepAliveFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(V1Frame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(V1Frame)); } +#endif - inline KeepAliveFrame& operator=(const KeepAliveFrame& from) { + template + explicit PROTOBUF_CONSTEXPR V1Frame(::google::protobuf::internal::ConstantInitialized); + + inline V1Frame(const V1Frame& from) : V1Frame(nullptr, from) {} + inline V1Frame(V1Frame&& from) noexcept + : V1Frame(nullptr, ::std::move(from)) {} + inline V1Frame& operator=(const V1Frame& from) { CopyFrom(from); return *this; } - inline KeepAliveFrame& operator=(KeepAliveFrame&& from) noexcept { + inline V1Frame& operator=(V1Frame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6072,3061 +10311,410 @@ class KeepAliveFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const KeepAliveFrame& default_instance() { - return *internal_default_instance(); + static const V1Frame& default_instance() { + return *reinterpret_cast( + &_V1Frame_default_instance_); } - static inline const KeepAliveFrame* internal_default_instance() { - return reinterpret_cast( - &_KeepAliveFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) { - a.Swap(&b); - } - inline void Swap(KeepAliveFrame* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(V1Frame& a, V1Frame& b) { a.Swap(&b); } + inline void Swap(V1Frame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(KeepAliveFrame* other) { + void UnsafeArenaSwap(V1Frame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - KeepAliveFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + V1Frame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const KeepAliveFrame& from); - void MergeFrom(const KeepAliveFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const V1Frame& from); + void MergeFrom(const V1Frame& from) { V1Frame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(KeepAliveFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.KeepAliveFrame"; - } - protected: - explicit KeepAliveFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(V1Frame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.V1Frame"; } + + explicit V1Frame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + V1Frame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const V1Frame& from); + V1Frame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, V1Frame&& from) noexcept + : V1Frame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- + using FrameType = V1Frame_FrameType; + static constexpr FrameType UNKNOWN_FRAME_TYPE = V1Frame_FrameType_UNKNOWN_FRAME_TYPE; + static constexpr FrameType CONNECTION_REQUEST = V1Frame_FrameType_CONNECTION_REQUEST; + static constexpr FrameType CONNECTION_RESPONSE = V1Frame_FrameType_CONNECTION_RESPONSE; + static constexpr FrameType PAYLOAD_TRANSFER = V1Frame_FrameType_PAYLOAD_TRANSFER; + static constexpr FrameType BANDWIDTH_UPGRADE_NEGOTIATION = V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION; + static constexpr FrameType KEEP_ALIVE = V1Frame_FrameType_KEEP_ALIVE; + static constexpr FrameType DISCONNECTION = V1Frame_FrameType_DISCONNECTION; + static constexpr FrameType PAIRED_KEY_ENCRYPTION = V1Frame_FrameType_PAIRED_KEY_ENCRYPTION; + static constexpr FrameType AUTHENTICATION_MESSAGE = V1Frame_FrameType_AUTHENTICATION_MESSAGE; + static constexpr FrameType AUTHENTICATION_RESULT = V1Frame_FrameType_AUTHENTICATION_RESULT; + static constexpr FrameType AUTO_RESUME = V1Frame_FrameType_AUTO_RESUME; + static constexpr FrameType AUTO_RECONNECT = V1Frame_FrameType_AUTO_RECONNECT; + static constexpr FrameType BANDWIDTH_UPGRADE_RETRY = V1Frame_FrameType_BANDWIDTH_UPGRADE_RETRY; + static inline bool FrameType_IsValid(int value) { + return V1Frame_FrameType_IsValid(value); + } + static constexpr FrameType FrameType_MIN = V1Frame_FrameType_FrameType_MIN; + static constexpr FrameType FrameType_MAX = V1Frame_FrameType_FrameType_MAX; + static constexpr int FrameType_ARRAYSIZE = V1Frame_FrameType_FrameType_ARRAYSIZE; + template + static inline const ::std::string& FrameType_Name(T value) { + return V1Frame_FrameType_Name(value); + } + static inline bool FrameType_Parse( + ::absl::string_view name, FrameType* PROTOBUF_NONNULL value) { + return V1Frame_FrameType_Parse(name, value); + } // accessors ------------------------------------------------------- - - enum : int { - kAckFieldNumber = 1, - kSeqNumFieldNumber = 2, - }; - // optional bool ack = 1; - bool has_ack() const; - private: - bool _internal_has_ack() const; - public: - void clear_ack(); - bool ack() const; - void set_ack(bool value); - private: - bool _internal_ack() const; - void _internal_set_ack(bool value); - public: - - // optional uint32 seq_num = 2; - bool has_seq_num() const; - private: - bool _internal_has_seq_num() const; - public: - void clear_seq_num(); - uint32_t seq_num() const; - void set_seq_num(uint32_t value); - private: - uint32_t _internal_seq_num() const; - void _internal_set_seq_num(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.KeepAliveFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool ack_; - uint32_t seq_num_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class DisconnectionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.DisconnectionFrame) */ { - public: - inline DisconnectionFrame() : DisconnectionFrame(nullptr) {} - ~DisconnectionFrame() override; - explicit constexpr DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DisconnectionFrame(const DisconnectionFrame& from); - DisconnectionFrame(DisconnectionFrame&& from) noexcept - : DisconnectionFrame() { - *this = ::std::move(from); - } - - inline DisconnectionFrame& operator=(const DisconnectionFrame& from) { - CopyFrom(from); - return *this; - } - inline DisconnectionFrame& operator=(DisconnectionFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const DisconnectionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const DisconnectionFrame* internal_default_instance() { - return reinterpret_cast( - &_DisconnectionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { - a.Swap(&b); - } - inline void Swap(DisconnectionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisconnectionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisconnectionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DisconnectionFrame& from); - void MergeFrom(const DisconnectionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DisconnectionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.DisconnectionFrame"; - } - protected: - explicit DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRequestSafeToDisconnectFieldNumber = 1, - kAckSafeToDisconnectFieldNumber = 2, - }; - // optional bool request_safe_to_disconnect = 1; - bool has_request_safe_to_disconnect() const; - private: - bool _internal_has_request_safe_to_disconnect() const; - public: - void clear_request_safe_to_disconnect(); - bool request_safe_to_disconnect() const; - void set_request_safe_to_disconnect(bool value); - private: - bool _internal_request_safe_to_disconnect() const; - void _internal_set_request_safe_to_disconnect(bool value); - public: - - // optional bool ack_safe_to_disconnect = 2; - bool has_ack_safe_to_disconnect() const; - private: - bool _internal_has_ack_safe_to_disconnect() const; - public: - void clear_ack_safe_to_disconnect(); - bool ack_safe_to_disconnect() const; - void set_ack_safe_to_disconnect(bool value); - private: - bool _internal_ack_safe_to_disconnect() const; - void _internal_set_ack_safe_to_disconnect(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.DisconnectionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool request_safe_to_disconnect_; - bool ack_safe_to_disconnect_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PairedKeyEncryptionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PairedKeyEncryptionFrame) */ { - public: - inline PairedKeyEncryptionFrame() : PairedKeyEncryptionFrame(nullptr) {} - ~PairedKeyEncryptionFrame() override; - explicit constexpr PairedKeyEncryptionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PairedKeyEncryptionFrame(const PairedKeyEncryptionFrame& from); - PairedKeyEncryptionFrame(PairedKeyEncryptionFrame&& from) noexcept - : PairedKeyEncryptionFrame() { - *this = ::std::move(from); - } - - inline PairedKeyEncryptionFrame& operator=(const PairedKeyEncryptionFrame& from) { - CopyFrom(from); - return *this; - } - inline PairedKeyEncryptionFrame& operator=(PairedKeyEncryptionFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PairedKeyEncryptionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PairedKeyEncryptionFrame* internal_default_instance() { - return reinterpret_cast( - &_PairedKeyEncryptionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) { - a.Swap(&b); - } - inline void Swap(PairedKeyEncryptionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PairedKeyEncryptionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PairedKeyEncryptionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PairedKeyEncryptionFrame& from); - void MergeFrom(const PairedKeyEncryptionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PairedKeyEncryptionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PairedKeyEncryptionFrame"; - } - protected: - explicit PairedKeyEncryptionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSignedDataFieldNumber = 1, - }; - // optional bytes signed_data = 1; - bool has_signed_data() const; - private: - bool _internal_has_signed_data() const; - public: - void clear_signed_data(); - const std::string& signed_data() const; - template - void set_signed_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_signed_data(); - PROTOBUF_NODISCARD std::string* release_signed_data(); - void set_allocated_signed_data(std::string* signed_data); - private: - const std::string& _internal_signed_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signed_data(const std::string& value); - std::string* _internal_mutable_signed_data(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PairedKeyEncryptionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signed_data_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AuthenticationMessageFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationMessageFrame) */ { - public: - inline AuthenticationMessageFrame() : AuthenticationMessageFrame(nullptr) {} - ~AuthenticationMessageFrame() override; - explicit constexpr AuthenticationMessageFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AuthenticationMessageFrame(const AuthenticationMessageFrame& from); - AuthenticationMessageFrame(AuthenticationMessageFrame&& from) noexcept - : AuthenticationMessageFrame() { - *this = ::std::move(from); - } - - inline AuthenticationMessageFrame& operator=(const AuthenticationMessageFrame& from) { - CopyFrom(from); - return *this; - } - inline AuthenticationMessageFrame& operator=(AuthenticationMessageFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AuthenticationMessageFrame& default_instance() { - return *internal_default_instance(); - } - static inline const AuthenticationMessageFrame* internal_default_instance() { - return reinterpret_cast( - &_AuthenticationMessageFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) { - a.Swap(&b); - } - inline void Swap(AuthenticationMessageFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AuthenticationMessageFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AuthenticationMessageFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AuthenticationMessageFrame& from); - void MergeFrom(const AuthenticationMessageFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AuthenticationMessageFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AuthenticationMessageFrame"; - } - protected: - explicit AuthenticationMessageFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthMessageFieldNumber = 1, - }; - // optional bytes auth_message = 1; - bool has_auth_message() const; - private: - bool _internal_has_auth_message() const; - public: - void clear_auth_message(); - const std::string& auth_message() const; - template - void set_auth_message(ArgT0&& arg0, ArgT... args); - std::string* mutable_auth_message(); - PROTOBUF_NODISCARD std::string* release_auth_message(); - void set_allocated_auth_message(std::string* auth_message); - private: - const std::string& _internal_auth_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_auth_message(const std::string& value); - std::string* _internal_mutable_auth_message(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationMessageFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr auth_message_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AuthenticationResultFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationResultFrame) */ { - public: - inline AuthenticationResultFrame() : AuthenticationResultFrame(nullptr) {} - ~AuthenticationResultFrame() override; - explicit constexpr AuthenticationResultFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AuthenticationResultFrame(const AuthenticationResultFrame& from); - AuthenticationResultFrame(AuthenticationResultFrame&& from) noexcept - : AuthenticationResultFrame() { - *this = ::std::move(from); - } - - inline AuthenticationResultFrame& operator=(const AuthenticationResultFrame& from) { - CopyFrom(from); - return *this; - } - inline AuthenticationResultFrame& operator=(AuthenticationResultFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AuthenticationResultFrame& default_instance() { - return *internal_default_instance(); - } - static inline const AuthenticationResultFrame* internal_default_instance() { - return reinterpret_cast( - &_AuthenticationResultFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) { - a.Swap(&b); - } - inline void Swap(AuthenticationResultFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AuthenticationResultFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AuthenticationResultFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AuthenticationResultFrame& from); - void MergeFrom(const AuthenticationResultFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AuthenticationResultFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AuthenticationResultFrame"; - } - protected: - explicit AuthenticationResultFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kResultFieldNumber = 1, - }; - // optional int32 result = 1; - bool has_result() const; - private: - bool _internal_has_result() const; - public: - void clear_result(); - int32_t result() const; - void set_result(int32_t value); - private: - int32_t _internal_result() const; - void _internal_set_result(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationResultFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t result_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AutoResumeFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AutoResumeFrame) */ { - public: - inline AutoResumeFrame() : AutoResumeFrame(nullptr) {} - ~AutoResumeFrame() override; - explicit constexpr AutoResumeFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AutoResumeFrame(const AutoResumeFrame& from); - AutoResumeFrame(AutoResumeFrame&& from) noexcept - : AutoResumeFrame() { - *this = ::std::move(from); - } - - inline AutoResumeFrame& operator=(const AutoResumeFrame& from) { - CopyFrom(from); - return *this; - } - inline AutoResumeFrame& operator=(AutoResumeFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AutoResumeFrame& default_instance() { - return *internal_default_instance(); - } - static inline const AutoResumeFrame* internal_default_instance() { - return reinterpret_cast( - &_AutoResumeFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(AutoResumeFrame& a, AutoResumeFrame& b) { - a.Swap(&b); - } - inline void Swap(AutoResumeFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AutoResumeFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AutoResumeFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AutoResumeFrame& from); - void MergeFrom(const AutoResumeFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AutoResumeFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AutoResumeFrame"; - } - protected: - explicit AutoResumeFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef AutoResumeFrame_EventType EventType; - static constexpr EventType UNKNOWN_AUTO_RESUME_EVENT_TYPE = - AutoResumeFrame_EventType_UNKNOWN_AUTO_RESUME_EVENT_TYPE; - static constexpr EventType PAYLOAD_RESUME_TRANSFER_START = - AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_START; - static constexpr EventType PAYLOAD_RESUME_TRANSFER_ACK = - AutoResumeFrame_EventType_PAYLOAD_RESUME_TRANSFER_ACK; - static inline bool EventType_IsValid(int value) { - return AutoResumeFrame_EventType_IsValid(value); - } - static constexpr EventType EventType_MIN = - AutoResumeFrame_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - AutoResumeFrame_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - AutoResumeFrame_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return AutoResumeFrame_EventType_Name(enum_t_value); - } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { - return AutoResumeFrame_EventType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kPendingPayloadIdFieldNumber = 2, - kEventTypeFieldNumber = 1, - kNextPayloadChunkIndexFieldNumber = 3, - kVersionFieldNumber = 4, - }; - // optional int64 pending_payload_id = 2; - bool has_pending_payload_id() const; - private: - bool _internal_has_pending_payload_id() const; - public: - void clear_pending_payload_id(); - int64_t pending_payload_id() const; - void set_pending_payload_id(int64_t value); - private: - int64_t _internal_pending_payload_id() const; - void _internal_set_pending_payload_id(int64_t value); - public: - - // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; - bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); - ::location::nearby::connections::AutoResumeFrame_EventType event_type() const; - void set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value); - private: - ::location::nearby::connections::AutoResumeFrame_EventType _internal_event_type() const; - void _internal_set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value); - public: - - // optional int32 next_payload_chunk_index = 3; - bool has_next_payload_chunk_index() const; - private: - bool _internal_has_next_payload_chunk_index() const; - public: - void clear_next_payload_chunk_index(); - int32_t next_payload_chunk_index() const; - void set_next_payload_chunk_index(int32_t value); - private: - int32_t _internal_next_payload_chunk_index() const; - void _internal_set_next_payload_chunk_index(int32_t value); - public: - - // optional int32 version = 4; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AutoResumeFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t pending_payload_id_; - int event_type_; - int32_t next_payload_chunk_index_; - int32_t version_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AutoReconnectFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AutoReconnectFrame) */ { - public: - inline AutoReconnectFrame() : AutoReconnectFrame(nullptr) {} - ~AutoReconnectFrame() override; - explicit constexpr AutoReconnectFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AutoReconnectFrame(const AutoReconnectFrame& from); - AutoReconnectFrame(AutoReconnectFrame&& from) noexcept - : AutoReconnectFrame() { - *this = ::std::move(from); - } - - inline AutoReconnectFrame& operator=(const AutoReconnectFrame& from) { - CopyFrom(from); - return *this; - } - inline AutoReconnectFrame& operator=(AutoReconnectFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AutoReconnectFrame& default_instance() { - return *internal_default_instance(); - } - static inline const AutoReconnectFrame* internal_default_instance() { - return reinterpret_cast( - &_AutoReconnectFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(AutoReconnectFrame& a, AutoReconnectFrame& b) { - a.Swap(&b); - } - inline void Swap(AutoReconnectFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AutoReconnectFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AutoReconnectFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AutoReconnectFrame& from); - void MergeFrom(const AutoReconnectFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AutoReconnectFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AutoReconnectFrame"; - } - protected: - explicit AutoReconnectFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef AutoReconnectFrame_EventType EventType; - static constexpr EventType UNKNOWN_EVENT_TYPE = - AutoReconnectFrame_EventType_UNKNOWN_EVENT_TYPE; - static constexpr EventType CLIENT_INTRODUCTION = - AutoReconnectFrame_EventType_CLIENT_INTRODUCTION; - static constexpr EventType CLIENT_INTRODUCTION_ACK = - AutoReconnectFrame_EventType_CLIENT_INTRODUCTION_ACK; - static inline bool EventType_IsValid(int value) { - return AutoReconnectFrame_EventType_IsValid(value); - } - static constexpr EventType EventType_MIN = - AutoReconnectFrame_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - AutoReconnectFrame_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - AutoReconnectFrame_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return AutoReconnectFrame_EventType_Name(enum_t_value); - } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { - return AutoReconnectFrame_EventType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kEndpointIdFieldNumber = 1, - kLastEndpointIdFieldNumber = 3, - kEventTypeFieldNumber = 2, - }; - // optional string endpoint_id = 1; - bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: - - // optional string last_endpoint_id = 3; - bool has_last_endpoint_id() const; - private: - bool _internal_has_last_endpoint_id() const; - public: - void clear_last_endpoint_id(); - const std::string& last_endpoint_id() const; - template - void set_last_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_last_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_last_endpoint_id(); - void set_allocated_last_endpoint_id(std::string* last_endpoint_id); - private: - const std::string& _internal_last_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_endpoint_id(const std::string& value); - std::string* _internal_mutable_last_endpoint_id(); - public: - - // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; - bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); - ::location::nearby::connections::AutoReconnectFrame_EventType event_type() const; - void set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value); - private: - ::location::nearby::connections::AutoReconnectFrame_EventType _internal_event_type() const; - void _internal_set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AutoReconnectFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_endpoint_id_; - int event_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class MediumMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.MediumMetadata) */ { - public: - inline MediumMetadata() : MediumMetadata(nullptr) {} - ~MediumMetadata() override; - explicit constexpr MediumMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MediumMetadata(const MediumMetadata& from); - MediumMetadata(MediumMetadata&& from) noexcept - : MediumMetadata() { - *this = ::std::move(from); - } - - inline MediumMetadata& operator=(const MediumMetadata& from) { - CopyFrom(from); - return *this; - } - inline MediumMetadata& operator=(MediumMetadata&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const MediumMetadata& default_instance() { - return *internal_default_instance(); - } - static inline const MediumMetadata* internal_default_instance() { - return reinterpret_cast( - &_MediumMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(MediumMetadata& a, MediumMetadata& b) { - a.Swap(&b); - } - inline void Swap(MediumMetadata* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MediumMetadata* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MediumMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MediumMetadata& from); - void MergeFrom(const MediumMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MediumMetadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.MediumMetadata"; - } - protected: - explicit MediumMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef MediumMetadata_WifiDirectAuthType WifiDirectAuthType; - static constexpr WifiDirectAuthType WIFI_DIRECT_TYPE_UNKNOWN = - MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_TYPE_UNKNOWN; - static constexpr WifiDirectAuthType WIFI_DIRECT_WITH_PASSWORD = - MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PASSWORD; - static constexpr WifiDirectAuthType WIFI_DIRECT_WITH_PIN = - MediumMetadata_WifiDirectAuthType_WIFI_DIRECT_WITH_PIN; - static inline bool WifiDirectAuthType_IsValid(int value) { - return MediumMetadata_WifiDirectAuthType_IsValid(value); - } - static constexpr WifiDirectAuthType WifiDirectAuthType_MIN = - MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MIN; - static constexpr WifiDirectAuthType WifiDirectAuthType_MAX = - MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_MAX; - static constexpr int WifiDirectAuthType_ARRAYSIZE = - MediumMetadata_WifiDirectAuthType_WifiDirectAuthType_ARRAYSIZE; - template - static inline const std::string& WifiDirectAuthType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function WifiDirectAuthType_Name."); - return MediumMetadata_WifiDirectAuthType_Name(enum_t_value); - } - static inline bool WifiDirectAuthType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - WifiDirectAuthType* value) { - return MediumMetadata_WifiDirectAuthType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSupportedWifiDirectAuthTypesFieldNumber = 13, - kBssidFieldNumber = 2, - kIpAddressFieldNumber = 3, - kAvailableChannelsFieldNumber = 7, - kWifiDirectCliUsableChannelsFieldNumber = 8, - kWifiLanUsableChannelsFieldNumber = 9, - kWifiAwareUsableChannelsFieldNumber = 10, - kWifiHotspotStaUsableChannelsFieldNumber = 11, - kMediumRoleFieldNumber = 12, - kSupports5GhzFieldNumber = 1, - kSupports6GhzFieldNumber = 4, - kMobileRadioFieldNumber = 5, - kApFrequencyFieldNumber = 6, - }; - // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; - int supported_wifi_direct_auth_types_size() const; - private: - int _internal_supported_wifi_direct_auth_types_size() const; - public: - void clear_supported_wifi_direct_auth_types(); - private: - ::location::nearby::connections::MediumMetadata_WifiDirectAuthType _internal_supported_wifi_direct_auth_types(int index) const; - void _internal_add_supported_wifi_direct_auth_types(::location::nearby::connections::MediumMetadata_WifiDirectAuthType value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_supported_wifi_direct_auth_types(); - public: - ::location::nearby::connections::MediumMetadata_WifiDirectAuthType supported_wifi_direct_auth_types(int index) const; - void set_supported_wifi_direct_auth_types(int index, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType value); - void add_supported_wifi_direct_auth_types(::location::nearby::connections::MediumMetadata_WifiDirectAuthType value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& supported_wifi_direct_auth_types() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_supported_wifi_direct_auth_types(); - - // optional string bssid = 2; - bool has_bssid() const; - private: - bool _internal_has_bssid() const; - public: - void clear_bssid(); - const std::string& bssid() const; - template - void set_bssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_bssid(); - PROTOBUF_NODISCARD std::string* release_bssid(); - void set_allocated_bssid(std::string* bssid); - private: - const std::string& _internal_bssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bssid(const std::string& value); - std::string* _internal_mutable_bssid(); - public: - - // optional bytes ip_address = 3; - bool has_ip_address() const; - private: - bool _internal_has_ip_address() const; - public: - void clear_ip_address(); - const std::string& ip_address() const; - template - void set_ip_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_address(); - PROTOBUF_NODISCARD std::string* release_ip_address(); - void set_allocated_ip_address(std::string* ip_address); - private: - const std::string& _internal_ip_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); - std::string* _internal_mutable_ip_address(); - public: - - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - bool has_available_channels() const; - private: - bool _internal_has_available_channels() const; - public: - void clear_available_channels(); - const ::location::nearby::connections::AvailableChannels& available_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AvailableChannels* release_available_channels(); - ::location::nearby::connections::AvailableChannels* mutable_available_channels(); - void set_allocated_available_channels(::location::nearby::connections::AvailableChannels* available_channels); - private: - const ::location::nearby::connections::AvailableChannels& _internal_available_channels() const; - ::location::nearby::connections::AvailableChannels* _internal_mutable_available_channels(); - public: - void unsafe_arena_set_allocated_available_channels( - ::location::nearby::connections::AvailableChannels* available_channels); - ::location::nearby::connections::AvailableChannels* unsafe_arena_release_available_channels(); - - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - bool has_wifi_direct_cli_usable_channels() const; - private: - bool _internal_has_wifi_direct_cli_usable_channels() const; - public: - void clear_wifi_direct_cli_usable_channels(); - const ::location::nearby::connections::WifiDirectCliUsableChannels& wifi_direct_cli_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiDirectCliUsableChannels* release_wifi_direct_cli_usable_channels(); - ::location::nearby::connections::WifiDirectCliUsableChannels* mutable_wifi_direct_cli_usable_channels(); - void set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels); - private: - const ::location::nearby::connections::WifiDirectCliUsableChannels& _internal_wifi_direct_cli_usable_channels() const; - ::location::nearby::connections::WifiDirectCliUsableChannels* _internal_mutable_wifi_direct_cli_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_direct_cli_usable_channels( - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels); - ::location::nearby::connections::WifiDirectCliUsableChannels* unsafe_arena_release_wifi_direct_cli_usable_channels(); - - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - bool has_wifi_lan_usable_channels() const; - private: - bool _internal_has_wifi_lan_usable_channels() const; - public: - void clear_wifi_lan_usable_channels(); - const ::location::nearby::connections::WifiLanUsableChannels& wifi_lan_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiLanUsableChannels* release_wifi_lan_usable_channels(); - ::location::nearby::connections::WifiLanUsableChannels* mutable_wifi_lan_usable_channels(); - void set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels); - private: - const ::location::nearby::connections::WifiLanUsableChannels& _internal_wifi_lan_usable_channels() const; - ::location::nearby::connections::WifiLanUsableChannels* _internal_mutable_wifi_lan_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_lan_usable_channels( - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels); - ::location::nearby::connections::WifiLanUsableChannels* unsafe_arena_release_wifi_lan_usable_channels(); - - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - bool has_wifi_aware_usable_channels() const; - private: - bool _internal_has_wifi_aware_usable_channels() const; - public: - void clear_wifi_aware_usable_channels(); - const ::location::nearby::connections::WifiAwareUsableChannels& wifi_aware_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiAwareUsableChannels* release_wifi_aware_usable_channels(); - ::location::nearby::connections::WifiAwareUsableChannels* mutable_wifi_aware_usable_channels(); - void set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels); - private: - const ::location::nearby::connections::WifiAwareUsableChannels& _internal_wifi_aware_usable_channels() const; - ::location::nearby::connections::WifiAwareUsableChannels* _internal_mutable_wifi_aware_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_aware_usable_channels( - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels); - ::location::nearby::connections::WifiAwareUsableChannels* unsafe_arena_release_wifi_aware_usable_channels(); - - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - bool has_wifi_hotspot_sta_usable_channels() const; - private: - bool _internal_has_wifi_hotspot_sta_usable_channels() const; - public: - void clear_wifi_hotspot_sta_usable_channels(); - const ::location::nearby::connections::WifiHotspotStaUsableChannels& wifi_hotspot_sta_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiHotspotStaUsableChannels* release_wifi_hotspot_sta_usable_channels(); - ::location::nearby::connections::WifiHotspotStaUsableChannels* mutable_wifi_hotspot_sta_usable_channels(); - void set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels); - private: - const ::location::nearby::connections::WifiHotspotStaUsableChannels& _internal_wifi_hotspot_sta_usable_channels() const; - ::location::nearby::connections::WifiHotspotStaUsableChannels* _internal_mutable_wifi_hotspot_sta_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_hotspot_sta_usable_channels( - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels); - ::location::nearby::connections::WifiHotspotStaUsableChannels* unsafe_arena_release_wifi_hotspot_sta_usable_channels(); - - // optional .location.nearby.connections.MediumRole medium_role = 12; - bool has_medium_role() const; - private: - bool _internal_has_medium_role() const; - public: - void clear_medium_role(); - const ::location::nearby::connections::MediumRole& medium_role() const; - PROTOBUF_NODISCARD ::location::nearby::connections::MediumRole* release_medium_role(); - ::location::nearby::connections::MediumRole* mutable_medium_role(); - void set_allocated_medium_role(::location::nearby::connections::MediumRole* medium_role); - private: - const ::location::nearby::connections::MediumRole& _internal_medium_role() const; - ::location::nearby::connections::MediumRole* _internal_mutable_medium_role(); - public: - void unsafe_arena_set_allocated_medium_role( - ::location::nearby::connections::MediumRole* medium_role); - ::location::nearby::connections::MediumRole* unsafe_arena_release_medium_role(); - - // optional bool supports_5_ghz = 1; - bool has_supports_5_ghz() const; - private: - bool _internal_has_supports_5_ghz() const; - public: - void clear_supports_5_ghz(); - bool supports_5_ghz() const; - void set_supports_5_ghz(bool value); - private: - bool _internal_supports_5_ghz() const; - void _internal_set_supports_5_ghz(bool value); - public: - - // optional bool supports_6_ghz = 4; - bool has_supports_6_ghz() const; - private: - bool _internal_has_supports_6_ghz() const; - public: - void clear_supports_6_ghz(); - bool supports_6_ghz() const; - void set_supports_6_ghz(bool value); - private: - bool _internal_supports_6_ghz() const; - void _internal_set_supports_6_ghz(bool value); - public: - - // optional bool mobile_radio = 5; - bool has_mobile_radio() const; - private: - bool _internal_has_mobile_radio() const; - public: - void clear_mobile_radio(); - bool mobile_radio() const; - void set_mobile_radio(bool value); - private: - bool _internal_mobile_radio() const; - void _internal_set_mobile_radio(bool value); - public: - - // optional int32 ap_frequency = 6 [default = -1]; - bool has_ap_frequency() const; - private: - bool _internal_has_ap_frequency() const; - public: - void clear_ap_frequency(); - int32_t ap_frequency() const; - void set_ap_frequency(int32_t value); - private: - int32_t _internal_ap_frequency() const; - void _internal_set_ap_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.MediumMetadata) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField supported_wifi_direct_auth_types_; - mutable std::atomic _supported_wifi_direct_auth_types_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; - ::location::nearby::connections::AvailableChannels* available_channels_; - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels_; - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels_; - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels_; - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels_; - ::location::nearby::connections::MediumRole* medium_role_; - bool supports_5_ghz_; - bool supports_6_ghz_; - bool mobile_radio_; - int32_t ap_frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AvailableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AvailableChannels) */ { - public: - inline AvailableChannels() : AvailableChannels(nullptr) {} - ~AvailableChannels() override; - explicit constexpr AvailableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AvailableChannels(const AvailableChannels& from); - AvailableChannels(AvailableChannels&& from) noexcept - : AvailableChannels() { - *this = ::std::move(from); - } - - inline AvailableChannels& operator=(const AvailableChannels& from) { - CopyFrom(from); - return *this; - } - inline AvailableChannels& operator=(AvailableChannels&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AvailableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const AvailableChannels* internal_default_instance() { - return reinterpret_cast( - &_AvailableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(AvailableChannels& a, AvailableChannels& b) { - a.Swap(&b); - } - inline void Swap(AvailableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AvailableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AvailableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AvailableChannels& from); - void MergeFrom(const AvailableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AvailableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AvailableChannels"; - } - protected: - explicit AvailableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AvailableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiDirectCliUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiDirectCliUsableChannels) */ { - public: - inline WifiDirectCliUsableChannels() : WifiDirectCliUsableChannels(nullptr) {} - ~WifiDirectCliUsableChannels() override; - explicit constexpr WifiDirectCliUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiDirectCliUsableChannels(const WifiDirectCliUsableChannels& from); - WifiDirectCliUsableChannels(WifiDirectCliUsableChannels&& from) noexcept - : WifiDirectCliUsableChannels() { - *this = ::std::move(from); - } - - inline WifiDirectCliUsableChannels& operator=(const WifiDirectCliUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiDirectCliUsableChannels& operator=(WifiDirectCliUsableChannels&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiDirectCliUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiDirectCliUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiDirectCliUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiDirectCliUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiDirectCliUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiDirectCliUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiDirectCliUsableChannels& from); - void MergeFrom(const WifiDirectCliUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiDirectCliUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiDirectCliUsableChannels"; - } - protected: - explicit WifiDirectCliUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiDirectCliUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiLanUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiLanUsableChannels) */ { - public: - inline WifiLanUsableChannels() : WifiLanUsableChannels(nullptr) {} - ~WifiLanUsableChannels() override; - explicit constexpr WifiLanUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiLanUsableChannels(const WifiLanUsableChannels& from); - WifiLanUsableChannels(WifiLanUsableChannels&& from) noexcept - : WifiLanUsableChannels() { - *this = ::std::move(from); - } - - inline WifiLanUsableChannels& operator=(const WifiLanUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiLanUsableChannels& operator=(WifiLanUsableChannels&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiLanUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiLanUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiLanUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiLanUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiLanUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiLanUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiLanUsableChannels& from); - void MergeFrom(const WifiLanUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiLanUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiLanUsableChannels"; - } - protected: - explicit WifiLanUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiLanUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiAwareUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiAwareUsableChannels) */ { - public: - inline WifiAwareUsableChannels() : WifiAwareUsableChannels(nullptr) {} - ~WifiAwareUsableChannels() override; - explicit constexpr WifiAwareUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiAwareUsableChannels(const WifiAwareUsableChannels& from); - WifiAwareUsableChannels(WifiAwareUsableChannels&& from) noexcept - : WifiAwareUsableChannels() { - *this = ::std::move(from); - } - - inline WifiAwareUsableChannels& operator=(const WifiAwareUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiAwareUsableChannels& operator=(WifiAwareUsableChannels&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiAwareUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiAwareUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiAwareUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiAwareUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiAwareUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiAwareUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiAwareUsableChannels& from); - void MergeFrom(const WifiAwareUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiAwareUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiAwareUsableChannels"; - } - protected: - explicit WifiAwareUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiAwareUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiHotspotStaUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiHotspotStaUsableChannels) */ { - public: - inline WifiHotspotStaUsableChannels() : WifiHotspotStaUsableChannels(nullptr) {} - ~WifiHotspotStaUsableChannels() override; - explicit constexpr WifiHotspotStaUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiHotspotStaUsableChannels(const WifiHotspotStaUsableChannels& from); - WifiHotspotStaUsableChannels(WifiHotspotStaUsableChannels&& from) noexcept - : WifiHotspotStaUsableChannels() { - *this = ::std::move(from); - } - - inline WifiHotspotStaUsableChannels& operator=(const WifiHotspotStaUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiHotspotStaUsableChannels& operator=(WifiHotspotStaUsableChannels&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiHotspotStaUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiHotspotStaUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiHotspotStaUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiHotspotStaUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiHotspotStaUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiHotspotStaUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiHotspotStaUsableChannels& from); - void MergeFrom(const WifiHotspotStaUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiHotspotStaUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiHotspotStaUsableChannels"; - } - protected: - explicit WifiHotspotStaUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiHotspotStaUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class MediumRole final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.MediumRole) */ { - public: - inline MediumRole() : MediumRole(nullptr) {} - ~MediumRole() override; - explicit constexpr MediumRole(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MediumRole(const MediumRole& from); - MediumRole(MediumRole&& from) noexcept - : MediumRole() { - *this = ::std::move(from); - } - - inline MediumRole& operator=(const MediumRole& from) { - CopyFrom(from); - return *this; - } - inline MediumRole& operator=(MediumRole&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const MediumRole& default_instance() { - return *internal_default_instance(); - } - static inline const MediumRole* internal_default_instance() { - return reinterpret_cast( - &_MediumRole_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(MediumRole& a, MediumRole& b) { - a.Swap(&b); - } - inline void Swap(MediumRole* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MediumRole* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MediumRole* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MediumRole& from); - void MergeFrom(const MediumRole& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MediumRole* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.MediumRole"; - } - protected: - explicit MediumRole(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSupportWifiDirectGroupOwnerFieldNumber = 1, - kSupportWifiDirectGroupClientFieldNumber = 2, - kSupportWifiHotspotHostFieldNumber = 3, - kSupportWifiHotspotClientFieldNumber = 4, - kSupportWifiAwarePublisherFieldNumber = 5, - kSupportWifiAwareSubscriberFieldNumber = 6, - kSupportAwdlPublisherFieldNumber = 7, - kSupportAwdlSubscriberFieldNumber = 8, - }; - // optional bool support_wifi_direct_group_owner = 1; - bool has_support_wifi_direct_group_owner() const; - private: - bool _internal_has_support_wifi_direct_group_owner() const; - public: - void clear_support_wifi_direct_group_owner(); - bool support_wifi_direct_group_owner() const; - void set_support_wifi_direct_group_owner(bool value); - private: - bool _internal_support_wifi_direct_group_owner() const; - void _internal_set_support_wifi_direct_group_owner(bool value); - public: - - // optional bool support_wifi_direct_group_client = 2; - bool has_support_wifi_direct_group_client() const; - private: - bool _internal_has_support_wifi_direct_group_client() const; - public: - void clear_support_wifi_direct_group_client(); - bool support_wifi_direct_group_client() const; - void set_support_wifi_direct_group_client(bool value); - private: - bool _internal_support_wifi_direct_group_client() const; - void _internal_set_support_wifi_direct_group_client(bool value); - public: - - // optional bool support_wifi_hotspot_host = 3; - bool has_support_wifi_hotspot_host() const; - private: - bool _internal_has_support_wifi_hotspot_host() const; - public: - void clear_support_wifi_hotspot_host(); - bool support_wifi_hotspot_host() const; - void set_support_wifi_hotspot_host(bool value); - private: - bool _internal_support_wifi_hotspot_host() const; - void _internal_set_support_wifi_hotspot_host(bool value); - public: - - // optional bool support_wifi_hotspot_client = 4; - bool has_support_wifi_hotspot_client() const; - private: - bool _internal_has_support_wifi_hotspot_client() const; - public: - void clear_support_wifi_hotspot_client(); - bool support_wifi_hotspot_client() const; - void set_support_wifi_hotspot_client(bool value); - private: - bool _internal_support_wifi_hotspot_client() const; - void _internal_set_support_wifi_hotspot_client(bool value); - public: - - // optional bool support_wifi_aware_publisher = 5; - bool has_support_wifi_aware_publisher() const; - private: - bool _internal_has_support_wifi_aware_publisher() const; - public: - void clear_support_wifi_aware_publisher(); - bool support_wifi_aware_publisher() const; - void set_support_wifi_aware_publisher(bool value); - private: - bool _internal_support_wifi_aware_publisher() const; - void _internal_set_support_wifi_aware_publisher(bool value); - public: - - // optional bool support_wifi_aware_subscriber = 6; - bool has_support_wifi_aware_subscriber() const; - private: - bool _internal_has_support_wifi_aware_subscriber() const; - public: - void clear_support_wifi_aware_subscriber(); - bool support_wifi_aware_subscriber() const; - void set_support_wifi_aware_subscriber(bool value); - private: - bool _internal_support_wifi_aware_subscriber() const; - void _internal_set_support_wifi_aware_subscriber(bool value); - public: - - // optional bool support_awdl_publisher = 7; - bool has_support_awdl_publisher() const; - private: - bool _internal_has_support_awdl_publisher() const; - public: - void clear_support_awdl_publisher(); - bool support_awdl_publisher() const; - void set_support_awdl_publisher(bool value); - private: - bool _internal_support_awdl_publisher() const; - void _internal_set_support_awdl_publisher(bool value); - public: - - // optional bool support_awdl_subscriber = 8; - bool has_support_awdl_subscriber() const; - private: - bool _internal_has_support_awdl_subscriber() const; - public: - void clear_support_awdl_subscriber(); - bool support_awdl_subscriber() const; - void set_support_awdl_subscriber(bool value); - private: - bool _internal_support_awdl_subscriber() const; - void _internal_set_support_awdl_subscriber(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.MediumRole) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool support_wifi_direct_group_owner_; - bool support_wifi_direct_group_client_; - bool support_wifi_hotspot_host_; - bool support_wifi_hotspot_client_; - bool support_wifi_aware_publisher_; - bool support_wifi_aware_subscriber_; - bool support_awdl_publisher_; - bool support_awdl_subscriber_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class LocationHint final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationHint) */ { - public: - inline LocationHint() : LocationHint(nullptr) {} - ~LocationHint() override; - explicit constexpr LocationHint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LocationHint(const LocationHint& from); - LocationHint(LocationHint&& from) noexcept - : LocationHint() { - *this = ::std::move(from); - } - - inline LocationHint& operator=(const LocationHint& from) { - CopyFrom(from); - return *this; - } - inline LocationHint& operator=(LocationHint&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const LocationHint& default_instance() { - return *internal_default_instance(); - } - static inline const LocationHint* internal_default_instance() { - return reinterpret_cast( - &_LocationHint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(LocationHint& a, LocationHint& b) { - a.Swap(&b); - } - inline void Swap(LocationHint* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LocationHint* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LocationHint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LocationHint& from); - void MergeFrom(const LocationHint& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LocationHint* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.LocationHint"; - } - protected: - explicit LocationHint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLocationFieldNumber = 1, - kFormatFieldNumber = 2, - }; - // optional string location = 1; - bool has_location() const; - private: - bool _internal_has_location() const; - public: - void clear_location(); - const std::string& location() const; - template - void set_location(ArgT0&& arg0, ArgT... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* location); - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); - std::string* _internal_mutable_location(); - public: - - // optional .location.nearby.connections.LocationStandard.Format format = 2; - bool has_format() const; - private: - bool _internal_has_format() const; - public: - void clear_format(); - ::location::nearby::connections::LocationStandard_Format format() const; - void set_format(::location::nearby::connections::LocationStandard_Format value); - private: - ::location::nearby::connections::LocationStandard_Format _internal_format() const; - void _internal_set_format(::location::nearby::connections::LocationStandard_Format value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationHint) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; - int format_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class LocationStandard final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationStandard) */ { - public: - inline LocationStandard() : LocationStandard(nullptr) {} - ~LocationStandard() override; - explicit constexpr LocationStandard(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LocationStandard(const LocationStandard& from); - LocationStandard(LocationStandard&& from) noexcept - : LocationStandard() { - *this = ::std::move(from); - } - - inline LocationStandard& operator=(const LocationStandard& from) { - CopyFrom(from); - return *this; - } - inline LocationStandard& operator=(LocationStandard&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const LocationStandard& default_instance() { - return *internal_default_instance(); - } - static inline const LocationStandard* internal_default_instance() { - return reinterpret_cast( - &_LocationStandard_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(LocationStandard& a, LocationStandard& b) { - a.Swap(&b); - } - inline void Swap(LocationStandard* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LocationStandard* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LocationStandard* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LocationStandard& from); - void MergeFrom(const LocationStandard& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LocationStandard* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.LocationStandard"; - } - protected: - explicit LocationStandard(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef LocationStandard_Format Format; - static constexpr Format UNKNOWN = - LocationStandard_Format_UNKNOWN; - static constexpr Format E164_CALLING = - LocationStandard_Format_E164_CALLING; - static constexpr Format ISO_3166_1_ALPHA_2 = - LocationStandard_Format_ISO_3166_1_ALPHA_2; - static inline bool Format_IsValid(int value) { - return LocationStandard_Format_IsValid(value); - } - static constexpr Format Format_MIN = - LocationStandard_Format_Format_MIN; - static constexpr Format Format_MAX = - LocationStandard_Format_Format_MAX; - static constexpr int Format_ARRAYSIZE = - LocationStandard_Format_Format_ARRAYSIZE; - template - static inline const std::string& Format_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Format_Name."); - return LocationStandard_Format_Name(enum_t_value); - } - static inline bool Format_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Format* value) { - return LocationStandard_Format_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationStandard) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class OsInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.OsInfo) */ { - public: - inline OsInfo() : OsInfo(nullptr) {} - ~OsInfo() override; - explicit constexpr OsInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OsInfo(const OsInfo& from); - OsInfo(OsInfo&& from) noexcept - : OsInfo() { - *this = ::std::move(from); - } - - inline OsInfo& operator=(const OsInfo& from) { - CopyFrom(from); - return *this; - } - inline OsInfo& operator=(OsInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const OsInfo& default_instance() { - return *internal_default_instance(); - } - static inline const OsInfo* internal_default_instance() { - return reinterpret_cast( - &_OsInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(OsInfo& a, OsInfo& b) { - a.Swap(&b); - } - inline void Swap(OsInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OsInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OsInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const OsInfo& from); - void MergeFrom(const OsInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(OsInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.OsInfo"; - } - protected: - explicit OsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef OsInfo_OsType OsType; - static constexpr OsType UNKNOWN_OS_TYPE = - OsInfo_OsType_UNKNOWN_OS_TYPE; - static constexpr OsType ANDROID = - OsInfo_OsType_ANDROID; - static constexpr OsType CHROME_OS = - OsInfo_OsType_CHROME_OS; - static constexpr OsType WINDOWS = - OsInfo_OsType_WINDOWS; - static constexpr OsType APPLE = - OsInfo_OsType_APPLE; - static constexpr OsType LINUX = - OsInfo_OsType_LINUX; - static inline bool OsType_IsValid(int value) { - return OsInfo_OsType_IsValid(value); - } - static constexpr OsType OsType_MIN = - OsInfo_OsType_OsType_MIN; - static constexpr OsType OsType_MAX = - OsInfo_OsType_OsType_MAX; - static constexpr int OsType_ARRAYSIZE = - OsInfo_OsType_OsType_ARRAYSIZE; - template - static inline const std::string& OsType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OsType_Name."); - return OsInfo_OsType_Name(enum_t_value); - } - static inline bool OsType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - OsType* value) { - return OsInfo_OsType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - enum : int { + kConnectionRequestFieldNumber = 2, + kConnectionResponseFieldNumber = 3, + kPayloadTransferFieldNumber = 4, + kBandwidthUpgradeNegotiationFieldNumber = 5, + kKeepAliveFieldNumber = 6, + kDisconnectionFieldNumber = 7, + kPairedKeyEncryptionFieldNumber = 8, + kAuthenticationMessageFieldNumber = 9, + kAuthenticationResultFieldNumber = 10, + kAutoResumeFieldNumber = 11, + kAutoReconnectFieldNumber = 12, + kBandwidthUpgradeRetryFieldNumber = 13, kTypeFieldNumber = 1, }; - // optional .location.nearby.connections.OsInfo.OsType type = 1; + // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; + bool has_connection_request() const; + void clear_connection_request() ; + const ::location::nearby::connections::ConnectionRequestFrame& connection_request() const; + [[nodiscard]] ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE release_connection_request(); + ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NONNULL mutable_connection_request(); + void set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE unsafe_arena_release_connection_request(); + + private: + const ::location::nearby::connections::ConnectionRequestFrame& _internal_connection_request() const; + ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NONNULL _internal_mutable_connection_request(); + + public: + // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; + bool has_connection_response() const; + void clear_connection_response() ; + const ::location::nearby::connections::ConnectionResponseFrame& connection_response() const; + [[nodiscard]] ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE release_connection_response(); + ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NONNULL mutable_connection_response(); + void set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE unsafe_arena_release_connection_response(); + + private: + const ::location::nearby::connections::ConnectionResponseFrame& _internal_connection_response() const; + ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NONNULL _internal_mutable_connection_response(); + + public: + // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; + bool has_payload_transfer() const; + void clear_payload_transfer() ; + const ::location::nearby::connections::PayloadTransferFrame& payload_transfer() const; + [[nodiscard]] ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE release_payload_transfer(); + ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NONNULL mutable_payload_transfer(); + void set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE unsafe_arena_release_payload_transfer(); + + private: + const ::location::nearby::connections::PayloadTransferFrame& _internal_payload_transfer() const; + ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NONNULL _internal_mutable_payload_transfer(); + + public: + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; + bool has_bandwidth_upgrade_negotiation() const; + void clear_bandwidth_upgrade_negotiation() ; + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation() const; + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE release_bandwidth_upgrade_negotiation(); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL mutable_bandwidth_upgrade_negotiation(); + void set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE unsafe_arena_release_bandwidth_upgrade_negotiation(); + + private: + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& _internal_bandwidth_upgrade_negotiation() const; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL _internal_mutable_bandwidth_upgrade_negotiation(); + + public: + // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; + bool has_keep_alive() const; + void clear_keep_alive() ; + const ::location::nearby::connections::KeepAliveFrame& keep_alive() const; + [[nodiscard]] ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE release_keep_alive(); + ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NONNULL mutable_keep_alive(); + void set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE unsafe_arena_release_keep_alive(); + + private: + const ::location::nearby::connections::KeepAliveFrame& _internal_keep_alive() const; + ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NONNULL _internal_mutable_keep_alive(); + + public: + // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; + bool has_disconnection() const; + void clear_disconnection() ; + const ::location::nearby::connections::DisconnectionFrame& disconnection() const; + [[nodiscard]] ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE release_disconnection(); + ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NONNULL mutable_disconnection(); + void set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE unsafe_arena_release_disconnection(); + + private: + const ::location::nearby::connections::DisconnectionFrame& _internal_disconnection() const; + ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NONNULL _internal_mutable_disconnection(); + + public: + // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; + bool has_paired_key_encryption() const; + void clear_paired_key_encryption() ; + const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption() const; + [[nodiscard]] ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE release_paired_key_encryption(); + ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NONNULL mutable_paired_key_encryption(); + void set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE unsafe_arena_release_paired_key_encryption(); + + private: + const ::location::nearby::connections::PairedKeyEncryptionFrame& _internal_paired_key_encryption() const; + ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NONNULL _internal_mutable_paired_key_encryption(); + + public: + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + bool has_authentication_message() const; + void clear_authentication_message() ; + const ::location::nearby::connections::AuthenticationMessageFrame& authentication_message() const; + [[nodiscard]] ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE release_authentication_message(); + ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NONNULL mutable_authentication_message(); + void set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE unsafe_arena_release_authentication_message(); + + private: + const ::location::nearby::connections::AuthenticationMessageFrame& _internal_authentication_message() const; + ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NONNULL _internal_mutable_authentication_message(); + + public: + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + bool has_authentication_result() const; + void clear_authentication_result() ; + const ::location::nearby::connections::AuthenticationResultFrame& authentication_result() const; + [[nodiscard]] ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE release_authentication_result(); + ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NONNULL mutable_authentication_result(); + void set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE unsafe_arena_release_authentication_result(); + + private: + const ::location::nearby::connections::AuthenticationResultFrame& _internal_authentication_result() const; + ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NONNULL _internal_mutable_authentication_result(); + + public: + // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; + bool has_auto_resume() const; + void clear_auto_resume() ; + const ::location::nearby::connections::AutoResumeFrame& auto_resume() const; + [[nodiscard]] ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE release_auto_resume(); + ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NONNULL mutable_auto_resume(); + void set_allocated_auto_resume(::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_auto_resume(::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE unsafe_arena_release_auto_resume(); + + private: + const ::location::nearby::connections::AutoResumeFrame& _internal_auto_resume() const; + ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NONNULL _internal_mutable_auto_resume(); + + public: + // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; + bool has_auto_reconnect() const; + void clear_auto_reconnect() ; + const ::location::nearby::connections::AutoReconnectFrame& auto_reconnect() const; + [[nodiscard]] ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE release_auto_reconnect(); + ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NONNULL mutable_auto_reconnect(); + void set_allocated_auto_reconnect(::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_auto_reconnect(::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE unsafe_arena_release_auto_reconnect(); + + private: + const ::location::nearby::connections::AutoReconnectFrame& _internal_auto_reconnect() const; + ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NONNULL _internal_mutable_auto_reconnect(); + + public: + // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; + bool has_bandwidth_upgrade_retry() const; + void clear_bandwidth_upgrade_retry() ; + const ::location::nearby::connections::BandwidthUpgradeRetryFrame& bandwidth_upgrade_retry() const; + [[nodiscard]] ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE release_bandwidth_upgrade_retry(); + ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL mutable_bandwidth_upgrade_retry(); + void set_allocated_bandwidth_upgrade_retry(::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_bandwidth_upgrade_retry(::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE unsafe_arena_release_bandwidth_upgrade_retry(); + + private: + const ::location::nearby::connections::BandwidthUpgradeRetryFrame& _internal_bandwidth_upgrade_retry() const; + ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL _internal_mutable_bandwidth_upgrade_retry(); + + public: + // optional .location.nearby.connections.V1Frame.FrameType type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::connections::OsInfo_OsType type() const; - void set_type(::location::nearby::connections::OsInfo_OsType value); - private: - ::location::nearby::connections::OsInfo_OsType _internal_type() const; - void _internal_set_type(::location::nearby::connections::OsInfo_OsType value); - public: + void clear_type() ; + ::location::nearby::connections::V1Frame_FrameType type() const; + void set_type(::location::nearby::connections::V1Frame_FrameType value); - // @@protoc_insertion_point(class_scope:location.nearby.connections.OsInfo) + private: + ::location::nearby::connections::V1Frame_FrameType _internal_type() const; + void _internal_set_type(::location::nearby::connections::V1Frame_FrameType value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.V1Frame) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 13, + 13, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const V1Frame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE connection_request_; + ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE connection_response_; + ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE payload_transfer_; + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE bandwidth_upgrade_negotiation_; + ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE keep_alive_; + ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE disconnection_; + ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE paired_key_encryption_; + ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE authentication_message_; + ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE authentication_result_; + ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE auto_resume_; + ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE auto_reconnect_; + ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE bandwidth_upgrade_retry_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<36> V1Frame_class_data_; // ------------------------------------------------------------------- -class ConnectionsDevice final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionsDevice) */ { +class OfflineFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.connections.OfflineFrame) */ { public: - inline ConnectionsDevice() : ConnectionsDevice(nullptr) {} - ~ConnectionsDevice() override; - explicit constexpr ConnectionsDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline OfflineFrame() : OfflineFrame(nullptr) {} + ~OfflineFrame() PROTOBUF_FINAL; - ConnectionsDevice(const ConnectionsDevice& from); - ConnectionsDevice(ConnectionsDevice&& from) noexcept - : ConnectionsDevice() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(OfflineFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(OfflineFrame)); } +#endif - inline ConnectionsDevice& operator=(const ConnectionsDevice& from) { + template + explicit PROTOBUF_CONSTEXPR OfflineFrame(::google::protobuf::internal::ConstantInitialized); + + inline OfflineFrame(const OfflineFrame& from) : OfflineFrame(nullptr, from) {} + inline OfflineFrame(OfflineFrame&& from) noexcept + : OfflineFrame(nullptr, ::std::move(from)) {} + inline OfflineFrame& operator=(const OfflineFrame& from) { CopyFrom(from); return *this; } - inline ConnectionsDevice& operator=(ConnectionsDevice&& from) noexcept { + inline OfflineFrame& operator=(OfflineFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -9134,660 +10722,329 @@ class ConnectionsDevice final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ConnectionsDevice& default_instance() { - return *internal_default_instance(); + static const OfflineFrame& default_instance() { + return *reinterpret_cast( + &_OfflineFrame_default_instance_); } - static inline const ConnectionsDevice* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsDevice_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsDevice* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(OfflineFrame& a, OfflineFrame& b) { a.Swap(&b); } + inline void Swap(OfflineFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsDevice* other) { + void UnsafeArenaSwap(OfflineFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + OfflineFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsDevice& from); - void MergeFrom(const ConnectionsDevice& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const OfflineFrame& from); + void MergeFrom(const OfflineFrame& from) { OfflineFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsDevice* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ConnectionsDevice"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit ConnectionsDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEndpointIdFieldNumber = 1, - kConnectivityInfoListFieldNumber = 3, - kEndpointInfoFieldNumber = 4, - kEndpointTypeFieldNumber = 2, - }; - // optional string endpoint_id = 1; - bool has_endpoint_id() const; private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: - - // optional bytes connectivity_info_list = 3; - bool has_connectivity_info_list() const; - private: - bool _internal_has_connectivity_info_list() const; - public: - void clear_connectivity_info_list(); - const std::string& connectivity_info_list() const; - template - void set_connectivity_info_list(ArgT0&& arg0, ArgT... args); - std::string* mutable_connectivity_info_list(); - PROTOBUF_NODISCARD std::string* release_connectivity_info_list(); - void set_allocated_connectivity_info_list(std::string* connectivity_info_list); - private: - const std::string& _internal_connectivity_info_list() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const std::string& value); - std::string* _internal_mutable_connectivity_info_list(); - public: - - // optional bytes endpoint_info = 4; - bool has_endpoint_info() const; - private: - bool _internal_has_endpoint_info() const; - public: - void clear_endpoint_info(); - const std::string& endpoint_info() const; - template - void set_endpoint_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_info(); - PROTOBUF_NODISCARD std::string* release_endpoint_info(); - void set_allocated_endpoint_info(std::string* endpoint_info); - private: - const std::string& _internal_endpoint_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const std::string& value); - std::string* _internal_mutable_endpoint_info(); - public: - - // optional .location.nearby.connections.EndpointType endpoint_type = 2; - bool has_endpoint_type() const; - private: - bool _internal_has_endpoint_type() const; - public: - void clear_endpoint_type(); - ::location::nearby::connections::EndpointType endpoint_type() const; - void set_endpoint_type(::location::nearby::connections::EndpointType value); - private: - ::location::nearby::connections::EndpointType _internal_endpoint_type() const; - void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionsDevice) + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(OfflineFrame* PROTOBUF_NONNULL other); private: - class _Internal; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.connections.OfflineFrame"; } - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connectivity_info_list_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_info_; - int endpoint_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PresenceDevice final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PresenceDevice) */ { - public: - inline PresenceDevice() : PresenceDevice(nullptr) {} - ~PresenceDevice() override; - explicit constexpr PresenceDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PresenceDevice(const PresenceDevice& from); - PresenceDevice(PresenceDevice&& from) noexcept - : PresenceDevice() { + explicit OfflineFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + OfflineFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OfflineFrame& from); + OfflineFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OfflineFrame&& from) noexcept + : OfflineFrame(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - inline PresenceDevice& operator=(const PresenceDevice& from) { - CopyFrom(from); - return *this; - } - inline PresenceDevice& operator=(PresenceDevice&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PresenceDevice& default_instance() { - return *internal_default_instance(); - } - static inline const PresenceDevice* internal_default_instance() { - return reinterpret_cast( - &_PresenceDevice_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(PresenceDevice& a, PresenceDevice& b) { - a.Swap(&b); - } - inline void Swap(PresenceDevice* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PresenceDevice* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PresenceDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PresenceDevice& from); - void MergeFrom(const PresenceDevice& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PresenceDevice* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PresenceDevice"; - } - protected: - explicit PresenceDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef PresenceDevice_DeviceType DeviceType; - static constexpr DeviceType UNKNOWN = - PresenceDevice_DeviceType_UNKNOWN; - static constexpr DeviceType PHONE = - PresenceDevice_DeviceType_PHONE; - static constexpr DeviceType TABLET = - PresenceDevice_DeviceType_TABLET; - static constexpr DeviceType DISPLAY = - PresenceDevice_DeviceType_DISPLAY; - static constexpr DeviceType LAPTOP = - PresenceDevice_DeviceType_LAPTOP; - static constexpr DeviceType TV = - PresenceDevice_DeviceType_TV; - static constexpr DeviceType WATCH = - PresenceDevice_DeviceType_WATCH; - static inline bool DeviceType_IsValid(int value) { - return PresenceDevice_DeviceType_IsValid(value); + using Version = OfflineFrame_Version; + static constexpr Version UNKNOWN_VERSION = OfflineFrame_Version_UNKNOWN_VERSION; + static constexpr Version V1 = OfflineFrame_Version_V1; + static inline bool Version_IsValid(int value) { + return OfflineFrame_Version_IsValid(value); } - static constexpr DeviceType DeviceType_MIN = - PresenceDevice_DeviceType_DeviceType_MIN; - static constexpr DeviceType DeviceType_MAX = - PresenceDevice_DeviceType_DeviceType_MAX; - static constexpr int DeviceType_ARRAYSIZE = - PresenceDevice_DeviceType_DeviceType_ARRAYSIZE; - template - static inline const std::string& DeviceType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return PresenceDevice_DeviceType_Name(enum_t_value); + static constexpr Version Version_MIN = OfflineFrame_Version_Version_MIN; + static constexpr Version Version_MAX = OfflineFrame_Version_Version_MAX; + static constexpr int Version_ARRAYSIZE = OfflineFrame_Version_Version_ARRAYSIZE; + template + static inline const ::std::string& Version_Name(T value) { + return OfflineFrame_Version_Name(value); } - static inline bool DeviceType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - DeviceType* value) { - return PresenceDevice_DeviceType_Parse(name, value); + static inline bool Version_Parse( + ::absl::string_view name, Version* PROTOBUF_NONNULL value) { + return OfflineFrame_Version_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { - kDiscoveryMediumFieldNumber = 8, - kActionsFieldNumber = 9, - kIdentityTypeFieldNumber = 10, - kEndpointIdFieldNumber = 1, - kConnectivityInfoListFieldNumber = 3, - kDeviceNameFieldNumber = 5, - kDeviceImageUrlFieldNumber = 7, - kDeviceIdFieldNumber = 4, - kEndpointTypeFieldNumber = 2, - kDeviceTypeFieldNumber = 6, + kV1FieldNumber = 2, + kVersionFieldNumber = 1, }; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; - int discovery_medium_size() const; - private: - int _internal_discovery_medium_size() const; - public: - void clear_discovery_medium(); - private: - ::location::nearby::connections::ConnectionRequestFrame_Medium _internal_discovery_medium(int index) const; - void _internal_add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_discovery_medium(); - public: - ::location::nearby::connections::ConnectionRequestFrame_Medium discovery_medium(int index) const; - void set_discovery_medium(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value); - void add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& discovery_medium() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_discovery_medium(); + // optional .location.nearby.connections.V1Frame v1 = 2; + bool has_v1() const; + void clear_v1() ; + const ::location::nearby::connections::V1Frame& v1() const; + [[nodiscard]] ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE release_v1(); + ::location::nearby::connections::V1Frame* PROTOBUF_NONNULL mutable_v1(); + void set_allocated_v1(::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_v1(::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE value); + ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE unsafe_arena_release_v1(); - // repeated int32 actions = 9 [packed = true]; - int actions_size() const; private: - int _internal_actions_size() const; - public: - void clear_actions(); - private: - int32_t _internal_actions(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_actions() const; - void _internal_add_actions(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_actions(); - public: - int32_t actions(int index) const; - void set_actions(int index, int32_t value); - void add_actions(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - actions() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_actions(); + const ::location::nearby::connections::V1Frame& _internal_v1() const; + ::location::nearby::connections::V1Frame* PROTOBUF_NONNULL _internal_mutable_v1(); - // repeated int64 identity_type = 10 [packed = true]; - int identity_type_size() const; - private: - int _internal_identity_type_size() const; public: - void clear_identity_type(); - private: - int64_t _internal_identity_type(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& - _internal_identity_type() const; - void _internal_add_identity_type(int64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* - _internal_mutable_identity_type(); - public: - int64_t identity_type(int index) const; - void set_identity_type(int index, int64_t value); - void add_identity_type(int64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& - identity_type() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* - mutable_identity_type(); + // optional .location.nearby.connections.OfflineFrame.Version version = 1; + bool has_version() const; + void clear_version() ; + ::location::nearby::connections::OfflineFrame_Version version() const; + void set_version(::location::nearby::connections::OfflineFrame_Version value); - // optional string endpoint_id = 1; - bool has_endpoint_id() const; private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: + ::location::nearby::connections::OfflineFrame_Version _internal_version() const; + void _internal_set_version(::location::nearby::connections::OfflineFrame_Version value); - // optional bytes connectivity_info_list = 3; - bool has_connectivity_info_list() const; - private: - bool _internal_has_connectivity_info_list() const; public: - void clear_connectivity_info_list(); - const std::string& connectivity_info_list() const; - template - void set_connectivity_info_list(ArgT0&& arg0, ArgT... args); - std::string* mutable_connectivity_info_list(); - PROTOBUF_NODISCARD std::string* release_connectivity_info_list(); - void set_allocated_connectivity_info_list(std::string* connectivity_info_list); - private: - const std::string& _internal_connectivity_info_list() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const std::string& value); - std::string* _internal_mutable_connectivity_info_list(); - public: - - // optional string device_name = 5; - bool has_device_name() const; - private: - bool _internal_has_device_name() const; - public: - void clear_device_name(); - const std::string& device_name() const; - template - void set_device_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_name(); - PROTOBUF_NODISCARD std::string* release_device_name(); - void set_allocated_device_name(std::string* device_name); - private: - const std::string& _internal_device_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const std::string& value); - std::string* _internal_mutable_device_name(); - public: - - // optional string device_image_url = 7; - bool has_device_image_url() const; - private: - bool _internal_has_device_image_url() const; - public: - void clear_device_image_url(); - const std::string& device_image_url() const; - template - void set_device_image_url(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_image_url(); - PROTOBUF_NODISCARD std::string* release_device_image_url(); - void set_allocated_device_image_url(std::string* device_image_url); - private: - const std::string& _internal_device_image_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_image_url(const std::string& value); - std::string* _internal_mutable_device_image_url(); - public: - - // optional int64 device_id = 4; - bool has_device_id() const; - private: - bool _internal_has_device_id() const; - public: - void clear_device_id(); - int64_t device_id() const; - void set_device_id(int64_t value); - private: - int64_t _internal_device_id() const; - void _internal_set_device_id(int64_t value); - public: - - // optional .location.nearby.connections.EndpointType endpoint_type = 2; - bool has_endpoint_type() const; - private: - bool _internal_has_endpoint_type() const; - public: - void clear_endpoint_type(); - ::location::nearby::connections::EndpointType endpoint_type() const; - void set_endpoint_type(::location::nearby::connections::EndpointType value); - private: - ::location::nearby::connections::EndpointType _internal_endpoint_type() const; - void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); - public: - - // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::connections::PresenceDevice_DeviceType device_type() const; - void set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); - private: - ::location::nearby::connections::PresenceDevice_DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PresenceDevice) + // @@protoc_insertion_point(class_scope:location.nearby.connections.OfflineFrame) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField discovery_medium_; - mutable std::atomic _discovery_medium_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > actions_; - mutable std::atomic _actions_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > identity_type_; - mutable std::atomic _identity_type_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connectivity_info_list_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_image_url_; - int64_t device_id_; - int endpoint_type_; - int device_type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const OfflineFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE v1_; + int version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<41> OfflineFrame_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // OfflineFrame // optional .location.nearby.connections.OfflineFrame.Version version = 1; -inline bool OfflineFrame::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool OfflineFrame::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool OfflineFrame::has_version() const { - return _internal_has_version(); -} inline void OfflineFrame::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::OfflineFrame_Version OfflineFrame::_internal_version() const { - return static_cast< ::location::nearby::connections::OfflineFrame_Version >(version_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::connections::OfflineFrame_Version OfflineFrame::version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.OfflineFrame.version) return _internal_version(); } -inline void OfflineFrame::_internal_set_version(::location::nearby::connections::OfflineFrame_Version value) { - assert(::location::nearby::connections::OfflineFrame_Version_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - version_ = value; -} inline void OfflineFrame::set_version(::location::nearby::connections::OfflineFrame_Version value) { _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.OfflineFrame.version) } +inline ::location::nearby::connections::OfflineFrame_Version OfflineFrame::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::OfflineFrame_Version>(_impl_.version_); +} +inline void OfflineFrame::_internal_set_version(::location::nearby::connections::OfflineFrame_Version value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::OfflineFrame_Version_internal_data_)); + _impl_.version_ = value; +} // optional .location.nearby.connections.V1Frame v1 = 2; -inline bool OfflineFrame::_internal_has_v1() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || v1_ != nullptr); +inline bool OfflineFrame::has_v1() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.v1_ != nullptr); return value; } -inline bool OfflineFrame::has_v1() const { - return _internal_has_v1(); -} inline void OfflineFrame::clear_v1() { - if (v1_ != nullptr) v1_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.v1_ != nullptr) _impl_.v1_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::connections::V1Frame& OfflineFrame::_internal_v1() const { - const ::location::nearby::connections::V1Frame* p = v1_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_V1Frame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::V1Frame* p = _impl_.v1_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_V1Frame_default_instance_); } -inline const ::location::nearby::connections::V1Frame& OfflineFrame::v1() const { +inline const ::location::nearby::connections::V1Frame& OfflineFrame::v1() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.OfflineFrame.v1) return _internal_v1(); } inline void OfflineFrame::unsafe_arena_set_allocated_v1( - ::location::nearby::connections::V1Frame* v1) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(v1_); + ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.v1_); } - v1_ = v1; - if (v1) { - _has_bits_[0] |= 0x00000001u; + _impl_.v1_ = reinterpret_cast<::location::nearby::connections::V1Frame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.OfflineFrame.v1) } -inline ::location::nearby::connections::V1Frame* OfflineFrame::release_v1() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::V1Frame* temp = v1_; - v1_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE OfflineFrame::release_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::V1Frame* released = _impl_.v1_; + _impl_.v1_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::V1Frame* OfflineFrame::unsafe_arena_release_v1() { +inline ::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE OfflineFrame::unsafe_arena_release_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.OfflineFrame.v1) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::V1Frame* temp = v1_; - v1_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::V1Frame* temp = _impl_.v1_; + _impl_.v1_ = nullptr; return temp; } -inline ::location::nearby::connections::V1Frame* OfflineFrame::_internal_mutable_v1() { - _has_bits_[0] |= 0x00000001u; - if (v1_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::V1Frame>(GetArenaForAllocation()); - v1_ = p; +inline ::location::nearby::connections::V1Frame* PROTOBUF_NONNULL OfflineFrame::_internal_mutable_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.v1_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::V1Frame>(GetArena()); + _impl_.v1_ = reinterpret_cast<::location::nearby::connections::V1Frame*>(p); } - return v1_; + return _impl_.v1_; } -inline ::location::nearby::connections::V1Frame* OfflineFrame::mutable_v1() { +inline ::location::nearby::connections::V1Frame* PROTOBUF_NONNULL OfflineFrame::mutable_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::connections::V1Frame* _msg = _internal_mutable_v1(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.OfflineFrame.v1) return _msg; } -inline void OfflineFrame::set_allocated_v1(::location::nearby::connections::V1Frame* v1) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void OfflineFrame::set_allocated_v1(::location::nearby::connections::V1Frame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete v1_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.v1_); } - if (v1) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::V1Frame>::GetOwningArena(v1); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - v1 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, v1, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - v1_ = v1; + + _impl_.v1_ = reinterpret_cast<::location::nearby::connections::V1Frame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.OfflineFrame.v1) } @@ -9796,1111 +11053,1222 @@ inline void OfflineFrame::set_allocated_v1(::location::nearby::connections::V1Fr // V1Frame // optional .location.nearby.connections.V1Frame.FrameType type = 1; -inline bool V1Frame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; +inline bool V1Frame::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool V1Frame::has_type() const { - return _internal_has_type(); -} inline void V1Frame::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00001000u; -} -inline ::location::nearby::connections::V1Frame_FrameType V1Frame::_internal_type() const { - return static_cast< ::location::nearby::connections::V1Frame_FrameType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::location::nearby::connections::V1Frame_FrameType V1Frame::type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.type) return _internal_type(); } -inline void V1Frame::_internal_set_type(::location::nearby::connections::V1Frame_FrameType value) { - assert(::location::nearby::connections::V1Frame_FrameType_IsValid(value)); - _has_bits_[0] |= 0x00001000u; - type_ = value; -} inline void V1Frame::set_type(::location::nearby::connections::V1Frame_FrameType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.connections.V1Frame.type) } +inline ::location::nearby::connections::V1Frame_FrameType V1Frame::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::V1Frame_FrameType>(_impl_.type_); +} +inline void V1Frame::_internal_set_type(::location::nearby::connections::V1Frame_FrameType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::V1Frame_FrameType_internal_data_)); + _impl_.type_ = value; +} // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; -inline bool V1Frame::_internal_has_connection_request() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || connection_request_ != nullptr); +inline bool V1Frame::has_connection_request() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.connection_request_ != nullptr); return value; } -inline bool V1Frame::has_connection_request() const { - return _internal_has_connection_request(); -} inline void V1Frame::clear_connection_request() { - if (connection_request_ != nullptr) connection_request_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_request_ != nullptr) _impl_.connection_request_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::connections::ConnectionRequestFrame& V1Frame::_internal_connection_request() const { - const ::location::nearby::connections::ConnectionRequestFrame* p = connection_request_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_ConnectionRequestFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::ConnectionRequestFrame* p = _impl_.connection_request_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_ConnectionRequestFrame_default_instance_); } -inline const ::location::nearby::connections::ConnectionRequestFrame& V1Frame::connection_request() const { +inline const ::location::nearby::connections::ConnectionRequestFrame& V1Frame::connection_request() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.connection_request) return _internal_connection_request(); } inline void V1Frame::unsafe_arena_set_allocated_connection_request( - ::location::nearby::connections::ConnectionRequestFrame* connection_request) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_request_); + ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_request_); } - connection_request_ = connection_request; - if (connection_request) { - _has_bits_[0] |= 0x00000001u; + _impl_.connection_request_ = reinterpret_cast<::location::nearby::connections::ConnectionRequestFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.connection_request) } -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::release_connection_request() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::ConnectionRequestFrame* temp = connection_request_; - connection_request_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE V1Frame::release_connection_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::ConnectionRequestFrame* released = _impl_.connection_request_; + _impl_.connection_request_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::unsafe_arena_release_connection_request() { +inline ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_connection_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.connection_request) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::ConnectionRequestFrame* temp = connection_request_; - connection_request_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::ConnectionRequestFrame* temp = _impl_.connection_request_; + _impl_.connection_request_ = nullptr; return temp; } -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::_internal_mutable_connection_request() { - _has_bits_[0] |= 0x00000001u; - if (connection_request_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::ConnectionRequestFrame>(GetArenaForAllocation()); - connection_request_ = p; +inline ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_connection_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_request_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::ConnectionRequestFrame>(GetArena()); + _impl_.connection_request_ = reinterpret_cast<::location::nearby::connections::ConnectionRequestFrame*>(p); } - return connection_request_; + return _impl_.connection_request_; } -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::mutable_connection_request() { +inline ::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NONNULL V1Frame::mutable_connection_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::connections::ConnectionRequestFrame* _msg = _internal_mutable_connection_request(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.connection_request) return _msg; } -inline void V1Frame::set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* connection_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete connection_request_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_request_); } - if (connection_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionRequestFrame>::GetOwningArena(connection_request); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - connection_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_request, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - connection_request_ = connection_request; + + _impl_.connection_request_ = reinterpret_cast<::location::nearby::connections::ConnectionRequestFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.connection_request) } // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; -inline bool V1Frame::_internal_has_connection_response() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || connection_response_ != nullptr); +inline bool V1Frame::has_connection_response() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.connection_response_ != nullptr); return value; } -inline bool V1Frame::has_connection_response() const { - return _internal_has_connection_response(); -} inline void V1Frame::clear_connection_response() { - if (connection_response_ != nullptr) connection_response_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_response_ != nullptr) _impl_.connection_response_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::ConnectionResponseFrame& V1Frame::_internal_connection_response() const { - const ::location::nearby::connections::ConnectionResponseFrame* p = connection_response_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_ConnectionResponseFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::ConnectionResponseFrame* p = _impl_.connection_response_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_ConnectionResponseFrame_default_instance_); } -inline const ::location::nearby::connections::ConnectionResponseFrame& V1Frame::connection_response() const { +inline const ::location::nearby::connections::ConnectionResponseFrame& V1Frame::connection_response() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.connection_response) return _internal_connection_response(); } inline void V1Frame::unsafe_arena_set_allocated_connection_response( - ::location::nearby::connections::ConnectionResponseFrame* connection_response) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_response_); + ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_response_); } - connection_response_ = connection_response; - if (connection_response) { - _has_bits_[0] |= 0x00000002u; + _impl_.connection_response_ = reinterpret_cast<::location::nearby::connections::ConnectionResponseFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.connection_response) } -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::release_connection_response() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::ConnectionResponseFrame* temp = connection_response_; - connection_response_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE V1Frame::release_connection_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::ConnectionResponseFrame* released = _impl_.connection_response_; + _impl_.connection_response_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::unsafe_arena_release_connection_response() { +inline ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_connection_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.connection_response) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::ConnectionResponseFrame* temp = connection_response_; - connection_response_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::ConnectionResponseFrame* temp = _impl_.connection_response_; + _impl_.connection_response_ = nullptr; return temp; } -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::_internal_mutable_connection_response() { - _has_bits_[0] |= 0x00000002u; - if (connection_response_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::ConnectionResponseFrame>(GetArenaForAllocation()); - connection_response_ = p; +inline ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_connection_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_response_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::ConnectionResponseFrame>(GetArena()); + _impl_.connection_response_ = reinterpret_cast<::location::nearby::connections::ConnectionResponseFrame*>(p); } - return connection_response_; + return _impl_.connection_response_; } -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::mutable_connection_response() { +inline ::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NONNULL V1Frame::mutable_connection_response() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::ConnectionResponseFrame* _msg = _internal_mutable_connection_response(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.connection_response) return _msg; } -inline void V1Frame::set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* connection_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete connection_response_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_response_); } - if (connection_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionResponseFrame>::GetOwningArena(connection_response); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - connection_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_response, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - connection_response_ = connection_response; + + _impl_.connection_response_ = reinterpret_cast<::location::nearby::connections::ConnectionResponseFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.connection_response) } // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; -inline bool V1Frame::_internal_has_payload_transfer() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || payload_transfer_ != nullptr); +inline bool V1Frame::has_payload_transfer() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.payload_transfer_ != nullptr); return value; } -inline bool V1Frame::has_payload_transfer() const { - return _internal_has_payload_transfer(); -} inline void V1Frame::clear_payload_transfer() { - if (payload_transfer_ != nullptr) payload_transfer_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_transfer_ != nullptr) _impl_.payload_transfer_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::connections::PayloadTransferFrame& V1Frame::_internal_payload_transfer() const { - const ::location::nearby::connections::PayloadTransferFrame* p = payload_transfer_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::PayloadTransferFrame* p = _impl_.payload_transfer_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_PayloadTransferFrame_default_instance_); } -inline const ::location::nearby::connections::PayloadTransferFrame& V1Frame::payload_transfer() const { +inline const ::location::nearby::connections::PayloadTransferFrame& V1Frame::payload_transfer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.payload_transfer) return _internal_payload_transfer(); } inline void V1Frame::unsafe_arena_set_allocated_payload_transfer( - ::location::nearby::connections::PayloadTransferFrame* payload_transfer) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_transfer_); + ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_transfer_); } - payload_transfer_ = payload_transfer; - if (payload_transfer) { - _has_bits_[0] |= 0x00000004u; + _impl_.payload_transfer_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.payload_transfer) } -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::release_payload_transfer() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame* temp = payload_transfer_; - payload_transfer_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE V1Frame::release_payload_transfer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::PayloadTransferFrame* released = _impl_.payload_transfer_; + _impl_.payload_transfer_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::unsafe_arena_release_payload_transfer() { +inline ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_payload_transfer() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.payload_transfer) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame* temp = payload_transfer_; - payload_transfer_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::PayloadTransferFrame* temp = _impl_.payload_transfer_; + _impl_.payload_transfer_ = nullptr; return temp; } -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::_internal_mutable_payload_transfer() { - _has_bits_[0] |= 0x00000004u; - if (payload_transfer_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame>(GetArenaForAllocation()); - payload_transfer_ = p; +inline ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_payload_transfer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_transfer_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PayloadTransferFrame>(GetArena()); + _impl_.payload_transfer_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame*>(p); } - return payload_transfer_; + return _impl_.payload_transfer_; } -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::mutable_payload_transfer() { +inline ::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NONNULL V1Frame::mutable_payload_transfer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::PayloadTransferFrame* _msg = _internal_mutable_payload_transfer(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.payload_transfer) return _msg; } -inline void V1Frame::set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* payload_transfer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete payload_transfer_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_transfer_); } - if (payload_transfer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame>::GetOwningArena(payload_transfer); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - payload_transfer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_transfer, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - payload_transfer_ = payload_transfer; + + _impl_.payload_transfer_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.payload_transfer) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; -inline bool V1Frame::_internal_has_bandwidth_upgrade_negotiation() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || bandwidth_upgrade_negotiation_ != nullptr); +inline bool V1Frame::has_bandwidth_upgrade_negotiation() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.bandwidth_upgrade_negotiation_ != nullptr); return value; } -inline bool V1Frame::has_bandwidth_upgrade_negotiation() const { - return _internal_has_bandwidth_upgrade_negotiation(); -} inline void V1Frame::clear_bandwidth_upgrade_negotiation() { - if (bandwidth_upgrade_negotiation_ != nullptr) bandwidth_upgrade_negotiation_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bandwidth_upgrade_negotiation_ != nullptr) _impl_.bandwidth_upgrade_negotiation_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& V1Frame::_internal_bandwidth_upgrade_negotiation() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* p = bandwidth_upgrade_negotiation_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* p = _impl_.bandwidth_upgrade_negotiation_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& V1Frame::bandwidth_upgrade_negotiation() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& V1Frame::bandwidth_upgrade_negotiation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) return _internal_bandwidth_upgrade_negotiation(); } inline void V1Frame::unsafe_arena_set_allocated_bandwidth_upgrade_negotiation( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bandwidth_upgrade_negotiation_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bandwidth_upgrade_negotiation_); } - bandwidth_upgrade_negotiation_ = bandwidth_upgrade_negotiation; - if (bandwidth_upgrade_negotiation) { - _has_bits_[0] |= 0x00000008u; + _impl_.bandwidth_upgrade_negotiation_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::release_bandwidth_upgrade_negotiation() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* temp = bandwidth_upgrade_negotiation_; - bandwidth_upgrade_negotiation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE V1Frame::release_bandwidth_upgrade_negotiation() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* released = _impl_.bandwidth_upgrade_negotiation_; + _impl_.bandwidth_upgrade_negotiation_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::unsafe_arena_release_bandwidth_upgrade_negotiation() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_bandwidth_upgrade_negotiation() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* temp = bandwidth_upgrade_negotiation_; - bandwidth_upgrade_negotiation_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* temp = _impl_.bandwidth_upgrade_negotiation_; + _impl_.bandwidth_upgrade_negotiation_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::_internal_mutable_bandwidth_upgrade_negotiation() { - _has_bits_[0] |= 0x00000008u; - if (bandwidth_upgrade_negotiation_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(GetArenaForAllocation()); - bandwidth_upgrade_negotiation_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_bandwidth_upgrade_negotiation() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bandwidth_upgrade_negotiation_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(GetArena()); + _impl_.bandwidth_upgrade_negotiation_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame*>(p); } - return bandwidth_upgrade_negotiation_; + return _impl_.bandwidth_upgrade_negotiation_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::mutable_bandwidth_upgrade_negotiation() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NONNULL V1Frame::mutable_bandwidth_upgrade_negotiation() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* _msg = _internal_mutable_bandwidth_upgrade_negotiation(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) return _msg; } -inline void V1Frame::set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete bandwidth_upgrade_negotiation_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bandwidth_upgrade_negotiation_); } - if (bandwidth_upgrade_negotiation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>::GetOwningArena(bandwidth_upgrade_negotiation); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - bandwidth_upgrade_negotiation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bandwidth_upgrade_negotiation, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - bandwidth_upgrade_negotiation_ = bandwidth_upgrade_negotiation; + + _impl_.bandwidth_upgrade_negotiation_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) } // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; -inline bool V1Frame::_internal_has_keep_alive() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || keep_alive_ != nullptr); +inline bool V1Frame::has_keep_alive() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.keep_alive_ != nullptr); return value; } -inline bool V1Frame::has_keep_alive() const { - return _internal_has_keep_alive(); -} inline void V1Frame::clear_keep_alive() { - if (keep_alive_ != nullptr) keep_alive_->Clear(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.keep_alive_ != nullptr) _impl_.keep_alive_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::location::nearby::connections::KeepAliveFrame& V1Frame::_internal_keep_alive() const { - const ::location::nearby::connections::KeepAliveFrame* p = keep_alive_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_KeepAliveFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::KeepAliveFrame* p = _impl_.keep_alive_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_KeepAliveFrame_default_instance_); } -inline const ::location::nearby::connections::KeepAliveFrame& V1Frame::keep_alive() const { +inline const ::location::nearby::connections::KeepAliveFrame& V1Frame::keep_alive() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.keep_alive) return _internal_keep_alive(); } inline void V1Frame::unsafe_arena_set_allocated_keep_alive( - ::location::nearby::connections::KeepAliveFrame* keep_alive) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keep_alive_); + ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.keep_alive_); } - keep_alive_ = keep_alive; - if (keep_alive) { - _has_bits_[0] |= 0x00000010u; + _impl_.keep_alive_ = reinterpret_cast<::location::nearby::connections::KeepAliveFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.keep_alive) } -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::release_keep_alive() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::KeepAliveFrame* temp = keep_alive_; - keep_alive_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE V1Frame::release_keep_alive() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::KeepAliveFrame* released = _impl_.keep_alive_; + _impl_.keep_alive_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::unsafe_arena_release_keep_alive() { +inline ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_keep_alive() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.keep_alive) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::KeepAliveFrame* temp = keep_alive_; - keep_alive_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::KeepAliveFrame* temp = _impl_.keep_alive_; + _impl_.keep_alive_ = nullptr; return temp; } -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::_internal_mutable_keep_alive() { - _has_bits_[0] |= 0x00000010u; - if (keep_alive_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::KeepAliveFrame>(GetArenaForAllocation()); - keep_alive_ = p; +inline ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_keep_alive() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.keep_alive_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::KeepAliveFrame>(GetArena()); + _impl_.keep_alive_ = reinterpret_cast<::location::nearby::connections::KeepAliveFrame*>(p); } - return keep_alive_; + return _impl_.keep_alive_; } -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::mutable_keep_alive() { +inline ::location::nearby::connections::KeepAliveFrame* PROTOBUF_NONNULL V1Frame::mutable_keep_alive() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::location::nearby::connections::KeepAliveFrame* _msg = _internal_mutable_keep_alive(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.keep_alive) return _msg; } -inline void V1Frame::set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* keep_alive) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete keep_alive_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.keep_alive_); } - if (keep_alive) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::KeepAliveFrame>::GetOwningArena(keep_alive); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - keep_alive = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, keep_alive, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - keep_alive_ = keep_alive; + + _impl_.keep_alive_ = reinterpret_cast<::location::nearby::connections::KeepAliveFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.keep_alive) } // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; -inline bool V1Frame::_internal_has_disconnection() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || disconnection_ != nullptr); +inline bool V1Frame::has_disconnection() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.disconnection_ != nullptr); return value; } -inline bool V1Frame::has_disconnection() const { - return _internal_has_disconnection(); -} inline void V1Frame::clear_disconnection() { - if (disconnection_ != nullptr) disconnection_->Clear(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_ != nullptr) _impl_.disconnection_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::location::nearby::connections::DisconnectionFrame& V1Frame::_internal_disconnection() const { - const ::location::nearby::connections::DisconnectionFrame* p = disconnection_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_DisconnectionFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::DisconnectionFrame* p = _impl_.disconnection_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_DisconnectionFrame_default_instance_); } -inline const ::location::nearby::connections::DisconnectionFrame& V1Frame::disconnection() const { +inline const ::location::nearby::connections::DisconnectionFrame& V1Frame::disconnection() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.disconnection) return _internal_disconnection(); } inline void V1Frame::unsafe_arena_set_allocated_disconnection( - ::location::nearby::connections::DisconnectionFrame* disconnection) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(disconnection_); + ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_); } - disconnection_ = disconnection; - if (disconnection) { - _has_bits_[0] |= 0x00000020u; + _impl_.disconnection_ = reinterpret_cast<::location::nearby::connections::DisconnectionFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.disconnection) } -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::release_disconnection() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::DisconnectionFrame* temp = disconnection_; - disconnection_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE V1Frame::release_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::DisconnectionFrame* released = _impl_.disconnection_; + _impl_.disconnection_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::unsafe_arena_release_disconnection() { +inline ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.disconnection) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::DisconnectionFrame* temp = disconnection_; - disconnection_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::DisconnectionFrame* temp = _impl_.disconnection_; + _impl_.disconnection_ = nullptr; return temp; } -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::_internal_mutable_disconnection() { - _has_bits_[0] |= 0x00000020u; - if (disconnection_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::DisconnectionFrame>(GetArenaForAllocation()); - disconnection_ = p; +inline ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::DisconnectionFrame>(GetArena()); + _impl_.disconnection_ = reinterpret_cast<::location::nearby::connections::DisconnectionFrame*>(p); } - return disconnection_; + return _impl_.disconnection_; } -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::mutable_disconnection() { +inline ::location::nearby::connections::DisconnectionFrame* PROTOBUF_NONNULL V1Frame::mutable_disconnection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::location::nearby::connections::DisconnectionFrame* _msg = _internal_mutable_disconnection(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.disconnection) return _msg; } -inline void V1Frame::set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete disconnection_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_); } - if (disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::DisconnectionFrame>::GetOwningArena(disconnection); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - disconnection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, disconnection, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - disconnection_ = disconnection; + + _impl_.disconnection_ = reinterpret_cast<::location::nearby::connections::DisconnectionFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.disconnection) } // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; -inline bool V1Frame::_internal_has_paired_key_encryption() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || paired_key_encryption_ != nullptr); +inline bool V1Frame::has_paired_key_encryption() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.paired_key_encryption_ != nullptr); return value; } -inline bool V1Frame::has_paired_key_encryption() const { - return _internal_has_paired_key_encryption(); -} inline void V1Frame::clear_paired_key_encryption() { - if (paired_key_encryption_ != nullptr) paired_key_encryption_->Clear(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.paired_key_encryption_ != nullptr) _impl_.paired_key_encryption_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::_internal_paired_key_encryption() const { - const ::location::nearby::connections::PairedKeyEncryptionFrame* p = paired_key_encryption_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PairedKeyEncryptionFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::PairedKeyEncryptionFrame* p = _impl_.paired_key_encryption_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_PairedKeyEncryptionFrame_default_instance_); } -inline const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::paired_key_encryption() const { +inline const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::paired_key_encryption() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.paired_key_encryption) return _internal_paired_key_encryption(); } inline void V1Frame::unsafe_arena_set_allocated_paired_key_encryption( - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paired_key_encryption_); + ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paired_key_encryption_); } - paired_key_encryption_ = paired_key_encryption; - if (paired_key_encryption) { - _has_bits_[0] |= 0x00000040u; + _impl_.paired_key_encryption_ = reinterpret_cast<::location::nearby::connections::PairedKeyEncryptionFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.paired_key_encryption) } -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::release_paired_key_encryption() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::PairedKeyEncryptionFrame* temp = paired_key_encryption_; - paired_key_encryption_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE V1Frame::release_paired_key_encryption() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::PairedKeyEncryptionFrame* released = _impl_.paired_key_encryption_; + _impl_.paired_key_encryption_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::unsafe_arena_release_paired_key_encryption() { +inline ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_paired_key_encryption() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.paired_key_encryption) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::PairedKeyEncryptionFrame* temp = paired_key_encryption_; - paired_key_encryption_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::PairedKeyEncryptionFrame* temp = _impl_.paired_key_encryption_; + _impl_.paired_key_encryption_ = nullptr; return temp; } -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::_internal_mutable_paired_key_encryption() { - _has_bits_[0] |= 0x00000040u; - if (paired_key_encryption_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PairedKeyEncryptionFrame>(GetArenaForAllocation()); - paired_key_encryption_ = p; +inline ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_paired_key_encryption() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.paired_key_encryption_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PairedKeyEncryptionFrame>(GetArena()); + _impl_.paired_key_encryption_ = reinterpret_cast<::location::nearby::connections::PairedKeyEncryptionFrame*>(p); } - return paired_key_encryption_; + return _impl_.paired_key_encryption_; } -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::mutable_paired_key_encryption() { +inline ::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NONNULL V1Frame::mutable_paired_key_encryption() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::location::nearby::connections::PairedKeyEncryptionFrame* _msg = _internal_mutable_paired_key_encryption(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.paired_key_encryption) return _msg; } -inline void V1Frame::set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete paired_key_encryption_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paired_key_encryption_); } - if (paired_key_encryption) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PairedKeyEncryptionFrame>::GetOwningArena(paired_key_encryption); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - paired_key_encryption = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, paired_key_encryption, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - paired_key_encryption_ = paired_key_encryption; + + _impl_.paired_key_encryption_ = reinterpret_cast<::location::nearby::connections::PairedKeyEncryptionFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.paired_key_encryption) } // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; -inline bool V1Frame::_internal_has_authentication_message() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || authentication_message_ != nullptr); +inline bool V1Frame::has_authentication_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.authentication_message_ != nullptr); return value; } -inline bool V1Frame::has_authentication_message() const { - return _internal_has_authentication_message(); -} inline void V1Frame::clear_authentication_message() { - if (authentication_message_ != nullptr) authentication_message_->Clear(); - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.authentication_message_ != nullptr) _impl_.authentication_message_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline const ::location::nearby::connections::AuthenticationMessageFrame& V1Frame::_internal_authentication_message() const { - const ::location::nearby::connections::AuthenticationMessageFrame* p = authentication_message_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AuthenticationMessageFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::AuthenticationMessageFrame* p = _impl_.authentication_message_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_AuthenticationMessageFrame_default_instance_); } -inline const ::location::nearby::connections::AuthenticationMessageFrame& V1Frame::authentication_message() const { +inline const ::location::nearby::connections::AuthenticationMessageFrame& V1Frame::authentication_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.authentication_message) return _internal_authentication_message(); } inline void V1Frame::unsafe_arena_set_allocated_authentication_message( - ::location::nearby::connections::AuthenticationMessageFrame* authentication_message) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authentication_message_); + ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authentication_message_); } - authentication_message_ = authentication_message; - if (authentication_message) { - _has_bits_[0] |= 0x00000080u; + _impl_.authentication_message_ = reinterpret_cast<::location::nearby::connections::AuthenticationMessageFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.authentication_message) } -inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::release_authentication_message() { - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::AuthenticationMessageFrame* temp = authentication_message_; - authentication_message_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE V1Frame::release_authentication_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::AuthenticationMessageFrame* released = _impl_.authentication_message_; + _impl_.authentication_message_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::unsafe_arena_release_authentication_message() { +inline ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_authentication_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.authentication_message) - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::AuthenticationMessageFrame* temp = authentication_message_; - authentication_message_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::AuthenticationMessageFrame* temp = _impl_.authentication_message_; + _impl_.authentication_message_ = nullptr; return temp; } -inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::_internal_mutable_authentication_message() { - _has_bits_[0] |= 0x00000080u; - if (authentication_message_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AuthenticationMessageFrame>(GetArenaForAllocation()); - authentication_message_ = p; +inline ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_authentication_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.authentication_message_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::AuthenticationMessageFrame>(GetArena()); + _impl_.authentication_message_ = reinterpret_cast<::location::nearby::connections::AuthenticationMessageFrame*>(p); } - return authentication_message_; + return _impl_.authentication_message_; } -inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::mutable_authentication_message() { +inline ::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NONNULL V1Frame::mutable_authentication_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::location::nearby::connections::AuthenticationMessageFrame* _msg = _internal_mutable_authentication_message(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.authentication_message) return _msg; } -inline void V1Frame::set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* authentication_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete authentication_message_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authentication_message_); } - if (authentication_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AuthenticationMessageFrame>::GetOwningArena(authentication_message); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - authentication_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authentication_message, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - authentication_message_ = authentication_message; + + _impl_.authentication_message_ = reinterpret_cast<::location::nearby::connections::AuthenticationMessageFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.authentication_message) } // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; -inline bool V1Frame::_internal_has_authentication_result() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - PROTOBUF_ASSUME(!value || authentication_result_ != nullptr); +inline bool V1Frame::has_authentication_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + PROTOBUF_ASSUME(!value || _impl_.authentication_result_ != nullptr); return value; } -inline bool V1Frame::has_authentication_result() const { - return _internal_has_authentication_result(); -} inline void V1Frame::clear_authentication_result() { - if (authentication_result_ != nullptr) authentication_result_->Clear(); - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.authentication_result_ != nullptr) _impl_.authentication_result_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline const ::location::nearby::connections::AuthenticationResultFrame& V1Frame::_internal_authentication_result() const { - const ::location::nearby::connections::AuthenticationResultFrame* p = authentication_result_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AuthenticationResultFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::AuthenticationResultFrame* p = _impl_.authentication_result_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_AuthenticationResultFrame_default_instance_); } -inline const ::location::nearby::connections::AuthenticationResultFrame& V1Frame::authentication_result() const { +inline const ::location::nearby::connections::AuthenticationResultFrame& V1Frame::authentication_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.authentication_result) return _internal_authentication_result(); } inline void V1Frame::unsafe_arena_set_allocated_authentication_result( - ::location::nearby::connections::AuthenticationResultFrame* authentication_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authentication_result_); + ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authentication_result_); } - authentication_result_ = authentication_result; - if (authentication_result) { - _has_bits_[0] |= 0x00000100u; + _impl_.authentication_result_ = reinterpret_cast<::location::nearby::connections::AuthenticationResultFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.authentication_result) } -inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::release_authentication_result() { - _has_bits_[0] &= ~0x00000100u; - ::location::nearby::connections::AuthenticationResultFrame* temp = authentication_result_; - authentication_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE V1Frame::release_authentication_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::location::nearby::connections::AuthenticationResultFrame* released = _impl_.authentication_result_; + _impl_.authentication_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::unsafe_arena_release_authentication_result() { +inline ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_authentication_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.authentication_result) - _has_bits_[0] &= ~0x00000100u; - ::location::nearby::connections::AuthenticationResultFrame* temp = authentication_result_; - authentication_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::location::nearby::connections::AuthenticationResultFrame* temp = _impl_.authentication_result_; + _impl_.authentication_result_ = nullptr; return temp; } -inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::_internal_mutable_authentication_result() { - _has_bits_[0] |= 0x00000100u; - if (authentication_result_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AuthenticationResultFrame>(GetArenaForAllocation()); - authentication_result_ = p; +inline ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_authentication_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.authentication_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::AuthenticationResultFrame>(GetArena()); + _impl_.authentication_result_ = reinterpret_cast<::location::nearby::connections::AuthenticationResultFrame*>(p); } - return authentication_result_; + return _impl_.authentication_result_; } -inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::mutable_authentication_result() { +inline ::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NONNULL V1Frame::mutable_authentication_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::location::nearby::connections::AuthenticationResultFrame* _msg = _internal_mutable_authentication_result(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.authentication_result) return _msg; } -inline void V1Frame::set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* authentication_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete authentication_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authentication_result_); } - if (authentication_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AuthenticationResultFrame>::GetOwningArena(authentication_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - authentication_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authentication_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000100u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } - authentication_result_ = authentication_result; + + _impl_.authentication_result_ = reinterpret_cast<::location::nearby::connections::AuthenticationResultFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.authentication_result) } // optional .location.nearby.connections.AutoResumeFrame auto_resume = 11; -inline bool V1Frame::_internal_has_auto_resume() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - PROTOBUF_ASSUME(!value || auto_resume_ != nullptr); +inline bool V1Frame::has_auto_resume() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); + PROTOBUF_ASSUME(!value || _impl_.auto_resume_ != nullptr); return value; } -inline bool V1Frame::has_auto_resume() const { - return _internal_has_auto_resume(); -} inline void V1Frame::clear_auto_resume() { - if (auto_resume_ != nullptr) auto_resume_->Clear(); - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_resume_ != nullptr) _impl_.auto_resume_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline const ::location::nearby::connections::AutoResumeFrame& V1Frame::_internal_auto_resume() const { - const ::location::nearby::connections::AutoResumeFrame* p = auto_resume_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AutoResumeFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::AutoResumeFrame* p = _impl_.auto_resume_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_AutoResumeFrame_default_instance_); } -inline const ::location::nearby::connections::AutoResumeFrame& V1Frame::auto_resume() const { +inline const ::location::nearby::connections::AutoResumeFrame& V1Frame::auto_resume() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.auto_resume) return _internal_auto_resume(); } inline void V1Frame::unsafe_arena_set_allocated_auto_resume( - ::location::nearby::connections::AutoResumeFrame* auto_resume) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auto_resume_); + ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_resume_); } - auto_resume_ = auto_resume; - if (auto_resume) { - _has_bits_[0] |= 0x00000200u; + _impl_.auto_resume_ = reinterpret_cast<::location::nearby::connections::AutoResumeFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.auto_resume) } -inline ::location::nearby::connections::AutoResumeFrame* V1Frame::release_auto_resume() { - _has_bits_[0] &= ~0x00000200u; - ::location::nearby::connections::AutoResumeFrame* temp = auto_resume_; - auto_resume_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE V1Frame::release_auto_resume() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + ::location::nearby::connections::AutoResumeFrame* released = _impl_.auto_resume_; + _impl_.auto_resume_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::AutoResumeFrame* V1Frame::unsafe_arena_release_auto_resume() { +inline ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_auto_resume() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.auto_resume) - _has_bits_[0] &= ~0x00000200u; - ::location::nearby::connections::AutoResumeFrame* temp = auto_resume_; - auto_resume_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + ::location::nearby::connections::AutoResumeFrame* temp = _impl_.auto_resume_; + _impl_.auto_resume_ = nullptr; return temp; } -inline ::location::nearby::connections::AutoResumeFrame* V1Frame::_internal_mutable_auto_resume() { - _has_bits_[0] |= 0x00000200u; - if (auto_resume_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AutoResumeFrame>(GetArenaForAllocation()); - auto_resume_ = p; +inline ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_auto_resume() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_resume_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::AutoResumeFrame>(GetArena()); + _impl_.auto_resume_ = reinterpret_cast<::location::nearby::connections::AutoResumeFrame*>(p); } - return auto_resume_; + return _impl_.auto_resume_; } -inline ::location::nearby::connections::AutoResumeFrame* V1Frame::mutable_auto_resume() { +inline ::location::nearby::connections::AutoResumeFrame* PROTOBUF_NONNULL V1Frame::mutable_auto_resume() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); ::location::nearby::connections::AutoResumeFrame* _msg = _internal_mutable_auto_resume(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.auto_resume) return _msg; } -inline void V1Frame::set_allocated_auto_resume(::location::nearby::connections::AutoResumeFrame* auto_resume) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_auto_resume(::location::nearby::connections::AutoResumeFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete auto_resume_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_resume_); } - if (auto_resume) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AutoResumeFrame>::GetOwningArena(auto_resume); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - auto_resume = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, auto_resume, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000200u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } - auto_resume_ = auto_resume; + + _impl_.auto_resume_ = reinterpret_cast<::location::nearby::connections::AutoResumeFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.auto_resume) } // optional .location.nearby.connections.AutoReconnectFrame auto_reconnect = 12; -inline bool V1Frame::_internal_has_auto_reconnect() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; - PROTOBUF_ASSUME(!value || auto_reconnect_ != nullptr); +inline bool V1Frame::has_auto_reconnect() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); + PROTOBUF_ASSUME(!value || _impl_.auto_reconnect_ != nullptr); return value; } -inline bool V1Frame::has_auto_reconnect() const { - return _internal_has_auto_reconnect(); -} inline void V1Frame::clear_auto_reconnect() { - if (auto_reconnect_ != nullptr) auto_reconnect_->Clear(); - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_reconnect_ != nullptr) _impl_.auto_reconnect_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline const ::location::nearby::connections::AutoReconnectFrame& V1Frame::_internal_auto_reconnect() const { - const ::location::nearby::connections::AutoReconnectFrame* p = auto_reconnect_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AutoReconnectFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::AutoReconnectFrame* p = _impl_.auto_reconnect_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_AutoReconnectFrame_default_instance_); } -inline const ::location::nearby::connections::AutoReconnectFrame& V1Frame::auto_reconnect() const { +inline const ::location::nearby::connections::AutoReconnectFrame& V1Frame::auto_reconnect() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.auto_reconnect) return _internal_auto_reconnect(); } inline void V1Frame::unsafe_arena_set_allocated_auto_reconnect( - ::location::nearby::connections::AutoReconnectFrame* auto_reconnect) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auto_reconnect_); + ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_reconnect_); } - auto_reconnect_ = auto_reconnect; - if (auto_reconnect) { - _has_bits_[0] |= 0x00000400u; + _impl_.auto_reconnect_ = reinterpret_cast<::location::nearby::connections::AutoReconnectFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.auto_reconnect) } -inline ::location::nearby::connections::AutoReconnectFrame* V1Frame::release_auto_reconnect() { - _has_bits_[0] &= ~0x00000400u; - ::location::nearby::connections::AutoReconnectFrame* temp = auto_reconnect_; - auto_reconnect_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE V1Frame::release_auto_reconnect() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + ::location::nearby::connections::AutoReconnectFrame* released = _impl_.auto_reconnect_; + _impl_.auto_reconnect_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::AutoReconnectFrame* V1Frame::unsafe_arena_release_auto_reconnect() { +inline ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_auto_reconnect() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.auto_reconnect) - _has_bits_[0] &= ~0x00000400u; - ::location::nearby::connections::AutoReconnectFrame* temp = auto_reconnect_; - auto_reconnect_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + ::location::nearby::connections::AutoReconnectFrame* temp = _impl_.auto_reconnect_; + _impl_.auto_reconnect_ = nullptr; return temp; } -inline ::location::nearby::connections::AutoReconnectFrame* V1Frame::_internal_mutable_auto_reconnect() { - _has_bits_[0] |= 0x00000400u; - if (auto_reconnect_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AutoReconnectFrame>(GetArenaForAllocation()); - auto_reconnect_ = p; +inline ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_auto_reconnect() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_reconnect_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::AutoReconnectFrame>(GetArena()); + _impl_.auto_reconnect_ = reinterpret_cast<::location::nearby::connections::AutoReconnectFrame*>(p); } - return auto_reconnect_; + return _impl_.auto_reconnect_; } -inline ::location::nearby::connections::AutoReconnectFrame* V1Frame::mutable_auto_reconnect() { +inline ::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NONNULL V1Frame::mutable_auto_reconnect() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); ::location::nearby::connections::AutoReconnectFrame* _msg = _internal_mutable_auto_reconnect(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.auto_reconnect) return _msg; } -inline void V1Frame::set_allocated_auto_reconnect(::location::nearby::connections::AutoReconnectFrame* auto_reconnect) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_auto_reconnect(::location::nearby::connections::AutoReconnectFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete auto_reconnect_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_reconnect_); } - if (auto_reconnect) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AutoReconnectFrame>::GetOwningArena(auto_reconnect); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - auto_reconnect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, auto_reconnect, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000400u; + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } - auto_reconnect_ = auto_reconnect; + + _impl_.auto_reconnect_ = reinterpret_cast<::location::nearby::connections::AutoReconnectFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.auto_reconnect) } // optional .location.nearby.connections.BandwidthUpgradeRetryFrame bandwidth_upgrade_retry = 13; -inline bool V1Frame::_internal_has_bandwidth_upgrade_retry() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; - PROTOBUF_ASSUME(!value || bandwidth_upgrade_retry_ != nullptr); +inline bool V1Frame::has_bandwidth_upgrade_retry() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); + PROTOBUF_ASSUME(!value || _impl_.bandwidth_upgrade_retry_ != nullptr); return value; } -inline bool V1Frame::has_bandwidth_upgrade_retry() const { - return _internal_has_bandwidth_upgrade_retry(); -} inline void V1Frame::clear_bandwidth_upgrade_retry() { - if (bandwidth_upgrade_retry_ != nullptr) bandwidth_upgrade_retry_->Clear(); - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bandwidth_upgrade_retry_ != nullptr) _impl_.bandwidth_upgrade_retry_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline const ::location::nearby::connections::BandwidthUpgradeRetryFrame& V1Frame::_internal_bandwidth_upgrade_retry() const { - const ::location::nearby::connections::BandwidthUpgradeRetryFrame* p = bandwidth_upgrade_retry_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeRetryFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeRetryFrame* p = _impl_.bandwidth_upgrade_retry_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeRetryFrame_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeRetryFrame& V1Frame::bandwidth_upgrade_retry() const { +inline const ::location::nearby::connections::BandwidthUpgradeRetryFrame& V1Frame::bandwidth_upgrade_retry() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.bandwidth_upgrade_retry) return _internal_bandwidth_upgrade_retry(); } inline void V1Frame::unsafe_arena_set_allocated_bandwidth_upgrade_retry( - ::location::nearby::connections::BandwidthUpgradeRetryFrame* bandwidth_upgrade_retry) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bandwidth_upgrade_retry_); + ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bandwidth_upgrade_retry_); } - bandwidth_upgrade_retry_ = bandwidth_upgrade_retry; - if (bandwidth_upgrade_retry) { - _has_bits_[0] |= 0x00000800u; + _impl_.bandwidth_upgrade_retry_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_retry) } -inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* V1Frame::release_bandwidth_upgrade_retry() { - _has_bits_[0] &= ~0x00000800u; - ::location::nearby::connections::BandwidthUpgradeRetryFrame* temp = bandwidth_upgrade_retry_; - bandwidth_upgrade_retry_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE V1Frame::release_bandwidth_upgrade_retry() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + ::location::nearby::connections::BandwidthUpgradeRetryFrame* released = _impl_.bandwidth_upgrade_retry_; + _impl_.bandwidth_upgrade_retry_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* V1Frame::unsafe_arena_release_bandwidth_upgrade_retry() { +inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE V1Frame::unsafe_arena_release_bandwidth_upgrade_retry() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.bandwidth_upgrade_retry) - _has_bits_[0] &= ~0x00000800u; - ::location::nearby::connections::BandwidthUpgradeRetryFrame* temp = bandwidth_upgrade_retry_; - bandwidth_upgrade_retry_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + ::location::nearby::connections::BandwidthUpgradeRetryFrame* temp = _impl_.bandwidth_upgrade_retry_; + _impl_.bandwidth_upgrade_retry_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* V1Frame::_internal_mutable_bandwidth_upgrade_retry() { - _has_bits_[0] |= 0x00000800u; - if (bandwidth_upgrade_retry_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeRetryFrame>(GetArenaForAllocation()); - bandwidth_upgrade_retry_ = p; +inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL V1Frame::_internal_mutable_bandwidth_upgrade_retry() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bandwidth_upgrade_retry_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeRetryFrame>(GetArena()); + _impl_.bandwidth_upgrade_retry_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame*>(p); } - return bandwidth_upgrade_retry_; + return _impl_.bandwidth_upgrade_retry_; } -inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* V1Frame::mutable_bandwidth_upgrade_retry() { +inline ::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NONNULL V1Frame::mutable_bandwidth_upgrade_retry() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); ::location::nearby::connections::BandwidthUpgradeRetryFrame* _msg = _internal_mutable_bandwidth_upgrade_retry(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.bandwidth_upgrade_retry) return _msg; } -inline void V1Frame::set_allocated_bandwidth_upgrade_retry(::location::nearby::connections::BandwidthUpgradeRetryFrame* bandwidth_upgrade_retry) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void V1Frame::set_allocated_bandwidth_upgrade_retry(::location::nearby::connections::BandwidthUpgradeRetryFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete bandwidth_upgrade_retry_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bandwidth_upgrade_retry_); } - if (bandwidth_upgrade_retry) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeRetryFrame>::GetOwningArena(bandwidth_upgrade_retry); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - bandwidth_upgrade_retry = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bandwidth_upgrade_retry, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000800u; + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } - bandwidth_upgrade_retry_ = bandwidth_upgrade_retry; + + _impl_.bandwidth_upgrade_retry_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_retry) } @@ -10909,861 +12277,917 @@ inline void V1Frame::set_allocated_bandwidth_upgrade_retry(::location::nearby::c // ConnectionRequestFrame // optional string endpoint_id = 1; -inline bool ConnectionRequestFrame::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionRequestFrame::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionRequestFrame::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void ConnectionRequestFrame::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionRequestFrame::endpoint_id() const { +inline const ::std::string& ConnectionRequestFrame::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionRequestFrame::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_id) } -inline std::string* ConnectionRequestFrame::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_id) return _s; } -inline const std::string& ConnectionRequestFrame::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& ConnectionRequestFrame::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void ConnectionRequestFrame::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionRequestFrame::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* ConnectionRequestFrame::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionRequestFrame::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionRequestFrame::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionRequestFrame::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_id) } // optional string endpoint_name = 2; -inline bool ConnectionRequestFrame::_internal_has_endpoint_name() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionRequestFrame::has_endpoint_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionRequestFrame::has_endpoint_name() const { - return _internal_has_endpoint_name(); -} inline void ConnectionRequestFrame::clear_endpoint_name() { - endpoint_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ConnectionRequestFrame::endpoint_name() const { +inline const ::std::string& ConnectionRequestFrame::endpoint_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_name) return _internal_endpoint_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionRequestFrame::set_endpoint_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.endpoint_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_name) } -inline std::string* ConnectionRequestFrame::mutable_endpoint_name() { - std::string* _s = _internal_mutable_endpoint_name(); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_endpoint_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_endpoint_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_name) return _s; } -inline const std::string& ConnectionRequestFrame::_internal_endpoint_name() const { - return endpoint_name_.Get(); +inline const ::std::string& ConnectionRequestFrame::_internal_endpoint_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_name_.Get(); } -inline void ConnectionRequestFrame::_internal_set_endpoint_name(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionRequestFrame::_internal_set_endpoint_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_name_.Set(value, GetArena()); } -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_name() { - _has_bits_[0] |= 0x00000002u; - return endpoint_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_endpoint_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_name_.Mutable( GetArena()); } -inline std::string* ConnectionRequestFrame::release_endpoint_name() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionRequestFrame::release_endpoint_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_name) - if (!_internal_has_endpoint_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = endpoint_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.endpoint_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionRequestFrame::set_allocated_endpoint_name(std::string* endpoint_name) { - if (endpoint_name != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionRequestFrame::set_allocated_endpoint_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - endpoint_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_name_.IsDefault()) { + _impl_.endpoint_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_name) } // optional bytes handshake_data = 3; -inline bool ConnectionRequestFrame::_internal_has_handshake_data() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionRequestFrame::has_handshake_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionRequestFrame::has_handshake_data() const { - return _internal_has_handshake_data(); -} inline void ConnectionRequestFrame::clear_handshake_data() { - handshake_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& ConnectionRequestFrame::handshake_data() const { +inline const ::std::string& ConnectionRequestFrame::handshake_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.handshake_data) return _internal_handshake_data(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_handshake_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - handshake_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionRequestFrame::set_handshake_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.handshake_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.handshake_data) } -inline std::string* ConnectionRequestFrame::mutable_handshake_data() { - std::string* _s = _internal_mutable_handshake_data(); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_handshake_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_handshake_data(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.handshake_data) return _s; } -inline const std::string& ConnectionRequestFrame::_internal_handshake_data() const { - return handshake_data_.Get(); +inline const ::std::string& ConnectionRequestFrame::_internal_handshake_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.handshake_data_.Get(); } -inline void ConnectionRequestFrame::_internal_set_handshake_data(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionRequestFrame::_internal_set_handshake_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_data_.Set(value, GetArena()); } -inline std::string* ConnectionRequestFrame::_internal_mutable_handshake_data() { - _has_bits_[0] |= 0x00000004u; - return handshake_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_handshake_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.handshake_data_.Mutable( GetArena()); } -inline std::string* ConnectionRequestFrame::release_handshake_data() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionRequestFrame::release_handshake_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.handshake_data) - if (!_internal_has_handshake_data()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = handshake_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.handshake_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.handshake_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionRequestFrame::set_allocated_handshake_data(std::string* handshake_data) { - if (handshake_data != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void ConnectionRequestFrame::set_allocated_handshake_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - handshake_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), handshake_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.handshake_data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.handshake_data_.IsDefault()) { + _impl_.handshake_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.handshake_data) } // optional int32 nonce = 4; -inline bool ConnectionRequestFrame::_internal_has_nonce() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionRequestFrame::has_nonce() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionRequestFrame::has_nonce() const { - return _internal_has_nonce(); -} inline void ConnectionRequestFrame::clear_nonce() { - nonce_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.nonce_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t ConnectionRequestFrame::_internal_nonce() const { - return nonce_; -} -inline int32_t ConnectionRequestFrame::nonce() const { +inline ::int32_t ConnectionRequestFrame::nonce() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.nonce) return _internal_nonce(); } -inline void ConnectionRequestFrame::_internal_set_nonce(int32_t value) { - _has_bits_[0] |= 0x00000080u; - nonce_ = value; -} -inline void ConnectionRequestFrame::set_nonce(int32_t value) { +inline void ConnectionRequestFrame::set_nonce(::int32_t value) { _internal_set_nonce(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.nonce) } +inline ::int32_t ConnectionRequestFrame::_internal_nonce() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.nonce_; +} +inline void ConnectionRequestFrame::_internal_set_nonce(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.nonce_ = value; +} // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; inline int ConnectionRequestFrame::_internal_mediums_size() const { - return mediums_.size(); + return _internal_mediums().size(); } inline int ConnectionRequestFrame::mediums_size() const { return _internal_mediums_size(); } inline void ConnectionRequestFrame::clear_mediums() { - mediums_.Clear(); -} -inline ::location::nearby::connections::ConnectionRequestFrame_Medium ConnectionRequestFrame::_internal_mediums(int index) const { - return static_cast< ::location::nearby::connections::ConnectionRequestFrame_Medium >(mediums_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mediums_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::ConnectionRequestFrame_Medium ConnectionRequestFrame::mediums(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.mediums) - return _internal_mediums(index); + return static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(_internal_mediums().Get(index)); } inline void ConnectionRequestFrame::set_mediums(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - mediums_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionRequestFrame_Medium_internal_data_)); + _internal_mutable_mediums()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.mediums) } -inline void ConnectionRequestFrame::_internal_add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - mediums_.Add(value); -} inline void ConnectionRequestFrame::add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - _internal_add_mediums(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionRequestFrame_Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_mediums()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.ConnectionRequestFrame.mediums) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ConnectionRequestFrame::mediums() const { +inline const ::google::protobuf::RepeatedField& ConnectionRequestFrame::mediums() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.ConnectionRequestFrame.mediums) - return mediums_; + return _internal_mediums(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionRequestFrame::_internal_mutable_mediums() { - return &mediums_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionRequestFrame::mutable_mediums() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_mediums() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.ConnectionRequestFrame.mediums) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_mediums(); } +inline const ::google::protobuf::RepeatedField& ConnectionRequestFrame::_internal_mediums() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mediums_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ConnectionRequestFrame::_internal_mutable_mediums() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.mediums_; +} // optional bytes endpoint_info = 6; -inline bool ConnectionRequestFrame::_internal_has_endpoint_info() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionRequestFrame::has_endpoint_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionRequestFrame::has_endpoint_info() const { - return _internal_has_endpoint_info(); -} inline void ConnectionRequestFrame::clear_endpoint_info() { - endpoint_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& ConnectionRequestFrame::endpoint_info() const { +inline const ::std::string& ConnectionRequestFrame::endpoint_info() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_info) return _internal_endpoint_info(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - endpoint_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionRequestFrame::set_endpoint_info(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.endpoint_info_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_info) } -inline std::string* ConnectionRequestFrame::mutable_endpoint_info() { - std::string* _s = _internal_mutable_endpoint_info(); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_endpoint_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_endpoint_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_info) return _s; } -inline const std::string& ConnectionRequestFrame::_internal_endpoint_info() const { - return endpoint_info_.Get(); +inline const ::std::string& ConnectionRequestFrame::_internal_endpoint_info() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_info_.Get(); } -inline void ConnectionRequestFrame::_internal_set_endpoint_info(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionRequestFrame::_internal_set_endpoint_info(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_.Set(value, GetArena()); } -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_info() { - _has_bits_[0] |= 0x00000008u; - return endpoint_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_endpoint_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_info_.Mutable( GetArena()); } -inline std::string* ConnectionRequestFrame::release_endpoint_info() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionRequestFrame::release_endpoint_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_info) - if (!_internal_has_endpoint_info()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = endpoint_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.endpoint_info_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionRequestFrame::set_allocated_endpoint_info(std::string* endpoint_info) { - if (endpoint_info != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void ConnectionRequestFrame::set_allocated_endpoint_info(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - endpoint_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_info_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_info_.IsDefault()) { + _impl_.endpoint_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_info) } // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; -inline bool ConnectionRequestFrame::_internal_has_medium_metadata() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || medium_metadata_ != nullptr); +inline bool ConnectionRequestFrame::has_medium_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.medium_metadata_ != nullptr); return value; } -inline bool ConnectionRequestFrame::has_medium_metadata() const { - return _internal_has_medium_metadata(); -} inline void ConnectionRequestFrame::clear_medium_metadata() { - if (medium_metadata_ != nullptr) medium_metadata_->Clear(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_metadata_ != nullptr) _impl_.medium_metadata_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::_internal_medium_metadata() const { - const ::location::nearby::connections::MediumMetadata* p = medium_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_MediumMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::MediumMetadata* p = _impl_.medium_metadata_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_MediumMetadata_default_instance_); } -inline const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::medium_metadata() const { +inline const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::medium_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.medium_metadata) return _internal_medium_metadata(); } inline void ConnectionRequestFrame::unsafe_arena_set_allocated_medium_metadata( - ::location::nearby::connections::MediumMetadata* medium_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(medium_metadata_); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_metadata_); } - medium_metadata_ = medium_metadata; - if (medium_metadata) { - _has_bits_[0] |= 0x00000020u; + _impl_.medium_metadata_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.medium_metadata) } -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::release_medium_metadata() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::MediumMetadata* temp = medium_metadata_; - medium_metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE ConnectionRequestFrame::release_medium_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::MediumMetadata* released = _impl_.medium_metadata_; + _impl_.medium_metadata_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::unsafe_arena_release_medium_metadata() { +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE ConnectionRequestFrame::unsafe_arena_release_medium_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.medium_metadata) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::MediumMetadata* temp = medium_metadata_; - medium_metadata_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::MediumMetadata* temp = _impl_.medium_metadata_; + _impl_.medium_metadata_ = nullptr; return temp; } -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::_internal_mutable_medium_metadata() { - _has_bits_[0] |= 0x00000020u; - if (medium_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(GetArenaForAllocation()); - medium_metadata_ = p; +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_medium_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_metadata_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::MediumMetadata>(GetArena()); + _impl_.medium_metadata_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(p); } - return medium_metadata_; + return _impl_.medium_metadata_; } -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::mutable_medium_metadata() { +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_medium_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::location::nearby::connections::MediumMetadata* _msg = _internal_mutable_medium_metadata(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.medium_metadata) return _msg; } -inline void ConnectionRequestFrame::set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* medium_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionRequestFrame::set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete medium_metadata_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_metadata_); } - if (medium_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::MediumMetadata>::GetOwningArena(medium_metadata); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - medium_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, medium_metadata, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - medium_metadata_ = medium_metadata; + + _impl_.medium_metadata_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.medium_metadata) } // optional int32 keep_alive_interval_millis = 8; -inline bool ConnectionRequestFrame::_internal_has_keep_alive_interval_millis() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionRequestFrame::has_keep_alive_interval_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionRequestFrame::has_keep_alive_interval_millis() const { - return _internal_has_keep_alive_interval_millis(); -} inline void ConnectionRequestFrame::clear_keep_alive_interval_millis() { - keep_alive_interval_millis_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_interval_millis_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int32_t ConnectionRequestFrame::_internal_keep_alive_interval_millis() const { - return keep_alive_interval_millis_; -} -inline int32_t ConnectionRequestFrame::keep_alive_interval_millis() const { +inline ::int32_t ConnectionRequestFrame::keep_alive_interval_millis() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.keep_alive_interval_millis) return _internal_keep_alive_interval_millis(); } -inline void ConnectionRequestFrame::_internal_set_keep_alive_interval_millis(int32_t value) { - _has_bits_[0] |= 0x00000100u; - keep_alive_interval_millis_ = value; -} -inline void ConnectionRequestFrame::set_keep_alive_interval_millis(int32_t value) { +inline void ConnectionRequestFrame::set_keep_alive_interval_millis(::int32_t value) { _internal_set_keep_alive_interval_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.keep_alive_interval_millis) } +inline ::int32_t ConnectionRequestFrame::_internal_keep_alive_interval_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.keep_alive_interval_millis_; +} +inline void ConnectionRequestFrame::_internal_set_keep_alive_interval_millis(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_interval_millis_ = value; +} // optional int32 keep_alive_timeout_millis = 9; -inline bool ConnectionRequestFrame::_internal_has_keep_alive_timeout_millis() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionRequestFrame::has_keep_alive_timeout_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionRequestFrame::has_keep_alive_timeout_millis() const { - return _internal_has_keep_alive_timeout_millis(); -} inline void ConnectionRequestFrame::clear_keep_alive_timeout_millis() { - keep_alive_timeout_millis_ = 0; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_timeout_millis_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline int32_t ConnectionRequestFrame::_internal_keep_alive_timeout_millis() const { - return keep_alive_timeout_millis_; -} -inline int32_t ConnectionRequestFrame::keep_alive_timeout_millis() const { +inline ::int32_t ConnectionRequestFrame::keep_alive_timeout_millis() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.keep_alive_timeout_millis) return _internal_keep_alive_timeout_millis(); } -inline void ConnectionRequestFrame::_internal_set_keep_alive_timeout_millis(int32_t value) { - _has_bits_[0] |= 0x00000200u; - keep_alive_timeout_millis_ = value; -} -inline void ConnectionRequestFrame::set_keep_alive_timeout_millis(int32_t value) { +inline void ConnectionRequestFrame::set_keep_alive_timeout_millis(::int32_t value) { _internal_set_keep_alive_timeout_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.keep_alive_timeout_millis) } +inline ::int32_t ConnectionRequestFrame::_internal_keep_alive_timeout_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.keep_alive_timeout_millis_; +} +inline void ConnectionRequestFrame::_internal_set_keep_alive_timeout_millis(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_timeout_millis_ = value; +} // optional int32 device_type = 10 [default = 0, deprecated = true]; -inline bool ConnectionRequestFrame::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool ConnectionRequestFrame::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool ConnectionRequestFrame::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionRequestFrame::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline int32_t ConnectionRequestFrame::_internal_device_type() const { - return device_type_; -} -inline int32_t ConnectionRequestFrame::device_type() const { +inline ::int32_t ConnectionRequestFrame::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.device_type) return _internal_device_type(); } -inline void ConnectionRequestFrame::_internal_set_device_type(int32_t value) { - _has_bits_[0] |= 0x00000400u; - device_type_ = value; -} -inline void ConnectionRequestFrame::set_device_type(int32_t value) { +inline void ConnectionRequestFrame::set_device_type(::int32_t value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.device_type) } +inline ::int32_t ConnectionRequestFrame::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_type_; +} +inline void ConnectionRequestFrame::_internal_set_device_type(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = value; +} // optional bytes device_info = 11 [deprecated = true]; -inline bool ConnectionRequestFrame::_internal_has_device_info() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionRequestFrame::has_device_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionRequestFrame::has_device_info() const { - return _internal_has_device_info(); -} inline void ConnectionRequestFrame::clear_device_info() { - device_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_info_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& ConnectionRequestFrame::device_info() const { +inline const ::std::string& ConnectionRequestFrame::device_info() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.device_info) return _internal_device_info(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_device_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000010u; - device_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionRequestFrame::set_device_info(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.device_info_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.device_info) } -inline std::string* ConnectionRequestFrame::mutable_device_info() { - std::string* _s = _internal_mutable_device_info(); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_device_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_device_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.device_info) return _s; } -inline const std::string& ConnectionRequestFrame::_internal_device_info() const { - return device_info_.Get(); +inline const ::std::string& ConnectionRequestFrame::_internal_device_info() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_info_.Get(); } -inline void ConnectionRequestFrame::_internal_set_device_info(const std::string& value) { - _has_bits_[0] |= 0x00000010u; - device_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionRequestFrame::_internal_set_device_info(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_info_.Set(value, GetArena()); } -inline std::string* ConnectionRequestFrame::_internal_mutable_device_info() { - _has_bits_[0] |= 0x00000010u; - return device_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_device_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_info_.Mutable( GetArena()); } -inline std::string* ConnectionRequestFrame::release_device_info() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionRequestFrame::release_device_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.device_info) - if (!_internal_has_device_info()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _has_bits_[0] &= ~0x00000010u; - auto* p = device_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.device_info_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionRequestFrame::set_allocated_device_info(std::string* device_info) { - if (device_info != nullptr) { - _has_bits_[0] |= 0x00000010u; +inline void ConnectionRequestFrame::set_allocated_device_info(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - device_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_info_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_info_.IsDefault()) { + _impl_.device_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.device_info) } // .location.nearby.connections.ConnectionsDevice connections_device = 12; +inline bool ConnectionRequestFrame::has_connections_device() const { + return Device_case() == kConnectionsDevice; +} inline bool ConnectionRequestFrame::_internal_has_connections_device() const { return Device_case() == kConnectionsDevice; } -inline bool ConnectionRequestFrame::has_connections_device() const { - return _internal_has_connections_device(); -} inline void ConnectionRequestFrame::set_has_connections_device() { - _oneof_case_[0] = kConnectionsDevice; + _impl_._oneof_case_[0] = kConnectionsDevice; } inline void ConnectionRequestFrame::clear_connections_device() { - if (_internal_has_connections_device()) { - if (GetArenaForAllocation() == nullptr) { - delete Device_.connections_device_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Device_case() == kConnectionsDevice) { + if (GetArena() == nullptr) { + delete _impl_.Device_.connections_device_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Device_.connections_device_ != nullptr) { + _impl_.Device_.connections_device_->Clear(); + } } clear_has_Device(); } } -inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::release_connections_device() { +inline ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE ConnectionRequestFrame::release_connections_device() { // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.connections_device) - if (_internal_has_connections_device()) { + if (Device_case() == kConnectionsDevice) { clear_has_Device(); - ::location::nearby::connections::ConnectionsDevice* temp = Device_.connections_device_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.Device_.connections_device_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Device_.connections_device_ = nullptr; + _impl_.Device_.connections_device_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::connections::ConnectionsDevice& ConnectionRequestFrame::_internal_connections_device() const { - return _internal_has_connections_device() - ? *Device_.connections_device_ - : reinterpret_cast< ::location::nearby::connections::ConnectionsDevice&>(::location::nearby::connections::_ConnectionsDevice_default_instance_); + return Device_case() == kConnectionsDevice ? static_cast(*_impl_.Device_.connections_device_) + : reinterpret_cast(::location::nearby::connections::_ConnectionsDevice_default_instance_); } -inline const ::location::nearby::connections::ConnectionsDevice& ConnectionRequestFrame::connections_device() const { +inline const ::location::nearby::connections::ConnectionsDevice& ConnectionRequestFrame::connections_device() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.connections_device) return _internal_connections_device(); } -inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::unsafe_arena_release_connections_device() { +inline ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE ConnectionRequestFrame::unsafe_arena_release_connections_device() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.connections.ConnectionRequestFrame.connections_device) - if (_internal_has_connections_device()) { + if (Device_case() == kConnectionsDevice) { clear_has_Device(); - ::location::nearby::connections::ConnectionsDevice* temp = Device_.connections_device_; - Device_.connections_device_ = nullptr; + auto* temp = _impl_.Device_.connections_device_; + _impl_.Device_.connections_device_ = nullptr; return temp; } else { return nullptr; } } -inline void ConnectionRequestFrame::unsafe_arena_set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device) { +inline void ConnectionRequestFrame::unsafe_arena_set_allocated_connections_device( + ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Device(); - if (connections_device) { + if (value) { set_has_connections_device(); - Device_.connections_device_ = connections_device; + _impl_.Device_.connections_device_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.connections_device) } -inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::_internal_mutable_connections_device() { - if (!_internal_has_connections_device()) { +inline ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_connections_device() { + if (Device_case() != kConnectionsDevice) { clear_Device(); set_has_connections_device(); - Device_.connections_device_ = CreateMaybeMessage< ::location::nearby::connections::ConnectionsDevice >(GetArenaForAllocation()); + _impl_.Device_.connections_device_ = + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::ConnectionsDevice>(GetArena()); } - return Device_.connections_device_; + return _impl_.Device_.connections_device_; } -inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::mutable_connections_device() { +inline ::location::nearby::connections::ConnectionsDevice* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_connections_device() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::connections::ConnectionsDevice* _msg = _internal_mutable_connections_device(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.connections_device) return _msg; } // .location.nearby.connections.PresenceDevice presence_device = 13; +inline bool ConnectionRequestFrame::has_presence_device() const { + return Device_case() == kPresenceDevice; +} inline bool ConnectionRequestFrame::_internal_has_presence_device() const { return Device_case() == kPresenceDevice; } -inline bool ConnectionRequestFrame::has_presence_device() const { - return _internal_has_presence_device(); -} inline void ConnectionRequestFrame::set_has_presence_device() { - _oneof_case_[0] = kPresenceDevice; + _impl_._oneof_case_[0] = kPresenceDevice; } inline void ConnectionRequestFrame::clear_presence_device() { - if (_internal_has_presence_device()) { - if (GetArenaForAllocation() == nullptr) { - delete Device_.presence_device_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Device_case() == kPresenceDevice) { + if (GetArena() == nullptr) { + delete _impl_.Device_.presence_device_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Device_.presence_device_ != nullptr) { + _impl_.Device_.presence_device_->Clear(); + } } clear_has_Device(); } } -inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::release_presence_device() { +inline ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE ConnectionRequestFrame::release_presence_device() { // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.presence_device) - if (_internal_has_presence_device()) { + if (Device_case() == kPresenceDevice) { clear_has_Device(); - ::location::nearby::connections::PresenceDevice* temp = Device_.presence_device_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.Device_.presence_device_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Device_.presence_device_ = nullptr; + _impl_.Device_.presence_device_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::connections::PresenceDevice& ConnectionRequestFrame::_internal_presence_device() const { - return _internal_has_presence_device() - ? *Device_.presence_device_ - : reinterpret_cast< ::location::nearby::connections::PresenceDevice&>(::location::nearby::connections::_PresenceDevice_default_instance_); + return Device_case() == kPresenceDevice ? static_cast(*_impl_.Device_.presence_device_) + : reinterpret_cast(::location::nearby::connections::_PresenceDevice_default_instance_); } -inline const ::location::nearby::connections::PresenceDevice& ConnectionRequestFrame::presence_device() const { +inline const ::location::nearby::connections::PresenceDevice& ConnectionRequestFrame::presence_device() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.presence_device) return _internal_presence_device(); } -inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::unsafe_arena_release_presence_device() { +inline ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE ConnectionRequestFrame::unsafe_arena_release_presence_device() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.connections.ConnectionRequestFrame.presence_device) - if (_internal_has_presence_device()) { + if (Device_case() == kPresenceDevice) { clear_has_Device(); - ::location::nearby::connections::PresenceDevice* temp = Device_.presence_device_; - Device_.presence_device_ = nullptr; + auto* temp = _impl_.Device_.presence_device_; + _impl_.Device_.presence_device_ = nullptr; return temp; } else { return nullptr; } } -inline void ConnectionRequestFrame::unsafe_arena_set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device) { +inline void ConnectionRequestFrame::unsafe_arena_set_allocated_presence_device( + ::location::nearby::connections::PresenceDevice* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Device(); - if (presence_device) { + if (value) { set_has_presence_device(); - Device_.presence_device_ = presence_device; + _impl_.Device_.presence_device_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.presence_device) } -inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::_internal_mutable_presence_device() { - if (!_internal_has_presence_device()) { +inline ::location::nearby::connections::PresenceDevice* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_presence_device() { + if (Device_case() != kPresenceDevice) { clear_Device(); set_has_presence_device(); - Device_.presence_device_ = CreateMaybeMessage< ::location::nearby::connections::PresenceDevice >(GetArenaForAllocation()); + _impl_.Device_.presence_device_ = + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PresenceDevice>(GetArena()); } - return Device_.presence_device_; + return _impl_.Device_.presence_device_; } -inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::mutable_presence_device() { +inline ::location::nearby::connections::PresenceDevice* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_presence_device() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::connections::PresenceDevice* _msg = _internal_mutable_presence_device(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.presence_device) return _msg; } // optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14; -inline bool ConnectionRequestFrame::_internal_has_connection_mode() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool ConnectionRequestFrame::has_connection_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool ConnectionRequestFrame::has_connection_mode() const { - return _internal_has_connection_mode(); -} inline void ConnectionRequestFrame::clear_connection_mode() { - connection_mode_ = 0; - _has_bits_[0] &= ~0x00000800u; -} -inline ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::_internal_connection_mode() const { - return static_cast< ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode >(connection_mode_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::connection_mode() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.connection_mode) return _internal_connection_mode(); } -inline void ConnectionRequestFrame::_internal_set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value) { - assert(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_IsValid(value)); - _has_bits_[0] |= 0x00000800u; - connection_mode_ = value; -} inline void ConnectionRequestFrame::set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value) { _internal_set_connection_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.connection_mode) } +inline ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::_internal_connection_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode>(_impl_.connection_mode_); +} +inline void ConnectionRequestFrame::_internal_set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_internal_data_)); + _impl_.connection_mode_ = value; +} // optional .location.nearby.connections.LocationHint location_hint = 15; -inline bool ConnectionRequestFrame::_internal_has_location_hint() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || location_hint_ != nullptr); +inline bool ConnectionRequestFrame::has_location_hint() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.location_hint_ != nullptr); return value; } -inline bool ConnectionRequestFrame::has_location_hint() const { - return _internal_has_location_hint(); -} inline void ConnectionRequestFrame::clear_location_hint() { - if (location_hint_ != nullptr) location_hint_->Clear(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ != nullptr) _impl_.location_hint_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline const ::location::nearby::connections::LocationHint& ConnectionRequestFrame::_internal_location_hint() const { - const ::location::nearby::connections::LocationHint* p = location_hint_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_LocationHint_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::LocationHint* p = _impl_.location_hint_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_LocationHint_default_instance_); } -inline const ::location::nearby::connections::LocationHint& ConnectionRequestFrame::location_hint() const { +inline const ::location::nearby::connections::LocationHint& ConnectionRequestFrame::location_hint() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.location_hint) return _internal_location_hint(); } inline void ConnectionRequestFrame::unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_hint_); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - location_hint_ = location_hint; - if (location_hint) { - _has_bits_[0] |= 0x00000040u; + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.location_hint) } -inline ::location::nearby::connections::LocationHint* ConnectionRequestFrame::release_location_hint() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE ConnectionRequestFrame::release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::LocationHint* released = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::LocationHint* ConnectionRequestFrame::unsafe_arena_release_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE ConnectionRequestFrame::unsafe_arena_release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.location_hint) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::LocationHint* temp = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; return temp; } -inline ::location::nearby::connections::LocationHint* ConnectionRequestFrame::_internal_mutable_location_hint() { - _has_bits_[0] |= 0x00000040u; - if (location_hint_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::LocationHint>(GetArenaForAllocation()); - location_hint_ = p; +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL ConnectionRequestFrame::_internal_mutable_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::LocationHint>(GetArena()); + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(p); } - return location_hint_; + return _impl_.location_hint_; } -inline ::location::nearby::connections::LocationHint* ConnectionRequestFrame::mutable_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL ConnectionRequestFrame::mutable_location_hint() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::location::nearby::connections::LocationHint* _msg = _internal_mutable_location_hint(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.location_hint) return _msg; } -inline void ConnectionRequestFrame::set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionRequestFrame::set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete location_hint_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - if (location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::LocationHint>::GetOwningArena(location_hint); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - location_hint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location_hint, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - location_hint_ = location_hint; + + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.location_hint) } @@ -11771,1234 +13195,1304 @@ inline bool ConnectionRequestFrame::has_Device() const { return Device_case() != DEVICE_NOT_SET; } inline void ConnectionRequestFrame::clear_has_Device() { - _oneof_case_[0] = DEVICE_NOT_SET; + _impl_._oneof_case_[0] = DEVICE_NOT_SET; } inline ConnectionRequestFrame::DeviceCase ConnectionRequestFrame::Device_case() const { - return ConnectionRequestFrame::DeviceCase(_oneof_case_[0]); + return ConnectionRequestFrame::DeviceCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // ConnectionResponseFrame // optional int32 status = 1 [deprecated = true]; -inline bool ConnectionResponseFrame::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionResponseFrame::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionResponseFrame::has_status() const { - return _internal_has_status(); -} inline void ConnectionResponseFrame::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t ConnectionResponseFrame::_internal_status() const { - return status_; -} -inline int32_t ConnectionResponseFrame::status() const { +inline ::int32_t ConnectionResponseFrame::status() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.status) return _internal_status(); } -inline void ConnectionResponseFrame::_internal_set_status(int32_t value) { - _has_bits_[0] |= 0x00000008u; - status_ = value; -} -inline void ConnectionResponseFrame::set_status(int32_t value) { +inline void ConnectionResponseFrame::set_status(::int32_t value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.status) } +inline ::int32_t ConnectionResponseFrame::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.status_; +} +inline void ConnectionResponseFrame::_internal_set_status(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = value; +} // optional bytes handshake_data = 2; -inline bool ConnectionResponseFrame::_internal_has_handshake_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionResponseFrame::has_handshake_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionResponseFrame::has_handshake_data() const { - return _internal_has_handshake_data(); -} inline void ConnectionResponseFrame::clear_handshake_data() { - handshake_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionResponseFrame::handshake_data() const { +inline const ::std::string& ConnectionResponseFrame::handshake_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.handshake_data) return _internal_handshake_data(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionResponseFrame::set_handshake_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - handshake_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionResponseFrame::set_handshake_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.handshake_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.handshake_data) } -inline std::string* ConnectionResponseFrame::mutable_handshake_data() { - std::string* _s = _internal_mutable_handshake_data(); +inline ::std::string* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_handshake_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_handshake_data(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.handshake_data) return _s; } -inline const std::string& ConnectionResponseFrame::_internal_handshake_data() const { - return handshake_data_.Get(); +inline const ::std::string& ConnectionResponseFrame::_internal_handshake_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.handshake_data_.Get(); } -inline void ConnectionResponseFrame::_internal_set_handshake_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionResponseFrame::_internal_set_handshake_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_data_.Set(value, GetArena()); } -inline std::string* ConnectionResponseFrame::_internal_mutable_handshake_data() { - _has_bits_[0] |= 0x00000001u; - return handshake_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionResponseFrame::_internal_mutable_handshake_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.handshake_data_.Mutable( GetArena()); } -inline std::string* ConnectionResponseFrame::release_handshake_data() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionResponseFrame::release_handshake_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.handshake_data) - if (!_internal_has_handshake_data()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = handshake_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.handshake_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.handshake_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionResponseFrame::set_allocated_handshake_data(std::string* handshake_data) { - if (handshake_data != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionResponseFrame::set_allocated_handshake_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - handshake_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), handshake_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.handshake_data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.handshake_data_.IsDefault()) { + _impl_.handshake_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.handshake_data) } // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; -inline bool ConnectionResponseFrame::_internal_has_response() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionResponseFrame::has_response() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionResponseFrame::has_response() const { - return _internal_has_response(); -} inline void ConnectionResponseFrame::clear_response() { - response_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::_internal_response() const { - return static_cast< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus >(response_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.response_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::response() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.response) return _internal_response(); } -inline void ConnectionResponseFrame::_internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { - assert(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - response_ = value; -} inline void ConnectionResponseFrame::set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { _internal_set_response(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.response) } +inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::_internal_response() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus>(_impl_.response_); +} +inline void ConnectionResponseFrame::_internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_internal_data_)); + _impl_.response_ = value; +} // optional .location.nearby.connections.OsInfo os_info = 4; -inline bool ConnectionResponseFrame::_internal_has_os_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || os_info_ != nullptr); +inline bool ConnectionResponseFrame::has_os_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.os_info_ != nullptr); return value; } -inline bool ConnectionResponseFrame::has_os_info() const { - return _internal_has_os_info(); -} inline void ConnectionResponseFrame::clear_os_info() { - if (os_info_ != nullptr) os_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.os_info_ != nullptr) _impl_.os_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::OsInfo& ConnectionResponseFrame::_internal_os_info() const { - const ::location::nearby::connections::OsInfo* p = os_info_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_OsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::OsInfo* p = _impl_.os_info_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_OsInfo_default_instance_); } -inline const ::location::nearby::connections::OsInfo& ConnectionResponseFrame::os_info() const { +inline const ::location::nearby::connections::OsInfo& ConnectionResponseFrame::os_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.os_info) return _internal_os_info(); } inline void ConnectionResponseFrame::unsafe_arena_set_allocated_os_info( - ::location::nearby::connections::OsInfo* os_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(os_info_); + ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.os_info_); } - os_info_ = os_info; - if (os_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.os_info_ = reinterpret_cast<::location::nearby::connections::OsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionResponseFrame.os_info) } -inline ::location::nearby::connections::OsInfo* ConnectionResponseFrame::release_os_info() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::OsInfo* temp = os_info_; - os_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE ConnectionResponseFrame::release_os_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::OsInfo* released = _impl_.os_info_; + _impl_.os_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::OsInfo* ConnectionResponseFrame::unsafe_arena_release_os_info() { +inline ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE ConnectionResponseFrame::unsafe_arena_release_os_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.os_info) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::OsInfo* temp = os_info_; - os_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::OsInfo* temp = _impl_.os_info_; + _impl_.os_info_ = nullptr; return temp; } -inline ::location::nearby::connections::OsInfo* ConnectionResponseFrame::_internal_mutable_os_info() { - _has_bits_[0] |= 0x00000002u; - if (os_info_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::OsInfo>(GetArenaForAllocation()); - os_info_ = p; +inline ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL ConnectionResponseFrame::_internal_mutable_os_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.os_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::OsInfo>(GetArena()); + _impl_.os_info_ = reinterpret_cast<::location::nearby::connections::OsInfo*>(p); } - return os_info_; + return _impl_.os_info_; } -inline ::location::nearby::connections::OsInfo* ConnectionResponseFrame::mutable_os_info() { +inline ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_os_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::OsInfo* _msg = _internal_mutable_os_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.os_info) return _msg; } -inline void ConnectionResponseFrame::set_allocated_os_info(::location::nearby::connections::OsInfo* os_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionResponseFrame::set_allocated_os_info(::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete os_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.os_info_); } - if (os_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::OsInfo>::GetOwningArena(os_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - os_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, os_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - os_info_ = os_info; + + _impl_.os_info_ = reinterpret_cast<::location::nearby::connections::OsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.os_info) } // optional int32 multiplex_socket_bitmask = 5; -inline bool ConnectionResponseFrame::_internal_has_multiplex_socket_bitmask() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionResponseFrame::has_multiplex_socket_bitmask() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionResponseFrame::has_multiplex_socket_bitmask() const { - return _internal_has_multiplex_socket_bitmask(); -} inline void ConnectionResponseFrame::clear_multiplex_socket_bitmask() { - multiplex_socket_bitmask_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.multiplex_socket_bitmask_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t ConnectionResponseFrame::_internal_multiplex_socket_bitmask() const { - return multiplex_socket_bitmask_; -} -inline int32_t ConnectionResponseFrame::multiplex_socket_bitmask() const { +inline ::int32_t ConnectionResponseFrame::multiplex_socket_bitmask() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) return _internal_multiplex_socket_bitmask(); } -inline void ConnectionResponseFrame::_internal_set_multiplex_socket_bitmask(int32_t value) { - _has_bits_[0] |= 0x00000020u; - multiplex_socket_bitmask_ = value; -} -inline void ConnectionResponseFrame::set_multiplex_socket_bitmask(int32_t value) { +inline void ConnectionResponseFrame::set_multiplex_socket_bitmask(::int32_t value) { _internal_set_multiplex_socket_bitmask(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) } +inline ::int32_t ConnectionResponseFrame::_internal_multiplex_socket_bitmask() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.multiplex_socket_bitmask_; +} +inline void ConnectionResponseFrame::_internal_set_multiplex_socket_bitmask(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.multiplex_socket_bitmask_ = value; +} // optional int32 nearby_connections_version = 6 [deprecated = true]; -inline bool ConnectionResponseFrame::_internal_has_nearby_connections_version() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionResponseFrame::has_nearby_connections_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionResponseFrame::has_nearby_connections_version() const { - return _internal_has_nearby_connections_version(); -} inline void ConnectionResponseFrame::clear_nearby_connections_version() { - nearby_connections_version_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.nearby_connections_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t ConnectionResponseFrame::_internal_nearby_connections_version() const { - return nearby_connections_version_; -} -inline int32_t ConnectionResponseFrame::nearby_connections_version() const { +inline ::int32_t ConnectionResponseFrame::nearby_connections_version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) return _internal_nearby_connections_version(); } -inline void ConnectionResponseFrame::_internal_set_nearby_connections_version(int32_t value) { - _has_bits_[0] |= 0x00000040u; - nearby_connections_version_ = value; -} -inline void ConnectionResponseFrame::set_nearby_connections_version(int32_t value) { +inline void ConnectionResponseFrame::set_nearby_connections_version(::int32_t value) { _internal_set_nearby_connections_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) } +inline ::int32_t ConnectionResponseFrame::_internal_nearby_connections_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.nearby_connections_version_; +} +inline void ConnectionResponseFrame::_internal_set_nearby_connections_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.nearby_connections_version_ = value; +} // optional int32 safe_to_disconnect_version = 7; -inline bool ConnectionResponseFrame::_internal_has_safe_to_disconnect_version() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionResponseFrame::has_safe_to_disconnect_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionResponseFrame::has_safe_to_disconnect_version() const { - return _internal_has_safe_to_disconnect_version(); -} inline void ConnectionResponseFrame::clear_safe_to_disconnect_version() { - safe_to_disconnect_version_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.safe_to_disconnect_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t ConnectionResponseFrame::_internal_safe_to_disconnect_version() const { - return safe_to_disconnect_version_; -} -inline int32_t ConnectionResponseFrame::safe_to_disconnect_version() const { +inline ::int32_t ConnectionResponseFrame::safe_to_disconnect_version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.safe_to_disconnect_version) return _internal_safe_to_disconnect_version(); } -inline void ConnectionResponseFrame::_internal_set_safe_to_disconnect_version(int32_t value) { - _has_bits_[0] |= 0x00000080u; - safe_to_disconnect_version_ = value; -} -inline void ConnectionResponseFrame::set_safe_to_disconnect_version(int32_t value) { +inline void ConnectionResponseFrame::set_safe_to_disconnect_version(::int32_t value) { _internal_set_safe_to_disconnect_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.safe_to_disconnect_version) } +inline ::int32_t ConnectionResponseFrame::_internal_safe_to_disconnect_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.safe_to_disconnect_version_; +} +inline void ConnectionResponseFrame::_internal_set_safe_to_disconnect_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.safe_to_disconnect_version_ = value; +} // optional .location.nearby.connections.LocationHint location_hint = 8; -inline bool ConnectionResponseFrame::_internal_has_location_hint() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || location_hint_ != nullptr); +inline bool ConnectionResponseFrame::has_location_hint() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.location_hint_ != nullptr); return value; } -inline bool ConnectionResponseFrame::has_location_hint() const { - return _internal_has_location_hint(); -} inline void ConnectionResponseFrame::clear_location_hint() { - if (location_hint_ != nullptr) location_hint_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ != nullptr) _impl_.location_hint_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::connections::LocationHint& ConnectionResponseFrame::_internal_location_hint() const { - const ::location::nearby::connections::LocationHint* p = location_hint_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_LocationHint_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::LocationHint* p = _impl_.location_hint_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_LocationHint_default_instance_); } -inline const ::location::nearby::connections::LocationHint& ConnectionResponseFrame::location_hint() const { +inline const ::location::nearby::connections::LocationHint& ConnectionResponseFrame::location_hint() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.location_hint) return _internal_location_hint(); } inline void ConnectionResponseFrame::unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_hint_); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - location_hint_ = location_hint; - if (location_hint) { - _has_bits_[0] |= 0x00000004u; + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionResponseFrame.location_hint) } -inline ::location::nearby::connections::LocationHint* ConnectionResponseFrame::release_location_hint() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE ConnectionResponseFrame::release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::LocationHint* released = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::LocationHint* ConnectionResponseFrame::unsafe_arena_release_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE ConnectionResponseFrame::unsafe_arena_release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.location_hint) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::LocationHint* temp = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; return temp; } -inline ::location::nearby::connections::LocationHint* ConnectionResponseFrame::_internal_mutable_location_hint() { - _has_bits_[0] |= 0x00000004u; - if (location_hint_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::LocationHint>(GetArenaForAllocation()); - location_hint_ = p; +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL ConnectionResponseFrame::_internal_mutable_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::LocationHint>(GetArena()); + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(p); } - return location_hint_; + return _impl_.location_hint_; } -inline ::location::nearby::connections::LocationHint* ConnectionResponseFrame::mutable_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_location_hint() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::LocationHint* _msg = _internal_mutable_location_hint(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.location_hint) return _msg; } -inline void ConnectionResponseFrame::set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionResponseFrame::set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete location_hint_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - if (location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::LocationHint>::GetOwningArena(location_hint); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - location_hint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location_hint, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - location_hint_ = location_hint; + + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.location_hint) } // optional int32 keep_alive_timeout_millis = 9; -inline bool ConnectionResponseFrame::_internal_has_keep_alive_timeout_millis() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionResponseFrame::has_keep_alive_timeout_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionResponseFrame::has_keep_alive_timeout_millis() const { - return _internal_has_keep_alive_timeout_millis(); -} inline void ConnectionResponseFrame::clear_keep_alive_timeout_millis() { - keep_alive_timeout_millis_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_timeout_millis_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t ConnectionResponseFrame::_internal_keep_alive_timeout_millis() const { - return keep_alive_timeout_millis_; -} -inline int32_t ConnectionResponseFrame::keep_alive_timeout_millis() const { +inline ::int32_t ConnectionResponseFrame::keep_alive_timeout_millis() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.keep_alive_timeout_millis) return _internal_keep_alive_timeout_millis(); } -inline void ConnectionResponseFrame::_internal_set_keep_alive_timeout_millis(int32_t value) { - _has_bits_[0] |= 0x00000100u; - keep_alive_timeout_millis_ = value; -} -inline void ConnectionResponseFrame::set_keep_alive_timeout_millis(int32_t value) { +inline void ConnectionResponseFrame::set_keep_alive_timeout_millis(::int32_t value) { _internal_set_keep_alive_timeout_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.keep_alive_timeout_millis) } +inline ::int32_t ConnectionResponseFrame::_internal_keep_alive_timeout_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.keep_alive_timeout_millis_; +} +inline void ConnectionResponseFrame::_internal_set_keep_alive_timeout_millis(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.keep_alive_timeout_millis_ = value; +} // ------------------------------------------------------------------- // PayloadTransferFrame_PayloadHeader // optional int64 id = 1; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_id() const { - return _internal_has_id(); -} inline void PayloadTransferFrame_PayloadHeader::clear_id() { - id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t PayloadTransferFrame_PayloadHeader::_internal_id() const { - return id_; -} -inline int64_t PayloadTransferFrame_PayloadHeader::id() const { +inline ::int64_t PayloadTransferFrame_PayloadHeader::id() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.id) return _internal_id(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - id_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_id(int64_t value) { +inline void PayloadTransferFrame_PayloadHeader::set_id(::int64_t value) { _internal_set_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.id) } +inline ::int64_t PayloadTransferFrame_PayloadHeader::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void PayloadTransferFrame_PayloadHeader::_internal_set_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_type() const { - return _internal_has_type(); -} inline void PayloadTransferFrame_PayloadHeader::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::_internal_type() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.type) return _internal_type(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value) { - assert(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - type_ = value; -} inline void PayloadTransferFrame_PayloadHeader::set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.type) } +inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType>(_impl_.type_); +} +inline void PayloadTransferFrame_PayloadHeader::_internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_internal_data_)); + _impl_.type_ = value; +} // optional int64 total_size = 3; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_total_size() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_total_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_total_size() const { - return _internal_has_total_size(); -} inline void PayloadTransferFrame_PayloadHeader::clear_total_size() { - total_size_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_size_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t PayloadTransferFrame_PayloadHeader::_internal_total_size() const { - return total_size_; -} -inline int64_t PayloadTransferFrame_PayloadHeader::total_size() const { +inline ::int64_t PayloadTransferFrame_PayloadHeader::total_size() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.total_size) return _internal_total_size(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_total_size(int64_t value) { - _has_bits_[0] |= 0x00000008u; - total_size_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_total_size(int64_t value) { +inline void PayloadTransferFrame_PayloadHeader::set_total_size(::int64_t value) { _internal_set_total_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.total_size) } +inline ::int64_t PayloadTransferFrame_PayloadHeader::_internal_total_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.total_size_; +} +inline void PayloadTransferFrame_PayloadHeader::_internal_set_total_size(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_size_ = value; +} // optional bool is_sensitive = 4; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_is_sensitive() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_is_sensitive() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_is_sensitive() const { - return _internal_has_is_sensitive(); -} inline void PayloadTransferFrame_PayloadHeader::clear_is_sensitive() { - is_sensitive_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool PayloadTransferFrame_PayloadHeader::_internal_is_sensitive() const { - return is_sensitive_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_sensitive_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool PayloadTransferFrame_PayloadHeader::is_sensitive() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.is_sensitive) return _internal_is_sensitive(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_is_sensitive(bool value) { - _has_bits_[0] |= 0x00000020u; - is_sensitive_ = value; -} inline void PayloadTransferFrame_PayloadHeader::set_is_sensitive(bool value) { _internal_set_is_sensitive(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.is_sensitive) } +inline bool PayloadTransferFrame_PayloadHeader::_internal_is_sensitive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_sensitive_; +} +inline void PayloadTransferFrame_PayloadHeader::_internal_set_is_sensitive(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_sensitive_ = value; +} // optional string file_name = 5; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_file_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_file_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_file_name() const { - return _internal_has_file_name(); -} inline void PayloadTransferFrame_PayloadHeader::clear_file_name() { - file_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.file_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& PayloadTransferFrame_PayloadHeader::file_name() const { +inline const ::std::string& PayloadTransferFrame_PayloadHeader::file_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) return _internal_file_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadHeader::set_file_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PayloadTransferFrame_PayloadHeader::set_file_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.file_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) } -inline std::string* PayloadTransferFrame_PayloadHeader::mutable_file_name() { - std::string* _s = _internal_mutable_file_name(); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::mutable_file_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_file_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) return _s; } -inline const std::string& PayloadTransferFrame_PayloadHeader::_internal_file_name() const { - return file_name_.Get(); +inline const ::std::string& PayloadTransferFrame_PayloadHeader::_internal_file_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.file_name_.Get(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_file_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PayloadTransferFrame_PayloadHeader::_internal_set_file_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.file_name_.Set(value, GetArena()); } -inline std::string* PayloadTransferFrame_PayloadHeader::_internal_mutable_file_name() { - _has_bits_[0] |= 0x00000001u; - return file_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::_internal_mutable_file_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.file_name_.Mutable( GetArena()); } -inline std::string* PayloadTransferFrame_PayloadHeader::release_file_name() { +inline ::std::string* PROTOBUF_NULLABLE PayloadTransferFrame_PayloadHeader::release_file_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) - if (!_internal_has_file_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (file_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.file_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.file_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PayloadTransferFrame_PayloadHeader::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PayloadTransferFrame_PayloadHeader::set_allocated_file_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (file_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.file_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_name_.IsDefault()) { + _impl_.file_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) } // optional string parent_folder = 6; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_parent_folder() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_parent_folder() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_parent_folder() const { - return _internal_has_parent_folder(); -} inline void PayloadTransferFrame_PayloadHeader::clear_parent_folder() { - parent_folder_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parent_folder_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& PayloadTransferFrame_PayloadHeader::parent_folder() const { +inline const ::std::string& PayloadTransferFrame_PayloadHeader::parent_folder() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) return _internal_parent_folder(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadHeader::set_parent_folder(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PayloadTransferFrame_PayloadHeader::set_parent_folder(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.parent_folder_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) } -inline std::string* PayloadTransferFrame_PayloadHeader::mutable_parent_folder() { - std::string* _s = _internal_mutable_parent_folder(); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::mutable_parent_folder() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_parent_folder(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) return _s; } -inline const std::string& PayloadTransferFrame_PayloadHeader::_internal_parent_folder() const { - return parent_folder_.Get(); +inline const ::std::string& PayloadTransferFrame_PayloadHeader::_internal_parent_folder() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.parent_folder_.Get(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_parent_folder(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PayloadTransferFrame_PayloadHeader::_internal_set_parent_folder(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parent_folder_.Set(value, GetArena()); } -inline std::string* PayloadTransferFrame_PayloadHeader::_internal_mutable_parent_folder() { - _has_bits_[0] |= 0x00000002u; - return parent_folder_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadHeader::_internal_mutable_parent_folder() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.parent_folder_.Mutable( GetArena()); } -inline std::string* PayloadTransferFrame_PayloadHeader::release_parent_folder() { +inline ::std::string* PROTOBUF_NULLABLE PayloadTransferFrame_PayloadHeader::release_parent_folder() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) - if (!_internal_has_parent_folder()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = parent_folder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (parent_folder_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.parent_folder_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.parent_folder_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PayloadTransferFrame_PayloadHeader::set_allocated_parent_folder(std::string* parent_folder) { - if (parent_folder != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void PayloadTransferFrame_PayloadHeader::set_allocated_parent_folder(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - parent_folder_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent_folder, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (parent_folder_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.parent_folder_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.parent_folder_.IsDefault()) { + _impl_.parent_folder_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) } // optional int64 last_modified_timestamp_millis = 7; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_last_modified_timestamp_millis() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool PayloadTransferFrame_PayloadHeader::has_last_modified_timestamp_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool PayloadTransferFrame_PayloadHeader::has_last_modified_timestamp_millis() const { - return _internal_has_last_modified_timestamp_millis(); -} inline void PayloadTransferFrame_PayloadHeader::clear_last_modified_timestamp_millis() { - last_modified_timestamp_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_modified_timestamp_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t PayloadTransferFrame_PayloadHeader::_internal_last_modified_timestamp_millis() const { - return last_modified_timestamp_millis_; -} -inline int64_t PayloadTransferFrame_PayloadHeader::last_modified_timestamp_millis() const { +inline ::int64_t PayloadTransferFrame_PayloadHeader::last_modified_timestamp_millis() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.last_modified_timestamp_millis) return _internal_last_modified_timestamp_millis(); } -inline void PayloadTransferFrame_PayloadHeader::_internal_set_last_modified_timestamp_millis(int64_t value) { - _has_bits_[0] |= 0x00000040u; - last_modified_timestamp_millis_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_last_modified_timestamp_millis(int64_t value) { +inline void PayloadTransferFrame_PayloadHeader::set_last_modified_timestamp_millis(::int64_t value) { _internal_set_last_modified_timestamp_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.last_modified_timestamp_millis) } +inline ::int64_t PayloadTransferFrame_PayloadHeader::_internal_last_modified_timestamp_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.last_modified_timestamp_millis_; +} +inline void PayloadTransferFrame_PayloadHeader::_internal_set_last_modified_timestamp_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_modified_timestamp_millis_ = value; +} // ------------------------------------------------------------------- // PayloadTransferFrame_PayloadChunk // optional int32 flags = 1; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_flags() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool PayloadTransferFrame_PayloadChunk::has_flags() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool PayloadTransferFrame_PayloadChunk::has_flags() const { - return _internal_has_flags(); -} inline void PayloadTransferFrame_PayloadChunk::clear_flags() { - flags_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flags_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t PayloadTransferFrame_PayloadChunk::_internal_flags() const { - return flags_; -} -inline int32_t PayloadTransferFrame_PayloadChunk::flags() const { +inline ::int32_t PayloadTransferFrame_PayloadChunk::flags() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.flags) return _internal_flags(); } -inline void PayloadTransferFrame_PayloadChunk::_internal_set_flags(int32_t value) { - _has_bits_[0] |= 0x00000004u; - flags_ = value; -} -inline void PayloadTransferFrame_PayloadChunk::set_flags(int32_t value) { +inline void PayloadTransferFrame_PayloadChunk::set_flags(::int32_t value) { _internal_set_flags(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.flags) } +inline ::int32_t PayloadTransferFrame_PayloadChunk::_internal_flags() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flags_; +} +inline void PayloadTransferFrame_PayloadChunk::_internal_set_flags(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flags_ = value; +} // optional int64 offset = 2; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_offset() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool PayloadTransferFrame_PayloadChunk::has_offset() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool PayloadTransferFrame_PayloadChunk::has_offset() const { - return _internal_has_offset(); -} inline void PayloadTransferFrame_PayloadChunk::clear_offset() { - offset_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t PayloadTransferFrame_PayloadChunk::_internal_offset() const { - return offset_; -} -inline int64_t PayloadTransferFrame_PayloadChunk::offset() const { +inline ::int64_t PayloadTransferFrame_PayloadChunk::offset() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.offset) return _internal_offset(); } -inline void PayloadTransferFrame_PayloadChunk::_internal_set_offset(int64_t value) { - _has_bits_[0] |= 0x00000002u; - offset_ = value; -} -inline void PayloadTransferFrame_PayloadChunk::set_offset(int64_t value) { +inline void PayloadTransferFrame_PayloadChunk::set_offset(::int64_t value) { _internal_set_offset(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.offset) } +inline ::int64_t PayloadTransferFrame_PayloadChunk::_internal_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.offset_; +} +inline void PayloadTransferFrame_PayloadChunk::_internal_set_offset(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_ = value; +} // optional bytes body = 3; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_body() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PayloadTransferFrame_PayloadChunk::has_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PayloadTransferFrame_PayloadChunk::has_body() const { - return _internal_has_body(); -} inline void PayloadTransferFrame_PayloadChunk::clear_body() { - body_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& PayloadTransferFrame_PayloadChunk::body() const { +inline const ::std::string& PayloadTransferFrame_PayloadChunk::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) return _internal_body(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadChunk::set_body(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - body_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PayloadTransferFrame_PayloadChunk::set_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) } -inline std::string* PayloadTransferFrame_PayloadChunk::mutable_body() { - std::string* _s = _internal_mutable_body(); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadChunk::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) return _s; } -inline const std::string& PayloadTransferFrame_PayloadChunk::_internal_body() const { - return body_.Get(); +inline const ::std::string& PayloadTransferFrame_PayloadChunk::_internal_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.body_.Get(); } -inline void PayloadTransferFrame_PayloadChunk::_internal_set_body(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PayloadTransferFrame_PayloadChunk::_internal_set_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.Set(value, GetArena()); } -inline std::string* PayloadTransferFrame_PayloadChunk::_internal_mutable_body() { - _has_bits_[0] |= 0x00000001u; - return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PayloadTransferFrame_PayloadChunk::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.body_.Mutable( GetArena()); } -inline std::string* PayloadTransferFrame_PayloadChunk::release_body() { +inline ::std::string* PROTOBUF_NULLABLE PayloadTransferFrame_PayloadChunk::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) - if (!_internal_has_body()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PayloadTransferFrame_PayloadChunk::set_allocated_body(std::string* body) { - if (body != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PayloadTransferFrame_PayloadChunk::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) } // optional int32 index = 4; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_index() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool PayloadTransferFrame_PayloadChunk::has_index() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool PayloadTransferFrame_PayloadChunk::has_index() const { - return _internal_has_index(); -} inline void PayloadTransferFrame_PayloadChunk::clear_index() { - index_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t PayloadTransferFrame_PayloadChunk::_internal_index() const { - return index_; -} -inline int32_t PayloadTransferFrame_PayloadChunk::index() const { +inline ::int32_t PayloadTransferFrame_PayloadChunk::index() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.index) return _internal_index(); } -inline void PayloadTransferFrame_PayloadChunk::_internal_set_index(int32_t value) { - _has_bits_[0] |= 0x00000008u; - index_ = value; -} -inline void PayloadTransferFrame_PayloadChunk::set_index(int32_t value) { +inline void PayloadTransferFrame_PayloadChunk::set_index(::int32_t value) { _internal_set_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.index) } +inline ::int32_t PayloadTransferFrame_PayloadChunk::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void PayloadTransferFrame_PayloadChunk::_internal_set_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // ------------------------------------------------------------------- // PayloadTransferFrame_ControlMessage // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; -inline bool PayloadTransferFrame_ControlMessage::_internal_has_event() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool PayloadTransferFrame_ControlMessage::has_event() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool PayloadTransferFrame_ControlMessage::has_event() const { - return _internal_has_event(); -} inline void PayloadTransferFrame_ControlMessage::clear_event() { - event_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::_internal_event() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType >(event_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::event() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.ControlMessage.event) return _internal_event(); } -inline void PayloadTransferFrame_ControlMessage::_internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value) { - assert(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - event_ = value; -} inline void PayloadTransferFrame_ControlMessage::set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value) { _internal_set_event(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.ControlMessage.event) } +inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::_internal_event() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType>(_impl_.event_); +} +inline void PayloadTransferFrame_ControlMessage::_internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_internal_data_)); + _impl_.event_ = value; +} // optional int64 offset = 2; -inline bool PayloadTransferFrame_ControlMessage::_internal_has_offset() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PayloadTransferFrame_ControlMessage::has_offset() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PayloadTransferFrame_ControlMessage::has_offset() const { - return _internal_has_offset(); -} inline void PayloadTransferFrame_ControlMessage::clear_offset() { - offset_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t PayloadTransferFrame_ControlMessage::_internal_offset() const { - return offset_; -} -inline int64_t PayloadTransferFrame_ControlMessage::offset() const { +inline ::int64_t PayloadTransferFrame_ControlMessage::offset() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.ControlMessage.offset) return _internal_offset(); } -inline void PayloadTransferFrame_ControlMessage::_internal_set_offset(int64_t value) { - _has_bits_[0] |= 0x00000001u; - offset_ = value; -} -inline void PayloadTransferFrame_ControlMessage::set_offset(int64_t value) { +inline void PayloadTransferFrame_ControlMessage::set_offset(::int64_t value) { _internal_set_offset(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.ControlMessage.offset) } +inline ::int64_t PayloadTransferFrame_ControlMessage::_internal_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.offset_; +} +inline void PayloadTransferFrame_ControlMessage::_internal_set_offset(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_ = value; +} // ------------------------------------------------------------------- // PayloadTransferFrame // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; -inline bool PayloadTransferFrame::_internal_has_packet_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool PayloadTransferFrame::has_packet_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool PayloadTransferFrame::has_packet_type() const { - return _internal_has_packet_type(); -} inline void PayloadTransferFrame::clear_packet_type() { - packet_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::connections::PayloadTransferFrame_PacketType PayloadTransferFrame::_internal_packet_type() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_PacketType >(packet_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.packet_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::connections::PayloadTransferFrame_PacketType PayloadTransferFrame::packet_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.packet_type) return _internal_packet_type(); } -inline void PayloadTransferFrame::_internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value) { - assert(::location::nearby::connections::PayloadTransferFrame_PacketType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - packet_type_ = value; -} inline void PayloadTransferFrame::set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value) { _internal_set_packet_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.packet_type) } +inline ::location::nearby::connections::PayloadTransferFrame_PacketType PayloadTransferFrame::_internal_packet_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::PayloadTransferFrame_PacketType>(_impl_.packet_type_); +} +inline void PayloadTransferFrame::_internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::PayloadTransferFrame_PacketType_internal_data_)); + _impl_.packet_type_ = value; +} // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; -inline bool PayloadTransferFrame::_internal_has_payload_header() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || payload_header_ != nullptr); +inline bool PayloadTransferFrame::has_payload_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.payload_header_ != nullptr); return value; } -inline bool PayloadTransferFrame::has_payload_header() const { - return _internal_has_payload_header(); -} inline void PayloadTransferFrame::clear_payload_header() { - if (payload_header_ != nullptr) payload_header_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_header_ != nullptr) _impl_.payload_header_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& PayloadTransferFrame::_internal_payload_header() const { - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* p = payload_header_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_PayloadHeader_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* p = _impl_.payload_header_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_PayloadTransferFrame_PayloadHeader_default_instance_); } -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& PayloadTransferFrame::payload_header() const { +inline const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& PayloadTransferFrame::payload_header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.payload_header) return _internal_payload_header(); } inline void PayloadTransferFrame::unsafe_arena_set_allocated_payload_header( - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_header_); + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_header_); } - payload_header_ = payload_header; - if (payload_header) { - _has_bits_[0] |= 0x00000001u; + _impl_.payload_header_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_header) } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::release_payload_header() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* temp = payload_header_; - payload_header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE PayloadTransferFrame::release_payload_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* released = _impl_.payload_header_; + _impl_.payload_header_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::unsafe_arena_release_payload_header() { +inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE PayloadTransferFrame::unsafe_arena_release_payload_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.payload_header) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* temp = payload_header_; - payload_header_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* temp = _impl_.payload_header_; + _impl_.payload_header_ = nullptr; return temp; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::_internal_mutable_payload_header() { - _has_bits_[0] |= 0x00000001u; - if (payload_header_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(GetArenaForAllocation()); - payload_header_ = p; +inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL PayloadTransferFrame::_internal_mutable_payload_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_header_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(GetArena()); + _impl_.payload_header_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader*>(p); } - return payload_header_; + return _impl_.payload_header_; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::mutable_payload_header() { +inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NONNULL PayloadTransferFrame::mutable_payload_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* _msg = _internal_mutable_payload_header(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.payload_header) return _msg; } -inline void PayloadTransferFrame::set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void PayloadTransferFrame::set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete payload_header_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_header_); } - if (payload_header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>::GetOwningArena(payload_header); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - payload_header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_header, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - payload_header_ = payload_header; + + _impl_.payload_header_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_header) } // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; -inline bool PayloadTransferFrame::_internal_has_payload_chunk() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || payload_chunk_ != nullptr); +inline bool PayloadTransferFrame::has_payload_chunk() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.payload_chunk_ != nullptr); return value; } -inline bool PayloadTransferFrame::has_payload_chunk() const { - return _internal_has_payload_chunk(); -} inline void PayloadTransferFrame::clear_payload_chunk() { - if (payload_chunk_ != nullptr) payload_chunk_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_chunk_ != nullptr) _impl_.payload_chunk_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& PayloadTransferFrame::_internal_payload_chunk() const { - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* p = payload_chunk_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_PayloadChunk_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* p = _impl_.payload_chunk_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_PayloadTransferFrame_PayloadChunk_default_instance_); } -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& PayloadTransferFrame::payload_chunk() const { +inline const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& PayloadTransferFrame::payload_chunk() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.payload_chunk) return _internal_payload_chunk(); } inline void PayloadTransferFrame::unsafe_arena_set_allocated_payload_chunk( - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_chunk_); + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_chunk_); } - payload_chunk_ = payload_chunk; - if (payload_chunk) { - _has_bits_[0] |= 0x00000002u; + _impl_.payload_chunk_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadChunk*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_chunk) } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::release_payload_chunk() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* temp = payload_chunk_; - payload_chunk_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE PayloadTransferFrame::release_payload_chunk() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* released = _impl_.payload_chunk_; + _impl_.payload_chunk_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::unsafe_arena_release_payload_chunk() { +inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE PayloadTransferFrame::unsafe_arena_release_payload_chunk() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.payload_chunk) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* temp = payload_chunk_; - payload_chunk_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* temp = _impl_.payload_chunk_; + _impl_.payload_chunk_ = nullptr; return temp; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::_internal_mutable_payload_chunk() { - _has_bits_[0] |= 0x00000002u; - if (payload_chunk_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(GetArenaForAllocation()); - payload_chunk_ = p; +inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL PayloadTransferFrame::_internal_mutable_payload_chunk() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.payload_chunk_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(GetArena()); + _impl_.payload_chunk_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadChunk*>(p); } - return payload_chunk_; + return _impl_.payload_chunk_; } -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::mutable_payload_chunk() { +inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NONNULL PayloadTransferFrame::mutable_payload_chunk() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* _msg = _internal_mutable_payload_chunk(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.payload_chunk) return _msg; } -inline void PayloadTransferFrame::set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void PayloadTransferFrame::set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete payload_chunk_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_chunk_); } - if (payload_chunk) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>::GetOwningArena(payload_chunk); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - payload_chunk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_chunk, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - payload_chunk_ = payload_chunk; + + _impl_.payload_chunk_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_PayloadChunk*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_chunk) } // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; -inline bool PayloadTransferFrame::_internal_has_control_message() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || control_message_ != nullptr); +inline bool PayloadTransferFrame::has_control_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.control_message_ != nullptr); return value; } -inline bool PayloadTransferFrame::has_control_message() const { - return _internal_has_control_message(); -} inline void PayloadTransferFrame::clear_control_message() { - if (control_message_ != nullptr) control_message_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.control_message_ != nullptr) _impl_.control_message_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& PayloadTransferFrame::_internal_control_message() const { - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage* p = control_message_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_ControlMessage_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::PayloadTransferFrame_ControlMessage* p = _impl_.control_message_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_PayloadTransferFrame_ControlMessage_default_instance_); } -inline const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& PayloadTransferFrame::control_message() const { +inline const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& PayloadTransferFrame::control_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.control_message) return _internal_control_message(); } inline void PayloadTransferFrame::unsafe_arena_set_allocated_control_message( - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(control_message_); + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.control_message_); } - control_message_ = control_message; - if (control_message) { - _has_bits_[0] |= 0x00000004u; + _impl_.control_message_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.control_message) } -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::release_control_message() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* temp = control_message_; - control_message_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE PayloadTransferFrame::release_control_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* released = _impl_.control_message_; + _impl_.control_message_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::unsafe_arena_release_control_message() { +inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE PayloadTransferFrame::unsafe_arena_release_control_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.control_message) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* temp = control_message_; - control_message_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::PayloadTransferFrame_ControlMessage* temp = _impl_.control_message_; + _impl_.control_message_ = nullptr; return temp; } -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::_internal_mutable_control_message() { - _has_bits_[0] |= 0x00000004u; - if (control_message_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(GetArenaForAllocation()); - control_message_ = p; +inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL PayloadTransferFrame::_internal_mutable_control_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.control_message_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(GetArena()); + _impl_.control_message_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage*>(p); } - return control_message_; + return _impl_.control_message_; } -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::mutable_control_message() { +inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NONNULL PayloadTransferFrame::mutable_control_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::PayloadTransferFrame_ControlMessage* _msg = _internal_mutable_control_message(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.control_message) return _msg; } -inline void PayloadTransferFrame::set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void PayloadTransferFrame::set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete control_message_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.control_message_); } - if (control_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_ControlMessage>::GetOwningArena(control_message); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - control_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, control_message, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - control_message_ = control_message; + + _impl_.control_message_ = reinterpret_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.control_message) } @@ -13007,398 +14501,422 @@ inline void PayloadTransferFrame::set_allocated_control_message(::location::near // ServiceAddress // optional bytes ip_address = 1; -inline bool ServiceAddress::_internal_has_ip_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ServiceAddress::has_ip_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ServiceAddress::has_ip_address() const { - return _internal_has_ip_address(); -} inline void ServiceAddress::clear_ip_address() { - ip_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ServiceAddress::ip_address() const { +inline const ::std::string& ServiceAddress::ip_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ServiceAddress.ip_address) return _internal_ip_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ServiceAddress::set_ip_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ServiceAddress::set_ip_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.ip_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ServiceAddress.ip_address) } -inline std::string* ServiceAddress::mutable_ip_address() { - std::string* _s = _internal_mutable_ip_address(); +inline ::std::string* PROTOBUF_NONNULL ServiceAddress::mutable_ip_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_ip_address(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ServiceAddress.ip_address) return _s; } -inline const std::string& ServiceAddress::_internal_ip_address() const { - return ip_address_.Get(); +inline const ::std::string& ServiceAddress::_internal_ip_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ip_address_.Get(); } -inline void ServiceAddress::_internal_set_ip_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ServiceAddress::_internal_set_ip_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.Set(value, GetArena()); } -inline std::string* ServiceAddress::_internal_mutable_ip_address() { - _has_bits_[0] |= 0x00000001u; - return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ServiceAddress::_internal_mutable_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ip_address_.Mutable( GetArena()); } -inline std::string* ServiceAddress::release_ip_address() { +inline ::std::string* PROTOBUF_NULLABLE ServiceAddress::release_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ServiceAddress.ip_address) - if (!_internal_has_ip_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.ip_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ServiceAddress::set_allocated_ip_address(std::string* ip_address) { - if (ip_address != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ServiceAddress::set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ip_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ip_address_.IsDefault()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ServiceAddress.ip_address) } // optional int32 port = 2; -inline bool ServiceAddress::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ServiceAddress::has_port() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ServiceAddress::has_port() const { - return _internal_has_port(); -} inline void ServiceAddress::clear_port() { - port_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t ServiceAddress::_internal_port() const { - return port_; -} -inline int32_t ServiceAddress::port() const { +inline ::int32_t ServiceAddress::port() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ServiceAddress.port) return _internal_port(); } -inline void ServiceAddress::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000002u; - port_ = value; -} -inline void ServiceAddress::set_port(int32_t value) { +inline void ServiceAddress::set_port(::int32_t value) { _internal_set_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.ServiceAddress.port) } +inline ::int32_t ServiceAddress::_internal_port() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.port_; +} +inline void ServiceAddress::_internal_set_port(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = value; +} // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials // optional string ssid = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_ssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_ssid() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_ssid() const { - return _internal_has_ssid(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_ssid() { - ssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ssid_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ssid() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ssid() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) return _internal_ssid(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_ssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_ssid(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.ssid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_ssid() { - std::string* _s = _internal_mutable_ssid(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_ssid() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_ssid(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_ssid() const { - return ssid_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_ssid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ssid_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_ssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_ssid(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ssid_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_ssid() { - _has_bits_[0] |= 0x00000001u; - return ssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_ssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ssid_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_ssid() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_ssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) - if (!_internal_has_ssid()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = ssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.ssid_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_ssid(std::string* ssid) { - if (ssid != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_ssid(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - ssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ssid_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ssid_.IsDefault()) { + _impl_.ssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) } // optional string password = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_password() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_password() const { - return _internal_has_password(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::password() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::password() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) return _internal_password(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_password(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.password_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_password() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_password(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_password() const { - return password_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_password() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.password_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_password(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000002u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.password_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_password() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) - if (!_internal_has_password()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.password_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_password(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.password_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.password_.IsDefault()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) } // optional int32 port = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_port() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_port() const { - return _internal_has_port(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_port() { - port_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_port() const { - return port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::port() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::port() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.port) return _internal_port(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000008u; - port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_port(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_port(::int32_t value) { _internal_set_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.port) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_port() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.port_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_port(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = value; +} // optional string gateway = 4 [default = "0.0.0.0"]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_gateway() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_gateway() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_gateway() const { - return _internal_has_gateway(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_gateway() { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::gateway() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::gateway() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) - if (gateway_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_gateway_.get(); + if (_impl_.gateway_.IsDefault()) { + return Impl_::_i_give_permission_to_break_this_code_default_gateway_.get(); + } return _internal_gateway(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_gateway(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_gateway(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.gateway_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_gateway() { - std::string* _s = _internal_mutable_gateway(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_gateway() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_gateway(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_gateway() const { - return gateway_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_gateway() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.gateway_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_gateway(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_gateway(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gateway_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_gateway() { - _has_bits_[0] |= 0x00000004u; - return gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_gateway() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_gateway() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_gateway() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) - if (!_internal_has_gateway()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = gateway_.ReleaseNonDefault(nullptr, GetArenaForAllocation()); - return p; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + return _impl_.gateway_.Release(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_gateway(std::string* gateway) { - if (gateway != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_gateway(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - gateway_.SetAllocated(nullptr, gateway, - GetArenaForAllocation()); + _impl_.gateway_.SetAllocated(value, GetArena()); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) } // optional int32 frequency = 5 [default = -1]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_frequency() const { - return _internal_has_frequency(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_frequency() { - frequency_ = -1; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = -1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_frequency() const { - return frequency_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::frequency() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::frequency() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.frequency) return _internal_frequency(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000010u; - frequency_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_frequency(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_frequency(::int32_t value) { _internal_set_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.frequency) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.frequency_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = value; +} // repeated .location.nearby.connections.ServiceAddress address_candidates = 6; inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_address_candidates_size() const { - return address_candidates_.size(); + return _internal_address_candidates().size(); } inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address_candidates_size() const { return _internal_address_candidates_size(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_address_candidates() { - address_candidates_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.address_candidates_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_address_candidates(int index) { +inline ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_address_candidates(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.address_candidates) - return address_candidates_.Mutable(index); + return _internal_mutable_address_candidates()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_address_candidates() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_address_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.address_candidates) - return &address_candidates_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_address_candidates(); } -inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_address_candidates(int index) const { - return address_candidates_.Get(index); -} -inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address_candidates(int index) const { +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address_candidates(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.address_candidates) - return _internal_address_candidates(index); + return _internal_address_candidates().Get(index); } -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_add_address_candidates() { - return address_candidates_.Add(); -} -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::add_address_candidates() { - ::location::nearby::connections::ServiceAddress* _add = _internal_add_address_candidates(); +inline ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::add_address_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::connections::ServiceAddress* _add = + _internal_mutable_address_candidates()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.address_candidates) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address_candidates() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address_candidates() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.address_candidates) - return address_candidates_; + return _internal_address_candidates(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_address_candidates() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.address_candidates_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_address_candidates() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.address_candidates_; } // ------------------------------------------------------------------- @@ -13406,140 +14924,157 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::address // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket // optional bytes ip_address = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_has_ip_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_ip_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_ip_address() const { - return _internal_has_ip_address(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_ip_address() { - ip_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ip_address() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ip_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) return _internal_ip_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_ip_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_ip_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.ip_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_ip_address() { - std::string* _s = _internal_mutable_ip_address(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_ip_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_ip_address(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_ip_address() const { - return ip_address_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_ip_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ip_address_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_ip_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_ip_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_mutable_ip_address() { - _has_bits_[0] |= 0x00000001u; - return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_mutable_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ip_address_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::release_ip_address() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::release_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) - if (!_internal_has_ip_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.ip_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_allocated_ip_address(std::string* ip_address) { - if (ip_address != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ip_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ip_address_.IsDefault()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) } // optional int32 wifi_port = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_has_wifi_port() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_wifi_port() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_wifi_port() const { - return _internal_has_wifi_port(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_wifi_port() { - wifi_port_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_wifi_port() const { - return wifi_port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::wifi_port() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::wifi_port() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.wifi_port) return _internal_wifi_port(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_wifi_port(int32_t value) { - _has_bits_[0] |= 0x00000002u; - wifi_port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_wifi_port(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_wifi_port(::int32_t value) { _internal_set_wifi_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.wifi_port) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_wifi_port() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_port_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_wifi_port(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_port_ = value; +} // repeated .location.nearby.connections.ServiceAddress address_candidates = 3; inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_address_candidates_size() const { - return address_candidates_.size(); + return _internal_address_candidates().size(); } inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidates_size() const { return _internal_address_candidates_size(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_address_candidates() { - address_candidates_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.address_candidates_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_address_candidates(int index) { +inline ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_address_candidates(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.address_candidates) - return address_candidates_.Mutable(index); + return _internal_mutable_address_candidates()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_address_candidates() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_address_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.address_candidates) - return &address_candidates_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_address_candidates(); } -inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_address_candidates(int index) const { - return address_candidates_.Get(index); -} -inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidates(int index) const { +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidates(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.address_candidates) - return _internal_address_candidates(index); + return _internal_address_candidates().Get(index); } -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_add_address_candidates() { - return address_candidates_.Add(); -} -inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::add_address_candidates() { - ::location::nearby::connections::ServiceAddress* _add = _internal_add_address_candidates(); +inline ::location::nearby::connections::ServiceAddress* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::add_address_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::connections::ServiceAddress* _add = + _internal_mutable_address_candidates()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.address_candidates) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidates() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidates() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.address_candidates) - return address_candidates_; + return _internal_address_candidates(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>& +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_address_candidates() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.address_candidates_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::connections::ServiceAddress>* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_mutable_address_candidates() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.address_candidates_; } // ------------------------------------------------------------------- @@ -13547,140 +15082,140 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::address_candidat // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials // optional string service_name = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_has_service_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_service_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_service_name() const { - return _internal_has_service_name(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::clear_service_name() { - service_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::service_name() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::service_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) return _internal_service_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_service_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_service_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_service_name() { - std::string* _s = _internal_mutable_service_name(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_service_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_service_name() const { - return service_name_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_service_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_name_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_service_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_service_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_service_name() { - _has_bits_[0] |= 0x00000001u; - return service_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_name_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_service_name() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) - if (!_internal_has_service_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_service_name(std::string* service_name) { - if (service_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_name_.IsDefault()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) } // optional string mac_address = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_has_mac_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_mac_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_mac_address() const { - return _internal_has_mac_address(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::clear_mac_address() { - mac_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mac_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mac_address() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mac_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) return _internal_mac_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_mac_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_mac_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.mac_address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_mac_address() { - std::string* _s = _internal_mutable_mac_address(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_mac_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_mac_address(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mac_address() const { - return mac_address_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mac_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mac_address_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_mac_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_mac_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mac_address_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_mac_address() { - _has_bits_[0] |= 0x00000002u; - return mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.mac_address_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_mac_address() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) - if (!_internal_has_mac_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = mac_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.mac_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mac_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_mac_address(std::string* mac_address) { - if (mac_address != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_mac_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mac_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.mac_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mac_address_.IsDefault()) { + _impl_.mac_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) } @@ -13689,209 +15224,209 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredential // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials // optional string service_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_service_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_id() const { - return _internal_has_service_id(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_service_id() { - service_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_id() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) return _internal_service_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_id() { - std::string* _s = _internal_mutable_service_id(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_id() const { - return service_id_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_id() { - _has_bits_[0] |= 0x00000001u; - return service_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_id() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) - if (!_internal_has_service_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_id(std::string* service_id) { - if (service_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_.IsDefault()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) } // optional bytes service_info = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_service_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_info() const { - return _internal_has_service_info(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_service_info() { - service_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_info_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_info() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_info() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) return _internal_service_info(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - service_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_info(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.service_info_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_info() { - std::string* _s = _internal_mutable_service_info(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_service_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_info() const { - return service_info_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_info() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_info_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_info(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - service_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_info(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_info_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_info() { - _has_bits_[0] |= 0x00000002u; - return service_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_info_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_info() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) - if (!_internal_has_service_info()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = service_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.service_info_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_info(std::string* service_info) { - if (service_info != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_info(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - service_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_info_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_info_.IsDefault()) { + _impl_.service_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) } // optional string password = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_password() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_password() const { - return _internal_has_password(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::password() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::password() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) return _internal_password(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_password(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.password_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_password() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_password(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_password() const { - return password_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_password() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.password_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_password(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000004u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.password_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_password() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) - if (!_internal_has_password()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.password_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_password(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.password_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.password_.IsDefault()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) } @@ -13900,463 +15435,470 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredential // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials // optional string ssid = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_ssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ssid() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ssid() const { - return _internal_has_ssid(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_ssid() { - ssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ssid_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ssid() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ssid() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) return _internal_ssid(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ssid(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.ssid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ssid() { - std::string* _s = _internal_mutable_ssid(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ssid() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_ssid(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ssid() const { - return ssid_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ssid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ssid_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ssid(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ssid_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ssid() { - _has_bits_[0] |= 0x00000001u; - return ssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ssid_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ssid() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) - if (!_internal_has_ssid()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = ssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.ssid_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ssid(std::string* ssid) { - if (ssid != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ssid(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - ssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ssid_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ssid_.IsDefault()) { + _impl_.ssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) } // optional string password = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_password() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_password() const { - return _internal_has_password(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::password() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::password() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) return _internal_password(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_password(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.password_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_password() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_password(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_password() const { - return password_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_password() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.password_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_password(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000002u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.password_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_password() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) - if (!_internal_has_password()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.password_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_password(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.password_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.password_.IsDefault()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) } // optional int32 port = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_port() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_port() const { - return _internal_has_port(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_port() { - port_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_port() const { - return port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::port() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::port() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.port) return _internal_port(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000040u; - port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_port(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_port(::int32_t value) { _internal_set_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.port) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_port() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.port_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_port(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.port_ = value; +} // optional int32 frequency = 4; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_frequency() const { - return _internal_has_frequency(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_frequency() { - frequency_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_frequency() const { - return frequency_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.frequency) return _internal_frequency(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000080u; - frequency_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_frequency(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_frequency(::int32_t value) { _internal_set_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.frequency) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.frequency_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = value; +} // optional string gateway = 5 [default = "0.0.0.0"]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_gateway() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_gateway() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_gateway() const { - return _internal_has_gateway(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_gateway() { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::gateway() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::gateway() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) - if (gateway_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_gateway_.get(); + if (_impl_.gateway_.IsDefault()) { + return Impl_::_i_give_permission_to_break_this_code_default_gateway_.get(); + } return _internal_gateway(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_gateway(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_gateway(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.gateway_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_gateway() { - std::string* _s = _internal_mutable_gateway(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_gateway() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_gateway(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_gateway() const { - return gateway_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_gateway() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.gateway_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_gateway(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_gateway(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gateway_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_gateway() { - _has_bits_[0] |= 0x00000004u; - return gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_gateway() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Impl_::_i_give_permission_to_break_this_code_default_gateway_, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_gateway() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_gateway() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) - if (!_internal_has_gateway()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = gateway_.ReleaseNonDefault(nullptr, GetArenaForAllocation()); - return p; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + return _impl_.gateway_.Release(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_gateway(std::string* gateway) { - if (gateway != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_gateway(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - gateway_.SetAllocated(nullptr, gateway, - GetArenaForAllocation()); + _impl_.gateway_.SetAllocated(value, GetArena()); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) } // optional bytes ip_v6_address = 6; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_ip_v6_address() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ip_v6_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ip_v6_address() const { - return _internal_has_ip_v6_address(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_ip_v6_address() { - ip_v6_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_v6_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ip_v6_address() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ip_v6_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) return _internal_ip_v6_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ip_v6_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - ip_v6_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ip_v6_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.ip_v6_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ip_v6_address() { - std::string* _s = _internal_mutable_ip_v6_address(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ip_v6_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_ip_v6_address(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ip_v6_address() const { - return ip_v6_address_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ip_v6_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ip_v6_address_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ip_v6_address(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - ip_v6_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ip_v6_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_v6_address_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ip_v6_address() { - _has_bits_[0] |= 0x00000008u; - return ip_v6_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ip_v6_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ip_v6_address_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ip_v6_address() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ip_v6_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) - if (!_internal_has_ip_v6_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = ip_v6_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_v6_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.ip_v6_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ip_v6_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ip_v6_address(std::string* ip_v6_address) { - if (ip_v6_address != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ip_v6_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - ip_v6_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_v6_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_v6_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ip_v6_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ip_v6_address_.IsDefault()) { + _impl_.ip_v6_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) } // optional string service_name = 7; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_service_name() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_service_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_service_name() const { - return _internal_has_service_name(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_service_name() { - service_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::service_name() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::service_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.service_name) return _internal_service_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_service_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000010u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_service_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.service_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.service_name) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_service_name() { - std::string* _s = _internal_mutable_service_name(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_service_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_service_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.service_name) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_service_name() const { - return service_name_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_service_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_name_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_service_name(const std::string& value) { - _has_bits_[0] |= 0x00000010u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_service_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_service_name() { - _has_bits_[0] |= 0x00000010u; - return service_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_name_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_service_name() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.service_name) - if (!_internal_has_service_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _has_bits_[0] &= ~0x00000010u; - auto* p = service_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.service_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_service_name(std::string* service_name) { - if (service_name != nullptr) { - _has_bits_[0] |= 0x00000010u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - service_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_name_.IsDefault()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.service_name) } // optional string pin = 8; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_pin() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_pin() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_pin() const { - return _internal_has_pin(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_pin() { - pin_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pin_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::pin() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::pin() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_pin(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000020u; - pin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_pin(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.pin_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.pin) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_pin() { - std::string* _s = _internal_mutable_pin(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_pin() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.pin) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_pin() const { - return pin_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_pin() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pin_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_pin(const std::string& value) { - _has_bits_[0] |= 0x00000020u; - pin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_pin(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pin_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_pin() { - _has_bits_[0] |= 0x00000020u; - return pin_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_pin() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.pin_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_pin() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_pin() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.pin) - if (!_internal_has_pin()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _has_bits_[0] &= ~0x00000020u; - auto* p = pin_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (pin_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - pin_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.pin_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.pin_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_pin(std::string* pin) { - if (pin != nullptr) { - _has_bits_[0] |= 0x00000020u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_pin(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - pin_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pin, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (pin_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - pin_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.pin_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pin_.IsDefault()) { + _impl_.pin_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.pin) } @@ -14365,161 +15907,170 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials // optional string peer_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_has_peer_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_peer_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_peer_id() const { - return _internal_has_peer_id(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::clear_peer_id() { - peer_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.peer_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::peer_id() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::peer_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) return _internal_peer_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_peer_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_peer_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.peer_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_peer_id() { - std::string* _s = _internal_mutable_peer_id(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_peer_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_peer_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_peer_id() const { - return peer_id_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_peer_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.peer_id_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_set_peer_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_set_peer_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.peer_id_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_peer_id() { - _has_bits_[0] |= 0x00000001u; - return peer_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_peer_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.peer_id_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_peer_id() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_peer_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) - if (!_internal_has_peer_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = peer_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (peer_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.peer_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.peer_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_peer_id(std::string* peer_id) { - if (peer_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_peer_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - peer_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), peer_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (peer_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.peer_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.peer_id_.IsDefault()) { + _impl_.peer_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) } // optional .location.nearby.connections.LocationHint location_hint = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_has_location_hint() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || location_hint_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_location_hint() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.location_hint_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_location_hint() const { - return _internal_has_location_hint(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::clear_location_hint() { - if (location_hint_ != nullptr) location_hint_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ != nullptr) _impl_.location_hint_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::LocationHint& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_location_hint() const { - const ::location::nearby::connections::LocationHint* p = location_hint_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_LocationHint_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::LocationHint* p = _impl_.location_hint_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_LocationHint_default_instance_); } -inline const ::location::nearby::connections::LocationHint& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::location_hint() const { +inline const ::location::nearby::connections::LocationHint& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::location_hint() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) return _internal_location_hint(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_hint_); + ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - location_hint_ = location_hint; - if (location_hint) { - _has_bits_[0] |= 0x00000002u; + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) } -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_location_hint() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::LocationHint* released = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::unsafe_arena_release_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::unsafe_arena_release_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::LocationHint* temp = _impl_.location_hint_; + _impl_.location_hint_ = nullptr; return temp; } -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_location_hint() { - _has_bits_[0] |= 0x00000002u; - if (location_hint_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::LocationHint>(GetArenaForAllocation()); - location_hint_ = p; +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_location_hint() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.location_hint_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::LocationHint>(GetArena()); + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(p); } - return location_hint_; + return _impl_.location_hint_; } -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_location_hint() { +inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_location_hint() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::LocationHint* _msg = _internal_mutable_location_hint(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_location_hint(::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete location_hint_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_hint_); } - if (location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::LocationHint>::GetOwningArena(location_hint); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - location_hint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location_hint, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - location_hint_ = location_hint; + + _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) } @@ -14528,209 +16079,209 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials:: // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials // optional string service_name = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_has_service_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_service_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_service_name() const { - return _internal_has_service_name(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::clear_service_name() { - service_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_name() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) return _internal_service_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_service_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_service_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_service_name() { - std::string* _s = _internal_mutable_service_name(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_service_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_service_name() const { - return service_name_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_service_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_name_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_service_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_service_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_name_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_service_name() { - _has_bits_[0] |= 0x00000001u; - return service_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_name_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_name() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) - if (!_internal_has_service_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_name(std::string* service_name) { - if (service_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_name_.IsDefault()) { + _impl_.service_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) } // optional string service_type = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_has_service_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_service_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_service_type() const { - return _internal_has_service_type(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::clear_service_type() { - service_type_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_type() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) return _internal_service_type(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_service_type(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - service_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_service_type(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.service_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_service_type() { - std::string* _s = _internal_mutable_service_type(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_service_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_service_type(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_service_type() const { - return service_type_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_service_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_type_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_service_type(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - service_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_service_type(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_type_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_service_type() { - _has_bits_[0] |= 0x00000002u; - return service_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_service_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_type_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_type() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) - if (!_internal_has_service_type()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = service_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.service_type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_type(std::string* service_type) { - if (service_type != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_type(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - service_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_type, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_type_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_type_.IsDefault()) { + _impl_.service_type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) } // optional string password = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_password() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_password() const { - return _internal_has_password(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::password() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::password() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) return _internal_password(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_password(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.password_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_password() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_password(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_password() const { - return password_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_password() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.password_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_password(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.password_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000004u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.password_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_password() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_password() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) - if (!_internal_has_password()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.password_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_password(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.password_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.password_.IsDefault()) { + _impl_.password_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) } @@ -14740,136 +16291,156 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::se // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mediums_size() const { - return mediums_.size(); + return _internal_mediums().size(); } inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mediums_size() const { return _internal_mediums_size(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::clear_mediums() { - mediums_.Clear(); -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mediums(int index) const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium >(mediums_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mediums_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mediums(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.mediums) - return _internal_mediums(index); + return static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(_internal_mediums().Get(index)); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::set_mediums(int index, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value)); - mediums_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_)); + _internal_mutable_mediums()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.mediums) } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_add_mediums(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value)); - mediums_.Add(value); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::add_mediums(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - _internal_add_mediums(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_mediums()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.mediums) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mediums() const { +inline const ::google::protobuf::RepeatedField& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mediums() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.mediums) - return mediums_; + return _internal_mediums(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mutable_mediums() { - return &mediums_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mutable_mediums() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mutable_mediums() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.mediums) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_mediums(); } +inline const ::google::protobuf::RepeatedField& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mediums() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mediums_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mutable_mediums() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.mediums_; +} // optional .location.nearby.connections.MediumMetadata medium_meta_data = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_has_medium_meta_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || medium_meta_data_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::has_medium_meta_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.medium_meta_data_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::has_medium_meta_data() const { - return _internal_has_medium_meta_data(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::clear_medium_meta_data() { - if (medium_meta_data_ != nullptr) medium_meta_data_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_meta_data_ != nullptr) _impl_.medium_meta_data_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::MediumMetadata& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_medium_meta_data() const { - const ::location::nearby::connections::MediumMetadata* p = medium_meta_data_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_MediumMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::MediumMetadata* p = _impl_.medium_meta_data_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_MediumMetadata_default_instance_); } -inline const ::location::nearby::connections::MediumMetadata& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::medium_meta_data() const { +inline const ::location::nearby::connections::MediumMetadata& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::medium_meta_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.medium_meta_data) return _internal_medium_meta_data(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::unsafe_arena_set_allocated_medium_meta_data( - ::location::nearby::connections::MediumMetadata* medium_meta_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(medium_meta_data_); + ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_meta_data_); } - medium_meta_data_ = medium_meta_data; - if (medium_meta_data) { - _has_bits_[0] |= 0x00000001u; + _impl_.medium_meta_data_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.medium_meta_data) } -inline ::location::nearby::connections::MediumMetadata* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::release_medium_meta_data() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::MediumMetadata* temp = medium_meta_data_; - medium_meta_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::release_medium_meta_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::MediumMetadata* released = _impl_.medium_meta_data_; + _impl_.medium_meta_data_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::MediumMetadata* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::unsafe_arena_release_medium_meta_data() { +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::unsafe_arena_release_medium_meta_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.medium_meta_data) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::MediumMetadata* temp = medium_meta_data_; - medium_meta_data_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::MediumMetadata* temp = _impl_.medium_meta_data_; + _impl_.medium_meta_data_ = nullptr; return temp; } -inline ::location::nearby::connections::MediumMetadata* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mutable_medium_meta_data() { - _has_bits_[0] |= 0x00000001u; - if (medium_meta_data_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(GetArenaForAllocation()); - medium_meta_data_ = p; +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_internal_mutable_medium_meta_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_meta_data_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::MediumMetadata>(GetArena()); + _impl_.medium_meta_data_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(p); } - return medium_meta_data_; + return _impl_.medium_meta_data_; } -inline ::location::nearby::connections::MediumMetadata* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mutable_medium_meta_data() { +inline ::location::nearby::connections::MediumMetadata* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::mutable_medium_meta_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::MediumMetadata* _msg = _internal_mutable_medium_meta_data(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.medium_meta_data) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::set_allocated_medium_meta_data(::location::nearby::connections::MediumMetadata* medium_meta_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::set_allocated_medium_meta_data(::location::nearby::connections::MediumMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete medium_meta_data_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_meta_data_); } - if (medium_meta_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::MediumMetadata>::GetOwningArena(medium_meta_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - medium_meta_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, medium_meta_data, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - medium_meta_data_ = medium_meta_data; + + _impl_.medium_meta_data_ = reinterpret_cast<::location::nearby::connections::MediumMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest.medium_meta_data) } @@ -14878,807 +16449,884 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest: // BandwidthUpgradeNegotiationFrame_UpgradePathInfo // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_medium() const { - return _internal_has_medium(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_medium() const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::medium() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.medium) return _internal_medium(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value)); - _has_bits_[0] |= 0x00000100u; - medium_ = value; -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.medium) } +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(_impl_.medium_); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_internal_data_)); + _impl_.medium_ = value; +} // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_hotspot_credentials() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || wifi_hotspot_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_hotspot_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.wifi_hotspot_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_hotspot_credentials() const { - return _internal_has_wifi_hotspot_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_hotspot_credentials() { - if (wifi_hotspot_credentials_ != nullptr) wifi_hotspot_credentials_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_hotspot_credentials_ != nullptr) _impl_.wifi_hotspot_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_hotspot_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* p = wifi_hotspot_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* p = _impl_.wifi_hotspot_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_hotspot_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_hotspot_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) return _internal_wifi_hotspot_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_hotspot_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_hotspot_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_hotspot_credentials_); } - wifi_hotspot_credentials_ = wifi_hotspot_credentials; - if (wifi_hotspot_credentials) { - _has_bits_[0] |= 0x00000001u; + _impl_.wifi_hotspot_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_hotspot_credentials() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* temp = wifi_hotspot_credentials_; - wifi_hotspot_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_hotspot_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* released = _impl_.wifi_hotspot_credentials_; + _impl_.wifi_hotspot_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_hotspot_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_hotspot_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* temp = wifi_hotspot_credentials_; - wifi_hotspot_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* temp = _impl_.wifi_hotspot_credentials_; + _impl_.wifi_hotspot_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_hotspot_credentials() { - _has_bits_[0] |= 0x00000001u; - if (wifi_hotspot_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(GetArenaForAllocation()); - wifi_hotspot_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_hotspot_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_hotspot_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(GetArena()); + _impl_.wifi_hotspot_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials*>(p); } - return wifi_hotspot_credentials_; + return _impl_.wifi_hotspot_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_hotspot_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_hotspot_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _msg = _internal_mutable_wifi_hotspot_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_hotspot_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_hotspot_credentials_); } - if (wifi_hotspot_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>::GetOwningArena(wifi_hotspot_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_hotspot_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_hotspot_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - wifi_hotspot_credentials_ = wifi_hotspot_credentials; + + _impl_.wifi_hotspot_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_lan_socket() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || wifi_lan_socket_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_lan_socket() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.wifi_lan_socket_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_lan_socket() const { - return _internal_has_wifi_lan_socket(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_lan_socket() { - if (wifi_lan_socket_ != nullptr) wifi_lan_socket_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_lan_socket_ != nullptr) _impl_.wifi_lan_socket_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_lan_socket() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* p = wifi_lan_socket_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* p = _impl_.wifi_lan_socket_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_lan_socket() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_lan_socket() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) return _internal_wifi_lan_socket(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_lan_socket( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_lan_socket_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_lan_socket_); } - wifi_lan_socket_ = wifi_lan_socket; - if (wifi_lan_socket) { - _has_bits_[0] |= 0x00000002u; + _impl_.wifi_lan_socket_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_lan_socket() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* temp = wifi_lan_socket_; - wifi_lan_socket_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_lan_socket() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* released = _impl_.wifi_lan_socket_; + _impl_.wifi_lan_socket_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_lan_socket() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_lan_socket() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* temp = wifi_lan_socket_; - wifi_lan_socket_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* temp = _impl_.wifi_lan_socket_; + _impl_.wifi_lan_socket_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_lan_socket() { - _has_bits_[0] |= 0x00000002u; - if (wifi_lan_socket_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(GetArenaForAllocation()); - wifi_lan_socket_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_lan_socket() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_lan_socket_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(GetArena()); + _impl_.wifi_lan_socket_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket*>(p); } - return wifi_lan_socket_; + return _impl_.wifi_lan_socket_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_lan_socket() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_lan_socket() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _msg = _internal_mutable_wifi_lan_socket(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_lan_socket_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_lan_socket_); } - if (wifi_lan_socket) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>::GetOwningArena(wifi_lan_socket); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_lan_socket = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_lan_socket, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - wifi_lan_socket_ = wifi_lan_socket; + + _impl_.wifi_lan_socket_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_bluetooth_credentials() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || bluetooth_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_bluetooth_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.bluetooth_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_bluetooth_credentials() const { - return _internal_has_bluetooth_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_bluetooth_credentials() { - if (bluetooth_credentials_ != nullptr) bluetooth_credentials_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bluetooth_credentials_ != nullptr) _impl_.bluetooth_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_bluetooth_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* p = bluetooth_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* p = _impl_.bluetooth_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::bluetooth_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::bluetooth_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) return _internal_bluetooth_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_bluetooth_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bluetooth_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bluetooth_credentials_); } - bluetooth_credentials_ = bluetooth_credentials; - if (bluetooth_credentials) { - _has_bits_[0] |= 0x00000004u; + _impl_.bluetooth_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_bluetooth_credentials() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* temp = bluetooth_credentials_; - bluetooth_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_bluetooth_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* released = _impl_.bluetooth_credentials_; + _impl_.bluetooth_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_bluetooth_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_bluetooth_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* temp = bluetooth_credentials_; - bluetooth_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* temp = _impl_.bluetooth_credentials_; + _impl_.bluetooth_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_bluetooth_credentials() { - _has_bits_[0] |= 0x00000004u; - if (bluetooth_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(GetArenaForAllocation()); - bluetooth_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_bluetooth_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.bluetooth_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(GetArena()); + _impl_.bluetooth_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials*>(p); } - return bluetooth_credentials_; + return _impl_.bluetooth_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_bluetooth_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_bluetooth_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _msg = _internal_mutable_bluetooth_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete bluetooth_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bluetooth_credentials_); } - if (bluetooth_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>::GetOwningArena(bluetooth_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - bluetooth_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bluetooth_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - bluetooth_credentials_ = bluetooth_credentials; + + _impl_.bluetooth_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_aware_credentials() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || wifi_aware_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_aware_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.wifi_aware_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_aware_credentials() const { - return _internal_has_wifi_aware_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_aware_credentials() { - if (wifi_aware_credentials_ != nullptr) wifi_aware_credentials_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_aware_credentials_ != nullptr) _impl_.wifi_aware_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_aware_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* p = wifi_aware_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* p = _impl_.wifi_aware_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_aware_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_aware_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) return _internal_wifi_aware_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_aware_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_aware_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_aware_credentials_); } - wifi_aware_credentials_ = wifi_aware_credentials; - if (wifi_aware_credentials) { - _has_bits_[0] |= 0x00000008u; + _impl_.wifi_aware_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_aware_credentials() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* temp = wifi_aware_credentials_; - wifi_aware_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_aware_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* released = _impl_.wifi_aware_credentials_; + _impl_.wifi_aware_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_aware_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_aware_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* temp = wifi_aware_credentials_; - wifi_aware_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* temp = _impl_.wifi_aware_credentials_; + _impl_.wifi_aware_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_aware_credentials() { - _has_bits_[0] |= 0x00000008u; - if (wifi_aware_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(GetArenaForAllocation()); - wifi_aware_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_aware_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_aware_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(GetArena()); + _impl_.wifi_aware_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials*>(p); } - return wifi_aware_credentials_; + return _impl_.wifi_aware_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_aware_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_aware_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _msg = _internal_mutable_wifi_aware_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_aware_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_aware_credentials_); } - if (wifi_aware_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>::GetOwningArena(wifi_aware_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_aware_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_aware_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - wifi_aware_credentials_ = wifi_aware_credentials; + + _impl_.wifi_aware_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_direct_credentials() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || wifi_direct_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_direct_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.wifi_direct_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_direct_credentials() const { - return _internal_has_wifi_direct_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_direct_credentials() { - if (wifi_direct_credentials_ != nullptr) wifi_direct_credentials_->Clear(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_direct_credentials_ != nullptr) _impl_.wifi_direct_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_direct_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* p = wifi_direct_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* p = _impl_.wifi_direct_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_direct_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_direct_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) return _internal_wifi_direct_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_direct_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_direct_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_direct_credentials_); } - wifi_direct_credentials_ = wifi_direct_credentials; - if (wifi_direct_credentials) { - _has_bits_[0] |= 0x00000010u; + _impl_.wifi_direct_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_direct_credentials() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* temp = wifi_direct_credentials_; - wifi_direct_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_direct_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* released = _impl_.wifi_direct_credentials_; + _impl_.wifi_direct_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_direct_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_direct_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* temp = wifi_direct_credentials_; - wifi_direct_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* temp = _impl_.wifi_direct_credentials_; + _impl_.wifi_direct_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_direct_credentials() { - _has_bits_[0] |= 0x00000010u; - if (wifi_direct_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(GetArenaForAllocation()); - wifi_direct_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_direct_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_direct_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(GetArena()); + _impl_.wifi_direct_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials*>(p); } - return wifi_direct_credentials_; + return _impl_.wifi_direct_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_direct_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_direct_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _msg = _internal_mutable_wifi_direct_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_direct_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_direct_credentials_); } - if (wifi_direct_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>::GetOwningArena(wifi_direct_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_direct_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_direct_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - wifi_direct_credentials_ = wifi_direct_credentials; + + _impl_.wifi_direct_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_web_rtc_credentials() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || web_rtc_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_web_rtc_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.web_rtc_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_web_rtc_credentials() const { - return _internal_has_web_rtc_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_web_rtc_credentials() { - if (web_rtc_credentials_ != nullptr) web_rtc_credentials_->Clear(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.web_rtc_credentials_ != nullptr) _impl_.web_rtc_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_web_rtc_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* p = web_rtc_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* p = _impl_.web_rtc_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::web_rtc_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::web_rtc_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) return _internal_web_rtc_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_web_rtc_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(web_rtc_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.web_rtc_credentials_); } - web_rtc_credentials_ = web_rtc_credentials; - if (web_rtc_credentials) { - _has_bits_[0] |= 0x00000020u; + _impl_.web_rtc_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_web_rtc_credentials() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* temp = web_rtc_credentials_; - web_rtc_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_web_rtc_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* released = _impl_.web_rtc_credentials_; + _impl_.web_rtc_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_web_rtc_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_web_rtc_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* temp = web_rtc_credentials_; - web_rtc_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* temp = _impl_.web_rtc_credentials_; + _impl_.web_rtc_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_web_rtc_credentials() { - _has_bits_[0] |= 0x00000020u; - if (web_rtc_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(GetArenaForAllocation()); - web_rtc_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_web_rtc_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.web_rtc_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(GetArena()); + _impl_.web_rtc_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials*>(p); } - return web_rtc_credentials_; + return _impl_.web_rtc_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_web_rtc_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_web_rtc_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _msg = _internal_mutable_web_rtc_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete web_rtc_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.web_rtc_credentials_); } - if (web_rtc_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>::GetOwningArena(web_rtc_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - web_rtc_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, web_rtc_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - web_rtc_credentials_ = web_rtc_credentials; + + _impl_.web_rtc_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_awdl_credentials() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || awdl_credentials_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_awdl_credentials() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.awdl_credentials_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_awdl_credentials() const { - return _internal_has_awdl_credentials(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_awdl_credentials() { - if (awdl_credentials_ != nullptr) awdl_credentials_->Clear(); - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.awdl_credentials_ != nullptr) _impl_.awdl_credentials_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_awdl_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* p = awdl_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* p = _impl_.awdl_credentials_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::awdl_credentials() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::awdl_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.awdl_credentials) return _internal_awdl_credentials(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_awdl_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* awdl_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(awdl_credentials_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.awdl_credentials_); } - awdl_credentials_ = awdl_credentials; - if (awdl_credentials) { - _has_bits_[0] |= 0x00000080u; + _impl_.awdl_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.awdl_credentials) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_awdl_credentials() { - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* temp = awdl_credentials_; - awdl_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_awdl_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* released = _impl_.awdl_credentials_; + _impl_.awdl_credentials_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_awdl_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_awdl_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.awdl_credentials) - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* temp = awdl_credentials_; - awdl_credentials_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* temp = _impl_.awdl_credentials_; + _impl_.awdl_credentials_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_awdl_credentials() { - _has_bits_[0] |= 0x00000080u; - if (awdl_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>(GetArenaForAllocation()); - awdl_credentials_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_awdl_credentials() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.awdl_credentials_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>(GetArena()); + _impl_.awdl_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials*>(p); } - return awdl_credentials_; + return _impl_.awdl_credentials_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_awdl_credentials() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_awdl_credentials() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* _msg = _internal_mutable_awdl_credentials(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.awdl_credentials) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_awdl_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* awdl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_awdl_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete awdl_credentials_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.awdl_credentials_); } - if (awdl_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials>::GetOwningArena(awdl_credentials); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - awdl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, awdl_credentials, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - awdl_credentials_ = awdl_credentials; + + _impl_.awdl_credentials_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.awdl_credentials) } // optional bool supports_disabling_encryption = 7; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_supports_disabling_encryption() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_disabling_encryption() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_disabling_encryption() const { - return _internal_has_supports_disabling_encryption(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_disabling_encryption() { - supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_disabling_encryption() const { - return supports_disabling_encryption_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_disabling_encryption_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_disabling_encryption() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_disabling_encryption) return _internal_supports_disabling_encryption(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000200u; - supports_disabling_encryption_ = value; -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_disabling_encryption(bool value) { _internal_set_supports_disabling_encryption(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_disabling_encryption) } +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_disabling_encryption() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_disabling_encryption_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_disabling_encryption(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_disabling_encryption_ = value; +} // optional bool supports_client_introduction_ack = 9; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_supports_client_introduction_ack() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_client_introduction_ack() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_client_introduction_ack() const { - return _internal_has_supports_client_introduction_ack(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_client_introduction_ack() { - supports_client_introduction_ack_ = false; - _has_bits_[0] &= ~0x00000400u; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_client_introduction_ack() const { - return supports_client_introduction_ack_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_client_introduction_ack_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_client_introduction_ack() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_client_introduction_ack) return _internal_supports_client_introduction_ack(); } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_client_introduction_ack(bool value) { - _has_bits_[0] |= 0x00000400u; - supports_client_introduction_ack_ = value; -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_client_introduction_ack(bool value) { _internal_set_supports_client_introduction_ack(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_client_introduction_ack) } +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_client_introduction_ack() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_client_introduction_ack_; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_client_introduction_ack(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_client_introduction_ack_ = value; +} // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.UpgradePathRequest upgrade_path_request = 10; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_upgrade_path_request() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || upgrade_path_request_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_upgrade_path_request() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.upgrade_path_request_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_upgrade_path_request() const { - return _internal_has_upgrade_path_request(); -} inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_upgrade_path_request() { - if (upgrade_path_request_ != nullptr) upgrade_path_request_->Clear(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.upgrade_path_request_ != nullptr) _impl_.upgrade_path_request_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_upgrade_path_request() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* p = upgrade_path_request_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* p = _impl_.upgrade_path_request_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::upgrade_path_request() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::upgrade_path_request() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.upgrade_path_request) return _internal_upgrade_path_request(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_upgrade_path_request( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(upgrade_path_request_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.upgrade_path_request_); } - upgrade_path_request_ = upgrade_path_request; - if (upgrade_path_request) { - _has_bits_[0] |= 0x00000040u; + _impl_.upgrade_path_request_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.upgrade_path_request) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_upgrade_path_request() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* temp = upgrade_path_request_; - upgrade_path_request_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_upgrade_path_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* released = _impl_.upgrade_path_request_; + _impl_.upgrade_path_request_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_upgrade_path_request() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_upgrade_path_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.upgrade_path_request) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* temp = upgrade_path_request_; - upgrade_path_request_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* temp = _impl_.upgrade_path_request_; + _impl_.upgrade_path_request_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_upgrade_path_request() { - _has_bits_[0] |= 0x00000040u; - if (upgrade_path_request_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>(GetArenaForAllocation()); - upgrade_path_request_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_upgrade_path_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.upgrade_path_request_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>(GetArena()); + _impl_.upgrade_path_request_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest*>(p); } - return upgrade_path_request_; + return _impl_.upgrade_path_request_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_upgrade_path_request() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_upgrade_path_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* _msg = _internal_mutable_upgrade_path_request(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.upgrade_path_request) return _msg; } -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_upgrade_path_request(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_upgrade_path_request(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete upgrade_path_request_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.upgrade_path_request_); } - if (upgrade_path_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest>::GetOwningArena(upgrade_path_request); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - upgrade_path_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, upgrade_path_request, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - upgrade_path_request_ = upgrade_path_request; + + _impl_.upgrade_path_request_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.upgrade_path_request) } @@ -15687,200 +17335,202 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_upgr // BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel // optional int32 sta_frequency = 1; -inline bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_has_sta_frequency() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::has_sta_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::has_sta_frequency() const { - return _internal_has_sta_frequency(); -} inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::clear_sta_frequency() { - sta_frequency_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sta_frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_sta_frequency() const { - return sta_frequency_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::sta_frequency() const { +inline ::int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::sta_frequency() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel.sta_frequency) return _internal_sta_frequency(); } -inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_set_sta_frequency(int32_t value) { - _has_bits_[0] |= 0x00000001u; - sta_frequency_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::set_sta_frequency(int32_t value) { +inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::set_sta_frequency(::int32_t value) { _internal_set_sta_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel.sta_frequency) } +inline ::int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_sta_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sta_frequency_; +} +inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_set_sta_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sta_frequency_ = value; +} // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_ClientIntroduction // optional string endpoint_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::endpoint_id() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) } // optional bool supports_disabling_encryption = 2; -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_supports_disabling_encryption() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_supports_disabling_encryption() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_supports_disabling_encryption() const { - return _internal_has_supports_disabling_encryption(); -} inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_supports_disabling_encryption() { - supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_supports_disabling_encryption() const { - return supports_disabling_encryption_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_disabling_encryption_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::supports_disabling_encryption() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.supports_disabling_encryption) return _internal_supports_disabling_encryption(); } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000004u; - supports_disabling_encryption_ = value; -} inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_supports_disabling_encryption(bool value) { _internal_set_supports_disabling_encryption(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.supports_disabling_encryption) } +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_supports_disabling_encryption() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_disabling_encryption_; +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_supports_disabling_encryption(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_disabling_encryption_ = value; +} // optional string last_endpoint_id = 3; -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_last_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_last_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_last_endpoint_id() const { - return _internal_has_last_endpoint_id(); -} inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_last_endpoint_id() { - last_endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::last_endpoint_id() const { +inline const ::std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::last_endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) return _internal_last_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_last_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_last_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.last_endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_last_endpoint_id() { - std::string* _s = _internal_mutable_last_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_last_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_last_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) return _s; } -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_last_endpoint_id() const { - return last_endpoint_id_.Get(); +inline const ::std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_last_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.last_endpoint_id_.Get(); } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_last_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_last_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_endpoint_id_.Set(value, GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_last_endpoint_id() { - _has_bits_[0] |= 0x00000002u; - return last_endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_last_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.last_endpoint_id_.Mutable( GetArena()); } -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_last_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_last_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) - if (!_internal_has_last_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = last_endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.last_endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.last_endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_last_endpoint_id(std::string* last_endpoint_id) { - if (last_endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_last_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - last_endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.last_endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.last_endpoint_id_.IsDefault()) { + _impl_.last_endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) } @@ -15893,391 +17543,430 @@ inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_l // BandwidthUpgradeNegotiationFrame // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool BandwidthUpgradeNegotiationFrame::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool BandwidthUpgradeNegotiationFrame::has_event_type() const { - return _internal_has_event_type(); -} inline void BandwidthUpgradeNegotiationFrame::clear_event_type() { - event_type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::_internal_event_type() const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType >(event_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::event_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.event_type) return _internal_event_type(); } -inline void BandwidthUpgradeNegotiationFrame::_internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - event_type_ = value; -} inline void BandwidthUpgradeNegotiationFrame::set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) { _internal_set_event_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.event_type) } +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType>(_impl_.event_type_); +} +inline void BandwidthUpgradeNegotiationFrame::_internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_internal_data_)); + _impl_.event_type_ = value; +} // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_upgrade_path_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || upgrade_path_info_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame::has_upgrade_path_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.upgrade_path_info_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame::has_upgrade_path_info() const { - return _internal_has_upgrade_path_info(); -} inline void BandwidthUpgradeNegotiationFrame::clear_upgrade_path_info() { - if (upgrade_path_info_ != nullptr) upgrade_path_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.upgrade_path_info_ != nullptr) _impl_.upgrade_path_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& BandwidthUpgradeNegotiationFrame::_internal_upgrade_path_info() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* p = upgrade_path_info_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* p = _impl_.upgrade_path_info_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& BandwidthUpgradeNegotiationFrame::upgrade_path_info() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& BandwidthUpgradeNegotiationFrame::upgrade_path_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) return _internal_upgrade_path_info(); } inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_upgrade_path_info( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(upgrade_path_info_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.upgrade_path_info_); } - upgrade_path_info_ = upgrade_path_info; - if (upgrade_path_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.upgrade_path_info_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::release_upgrade_path_info() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* temp = upgrade_path_info_; - upgrade_path_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::release_upgrade_path_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* released = _impl_.upgrade_path_info_; + _impl_.upgrade_path_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_upgrade_path_info() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::unsafe_arena_release_upgrade_path_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* temp = upgrade_path_info_; - upgrade_path_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* temp = _impl_.upgrade_path_info_; + _impl_.upgrade_path_info_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::_internal_mutable_upgrade_path_info() { - _has_bits_[0] |= 0x00000001u; - if (upgrade_path_info_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(GetArenaForAllocation()); - upgrade_path_info_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_internal_mutable_upgrade_path_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.upgrade_path_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(GetArena()); + _impl_.upgrade_path_info_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo*>(p); } - return upgrade_path_info_; + return _impl_.upgrade_path_info_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::mutable_upgrade_path_info() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::mutable_upgrade_path_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _msg = _internal_mutable_upgrade_path_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) return _msg; } -inline void BandwidthUpgradeNegotiationFrame::set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame::set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete upgrade_path_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.upgrade_path_info_); } - if (upgrade_path_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>::GetOwningArena(upgrade_path_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - upgrade_path_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, upgrade_path_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - upgrade_path_info_ = upgrade_path_info; + + _impl_.upgrade_path_info_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_client_introduction() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || client_introduction_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.client_introduction_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction() const { - return _internal_has_client_introduction(); -} inline void BandwidthUpgradeNegotiationFrame::clear_client_introduction() { - if (client_introduction_ != nullptr) client_introduction_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_introduction_ != nullptr) _impl_.client_introduction_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& BandwidthUpgradeNegotiationFrame::_internal_client_introduction() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* p = client_introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* p = _impl_.client_introduction_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& BandwidthUpgradeNegotiationFrame::client_introduction() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& BandwidthUpgradeNegotiationFrame::client_introduction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) return _internal_client_introduction(); } inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_client_introduction( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(client_introduction_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_introduction_); } - client_introduction_ = client_introduction; - if (client_introduction) { - _has_bits_[0] |= 0x00000002u; + _impl_.client_introduction_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::release_client_introduction() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* temp = client_introduction_; - client_introduction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::release_client_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* released = _impl_.client_introduction_; + _impl_.client_introduction_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* temp = client_introduction_; - client_introduction_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* temp = _impl_.client_introduction_; + _impl_.client_introduction_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction() { - _has_bits_[0] |= 0x00000002u; - if (client_introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(GetArenaForAllocation()); - client_introduction_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_introduction_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(GetArena()); + _impl_.client_introduction_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction*>(p); } - return client_introduction_; + return _impl_.client_introduction_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::mutable_client_introduction() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::mutable_client_introduction() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* _msg = _internal_mutable_client_introduction(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) return _msg; } -inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete client_introduction_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_introduction_); } - if (client_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>::GetOwningArena(client_introduction); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - client_introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, client_introduction, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - client_introduction_ = client_introduction; + + _impl_.client_introduction_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_client_introduction_ack() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || client_introduction_ack_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction_ack() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.client_introduction_ack_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction_ack() const { - return _internal_has_client_introduction_ack(); -} inline void BandwidthUpgradeNegotiationFrame::clear_client_introduction_ack() { - if (client_introduction_ack_ != nullptr) client_introduction_ack_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_introduction_ack_ != nullptr) _impl_.client_introduction_ack_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& BandwidthUpgradeNegotiationFrame::_internal_client_introduction_ack() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* p = client_introduction_ack_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* p = _impl_.client_introduction_ack_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& BandwidthUpgradeNegotiationFrame::client_introduction_ack() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& BandwidthUpgradeNegotiationFrame::client_introduction_ack() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) return _internal_client_introduction_ack(); } inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_client_introduction_ack( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(client_introduction_ack_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_introduction_ack_); } - client_introduction_ack_ = client_introduction_ack; - if (client_introduction_ack) { - _has_bits_[0] |= 0x00000004u; + _impl_.client_introduction_ack_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::release_client_introduction_ack() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* temp = client_introduction_ack_; - client_introduction_ack_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::release_client_introduction_ack() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* released = _impl_.client_introduction_ack_; + _impl_.client_introduction_ack_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction_ack() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction_ack() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* temp = client_introduction_ack_; - client_introduction_ack_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* temp = _impl_.client_introduction_ack_; + _impl_.client_introduction_ack_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction_ack() { - _has_bits_[0] |= 0x00000004u; - if (client_introduction_ack_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(GetArenaForAllocation()); - client_introduction_ack_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction_ack() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_introduction_ack_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(GetArena()); + _impl_.client_introduction_ack_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck*>(p); } - return client_introduction_ack_; + return _impl_.client_introduction_ack_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::mutable_client_introduction_ack() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::mutable_client_introduction_ack() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _msg = _internal_mutable_client_introduction_ack(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) return _msg; } -inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete client_introduction_ack_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_introduction_ack_); } - if (client_introduction_ack) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>::GetOwningArena(client_introduction_ack); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - client_introduction_ack = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, client_introduction_ack, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - client_introduction_ack_ = client_introduction_ack; + + _impl_.client_introduction_ack_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) } // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_safe_to_close_prior_channel() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || safe_to_close_prior_channel_ != nullptr); +inline bool BandwidthUpgradeNegotiationFrame::has_safe_to_close_prior_channel() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.safe_to_close_prior_channel_ != nullptr); return value; } -inline bool BandwidthUpgradeNegotiationFrame::has_safe_to_close_prior_channel() const { - return _internal_has_safe_to_close_prior_channel(); -} inline void BandwidthUpgradeNegotiationFrame::clear_safe_to_close_prior_channel() { - if (safe_to_close_prior_channel_ != nullptr) safe_to_close_prior_channel_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.safe_to_close_prior_channel_ != nullptr) _impl_.safe_to_close_prior_channel_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& BandwidthUpgradeNegotiationFrame::_internal_safe_to_close_prior_channel() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* p = safe_to_close_prior_channel_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* p = _impl_.safe_to_close_prior_channel_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); } -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& BandwidthUpgradeNegotiationFrame::safe_to_close_prior_channel() const { +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& BandwidthUpgradeNegotiationFrame::safe_to_close_prior_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel) return _internal_safe_to_close_prior_channel(); } inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_safe_to_close_prior_channel( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(safe_to_close_prior_channel_); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.safe_to_close_prior_channel_); } - safe_to_close_prior_channel_ = safe_to_close_prior_channel; - if (safe_to_close_prior_channel) { - _has_bits_[0] |= 0x00000008u; + _impl_.safe_to_close_prior_channel_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel) } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::release_safe_to_close_prior_channel() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* temp = safe_to_close_prior_channel_; - safe_to_close_prior_channel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::release_safe_to_close_prior_channel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* released = _impl_.safe_to_close_prior_channel_; + _impl_.safe_to_close_prior_channel_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_safe_to_close_prior_channel() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE BandwidthUpgradeNegotiationFrame::unsafe_arena_release_safe_to_close_prior_channel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* temp = safe_to_close_prior_channel_; - safe_to_close_prior_channel_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* temp = _impl_.safe_to_close_prior_channel_; + _impl_.safe_to_close_prior_channel_ = nullptr; return temp; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::_internal_mutable_safe_to_close_prior_channel() { - _has_bits_[0] |= 0x00000008u; - if (safe_to_close_prior_channel_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(GetArenaForAllocation()); - safe_to_close_prior_channel_ = p; +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::_internal_mutable_safe_to_close_prior_channel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.safe_to_close_prior_channel_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(GetArena()); + _impl_.safe_to_close_prior_channel_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel*>(p); } - return safe_to_close_prior_channel_; + return _impl_.safe_to_close_prior_channel_; } -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::mutable_safe_to_close_prior_channel() { +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NONNULL BandwidthUpgradeNegotiationFrame::mutable_safe_to_close_prior_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _msg = _internal_mutable_safe_to_close_prior_channel(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel) return _msg; } -inline void BandwidthUpgradeNegotiationFrame::set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void BandwidthUpgradeNegotiationFrame::set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete safe_to_close_prior_channel_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.safe_to_close_prior_channel_); } - if (safe_to_close_prior_channel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>::GetOwningArena(safe_to_close_prior_channel); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - safe_to_close_prior_channel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, safe_to_close_prior_channel, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - safe_to_close_prior_channel_ = safe_to_close_prior_channel; + + _impl_.safe_to_close_prior_channel_ = reinterpret_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel) } @@ -16287,267 +17976,283 @@ inline void BandwidthUpgradeNegotiationFrame::set_allocated_safe_to_close_prior_ // repeated .location.nearby.connections.BandwidthUpgradeRetryFrame.Medium supported_medium = 1; inline int BandwidthUpgradeRetryFrame::_internal_supported_medium_size() const { - return supported_medium_.size(); + return _internal_supported_medium().size(); } inline int BandwidthUpgradeRetryFrame::supported_medium_size() const { return _internal_supported_medium_size(); } inline void BandwidthUpgradeRetryFrame::clear_supported_medium() { - supported_medium_.Clear(); -} -inline ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::_internal_supported_medium(int index) const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium >(supported_medium_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_medium_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::supported_medium(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeRetryFrame.supported_medium) - return _internal_supported_medium(index); + return static_cast<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium>(_internal_supported_medium().Get(index)); } inline void BandwidthUpgradeRetryFrame::set_supported_medium(int index, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_IsValid(value)); - supported_medium_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_internal_data_)); + _internal_mutable_supported_medium()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeRetryFrame.supported_medium) } -inline void BandwidthUpgradeRetryFrame::_internal_add_supported_medium(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_IsValid(value)); - supported_medium_.Add(value); -} inline void BandwidthUpgradeRetryFrame::add_supported_medium(::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium value) { - _internal_add_supported_medium(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_supported_medium()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeRetryFrame.supported_medium) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -BandwidthUpgradeRetryFrame::supported_medium() const { +inline const ::google::protobuf::RepeatedField& BandwidthUpgradeRetryFrame::supported_medium() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeRetryFrame.supported_medium) - return supported_medium_; + return _internal_supported_medium(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -BandwidthUpgradeRetryFrame::_internal_mutable_supported_medium() { - return &supported_medium_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -BandwidthUpgradeRetryFrame::mutable_supported_medium() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL BandwidthUpgradeRetryFrame::mutable_supported_medium() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeRetryFrame.supported_medium) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_supported_medium(); } +inline const ::google::protobuf::RepeatedField& BandwidthUpgradeRetryFrame::_internal_supported_medium() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supported_medium_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +BandwidthUpgradeRetryFrame::_internal_mutable_supported_medium() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.supported_medium_; +} // optional bool is_request = 2; -inline bool BandwidthUpgradeRetryFrame::_internal_has_is_request() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool BandwidthUpgradeRetryFrame::has_is_request() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool BandwidthUpgradeRetryFrame::has_is_request() const { - return _internal_has_is_request(); -} inline void BandwidthUpgradeRetryFrame::clear_is_request() { - is_request_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool BandwidthUpgradeRetryFrame::_internal_is_request() const { - return is_request_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_request_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool BandwidthUpgradeRetryFrame::is_request() const { // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeRetryFrame.is_request) return _internal_is_request(); } -inline void BandwidthUpgradeRetryFrame::_internal_set_is_request(bool value) { - _has_bits_[0] |= 0x00000001u; - is_request_ = value; -} inline void BandwidthUpgradeRetryFrame::set_is_request(bool value) { _internal_set_is_request(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeRetryFrame.is_request) } +inline bool BandwidthUpgradeRetryFrame::_internal_is_request() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_request_; +} +inline void BandwidthUpgradeRetryFrame::_internal_set_is_request(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_request_ = value; +} // ------------------------------------------------------------------- // KeepAliveFrame // optional bool ack = 1; -inline bool KeepAliveFrame::_internal_has_ack() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool KeepAliveFrame::has_ack() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool KeepAliveFrame::has_ack() const { - return _internal_has_ack(); -} inline void KeepAliveFrame::clear_ack() { - ack_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool KeepAliveFrame::_internal_ack() const { - return ack_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ack_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool KeepAliveFrame::ack() const { // @@protoc_insertion_point(field_get:location.nearby.connections.KeepAliveFrame.ack) return _internal_ack(); } -inline void KeepAliveFrame::_internal_set_ack(bool value) { - _has_bits_[0] |= 0x00000001u; - ack_ = value; -} inline void KeepAliveFrame::set_ack(bool value) { _internal_set_ack(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.KeepAliveFrame.ack) } +inline bool KeepAliveFrame::_internal_ack() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ack_; +} +inline void KeepAliveFrame::_internal_set_ack(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ack_ = value; +} // optional uint32 seq_num = 2; -inline bool KeepAliveFrame::_internal_has_seq_num() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool KeepAliveFrame::has_seq_num() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool KeepAliveFrame::has_seq_num() const { - return _internal_has_seq_num(); -} inline void KeepAliveFrame::clear_seq_num() { - seq_num_ = 0u; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.seq_num_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline uint32_t KeepAliveFrame::_internal_seq_num() const { - return seq_num_; -} -inline uint32_t KeepAliveFrame::seq_num() const { +inline ::uint32_t KeepAliveFrame::seq_num() const { // @@protoc_insertion_point(field_get:location.nearby.connections.KeepAliveFrame.seq_num) return _internal_seq_num(); } -inline void KeepAliveFrame::_internal_set_seq_num(uint32_t value) { - _has_bits_[0] |= 0x00000002u; - seq_num_ = value; -} -inline void KeepAliveFrame::set_seq_num(uint32_t value) { +inline void KeepAliveFrame::set_seq_num(::uint32_t value) { _internal_set_seq_num(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.KeepAliveFrame.seq_num) } +inline ::uint32_t KeepAliveFrame::_internal_seq_num() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.seq_num_; +} +inline void KeepAliveFrame::_internal_set_seq_num(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.seq_num_ = value; +} // ------------------------------------------------------------------- // DisconnectionFrame // optional bool request_safe_to_disconnect = 1; -inline bool DisconnectionFrame::_internal_has_request_safe_to_disconnect() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool DisconnectionFrame::has_request_safe_to_disconnect() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool DisconnectionFrame::has_request_safe_to_disconnect() const { - return _internal_has_request_safe_to_disconnect(); -} inline void DisconnectionFrame::clear_request_safe_to_disconnect() { - request_safe_to_disconnect_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool DisconnectionFrame::_internal_request_safe_to_disconnect() const { - return request_safe_to_disconnect_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.request_safe_to_disconnect_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool DisconnectionFrame::request_safe_to_disconnect() const { // @@protoc_insertion_point(field_get:location.nearby.connections.DisconnectionFrame.request_safe_to_disconnect) return _internal_request_safe_to_disconnect(); } -inline void DisconnectionFrame::_internal_set_request_safe_to_disconnect(bool value) { - _has_bits_[0] |= 0x00000001u; - request_safe_to_disconnect_ = value; -} inline void DisconnectionFrame::set_request_safe_to_disconnect(bool value) { _internal_set_request_safe_to_disconnect(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.DisconnectionFrame.request_safe_to_disconnect) } +inline bool DisconnectionFrame::_internal_request_safe_to_disconnect() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.request_safe_to_disconnect_; +} +inline void DisconnectionFrame::_internal_set_request_safe_to_disconnect(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.request_safe_to_disconnect_ = value; +} // optional bool ack_safe_to_disconnect = 2; -inline bool DisconnectionFrame::_internal_has_ack_safe_to_disconnect() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool DisconnectionFrame::has_ack_safe_to_disconnect() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool DisconnectionFrame::has_ack_safe_to_disconnect() const { - return _internal_has_ack_safe_to_disconnect(); -} inline void DisconnectionFrame::clear_ack_safe_to_disconnect() { - ack_safe_to_disconnect_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool DisconnectionFrame::_internal_ack_safe_to_disconnect() const { - return ack_safe_to_disconnect_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ack_safe_to_disconnect_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool DisconnectionFrame::ack_safe_to_disconnect() const { // @@protoc_insertion_point(field_get:location.nearby.connections.DisconnectionFrame.ack_safe_to_disconnect) return _internal_ack_safe_to_disconnect(); } -inline void DisconnectionFrame::_internal_set_ack_safe_to_disconnect(bool value) { - _has_bits_[0] |= 0x00000002u; - ack_safe_to_disconnect_ = value; -} inline void DisconnectionFrame::set_ack_safe_to_disconnect(bool value) { _internal_set_ack_safe_to_disconnect(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.DisconnectionFrame.ack_safe_to_disconnect) } +inline bool DisconnectionFrame::_internal_ack_safe_to_disconnect() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ack_safe_to_disconnect_; +} +inline void DisconnectionFrame::_internal_set_ack_safe_to_disconnect(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ack_safe_to_disconnect_ = value; +} // ------------------------------------------------------------------- // PairedKeyEncryptionFrame // optional bytes signed_data = 1; -inline bool PairedKeyEncryptionFrame::_internal_has_signed_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PairedKeyEncryptionFrame::has_signed_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PairedKeyEncryptionFrame::has_signed_data() const { - return _internal_has_signed_data(); -} inline void PairedKeyEncryptionFrame::clear_signed_data() { - signed_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signed_data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& PairedKeyEncryptionFrame::signed_data() const { +inline const ::std::string& PairedKeyEncryptionFrame::signed_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) return _internal_signed_data(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PairedKeyEncryptionFrame::set_signed_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - signed_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PairedKeyEncryptionFrame::set_signed_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.signed_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) } -inline std::string* PairedKeyEncryptionFrame::mutable_signed_data() { - std::string* _s = _internal_mutable_signed_data(); +inline ::std::string* PROTOBUF_NONNULL PairedKeyEncryptionFrame::mutable_signed_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_signed_data(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) return _s; } -inline const std::string& PairedKeyEncryptionFrame::_internal_signed_data() const { - return signed_data_.Get(); +inline const ::std::string& PairedKeyEncryptionFrame::_internal_signed_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signed_data_.Get(); } -inline void PairedKeyEncryptionFrame::_internal_set_signed_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - signed_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PairedKeyEncryptionFrame::_internal_set_signed_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signed_data_.Set(value, GetArena()); } -inline std::string* PairedKeyEncryptionFrame::_internal_mutable_signed_data() { - _has_bits_[0] |= 0x00000001u; - return signed_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PairedKeyEncryptionFrame::_internal_mutable_signed_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.signed_data_.Mutable( GetArena()); } -inline std::string* PairedKeyEncryptionFrame::release_signed_data() { +inline ::std::string* PROTOBUF_NULLABLE PairedKeyEncryptionFrame::release_signed_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) - if (!_internal_has_signed_data()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = signed_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signed_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.signed_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signed_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PairedKeyEncryptionFrame::set_allocated_signed_data(std::string* signed_data) { - if (signed_data != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PairedKeyEncryptionFrame::set_allocated_signed_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - signed_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signed_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signed_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.signed_data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signed_data_.IsDefault()) { + _impl_.signed_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) } @@ -16556,71 +18261,71 @@ inline void PairedKeyEncryptionFrame::set_allocated_signed_data(std::string* sig // AuthenticationMessageFrame // optional bytes auth_message = 1; -inline bool AuthenticationMessageFrame::_internal_has_auth_message() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AuthenticationMessageFrame::has_auth_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AuthenticationMessageFrame::has_auth_message() const { - return _internal_has_auth_message(); -} inline void AuthenticationMessageFrame::clear_auth_message() { - auth_message_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auth_message_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& AuthenticationMessageFrame::auth_message() const { +inline const ::std::string& AuthenticationMessageFrame::auth_message() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.AuthenticationMessageFrame.auth_message) return _internal_auth_message(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AuthenticationMessageFrame::set_auth_message(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - auth_message_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AuthenticationMessageFrame::set_auth_message(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.auth_message_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.AuthenticationMessageFrame.auth_message) } -inline std::string* AuthenticationMessageFrame::mutable_auth_message() { - std::string* _s = _internal_mutable_auth_message(); +inline ::std::string* PROTOBUF_NONNULL AuthenticationMessageFrame::mutable_auth_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_auth_message(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.AuthenticationMessageFrame.auth_message) return _s; } -inline const std::string& AuthenticationMessageFrame::_internal_auth_message() const { - return auth_message_.Get(); +inline const ::std::string& AuthenticationMessageFrame::_internal_auth_message() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.auth_message_.Get(); } -inline void AuthenticationMessageFrame::_internal_set_auth_message(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - auth_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AuthenticationMessageFrame::_internal_set_auth_message(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auth_message_.Set(value, GetArena()); } -inline std::string* AuthenticationMessageFrame::_internal_mutable_auth_message() { - _has_bits_[0] |= 0x00000001u; - return auth_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AuthenticationMessageFrame::_internal_mutable_auth_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.auth_message_.Mutable( GetArena()); } -inline std::string* AuthenticationMessageFrame::release_auth_message() { +inline ::std::string* PROTOBUF_NULLABLE AuthenticationMessageFrame::release_auth_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.AuthenticationMessageFrame.auth_message) - if (!_internal_has_auth_message()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = auth_message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (auth_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.auth_message_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.auth_message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AuthenticationMessageFrame::set_allocated_auth_message(std::string* auth_message) { - if (auth_message != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void AuthenticationMessageFrame::set_allocated_auth_message(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - auth_message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), auth_message, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (auth_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.auth_message_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.auth_message_.IsDefault()) { + _impl_.auth_message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.AuthenticationMessageFrame.auth_message) } @@ -16629,318 +18334,328 @@ inline void AuthenticationMessageFrame::set_allocated_auth_message(std::string* // AuthenticationResultFrame // optional int32 result = 1; -inline bool AuthenticationResultFrame::_internal_has_result() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AuthenticationResultFrame::has_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AuthenticationResultFrame::has_result() const { - return _internal_has_result(); -} inline void AuthenticationResultFrame::clear_result() { - result_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t AuthenticationResultFrame::_internal_result() const { - return result_; -} -inline int32_t AuthenticationResultFrame::result() const { +inline ::int32_t AuthenticationResultFrame::result() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AuthenticationResultFrame.result) return _internal_result(); } -inline void AuthenticationResultFrame::_internal_set_result(int32_t value) { - _has_bits_[0] |= 0x00000001u; - result_ = value; -} -inline void AuthenticationResultFrame::set_result(int32_t value) { +inline void AuthenticationResultFrame::set_result(::int32_t value) { _internal_set_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.AuthenticationResultFrame.result) } +inline ::int32_t AuthenticationResultFrame::_internal_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.result_; +} +inline void AuthenticationResultFrame::_internal_set_result(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = value; +} // ------------------------------------------------------------------- // AutoResumeFrame // optional .location.nearby.connections.AutoResumeFrame.EventType event_type = 1; -inline bool AutoResumeFrame::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool AutoResumeFrame::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool AutoResumeFrame::has_event_type() const { - return _internal_has_event_type(); -} inline void AutoResumeFrame::clear_event_type() { - event_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::AutoResumeFrame_EventType AutoResumeFrame::_internal_event_type() const { - return static_cast< ::location::nearby::connections::AutoResumeFrame_EventType >(event_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::connections::AutoResumeFrame_EventType AutoResumeFrame::event_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoResumeFrame.event_type) return _internal_event_type(); } -inline void AutoResumeFrame::_internal_set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value) { - assert(::location::nearby::connections::AutoResumeFrame_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - event_type_ = value; -} inline void AutoResumeFrame::set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value) { _internal_set_event_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoResumeFrame.event_type) } +inline ::location::nearby::connections::AutoResumeFrame_EventType AutoResumeFrame::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::AutoResumeFrame_EventType>(_impl_.event_type_); +} +inline void AutoResumeFrame::_internal_set_event_type(::location::nearby::connections::AutoResumeFrame_EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::AutoResumeFrame_EventType_internal_data_)); + _impl_.event_type_ = value; +} // optional int64 pending_payload_id = 2; -inline bool AutoResumeFrame::_internal_has_pending_payload_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AutoResumeFrame::has_pending_payload_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AutoResumeFrame::has_pending_payload_id() const { - return _internal_has_pending_payload_id(); -} inline void AutoResumeFrame::clear_pending_payload_id() { - pending_payload_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pending_payload_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t AutoResumeFrame::_internal_pending_payload_id() const { - return pending_payload_id_; -} -inline int64_t AutoResumeFrame::pending_payload_id() const { +inline ::int64_t AutoResumeFrame::pending_payload_id() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoResumeFrame.pending_payload_id) return _internal_pending_payload_id(); } -inline void AutoResumeFrame::_internal_set_pending_payload_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - pending_payload_id_ = value; -} -inline void AutoResumeFrame::set_pending_payload_id(int64_t value) { +inline void AutoResumeFrame::set_pending_payload_id(::int64_t value) { _internal_set_pending_payload_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoResumeFrame.pending_payload_id) } +inline ::int64_t AutoResumeFrame::_internal_pending_payload_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pending_payload_id_; +} +inline void AutoResumeFrame::_internal_set_pending_payload_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pending_payload_id_ = value; +} // optional int32 next_payload_chunk_index = 3; -inline bool AutoResumeFrame::_internal_has_next_payload_chunk_index() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool AutoResumeFrame::has_next_payload_chunk_index() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool AutoResumeFrame::has_next_payload_chunk_index() const { - return _internal_has_next_payload_chunk_index(); -} inline void AutoResumeFrame::clear_next_payload_chunk_index() { - next_payload_chunk_index_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_payload_chunk_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t AutoResumeFrame::_internal_next_payload_chunk_index() const { - return next_payload_chunk_index_; -} -inline int32_t AutoResumeFrame::next_payload_chunk_index() const { +inline ::int32_t AutoResumeFrame::next_payload_chunk_index() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoResumeFrame.next_payload_chunk_index) return _internal_next_payload_chunk_index(); } -inline void AutoResumeFrame::_internal_set_next_payload_chunk_index(int32_t value) { - _has_bits_[0] |= 0x00000004u; - next_payload_chunk_index_ = value; -} -inline void AutoResumeFrame::set_next_payload_chunk_index(int32_t value) { +inline void AutoResumeFrame::set_next_payload_chunk_index(::int32_t value) { _internal_set_next_payload_chunk_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoResumeFrame.next_payload_chunk_index) } +inline ::int32_t AutoResumeFrame::_internal_next_payload_chunk_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.next_payload_chunk_index_; +} +inline void AutoResumeFrame::_internal_set_next_payload_chunk_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_payload_chunk_index_ = value; +} // optional int32 version = 4; -inline bool AutoResumeFrame::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool AutoResumeFrame::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool AutoResumeFrame::has_version() const { - return _internal_has_version(); -} inline void AutoResumeFrame::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t AutoResumeFrame::_internal_version() const { - return version_; -} -inline int32_t AutoResumeFrame::version() const { +inline ::int32_t AutoResumeFrame::version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoResumeFrame.version) return _internal_version(); } -inline void AutoResumeFrame::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000008u; - version_ = value; -} -inline void AutoResumeFrame::set_version(int32_t value) { +inline void AutoResumeFrame::set_version(::int32_t value) { _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoResumeFrame.version) } +inline ::int32_t AutoResumeFrame::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void AutoResumeFrame::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} // ------------------------------------------------------------------- // AutoReconnectFrame // optional string endpoint_id = 1; -inline bool AutoReconnectFrame::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AutoReconnectFrame::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AutoReconnectFrame::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void AutoReconnectFrame::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& AutoReconnectFrame::endpoint_id() const { +inline const ::std::string& AutoReconnectFrame::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoReconnectFrame.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AutoReconnectFrame::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AutoReconnectFrame::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoReconnectFrame.endpoint_id) } -inline std::string* AutoReconnectFrame::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL AutoReconnectFrame::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.AutoReconnectFrame.endpoint_id) return _s; } -inline const std::string& AutoReconnectFrame::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& AutoReconnectFrame::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void AutoReconnectFrame::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AutoReconnectFrame::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* AutoReconnectFrame::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AutoReconnectFrame::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* AutoReconnectFrame::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE AutoReconnectFrame::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.AutoReconnectFrame.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AutoReconnectFrame::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void AutoReconnectFrame::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.AutoReconnectFrame.endpoint_id) } // optional .location.nearby.connections.AutoReconnectFrame.EventType event_type = 2; -inline bool AutoReconnectFrame::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool AutoReconnectFrame::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool AutoReconnectFrame::has_event_type() const { - return _internal_has_event_type(); -} inline void AutoReconnectFrame::clear_event_type() { - event_type_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::connections::AutoReconnectFrame_EventType AutoReconnectFrame::_internal_event_type() const { - return static_cast< ::location::nearby::connections::AutoReconnectFrame_EventType >(event_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::connections::AutoReconnectFrame_EventType AutoReconnectFrame::event_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoReconnectFrame.event_type) return _internal_event_type(); } -inline void AutoReconnectFrame::_internal_set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value) { - assert(::location::nearby::connections::AutoReconnectFrame_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - event_type_ = value; -} inline void AutoReconnectFrame::set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value) { _internal_set_event_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoReconnectFrame.event_type) } +inline ::location::nearby::connections::AutoReconnectFrame_EventType AutoReconnectFrame::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::AutoReconnectFrame_EventType>(_impl_.event_type_); +} +inline void AutoReconnectFrame::_internal_set_event_type(::location::nearby::connections::AutoReconnectFrame_EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::AutoReconnectFrame_EventType_internal_data_)); + _impl_.event_type_ = value; +} // optional string last_endpoint_id = 3; -inline bool AutoReconnectFrame::_internal_has_last_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool AutoReconnectFrame::has_last_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool AutoReconnectFrame::has_last_endpoint_id() const { - return _internal_has_last_endpoint_id(); -} inline void AutoReconnectFrame::clear_last_endpoint_id() { - last_endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& AutoReconnectFrame::last_endpoint_id() const { +inline const ::std::string& AutoReconnectFrame::last_endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.AutoReconnectFrame.last_endpoint_id) return _internal_last_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AutoReconnectFrame::set_last_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AutoReconnectFrame::set_last_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.last_endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.AutoReconnectFrame.last_endpoint_id) } -inline std::string* AutoReconnectFrame::mutable_last_endpoint_id() { - std::string* _s = _internal_mutable_last_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL AutoReconnectFrame::mutable_last_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_last_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.AutoReconnectFrame.last_endpoint_id) return _s; } -inline const std::string& AutoReconnectFrame::_internal_last_endpoint_id() const { - return last_endpoint_id_.Get(); +inline const ::std::string& AutoReconnectFrame::_internal_last_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.last_endpoint_id_.Get(); } -inline void AutoReconnectFrame::_internal_set_last_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AutoReconnectFrame::_internal_set_last_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.last_endpoint_id_.Set(value, GetArena()); } -inline std::string* AutoReconnectFrame::_internal_mutable_last_endpoint_id() { - _has_bits_[0] |= 0x00000002u; - return last_endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AutoReconnectFrame::_internal_mutable_last_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.last_endpoint_id_.Mutable( GetArena()); } -inline std::string* AutoReconnectFrame::release_last_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE AutoReconnectFrame::release_last_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.AutoReconnectFrame.last_endpoint_id) - if (!_internal_has_last_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = last_endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.last_endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.last_endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AutoReconnectFrame::set_allocated_last_endpoint_id(std::string* last_endpoint_id) { - if (last_endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void AutoReconnectFrame::set_allocated_last_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - last_endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.last_endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.last_endpoint_id_.IsDefault()) { + _impl_.last_endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.AutoReconnectFrame.last_endpoint_id) } @@ -16949,839 +18664,908 @@ inline void AutoReconnectFrame::set_allocated_last_endpoint_id(std::string* last // MediumMetadata // optional bool supports_5_ghz = 1; -inline bool MediumMetadata::_internal_has_supports_5_ghz() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool MediumMetadata::has_supports_5_ghz() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool MediumMetadata::has_supports_5_ghz() const { - return _internal_has_supports_5_ghz(); -} inline void MediumMetadata::clear_supports_5_ghz() { - supports_5_ghz_ = false; - _has_bits_[0] &= ~0x00000100u; -} -inline bool MediumMetadata::_internal_supports_5_ghz() const { - return supports_5_ghz_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_5_ghz_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool MediumMetadata::supports_5_ghz() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.supports_5_ghz) return _internal_supports_5_ghz(); } -inline void MediumMetadata::_internal_set_supports_5_ghz(bool value) { - _has_bits_[0] |= 0x00000100u; - supports_5_ghz_ = value; -} inline void MediumMetadata::set_supports_5_ghz(bool value) { _internal_set_supports_5_ghz(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.supports_5_ghz) } +inline bool MediumMetadata::_internal_supports_5_ghz() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_5_ghz_; +} +inline void MediumMetadata::_internal_set_supports_5_ghz(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_5_ghz_ = value; +} // optional string bssid = 2; -inline bool MediumMetadata::_internal_has_bssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool MediumMetadata::has_bssid() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool MediumMetadata::has_bssid() const { - return _internal_has_bssid(); -} inline void MediumMetadata::clear_bssid() { - bssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bssid_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& MediumMetadata::bssid() const { +inline const ::std::string& MediumMetadata::bssid() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.bssid) return _internal_bssid(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MediumMetadata::set_bssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MediumMetadata::set_bssid(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.bssid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.bssid) } -inline std::string* MediumMetadata::mutable_bssid() { - std::string* _s = _internal_mutable_bssid(); +inline ::std::string* PROTOBUF_NONNULL MediumMetadata::mutable_bssid() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_bssid(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.bssid) return _s; } -inline const std::string& MediumMetadata::_internal_bssid() const { - return bssid_.Get(); +inline const ::std::string& MediumMetadata::_internal_bssid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bssid_.Get(); } -inline void MediumMetadata::_internal_set_bssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MediumMetadata::_internal_set_bssid(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bssid_.Set(value, GetArena()); } -inline std::string* MediumMetadata::_internal_mutable_bssid() { - _has_bits_[0] |= 0x00000001u; - return bssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_bssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bssid_.Mutable( GetArena()); } -inline std::string* MediumMetadata::release_bssid() { +inline ::std::string* PROTOBUF_NULLABLE MediumMetadata::release_bssid() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.bssid) - if (!_internal_has_bssid()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = bssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.bssid_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MediumMetadata::set_allocated_bssid(std::string* bssid) { - if (bssid != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void MediumMetadata::set_allocated_bssid(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - bssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.bssid_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bssid_.IsDefault()) { + _impl_.bssid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.bssid) } // optional bytes ip_address = 3; -inline bool MediumMetadata::_internal_has_ip_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool MediumMetadata::has_ip_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool MediumMetadata::has_ip_address() const { - return _internal_has_ip_address(); -} inline void MediumMetadata::clear_ip_address() { - ip_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& MediumMetadata::ip_address() const { +inline const ::std::string& MediumMetadata::ip_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.ip_address) return _internal_ip_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MediumMetadata::set_ip_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MediumMetadata::set_ip_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.ip_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.ip_address) } -inline std::string* MediumMetadata::mutable_ip_address() { - std::string* _s = _internal_mutable_ip_address(); +inline ::std::string* PROTOBUF_NONNULL MediumMetadata::mutable_ip_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_ip_address(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.ip_address) return _s; } -inline const std::string& MediumMetadata::_internal_ip_address() const { - return ip_address_.Get(); +inline const ::std::string& MediumMetadata::_internal_ip_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ip_address_.Get(); } -inline void MediumMetadata::_internal_set_ip_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MediumMetadata::_internal_set_ip_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ip_address_.Set(value, GetArena()); } -inline std::string* MediumMetadata::_internal_mutable_ip_address() { - _has_bits_[0] |= 0x00000002u; - return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.ip_address_.Mutable( GetArena()); } -inline std::string* MediumMetadata::release_ip_address() { +inline ::std::string* PROTOBUF_NULLABLE MediumMetadata::release_ip_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.ip_address) - if (!_internal_has_ip_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.ip_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MediumMetadata::set_allocated_ip_address(std::string* ip_address) { - if (ip_address != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void MediumMetadata::set_allocated_ip_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.ip_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ip_address_.IsDefault()) { + _impl_.ip_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.ip_address) } // optional bool supports_6_ghz = 4; -inline bool MediumMetadata::_internal_has_supports_6_ghz() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool MediumMetadata::has_supports_6_ghz() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool MediumMetadata::has_supports_6_ghz() const { - return _internal_has_supports_6_ghz(); -} inline void MediumMetadata::clear_supports_6_ghz() { - supports_6_ghz_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool MediumMetadata::_internal_supports_6_ghz() const { - return supports_6_ghz_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_6_ghz_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline bool MediumMetadata::supports_6_ghz() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.supports_6_ghz) return _internal_supports_6_ghz(); } -inline void MediumMetadata::_internal_set_supports_6_ghz(bool value) { - _has_bits_[0] |= 0x00000200u; - supports_6_ghz_ = value; -} inline void MediumMetadata::set_supports_6_ghz(bool value) { _internal_set_supports_6_ghz(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.supports_6_ghz) } +inline bool MediumMetadata::_internal_supports_6_ghz() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_6_ghz_; +} +inline void MediumMetadata::_internal_set_supports_6_ghz(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_6_ghz_ = value; +} // optional bool mobile_radio = 5; -inline bool MediumMetadata::_internal_has_mobile_radio() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool MediumMetadata::has_mobile_radio() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool MediumMetadata::has_mobile_radio() const { - return _internal_has_mobile_radio(); -} inline void MediumMetadata::clear_mobile_radio() { - mobile_radio_ = false; - _has_bits_[0] &= ~0x00000400u; -} -inline bool MediumMetadata::_internal_mobile_radio() const { - return mobile_radio_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_radio_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline bool MediumMetadata::mobile_radio() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.mobile_radio) return _internal_mobile_radio(); } -inline void MediumMetadata::_internal_set_mobile_radio(bool value) { - _has_bits_[0] |= 0x00000400u; - mobile_radio_ = value; -} inline void MediumMetadata::set_mobile_radio(bool value) { _internal_set_mobile_radio(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.mobile_radio) } +inline bool MediumMetadata::_internal_mobile_radio() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mobile_radio_; +} +inline void MediumMetadata::_internal_set_mobile_radio(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_radio_ = value; +} // optional int32 ap_frequency = 6 [default = -1]; -inline bool MediumMetadata::_internal_has_ap_frequency() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool MediumMetadata::has_ap_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool MediumMetadata::has_ap_frequency() const { - return _internal_has_ap_frequency(); -} inline void MediumMetadata::clear_ap_frequency() { - ap_frequency_ = -1; - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ap_frequency_ = -1; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } -inline int32_t MediumMetadata::_internal_ap_frequency() const { - return ap_frequency_; -} -inline int32_t MediumMetadata::ap_frequency() const { +inline ::int32_t MediumMetadata::ap_frequency() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.ap_frequency) return _internal_ap_frequency(); } -inline void MediumMetadata::_internal_set_ap_frequency(int32_t value) { - _has_bits_[0] |= 0x00000800u; - ap_frequency_ = value; -} -inline void MediumMetadata::set_ap_frequency(int32_t value) { +inline void MediumMetadata::set_ap_frequency(::int32_t value) { _internal_set_ap_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.ap_frequency) } +inline ::int32_t MediumMetadata::_internal_ap_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ap_frequency_; +} +inline void MediumMetadata::_internal_set_ap_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ap_frequency_ = value; +} // optional .location.nearby.connections.AvailableChannels available_channels = 7; -inline bool MediumMetadata::_internal_has_available_channels() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || available_channels_ != nullptr); +inline bool MediumMetadata::has_available_channels() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.available_channels_ != nullptr); return value; } -inline bool MediumMetadata::has_available_channels() const { - return _internal_has_available_channels(); -} inline void MediumMetadata::clear_available_channels() { - if (available_channels_ != nullptr) available_channels_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.available_channels_ != nullptr) _impl_.available_channels_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::connections::AvailableChannels& MediumMetadata::_internal_available_channels() const { - const ::location::nearby::connections::AvailableChannels* p = available_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AvailableChannels_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::AvailableChannels* p = _impl_.available_channels_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_AvailableChannels_default_instance_); } -inline const ::location::nearby::connections::AvailableChannels& MediumMetadata::available_channels() const { +inline const ::location::nearby::connections::AvailableChannels& MediumMetadata::available_channels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.available_channels) return _internal_available_channels(); } inline void MediumMetadata::unsafe_arena_set_allocated_available_channels( - ::location::nearby::connections::AvailableChannels* available_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(available_channels_); + ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.available_channels_); } - available_channels_ = available_channels; - if (available_channels) { - _has_bits_[0] |= 0x00000004u; + _impl_.available_channels_ = reinterpret_cast<::location::nearby::connections::AvailableChannels*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.available_channels) } -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::release_available_channels() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::AvailableChannels* temp = available_channels_; - available_channels_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE MediumMetadata::release_available_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::AvailableChannels* released = _impl_.available_channels_; + _impl_.available_channels_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::unsafe_arena_release_available_channels() { +inline ::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_available_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.available_channels) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::AvailableChannels* temp = available_channels_; - available_channels_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::connections::AvailableChannels* temp = _impl_.available_channels_; + _impl_.available_channels_ = nullptr; return temp; } -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::_internal_mutable_available_channels() { - _has_bits_[0] |= 0x00000004u; - if (available_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AvailableChannels>(GetArenaForAllocation()); - available_channels_ = p; +inline ::location::nearby::connections::AvailableChannels* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_available_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.available_channels_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::AvailableChannels>(GetArena()); + _impl_.available_channels_ = reinterpret_cast<::location::nearby::connections::AvailableChannels*>(p); } - return available_channels_; + return _impl_.available_channels_; } -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::mutable_available_channels() { +inline ::location::nearby::connections::AvailableChannels* PROTOBUF_NONNULL MediumMetadata::mutable_available_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::AvailableChannels* _msg = _internal_mutable_available_channels(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.available_channels) return _msg; } -inline void MediumMetadata::set_allocated_available_channels(::location::nearby::connections::AvailableChannels* available_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_available_channels(::location::nearby::connections::AvailableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete available_channels_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.available_channels_); } - if (available_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AvailableChannels>::GetOwningArena(available_channels); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - available_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, available_channels, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - available_channels_ = available_channels; + + _impl_.available_channels_ = reinterpret_cast<::location::nearby::connections::AvailableChannels*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.available_channels) } // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; -inline bool MediumMetadata::_internal_has_wifi_direct_cli_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || wifi_direct_cli_usable_channels_ != nullptr); +inline bool MediumMetadata::has_wifi_direct_cli_usable_channels() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.wifi_direct_cli_usable_channels_ != nullptr); return value; } -inline bool MediumMetadata::has_wifi_direct_cli_usable_channels() const { - return _internal_has_wifi_direct_cli_usable_channels(); -} inline void MediumMetadata::clear_wifi_direct_cli_usable_channels() { - if (wifi_direct_cli_usable_channels_ != nullptr) wifi_direct_cli_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_direct_cli_usable_channels_ != nullptr) _impl_.wifi_direct_cli_usable_channels_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::location::nearby::connections::WifiDirectCliUsableChannels& MediumMetadata::_internal_wifi_direct_cli_usable_channels() const { - const ::location::nearby::connections::WifiDirectCliUsableChannels* p = wifi_direct_cli_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiDirectCliUsableChannels_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::WifiDirectCliUsableChannels* p = _impl_.wifi_direct_cli_usable_channels_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_WifiDirectCliUsableChannels_default_instance_); } -inline const ::location::nearby::connections::WifiDirectCliUsableChannels& MediumMetadata::wifi_direct_cli_usable_channels() const { +inline const ::location::nearby::connections::WifiDirectCliUsableChannels& MediumMetadata::wifi_direct_cli_usable_channels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) return _internal_wifi_direct_cli_usable_channels(); } inline void MediumMetadata::unsafe_arena_set_allocated_wifi_direct_cli_usable_channels( - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_direct_cli_usable_channels_); + ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_direct_cli_usable_channels_); } - wifi_direct_cli_usable_channels_ = wifi_direct_cli_usable_channels; - if (wifi_direct_cli_usable_channels) { - _has_bits_[0] |= 0x00000008u; + _impl_.wifi_direct_cli_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiDirectCliUsableChannels*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) } -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::release_wifi_direct_cli_usable_channels() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::WifiDirectCliUsableChannels* temp = wifi_direct_cli_usable_channels_; - wifi_direct_cli_usable_channels_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE MediumMetadata::release_wifi_direct_cli_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::WifiDirectCliUsableChannels* released = _impl_.wifi_direct_cli_usable_channels_; + _impl_.wifi_direct_cli_usable_channels_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::unsafe_arena_release_wifi_direct_cli_usable_channels() { +inline ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_wifi_direct_cli_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::WifiDirectCliUsableChannels* temp = wifi_direct_cli_usable_channels_; - wifi_direct_cli_usable_channels_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::connections::WifiDirectCliUsableChannels* temp = _impl_.wifi_direct_cli_usable_channels_; + _impl_.wifi_direct_cli_usable_channels_ = nullptr; return temp; } -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::_internal_mutable_wifi_direct_cli_usable_channels() { - _has_bits_[0] |= 0x00000008u; - if (wifi_direct_cli_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(GetArenaForAllocation()); - wifi_direct_cli_usable_channels_ = p; +inline ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_wifi_direct_cli_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_direct_cli_usable_channels_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::WifiDirectCliUsableChannels>(GetArena()); + _impl_.wifi_direct_cli_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiDirectCliUsableChannels*>(p); } - return wifi_direct_cli_usable_channels_; + return _impl_.wifi_direct_cli_usable_channels_; } -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::mutable_wifi_direct_cli_usable_channels() { +inline ::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NONNULL MediumMetadata::mutable_wifi_direct_cli_usable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::location::nearby::connections::WifiDirectCliUsableChannels* _msg = _internal_mutable_wifi_direct_cli_usable_channels(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) return _msg; } -inline void MediumMetadata::set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_direct_cli_usable_channels_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_direct_cli_usable_channels_); } - if (wifi_direct_cli_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiDirectCliUsableChannels>::GetOwningArena(wifi_direct_cli_usable_channels); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_direct_cli_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_direct_cli_usable_channels, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - wifi_direct_cli_usable_channels_ = wifi_direct_cli_usable_channels; + + _impl_.wifi_direct_cli_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiDirectCliUsableChannels*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) } // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; -inline bool MediumMetadata::_internal_has_wifi_lan_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || wifi_lan_usable_channels_ != nullptr); +inline bool MediumMetadata::has_wifi_lan_usable_channels() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.wifi_lan_usable_channels_ != nullptr); return value; } -inline bool MediumMetadata::has_wifi_lan_usable_channels() const { - return _internal_has_wifi_lan_usable_channels(); -} inline void MediumMetadata::clear_wifi_lan_usable_channels() { - if (wifi_lan_usable_channels_ != nullptr) wifi_lan_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_lan_usable_channels_ != nullptr) _impl_.wifi_lan_usable_channels_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::location::nearby::connections::WifiLanUsableChannels& MediumMetadata::_internal_wifi_lan_usable_channels() const { - const ::location::nearby::connections::WifiLanUsableChannels* p = wifi_lan_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiLanUsableChannels_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::WifiLanUsableChannels* p = _impl_.wifi_lan_usable_channels_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_WifiLanUsableChannels_default_instance_); } -inline const ::location::nearby::connections::WifiLanUsableChannels& MediumMetadata::wifi_lan_usable_channels() const { +inline const ::location::nearby::connections::WifiLanUsableChannels& MediumMetadata::wifi_lan_usable_channels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) return _internal_wifi_lan_usable_channels(); } inline void MediumMetadata::unsafe_arena_set_allocated_wifi_lan_usable_channels( - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_lan_usable_channels_); + ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_lan_usable_channels_); } - wifi_lan_usable_channels_ = wifi_lan_usable_channels; - if (wifi_lan_usable_channels) { - _has_bits_[0] |= 0x00000010u; + _impl_.wifi_lan_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiLanUsableChannels*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) } -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::release_wifi_lan_usable_channels() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::WifiLanUsableChannels* temp = wifi_lan_usable_channels_; - wifi_lan_usable_channels_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE MediumMetadata::release_wifi_lan_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::WifiLanUsableChannels* released = _impl_.wifi_lan_usable_channels_; + _impl_.wifi_lan_usable_channels_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::unsafe_arena_release_wifi_lan_usable_channels() { +inline ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_wifi_lan_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::WifiLanUsableChannels* temp = wifi_lan_usable_channels_; - wifi_lan_usable_channels_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::connections::WifiLanUsableChannels* temp = _impl_.wifi_lan_usable_channels_; + _impl_.wifi_lan_usable_channels_ = nullptr; return temp; } -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::_internal_mutable_wifi_lan_usable_channels() { - _has_bits_[0] |= 0x00000010u; - if (wifi_lan_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiLanUsableChannels>(GetArenaForAllocation()); - wifi_lan_usable_channels_ = p; +inline ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_wifi_lan_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_lan_usable_channels_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::WifiLanUsableChannels>(GetArena()); + _impl_.wifi_lan_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiLanUsableChannels*>(p); } - return wifi_lan_usable_channels_; + return _impl_.wifi_lan_usable_channels_; } -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::mutable_wifi_lan_usable_channels() { +inline ::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NONNULL MediumMetadata::mutable_wifi_lan_usable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::location::nearby::connections::WifiLanUsableChannels* _msg = _internal_mutable_wifi_lan_usable_channels(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) return _msg; } -inline void MediumMetadata::set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_lan_usable_channels_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_lan_usable_channels_); } - if (wifi_lan_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiLanUsableChannels>::GetOwningArena(wifi_lan_usable_channels); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_lan_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_lan_usable_channels, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - wifi_lan_usable_channels_ = wifi_lan_usable_channels; + + _impl_.wifi_lan_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiLanUsableChannels*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) } // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; -inline bool MediumMetadata::_internal_has_wifi_aware_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || wifi_aware_usable_channels_ != nullptr); +inline bool MediumMetadata::has_wifi_aware_usable_channels() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.wifi_aware_usable_channels_ != nullptr); return value; } -inline bool MediumMetadata::has_wifi_aware_usable_channels() const { - return _internal_has_wifi_aware_usable_channels(); -} inline void MediumMetadata::clear_wifi_aware_usable_channels() { - if (wifi_aware_usable_channels_ != nullptr) wifi_aware_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_aware_usable_channels_ != nullptr) _impl_.wifi_aware_usable_channels_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::location::nearby::connections::WifiAwareUsableChannels& MediumMetadata::_internal_wifi_aware_usable_channels() const { - const ::location::nearby::connections::WifiAwareUsableChannels* p = wifi_aware_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiAwareUsableChannels_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::WifiAwareUsableChannels* p = _impl_.wifi_aware_usable_channels_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_WifiAwareUsableChannels_default_instance_); } -inline const ::location::nearby::connections::WifiAwareUsableChannels& MediumMetadata::wifi_aware_usable_channels() const { +inline const ::location::nearby::connections::WifiAwareUsableChannels& MediumMetadata::wifi_aware_usable_channels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) return _internal_wifi_aware_usable_channels(); } inline void MediumMetadata::unsafe_arena_set_allocated_wifi_aware_usable_channels( - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_aware_usable_channels_); + ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_aware_usable_channels_); } - wifi_aware_usable_channels_ = wifi_aware_usable_channels; - if (wifi_aware_usable_channels) { - _has_bits_[0] |= 0x00000020u; + _impl_.wifi_aware_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiAwareUsableChannels*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) } -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::release_wifi_aware_usable_channels() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::WifiAwareUsableChannels* temp = wifi_aware_usable_channels_; - wifi_aware_usable_channels_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE MediumMetadata::release_wifi_aware_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::WifiAwareUsableChannels* released = _impl_.wifi_aware_usable_channels_; + _impl_.wifi_aware_usable_channels_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::unsafe_arena_release_wifi_aware_usable_channels() { +inline ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_wifi_aware_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::WifiAwareUsableChannels* temp = wifi_aware_usable_channels_; - wifi_aware_usable_channels_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::location::nearby::connections::WifiAwareUsableChannels* temp = _impl_.wifi_aware_usable_channels_; + _impl_.wifi_aware_usable_channels_ = nullptr; return temp; } -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::_internal_mutable_wifi_aware_usable_channels() { - _has_bits_[0] |= 0x00000020u; - if (wifi_aware_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(GetArenaForAllocation()); - wifi_aware_usable_channels_ = p; +inline ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_wifi_aware_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_aware_usable_channels_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::WifiAwareUsableChannels>(GetArena()); + _impl_.wifi_aware_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiAwareUsableChannels*>(p); } - return wifi_aware_usable_channels_; + return _impl_.wifi_aware_usable_channels_; } -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::mutable_wifi_aware_usable_channels() { +inline ::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NONNULL MediumMetadata::mutable_wifi_aware_usable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::location::nearby::connections::WifiAwareUsableChannels* _msg = _internal_mutable_wifi_aware_usable_channels(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) return _msg; } -inline void MediumMetadata::set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_aware_usable_channels_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_aware_usable_channels_); } - if (wifi_aware_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiAwareUsableChannels>::GetOwningArena(wifi_aware_usable_channels); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_aware_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_aware_usable_channels, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - wifi_aware_usable_channels_ = wifi_aware_usable_channels; + + _impl_.wifi_aware_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiAwareUsableChannels*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) } // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; -inline bool MediumMetadata::_internal_has_wifi_hotspot_sta_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || wifi_hotspot_sta_usable_channels_ != nullptr); +inline bool MediumMetadata::has_wifi_hotspot_sta_usable_channels() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.wifi_hotspot_sta_usable_channels_ != nullptr); return value; } -inline bool MediumMetadata::has_wifi_hotspot_sta_usable_channels() const { - return _internal_has_wifi_hotspot_sta_usable_channels(); -} inline void MediumMetadata::clear_wifi_hotspot_sta_usable_channels() { - if (wifi_hotspot_sta_usable_channels_ != nullptr) wifi_hotspot_sta_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_hotspot_sta_usable_channels_ != nullptr) _impl_.wifi_hotspot_sta_usable_channels_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline const ::location::nearby::connections::WifiHotspotStaUsableChannels& MediumMetadata::_internal_wifi_hotspot_sta_usable_channels() const { - const ::location::nearby::connections::WifiHotspotStaUsableChannels* p = wifi_hotspot_sta_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiHotspotStaUsableChannels_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::WifiHotspotStaUsableChannels* p = _impl_.wifi_hotspot_sta_usable_channels_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_WifiHotspotStaUsableChannels_default_instance_); } -inline const ::location::nearby::connections::WifiHotspotStaUsableChannels& MediumMetadata::wifi_hotspot_sta_usable_channels() const { +inline const ::location::nearby::connections::WifiHotspotStaUsableChannels& MediumMetadata::wifi_hotspot_sta_usable_channels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) return _internal_wifi_hotspot_sta_usable_channels(); } inline void MediumMetadata::unsafe_arena_set_allocated_wifi_hotspot_sta_usable_channels( - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_hotspot_sta_usable_channels_); + ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_hotspot_sta_usable_channels_); } - wifi_hotspot_sta_usable_channels_ = wifi_hotspot_sta_usable_channels; - if (wifi_hotspot_sta_usable_channels) { - _has_bits_[0] |= 0x00000040u; + _impl_.wifi_hotspot_sta_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiHotspotStaUsableChannels*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) } -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::release_wifi_hotspot_sta_usable_channels() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::WifiHotspotStaUsableChannels* temp = wifi_hotspot_sta_usable_channels_; - wifi_hotspot_sta_usable_channels_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE MediumMetadata::release_wifi_hotspot_sta_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::WifiHotspotStaUsableChannels* released = _impl_.wifi_hotspot_sta_usable_channels_; + _impl_.wifi_hotspot_sta_usable_channels_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::unsafe_arena_release_wifi_hotspot_sta_usable_channels() { +inline ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_wifi_hotspot_sta_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::WifiHotspotStaUsableChannels* temp = wifi_hotspot_sta_usable_channels_; - wifi_hotspot_sta_usable_channels_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::location::nearby::connections::WifiHotspotStaUsableChannels* temp = _impl_.wifi_hotspot_sta_usable_channels_; + _impl_.wifi_hotspot_sta_usable_channels_ = nullptr; return temp; } -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::_internal_mutable_wifi_hotspot_sta_usable_channels() { - _has_bits_[0] |= 0x00000040u; - if (wifi_hotspot_sta_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiHotspotStaUsableChannels>(GetArenaForAllocation()); - wifi_hotspot_sta_usable_channels_ = p; +inline ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_wifi_hotspot_sta_usable_channels() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.wifi_hotspot_sta_usable_channels_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::WifiHotspotStaUsableChannels>(GetArena()); + _impl_.wifi_hotspot_sta_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiHotspotStaUsableChannels*>(p); } - return wifi_hotspot_sta_usable_channels_; + return _impl_.wifi_hotspot_sta_usable_channels_; } -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::mutable_wifi_hotspot_sta_usable_channels() { +inline ::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NONNULL MediumMetadata::mutable_wifi_hotspot_sta_usable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::location::nearby::connections::WifiHotspotStaUsableChannels* _msg = _internal_mutable_wifi_hotspot_sta_usable_channels(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) return _msg; } -inline void MediumMetadata::set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete wifi_hotspot_sta_usable_channels_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.wifi_hotspot_sta_usable_channels_); } - if (wifi_hotspot_sta_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiHotspotStaUsableChannels>::GetOwningArena(wifi_hotspot_sta_usable_channels); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - wifi_hotspot_sta_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_hotspot_sta_usable_channels, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - wifi_hotspot_sta_usable_channels_ = wifi_hotspot_sta_usable_channels; + + _impl_.wifi_hotspot_sta_usable_channels_ = reinterpret_cast<::location::nearby::connections::WifiHotspotStaUsableChannels*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) } // optional .location.nearby.connections.MediumRole medium_role = 12; -inline bool MediumMetadata::_internal_has_medium_role() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || medium_role_ != nullptr); +inline bool MediumMetadata::has_medium_role() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + PROTOBUF_ASSUME(!value || _impl_.medium_role_ != nullptr); return value; } -inline bool MediumMetadata::has_medium_role() const { - return _internal_has_medium_role(); -} inline void MediumMetadata::clear_medium_role() { - if (medium_role_ != nullptr) medium_role_->Clear(); - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_role_ != nullptr) _impl_.medium_role_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline const ::location::nearby::connections::MediumRole& MediumMetadata::_internal_medium_role() const { - const ::location::nearby::connections::MediumRole* p = medium_role_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_MediumRole_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::connections::MediumRole* p = _impl_.medium_role_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::connections::_MediumRole_default_instance_); } -inline const ::location::nearby::connections::MediumRole& MediumMetadata::medium_role() const { +inline const ::location::nearby::connections::MediumRole& MediumMetadata::medium_role() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.medium_role) return _internal_medium_role(); } inline void MediumMetadata::unsafe_arena_set_allocated_medium_role( - ::location::nearby::connections::MediumRole* medium_role) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(medium_role_); + ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_role_); } - medium_role_ = medium_role; - if (medium_role) { - _has_bits_[0] |= 0x00000080u; + _impl_.medium_role_ = reinterpret_cast<::location::nearby::connections::MediumRole*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.medium_role) } -inline ::location::nearby::connections::MediumRole* MediumMetadata::release_medium_role() { - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::MediumRole* temp = medium_role_; - medium_role_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE MediumMetadata::release_medium_role() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::location::nearby::connections::MediumRole* released = _impl_.medium_role_; + _impl_.medium_role_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::connections::MediumRole* MediumMetadata::unsafe_arena_release_medium_role() { +inline ::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE MediumMetadata::unsafe_arena_release_medium_role() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.medium_role) - _has_bits_[0] &= ~0x00000080u; - ::location::nearby::connections::MediumRole* temp = medium_role_; - medium_role_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::location::nearby::connections::MediumRole* temp = _impl_.medium_role_; + _impl_.medium_role_ = nullptr; return temp; } -inline ::location::nearby::connections::MediumRole* MediumMetadata::_internal_mutable_medium_role() { - _has_bits_[0] |= 0x00000080u; - if (medium_role_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::MediumRole>(GetArenaForAllocation()); - medium_role_ = p; +inline ::location::nearby::connections::MediumRole* PROTOBUF_NONNULL MediumMetadata::_internal_mutable_medium_role() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.medium_role_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::connections::MediumRole>(GetArena()); + _impl_.medium_role_ = reinterpret_cast<::location::nearby::connections::MediumRole*>(p); } - return medium_role_; + return _impl_.medium_role_; } -inline ::location::nearby::connections::MediumRole* MediumMetadata::mutable_medium_role() { +inline ::location::nearby::connections::MediumRole* PROTOBUF_NONNULL MediumMetadata::mutable_medium_role() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::location::nearby::connections::MediumRole* _msg = _internal_mutable_medium_role(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.medium_role) return _msg; } -inline void MediumMetadata::set_allocated_medium_role(::location::nearby::connections::MediumRole* medium_role) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MediumMetadata::set_allocated_medium_role(::location::nearby::connections::MediumRole* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete medium_role_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.medium_role_); } - if (medium_role) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::MediumRole>::GetOwningArena(medium_role); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - medium_role = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, medium_role, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } - medium_role_ = medium_role; + + _impl_.medium_role_ = reinterpret_cast<::location::nearby::connections::MediumRole*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.medium_role) } // repeated .location.nearby.connections.MediumMetadata.WifiDirectAuthType supported_wifi_direct_auth_types = 13 [packed = true]; inline int MediumMetadata::_internal_supported_wifi_direct_auth_types_size() const { - return supported_wifi_direct_auth_types_.size(); + return _internal_supported_wifi_direct_auth_types().size(); } inline int MediumMetadata::supported_wifi_direct_auth_types_size() const { return _internal_supported_wifi_direct_auth_types_size(); } inline void MediumMetadata::clear_supported_wifi_direct_auth_types() { - supported_wifi_direct_auth_types_.Clear(); -} -inline ::location::nearby::connections::MediumMetadata_WifiDirectAuthType MediumMetadata::_internal_supported_wifi_direct_auth_types(int index) const { - return static_cast< ::location::nearby::connections::MediumMetadata_WifiDirectAuthType >(supported_wifi_direct_auth_types_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_wifi_direct_auth_types_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::MediumMetadata_WifiDirectAuthType MediumMetadata::supported_wifi_direct_auth_types(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.supported_wifi_direct_auth_types) - return _internal_supported_wifi_direct_auth_types(index); + return static_cast<::location::nearby::connections::MediumMetadata_WifiDirectAuthType>(_internal_supported_wifi_direct_auth_types().Get(index)); } inline void MediumMetadata::set_supported_wifi_direct_auth_types(int index, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType value) { - assert(::location::nearby::connections::MediumMetadata_WifiDirectAuthType_IsValid(value)); - supported_wifi_direct_auth_types_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType_internal_data_)); + _internal_mutable_supported_wifi_direct_auth_types()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.supported_wifi_direct_auth_types) } -inline void MediumMetadata::_internal_add_supported_wifi_direct_auth_types(::location::nearby::connections::MediumMetadata_WifiDirectAuthType value) { - assert(::location::nearby::connections::MediumMetadata_WifiDirectAuthType_IsValid(value)); - supported_wifi_direct_auth_types_.Add(value); -} inline void MediumMetadata::add_supported_wifi_direct_auth_types(::location::nearby::connections::MediumMetadata_WifiDirectAuthType value) { - _internal_add_supported_wifi_direct_auth_types(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::MediumMetadata_WifiDirectAuthType_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_supported_wifi_direct_auth_types()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.MediumMetadata.supported_wifi_direct_auth_types) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -MediumMetadata::supported_wifi_direct_auth_types() const { +inline const ::google::protobuf::RepeatedField& MediumMetadata::supported_wifi_direct_auth_types() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.MediumMetadata.supported_wifi_direct_auth_types) - return supported_wifi_direct_auth_types_; + return _internal_supported_wifi_direct_auth_types(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -MediumMetadata::_internal_mutable_supported_wifi_direct_auth_types() { - return &supported_wifi_direct_auth_types_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -MediumMetadata::mutable_supported_wifi_direct_auth_types() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL MediumMetadata::mutable_supported_wifi_direct_auth_types() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.MediumMetadata.supported_wifi_direct_auth_types) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_supported_wifi_direct_auth_types(); } +inline const ::google::protobuf::RepeatedField& MediumMetadata::_internal_supported_wifi_direct_auth_types() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supported_wifi_direct_auth_types_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +MediumMetadata::_internal_mutable_supported_wifi_direct_auth_types() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.supported_wifi_direct_auth_types_; +} // ------------------------------------------------------------------- @@ -17789,50 +19573,53 @@ MediumMetadata::mutable_supported_wifi_direct_auth_types() { // repeated int32 channels = 1 [packed = true]; inline int AvailableChannels::_internal_channels_size() const { - return channels_.size(); + return _internal_channels().size(); } inline int AvailableChannels::channels_size() const { return _internal_channels_size(); } inline void AvailableChannels::clear_channels() { - channels_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t AvailableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t AvailableChannels::channels(int index) const { +inline ::int32_t AvailableChannels::channels(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.AvailableChannels.channels) - return _internal_channels(index); + return _internal_channels().Get(index); } -inline void AvailableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); +inline void AvailableChannels::set_channels(int index, ::int32_t value) { + _internal_mutable_channels()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.AvailableChannels.channels) } -inline void AvailableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void AvailableChannels::add_channels(int32_t value) { - _internal_add_channels(value); +inline void AvailableChannels::add_channels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_channels()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.AvailableChannels.channels) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -AvailableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -AvailableChannels::channels() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& AvailableChannels::channels() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.AvailableChannels.channels) return _internal_channels(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -AvailableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -AvailableChannels::mutable_channels() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL AvailableChannels::mutable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.AvailableChannels.channels) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +AvailableChannels::_internal_channels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channels_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +AvailableChannels::_internal_mutable_channels() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.channels_; +} // ------------------------------------------------------------------- @@ -17840,50 +19627,53 @@ AvailableChannels::mutable_channels() { // repeated int32 channels = 1 [packed = true]; inline int WifiDirectCliUsableChannels::_internal_channels_size() const { - return channels_.size(); + return _internal_channels().size(); } inline int WifiDirectCliUsableChannels::channels_size() const { return _internal_channels_size(); } inline void WifiDirectCliUsableChannels::clear_channels() { - channels_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t WifiDirectCliUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiDirectCliUsableChannels::channels(int index) const { +inline ::int32_t WifiDirectCliUsableChannels::channels(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.WifiDirectCliUsableChannels.channels) - return _internal_channels(index); + return _internal_channels().Get(index); } -inline void WifiDirectCliUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); +inline void WifiDirectCliUsableChannels::set_channels(int index, ::int32_t value) { + _internal_mutable_channels()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.WifiDirectCliUsableChannels.channels) } -inline void WifiDirectCliUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiDirectCliUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); +inline void WifiDirectCliUsableChannels::add_channels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_channels()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.WifiDirectCliUsableChannels.channels) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiDirectCliUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiDirectCliUsableChannels::channels() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& WifiDirectCliUsableChannels::channels() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.WifiDirectCliUsableChannels.channels) return _internal_channels(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiDirectCliUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiDirectCliUsableChannels::mutable_channels() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL WifiDirectCliUsableChannels::mutable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiDirectCliUsableChannels.channels) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +WifiDirectCliUsableChannels::_internal_channels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channels_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +WifiDirectCliUsableChannels::_internal_mutable_channels() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.channels_; +} // ------------------------------------------------------------------- @@ -17891,50 +19681,53 @@ WifiDirectCliUsableChannels::mutable_channels() { // repeated int32 channels = 1 [packed = true]; inline int WifiLanUsableChannels::_internal_channels_size() const { - return channels_.size(); + return _internal_channels().size(); } inline int WifiLanUsableChannels::channels_size() const { return _internal_channels_size(); } inline void WifiLanUsableChannels::clear_channels() { - channels_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t WifiLanUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiLanUsableChannels::channels(int index) const { +inline ::int32_t WifiLanUsableChannels::channels(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.WifiLanUsableChannels.channels) - return _internal_channels(index); + return _internal_channels().Get(index); } -inline void WifiLanUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); +inline void WifiLanUsableChannels::set_channels(int index, ::int32_t value) { + _internal_mutable_channels()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.WifiLanUsableChannels.channels) } -inline void WifiLanUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiLanUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); +inline void WifiLanUsableChannels::add_channels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_channels()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.WifiLanUsableChannels.channels) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiLanUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiLanUsableChannels::channels() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& WifiLanUsableChannels::channels() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.WifiLanUsableChannels.channels) return _internal_channels(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiLanUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiLanUsableChannels::mutable_channels() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL WifiLanUsableChannels::mutable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiLanUsableChannels.channels) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +WifiLanUsableChannels::_internal_channels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channels_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +WifiLanUsableChannels::_internal_mutable_channels() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.channels_; +} // ------------------------------------------------------------------- @@ -17942,50 +19735,53 @@ WifiLanUsableChannels::mutable_channels() { // repeated int32 channels = 1 [packed = true]; inline int WifiAwareUsableChannels::_internal_channels_size() const { - return channels_.size(); + return _internal_channels().size(); } inline int WifiAwareUsableChannels::channels_size() const { return _internal_channels_size(); } inline void WifiAwareUsableChannels::clear_channels() { - channels_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t WifiAwareUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiAwareUsableChannels::channels(int index) const { +inline ::int32_t WifiAwareUsableChannels::channels(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.WifiAwareUsableChannels.channels) - return _internal_channels(index); + return _internal_channels().Get(index); } -inline void WifiAwareUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); +inline void WifiAwareUsableChannels::set_channels(int index, ::int32_t value) { + _internal_mutable_channels()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.WifiAwareUsableChannels.channels) } -inline void WifiAwareUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiAwareUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); +inline void WifiAwareUsableChannels::add_channels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_channels()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.WifiAwareUsableChannels.channels) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiAwareUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiAwareUsableChannels::channels() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& WifiAwareUsableChannels::channels() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.WifiAwareUsableChannels.channels) return _internal_channels(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiAwareUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiAwareUsableChannels::mutable_channels() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL WifiAwareUsableChannels::mutable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiAwareUsableChannels.channels) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +WifiAwareUsableChannels::_internal_channels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channels_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +WifiAwareUsableChannels::_internal_mutable_channels() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.channels_; +} // ------------------------------------------------------------------- @@ -17993,380 +19789,394 @@ WifiAwareUsableChannels::mutable_channels() { // repeated int32 channels = 1 [packed = true]; inline int WifiHotspotStaUsableChannels::_internal_channels_size() const { - return channels_.size(); + return _internal_channels().size(); } inline int WifiHotspotStaUsableChannels::channels_size() const { return _internal_channels_size(); } inline void WifiHotspotStaUsableChannels::clear_channels() { - channels_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t WifiHotspotStaUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiHotspotStaUsableChannels::channels(int index) const { +inline ::int32_t WifiHotspotStaUsableChannels::channels(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.WifiHotspotStaUsableChannels.channels) - return _internal_channels(index); + return _internal_channels().Get(index); } -inline void WifiHotspotStaUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); +inline void WifiHotspotStaUsableChannels::set_channels(int index, ::int32_t value) { + _internal_mutable_channels()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.WifiHotspotStaUsableChannels.channels) } -inline void WifiHotspotStaUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiHotspotStaUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); +inline void WifiHotspotStaUsableChannels::add_channels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_channels()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.WifiHotspotStaUsableChannels.channels) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiHotspotStaUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiHotspotStaUsableChannels::channels() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& WifiHotspotStaUsableChannels::channels() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.WifiHotspotStaUsableChannels.channels) return _internal_channels(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiHotspotStaUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiHotspotStaUsableChannels::mutable_channels() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL WifiHotspotStaUsableChannels::mutable_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiHotspotStaUsableChannels.channels) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +WifiHotspotStaUsableChannels::_internal_channels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channels_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +WifiHotspotStaUsableChannels::_internal_mutable_channels() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.channels_; +} // ------------------------------------------------------------------- // MediumRole // optional bool support_wifi_direct_group_owner = 1; -inline bool MediumRole::_internal_has_support_wifi_direct_group_owner() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool MediumRole::has_support_wifi_direct_group_owner() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool MediumRole::has_support_wifi_direct_group_owner() const { - return _internal_has_support_wifi_direct_group_owner(); -} inline void MediumRole::clear_support_wifi_direct_group_owner() { - support_wifi_direct_group_owner_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool MediumRole::_internal_support_wifi_direct_group_owner() const { - return support_wifi_direct_group_owner_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_direct_group_owner_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool MediumRole::support_wifi_direct_group_owner() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_direct_group_owner) return _internal_support_wifi_direct_group_owner(); } -inline void MediumRole::_internal_set_support_wifi_direct_group_owner(bool value) { - _has_bits_[0] |= 0x00000001u; - support_wifi_direct_group_owner_ = value; -} inline void MediumRole::set_support_wifi_direct_group_owner(bool value) { _internal_set_support_wifi_direct_group_owner(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_direct_group_owner) } +inline bool MediumRole::_internal_support_wifi_direct_group_owner() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_direct_group_owner_; +} +inline void MediumRole::_internal_set_support_wifi_direct_group_owner(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_direct_group_owner_ = value; +} // optional bool support_wifi_direct_group_client = 2; -inline bool MediumRole::_internal_has_support_wifi_direct_group_client() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool MediumRole::has_support_wifi_direct_group_client() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool MediumRole::has_support_wifi_direct_group_client() const { - return _internal_has_support_wifi_direct_group_client(); -} inline void MediumRole::clear_support_wifi_direct_group_client() { - support_wifi_direct_group_client_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool MediumRole::_internal_support_wifi_direct_group_client() const { - return support_wifi_direct_group_client_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_direct_group_client_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool MediumRole::support_wifi_direct_group_client() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_direct_group_client) return _internal_support_wifi_direct_group_client(); } -inline void MediumRole::_internal_set_support_wifi_direct_group_client(bool value) { - _has_bits_[0] |= 0x00000002u; - support_wifi_direct_group_client_ = value; -} inline void MediumRole::set_support_wifi_direct_group_client(bool value) { _internal_set_support_wifi_direct_group_client(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_direct_group_client) } +inline bool MediumRole::_internal_support_wifi_direct_group_client() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_direct_group_client_; +} +inline void MediumRole::_internal_set_support_wifi_direct_group_client(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_direct_group_client_ = value; +} // optional bool support_wifi_hotspot_host = 3; -inline bool MediumRole::_internal_has_support_wifi_hotspot_host() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool MediumRole::has_support_wifi_hotspot_host() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool MediumRole::has_support_wifi_hotspot_host() const { - return _internal_has_support_wifi_hotspot_host(); -} inline void MediumRole::clear_support_wifi_hotspot_host() { - support_wifi_hotspot_host_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool MediumRole::_internal_support_wifi_hotspot_host() const { - return support_wifi_hotspot_host_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_hotspot_host_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool MediumRole::support_wifi_hotspot_host() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_hotspot_host) return _internal_support_wifi_hotspot_host(); } -inline void MediumRole::_internal_set_support_wifi_hotspot_host(bool value) { - _has_bits_[0] |= 0x00000004u; - support_wifi_hotspot_host_ = value; -} inline void MediumRole::set_support_wifi_hotspot_host(bool value) { _internal_set_support_wifi_hotspot_host(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_hotspot_host) } +inline bool MediumRole::_internal_support_wifi_hotspot_host() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_hotspot_host_; +} +inline void MediumRole::_internal_set_support_wifi_hotspot_host(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_hotspot_host_ = value; +} // optional bool support_wifi_hotspot_client = 4; -inline bool MediumRole::_internal_has_support_wifi_hotspot_client() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool MediumRole::has_support_wifi_hotspot_client() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool MediumRole::has_support_wifi_hotspot_client() const { - return _internal_has_support_wifi_hotspot_client(); -} inline void MediumRole::clear_support_wifi_hotspot_client() { - support_wifi_hotspot_client_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool MediumRole::_internal_support_wifi_hotspot_client() const { - return support_wifi_hotspot_client_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_hotspot_client_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool MediumRole::support_wifi_hotspot_client() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_hotspot_client) return _internal_support_wifi_hotspot_client(); } -inline void MediumRole::_internal_set_support_wifi_hotspot_client(bool value) { - _has_bits_[0] |= 0x00000008u; - support_wifi_hotspot_client_ = value; -} inline void MediumRole::set_support_wifi_hotspot_client(bool value) { _internal_set_support_wifi_hotspot_client(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_hotspot_client) } +inline bool MediumRole::_internal_support_wifi_hotspot_client() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_hotspot_client_; +} +inline void MediumRole::_internal_set_support_wifi_hotspot_client(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_hotspot_client_ = value; +} // optional bool support_wifi_aware_publisher = 5; -inline bool MediumRole::_internal_has_support_wifi_aware_publisher() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool MediumRole::has_support_wifi_aware_publisher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool MediumRole::has_support_wifi_aware_publisher() const { - return _internal_has_support_wifi_aware_publisher(); -} inline void MediumRole::clear_support_wifi_aware_publisher() { - support_wifi_aware_publisher_ = false; - _has_bits_[0] &= ~0x00000010u; -} -inline bool MediumRole::_internal_support_wifi_aware_publisher() const { - return support_wifi_aware_publisher_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_aware_publisher_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool MediumRole::support_wifi_aware_publisher() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_aware_publisher) return _internal_support_wifi_aware_publisher(); } -inline void MediumRole::_internal_set_support_wifi_aware_publisher(bool value) { - _has_bits_[0] |= 0x00000010u; - support_wifi_aware_publisher_ = value; -} inline void MediumRole::set_support_wifi_aware_publisher(bool value) { _internal_set_support_wifi_aware_publisher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_aware_publisher) } +inline bool MediumRole::_internal_support_wifi_aware_publisher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_aware_publisher_; +} +inline void MediumRole::_internal_set_support_wifi_aware_publisher(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_aware_publisher_ = value; +} // optional bool support_wifi_aware_subscriber = 6; -inline bool MediumRole::_internal_has_support_wifi_aware_subscriber() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool MediumRole::has_support_wifi_aware_subscriber() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool MediumRole::has_support_wifi_aware_subscriber() const { - return _internal_has_support_wifi_aware_subscriber(); -} inline void MediumRole::clear_support_wifi_aware_subscriber() { - support_wifi_aware_subscriber_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool MediumRole::_internal_support_wifi_aware_subscriber() const { - return support_wifi_aware_subscriber_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_aware_subscriber_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool MediumRole::support_wifi_aware_subscriber() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_wifi_aware_subscriber) return _internal_support_wifi_aware_subscriber(); } -inline void MediumRole::_internal_set_support_wifi_aware_subscriber(bool value) { - _has_bits_[0] |= 0x00000020u; - support_wifi_aware_subscriber_ = value; -} inline void MediumRole::set_support_wifi_aware_subscriber(bool value) { _internal_set_support_wifi_aware_subscriber(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_wifi_aware_subscriber) } +inline bool MediumRole::_internal_support_wifi_aware_subscriber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_wifi_aware_subscriber_; +} +inline void MediumRole::_internal_set_support_wifi_aware_subscriber(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_wifi_aware_subscriber_ = value; +} // optional bool support_awdl_publisher = 7; -inline bool MediumRole::_internal_has_support_awdl_publisher() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool MediumRole::has_support_awdl_publisher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool MediumRole::has_support_awdl_publisher() const { - return _internal_has_support_awdl_publisher(); -} inline void MediumRole::clear_support_awdl_publisher() { - support_awdl_publisher_ = false; - _has_bits_[0] &= ~0x00000040u; -} -inline bool MediumRole::_internal_support_awdl_publisher() const { - return support_awdl_publisher_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_awdl_publisher_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool MediumRole::support_awdl_publisher() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_awdl_publisher) return _internal_support_awdl_publisher(); } -inline void MediumRole::_internal_set_support_awdl_publisher(bool value) { - _has_bits_[0] |= 0x00000040u; - support_awdl_publisher_ = value; -} inline void MediumRole::set_support_awdl_publisher(bool value) { _internal_set_support_awdl_publisher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_awdl_publisher) } +inline bool MediumRole::_internal_support_awdl_publisher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_awdl_publisher_; +} +inline void MediumRole::_internal_set_support_awdl_publisher(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_awdl_publisher_ = value; +} // optional bool support_awdl_subscriber = 8; -inline bool MediumRole::_internal_has_support_awdl_subscriber() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool MediumRole::has_support_awdl_subscriber() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool MediumRole::has_support_awdl_subscriber() const { - return _internal_has_support_awdl_subscriber(); -} inline void MediumRole::clear_support_awdl_subscriber() { - support_awdl_subscriber_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool MediumRole::_internal_support_awdl_subscriber() const { - return support_awdl_subscriber_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_awdl_subscriber_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool MediumRole::support_awdl_subscriber() const { // @@protoc_insertion_point(field_get:location.nearby.connections.MediumRole.support_awdl_subscriber) return _internal_support_awdl_subscriber(); } -inline void MediumRole::_internal_set_support_awdl_subscriber(bool value) { - _has_bits_[0] |= 0x00000080u; - support_awdl_subscriber_ = value; -} inline void MediumRole::set_support_awdl_subscriber(bool value) { _internal_set_support_awdl_subscriber(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.connections.MediumRole.support_awdl_subscriber) } +inline bool MediumRole::_internal_support_awdl_subscriber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.support_awdl_subscriber_; +} +inline void MediumRole::_internal_set_support_awdl_subscriber(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.support_awdl_subscriber_ = value; +} // ------------------------------------------------------------------- // LocationHint // optional string location = 1; -inline bool LocationHint::_internal_has_location() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool LocationHint::has_location() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool LocationHint::has_location() const { - return _internal_has_location(); -} inline void LocationHint::clear_location() { - location_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.location_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& LocationHint::location() const { +inline const ::std::string& LocationHint::location() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.LocationHint.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocationHint::set_location(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LocationHint::set_location(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.location_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.LocationHint.location) } -inline std::string* LocationHint::mutable_location() { - std::string* _s = _internal_mutable_location(); +inline ::std::string* PROTOBUF_NONNULL LocationHint::mutable_location() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.LocationHint.location) return _s; } -inline const std::string& LocationHint::_internal_location() const { - return location_.Get(); +inline const ::std::string& LocationHint::_internal_location() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.location_.Get(); } -inline void LocationHint::_internal_set_location(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocationHint::_internal_set_location(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.location_.Set(value, GetArena()); } -inline std::string* LocationHint::_internal_mutable_location() { - _has_bits_[0] |= 0x00000001u; - return location_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocationHint::_internal_mutable_location() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.location_.Mutable( GetArena()); } -inline std::string* LocationHint::release_location() { +inline ::std::string* PROTOBUF_NULLABLE LocationHint::release_location() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.LocationHint.location) - if (!_internal_has_location()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = location_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (location_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.location_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.location_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LocationHint::set_allocated_location(std::string* location) { - if (location != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void LocationHint::set_allocated_location(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - location_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), location, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (location_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.location_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.location_.IsDefault()) { + _impl_.location_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.LocationHint.location) } // optional .location.nearby.connections.LocationStandard.Format format = 2; -inline bool LocationHint::_internal_has_format() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool LocationHint::has_format() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool LocationHint::has_format() const { - return _internal_has_format(); -} inline void LocationHint::clear_format() { - format_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::LocationStandard_Format LocationHint::_internal_format() const { - return static_cast< ::location::nearby::connections::LocationStandard_Format >(format_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.format_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::connections::LocationStandard_Format LocationHint::format() const { // @@protoc_insertion_point(field_get:location.nearby.connections.LocationHint.format) return _internal_format(); } -inline void LocationHint::_internal_set_format(::location::nearby::connections::LocationStandard_Format value) { - assert(::location::nearby::connections::LocationStandard_Format_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - format_ = value; -} inline void LocationHint::set_format(::location::nearby::connections::LocationStandard_Format value) { _internal_set_format(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.connections.LocationHint.format) } +inline ::location::nearby::connections::LocationStandard_Format LocationHint::_internal_format() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::LocationStandard_Format>(_impl_.format_); +} +inline void LocationHint::_internal_set_format(::location::nearby::connections::LocationStandard_Format value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::LocationStandard_Format_internal_data_)); + _impl_.format_ = value; +} // ------------------------------------------------------------------- @@ -18377,271 +20187,277 @@ inline void LocationHint::set_format(::location::nearby::connections::LocationSt // OsInfo // optional .location.nearby.connections.OsInfo.OsType type = 1; -inline bool OsInfo::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool OsInfo::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool OsInfo::has_type() const { - return _internal_has_type(); -} inline void OsInfo::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::connections::OsInfo_OsType OsInfo::_internal_type() const { - return static_cast< ::location::nearby::connections::OsInfo_OsType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::OsInfo_OsType OsInfo::type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.OsInfo.type) return _internal_type(); } -inline void OsInfo::_internal_set_type(::location::nearby::connections::OsInfo_OsType value) { - assert(::location::nearby::connections::OsInfo_OsType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - type_ = value; -} inline void OsInfo::set_type(::location::nearby::connections::OsInfo_OsType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.connections.OsInfo.type) } +inline ::location::nearby::connections::OsInfo_OsType OsInfo::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::OsInfo_OsType>(_impl_.type_); +} +inline void OsInfo::_internal_set_type(::location::nearby::connections::OsInfo_OsType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::OsInfo_OsType_internal_data_)); + _impl_.type_ = value; +} // ------------------------------------------------------------------- // ConnectionsDevice // optional string endpoint_id = 1; -inline bool ConnectionsDevice::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsDevice::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsDevice::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void ConnectionsDevice::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsDevice::endpoint_id() const { +inline const ::std::string& ConnectionsDevice::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsDevice::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsDevice::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.endpoint_id) } -inline std::string* ConnectionsDevice::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.endpoint_id) return _s; } -inline const std::string& ConnectionsDevice::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& ConnectionsDevice::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void ConnectionsDevice::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsDevice::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* ConnectionsDevice::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* ConnectionsDevice::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsDevice::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsDevice::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsDevice::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionsDevice.endpoint_id) } // optional .location.nearby.connections.EndpointType endpoint_type = 2; -inline bool ConnectionsDevice::_internal_has_endpoint_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsDevice::has_endpoint_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsDevice::has_endpoint_type() const { - return _internal_has_endpoint_type(); -} inline void ConnectionsDevice::clear_endpoint_type() { - endpoint_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::connections::EndpointType ConnectionsDevice::_internal_endpoint_type() const { - return static_cast< ::location::nearby::connections::EndpointType >(endpoint_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::connections::EndpointType ConnectionsDevice::endpoint_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_type) return _internal_endpoint_type(); } -inline void ConnectionsDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { - assert(::location::nearby::connections::EndpointType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - endpoint_type_ = value; -} inline void ConnectionsDevice::set_endpoint_type(::location::nearby::connections::EndpointType value) { _internal_set_endpoint_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.endpoint_type) } +inline ::location::nearby::connections::EndpointType ConnectionsDevice::_internal_endpoint_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::EndpointType>(_impl_.endpoint_type_); +} +inline void ConnectionsDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::EndpointType_internal_data_)); + _impl_.endpoint_type_ = value; +} // optional bytes connectivity_info_list = 3; -inline bool ConnectionsDevice::_internal_has_connectivity_info_list() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsDevice::has_connectivity_info_list() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsDevice::has_connectivity_info_list() const { - return _internal_has_connectivity_info_list(); -} inline void ConnectionsDevice::clear_connectivity_info_list() { - connectivity_info_list_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connectivity_info_list_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsDevice::connectivity_info_list() const { +inline const ::std::string& ConnectionsDevice::connectivity_info_list() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.connectivity_info_list) return _internal_connectivity_info_list(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsDevice::set_connectivity_info_list(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - connectivity_info_list_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsDevice::set_connectivity_info_list(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.connectivity_info_list_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.connectivity_info_list) } -inline std::string* ConnectionsDevice::mutable_connectivity_info_list() { - std::string* _s = _internal_mutable_connectivity_info_list(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::mutable_connectivity_info_list() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_connectivity_info_list(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.connectivity_info_list) return _s; } -inline const std::string& ConnectionsDevice::_internal_connectivity_info_list() const { - return connectivity_info_list_.Get(); +inline const ::std::string& ConnectionsDevice::_internal_connectivity_info_list() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connectivity_info_list_.Get(); } -inline void ConnectionsDevice::_internal_set_connectivity_info_list(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsDevice::_internal_set_connectivity_info_list(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connectivity_info_list_.Set(value, GetArena()); } -inline std::string* ConnectionsDevice::_internal_mutable_connectivity_info_list() { - _has_bits_[0] |= 0x00000002u; - return connectivity_info_list_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::_internal_mutable_connectivity_info_list() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connectivity_info_list_.Mutable( GetArena()); } -inline std::string* ConnectionsDevice::release_connectivity_info_list() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsDevice::release_connectivity_info_list() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.connectivity_info_list) - if (!_internal_has_connectivity_info_list()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = connectivity_info_list_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.connectivity_info_list_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connectivity_info_list_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsDevice::set_allocated_connectivity_info_list(std::string* connectivity_info_list) { - if (connectivity_info_list != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionsDevice::set_allocated_connectivity_info_list(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - connectivity_info_list_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connectivity_info_list, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connectivity_info_list_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connectivity_info_list_.IsDefault()) { + _impl_.connectivity_info_list_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionsDevice.connectivity_info_list) } // optional bytes endpoint_info = 4; -inline bool ConnectionsDevice::_internal_has_endpoint_info() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsDevice::has_endpoint_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsDevice::has_endpoint_info() const { - return _internal_has_endpoint_info(); -} inline void ConnectionsDevice::clear_endpoint_info() { - endpoint_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ConnectionsDevice::endpoint_info() const { +inline const ::std::string& ConnectionsDevice::endpoint_info() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_info) return _internal_endpoint_info(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsDevice::set_endpoint_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - endpoint_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsDevice::set_endpoint_info(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.endpoint_info_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.endpoint_info) } -inline std::string* ConnectionsDevice::mutable_endpoint_info() { - std::string* _s = _internal_mutable_endpoint_info(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::mutable_endpoint_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_endpoint_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.endpoint_info) return _s; } -inline const std::string& ConnectionsDevice::_internal_endpoint_info() const { - return endpoint_info_.Get(); +inline const ::std::string& ConnectionsDevice::_internal_endpoint_info() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_info_.Get(); } -inline void ConnectionsDevice::_internal_set_endpoint_info(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsDevice::_internal_set_endpoint_info(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_.Set(value, GetArena()); } -inline std::string* ConnectionsDevice::_internal_mutable_endpoint_info() { - _has_bits_[0] |= 0x00000004u; - return endpoint_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsDevice::_internal_mutable_endpoint_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_info_.Mutable( GetArena()); } -inline std::string* ConnectionsDevice::release_endpoint_info() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsDevice::release_endpoint_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.endpoint_info) - if (!_internal_has_endpoint_info()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = endpoint_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.endpoint_info_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsDevice::set_allocated_endpoint_info(std::string* endpoint_info) { - if (endpoint_info != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void ConnectionsDevice::set_allocated_endpoint_info(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - endpoint_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_info_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_info_.IsDefault()) { + _impl_.endpoint_info_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionsDevice.endpoint_info) } @@ -18650,623 +20466,587 @@ inline void ConnectionsDevice::set_allocated_endpoint_info(std::string* endpoint // PresenceDevice // optional string endpoint_id = 1; -inline bool PresenceDevice::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PresenceDevice::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool PresenceDevice::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void PresenceDevice::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& PresenceDevice::endpoint_id() const { +inline const ::std::string& PresenceDevice::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceDevice::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PresenceDevice::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.endpoint_id) } -inline std::string* PresenceDevice::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.endpoint_id) return _s; } -inline const std::string& PresenceDevice::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& PresenceDevice::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void PresenceDevice::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PresenceDevice::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* PresenceDevice::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* PresenceDevice::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE PresenceDevice::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PresenceDevice::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PresenceDevice::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PresenceDevice.endpoint_id) } // optional .location.nearby.connections.EndpointType endpoint_type = 2; -inline bool PresenceDevice::_internal_has_endpoint_type() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool PresenceDevice::has_endpoint_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool PresenceDevice::has_endpoint_type() const { - return _internal_has_endpoint_type(); -} inline void PresenceDevice::clear_endpoint_type() { - endpoint_type_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::connections::EndpointType PresenceDevice::_internal_endpoint_type() const { - return static_cast< ::location::nearby::connections::EndpointType >(endpoint_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::connections::EndpointType PresenceDevice::endpoint_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.endpoint_type) return _internal_endpoint_type(); } -inline void PresenceDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { - assert(::location::nearby::connections::EndpointType_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - endpoint_type_ = value; -} inline void PresenceDevice::set_endpoint_type(::location::nearby::connections::EndpointType value) { _internal_set_endpoint_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.endpoint_type) } +inline ::location::nearby::connections::EndpointType PresenceDevice::_internal_endpoint_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::EndpointType>(_impl_.endpoint_type_); +} +inline void PresenceDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::EndpointType_internal_data_)); + _impl_.endpoint_type_ = value; +} // optional bytes connectivity_info_list = 3; -inline bool PresenceDevice::_internal_has_connectivity_info_list() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool PresenceDevice::has_connectivity_info_list() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool PresenceDevice::has_connectivity_info_list() const { - return _internal_has_connectivity_info_list(); -} inline void PresenceDevice::clear_connectivity_info_list() { - connectivity_info_list_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connectivity_info_list_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& PresenceDevice::connectivity_info_list() const { +inline const ::std::string& PresenceDevice::connectivity_info_list() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.connectivity_info_list) return _internal_connectivity_info_list(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceDevice::set_connectivity_info_list(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - connectivity_info_list_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PresenceDevice::set_connectivity_info_list(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.connectivity_info_list_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.connectivity_info_list) } -inline std::string* PresenceDevice::mutable_connectivity_info_list() { - std::string* _s = _internal_mutable_connectivity_info_list(); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::mutable_connectivity_info_list() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_connectivity_info_list(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.connectivity_info_list) return _s; } -inline const std::string& PresenceDevice::_internal_connectivity_info_list() const { - return connectivity_info_list_.Get(); +inline const ::std::string& PresenceDevice::_internal_connectivity_info_list() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connectivity_info_list_.Get(); } -inline void PresenceDevice::_internal_set_connectivity_info_list(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PresenceDevice::_internal_set_connectivity_info_list(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connectivity_info_list_.Set(value, GetArena()); } -inline std::string* PresenceDevice::_internal_mutable_connectivity_info_list() { - _has_bits_[0] |= 0x00000002u; - return connectivity_info_list_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::_internal_mutable_connectivity_info_list() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connectivity_info_list_.Mutable( GetArena()); } -inline std::string* PresenceDevice::release_connectivity_info_list() { +inline ::std::string* PROTOBUF_NULLABLE PresenceDevice::release_connectivity_info_list() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.connectivity_info_list) - if (!_internal_has_connectivity_info_list()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = connectivity_info_list_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.connectivity_info_list_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connectivity_info_list_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PresenceDevice::set_allocated_connectivity_info_list(std::string* connectivity_info_list) { - if (connectivity_info_list != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void PresenceDevice::set_allocated_connectivity_info_list(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - connectivity_info_list_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connectivity_info_list, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connectivity_info_list_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connectivity_info_list_.IsDefault()) { + _impl_.connectivity_info_list_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PresenceDevice.connectivity_info_list) } // optional int64 device_id = 4; -inline bool PresenceDevice::_internal_has_device_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool PresenceDevice::has_device_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool PresenceDevice::has_device_id() const { - return _internal_has_device_id(); -} inline void PresenceDevice::clear_device_id() { - device_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t PresenceDevice::_internal_device_id() const { - return device_id_; -} -inline int64_t PresenceDevice::device_id() const { +inline ::int64_t PresenceDevice::device_id() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_id) return _internal_device_id(); } -inline void PresenceDevice::_internal_set_device_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - device_id_ = value; -} -inline void PresenceDevice::set_device_id(int64_t value) { +inline void PresenceDevice::set_device_id(::int64_t value) { _internal_set_device_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_id) } +inline ::int64_t PresenceDevice::_internal_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_id_; +} +inline void PresenceDevice::_internal_set_device_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_id_ = value; +} // optional string device_name = 5; -inline bool PresenceDevice::_internal_has_device_name() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool PresenceDevice::has_device_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool PresenceDevice::has_device_name() const { - return _internal_has_device_name(); -} inline void PresenceDevice::clear_device_name() { - device_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& PresenceDevice::device_name() const { +inline const ::std::string& PresenceDevice::device_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_name) return _internal_device_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceDevice::set_device_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PresenceDevice::set_device_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.device_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_name) } -inline std::string* PresenceDevice::mutable_device_name() { - std::string* _s = _internal_mutable_device_name(); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::mutable_device_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_device_name(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.device_name) return _s; } -inline const std::string& PresenceDevice::_internal_device_name() const { - return device_name_.Get(); +inline const ::std::string& PresenceDevice::_internal_device_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_.Get(); } -inline void PresenceDevice::_internal_set_device_name(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PresenceDevice::_internal_set_device_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.Set(value, GetArena()); } -inline std::string* PresenceDevice::_internal_mutable_device_name() { - _has_bits_[0] |= 0x00000004u; - return device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::_internal_mutable_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_name_.Mutable( GetArena()); } -inline std::string* PresenceDevice::release_device_name() { +inline ::std::string* PROTOBUF_NULLABLE PresenceDevice::release_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.device_name) - if (!_internal_has_device_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = device_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.device_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PresenceDevice::set_allocated_device_name(std::string* device_name) { - if (device_name != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void PresenceDevice::set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - device_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_name_.IsDefault()) { + _impl_.device_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PresenceDevice.device_name) } // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; -inline bool PresenceDevice::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool PresenceDevice::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool PresenceDevice::has_device_type() const { - return _internal_has_device_type(); -} inline void PresenceDevice::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::connections::PresenceDevice_DeviceType PresenceDevice::_internal_device_type() const { - return static_cast< ::location::nearby::connections::PresenceDevice_DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::connections::PresenceDevice_DeviceType PresenceDevice::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_type) return _internal_device_type(); } -inline void PresenceDevice::_internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value) { - assert(::location::nearby::connections::PresenceDevice_DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - device_type_ = value; -} inline void PresenceDevice::set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_type) } +inline ::location::nearby::connections::PresenceDevice_DeviceType PresenceDevice::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::connections::PresenceDevice_DeviceType>(_impl_.device_type_); +} +inline void PresenceDevice::_internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::PresenceDevice_DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional string device_image_url = 7; -inline bool PresenceDevice::_internal_has_device_image_url() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool PresenceDevice::has_device_image_url() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool PresenceDevice::has_device_image_url() const { - return _internal_has_device_image_url(); -} inline void PresenceDevice::clear_device_image_url() { - device_image_url_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_image_url_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline const std::string& PresenceDevice::device_image_url() const { +inline const ::std::string& PresenceDevice::device_image_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_image_url) return _internal_device_image_url(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceDevice::set_device_image_url(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PresenceDevice::set_device_image_url(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_.device_image_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_image_url) } -inline std::string* PresenceDevice::mutable_device_image_url() { - std::string* _s = _internal_mutable_device_image_url(); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::mutable_device_image_url() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + ::std::string* _s = _internal_mutable_device_image_url(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.device_image_url) return _s; } -inline const std::string& PresenceDevice::_internal_device_image_url() const { - return device_image_url_.Get(); +inline const ::std::string& PresenceDevice::_internal_device_image_url() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_image_url_.Get(); } -inline void PresenceDevice::_internal_set_device_image_url(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PresenceDevice::_internal_set_device_image_url(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_image_url_.Set(value, GetArena()); } -inline std::string* PresenceDevice::_internal_mutable_device_image_url() { - _has_bits_[0] |= 0x00000008u; - return device_image_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PresenceDevice::_internal_mutable_device_image_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_image_url_.Mutable( GetArena()); } -inline std::string* PresenceDevice::release_device_image_url() { +inline ::std::string* PROTOBUF_NULLABLE PresenceDevice::release_device_image_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.device_image_url) - if (!_internal_has_device_image_url()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = device_image_url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_image_url_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + auto* released = _impl_.device_image_url_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_image_url_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PresenceDevice::set_allocated_device_image_url(std::string* device_image_url) { - if (device_image_url != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void PresenceDevice::set_allocated_device_image_url(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - device_image_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_image_url, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_image_url_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_image_url_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_image_url_.IsDefault()) { + _impl_.device_image_url_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PresenceDevice.device_image_url) } // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; inline int PresenceDevice::_internal_discovery_medium_size() const { - return discovery_medium_.size(); + return _internal_discovery_medium().size(); } inline int PresenceDevice::discovery_medium_size() const { return _internal_discovery_medium_size(); } inline void PresenceDevice::clear_discovery_medium() { - discovery_medium_.Clear(); -} -inline ::location::nearby::connections::ConnectionRequestFrame_Medium PresenceDevice::_internal_discovery_medium(int index) const { - return static_cast< ::location::nearby::connections::ConnectionRequestFrame_Medium >(discovery_medium_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.discovery_medium_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::connections::ConnectionRequestFrame_Medium PresenceDevice::discovery_medium(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.discovery_medium) - return _internal_discovery_medium(index); + return static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(_internal_discovery_medium().Get(index)); } inline void PresenceDevice::set_discovery_medium(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - discovery_medium_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionRequestFrame_Medium_internal_data_)); + _internal_mutable_discovery_medium()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.discovery_medium) } -inline void PresenceDevice::_internal_add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - discovery_medium_.Add(value); -} inline void PresenceDevice::add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - _internal_add_discovery_medium(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::connections::ConnectionRequestFrame_Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_discovery_medium()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.discovery_medium) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -PresenceDevice::discovery_medium() const { +inline const ::google::protobuf::RepeatedField& PresenceDevice::discovery_medium() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.discovery_medium) - return discovery_medium_; + return _internal_discovery_medium(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -PresenceDevice::_internal_mutable_discovery_medium() { - return &discovery_medium_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -PresenceDevice::mutable_discovery_medium() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL PresenceDevice::mutable_discovery_medium() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.discovery_medium) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_discovery_medium(); } +inline const ::google::protobuf::RepeatedField& PresenceDevice::_internal_discovery_medium() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.discovery_medium_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +PresenceDevice::_internal_mutable_discovery_medium() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.discovery_medium_; +} // repeated int32 actions = 9 [packed = true]; inline int PresenceDevice::_internal_actions_size() const { - return actions_.size(); + return _internal_actions().size(); } inline int PresenceDevice::actions_size() const { return _internal_actions_size(); } inline void PresenceDevice::clear_actions() { - actions_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.actions_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t PresenceDevice::_internal_actions(int index) const { - return actions_.Get(index); -} -inline int32_t PresenceDevice::actions(int index) const { +inline ::int32_t PresenceDevice::actions(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.actions) - return _internal_actions(index); + return _internal_actions().Get(index); } -inline void PresenceDevice::set_actions(int index, int32_t value) { - actions_.Set(index, value); +inline void PresenceDevice::set_actions(int index, ::int32_t value) { + _internal_mutable_actions()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.actions) } -inline void PresenceDevice::_internal_add_actions(int32_t value) { - actions_.Add(value); -} -inline void PresenceDevice::add_actions(int32_t value) { - _internal_add_actions(value); +inline void PresenceDevice::add_actions(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_actions()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.actions) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -PresenceDevice::_internal_actions() const { - return actions_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -PresenceDevice::actions() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& PresenceDevice::actions() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.actions) return _internal_actions(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -PresenceDevice::_internal_mutable_actions() { - return &actions_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -PresenceDevice::mutable_actions() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL PresenceDevice::mutable_actions() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.actions) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_actions(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +PresenceDevice::_internal_actions() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.actions_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +PresenceDevice::_internal_mutable_actions() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.actions_; +} // repeated int64 identity_type = 10 [packed = true]; inline int PresenceDevice::_internal_identity_type_size() const { - return identity_type_.size(); + return _internal_identity_type().size(); } inline int PresenceDevice::identity_type_size() const { return _internal_identity_type_size(); } inline void PresenceDevice::clear_identity_type() { - identity_type_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t PresenceDevice::_internal_identity_type(int index) const { - return identity_type_.Get(index); -} -inline int64_t PresenceDevice::identity_type(int index) const { +inline ::int64_t PresenceDevice::identity_type(int index) const { // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.identity_type) - return _internal_identity_type(index); + return _internal_identity_type().Get(index); } -inline void PresenceDevice::set_identity_type(int index, int64_t value) { - identity_type_.Set(index, value); +inline void PresenceDevice::set_identity_type(int index, ::int64_t value) { + _internal_mutable_identity_type()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.identity_type) } -inline void PresenceDevice::_internal_add_identity_type(int64_t value) { - identity_type_.Add(value); -} -inline void PresenceDevice::add_identity_type(int64_t value) { - _internal_add_identity_type(value); +inline void PresenceDevice::add_identity_type(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_identity_type()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.identity_type) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& -PresenceDevice::_internal_identity_type() const { - return identity_type_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& -PresenceDevice::identity_type() const { +inline const ::google::protobuf::RepeatedField<::int64_t>& PresenceDevice::identity_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.identity_type) return _internal_identity_type(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* -PresenceDevice::_internal_mutable_identity_type() { - return &identity_type_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* -PresenceDevice::mutable_identity_type() { +inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL PresenceDevice::mutable_identity_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.identity_type) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_identity_type(); } +inline const ::google::protobuf::RepeatedField<::int64_t>& +PresenceDevice::_internal_identity_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_type_; +} +inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL +PresenceDevice::_internal_mutable_identity_type() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.identity_type_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace connections } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::connections::OfflineFrame_Version> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::V1Frame_FrameType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::ConnectionRequestFrame_Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PacketType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::AutoResumeFrame_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::AutoReconnectFrame_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::MediumMetadata_WifiDirectAuthType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::LocationStandard_Format> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::OsInfo_OsType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PresenceDevice_DeviceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::EndpointType> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::connections::OfflineFrame_Version> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::V1Frame_FrameType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::ConnectionRequestFrame_Medium> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::PayloadTransferFrame_PacketType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::BandwidthUpgradeRetryFrame_Medium> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::AutoResumeFrame_EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::AutoReconnectFrame_EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::MediumMetadata_WifiDirectAuthType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::LocationStandard_Format> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::OsInfo_OsType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::PresenceDevice_DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::connections::EndpointType> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto_2epb_2eh diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.cc b/compiled_proto/internal/proto/analytics/connections_log.pb.cc index 55de19c8..de7eac6d 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.cc +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.cc @@ -1,477 +1,751 @@ // 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 - -#include -#include -#include -#include +#include +#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) -#include +// 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 { -constexpr ConnectionsLog_ClientSession::ConnectionsLog_ClientSession( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : strategy_session_() - , connection_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , duration_millis_(int64_t{0}) - , client_flow_id_(int64_t{0}){} -struct ConnectionsLog_ClientSessionDefaultTypeInternal { - constexpr ConnectionsLog_ClientSessionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_ClientSessionDefaultTypeInternal() {} - union { - ConnectionsLog_ClientSession _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_ClientSessionDefaultTypeInternal _ConnectionsLog_ClientSession_default_instance_; -constexpr ConnectionsLog_OperationResult::ConnectionsLog_OperationResult( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : result_category_(0) - , result_code_(0) -{} -struct ConnectionsLog_OperationResultDefaultTypeInternal { - constexpr ConnectionsLog_OperationResultDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_OperationResultDefaultTypeInternal() {} - union { - ConnectionsLog_OperationResult _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_OperationResultDefaultTypeInternal _ConnectionsLog_OperationResult_default_instance_; -constexpr ConnectionsLog_OperationResultWithMedium::ConnectionsLog_OperationResultWithMedium( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : medium_(0) +inline constexpr ConnectionsLog_RawUwbRangingEvent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + distance_{0}, + azimuth_angle_{0}, + polar_angle_{0} {} - , update_index_(0) - , result_category_(0) - - , result_code_(0) - - , connection_mode_(0) -{} -struct ConnectionsLog_OperationResultWithMediumDefaultTypeInternal { - constexpr ConnectionsLog_OperationResultWithMediumDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_OperationResultWithMediumDefaultTypeInternal() {} - union { - ConnectionsLog_OperationResultWithMedium _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_OperationResultWithMediumDefaultTypeInternal _ConnectionsLog_OperationResultWithMedium_default_instance_; -constexpr ConnectionsLog_StrategySession::ConnectionsLog_StrategySession( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : role_() - , discovery_phase_() - , advertising_phase_() - , connection_attempt_() - , established_connection_() - , upgrade_attempt_() - , build_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , duration_millis_(int64_t{0}) - , strategy_(0) -{} -struct ConnectionsLog_StrategySessionDefaultTypeInternal { - constexpr ConnectionsLog_StrategySessionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_StrategySessionDefaultTypeInternal() {} - union { - ConnectionsLog_StrategySession _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_StrategySessionDefaultTypeInternal _ConnectionsLog_StrategySession_default_instance_; -constexpr ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : 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_(0) - - , device_type_(0) - - , supported_service_(0) -{} -struct ConnectionsLog_DiscoveryPhaseDefaultTypeInternal { - constexpr ConnectionsLog_DiscoveryPhaseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_DiscoveryPhaseDefaultTypeInternal() {} - union { - ConnectionsLog_DiscoveryPhase _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DiscoveryPhaseDefaultTypeInternal _ConnectionsLog_DiscoveryPhase_default_instance_; -constexpr ConnectionsLog_DiscoveredEndpoint::ConnectionsLog_DiscoveredEndpoint( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : latency_millis_(int64_t{0}) - , medium_(0) -{} -struct ConnectionsLog_DiscoveredEndpointDefaultTypeInternal { - constexpr ConnectionsLog_DiscoveredEndpointDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_DiscoveredEndpointDefaultTypeInternal() {} - union { - ConnectionsLog_DiscoveredEndpoint _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DiscoveredEndpointDefaultTypeInternal _ConnectionsLog_DiscoveredEndpoint_default_instance_; -constexpr ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : 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){} -struct ConnectionsLog_UwbRangingProcessDefaultTypeInternal { - constexpr ConnectionsLog_UwbRangingProcessDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_UwbRangingProcessDefaultTypeInternal() {} - union { - ConnectionsLog_UwbRangingProcess _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_UwbRangingProcessDefaultTypeInternal _ConnectionsLog_UwbRangingProcess_default_instance_; -constexpr ConnectionsLog_RawUwbRangingEvent::ConnectionsLog_RawUwbRangingEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : distance_(0) - , azimuth_angle_(0) - , polar_angle_(0){} +template +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 { - constexpr ConnectionsLog_RawUwbRangingEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConnectionsLog_RawUwbRangingEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionsLog_RawUwbRangingEventDefaultTypeInternal() {} union { ConnectionsLog_RawUwbRangingEvent _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_RawUwbRangingEventDefaultTypeInternal _ConnectionsLog_RawUwbRangingEvent_default_instance_; -constexpr ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : medium_() - , received_connection_request_() - , adv_dis_result_() - , advertising_metadata_(nullptr) - , duration_millis_(int64_t{0}) - , client_flow_id_(int64_t{0}) - , stop_reason_(0) - , device_type_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_RawUwbRangingEventDefaultTypeInternal _ConnectionsLog_RawUwbRangingEvent_default_instance_; - , supported_service_(0) -{} -struct ConnectionsLog_AdvertisingPhaseDefaultTypeInternal { - constexpr ConnectionsLog_AdvertisingPhaseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_AdvertisingPhaseDefaultTypeInternal() {} +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 +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_AdvertisingPhase _instance; + ConnectionsLog_OperationResultWithMedium _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_AdvertisingPhaseDefaultTypeInternal _ConnectionsLog_AdvertisingPhase_default_instance_; -constexpr ConnectionsLog_ConnectionRequest::ConnectionsLog_ConnectionRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : duration_millis_(int64_t{0}) - , request_delay_millis_(int64_t{0}) - , local_response_(0) - , remote_response_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_OperationResultWithMediumDefaultTypeInternal _ConnectionsLog_OperationResultWithMedium_default_instance_; - , client_flow_id_(int64_t{0}){} -struct ConnectionsLog_ConnectionRequestDefaultTypeInternal { - constexpr ConnectionsLog_ConnectionRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_ConnectionRequestDefaultTypeInternal() {} +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 +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_ConnectionRequest _instance; + ConnectionsLog_OperationResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_ConnectionRequestDefaultTypeInternal _ConnectionsLog_ConnectionRequest_default_instance_; -constexpr ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connection_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , connection_attempt_metadata_(nullptr) - , operation_result_(nullptr) - , duration_millis_(int64_t{0}) - , type_(0) - , direction_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_OperationResultDefaultTypeInternal _ConnectionsLog_OperationResult_default_instance_; - , medium_(0) +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_{} {} - , attempt_result_(0) - - , client_flow_id_(int64_t{0}) - , connection_mode_(0) - - , device_type_(0) - - , wifi_connection_latency_millis_(int64_t{0}) - , device_attestation_latency_millis_(int64_t{0}) - , supported_service_(0) -{} -struct ConnectionsLog_ConnectionAttemptDefaultTypeInternal { - constexpr ConnectionsLog_ConnectionAttemptDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_ConnectionAttemptDefaultTypeInternal() {} - union { - ConnectionsLog_ConnectionAttempt _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_ConnectionAttemptDefaultTypeInternal _ConnectionsLog_ConnectionAttempt_default_instance_; -constexpr ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : device_model_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , country_code_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , manufacturer_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_platform_(0) -{} -struct ConnectionsLog_DeviceInfoDefaultTypeInternal { - constexpr ConnectionsLog_DeviceInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_DeviceInfoDefaultTypeInternal() {} - union { - ConnectionsLog_DeviceInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DeviceInfoDefaultTypeInternal _ConnectionsLog_DeviceInfo_default_instance_; -constexpr ConnectionsLog_DisconnectionReasonDetail::ConnectionsLog_DisconnectionReasonDetail( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : is_local_disconnection_(false) - , disconnection_reason_(0) -{} -struct ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal { - constexpr ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal() {} - union { - ConnectionsLog_DisconnectionReasonDetail _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal _ConnectionsLog_DisconnectionReasonDetail_default_instance_; -constexpr ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sent_payload_() - , received_payload_() - , connection_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , operation_result_(nullptr) - , remote_device_info_(nullptr) - , disconnection_reason_detail_(nullptr) - , duration_millis_(int64_t{0}) - , medium_(0) - - , disconnection_reason_(0) - - , client_flow_id_(int64_t{0}) - , type_(0) - - , safe_disconnection_result_(0) - - , device_type_(0) - - , supported_service_(0) -{} -struct ConnectionsLog_EstablishedConnectionDefaultTypeInternal { - constexpr ConnectionsLog_EstablishedConnectionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_EstablishedConnectionDefaultTypeInternal() {} - union { - ConnectionsLog_EstablishedConnection _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_EstablishedConnectionDefaultTypeInternal _ConnectionsLog_EstablishedConnection_default_instance_; -constexpr ConnectionsLog_DctPayloadTransferStats::ConnectionsLog_DctPayloadTransferStats( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : type_(0) - - , num_parts_success_(0) - , is_multipart_(false) - , is_resumption_(false) - , num_parts_failure_(0){} -struct ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal { - constexpr ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal() {} - union { - ConnectionsLog_DctPayloadTransferStats _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal _ConnectionsLog_DctPayloadTransferStats_default_instance_; -constexpr ConnectionsLog_Payload::ConnectionsLog_Payload( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : operation_result_(nullptr) - , dct_payload_transfer_stats_(nullptr) - , duration_millis_(int64_t{0}) - , total_size_bytes_(int64_t{0}) - , type_(0) - - , num_chunks_(0) - , num_bytes_transferred_(int64_t{0}) - , status_(0) - - , num_successful_auto_resume_(0) - , num_failed_auto_resume_(0){} -struct ConnectionsLog_PayloadDefaultTypeInternal { - constexpr ConnectionsLog_PayloadDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_PayloadDefaultTypeInternal() {} - union { - ConnectionsLog_Payload _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_PayloadDefaultTypeInternal _ConnectionsLog_Payload_default_instance_; -constexpr ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connection_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , operation_result_(nullptr) - , duration_millis_(int64_t{0}) - , direction_(0) - - , from_medium_(0) - - , to_medium_(0) - - , upgrade_result_(0) - - , client_flow_id_(int64_t{0}) - , error_stage_(0) - - , device_type_(0) - - , supported_service_(0) -{} -struct ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal { - constexpr ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal() {} - union { - ConnectionsLog_BandwidthUpgradeAttempt _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal _ConnectionsLog_BandwidthUpgradeAttempt_default_instance_; -constexpr ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , connection_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , direction_(0) - - , medium_(0) - - , event_(0) - - , description_(0) - - , flow_id_(int64_t{0}) - , _oneof_case_{}{} +template +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 { - constexpr ConnectionsLog_ErrorCodeDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConnectionsLog_ErrorCodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionsLog_ErrorCodeDefaultTypeInternal() {} union { ConnectionsLog_ErrorCode _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_ErrorCodeDefaultTypeInternal _ConnectionsLog_ErrorCode_default_instance_; -constexpr ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : 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_(-1) -{} -struct ConnectionsLog_AdvertisingMetadataDefaultTypeInternal { - constexpr ConnectionsLog_AdvertisingMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionsLog_AdvertisingMetadataDefaultTypeInternal() {} - union { - ConnectionsLog_AdvertisingMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_AdvertisingMetadataDefaultTypeInternal _ConnectionsLog_AdvertisingMetadata_default_instance_; -constexpr ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connected_ap_frequency_(0) - , supports_extended_ble_advertisements_(false) - , supports_nfc_technology_(false) - , power_level_(-1) -{} + +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 +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 { - constexpr ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() {} union { ConnectionsLog_DiscoveryMetadata _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_DiscoveryMetadataDefaultTypeInternal _ConnectionsLog_DiscoveryMetadata_default_instance_; -constexpr ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : network_operator_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , country_code_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , technology_(0) - , band_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLog_DiscoveryMetadataDefaultTypeInternal _ConnectionsLog_DiscoveryMetadata_default_instance_; - , 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){} +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 +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 +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 +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 +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 +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 +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 { - constexpr ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() {} union { ConnectionsLog_ConnectionAttemptMetadata _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal _ConnectionsLog_ConnectionAttemptMetadata_default_instance_; -constexpr ConnectionsLog::ConnectionsLog( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , files_migration_phase_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , client_session_(nullptr) - , error_code_(nullptr) - , event_type_(0) - , log_source_(0) -{} +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 { - constexpr ConnectionsLogDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConnectionsLogDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConnectionsLogDefaultTypeInternal() {} union { ConnectionsLog _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsLogDefaultTypeInternal _ConnectionsLog_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionsLogDefaultTypeInternal _ConnectionsLog_default_instance_; } // namespace proto } // namespace analytics } // namespace nearby @@ -480,7514 +754,7889 @@ namespace location { namespace nearby { namespace analytics { namespace proto { -bool ConnectionsLog_DeviceInfo_Platform_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +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 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionsLog_DeviceInfo_Platform_strings[5] = {}; +static const char ConnectionsLog_DeviceInfo_Platform_names[] = { + "ANDROID" + "CROS" + "IOS" + "UNKNOWN" + "WINDOWS" +}; -static const char ConnectionsLog_DeviceInfo_Platform_names[] = - "ANDROID" - "CROS" - "IOS" - "UNKNOWN" - "WINDOWS"; - -static const ::PROTOBUF_NAMESPACE_ID::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 ::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 + 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 dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionsLog_DeviceInfo_Platform_entries, - ConnectionsLog_DeviceInfo_Platform_entries_by_number, - 5, ConnectionsLog_DeviceInfo_Platform_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionsLog_DeviceInfo_Platform_entries, - ConnectionsLog_DeviceInfo_Platform_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionsLog_DeviceInfo_Platform_strings[idx].get(); +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( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DeviceInfo_Platform* value) { + +bool ConnectionsLog_DeviceInfo_Platform_Parse(::absl::string_view name, ConnectionsLog_DeviceInfo_Platform* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionsLog_DeviceInfo_Platform_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::UNKNOWN; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::ANDROID; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::IOS; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::CROS; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::WINDOWS; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::Platform_MIN; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::Platform_MAX; -constexpr int ConnectionsLog_DeviceInfo::Platform_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - return true; - default: - return false; - } -} +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 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed 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 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 ::PROTOBUF_NAMESPACE_ID::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 ::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 + 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 dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries, - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number, - 18, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries, - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number, - 18, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_strings[idx].get(); +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( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* value) { + +bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse(::absl::string_view name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries, 18, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::UNKNOWN_DISCONNECTION_REASON; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_MDNS_DISCOVERY_TIMEOUT; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_MDNS_REGISTER_SERVICE; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_SUBSEQUENT_TLS_SPAKE; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_REQUEST_FAILED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_RESPONSE_FAILED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_CONTROL_MESSAGE_EXCHANGE; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_CAPABILITY_MISMATCH; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_WIFI_DISABLED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_WIFI_DISCONNECTED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_WIFI_CREDENTIAL_TRANSFER; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_WIFI_INTERNET_CONNECTION; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_USER_CANCELLED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_SERVICE_CANCELLED; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DCT_ERROR_UNVERIFIED_INTEGRITY; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::SESSION_SUCCESS; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DisconnectionReason_MIN; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::DisconnectionReason_MAX; -constexpr int ConnectionsLog_DisconnectionReasonDetail::DisconnectionReason_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +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 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[3] = {}; +static const char ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[] = { + "SAFE_DISCONNECTION" + "UNKNOWN_SAFE_DISCONNECTION_RESULT" + "UNSAFE_DISCONNECTION" +}; -static const char ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[] = - "SAFE_DISCONNECTION" - "UNKNOWN_SAFE_DISCONNECTION_RESULT" - "UNSAFE_DISCONNECTION"; - -static const ::PROTOBUF_NAMESPACE_ID::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 ::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 + 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 dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number, - 3, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[idx].get(); +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( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* value) { + +bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse(::absl::string_view name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::UNKNOWN_SAFE_DISCONNECTION_RESULT; -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SAFE_DISCONNECTION; -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::UNSAFE_DISCONNECTION; -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_MIN; -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_MAX; -constexpr int ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - // =================================================================== class ConnectionsLog_ClientSession::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_connection_token(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, _impl_._has_bits_); }; -ConnectionsLog_ClientSession::ConnectionsLog_ClientSession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - strategy_session_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_ClientSession::ConnectionsLog_ClientSession(const ConnectionsLog_ClientSession& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - strategy_session_(from.strategy_session_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connection_token()) { - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_token(), - GetArenaForAllocation()); - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); +inline void ConnectionsLog_ClientSession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_ClientSession::SharedDtor(MessageLite& self) { + ConnectionsLog_ClientSession& this_ = static_cast(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 ConnectionsLog_ClientSession::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - connection_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_ClientSession::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_ClientSession::ArenaDtor(void* object) { - ConnectionsLog_ClientSession* _this = reinterpret_cast< ConnectionsLog_ClientSession* >(object); - (void)_this; -} -void ConnectionsLog_ClientSession::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_ClientSession::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> ConnectionsLog_ClientSession_class_data_ = + ConnectionsLog_ClientSession::InternalGenerateClassData_(); -void ConnectionsLog_ClientSession::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - strategy_session_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - connection_token_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionsLog_ClientSession::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_strategy_session(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string connection_token = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_connection_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.strategy_session_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + 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(&_impl_.client_flow_id_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* ConnectionsLog_ClientSession::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_strategy_session_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_strategy_session(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_connection_token(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_connection_token(); + target = stream->WriteStringMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_ClientSession::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_ClientSession::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_ClientSession& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2; - total_size += 1UL * this->_internal_strategy_session_size(); - for (const auto& msg : this->strategy_session_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_connection_token()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_connection_token()); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int64 client_flow_id = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_client_flow_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_ClientSession::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_ClientSession::MergeFrom(const ConnectionsLog_ClientSession& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - strategy_session_.MergeFrom(from.strategy_session_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_connection_token(from._internal_connection_token()); - } - if (cached_has_bits & 0x00000002u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000004u) { - client_flow_id_ = from.client_flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_ClientSession::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ClientSession) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_ClientSession::IsInitialized() const { - return true; -} -void ConnectionsLog_ClientSession::InternalSwap(ConnectionsLog_ClientSession* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - strategy_session_.InternalSwap(&other->strategy_session_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_token_, lhs_arena, - &other->connection_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, client_flow_id_) - + sizeof(ConnectionsLog_ClientSession::client_flow_id_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ClientSession, duration_millis_)>( - reinterpret_cast(&duration_millis_), - reinterpret_cast(&other->duration_millis_)); + 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(&_impl_.duration_millis_), + reinterpret_cast(&other->_impl_.duration_millis_)); } -std::string ConnectionsLog_ClientSession::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.ClientSession"; -} - - // =================================================================== class ConnectionsLog_OperationResult::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_result_category(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_result_code(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, _impl_._has_bits_); }; -ConnectionsLog_OperationResult::ConnectionsLog_OperationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_OperationResult& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&result_category_, &from.result_category_, - static_cast(reinterpret_cast(&result_code_) - - reinterpret_cast(&result_category_)) + sizeof(result_code_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&result_category_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&result_code_) - - reinterpret_cast(&result_category_)) + sizeof(result_code_)); +inline void ConnectionsLog_OperationResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_OperationResult::SharedDtor(MessageLite& self) { + ConnectionsLog_OperationResult& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_OperationResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_OperationResult::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_OperationResult::ArenaDtor(void* object) { - ConnectionsLog_OperationResult* _this = reinterpret_cast< ConnectionsLog_OperationResult* >(object); - (void)_this; -} -void ConnectionsLog_OperationResult::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_OperationResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_OperationResult_class_data_ = + ConnectionsLog_OperationResult::InternalGenerateClassData_(); -void ConnectionsLog_OperationResult::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&result_category_, 0, static_cast( - reinterpret_cast(&result_code_) - - reinterpret_cast(&result_category_)) + sizeof(result_code_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.result_category_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.result_code_) - + reinterpret_cast(&_impl_.result_category_)) + sizeof(_impl_.result_code_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_OperationResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.OperationResultCategory result_category = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::OperationResultCategory_IsValid(val))) { - _internal_set_result_category(static_cast<::location::nearby::proto::connections::OperationResultCategory>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::OperationResultCode_IsValid(val))) { - _internal_set_result_code(static_cast<::location::nearby::proto::connections::OperationResultCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_OperationResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.OperationResultCategory result_category = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result_category(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result_category(), target); } // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_result_code(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_result_code(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_OperationResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_OperationResult::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_OperationResult& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_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 (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result_category()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_result_category()); } - // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result_code()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_result_code()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_OperationResult::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_OperationResult::MergeFrom(const ConnectionsLog_OperationResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - result_category_ = from.result_category_; - } - if (cached_has_bits & 0x00000002u) { - result_code_ = from.result_code_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_OperationResult::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResult) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_OperationResult::IsInitialized() const { - return true; -} -void ConnectionsLog_OperationResult::InternalSwap(ConnectionsLog_OperationResult* other) { - using std::swap; +void ConnectionsLog_OperationResult::InternalSwap(ConnectionsLog_OperationResult* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, result_code_) - + sizeof(ConnectionsLog_OperationResult::result_code_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResult, result_category_)>( - reinterpret_cast(&result_category_), - reinterpret_cast(&other->result_category_)); + 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(&_impl_.result_category_), + reinterpret_cast(&other->_impl_.result_category_)); } -std::string ConnectionsLog_OperationResult::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.OperationResult"; -} - - // =================================================================== class ConnectionsLog_OperationResultWithMedium::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_update_index(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_result_category(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_result_code(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_connection_mode(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, _impl_._has_bits_); }; -ConnectionsLog_OperationResultWithMedium::ConnectionsLog_OperationResultWithMedium(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_OperationResultWithMedium& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&medium_, &from.medium_, - static_cast(reinterpret_cast(&connection_mode_) - - reinterpret_cast(&medium_)) + sizeof(connection_mode_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&medium_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&connection_mode_) - - reinterpret_cast(&medium_)) + sizeof(connection_mode_)); +inline void ConnectionsLog_OperationResultWithMedium::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_OperationResultWithMedium::SharedDtor(MessageLite& self) { + ConnectionsLog_OperationResultWithMedium& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_OperationResultWithMedium::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_OperationResultWithMedium::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_OperationResultWithMedium::ArenaDtor(void* object) { - ConnectionsLog_OperationResultWithMedium* _this = reinterpret_cast< ConnectionsLog_OperationResultWithMedium* >(object); - (void)_this; -} -void ConnectionsLog_OperationResultWithMedium::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_OperationResultWithMedium::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_OperationResultWithMedium_class_data_ = + ConnectionsLog_OperationResultWithMedium::InternalGenerateClassData_(); -void ConnectionsLog_OperationResultWithMedium::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&medium_, 0, static_cast( - reinterpret_cast(&connection_mode_) - - reinterpret_cast(&medium_)) + sizeof(connection_mode_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.medium_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.connection_mode_) - + reinterpret_cast(&_impl_.medium_)) + sizeof(_impl_.connection_mode_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_OperationResultWithMedium::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.Medium medium = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 update_index = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_update_index(&has_bits); - update_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.OperationResultCategory result_category = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::OperationResultCategory_IsValid(val))) { - _internal_set_result_category(static_cast<::location::nearby::proto::connections::OperationResultCategory>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.OperationResultCode result_code = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::OperationResultCode_IsValid(val))) { - _internal_set_result_code(static_cast<::location::nearby::proto::connections::OperationResultCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionMode_IsValid(val))) { - _internal_set_connection_mode(static_cast<::location::nearby::proto::connections::ConnectionMode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_OperationResultWithMedium::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.Medium medium = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_medium(), target); } // optional int32 update_index = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_update_index(), target); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_result_category(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_result_category(), target); } // optional .location.nearby.proto.connections.OperationResultCode result_code = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_result_code(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_result_code(), target); } // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_connection_mode(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_connection_mode(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_OperationResultWithMedium::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_OperationResultWithMedium::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_OperationResultWithMedium& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_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 (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - // optional int32 update_index = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_update_index()); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result_category()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_result_category()); } - // optional .location.nearby.proto.connections.OperationResultCode result_code = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result_code()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_result_code()); } - // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_mode()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_mode()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_OperationResultWithMedium::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_OperationResultWithMedium::MergeFrom(const ConnectionsLog_OperationResultWithMedium& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - medium_ = from.medium_; - } - if (cached_has_bits & 0x00000002u) { - update_index_ = from.update_index_; - } - if (cached_has_bits & 0x00000004u) { - result_category_ = from.result_category_; - } - if (cached_has_bits & 0x00000008u) { - result_code_ = from.result_code_; - } - if (cached_has_bits & 0x00000010u) { - connection_mode_ = from.connection_mode_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_OperationResultWithMedium::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_OperationResultWithMedium::IsInitialized() const { - return true; -} -void ConnectionsLog_OperationResultWithMedium::InternalSwap(ConnectionsLog_OperationResultWithMedium* other) { - using std::swap; +void ConnectionsLog_OperationResultWithMedium::InternalSwap(ConnectionsLog_OperationResultWithMedium* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, connection_mode_) - + sizeof(ConnectionsLog_OperationResultWithMedium::connection_mode_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_OperationResultWithMedium, medium_)>( - reinterpret_cast(&medium_), - reinterpret_cast(&other->medium_)); + 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(&_impl_.medium_), + reinterpret_cast(&other->_impl_.medium_)); } -std::string ConnectionsLog_OperationResultWithMedium::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium"; -} - - // =================================================================== class ConnectionsLog_StrategySession::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_strategy(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_build_version(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, _impl_._has_bits_); }; -ConnectionsLog_StrategySession::ConnectionsLog_StrategySession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - role_(arena), - discovery_phase_(arena), - advertising_phase_(arena), - connection_attempt_(arena), - established_connection_(arena), - upgrade_attempt_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_StrategySession::ConnectionsLog_StrategySession(const ConnectionsLog_StrategySession& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - role_(from.role_), - discovery_phase_(from.discovery_phase_), - advertising_phase_(from.advertising_phase_), - connection_attempt_(from.connection_attempt_), - established_connection_(from.established_connection_), - upgrade_attempt_(from.upgrade_attempt_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - build_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - build_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_build_version()) { - build_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_build_version(), - GetArenaForAllocation()); - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&strategy_) - - reinterpret_cast(&duration_millis_)) + sizeof(strategy_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -build_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - build_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&strategy_) - - reinterpret_cast(&duration_millis_)) + sizeof(strategy_)); +inline void ConnectionsLog_StrategySession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_StrategySession::SharedDtor(MessageLite& self) { + ConnectionsLog_StrategySession& this_ = static_cast(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 ConnectionsLog_StrategySession::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - build_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_StrategySession::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_StrategySession::ArenaDtor(void* object) { - ConnectionsLog_StrategySession* _this = reinterpret_cast< ConnectionsLog_StrategySession* >(object); - (void)_this; -} -void ConnectionsLog_StrategySession::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_StrategySession::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_StrategySession_class_data_ = + ConnectionsLog_StrategySession::InternalGenerateClassData_(); -void ConnectionsLog_StrategySession::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - role_.Clear(); - discovery_phase_.Clear(); - advertising_phase_.Clear(); - connection_attempt_.Clear(); - established_connection_.Clear(); - upgrade_attempt_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - build_version_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&strategy_) - - reinterpret_cast(&duration_millis_)) + sizeof(strategy_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionsLog_StrategySession::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionsStrategy_IsValid(val))) { - _internal_set_strategy(static_cast<::location::nearby::proto::connections::ConnectionsStrategy>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // repeated .location.nearby.proto.connections.SessionRole role = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SessionRole_IsValid(val))) { - _internal_add_role(static_cast<::location::nearby::proto::connections::SessionRole>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<24>(ptr)); - } else if (static_cast(tag) == 26) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_role(), ptr, ctx, ::location::nearby::proto::connections::SessionRole_IsValid, &_internal_metadata_, 3); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_discovery_phase(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_advertising_phase(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_connection_attempt(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_established_connection(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_upgrade_attempt(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - // optional string build_version = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_build_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.role_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + 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>(); } -uint8_t* ConnectionsLog_StrategySession::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_strategy(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_strategy(), target); } // repeated .location.nearby.proto.connections.SessionRole role = 3; - for (int i = 0, n = this->_internal_role_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_role(i), target); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_discovery_phase_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_discovery_phase(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_advertising_phase_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_advertising_phase(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_connection_attempt_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_connection_attempt(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_established_connection_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, this->_internal_established_connection(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_upgrade_attempt_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, this->_internal_upgrade_attempt(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 10, this->_internal_build_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + const ::std::string& _s = this_._internal_build_version(); + target = stream->WriteStringMaybeAliased(10, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_StrategySession::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_StrategySession::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_StrategySession& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.proto.connections.SessionRole role = 3; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_role_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_role(static_cast(i))); + ::_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); + } } - total_size += (1UL * count) + data_size; - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4; - total_size += 1UL * this->_internal_discovery_phase_size(); - for (const auto& msg : this->discovery_phase_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5; - total_size += 1UL * this->_internal_advertising_phase_size(); - for (const auto& msg : this->advertising_phase_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6; - total_size += 1UL * this->_internal_connection_attempt_size(); - for (const auto& msg : this->connection_attempt_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7; - total_size += 1UL * this->_internal_established_connection_size(); - for (const auto& msg : this->established_connection_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9; - total_size += 1UL * this->_internal_upgrade_attempt_size(); - for (const auto& msg : this->upgrade_attempt_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { // optional string build_version = 10; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_build_version()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_build_version()); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - + } + { // optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_strategy()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_strategy()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_StrategySession::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_StrategySession::MergeFrom(const ConnectionsLog_StrategySession& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - role_.MergeFrom(from.role_); - discovery_phase_.MergeFrom(from.discovery_phase_); - advertising_phase_.MergeFrom(from.advertising_phase_); - connection_attempt_.MergeFrom(from.connection_attempt_); - established_connection_.MergeFrom(from.established_connection_); - upgrade_attempt_.MergeFrom(from.upgrade_attempt_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_build_version(from._internal_build_version()); - } - if (cached_has_bits & 0x00000002u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000004u) { - strategy_ = from.strategy_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_StrategySession::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.StrategySession) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_StrategySession::IsInitialized() const { - return true; -} -void ConnectionsLog_StrategySession::InternalSwap(ConnectionsLog_StrategySession* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - role_.InternalSwap(&other->role_); - discovery_phase_.InternalSwap(&other->discovery_phase_); - advertising_phase_.InternalSwap(&other->advertising_phase_); - connection_attempt_.InternalSwap(&other->connection_attempt_); - established_connection_.InternalSwap(&other->established_connection_); - upgrade_attempt_.InternalSwap(&other->upgrade_attempt_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &build_version_, lhs_arena, - &other->build_version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, strategy_) - + sizeof(ConnectionsLog_StrategySession::strategy_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_StrategySession, duration_millis_)>( - reinterpret_cast(&duration_millis_), - reinterpret_cast(&other->duration_millis_)); + 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(&_impl_.duration_millis_), + reinterpret_cast(&other->_impl_.duration_millis_)); } -std::string ConnectionsLog_StrategySession::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.StrategySession"; -} - - // =================================================================== class ConnectionsLog_DiscoveryPhase::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& discovery_metadata(const ConnectionsLog_DiscoveryPhase* msg); - static void set_has_discovery_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_stop_reason(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_supported_service(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& -ConnectionsLog_DiscoveryPhase::_Internal::discovery_metadata(const ConnectionsLog_DiscoveryPhase* msg) { - return *msg->discovery_metadata_; -} -ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - medium_(arena), - discovered_endpoint_(arena), - sent_connection_request_(arena), - uwb_ranging_(arena), - adv_dis_result_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(const ConnectionsLog_DiscoveryPhase& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - medium_(from.medium_), - discovered_endpoint_(from.discovered_endpoint_), - sent_connection_request_(from.sent_connection_request_), - uwb_ranging_(from.uwb_ranging_), - adv_dis_result_(from.adv_dis_result_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_discovery_metadata()) { - discovery_metadata_ = new ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata(*from.discovery_metadata_); - } else { - discovery_metadata_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&discovery_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&discovery_metadata_)) + sizeof(supported_service_)); +inline void ConnectionsLog_DiscoveryPhase::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DiscoveryPhase::SharedDtor(MessageLite& self) { + ConnectionsLog_DiscoveryPhase& this_ = static_cast(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 ConnectionsLog_DiscoveryPhase::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete discovery_metadata_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DiscoveryPhase::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DiscoveryPhase::ArenaDtor(void* object) { - ConnectionsLog_DiscoveryPhase* _this = reinterpret_cast< ConnectionsLog_DiscoveryPhase* >(object); - (void)_this; -} -void ConnectionsLog_DiscoveryPhase::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DiscoveryPhase::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> ConnectionsLog_DiscoveryPhase_class_data_ = + ConnectionsLog_DiscoveryPhase::InternalGenerateClassData_(); -void ConnectionsLog_DiscoveryPhase::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - medium_.Clear(); - discovered_endpoint_.Clear(); - sent_connection_request_.Clear(); - uwb_ranging_.Clear(); - adv_dis_result_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(discovery_metadata_ != nullptr); - discovery_metadata_->Clear(); - } - if (cached_has_bits & 0x0000003eu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionsLog_DiscoveryPhase::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.proto.connections.Medium medium = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_add_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr)); - } else if (static_cast(tag) == 18) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_medium(), ptr, ctx, ::location::nearby::proto::connections::Medium_IsValid, &_internal_metadata_, 2); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_discovered_endpoint(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_sent_connection_request(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_uwb_ranging(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_discovery_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_adv_dis_result(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::StopDiscoveringReason_IsValid(val))) { - _internal_set_stop_reason(static_cast<::location::nearby::proto::connections::StopDiscoveringReason>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::connections::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SupportedService_IsValid(val))) { - _internal_set_supported_service(static_cast<::location::nearby::proto::connections::SupportedService>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.medium_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + 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(&_impl_.client_flow_id_) - + reinterpret_cast(&_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(&_impl_.supported_service_) - + reinterpret_cast(&_impl_.stop_reason_)) + sizeof(_impl_.supported_service_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* ConnectionsLog_DiscoveryPhase::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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; - for (int i = 0, n = this->_internal_medium_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_medium(i), target); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_discovered_endpoint_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_discovered_endpoint(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_sent_connection_request_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_sent_connection_request(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_uwb_ranging_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_uwb_ranging(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::discovery_metadata(this), target, stream); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_adv_dis_result_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, this->_internal_adv_dis_result(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_stop_reason(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_stop_reason(), target); } // optional .location.nearby.proto.connections.DeviceType device_type = 10; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_device_type(), target); } // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_supported_service(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_supported_service(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DiscoveryPhase& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.proto.connections.Medium medium = 2; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_medium_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_medium(static_cast(i))); + ::_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); + } } - total_size += (1UL * count) + data_size; - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3; - total_size += 1UL * this->_internal_discovered_endpoint_size(); - for (const auto& msg : this->discovered_endpoint_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4; - total_size += 1UL * this->_internal_sent_connection_request_size(); - for (const auto& msg : this->sent_connection_request_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5; - total_size += 1UL * this->_internal_uwb_ranging_size(); - for (const auto& msg : this->uwb_ranging_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8; - total_size += 1UL * this->_internal_adv_dis_result_size(); - for (const auto& msg : this->adv_dis_result_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *discovery_metadata_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.discovery_metadata_); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_reason()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_stop_reason()); } - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_supported_service()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DiscoveryPhase::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DiscoveryPhase::MergeFrom(const ConnectionsLog_DiscoveryPhase& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - medium_.MergeFrom(from.medium_); - discovered_endpoint_.MergeFrom(from.discovered_endpoint_); - sent_connection_request_.MergeFrom(from.sent_connection_request_); - uwb_ranging_.MergeFrom(from.uwb_ranging_); - adv_dis_result_.MergeFrom(from.adv_dis_result_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_discovery_metadata()->::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata::MergeFrom(from._internal_discovery_metadata()); - } - if (cached_has_bits & 0x00000002u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000004u) { - client_flow_id_ = from.client_flow_id_; - } - if (cached_has_bits & 0x00000008u) { - stop_reason_ = from.stop_reason_; - } - if (cached_has_bits & 0x00000010u) { - device_type_ = from.device_type_; - } - if (cached_has_bits & 0x00000020u) { - supported_service_ = from.supported_service_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DiscoveryPhase::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DiscoveryPhase::IsInitialized() const { - return true; -} -void ConnectionsLog_DiscoveryPhase::InternalSwap(ConnectionsLog_DiscoveryPhase* other) { - using std::swap; +void ConnectionsLog_DiscoveryPhase::InternalSwap(ConnectionsLog_DiscoveryPhase* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - medium_.InternalSwap(&other->medium_); - discovered_endpoint_.InternalSwap(&other->discovered_endpoint_); - sent_connection_request_.InternalSwap(&other->sent_connection_request_); - uwb_ranging_.InternalSwap(&other->uwb_ranging_); - adv_dis_result_.InternalSwap(&other->adv_dis_result_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, supported_service_) - + sizeof(ConnectionsLog_DiscoveryPhase::supported_service_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, discovery_metadata_)>( - reinterpret_cast(&discovery_metadata_), - reinterpret_cast(&other->discovery_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(&_impl_.discovery_metadata_), + reinterpret_cast(&other->_impl_.discovery_metadata_)); } -std::string ConnectionsLog_DiscoveryPhase::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase"; -} - - // =================================================================== class ConnectionsLog_DiscoveredEndpoint::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, _impl_._has_bits_); }; -ConnectionsLog_DiscoveredEndpoint::ConnectionsLog_DiscoveredEndpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_DiscoveredEndpoint& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&latency_millis_, &from.latency_millis_, - static_cast(reinterpret_cast(&medium_) - - reinterpret_cast(&latency_millis_)) + sizeof(medium_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&latency_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&medium_) - - reinterpret_cast(&latency_millis_)) + sizeof(medium_)); +inline void ConnectionsLog_DiscoveredEndpoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DiscoveredEndpoint::SharedDtor(MessageLite& self) { + ConnectionsLog_DiscoveredEndpoint& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_DiscoveredEndpoint::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DiscoveredEndpoint::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DiscoveredEndpoint::ArenaDtor(void* object) { - ConnectionsLog_DiscoveredEndpoint* _this = reinterpret_cast< ConnectionsLog_DiscoveredEndpoint* >(object); - (void)_this; -} -void ConnectionsLog_DiscoveredEndpoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DiscoveredEndpoint::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_DiscoveredEndpoint_class_data_ = + ConnectionsLog_DiscoveredEndpoint::InternalGenerateClassData_(); -void ConnectionsLog_DiscoveredEndpoint::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&latency_millis_, 0, static_cast( - reinterpret_cast(&medium_) - - reinterpret_cast(&latency_millis_)) + sizeof(medium_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.latency_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.medium_) - + reinterpret_cast(&_impl_.latency_millis_)) + sizeof(_impl_.medium_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_DiscoveredEndpoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.Medium medium = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 latency_millis = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_latency_millis(&has_bits); - latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_DiscoveredEndpoint::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.Medium medium = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_medium(), target); } // optional int64 latency_millis = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_latency_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_latency_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DiscoveredEndpoint::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DiscoveredEndpoint::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DiscoveredEndpoint& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional int64 latency_millis = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_millis()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_millis()); } - // optional .location.nearby.proto.connections.Medium medium = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DiscoveredEndpoint::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DiscoveredEndpoint::MergeFrom(const ConnectionsLog_DiscoveredEndpoint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - latency_millis_ = from.latency_millis_; - } - if (cached_has_bits & 0x00000002u) { - medium_ = from.medium_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DiscoveredEndpoint::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DiscoveredEndpoint::IsInitialized() const { - return true; -} -void ConnectionsLog_DiscoveredEndpoint::InternalSwap(ConnectionsLog_DiscoveredEndpoint* other) { - using std::swap; +void ConnectionsLog_DiscoveredEndpoint::InternalSwap(ConnectionsLog_DiscoveredEndpoint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, medium_) - + sizeof(ConnectionsLog_DiscoveredEndpoint::medium_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveredEndpoint, latency_millis_)>( - reinterpret_cast(&latency_millis_), - reinterpret_cast(&other->latency_millis_)); + 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(&_impl_.latency_millis_), + reinterpret_cast(&other->_impl_.latency_millis_)); } -std::string ConnectionsLog_DiscoveredEndpoint::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint"; -} - - // =================================================================== class ConnectionsLog_UwbRangingProcess::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_number_of_ranging_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_distance_min(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_distance_max(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_distance_ave(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_distance_variance(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_azimuth_min(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_azimuth_max(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_azimuth_ave(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_azimuth_variance(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, _impl_._has_bits_); }; -ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - uwb_ranging_data_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_UwbRangingProcess::ConnectionsLog_UwbRangingProcess(const ConnectionsLog_UwbRangingProcess& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - uwb_ranging_data_(from.uwb_ranging_data_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&azimuth_variance_) - - reinterpret_cast(&duration_millis_)) + sizeof(azimuth_variance_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&azimuth_variance_) - - reinterpret_cast(&duration_millis_)) + sizeof(azimuth_variance_)); +inline void ConnectionsLog_UwbRangingProcess::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_UwbRangingProcess::SharedDtor(MessageLite& self) { + ConnectionsLog_UwbRangingProcess& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_UwbRangingProcess::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_UwbRangingProcess::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_UwbRangingProcess::ArenaDtor(void* object) { - ConnectionsLog_UwbRangingProcess* _this = reinterpret_cast< ConnectionsLog_UwbRangingProcess* >(object); - (void)_this; -} -void ConnectionsLog_UwbRangingProcess::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_UwbRangingProcess::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_UwbRangingProcess_class_data_ = + ConnectionsLog_UwbRangingProcess::InternalGenerateClassData_(); -void ConnectionsLog_UwbRangingProcess::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - uwb_ranging_data_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&azimuth_max_) - - reinterpret_cast(&duration_millis_)) + sizeof(azimuth_max_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.uwb_ranging_data_.Clear(); } - if (cached_has_bits & 0x00000300u) { - ::memset(&azimuth_ave_, 0, static_cast( - reinterpret_cast(&azimuth_variance_) - - reinterpret_cast(&azimuth_ave_)) + sizeof(azimuth_variance_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.azimuth_min_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.azimuth_min_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + ::memset(&_impl_.azimuth_max_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.azimuth_variance_) - + reinterpret_cast(&_impl_.azimuth_max_)) + sizeof(_impl_.azimuth_variance_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_UwbRangingProcess::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_uwb_ranging_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // optional int32 number_of_ranging_data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_number_of_ranging_data(&has_bits); - number_of_ranging_data_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 distance_min = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_distance_min(&has_bits); - distance_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 distance_max = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_distance_max(&has_bits); - distance_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 distance_ave = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_distance_ave(&has_bits); - distance_ave_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 distance_variance = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_distance_variance(&has_bits); - distance_variance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 azimuth_min = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_azimuth_min(&has_bits); - azimuth_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 azimuth_max = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_azimuth_max(&has_bits); - azimuth_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 azimuth_ave = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_azimuth_ave(&has_bits); - azimuth_ave_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 azimuth_variance = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_azimuth_variance(&has_bits); - azimuth_variance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_UwbRangingProcess::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_uwb_ranging_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_uwb_ranging_data(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_number_of_ranging_data(), target); + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_distance_min(), target); + 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 (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_distance_max(), target); + 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 (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_distance_ave(), target); + 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 (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_distance_variance(), target); + 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 (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_azimuth_min(), target); + 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 (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_azimuth_max(), target); + 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 (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_azimuth_ave(), target); + 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 (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_azimuth_variance(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_azimuth_variance(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_UwbRangingProcess::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_UwbRangingProcess::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_UwbRangingProcess& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2; - total_size += 1UL * this->_internal_uwb_ranging_data_size(); - for (const auto& msg : this->uwb_ranging_data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int32 number_of_ranging_data = 3; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_number_of_ranging_data()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_number_of_ranging_data()); } - // optional int32 distance_min = 4; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_distance_min()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_distance_min()); } - // optional int32 distance_max = 5; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_distance_max()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_distance_max()); } - // optional int32 distance_ave = 6; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_distance_ave()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_distance_ave()); } - // optional int32 distance_variance = 7; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_distance_variance()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_distance_variance()); } - // optional int32 azimuth_min = 8; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_azimuth_min()); + 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 (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_azimuth_max()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_azimuth_max()); } - - } - if (cached_has_bits & 0x00000300u) { // optional int32 azimuth_ave = 10; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_azimuth_ave()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_azimuth_ave()); } - // optional int32 azimuth_variance = 11; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_azimuth_variance()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_azimuth_variance()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_UwbRangingProcess::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_UwbRangingProcess::MergeFrom(const ConnectionsLog_UwbRangingProcess& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - uwb_ranging_data_.MergeFrom(from.uwb_ranging_data_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000002u) { - number_of_ranging_data_ = from.number_of_ranging_data_; - } - if (cached_has_bits & 0x00000004u) { - distance_min_ = from.distance_min_; - } - if (cached_has_bits & 0x00000008u) { - distance_max_ = from.distance_max_; - } - if (cached_has_bits & 0x00000010u) { - distance_ave_ = from.distance_ave_; - } - if (cached_has_bits & 0x00000020u) { - distance_variance_ = from.distance_variance_; - } - if (cached_has_bits & 0x00000040u) { - azimuth_min_ = from.azimuth_min_; - } - if (cached_has_bits & 0x00000080u) { - azimuth_max_ = from.azimuth_max_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_UwbRangingProcess::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - azimuth_ave_ = from.azimuth_ave_; + ::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 (cached_has_bits & 0x00000200u) { - azimuth_variance_ = from.azimuth_variance_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_UwbRangingProcess::IsInitialized() const { - return true; -} -void ConnectionsLog_UwbRangingProcess::InternalSwap(ConnectionsLog_UwbRangingProcess* other) { - using std::swap; +void ConnectionsLog_UwbRangingProcess::InternalSwap(ConnectionsLog_UwbRangingProcess* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - uwb_ranging_data_.InternalSwap(&other->uwb_ranging_data_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, azimuth_variance_) - + sizeof(ConnectionsLog_UwbRangingProcess::azimuth_variance_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_UwbRangingProcess, duration_millis_)>( - reinterpret_cast(&duration_millis_), - reinterpret_cast(&other->duration_millis_)); + 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(&_impl_.duration_millis_), + reinterpret_cast(&other->_impl_.duration_millis_)); } -std::string ConnectionsLog_UwbRangingProcess::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess"; -} - - // =================================================================== class ConnectionsLog_RawUwbRangingEvent::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_distance(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_azimuth_angle(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_polar_angle(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, _impl_._has_bits_); }; -ConnectionsLog_RawUwbRangingEvent::ConnectionsLog_RawUwbRangingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_RawUwbRangingEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&distance_, &from.distance_, - static_cast(reinterpret_cast(&polar_angle_) - - reinterpret_cast(&distance_)) + sizeof(polar_angle_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&distance_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&polar_angle_) - - reinterpret_cast(&distance_)) + sizeof(polar_angle_)); +inline void ConnectionsLog_RawUwbRangingEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_RawUwbRangingEvent::SharedDtor(MessageLite& self) { + ConnectionsLog_RawUwbRangingEvent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_RawUwbRangingEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_RawUwbRangingEvent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_RawUwbRangingEvent::ArenaDtor(void* object) { - ConnectionsLog_RawUwbRangingEvent* _this = reinterpret_cast< ConnectionsLog_RawUwbRangingEvent* >(object); - (void)_this; -} -void ConnectionsLog_RawUwbRangingEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_RawUwbRangingEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_RawUwbRangingEvent_class_data_ = + ConnectionsLog_RawUwbRangingEvent::InternalGenerateClassData_(); -void ConnectionsLog_RawUwbRangingEvent::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&distance_, 0, static_cast( - reinterpret_cast(&polar_angle_) - - reinterpret_cast(&distance_)) + sizeof(polar_angle_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.distance_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.polar_angle_) - + reinterpret_cast(&_impl_.distance_)) + sizeof(_impl_.polar_angle_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_RawUwbRangingEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 distance = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_distance(&has_bits); - distance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 azimuth_angle = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_azimuth_angle(&has_bits); - azimuth_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 polar_angle = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_polar_angle(&has_bits); - polar_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_RawUwbRangingEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 distance = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_distance(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_distance(), target); } // optional int32 azimuth_angle = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_azimuth_angle(), target); + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_polar_angle(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_polar_angle(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_RawUwbRangingEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_RawUwbRangingEvent::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_RawUwbRangingEvent& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional int32 distance = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_distance()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_distance()); } - // optional int32 azimuth_angle = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_azimuth_angle()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_azimuth_angle()); } - // optional int32 polar_angle = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_polar_angle()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_polar_angle()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_RawUwbRangingEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_RawUwbRangingEvent::MergeFrom(const ConnectionsLog_RawUwbRangingEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - distance_ = from.distance_; - } - if (cached_has_bits & 0x00000002u) { - azimuth_angle_ = from.azimuth_angle_; - } - if (cached_has_bits & 0x00000004u) { - polar_angle_ = from.polar_angle_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_RawUwbRangingEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_RawUwbRangingEvent::IsInitialized() const { - return true; -} -void ConnectionsLog_RawUwbRangingEvent::InternalSwap(ConnectionsLog_RawUwbRangingEvent* other) { - using std::swap; +void ConnectionsLog_RawUwbRangingEvent::InternalSwap(ConnectionsLog_RawUwbRangingEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, polar_angle_) - + sizeof(ConnectionsLog_RawUwbRangingEvent::polar_angle_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_RawUwbRangingEvent, distance_)>( - reinterpret_cast(&distance_), - reinterpret_cast(&other->distance_)); + 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(&_impl_.distance_), + reinterpret_cast(&other->_impl_.distance_)); } -std::string ConnectionsLog_RawUwbRangingEvent::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent"; -} - - // =================================================================== class ConnectionsLog_AdvertisingPhase::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& advertising_metadata(const ConnectionsLog_AdvertisingPhase* msg); - static void set_has_advertising_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_stop_reason(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_supported_service(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& -ConnectionsLog_AdvertisingPhase::_Internal::advertising_metadata(const ConnectionsLog_AdvertisingPhase* msg) { - return *msg->advertising_metadata_; -} -ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - medium_(arena), - received_connection_request_(arena), - adv_dis_result_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(const ConnectionsLog_AdvertisingPhase& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - medium_(from.medium_), - received_connection_request_(from.received_connection_request_), - adv_dis_result_(from.adv_dis_result_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_advertising_metadata()) { - advertising_metadata_ = new ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata(*from.advertising_metadata_); - } else { - advertising_metadata_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&advertising_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&advertising_metadata_)) + sizeof(supported_service_)); +inline void ConnectionsLog_AdvertisingPhase::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_AdvertisingPhase::SharedDtor(MessageLite& self) { + ConnectionsLog_AdvertisingPhase& this_ = static_cast(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 ConnectionsLog_AdvertisingPhase::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete advertising_metadata_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_AdvertisingPhase::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_AdvertisingPhase::ArenaDtor(void* object) { - ConnectionsLog_AdvertisingPhase* _this = reinterpret_cast< ConnectionsLog_AdvertisingPhase* >(object); - (void)_this; -} -void ConnectionsLog_AdvertisingPhase::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_AdvertisingPhase::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> ConnectionsLog_AdvertisingPhase_class_data_ = + ConnectionsLog_AdvertisingPhase::InternalGenerateClassData_(); -void ConnectionsLog_AdvertisingPhase::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - medium_.Clear(); - received_connection_request_.Clear(); - adv_dis_result_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(advertising_metadata_ != nullptr); - advertising_metadata_->Clear(); - } - if (cached_has_bits & 0x0000003eu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionsLog_AdvertisingPhase::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.proto.connections.Medium medium = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_add_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr)); - } else if (static_cast(tag) == 18) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_medium(), ptr, ctx, ::location::nearby::proto::connections::Medium_IsValid, &_internal_metadata_, 2); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_received_connection_request(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_advertising_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_adv_dis_result(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::StopAdvertisingReason_IsValid(val))) { - _internal_set_stop_reason(static_cast<::location::nearby::proto::connections::StopAdvertisingReason>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DeviceType device_type = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::connections::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.SupportedService supported_service = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SupportedService_IsValid(val))) { - _internal_set_supported_service(static_cast<::location::nearby::proto::connections::SupportedService>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.medium_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + 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(&_impl_.device_type_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.device_type_)); + } + _impl_.supported_service_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* ConnectionsLog_AdvertisingPhase::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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; - for (int i = 0, n = this->_internal_medium_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_medium(i), target); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_received_connection_request_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_received_connection_request(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::advertising_metadata(this), target, stream); + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_adv_dis_result_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_adv_dis_result(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_stop_reason(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_stop_reason(), target); } // optional .location.nearby.proto.connections.DeviceType device_type = 8; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 8, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_device_type(), target); } // optional .location.nearby.proto.connections.SupportedService supported_service = 9; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_supported_service(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_supported_service(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_AdvertisingPhase& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.proto.connections.Medium medium = 2; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_medium_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_medium(static_cast(i))); + ::_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); + } } - total_size += (1UL * count) + data_size; - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3; - total_size += 1UL * this->_internal_received_connection_request_size(); - for (const auto& msg : this->received_connection_request_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6; - total_size += 1UL * this->_internal_adv_dis_result_size(); - for (const auto& msg : this->adv_dis_result_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *advertising_metadata_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertising_metadata_); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int64 client_flow_id = 4; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_reason()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_stop_reason()); } - // optional .location.nearby.proto.connections.DeviceType device_type = 8; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - + } + { // optional .location.nearby.proto.connections.SupportedService supported_service = 9; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_supported_service()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_AdvertisingPhase::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_AdvertisingPhase::MergeFrom(const ConnectionsLog_AdvertisingPhase& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - medium_.MergeFrom(from.medium_); - received_connection_request_.MergeFrom(from.received_connection_request_); - adv_dis_result_.MergeFrom(from.adv_dis_result_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_advertising_metadata()->::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata::MergeFrom(from._internal_advertising_metadata()); - } - if (cached_has_bits & 0x00000002u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000004u) { - client_flow_id_ = from.client_flow_id_; - } - if (cached_has_bits & 0x00000008u) { - stop_reason_ = from.stop_reason_; - } - if (cached_has_bits & 0x00000010u) { - device_type_ = from.device_type_; - } - if (cached_has_bits & 0x00000020u) { - supported_service_ = from.supported_service_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_AdvertisingPhase::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_AdvertisingPhase::IsInitialized() const { - return true; -} -void ConnectionsLog_AdvertisingPhase::InternalSwap(ConnectionsLog_AdvertisingPhase* other) { - using std::swap; +void ConnectionsLog_AdvertisingPhase::InternalSwap(ConnectionsLog_AdvertisingPhase* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - medium_.InternalSwap(&other->medium_); - received_connection_request_.InternalSwap(&other->received_connection_request_); - adv_dis_result_.InternalSwap(&other->adv_dis_result_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, supported_service_) - + sizeof(ConnectionsLog_AdvertisingPhase::supported_service_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, advertising_metadata_)>( - reinterpret_cast(&advertising_metadata_), - reinterpret_cast(&other->advertising_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(&_impl_.advertising_metadata_), + reinterpret_cast(&other->_impl_.advertising_metadata_)); } -std::string ConnectionsLog_AdvertisingPhase::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase"; -} - - // =================================================================== class ConnectionsLog_ConnectionRequest::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_request_delay_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_local_response(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_remote_response(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, _impl_._has_bits_); }; -ConnectionsLog_ConnectionRequest::ConnectionsLog_ConnectionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_ConnectionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); +inline void ConnectionsLog_ConnectionRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_ConnectionRequest::SharedDtor(MessageLite& self) { + ConnectionsLog_ConnectionRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_ConnectionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_ConnectionRequest::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_ConnectionRequest::ArenaDtor(void* object) { - ConnectionsLog_ConnectionRequest* _this = reinterpret_cast< ConnectionsLog_ConnectionRequest* >(object); - (void)_this; -} -void ConnectionsLog_ConnectionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_ConnectionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionRequest_class_data_ = + ConnectionsLog_ConnectionRequest::InternalGenerateClassData_(); -void ConnectionsLog_ConnectionRequest::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.client_flow_id_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_ConnectionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 request_delay_millis = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_request_delay_millis(&has_bits); - request_delay_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionRequestResponse_IsValid(val))) { - _internal_set_local_response(static_cast<::location::nearby::proto::connections::ConnectionRequestResponse>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionRequestResponse_IsValid(val))) { - _internal_set_remote_response(static_cast<::location::nearby::proto::connections::ConnectionRequestResponse>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_ConnectionRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_request_delay_millis(), target); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_local_response(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_local_response(), target); } // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_remote_response(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_remote_response(), target); } // optional int64 client_flow_id = 5; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_client_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( + stream, this_._internal_client_flow_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_ConnectionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_ConnectionRequest::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_ConnectionRequest& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int64 request_delay_millis = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_request_delay_millis()); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_local_response()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_local_response()); } - // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_remote_response()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_remote_response()); } - // optional int64 client_flow_id = 5; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_client_flow_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_ConnectionRequest::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_ConnectionRequest::MergeFrom(const ConnectionsLog_ConnectionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000002u) { - request_delay_millis_ = from.request_delay_millis_; - } - if (cached_has_bits & 0x00000004u) { - local_response_ = from.local_response_; - } - if (cached_has_bits & 0x00000008u) { - remote_response_ = from.remote_response_; - } - if (cached_has_bits & 0x00000010u) { - client_flow_id_ = from.client_flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_ConnectionRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_ConnectionRequest::IsInitialized() const { - return true; -} -void ConnectionsLog_ConnectionRequest::InternalSwap(ConnectionsLog_ConnectionRequest* other) { - using std::swap; +void ConnectionsLog_ConnectionRequest::InternalSwap(ConnectionsLog_ConnectionRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, client_flow_id_) - + sizeof(ConnectionsLog_ConnectionRequest::client_flow_id_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionRequest, duration_millis_)>( - reinterpret_cast(&duration_millis_), - reinterpret_cast(&other->duration_millis_)); + 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(&_impl_.duration_millis_), + reinterpret_cast(&other->_impl_.duration_millis_)); } -std::string ConnectionsLog_ConnectionRequest::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest"; -} - - // =================================================================== class ConnectionsLog_ConnectionAttempt::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_direction(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_attempt_result(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_connection_token(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& connection_attempt_metadata(const ConnectionsLog_ConnectionAttempt* msg); - static void set_has_connection_attempt_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result(const ConnectionsLog_ConnectionAttempt* msg); - static void set_has_operation_result(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_connection_mode(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_supported_service(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_wifi_connection_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_device_attestation_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& -ConnectionsLog_ConnectionAttempt::_Internal::connection_attempt_metadata(const ConnectionsLog_ConnectionAttempt* msg) { - return *msg->connection_attempt_metadata_; -} -const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& -ConnectionsLog_ConnectionAttempt::_Internal::operation_result(const ConnectionsLog_ConnectionAttempt* msg) { - return *msg->operation_result_; -} -ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(const ConnectionsLog_ConnectionAttempt& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connection_token()) { - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_token(), - GetArenaForAllocation()); - } - if (from._internal_has_connection_attempt_metadata()) { - connection_attempt_metadata_ = new ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata(*from.connection_attempt_metadata_); - } else { - connection_attempt_metadata_ = nullptr; - } - if (from._internal_has_operation_result()) { - operation_result_ = new ::location::nearby::analytics::proto::ConnectionsLog_OperationResult(*from.operation_result_); - } else { - operation_result_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&connection_attempt_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&connection_attempt_metadata_)) + sizeof(supported_service_)); +inline void ConnectionsLog_ConnectionAttempt::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_ConnectionAttempt::SharedDtor(MessageLite& self) { + ConnectionsLog_ConnectionAttempt& this_ = static_cast(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 ConnectionsLog_ConnectionAttempt::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - connection_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete connection_attempt_metadata_; - if (this != internal_default_instance()) delete operation_result_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_ConnectionAttempt::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_ConnectionAttempt::ArenaDtor(void* object) { - ConnectionsLog_ConnectionAttempt* _this = reinterpret_cast< ConnectionsLog_ConnectionAttempt* >(object); - (void)_this; -} -void ConnectionsLog_ConnectionAttempt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_ConnectionAttempt::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionAttempt_class_data_ = + ConnectionsLog_ConnectionAttempt::InternalGenerateClassData_(); -void ConnectionsLog_ConnectionAttempt::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - connection_token_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.connection_token_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(connection_attempt_metadata_ != nullptr); - connection_attempt_metadata_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.connection_attempt_metadata_ != nullptr); + _impl_.connection_attempt_metadata_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(operation_result_ != nullptr); - operation_result_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.operation_result_ != nullptr); + _impl_.operation_result_->Clear(); } } - if (cached_has_bits & 0x000000f8u) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&attempt_result_) - - reinterpret_cast(&duration_millis_)) + sizeof(attempt_result_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.attempt_result_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.attempt_result_)); } - if (cached_has_bits & 0x00003f00u) { - ::memset(&client_flow_id_, 0, static_cast( - reinterpret_cast(&supported_service_) - - reinterpret_cast(&client_flow_id_)) + sizeof(supported_service_)); + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + ::memset(&_impl_.client_flow_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.supported_service_) - + reinterpret_cast(&_impl_.client_flow_id_)) + sizeof(_impl_.supported_service_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_ConnectionAttempt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionAttemptType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::proto::connections::ConnectionAttemptType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(val))) { - _internal_set_direction(static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.Medium medium = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptResult_IsValid(val))) { - _internal_set_attempt_result(static_cast<::location::nearby::proto::connections::ConnectionAttemptResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string connection_token = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_connection_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_attempt_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_operation_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionMode_IsValid(val))) { - _internal_set_connection_mode(static_cast<::location::nearby::proto::connections::ConnectionMode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DeviceType device_type = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::connections::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.SupportedService supported_service = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SupportedService_IsValid(val))) { - _internal_set_supported_service(static_cast<::location::nearby::proto::connections::SupportedService>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 wifi_connection_latency_millis = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - _Internal::set_has_wifi_connection_latency_millis(&has_bits); - wifi_connection_latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_attestation_latency_millis = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_device_attestation_latency_millis(&has_bits); - device_attestation_latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_ConnectionAttempt::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); } // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_direction(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_direction(), target); } // optional .location.nearby.proto.connections.Medium medium = 4; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_medium(), target); } // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_attempt_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_attempt_result(), target); } // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_connection_token(), target); + 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 (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::connection_attempt_metadata(this), target, stream); + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::operation_result(this), target, stream); + 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 (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_connection_mode(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_connection_mode(), target); } // optional .location.nearby.proto.connections.DeviceType device_type = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_device_type(), target); } // optional .location.nearby.proto.connections.SupportedService supported_service = 12; - if (cached_has_bits & 0x00002000u) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 12, this->_internal_supported_service(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 12, this_._internal_supported_service(), target); } // optional int64 wifi_connection_latency_millis = 13; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(13, this->_internal_wifi_connection_latency_millis(), target); + 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 (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(14, this->_internal_device_attestation_latency_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>( + stream, this_._internal_device_attestation_latency_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_ConnectionAttempt& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string connection_token = 7; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_connection_token()); + 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 (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_attempt_metadata_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_attempt_metadata_); } - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *operation_result_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional .location.nearby.proto.connections.ConnectionAttemptType type = 2; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_direction()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_direction()); } - // optional .location.nearby.proto.connections.Medium medium = 4; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_attempt_result()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_attempt_result()); } - } - if (cached_has_bits & 0x00003f00u) { + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + 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 (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_mode()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_mode()); } - // optional .location.nearby.proto.connections.DeviceType device_type = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - // optional int64 wifi_connection_latency_millis = 13; - if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_wifi_connection_latency_millis()); + 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 (cached_has_bits & 0x00001000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_attestation_latency_millis()); + 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 (cached_has_bits & 0x00002000u) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_supported_service()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_ConnectionAttempt::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_ConnectionAttempt::MergeFrom(const ConnectionsLog_ConnectionAttempt& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_connection_token(from._internal_connection_token()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_connection_attempt_metadata()->::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata::MergeFrom(from._internal_connection_attempt_metadata()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_operation_result()->::location::nearby::analytics::proto::ConnectionsLog_OperationResult::MergeFrom(from._internal_operation_result()); - } - if (cached_has_bits & 0x00000008u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000010u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000020u) { - direction_ = from.direction_; - } - if (cached_has_bits & 0x00000040u) { - medium_ = from.medium_; - } - if (cached_has_bits & 0x00000080u) { - attempt_result_ = from.attempt_result_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_ConnectionAttempt::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00003f00u) { - if (cached_has_bits & 0x00000100u) { - client_flow_id_ = from.client_flow_id_; + ::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 (cached_has_bits & 0x00000200u) { - connection_mode_ = from.connection_mode_; + 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 (cached_has_bits & 0x00000400u) { - device_type_ = from.device_type_; + 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 (cached_has_bits & 0x00000800u) { - wifi_connection_latency_millis_ = from.wifi_connection_latency_millis_; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; } - if (cached_has_bits & 0x00001000u) { - device_attestation_latency_millis_ = from.device_attestation_latency_millis_; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.type_ = from._impl_.type_; } - if (cached_has_bits & 0x00002000u) { - supported_service_ = from.supported_service_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_ConnectionAttempt::IsInitialized() const { - return true; -} -void ConnectionsLog_ConnectionAttempt::InternalSwap(ConnectionsLog_ConnectionAttempt* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_token_, lhs_arena, - &other->connection_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, supported_service_) - + sizeof(ConnectionsLog_ConnectionAttempt::supported_service_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, connection_attempt_metadata_)>( - reinterpret_cast(&connection_attempt_metadata_), - reinterpret_cast(&other->connection_attempt_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(&_impl_.connection_attempt_metadata_), + reinterpret_cast(&other->_impl_.connection_attempt_metadata_)); } -std::string ConnectionsLog_ConnectionAttempt::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt"; -} - - // =================================================================== class ConnectionsLog_DeviceInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_device_model(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_device_platform(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_country_code(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_manufacturer(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DeviceInfo, _impl_._has_bits_); }; -ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_DeviceInfo::ConnectionsLog_DeviceInfo(const ConnectionsLog_DeviceInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - device_model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_model()) { - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_model(), - GetArenaForAllocation()); - } - country_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_country_code()) { - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_country_code(), - GetArenaForAllocation()); - } - manufacturer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_manufacturer()) { - manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_manufacturer(), - GetArenaForAllocation()); - } - device_platform_ = from.device_platform_; +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() { -device_model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -country_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -manufacturer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_platform_ = 0; +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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DeviceInfo::SharedDtor(MessageLite& self) { + ConnectionsLog_DeviceInfo& this_ = static_cast(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 ConnectionsLog_DeviceInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - device_model_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - country_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - manufacturer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DeviceInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DeviceInfo::ArenaDtor(void* object) { - ConnectionsLog_DeviceInfo* _this = reinterpret_cast< ConnectionsLog_DeviceInfo* >(object); - (void)_this; -} -void ConnectionsLog_DeviceInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DeviceInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> ConnectionsLog_DeviceInfo_class_data_ = + ConnectionsLog_DeviceInfo::InternalGenerateClassData_(); -void ConnectionsLog_DeviceInfo::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - device_model_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.device_model_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - country_code_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.country_code_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - manufacturer_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.manufacturer_.ClearNonDefaultToEmpty(); } } - device_platform_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.device_platform_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_DeviceInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string device_model = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_device_model(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform_IsValid(val))) { - _internal_set_device_platform(static_cast<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string country_code = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_country_code(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string manufacturer = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_manufacturer(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_DeviceInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string device_model = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_device_model(), target); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_device_platform(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_device_platform(), target); } // optional string country_code = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_country_code(), target); + 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 (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_manufacturer(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_manufacturer(); + target = stream->WriteStringMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DeviceInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DeviceInfo::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DeviceInfo& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string device_model = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_model()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_model()); } - // optional string country_code = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_country_code()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_country_code()); } - // optional string manufacturer = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_manufacturer()); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_platform()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_platform()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DeviceInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DeviceInfo::MergeFrom(const ConnectionsLog_DeviceInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_device_model(from._internal_device_model()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_country_code(from._internal_country_code()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_manufacturer(from._internal_manufacturer()); - } - if (cached_has_bits & 0x00000008u) { - device_platform_ = from.device_platform_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DeviceInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DeviceInfo::IsInitialized() const { - return true; -} -void ConnectionsLog_DeviceInfo::InternalSwap(ConnectionsLog_DeviceInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_model_, lhs_arena, - &other->device_model_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &country_code_, lhs_arena, - &other->country_code_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &manufacturer_, lhs_arena, - &other->manufacturer_, rhs_arena - ); - swap(device_platform_, other->device_platform_); + 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_); } -std::string ConnectionsLog_DeviceInfo::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DeviceInfo"; -} - - // =================================================================== class ConnectionsLog_DisconnectionReasonDetail::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_is_local_disconnection(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_disconnection_reason(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, _impl_._has_bits_); }; -ConnectionsLog_DisconnectionReasonDetail::ConnectionsLog_DisconnectionReasonDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_DisconnectionReasonDetail& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&is_local_disconnection_, &from.is_local_disconnection_, - static_cast(reinterpret_cast(&disconnection_reason_) - - reinterpret_cast(&is_local_disconnection_)) + sizeof(disconnection_reason_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&is_local_disconnection_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&disconnection_reason_) - - reinterpret_cast(&is_local_disconnection_)) + sizeof(disconnection_reason_)); +inline void ConnectionsLog_DisconnectionReasonDetail::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DisconnectionReasonDetail::SharedDtor(MessageLite& self) { + ConnectionsLog_DisconnectionReasonDetail& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_DisconnectionReasonDetail::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DisconnectionReasonDetail::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DisconnectionReasonDetail::ArenaDtor(void* object) { - ConnectionsLog_DisconnectionReasonDetail* _this = reinterpret_cast< ConnectionsLog_DisconnectionReasonDetail* >(object); - (void)_this; -} -void ConnectionsLog_DisconnectionReasonDetail::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DisconnectionReasonDetail::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_DisconnectionReasonDetail_class_data_ = + ConnectionsLog_DisconnectionReasonDetail::InternalGenerateClassData_(); -void ConnectionsLog_DisconnectionReasonDetail::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&is_local_disconnection_, 0, static_cast( - reinterpret_cast(&disconnection_reason_) - - reinterpret_cast(&is_local_disconnection_)) + sizeof(disconnection_reason_)); + 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(&_impl_.disconnection_reason_) - + reinterpret_cast(&_impl_.is_local_disconnection_)) + sizeof(_impl_.disconnection_reason_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_DisconnectionReasonDetail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool is_local_disconnection = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_is_local_disconnection(&has_bits); - is_local_disconnection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(val))) { - _internal_set_disconnection_reason(static_cast<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_DisconnectionReasonDetail::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool is_local_disconnection = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_is_local_disconnection(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_is_local_disconnection(), target); } // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_disconnection_reason(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_disconnection_reason(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DisconnectionReasonDetail::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DisconnectionReasonDetail::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DisconnectionReasonDetail& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bool is_local_disconnection = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000001U & cached_has_bits) * 2; + { // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_disconnection_reason()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_disconnection_reason()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DisconnectionReasonDetail::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DisconnectionReasonDetail::MergeFrom(const ConnectionsLog_DisconnectionReasonDetail& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - is_local_disconnection_ = from.is_local_disconnection_; - } - if (cached_has_bits & 0x00000002u) { - disconnection_reason_ = from.disconnection_reason_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DisconnectionReasonDetail::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DisconnectionReasonDetail::IsInitialized() const { - return true; -} -void ConnectionsLog_DisconnectionReasonDetail::InternalSwap(ConnectionsLog_DisconnectionReasonDetail* other) { - using std::swap; +void ConnectionsLog_DisconnectionReasonDetail::InternalSwap(ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, disconnection_reason_) - + sizeof(ConnectionsLog_DisconnectionReasonDetail::disconnection_reason_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DisconnectionReasonDetail, is_local_disconnection_)>( - reinterpret_cast(&is_local_disconnection_), - reinterpret_cast(&other->is_local_disconnection_)); + 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(&_impl_.is_local_disconnection_), + reinterpret_cast(&other->_impl_.is_local_disconnection_)); } -std::string ConnectionsLog_DisconnectionReasonDetail::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail"; -} - - // =================================================================== class ConnectionsLog_EstablishedConnection::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_disconnection_reason(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_connection_token(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_safe_disconnection_result(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result(const ConnectionsLog_EstablishedConnection* msg); - static void set_has_operation_result(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& remote_device_info(const ConnectionsLog_EstablishedConnection* msg); - static void set_has_remote_device_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& disconnection_reason_detail(const ConnectionsLog_EstablishedConnection* msg); - static void set_has_disconnection_reason_detail(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_supported_service(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& -ConnectionsLog_EstablishedConnection::_Internal::operation_result(const ConnectionsLog_EstablishedConnection* msg) { - return *msg->operation_result_; -} -const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& -ConnectionsLog_EstablishedConnection::_Internal::remote_device_info(const ConnectionsLog_EstablishedConnection* msg) { - return *msg->remote_device_info_; -} -const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& -ConnectionsLog_EstablishedConnection::_Internal::disconnection_reason_detail(const ConnectionsLog_EstablishedConnection* msg) { - return *msg->disconnection_reason_detail_; -} -ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - sent_payload_(arena), - received_payload_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(const ConnectionsLog_EstablishedConnection& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - sent_payload_(from.sent_payload_), - received_payload_(from.received_payload_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connection_token()) { - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_token(), - GetArenaForAllocation()); - } - if (from._internal_has_operation_result()) { - operation_result_ = new ::location::nearby::analytics::proto::ConnectionsLog_OperationResult(*from.operation_result_); - } else { - operation_result_ = nullptr; - } - if (from._internal_has_remote_device_info()) { - remote_device_info_ = new ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo(*from.remote_device_info_); - } else { - remote_device_info_ = nullptr; - } - if (from._internal_has_disconnection_reason_detail()) { - disconnection_reason_detail_ = new ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail(*from.disconnection_reason_detail_); - } else { - disconnection_reason_detail_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&operation_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&operation_result_)) + sizeof(supported_service_)); +inline void ConnectionsLog_EstablishedConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_EstablishedConnection::SharedDtor(MessageLite& self) { + ConnectionsLog_EstablishedConnection& this_ = static_cast(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 ConnectionsLog_EstablishedConnection::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - connection_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete operation_result_; - if (this != internal_default_instance()) delete remote_device_info_; - if (this != internal_default_instance()) delete disconnection_reason_detail_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_EstablishedConnection::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_EstablishedConnection::ArenaDtor(void* object) { - ConnectionsLog_EstablishedConnection* _this = reinterpret_cast< ConnectionsLog_EstablishedConnection* >(object); - (void)_this; -} -void ConnectionsLog_EstablishedConnection::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_EstablishedConnection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<69> ConnectionsLog_EstablishedConnection_class_data_ = + ConnectionsLog_EstablishedConnection::InternalGenerateClassData_(); -void ConnectionsLog_EstablishedConnection::Clear() { +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) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sent_payload_.Clear(); - received_payload_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - connection_token_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.sent_payload_.Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(operation_result_ != nullptr); - operation_result_->Clear(); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.received_payload_.Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(remote_device_info_ != nullptr); - remote_device_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.connection_token_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(disconnection_reason_detail_ != nullptr); - disconnection_reason_detail_->Clear(); + 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 (cached_has_bits & 0x000000f0u) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.medium_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.medium_)); } - if (cached_has_bits & 0x00000f00u) { - ::memset(&type_, 0, static_cast( - reinterpret_cast(&supported_service_) - - reinterpret_cast(&type_)) + sizeof(supported_service_)); + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + ::memset(&_impl_.disconnection_reason_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.supported_service_) - + reinterpret_cast(&_impl_.disconnection_reason_)) + sizeof(_impl_.supported_service_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_EstablishedConnection::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.Medium medium = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_sent_payload(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_received_payload(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DisconnectionReason_IsValid(val))) { - _internal_set_disconnection_reason(static_cast<::location::nearby::proto::connections::DisconnectionReason>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string connection_token = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_connection_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::proto::connections::ConnectionAttemptType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(val))) { - _internal_set_safe_disconnection_result(static_cast<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_operation_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_remote_device_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_disconnection_reason_detail(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DeviceType device_type = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::connections::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.SupportedService supported_service = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SupportedService_IsValid(val))) { - _internal_set_supported_service(static_cast<::location::nearby::proto::connections::SupportedService>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_medium(), target); } // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_sent_payload_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_sent_payload(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + 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; - for (unsigned int i = 0, - n = static_cast(this->_internal_received_payload_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_received_payload(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + for (unsigned i = 0, n = static_cast( + 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 (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_disconnection_reason(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_disconnection_reason(), target); } // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_connection_token(), target); + 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 (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 8, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_type(), target); } // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_safe_disconnection_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_safe_disconnection_result(), target); } // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::operation_result(this), target, stream); + 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 (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::remote_device_info(this), target, stream); + 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 (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::disconnection_reason_detail(this), target, stream); + 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 (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 13, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 13, this_._internal_device_type(), target); } // optional .location.nearby.proto.connections.SupportedService supported_service = 14; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 14, this->_internal_supported_service(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 14, this_._internal_supported_service(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_EstablishedConnection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_EstablishedConnection::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_EstablishedConnection& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; - total_size += 1UL * this->_internal_sent_payload_size(); - for (const auto& msg : this->sent_payload_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4; - total_size += 1UL * this->_internal_received_payload_size(); - for (const auto& msg : this->received_payload_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_connection_token()); + 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 (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *operation_result_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_); } - // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *remote_device_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remote_device_info_); } - // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *disconnection_reason_detail_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.disconnection_reason_detail_); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional .location.nearby.proto.connections.Medium medium = 2; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_disconnection_reason()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_disconnection_reason()); } - // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_client_flow_id()); } - - } - if (cached_has_bits & 0x00000f00u) { // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_safe_disconnection_result()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_safe_disconnection_result()); } - // optional .location.nearby.proto.connections.DeviceType device_type = 13; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - // optional .location.nearby.proto.connections.SupportedService supported_service = 14; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_supported_service()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_service()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_EstablishedConnection::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_EstablishedConnection::MergeFrom(const ConnectionsLog_EstablishedConnection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - sent_payload_.MergeFrom(from.sent_payload_); - received_payload_.MergeFrom(from.received_payload_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_connection_token(from._internal_connection_token()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_operation_result()->::location::nearby::analytics::proto::ConnectionsLog_OperationResult::MergeFrom(from._internal_operation_result()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_remote_device_info()->::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo::MergeFrom(from._internal_remote_device_info()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_disconnection_reason_detail()->::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail::MergeFrom(from._internal_disconnection_reason_detail()); - } - if (cached_has_bits & 0x00000010u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000020u) { - medium_ = from.medium_; - } - if (cached_has_bits & 0x00000040u) { - disconnection_reason_ = from.disconnection_reason_; - } - if (cached_has_bits & 0x00000080u) { - client_flow_id_ = from.client_flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_EstablishedConnection::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - type_ = from.type_; + ::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 (cached_has_bits & 0x00000200u) { - safe_disconnection_result_ = from.safe_disconnection_result_; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_received_payload()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_received_payload()); } - if (cached_has_bits & 0x00000400u) { - device_type_ = from.device_type_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_connection_token(from._internal_connection_token()); } - if (cached_has_bits & 0x00000800u) { - supported_service_ = from.supported_service_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_EstablishedConnection::IsInitialized() const { - return true; -} -void ConnectionsLog_EstablishedConnection::InternalSwap(ConnectionsLog_EstablishedConnection* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - sent_payload_.InternalSwap(&other->sent_payload_); - received_payload_.InternalSwap(&other->received_payload_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_token_, lhs_arena, - &other->connection_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, supported_service_) - + sizeof(ConnectionsLog_EstablishedConnection::supported_service_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, operation_result_)>( - reinterpret_cast(&operation_result_), - reinterpret_cast(&other->operation_result_)); + 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(&_impl_.operation_result_), + reinterpret_cast(&other->_impl_.operation_result_)); } -std::string ConnectionsLog_EstablishedConnection::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection"; -} - - // =================================================================== class ConnectionsLog_DctPayloadTransferStats::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_is_multipart(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_num_parts_success(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_num_parts_failure(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_is_resumption(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, _impl_._has_bits_); }; -ConnectionsLog_DctPayloadTransferStats::ConnectionsLog_DctPayloadTransferStats(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_DctPayloadTransferStats& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&type_, &from.type_, - static_cast(reinterpret_cast(&num_parts_failure_) - - reinterpret_cast(&type_)) + sizeof(num_parts_failure_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&num_parts_failure_) - - reinterpret_cast(&type_)) + sizeof(num_parts_failure_)); +inline void ConnectionsLog_DctPayloadTransferStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DctPayloadTransferStats::SharedDtor(MessageLite& self) { + ConnectionsLog_DctPayloadTransferStats& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_DctPayloadTransferStats::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DctPayloadTransferStats::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DctPayloadTransferStats::ArenaDtor(void* object) { - ConnectionsLog_DctPayloadTransferStats* _this = reinterpret_cast< ConnectionsLog_DctPayloadTransferStats* >(object); - (void)_this; -} -void ConnectionsLog_DctPayloadTransferStats::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DctPayloadTransferStats::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_DctPayloadTransferStats_class_data_ = + ConnectionsLog_DctPayloadTransferStats::InternalGenerateClassData_(); -void ConnectionsLog_DctPayloadTransferStats::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&type_, 0, static_cast( - reinterpret_cast(&num_parts_failure_) - - reinterpret_cast(&type_)) + sizeof(num_parts_failure_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_parts_failure_) - + reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.num_parts_failure_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_DctPayloadTransferStats::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.DctPayloadType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DctPayloadType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::proto::connections::DctPayloadType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool is_multipart = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_is_multipart(&has_bits); - is_multipart_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 num_parts_success = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_num_parts_success(&has_bits); - num_parts_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 num_parts_failure = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_num_parts_failure(&has_bits); - num_parts_failure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_resumption = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_is_resumption(&has_bits); - is_resumption_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_DctPayloadTransferStats::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.DctPayloadType type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional bool is_multipart = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_is_multipart(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_is_multipart(), target); } // optional int32 num_parts_success = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_num_parts_success(), target); + 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 (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_num_parts_failure(), target); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_resumption(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_resumption(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DctPayloadTransferStats::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DctPayloadTransferStats::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DctPayloadTransferStats& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_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 (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional int32 num_parts_success = 3; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_parts_success()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_parts_success()); } - - // optional bool is_multipart = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - - // optional bool is_resumption = 5; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - // optional int32 num_parts_failure = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_parts_failure()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_parts_failure()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DctPayloadTransferStats::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DctPayloadTransferStats::MergeFrom(const ConnectionsLog_DctPayloadTransferStats& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000002u) { - num_parts_success_ = from.num_parts_success_; - } - if (cached_has_bits & 0x00000004u) { - is_multipart_ = from.is_multipart_; - } - if (cached_has_bits & 0x00000008u) { - is_resumption_ = from.is_resumption_; - } - if (cached_has_bits & 0x00000010u) { - num_parts_failure_ = from.num_parts_failure_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DctPayloadTransferStats::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DctPayloadTransferStats::IsInitialized() const { - return true; -} -void ConnectionsLog_DctPayloadTransferStats::InternalSwap(ConnectionsLog_DctPayloadTransferStats* other) { - using std::swap; +void ConnectionsLog_DctPayloadTransferStats::InternalSwap(ConnectionsLog_DctPayloadTransferStats* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, num_parts_failure_) - + sizeof(ConnectionsLog_DctPayloadTransferStats::num_parts_failure_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DctPayloadTransferStats, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_)); + 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(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_)); } -std::string ConnectionsLog_DctPayloadTransferStats::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats"; -} - - // =================================================================== class ConnectionsLog_Payload::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_total_size_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_num_bytes_transferred(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_num_chunks(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_num_successful_auto_resume(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result(const ConnectionsLog_Payload* msg); - static void set_has_operation_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_num_failed_auto_resume(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& dct_payload_transfer_stats(const ConnectionsLog_Payload* msg); - static void set_has_dct_payload_transfer_stats(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& -ConnectionsLog_Payload::_Internal::operation_result(const ConnectionsLog_Payload* msg) { - return *msg->operation_result_; -} -const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& -ConnectionsLog_Payload::_Internal::dct_payload_transfer_stats(const ConnectionsLog_Payload* msg) { - return *msg->dct_payload_transfer_stats_; -} -ConnectionsLog_Payload::ConnectionsLog_Payload(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_Payload::ConnectionsLog_Payload(const ConnectionsLog_Payload& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_operation_result()) { - operation_result_ = new ::location::nearby::analytics::proto::ConnectionsLog_OperationResult(*from.operation_result_); - } else { - operation_result_ = nullptr; - } - if (from._internal_has_dct_payload_transfer_stats()) { - dct_payload_transfer_stats_ = new ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats(*from.dct_payload_transfer_stats_); - } else { - dct_payload_transfer_stats_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&num_failed_auto_resume_) - - reinterpret_cast(&duration_millis_)) + sizeof(num_failed_auto_resume_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&operation_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&num_failed_auto_resume_) - - reinterpret_cast(&operation_result_)) + sizeof(num_failed_auto_resume_)); +inline void ConnectionsLog_Payload::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_Payload::SharedDtor(MessageLite& self) { + ConnectionsLog_Payload& this_ = static_cast(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 ConnectionsLog_Payload::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete operation_result_; - if (this != internal_default_instance()) delete dct_payload_transfer_stats_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_Payload::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_Payload::ArenaDtor(void* object) { - ConnectionsLog_Payload* _this = reinterpret_cast< ConnectionsLog_Payload* >(object); - (void)_this; -} -void ConnectionsLog_Payload::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_Payload::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> ConnectionsLog_Payload_class_data_ = + ConnectionsLog_Payload::InternalGenerateClassData_(); -void ConnectionsLog_Payload::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(operation_result_ != nullptr); - operation_result_->Clear(); + 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 (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(dct_payload_transfer_stats_ != nullptr); - dct_payload_transfer_stats_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.dct_payload_transfer_stats_ != nullptr); + _impl_.dct_payload_transfer_stats_->Clear(); } } - if (cached_has_bits & 0x000000fcu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&duration_millis_)) + sizeof(status_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.status_)); } - if (cached_has_bits & 0x00000300u) { - ::memset(&num_successful_auto_resume_, 0, static_cast( - reinterpret_cast(&num_failed_auto_resume_) - - reinterpret_cast(&num_successful_auto_resume_)) + sizeof(num_failed_auto_resume_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.num_successful_auto_resume_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_failed_auto_resume_) - + reinterpret_cast(&_impl_.num_successful_auto_resume_)) + sizeof(_impl_.num_failed_auto_resume_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_Payload::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 duration_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.PayloadType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PayloadType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::proto::connections::PayloadType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 total_size_bytes = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_total_size_bytes(&has_bits); - total_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 num_bytes_transferred = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_num_bytes_transferred(&has_bits); - num_bytes_transferred_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 num_chunks = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_num_chunks(&has_bits); - num_chunks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.PayloadStatus status = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PayloadStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::connections::PayloadStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 num_successful_auto_resume = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_num_successful_auto_resume(&has_bits); - num_successful_auto_resume_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_operation_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 num_failed_auto_resume = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_num_failed_auto_resume(&has_bits); - num_failed_auto_resume_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_dct_payload_transfer_stats(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_Payload::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); } // optional int64 total_size_bytes = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_total_size_bytes(), target); + 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 (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_num_bytes_transferred(), target); + 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 (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_num_chunks(), target); + 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 (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_status(), target); } // optional int32 num_successful_auto_resume = 7; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_num_successful_auto_resume(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::operation_result(this), target, stream); + 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 (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_num_failed_auto_resume(), target); + 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 (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::dct_payload_transfer_stats(this), target, stream); + 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 (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_Payload::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.Payload) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_Payload::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_Payload& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_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 (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *operation_result_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_); } - // optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *dct_payload_transfer_stats_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dct_payload_transfer_stats_); } - // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int64 total_size_bytes = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_total_size_bytes()); + 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 (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional int32 num_chunks = 5; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_chunks()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_chunks()); } - // optional int64 num_bytes_transferred = 4; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_num_bytes_transferred()); + 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 (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - } - if (cached_has_bits & 0x00000300u) { + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { // optional int32 num_successful_auto_resume = 7; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_successful_auto_resume()); + 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 (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_failed_auto_resume()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_failed_auto_resume()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_Payload::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_Payload::MergeFrom(const ConnectionsLog_Payload& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.Payload) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_operation_result()->::location::nearby::analytics::proto::ConnectionsLog_OperationResult::MergeFrom(from._internal_operation_result()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_dct_payload_transfer_stats()->::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats::MergeFrom(from._internal_dct_payload_transfer_stats()); - } - if (cached_has_bits & 0x00000004u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000008u) { - total_size_bytes_ = from.total_size_bytes_; - } - if (cached_has_bits & 0x00000010u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000020u) { - num_chunks_ = from.num_chunks_; - } - if (cached_has_bits & 0x00000040u) { - num_bytes_transferred_ = from.num_bytes_transferred_; - } - if (cached_has_bits & 0x00000080u) { - status_ = from.status_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_Payload::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - num_successful_auto_resume_ = from.num_successful_auto_resume_; + ::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 (cached_has_bits & 0x00000200u) { - num_failed_auto_resume_ = from.num_failed_auto_resume_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.Payload) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_Payload::IsInitialized() const { - return true; -} -void ConnectionsLog_Payload::InternalSwap(ConnectionsLog_Payload* other) { - using std::swap; +void ConnectionsLog_Payload::InternalSwap(ConnectionsLog_Payload* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, num_failed_auto_resume_) - + sizeof(ConnectionsLog_Payload::num_failed_auto_resume_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_Payload, operation_result_)>( - reinterpret_cast(&operation_result_), - reinterpret_cast(&other->operation_result_)); + 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(&_impl_.operation_result_), + reinterpret_cast(&other->_impl_.operation_result_)); } -std::string ConnectionsLog_Payload::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.Payload"; -} - - // =================================================================== class ConnectionsLog_BandwidthUpgradeAttempt::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_direction(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_from_medium(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_to_medium(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_upgrade_result(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_error_stage(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_client_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_connection_token(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result(const ConnectionsLog_BandwidthUpgradeAttempt* msg); - static void set_has_operation_result(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_supported_service(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& -ConnectionsLog_BandwidthUpgradeAttempt::_Internal::operation_result(const ConnectionsLog_BandwidthUpgradeAttempt* msg) { - return *msg->operation_result_; -} -ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(const ConnectionsLog_BandwidthUpgradeAttempt& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connection_token()) { - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_token(), - GetArenaForAllocation()); - } - if (from._internal_has_operation_result()) { - operation_result_ = new ::location::nearby::analytics::proto::ConnectionsLog_OperationResult(*from.operation_result_); - } else { - operation_result_ = nullptr; - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&duration_millis_)) + sizeof(supported_service_)); +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(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&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() { -connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&operation_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supported_service_) - - reinterpret_cast(&operation_result_)) + sizeof(supported_service_)); +inline void ConnectionsLog_BandwidthUpgradeAttempt::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::SharedDtor(MessageLite& self) { + ConnectionsLog_BandwidthUpgradeAttempt& this_ = static_cast(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 ConnectionsLog_BandwidthUpgradeAttempt::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - connection_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete operation_result_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_BandwidthUpgradeAttempt::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_BandwidthUpgradeAttempt::ArenaDtor(void* object) { - ConnectionsLog_BandwidthUpgradeAttempt* _this = reinterpret_cast< ConnectionsLog_BandwidthUpgradeAttempt* >(object); - (void)_this; -} -void ConnectionsLog_BandwidthUpgradeAttempt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_BandwidthUpgradeAttempt::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_BandwidthUpgradeAttempt_class_data_ = + ConnectionsLog_BandwidthUpgradeAttempt::InternalGenerateClassData_(); -void ConnectionsLog_BandwidthUpgradeAttempt::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - connection_token_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.connection_token_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(operation_result_ != nullptr); - operation_result_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.operation_result_ != nullptr); + _impl_.operation_result_->Clear(); } } - if (cached_has_bits & 0x000000fcu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.client_flow_id_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.client_flow_id_)); } - if (cached_has_bits & 0x00000700u) { - ::memset(&error_stage_, 0, static_cast( - reinterpret_cast(&supported_service_) - - reinterpret_cast(&error_stage_)) + sizeof(supported_service_)); + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + ::memset(&_impl_.error_stage_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_ipv6_only_interfaces_) - + reinterpret_cast(&_impl_.error_stage_)) + sizeof(_impl_.num_ipv6_only_interfaces_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_BandwidthUpgradeAttempt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(val))) { - _internal_set_direction(static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.Medium from_medium = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_from_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.Medium to_medium = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_to_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::BandwidthUpgradeResult_IsValid(val))) { - _internal_set_upgrade_result(static_cast<::location::nearby::proto::connections::BandwidthUpgradeResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::BandwidthUpgradeErrorStage_IsValid(val))) { - _internal_set_error_stage(static_cast<::location::nearby::proto::connections::BandwidthUpgradeErrorStage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 client_flow_id = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_client_flow_id(&has_bits); - client_flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string connection_token = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_connection_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_operation_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::connections::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::SupportedService_IsValid(val))) { - _internal_set_supported_service(static_cast<::location::nearby::proto::connections::SupportedService>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_BandwidthUpgradeAttempt::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_direction(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_direction(), target); } // optional int64 duration_millis = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_duration_millis(), target); + 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 (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_from_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_from_medium(), target); } // optional .location.nearby.proto.connections.Medium to_medium = 4; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_to_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_to_medium(), target); } // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_upgrade_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_upgrade_result(), target); } // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_error_stage(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_error_stage(), target); } // optional int64 client_flow_id = 7; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_client_flow_id(), target); + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 8, this->_internal_connection_token(), target); + 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 (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::operation_result(this), target, stream); + 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 (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_device_type(), target); } // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_supported_service(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_supported_service(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), 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(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; } -size_t ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_BandwidthUpgradeAttempt& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string connection_token = 8; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_connection_token()); + 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 (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *operation_result_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.operation_result_); } - // optional int64 duration_millis = 2; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_direction()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_direction()); } - // optional .location.nearby.proto.connections.Medium from_medium = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_from_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_from_medium()); } - // optional .location.nearby.proto.connections.Medium to_medium = 4; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_to_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_to_medium()); } - // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_upgrade_result()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_upgrade_result()); } - // optional int64 client_flow_id = 7; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_client_flow_id()); } - } - if (cached_has_bits & 0x00000700u) { + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_stage()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_error_stage()); } - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_supported_service()); + ::_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 (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_BandwidthUpgradeAttempt::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_BandwidthUpgradeAttempt::MergeFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_connection_token(from._internal_connection_token()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_operation_result()->::location::nearby::analytics::proto::ConnectionsLog_OperationResult::MergeFrom(from._internal_operation_result()); - } - if (cached_has_bits & 0x00000004u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000008u) { - direction_ = from.direction_; - } - if (cached_has_bits & 0x00000010u) { - from_medium_ = from.from_medium_; - } - if (cached_has_bits & 0x00000020u) { - to_medium_ = from.to_medium_; - } - if (cached_has_bits & 0x00000040u) { - upgrade_result_ = from.upgrade_result_; - } - if (cached_has_bits & 0x00000080u) { - client_flow_id_ = from.client_flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_BandwidthUpgradeAttempt::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { - error_stage_ = from.error_stage_; + ::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 (cached_has_bits & 0x00000200u) { - device_type_ = from.device_type_; + 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 (cached_has_bits & 0x00000400u) { - supported_service_ = from.supported_service_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_BandwidthUpgradeAttempt::IsInitialized() const { - return true; -} -void ConnectionsLog_BandwidthUpgradeAttempt::InternalSwap(ConnectionsLog_BandwidthUpgradeAttempt* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_token_, lhs_arena, - &other->connection_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, supported_service_) - + sizeof(ConnectionsLog_BandwidthUpgradeAttempt::supported_service_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, operation_result_)>( - reinterpret_cast(&operation_result_), - reinterpret_cast(&other->operation_result_)); + 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(&_impl_.operation_result_), + reinterpret_cast(&other->_impl_.operation_result_)); } -std::string ConnectionsLog_BandwidthUpgradeAttempt::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt"; -} - - // =================================================================== class ConnectionsLog_ErrorCode::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_direction(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_service_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_description(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_connection_token(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._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(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode(const ConnectionsLog_ErrorCode& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id()) { - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id(), - GetArenaForAllocation()); - } - connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_connection_token()) { - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_token(), - GetArenaForAllocation()); - } - ::memcpy(&direction_, &from.direction_, - static_cast(reinterpret_cast(&flow_id_) - - reinterpret_cast(&direction_)) + sizeof(flow_id_)); - clear_has_ErrorCodeDetail(); - switch (from.ErrorCodeDetail_case()) { - case kCommonError: { - _internal_set_common_error(from._internal_common_error()); +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(&_impl_) + + offsetof(Impl_, direction_), + reinterpret_cast(&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 kStartAdvertisingError: { - _internal_set_start_advertising_error(from._internal_start_advertising_error()); - break; - } - case kStartDiscoveringError: { - _internal_set_start_discovering_error(from._internal_start_discovering_error()); - break; - } - case kStopAdvertisingError: { - _internal_set_stop_advertising_error(from._internal_stop_advertising_error()); - break; - } - case kStopDiscoveringError: { - _internal_set_stop_discovering_error(from._internal_stop_discovering_error()); - break; - } - case kStartListeningIncomingConnectionError: { - _internal_set_start_listening_incoming_connection_error(from._internal_start_listening_incoming_connection_error()); - break; - } - case kStopListeningIncomingConnectionError: { - _internal_set_stop_listening_incoming_connection_error(from._internal_stop_listening_incoming_connection_error()); - break; - } - case kConnectError: { - _internal_set_connect_error(from._internal_connect_error()); - break; - } - case kDisconnectError: { - _internal_set_disconnect_error(from._internal_disconnect_error()); - break; - } - case kSendPayloadError: { - _internal_set_send_payload_error(from._internal_send_payload_error()); - break; - } - case kReceivePayloadError: { - _internal_set_receive_payload_error(from._internal_receive_payload_error()); - break; - } - case kUpgradeError: { - _internal_set_upgrade_error(from._internal_upgrade_error()); - break; - } - case kAcceptConnectionError: { - _internal_set_accept_connection_error(from._internal_accept_connection_error()); - break; - } - case kRejectConnectionError: { - _internal_set_reject_connection_error(from._internal_reject_connection_error()); - break; - } - 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() { -service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&direction_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&flow_id_) - - reinterpret_cast(&direction_)) + sizeof(flow_id_)); -clear_has_ErrorCodeDetail(); +inline void ConnectionsLog_ErrorCode::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void ConnectionsLog_ErrorCode::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - connection_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (has_ErrorCodeDetail()) { - clear_ErrorCodeDetail(); +inline void ConnectionsLog_ErrorCode::SharedDtor(MessageLite& self) { + ConnectionsLog_ErrorCode& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void ConnectionsLog_ErrorCode::ArenaDtor(void* object) { - ConnectionsLog_ErrorCode* _this = reinterpret_cast< ConnectionsLog_ErrorCode* >(object); - (void)_this; -} -void ConnectionsLog_ErrorCode::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_ErrorCode::SetCachedSize(int size) const { - _cached_size_.Set(size); + 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 @@ -8049,2619 +8698,2373 @@ void ConnectionsLog_ErrorCode::clear_ErrorCodeDetail() { break; } } - _oneof_case_[0] = ERRORCODEDETAIL_NOT_SET; + _impl_._oneof_case_[0] = ERRORCODEDETAIL_NOT_SET; } -void ConnectionsLog_ErrorCode::Clear() { +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_ErrorCode::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - service_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - connection_token_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.connection_token_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000007cu) { - ::memset(&direction_, 0, static_cast( - reinterpret_cast(&flow_id_) - - reinterpret_cast(&direction_)) + sizeof(flow_id_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) { + ::memset(&_impl_.direction_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.flow_id_) - + reinterpret_cast(&_impl_.direction_)) + sizeof(_impl_.flow_id_)); } clear_ErrorCodeDetail(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_ErrorCode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(val))) { - _internal_set_direction(static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string service_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_service_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.Medium medium = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::proto::connections::Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.errorcode.proto.Event event = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::Event_IsValid(val))) { - _internal_set_event(static_cast<::location::nearby::errorcode::proto::Event>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.errorcode.proto.Description description = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::Description_IsValid(val))) { - _internal_set_description(static_cast<::location::nearby::errorcode::proto::Description>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 flow_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.CommonError common_error = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::CommonError_IsValid(val))) { - _internal_set_common_error(static_cast<::location::nearby::errorcode::proto::CommonError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StartAdvertisingError_IsValid(val))) { - _internal_set_start_advertising_error(static_cast<::location::nearby::errorcode::proto::StartAdvertisingError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StartDiscoveringError_IsValid(val))) { - _internal_set_start_discovering_error(static_cast<::location::nearby::errorcode::proto::StartDiscoveringError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StopAdvertisingError_IsValid(val))) { - _internal_set_stop_advertising_error(static_cast<::location::nearby::errorcode::proto::StopAdvertisingError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StopDiscoveringError_IsValid(val))) { - _internal_set_stop_discovering_error(static_cast<::location::nearby::errorcode::proto::StopDiscoveringError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StartListeningIncomingConnectionError start_listening_incoming_connection_error = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError_IsValid(val))) { - _internal_set_start_listening_incoming_connection_error(static_cast<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.StopListeningIncomingConnectionError stop_listening_incoming_connection_error = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError_IsValid(val))) { - _internal_set_stop_listening_incoming_connection_error(static_cast<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.ConnectError connect_error = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::ConnectError_IsValid(val))) { - _internal_set_connect_error(static_cast<::location::nearby::errorcode::proto::ConnectError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::DisconnectError_IsValid(val))) { - _internal_set_disconnect_error(static_cast<::location::nearby::errorcode::proto::DisconnectError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string connection_token = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - auto str = _internal_mutable_connection_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::SendPayloadError_IsValid(val))) { - _internal_set_send_payload_error(static_cast<::location::nearby::errorcode::proto::SendPayloadError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(17, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::ReceivePayloadError_IsValid(val))) { - _internal_set_receive_payload_error(static_cast<::location::nearby::errorcode::proto::ReceivePayloadError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(18, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 152)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::UpgradeError_IsValid(val))) { - _internal_set_upgrade_error(static_cast<::location::nearby::errorcode::proto::UpgradeError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::AcceptConnectionError_IsValid(val))) { - _internal_set_accept_connection_error(static_cast<::location::nearby::errorcode::proto::AcceptConnectionError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(20, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::RejectConnectionError_IsValid(val))) { - _internal_set_reject_connection_error(static_cast<::location::nearby::errorcode::proto::RejectConnectionError>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(21, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_ErrorCode::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_direction(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_direction(), target); } // optional string service_id = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_service_id(), target); + 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 (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_medium(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_medium(), target); } // optional .location.nearby.errorcode.proto.Event event = 4; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_event(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_event(), target); } // optional .location.nearby.errorcode.proto.Description description = 5; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_description(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_description(), target); } // optional int64 flow_id = 6; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( + stream, this_._internal_flow_id(), target); } - switch (ErrorCodeDetail_case()) { + switch (this_.ErrorCodeDetail_case()) { case kCommonError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_common_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_common_error(), target); break; } case kStartAdvertisingError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 8, this->_internal_start_advertising_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_start_advertising_error(), target); break; } case kStartDiscoveringError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_start_discovering_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_start_discovering_error(), target); break; } case kStopAdvertisingError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_stop_advertising_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_stop_advertising_error(), target); break; } case kStopDiscoveringError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_stop_discovering_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_stop_discovering_error(), target); break; } case kStartListeningIncomingConnectionError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 12, this->_internal_start_listening_incoming_connection_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 12, this_._internal_start_listening_incoming_connection_error(), target); break; } case kStopListeningIncomingConnectionError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 13, this->_internal_stop_listening_incoming_connection_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 13, this_._internal_stop_listening_incoming_connection_error(), target); break; } case kConnectError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 14, this->_internal_connect_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 14, this_._internal_connect_error(), target); break; } case kDisconnectError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 15, this->_internal_disconnect_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 15, this_._internal_disconnect_error(), target); break; } - default: ; + default: + break; } // optional string connection_token = 16; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 16, this->_internal_connection_token(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_connection_token(); + target = stream->WriteStringMaybeAliased(16, _s, target); } - switch (ErrorCodeDetail_case()) { + switch (this_.ErrorCodeDetail_case()) { case kSendPayloadError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 17, this->_internal_send_payload_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 17, this_._internal_send_payload_error(), target); break; } case kReceivePayloadError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 18, this->_internal_receive_payload_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 18, this_._internal_receive_payload_error(), target); break; } case kUpgradeError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 19, this->_internal_upgrade_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 19, this_._internal_upgrade_error(), target); break; } case kAcceptConnectionError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 20, this->_internal_accept_connection_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 20, this_._internal_accept_connection_error(), target); break; } case kRejectConnectionError: { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 21, this->_internal_reject_connection_error(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 21, this_._internal_reject_connection_error(), target); break; } - default: ; + default: + break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_ErrorCode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_ErrorCode::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_ErrorCode& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { // optional string service_id = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_id()); } - // optional string connection_token = 16; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_connection_token()); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_direction()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_direction()); } - // optional .location.nearby.proto.connections.Medium medium = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_medium()); } - // optional .location.nearby.errorcode.proto.Event event = 4; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event()); } - // optional .location.nearby.errorcode.proto.Description description = 5; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_description()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_description()); } - // optional int64 flow_id = 6; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - } - switch (ErrorCodeDetail_case()) { + switch (this_.ErrorCodeDetail_case()) { // .location.nearby.errorcode.proto.CommonError common_error = 7; case kCommonError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_common_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_common_error()); break; } // .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8; case kStartAdvertisingError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_start_advertising_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_start_advertising_error()); break; } // .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9; case kStartDiscoveringError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_start_discovering_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_start_discovering_error()); break; } // .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10; case kStopAdvertisingError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_advertising_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_stop_advertising_error()); break; } // .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11; case kStopDiscoveringError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_discovering_error()); + ::_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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_start_listening_incoming_connection_error()); + ::_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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_listening_incoming_connection_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_stop_listening_incoming_connection_error()); break; } // .location.nearby.errorcode.proto.ConnectError connect_error = 14; case kConnectError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connect_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_connect_error()); break; } // .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15; case kDisconnectError: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_disconnect_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_disconnect_error()); break; } // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; case kSendPayloadError: { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_send_payload_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_send_payload_error()); break; } // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; case kReceivePayloadError: { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_receive_payload_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_receive_payload_error()); break; } // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; case kUpgradeError: { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_upgrade_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_upgrade_error()); break; } // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; case kAcceptConnectionError: { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_accept_connection_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_accept_connection_error()); break; } // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; case kRejectConnectionError: { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reject_connection_error()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_reject_connection_error()); break; } case ERRORCODEDETAIL_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_ErrorCode::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_ErrorCode::MergeFrom(const ConnectionsLog_ErrorCode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id(from._internal_service_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_connection_token(from._internal_connection_token()); - } - if (cached_has_bits & 0x00000004u) { - direction_ = from.direction_; - } - if (cached_has_bits & 0x00000008u) { - medium_ = from.medium_; - } - if (cached_has_bits & 0x00000010u) { - event_ = from.event_; - } - if (cached_has_bits & 0x00000020u) { - description_ = from.description_; - } - if (cached_has_bits & 0x00000040u) { - flow_id_ = from.flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_ErrorCode::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - switch (from.ErrorCodeDetail_case()) { - case kCommonError: { - _internal_set_common_error(from._internal_common_error()); - break; + // @@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()); } - case kStartAdvertisingError: { - _internal_set_start_advertising_error(from._internal_start_advertising_error()); - break; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_connection_token(from._internal_connection_token()); } - case kStartDiscoveringError: { - _internal_set_start_discovering_error(from._internal_start_discovering_error()); - break; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.direction_ = from._impl_.direction_; } - case kStopAdvertisingError: { - _internal_set_stop_advertising_error(from._internal_stop_advertising_error()); - break; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.medium_ = from._impl_.medium_; } - case kStopDiscoveringError: { - _internal_set_stop_discovering_error(from._internal_stop_discovering_error()); - break; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.event_ = from._impl_.event_; } - case kStartListeningIncomingConnectionError: { - _internal_set_start_listening_incoming_connection_error(from._internal_start_listening_incoming_connection_error()); - break; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.description_ = from._impl_.description_; } - case kStopListeningIncomingConnectionError: { - _internal_set_stop_listening_incoming_connection_error(from._internal_stop_listening_incoming_connection_error()); - break; - } - case kConnectError: { - _internal_set_connect_error(from._internal_connect_error()); - break; - } - case kDisconnectError: { - _internal_set_disconnect_error(from._internal_disconnect_error()); - break; - } - case kSendPayloadError: { - _internal_set_send_payload_error(from._internal_send_payload_error()); - break; - } - case kReceivePayloadError: { - _internal_set_receive_payload_error(from._internal_receive_payload_error()); - break; - } - case kUpgradeError: { - _internal_set_upgrade_error(from._internal_upgrade_error()); - break; - } - case kAcceptConnectionError: { - _internal_set_accept_connection_error(from._internal_accept_connection_error()); - break; - } - case kRejectConnectionError: { - _internal_set_reject_connection_error(from._internal_reject_connection_error()); - break; - } - case ERRORCODEDETAIL_NOT_SET: { - break; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_ErrorCode::IsInitialized() const { - return true; -} -void ConnectionsLog_ErrorCode::InternalSwap(ConnectionsLog_ErrorCode* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_, lhs_arena, - &other->service_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_token_, lhs_arena, - &other->connection_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, flow_id_) - + sizeof(ConnectionsLog_ErrorCode::flow_id_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ErrorCode, direction_)>( - reinterpret_cast(&direction_), - reinterpret_cast(&other->direction_)); - swap(ErrorCodeDetail_, other->ErrorCodeDetail_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + 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(&_impl_.direction_), + reinterpret_cast(&other->_impl_.direction_)); + swap(_impl_.ErrorCodeDetail_, other->_impl_.ErrorCodeDetail_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string ConnectionsLog_ErrorCode::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.ErrorCode"; -} - - // =================================================================== class ConnectionsLog_AdvertisingMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_supports_extended_ble_advertisements(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_connected_ap_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_supports_nfc_technology(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_multiple_advertisement_supported(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_power_level(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_supports_dual_band(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_supports_wifi_aware(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_endpoint_info_size(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, _impl_._has_bits_); }; -ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_AdvertisingMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&connected_ap_frequency_, &from.connected_ap_frequency_, - static_cast(reinterpret_cast(&power_level_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(power_level_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&connected_ap_frequency_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&endpoint_info_size_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(endpoint_info_size_)); -power_level_ = -1; +inline void ConnectionsLog_AdvertisingMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_AdvertisingMetadata::SharedDtor(MessageLite& self) { + ConnectionsLog_AdvertisingMetadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_AdvertisingMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_AdvertisingMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_AdvertisingMetadata::ArenaDtor(void* object) { - ConnectionsLog_AdvertisingMetadata* _this = reinterpret_cast< ConnectionsLog_AdvertisingMetadata* >(object); - (void)_this; -} -void ConnectionsLog_AdvertisingMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_AdvertisingMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<67> ConnectionsLog_AdvertisingMetadata_class_data_ = + ConnectionsLog_AdvertisingMetadata::InternalGenerateClassData_(); -void ConnectionsLog_AdvertisingMetadata::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - ::memset(&connected_ap_frequency_, 0, static_cast( - reinterpret_cast(&endpoint_info_size_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(endpoint_info_size_)); - power_level_ = -1; + 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(&_impl_.endpoint_info_size_) - + reinterpret_cast(&_impl_.connected_ap_frequency_)) + sizeof(_impl_.endpoint_info_size_)); + _impl_.power_level_ = -1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_AdvertisingMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool supports_extended_ble_advertisements = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_supports_extended_ble_advertisements(&has_bits); - supports_extended_ble_advertisements_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connected_ap_frequency = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_connected_ap_frequency(&has_bits); - connected_ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_nfc_technology = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_supports_nfc_technology(&has_bits); - supports_nfc_technology_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool multiple_advertisement_supported = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_multiple_advertisement_supported(&has_bits); - multiple_advertisement_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.PowerLevel power_level = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PowerLevel_IsValid(val))) { - _internal_set_power_level(static_cast<::location::nearby::proto::connections::PowerLevel>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool supports_dual_band = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_supports_dual_band(&has_bits); - supports_dual_band_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_wifi_aware = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_supports_wifi_aware(&has_bits); - supports_wifi_aware_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 endpoint_info_size = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_endpoint_info_size(&has_bits); - endpoint_info_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_AdvertisingMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool supports_extended_ble_advertisements = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_extended_ble_advertisements(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_supports_extended_ble_advertisements(), target); } // optional int32 connected_ap_frequency = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_connected_ap_frequency(), target); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_supports_nfc_technology(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_supports_nfc_technology(), target); } // optional bool multiple_advertisement_supported = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_multiple_advertisement_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_multiple_advertisement_supported(), target); } // optional .location.nearby.proto.connections.PowerLevel power_level = 5; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_power_level(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_power_level(), target); } // optional bool supports_dual_band = 6; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_supports_dual_band(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_supports_dual_band(), target); } // optional bool supports_wifi_aware = 7; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_supports_wifi_aware(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_supports_wifi_aware(), target); } // optional int32 endpoint_info_size = 8; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_endpoint_info_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_endpoint_info_size(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_AdvertisingMetadata& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connected_ap_frequency()); } - - // optional bool supports_extended_ble_advertisements = 1; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional bool supports_nfc_technology = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - - // optional bool multiple_advertisement_supported = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional bool supports_dual_band = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 1; - } - - // optional bool supports_wifi_aware = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - // optional int32 endpoint_info_size = 8; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_endpoint_info_size()); + 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 (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_power_level()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_power_level()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_AdvertisingMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_AdvertisingMetadata::MergeFrom(const ConnectionsLog_AdvertisingMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - connected_ap_frequency_ = from.connected_ap_frequency_; - } - if (cached_has_bits & 0x00000002u) { - supports_extended_ble_advertisements_ = from.supports_extended_ble_advertisements_; - } - if (cached_has_bits & 0x00000004u) { - supports_nfc_technology_ = from.supports_nfc_technology_; - } - if (cached_has_bits & 0x00000008u) { - multiple_advertisement_supported_ = from.multiple_advertisement_supported_; - } - if (cached_has_bits & 0x00000010u) { - supports_dual_band_ = from.supports_dual_band_; - } - if (cached_has_bits & 0x00000020u) { - supports_wifi_aware_ = from.supports_wifi_aware_; - } - if (cached_has_bits & 0x00000040u) { - endpoint_info_size_ = from.endpoint_info_size_; - } - if (cached_has_bits & 0x00000080u) { - power_level_ = from.power_level_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_AdvertisingMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_AdvertisingMetadata::IsInitialized() const { - return true; -} -void ConnectionsLog_AdvertisingMetadata::InternalSwap(ConnectionsLog_AdvertisingMetadata* other) { - using std::swap; +void ConnectionsLog_AdvertisingMetadata::InternalSwap(ConnectionsLog_AdvertisingMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, endpoint_info_size_) - + sizeof(ConnectionsLog_AdvertisingMetadata::endpoint_info_size_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, connected_ap_frequency_)>( - reinterpret_cast(&connected_ap_frequency_), - reinterpret_cast(&other->connected_ap_frequency_)); - swap(power_level_, other->power_level_); + 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(&_impl_.connected_ap_frequency_), + reinterpret_cast(&other->_impl_.connected_ap_frequency_)); } -std::string ConnectionsLog_AdvertisingMetadata::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata"; -} - - // =================================================================== class ConnectionsLog_DiscoveryMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_supports_extended_ble_advertisements(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_connected_ap_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_supports_nfc_technology(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_power_level(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, _impl_._has_bits_); }; -ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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(const ConnectionsLog_DiscoveryMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&connected_ap_frequency_, &from.connected_ap_frequency_, - static_cast(reinterpret_cast(&power_level_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(power_level_)); - // @@protoc_insertion_point(copy_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() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&connected_ap_frequency_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supports_nfc_technology_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(supports_nfc_technology_)); -power_level_ = -1; +inline void ConnectionsLog_DiscoveryMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_DiscoveryMetadata::SharedDtor(MessageLite& self) { + ConnectionsLog_DiscoveryMetadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionsLog_DiscoveryMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_DiscoveryMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_DiscoveryMetadata::ArenaDtor(void* object) { - ConnectionsLog_DiscoveryMetadata* _this = reinterpret_cast< ConnectionsLog_DiscoveryMetadata* >(object); - (void)_this; -} -void ConnectionsLog_DiscoveryMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_DiscoveryMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_DiscoveryMetadata_class_data_ = + ConnectionsLog_DiscoveryMetadata::InternalGenerateClassData_(); -void ConnectionsLog_DiscoveryMetadata::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&connected_ap_frequency_, 0, static_cast( - reinterpret_cast(&supports_nfc_technology_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(supports_nfc_technology_)); - power_level_ = -1; + 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(&_impl_.supports_nfc_technology_) - + reinterpret_cast(&_impl_.connected_ap_frequency_)) + sizeof(_impl_.supports_nfc_technology_)); + _impl_.power_level_ = -1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_DiscoveryMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool supports_extended_ble_advertisements = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_supports_extended_ble_advertisements(&has_bits); - supports_extended_ble_advertisements_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connected_ap_frequency = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_connected_ap_frequency(&has_bits); - connected_ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_nfc_technology = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_supports_nfc_technology(&has_bits); - supports_nfc_technology_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.PowerLevel power_level = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PowerLevel_IsValid(val))) { - _internal_set_power_level(static_cast<::location::nearby::proto::connections::PowerLevel>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_DiscoveryMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool supports_extended_ble_advertisements = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_extended_ble_advertisements(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_supports_extended_ble_advertisements(), target); } // optional int32 connected_ap_frequency = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_connected_ap_frequency(), target); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_supports_nfc_technology(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_supports_nfc_technology(), target); } // optional .location.nearby.proto.connections.PowerLevel power_level = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_power_level(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_power_level(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_DiscoveryMetadata& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connected_ap_frequency()); } - - // optional bool supports_extended_ble_advertisements = 1; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional bool supports_nfc_technology = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - // optional .location.nearby.proto.connections.PowerLevel power_level = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_power_level()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_power_level()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_DiscoveryMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_DiscoveryMetadata::MergeFrom(const ConnectionsLog_DiscoveryMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - connected_ap_frequency_ = from.connected_ap_frequency_; - } - if (cached_has_bits & 0x00000002u) { - supports_extended_ble_advertisements_ = from.supports_extended_ble_advertisements_; - } - if (cached_has_bits & 0x00000004u) { - supports_nfc_technology_ = from.supports_nfc_technology_; - } - if (cached_has_bits & 0x00000008u) { - power_level_ = from.power_level_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_DiscoveryMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_DiscoveryMetadata::IsInitialized() const { - return true; -} -void ConnectionsLog_DiscoveryMetadata::InternalSwap(ConnectionsLog_DiscoveryMetadata* other) { - using std::swap; +void ConnectionsLog_DiscoveryMetadata::InternalSwap(ConnectionsLog_DiscoveryMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, supports_nfc_technology_) - + sizeof(ConnectionsLog_DiscoveryMetadata::supports_nfc_technology_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, connected_ap_frequency_)>( - reinterpret_cast(&connected_ap_frequency_), - reinterpret_cast(&other->connected_ap_frequency_)); - swap(power_level_, other->power_level_); + 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(&_impl_.connected_ap_frequency_), + reinterpret_cast(&other->_impl_.connected_ap_frequency_)); } -std::string ConnectionsLog_DiscoveryMetadata::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata"; -} - - // =================================================================== class ConnectionsLog_ConnectionAttemptMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_technology(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_band(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_network_operator(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_country_code(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_is_tdls_used(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_try_counts(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_wifi_hotspot_status(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_max_tx_speed(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_max_rx_speed(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_wifi_channel_width(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_send_buffer_size(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_receive_buffer_size(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_connected_ap_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_is_mcc_mode(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, _impl_._has_bits_); }; -ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(const ConnectionsLog_ConnectionAttemptMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - network_operator_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - network_operator_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_network_operator()) { - network_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_network_operator(), - GetArenaForAllocation()); - } - country_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_country_code()) { - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_country_code(), - GetArenaForAllocation()); - } - ::memcpy(&technology_, &from.technology_, - static_cast(reinterpret_cast(&connected_ap_frequency_) - - reinterpret_cast(&technology_)) + sizeof(connected_ap_frequency_)); +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(&_impl_) + + offsetof(Impl_, technology_), + reinterpret_cast(&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() { -network_operator_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - network_operator_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -country_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&technology_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&connected_ap_frequency_) - - reinterpret_cast(&technology_)) + sizeof(connected_ap_frequency_)); +inline void ConnectionsLog_ConnectionAttemptMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::SharedDtor(MessageLite& self) { + ConnectionsLog_ConnectionAttemptMetadata& this_ = static_cast(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 ConnectionsLog_ConnectionAttemptMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - network_operator_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - country_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog_ConnectionAttemptMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &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", + }; } -void ConnectionsLog_ConnectionAttemptMetadata::ArenaDtor(void* object) { - ConnectionsLog_ConnectionAttemptMetadata* _this = reinterpret_cast< ConnectionsLog_ConnectionAttemptMetadata* >(object); - (void)_this; -} -void ConnectionsLog_ConnectionAttemptMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog_ConnectionAttemptMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_ConnectionAttemptMetadata_class_data_ = + ConnectionsLog_ConnectionAttemptMetadata::InternalGenerateClassData_(); -void ConnectionsLog_ConnectionAttemptMetadata::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - network_operator_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.network_operator_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - country_code_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.country_code_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x000000fcu) { - ::memset(&technology_, 0, static_cast( - reinterpret_cast(&is_tdls_used_) - - reinterpret_cast(&technology_)) + sizeof(is_tdls_used_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.technology_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_tdls_used_) - + reinterpret_cast(&_impl_.technology_)) + sizeof(_impl_.is_tdls_used_)); } - if (cached_has_bits & 0x00007f00u) { - ::memset(&wifi_hotspot_status_, 0, static_cast( - reinterpret_cast(&connected_ap_frequency_) - - reinterpret_cast(&wifi_hotspot_status_)) + sizeof(connected_ap_frequency_)); + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + ::memset(&_impl_.wifi_hotspot_status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.connected_ap_frequency_) - + reinterpret_cast(&_impl_.wifi_hotspot_status_)) + sizeof(_impl_.connected_ap_frequency_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog_ConnectionAttemptMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.ConnectionTechnology technology = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionTechnology_IsValid(val))) { - _internal_set_technology(static_cast<::location::nearby::proto::connections::ConnectionTechnology>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.ConnectionBand band = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionBand_IsValid(val))) { - _internal_set_band(static_cast<::location::nearby::proto::connections::ConnectionBand>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 frequency = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_frequency(&has_bits); - frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string network_operator = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_network_operator(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string country_code = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_country_code(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_tdls_used = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_is_tdls_used(&has_bits); - is_tdls_used_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 try_counts = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_try_counts(&has_bits); - try_counts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool wifi_hotspot_status = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_wifi_hotspot_status(&has_bits); - wifi_hotspot_status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 max_tx_speed = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_max_tx_speed(&has_bits); - max_tx_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 max_rx_speed = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_max_rx_speed(&has_bits); - max_rx_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 wifi_channel_width = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_wifi_channel_width(&has_bits); - wifi_channel_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 send_buffer_size = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - _Internal::set_has_send_buffer_size(&has_bits); - send_buffer_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 receive_buffer_size = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - _Internal::set_has_receive_buffer_size(&has_bits); - receive_buffer_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connected_ap_frequency = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_connected_ap_frequency(&has_bits); - connected_ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_mcc_mode = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - _Internal::set_has_is_mcc_mode(&has_bits); - is_mcc_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.ConnectionTechnology technology = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_technology(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_technology(), target); } // optional .location.nearby.proto.connections.ConnectionBand band = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_band(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_band(), target); } // optional int32 frequency = 3; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_frequency(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_frequency(), target); } // optional string network_operator = 4; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_network_operator(), target); + 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 (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_country_code(), target); + 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 (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_tdls_used(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_tdls_used(), target); } // optional int32 try_counts = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_try_counts(), target); + 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 (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_wifi_hotspot_status(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_wifi_hotspot_status(), target); } // optional int32 max_tx_speed = 9; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_max_tx_speed(), target); + 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 (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_max_rx_speed(), target); + 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 (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_wifi_channel_width(), target); + 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 (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_send_buffer_size(), target); + 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 (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_receive_buffer_size(), target); + 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 (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_connected_ap_frequency(), target); + 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 (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_is_mcc_mode(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 15, this_._internal_is_mcc_mode(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog_ConnectionAttemptMetadata& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_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 (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_network_operator()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_network_operator()); } - // optional string country_code = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_country_code()); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_technology()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_technology()); } - // optional .location.nearby.proto.connections.ConnectionBand band = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_band()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_band()); } - // optional int32 frequency = 3; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_frequency()); } - // optional int32 try_counts = 7; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_try_counts()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_try_counts()); } - // optional int32 max_tx_speed = 9; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_max_tx_speed()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_max_tx_speed()); } - - // optional bool is_tdls_used = 6; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - } - if (cached_has_bits & 0x00007f00u) { - // optional bool wifi_hotspot_status = 8; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - // optional bool is_mcc_mode = 15; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - + if (BatchCheckHasBit(cached_has_bits, 0x00007c00U)) { // optional int32 max_rx_speed = 10; - if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_max_rx_speed()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_max_rx_speed()); } - // optional int32 wifi_channel_width = 11; - if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wifi_channel_width()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_wifi_channel_width()); } - // optional int32 send_buffer_size = 12; - if (cached_has_bits & 0x00001000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_send_buffer_size()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_send_buffer_size()); } - // optional int32 receive_buffer_size = 13; - if (cached_has_bits & 0x00002000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_receive_buffer_size()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_receive_buffer_size()); } - // optional int32 connected_ap_frequency = 14; - if (cached_has_bits & 0x00004000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connected_ap_frequency()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog_ConnectionAttemptMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog_ConnectionAttemptMetadata::MergeFrom(const ConnectionsLog_ConnectionAttemptMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_network_operator(from._internal_network_operator()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_country_code(from._internal_country_code()); - } - if (cached_has_bits & 0x00000004u) { - technology_ = from.technology_; - } - if (cached_has_bits & 0x00000008u) { - band_ = from.band_; - } - if (cached_has_bits & 0x00000010u) { - frequency_ = from.frequency_; - } - if (cached_has_bits & 0x00000020u) { - try_counts_ = from.try_counts_; - } - if (cached_has_bits & 0x00000040u) { - max_tx_speed_ = from.max_tx_speed_; - } - if (cached_has_bits & 0x00000080u) { - is_tdls_used_ = from.is_tdls_used_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog_ConnectionAttemptMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00007f00u) { - if (cached_has_bits & 0x00000100u) { - wifi_hotspot_status_ = from.wifi_hotspot_status_; + // @@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 (cached_has_bits & 0x00000200u) { - is_mcc_mode_ = from.is_mcc_mode_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_country_code(from._internal_country_code()); } - if (cached_has_bits & 0x00000400u) { - max_rx_speed_ = from.max_rx_speed_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.technology_ = from._impl_.technology_; } - if (cached_has_bits & 0x00000800u) { - wifi_channel_width_ = from.wifi_channel_width_; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.band_ = from._impl_.band_; } - if (cached_has_bits & 0x00001000u) { - send_buffer_size_ = from.send_buffer_size_; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.frequency_ = from._impl_.frequency_; } - if (cached_has_bits & 0x00002000u) { - receive_buffer_size_ = from.receive_buffer_size_; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.try_counts_ = from._impl_.try_counts_; } - if (cached_has_bits & 0x00004000u) { - connected_ap_frequency_ = from.connected_ap_frequency_; + 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_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + 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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog_ConnectionAttemptMetadata::IsInitialized() const { - return true; -} -void ConnectionsLog_ConnectionAttemptMetadata::InternalSwap(ConnectionsLog_ConnectionAttemptMetadata* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &network_operator_, lhs_arena, - &other->network_operator_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &country_code_, lhs_arena, - &other->country_code_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, connected_ap_frequency_) - + sizeof(ConnectionsLog_ConnectionAttemptMetadata::connected_ap_frequency_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, technology_)>( - reinterpret_cast(&technology_), - reinterpret_cast(&other->technology_)); + 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(&_impl_.technology_), + reinterpret_cast(&other->_impl_.technology_)); } -std::string ConnectionsLog_ConnectionAttemptMetadata::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata"; -} - - // =================================================================== class ConnectionsLog::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& client_session(const ConnectionsLog* msg); - static void set_has_client_session(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& error_code(const ConnectionsLog* msg); - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_log_source(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_files_migration_phase(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_._has_bits_); }; -const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& -ConnectionsLog::_Internal::client_session(const ConnectionsLog* msg) { - return *msg->client_session_; -} -const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& -ConnectionsLog::_Internal::error_code(const ConnectionsLog* msg) { - return *msg->error_code_; -} -ConnectionsLog::ConnectionsLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +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) } -ConnectionsLog::ConnectionsLog(const ConnectionsLog& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_version()) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(), - GetArenaForAllocation()); - } - files_migration_phase_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_files_migration_phase()) { - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_files_migration_phase(), - GetArenaForAllocation()); - } - if (from._internal_has_client_session()) { - client_session_ = new ::location::nearby::analytics::proto::ConnectionsLog_ClientSession(*from.client_session_); - } else { - client_session_ = nullptr; - } - if (from._internal_has_error_code()) { - error_code_ = new ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode(*from.error_code_); - } else { - error_code_ = nullptr; - } - ::memcpy(&event_type_, &from.event_type_, - static_cast(reinterpret_cast(&log_source_) - - reinterpret_cast(&event_type_)) + sizeof(log_source_)); +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(&_impl_) + + offsetof(Impl_, event_type_), + reinterpret_cast(&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() { -version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -files_migration_phase_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&client_session_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&log_source_) - - reinterpret_cast(&client_session_)) + sizeof(log_source_)); +inline void ConnectionsLog::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_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) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionsLog::SharedDtor(MessageLite& self) { + ConnectionsLog& this_ = static_cast(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 ConnectionsLog::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - files_migration_phase_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete client_session_; - if (this != internal_default_instance()) delete error_code_; +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(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionsLog::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionsLog::ByteSizeLong, + &ConnectionsLog::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionsLog, _impl_._cached_size_), + true, + }, + "location.nearby.analytics.proto.ConnectionsLog", + }; } -void ConnectionsLog::ArenaDtor(void* object) { - ConnectionsLog* _this = reinterpret_cast< ConnectionsLog* >(object); - (void)_this; -} -void ConnectionsLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionsLog::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<47> ConnectionsLog_class_data_ = + ConnectionsLog::InternalGenerateClassData_(); -void ConnectionsLog::Clear() { +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) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - version_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.version_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - files_migration_phase_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.files_migration_phase_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(client_session_ != nullptr); - client_session_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.client_session_ != nullptr); + _impl_.client_session_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(error_code_ != nullptr); - error_code_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.error_code_ != nullptr); + _impl_.error_code_->Clear(); } } - if (cached_has_bits & 0x00000030u) { - ::memset(&event_type_, 0, static_cast( - reinterpret_cast(&log_source_) - - reinterpret_cast(&event_type_)) + sizeof(log_source_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000030U)) { + ::memset(&_impl_.event_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.log_source_) - + reinterpret_cast(&_impl_.event_type_)) + sizeof(_impl_.log_source_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionsLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.connections.EventType event_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::proto::connections::EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_client_session(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string version = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_error_code(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.connections.LogSource log_source = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::LogSource_IsValid(val))) { - _internal_set_log_source(static_cast<::location::nearby::proto::connections::LogSource>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string files_migration_phase = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_files_migration_phase(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionsLog::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#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(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; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.connections.EventType event_type = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event_type(), target); } // optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::client_session(this), target, stream); + 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 (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_version(), target); + 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 (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::error_code(this), target, stream); + 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 (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_log_source(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_log_source(), target); } // optional string files_migration_phase = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 6, this->_internal_files_migration_phase(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_files_migration_phase(); + target = stream->WriteStringMaybeAliased(6, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(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; } -size_t ConnectionsLog::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.analytics.proto.ConnectionsLog) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionsLog::ByteSizeLong(const MessageLite& base) { + const ConnectionsLog& this_ = static_cast(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; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { // optional string version = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_version()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_version()); } - // optional string files_migration_phase = 6; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_files_migration_phase()); + 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 (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *client_session_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.client_session_); } - // optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *error_code_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.error_code_); } - // optional .location.nearby.proto.connections.EventType event_type = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type()); } - // optional .location.nearby.proto.connections.LogSource log_source = 5; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_log_source()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_log_source()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionsLog::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionsLog::MergeFrom(const ConnectionsLog& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.analytics.proto.ConnectionsLog) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_version(from._internal_version()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_files_migration_phase(from._internal_files_migration_phase()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_client_session()->::location::nearby::analytics::proto::ConnectionsLog_ClientSession::MergeFrom(from._internal_client_session()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_error_code()->::location::nearby::analytics::proto::ConnectionsLog_ErrorCode::MergeFrom(from._internal_error_code()); - } - if (cached_has_bits & 0x00000010u) { - event_type_ = from.event_type_; - } - if (cached_has_bits & 0x00000020u) { - log_source_ = from.log_source_; - } - _has_bits_[0] |= cached_has_bits; +void ConnectionsLog::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionsLog::IsInitialized() const { - return true; -} -void ConnectionsLog::InternalSwap(ConnectionsLog* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +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(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &version_, lhs_arena, - &other->version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &files_migration_phase_, lhs_arena, - &other->files_migration_phase_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog, log_source_) - + sizeof(ConnectionsLog::log_source_) - - PROTOBUF_FIELD_OFFSET(ConnectionsLog, client_session_)>( - reinterpret_cast(&client_session_), - reinterpret_cast(&other->client_session_)); + 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(&_impl_.client_session_), + reinterpret_cast(&other->_impl_.client_session_)); } -std::string ConnectionsLog::GetTypeName() const { - return "location.nearby.analytics.proto.ConnectionsLog"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace proto } // namespace analytics } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_ClientSession >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_ClientSession >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_OperationResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_OperationResult >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_Payload* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_Payload >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_Payload >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLog* Arena::CreateMaybeMessage< ::location::nearby::analytics::proto::ConnectionsLog >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::analytics::proto::ConnectionsLog >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.h b/compiled_proto/internal/proto/analytics/connections_log.pb.h index f6cf76e3..428d0aa3 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.h +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.h @@ -1,183 +1,201 @@ // 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 -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto +#ifndef internal_2fproto_2fanalytics_2fconnections_5flog_2eproto_2epb_2eh +#define internal_2fproto_2fanalytics_2fconnections_5flog_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019005 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" #include "proto/connections_enums.pb.h" #include "proto/errorcode/error_code_enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[22] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { namespace analytics { namespace proto { +enum ConnectionsLog_DeviceInfo_Platform : int; +extern const uint32_t ConnectionsLog_DeviceInfo_Platform_internal_data_[]; +enum ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason : int; +extern const uint32_t ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_internal_data_[]; +enum ConnectionsLog_EstablishedConnection_SafeDisconnectionResult : int; +extern const uint32_t ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_internal_data_[]; class ConnectionsLog; struct ConnectionsLogDefaultTypeInternal; extern ConnectionsLogDefaultTypeInternal _ConnectionsLog_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<47> ConnectionsLog_class_data_; class ConnectionsLog_AdvertisingMetadata; struct ConnectionsLog_AdvertisingMetadataDefaultTypeInternal; extern ConnectionsLog_AdvertisingMetadataDefaultTypeInternal _ConnectionsLog_AdvertisingMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<67> ConnectionsLog_AdvertisingMetadata_class_data_; class ConnectionsLog_AdvertisingPhase; struct ConnectionsLog_AdvertisingPhaseDefaultTypeInternal; extern ConnectionsLog_AdvertisingPhaseDefaultTypeInternal _ConnectionsLog_AdvertisingPhase_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> ConnectionsLog_AdvertisingPhase_class_data_; class ConnectionsLog_BandwidthUpgradeAttempt; struct ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal; extern ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal _ConnectionsLog_BandwidthUpgradeAttempt_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_BandwidthUpgradeAttempt_class_data_; class ConnectionsLog_ClientSession; struct ConnectionsLog_ClientSessionDefaultTypeInternal; extern ConnectionsLog_ClientSessionDefaultTypeInternal _ConnectionsLog_ClientSession_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> ConnectionsLog_ClientSession_class_data_; class ConnectionsLog_ConnectionAttempt; struct ConnectionsLog_ConnectionAttemptDefaultTypeInternal; extern ConnectionsLog_ConnectionAttemptDefaultTypeInternal _ConnectionsLog_ConnectionAttempt_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionAttempt_class_data_; class ConnectionsLog_ConnectionAttemptMetadata; struct ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal; extern ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal _ConnectionsLog_ConnectionAttemptMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_ConnectionAttemptMetadata_class_data_; class ConnectionsLog_ConnectionRequest; struct ConnectionsLog_ConnectionRequestDefaultTypeInternal; extern ConnectionsLog_ConnectionRequestDefaultTypeInternal _ConnectionsLog_ConnectionRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionRequest_class_data_; class ConnectionsLog_DctPayloadTransferStats; struct ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal; extern ConnectionsLog_DctPayloadTransferStatsDefaultTypeInternal _ConnectionsLog_DctPayloadTransferStats_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_DctPayloadTransferStats_class_data_; class ConnectionsLog_DeviceInfo; struct ConnectionsLog_DeviceInfoDefaultTypeInternal; extern ConnectionsLog_DeviceInfoDefaultTypeInternal _ConnectionsLog_DeviceInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> ConnectionsLog_DeviceInfo_class_data_; class ConnectionsLog_DisconnectionReasonDetail; struct ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal; extern ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal _ConnectionsLog_DisconnectionReasonDetail_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_DisconnectionReasonDetail_class_data_; class ConnectionsLog_DiscoveredEndpoint; struct ConnectionsLog_DiscoveredEndpointDefaultTypeInternal; extern ConnectionsLog_DiscoveredEndpointDefaultTypeInternal _ConnectionsLog_DiscoveredEndpoint_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_DiscoveredEndpoint_class_data_; class ConnectionsLog_DiscoveryMetadata; struct ConnectionsLog_DiscoveryMetadataDefaultTypeInternal; extern ConnectionsLog_DiscoveryMetadataDefaultTypeInternal _ConnectionsLog_DiscoveryMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_DiscoveryMetadata_class_data_; class ConnectionsLog_DiscoveryPhase; struct ConnectionsLog_DiscoveryPhaseDefaultTypeInternal; extern ConnectionsLog_DiscoveryPhaseDefaultTypeInternal _ConnectionsLog_DiscoveryPhase_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> ConnectionsLog_DiscoveryPhase_class_data_; class ConnectionsLog_ErrorCode; struct ConnectionsLog_ErrorCodeDefaultTypeInternal; extern ConnectionsLog_ErrorCodeDefaultTypeInternal _ConnectionsLog_ErrorCode_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> ConnectionsLog_ErrorCode_class_data_; class ConnectionsLog_EstablishedConnection; struct ConnectionsLog_EstablishedConnectionDefaultTypeInternal; extern ConnectionsLog_EstablishedConnectionDefaultTypeInternal _ConnectionsLog_EstablishedConnection_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<69> ConnectionsLog_EstablishedConnection_class_data_; class ConnectionsLog_OperationResult; struct ConnectionsLog_OperationResultDefaultTypeInternal; extern ConnectionsLog_OperationResultDefaultTypeInternal _ConnectionsLog_OperationResult_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_OperationResult_class_data_; class ConnectionsLog_OperationResultWithMedium; struct ConnectionsLog_OperationResultWithMediumDefaultTypeInternal; extern ConnectionsLog_OperationResultWithMediumDefaultTypeInternal _ConnectionsLog_OperationResultWithMedium_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_OperationResultWithMedium_class_data_; class ConnectionsLog_Payload; struct ConnectionsLog_PayloadDefaultTypeInternal; extern ConnectionsLog_PayloadDefaultTypeInternal _ConnectionsLog_Payload_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> ConnectionsLog_Payload_class_data_; class ConnectionsLog_RawUwbRangingEvent; struct ConnectionsLog_RawUwbRangingEventDefaultTypeInternal; extern ConnectionsLog_RawUwbRangingEventDefaultTypeInternal _ConnectionsLog_RawUwbRangingEvent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_RawUwbRangingEvent_class_data_; class ConnectionsLog_StrategySession; struct ConnectionsLog_StrategySessionDefaultTypeInternal; extern ConnectionsLog_StrategySessionDefaultTypeInternal _ConnectionsLog_StrategySession_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_StrategySession_class_data_; class ConnectionsLog_UwbRangingProcess; struct ConnectionsLog_UwbRangingProcessDefaultTypeInternal; extern ConnectionsLog_UwbRangingProcessDefaultTypeInternal _ConnectionsLog_UwbRangingProcess_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_UwbRangingProcess_class_data_; } // namespace proto } // namespace analytics } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::analytics::proto::ConnectionsLog* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_Payload* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_Payload>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>(Arena*); -template<> ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* Arena::CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform>; +template <> +internal::EnumTraitsT<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason>; +template <> +internal::EnumTraitsT<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult>; +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace analytics { namespace proto { - enum ConnectionsLog_DeviceInfo_Platform : int { ConnectionsLog_DeviceInfo_Platform_UNKNOWN = 0, ConnectionsLog_DeviceInfo_Platform_ANDROID = 1, ConnectionsLog_DeviceInfo_Platform_IOS = 2, ConnectionsLog_DeviceInfo_Platform_CROS = 3, - ConnectionsLog_DeviceInfo_Platform_WINDOWS = 4 + ConnectionsLog_DeviceInfo_Platform_WINDOWS = 4, }; -bool ConnectionsLog_DeviceInfo_Platform_IsValid(int value); -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo_Platform_Platform_MIN = ConnectionsLog_DeviceInfo_Platform_UNKNOWN; -constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo_Platform_Platform_MAX = ConnectionsLog_DeviceInfo_Platform_WINDOWS; -constexpr int ConnectionsLog_DeviceInfo_Platform_Platform_ARRAYSIZE = ConnectionsLog_DeviceInfo_Platform_Platform_MAX + 1; -const std::string& ConnectionsLog_DeviceInfo_Platform_Name(ConnectionsLog_DeviceInfo_Platform value); -template -inline const std::string& ConnectionsLog_DeviceInfo_Platform_Name(T enum_t_value) { +extern const uint32_t ConnectionsLog_DeviceInfo_Platform_internal_data_[]; +inline constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo_Platform_Platform_MIN = + static_cast(0); +inline constexpr ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo_Platform_Platform_MAX = + static_cast(4); +inline bool ConnectionsLog_DeviceInfo_Platform_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int ConnectionsLog_DeviceInfo_Platform_Platform_ARRAYSIZE = 4 + 1; +const ::std::string& ConnectionsLog_DeviceInfo_Platform_Name(ConnectionsLog_DeviceInfo_Platform value); +template +const ::std::string& ConnectionsLog_DeviceInfo_Platform_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionsLog_DeviceInfo_Platform_Name."); - return ConnectionsLog_DeviceInfo_Platform_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Platform_Name()."); + return ConnectionsLog_DeviceInfo_Platform_Name(static_cast(value)); } bool ConnectionsLog_DeviceInfo_Platform_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DeviceInfo_Platform* value); + ::absl::string_view name, ConnectionsLog_DeviceInfo_Platform* PROTOBUF_NONNULL value); enum ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason : int { ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_UNKNOWN_DISCONNECTION_REASON = 0, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_DISCOVERY_TIMEOUT = 1, @@ -196,69 +214,85 @@ enum ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason : int { ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_USER_CANCELLED = 14, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SERVICE_CANCELLED = 15, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UNVERIFIED_INTEGRITY = 16, - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_SESSION_SUCCESS = 17 + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_SESSION_SUCCESS = 17, }; -bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(int value); -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MIN = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_UNKNOWN_DISCONNECTION_REASON; -constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MAX = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_SESSION_SUCCESS; -constexpr int ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_ARRAYSIZE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MAX + 1; -const std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); -template -inline const std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(T enum_t_value) { +extern const uint32_t ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_internal_data_[]; +inline constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MIN = + static_cast(0); +inline constexpr ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MAX = + static_cast(17); +inline bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(int value) { + return 0 <= value && value <= 17; +} +inline constexpr int ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_ARRAYSIZE = 17 + 1; +const ::std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); +template +const ::std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name."); - return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DisconnectionReason_Name()."); + return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(static_cast(value)); } bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* value); + ::absl::string_view name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* PROTOBUF_NONNULL value); enum ConnectionsLog_EstablishedConnection_SafeDisconnectionResult : int { ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT = 0, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION = 1, - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION = 2 + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION = 2, }; -bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(int value); -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT; -constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION; -constexpr int ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX + 1; -const std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); -template -inline const std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(T enum_t_value) { +extern const uint32_t ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_internal_data_[]; +inline constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN = + static_cast(0); +inline constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX = + static_cast(2); +inline bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE = 2 + 1; +const ::std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); +template +const ::std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name."); - return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SafeDisconnectionResult_Name()."); + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(static_cast(value)); } bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* value); + ::absl::string_view name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* PROTOBUF_NONNULL value); + // =================================================================== -class ConnectionsLog_ClientSession final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ClientSession) */ { + +// ------------------------------------------------------------------- + +class ConnectionsLog_RawUwbRangingEvent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) */ { public: - inline ConnectionsLog_ClientSession() : ConnectionsLog_ClientSession(nullptr) {} - ~ConnectionsLog_ClientSession() override; - explicit constexpr ConnectionsLog_ClientSession(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ConnectionsLog_RawUwbRangingEvent() : ConnectionsLog_RawUwbRangingEvent(nullptr) {} + ~ConnectionsLog_RawUwbRangingEvent() PROTOBUF_FINAL; - ConnectionsLog_ClientSession(const ConnectionsLog_ClientSession& from); - ConnectionsLog_ClientSession(ConnectionsLog_ClientSession&& from) noexcept - : ConnectionsLog_ClientSession() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_RawUwbRangingEvent)); } +#endif - inline ConnectionsLog_ClientSession& operator=(const ConnectionsLog_ClientSession& from) { + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_RawUwbRangingEvent(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_RawUwbRangingEvent(const ConnectionsLog_RawUwbRangingEvent& from) : ConnectionsLog_RawUwbRangingEvent(nullptr, from) {} + inline ConnectionsLog_RawUwbRangingEvent(ConnectionsLog_RawUwbRangingEvent&& from) noexcept + : ConnectionsLog_RawUwbRangingEvent(nullptr, ::std::move(from)) {} + inline ConnectionsLog_RawUwbRangingEvent& operator=(const ConnectionsLog_RawUwbRangingEvent& from) { CopyFrom(from); return *this; } - inline ConnectionsLog_ClientSession& operator=(ConnectionsLog_ClientSession&& from) noexcept { + inline ConnectionsLog_RawUwbRangingEvent& operator=(ConnectionsLog_RawUwbRangingEvent&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -266,353 +300,204 @@ class ConnectionsLog_ClientSession final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ConnectionsLog_ClientSession& default_instance() { - return *internal_default_instance(); + static const ConnectionsLog_RawUwbRangingEvent& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_RawUwbRangingEvent_default_instance_); } - static inline const ConnectionsLog_ClientSession* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_ClientSession_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ConnectionsLog_ClientSession& a, ConnectionsLog_ClientSession& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_ClientSession* other) { + static constexpr int kIndexInFileMessages = 7; + friend void swap(ConnectionsLog_RawUwbRangingEvent& a, ConnectionsLog_RawUwbRangingEvent& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_ClientSession* other) { + void UnsafeArenaSwap(ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_ClientSession* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_ClientSession& from); - void MergeFrom(const ConnectionsLog_ClientSession& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const ConnectionsLog_RawUwbRangingEvent& from); + void MergeFrom(const ConnectionsLog_RawUwbRangingEvent& from) { ConnectionsLog_RawUwbRangingEvent::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_ClientSession* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.ClientSession"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit ConnectionsLog_ClientSession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStrategySessionFieldNumber = 2, - kConnectionTokenFieldNumber = 4, - kDurationMillisFieldNumber = 1, - kClientFlowIdFieldNumber = 3, - }; - // repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2; - int strategy_session_size() const; private: - int _internal_strategy_session_size() const; - public: - void clear_strategy_session(); - ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* mutable_strategy_session(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >* - mutable_strategy_session(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& _internal_strategy_session(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* _internal_add_strategy_session(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& strategy_session(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* add_strategy_session(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >& - strategy_session() const; - - // optional string connection_token = 4; - bool has_connection_token() const; - private: - bool _internal_has_connection_token() const; - public: - void clear_connection_token(); - const std::string& connection_token() const; - template - void set_connection_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_token(); - PROTOBUF_NODISCARD std::string* release_connection_token(); - void set_allocated_connection_token(std::string* connection_token); - private: - const std::string& _internal_connection_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const std::string& value); - std::string* _internal_mutable_connection_token(); - public: - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int64 client_flow_id = 3; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ClientSession) + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL other); private: - class _Internal; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent"; } - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession > strategy_session_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_token_; - int64_t duration_millis_; - int64_t client_flow_id_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_OperationResult final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.OperationResult) */ { - public: - inline ConnectionsLog_OperationResult() : ConnectionsLog_OperationResult(nullptr) {} - ~ConnectionsLog_OperationResult() override; - explicit constexpr ConnectionsLog_OperationResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_OperationResult(const ConnectionsLog_OperationResult& from); - ConnectionsLog_OperationResult(ConnectionsLog_OperationResult&& from) noexcept - : ConnectionsLog_OperationResult() { + explicit ConnectionsLog_RawUwbRangingEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_RawUwbRangingEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_RawUwbRangingEvent& from); + ConnectionsLog_RawUwbRangingEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_RawUwbRangingEvent&& from) noexcept + : ConnectionsLog_RawUwbRangingEvent(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - inline ConnectionsLog_OperationResult& operator=(const ConnectionsLog_OperationResult& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_OperationResult& operator=(ConnectionsLog_OperationResult&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_OperationResult& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_OperationResult* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_OperationResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ConnectionsLog_OperationResult& a, ConnectionsLog_OperationResult& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_OperationResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_OperationResult* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_OperationResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_OperationResult& from); - void MergeFrom(const ConnectionsLog_OperationResult& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_OperationResult* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.OperationResult"; - } - protected: - explicit ConnectionsLog_OperationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResultCategoryFieldNumber = 1, - kResultCodeFieldNumber = 2, + kDistanceFieldNumber = 1, + kAzimuthAngleFieldNumber = 2, + kPolarAngleFieldNumber = 3, }; - // optional .location.nearby.proto.connections.OperationResultCategory result_category = 1; - bool has_result_category() const; - private: - bool _internal_has_result_category() const; - public: - void clear_result_category(); - ::location::nearby::proto::connections::OperationResultCategory result_category() const; - void set_result_category(::location::nearby::proto::connections::OperationResultCategory value); - private: - ::location::nearby::proto::connections::OperationResultCategory _internal_result_category() const; - void _internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value); - public: + // optional int32 distance = 1; + bool has_distance() const; + void clear_distance() ; + ::int32_t distance() const; + void set_distance(::int32_t value); - // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; - bool has_result_code() const; private: - bool _internal_has_result_code() const; - public: - void clear_result_code(); - ::location::nearby::proto::connections::OperationResultCode result_code() const; - void set_result_code(::location::nearby::proto::connections::OperationResultCode value); - private: - ::location::nearby::proto::connections::OperationResultCode _internal_result_code() const; - void _internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value); - public: + ::int32_t _internal_distance() const; + void _internal_set_distance(::int32_t value); - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.OperationResult) + public: + // optional int32 azimuth_angle = 2; + bool has_azimuth_angle() const; + void clear_azimuth_angle() ; + ::int32_t azimuth_angle() const; + void set_azimuth_angle(::int32_t value); + + private: + ::int32_t _internal_azimuth_angle() const; + void _internal_set_azimuth_angle(::int32_t value); + + public: + // optional int32 polar_angle = 3; + bool has_polar_angle() const; + void clear_polar_angle() ; + ::int32_t polar_angle() const; + void set_polar_angle(::int32_t value); + + private: + ::int32_t _internal_polar_angle() const; + void _internal_set_polar_angle(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int result_category_; - int result_code_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_RawUwbRangingEvent& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t distance_; + ::int32_t azimuth_angle_; + ::int32_t polar_angle_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_RawUwbRangingEvent_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog_OperationResultWithMedium final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) */ { +class ConnectionsLog_OperationResultWithMedium final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) */ { public: inline ConnectionsLog_OperationResultWithMedium() : ConnectionsLog_OperationResultWithMedium(nullptr) {} - ~ConnectionsLog_OperationResultWithMedium() override; - explicit constexpr ConnectionsLog_OperationResultWithMedium(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ConnectionsLog_OperationResultWithMedium() PROTOBUF_FINAL; - ConnectionsLog_OperationResultWithMedium(const ConnectionsLog_OperationResultWithMedium& from); - ConnectionsLog_OperationResultWithMedium(ConnectionsLog_OperationResultWithMedium&& from) noexcept - : ConnectionsLog_OperationResultWithMedium() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_OperationResultWithMedium)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_OperationResultWithMedium(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_OperationResultWithMedium(const ConnectionsLog_OperationResultWithMedium& from) : ConnectionsLog_OperationResultWithMedium(nullptr, from) {} + inline ConnectionsLog_OperationResultWithMedium(ConnectionsLog_OperationResultWithMedium&& from) noexcept + : ConnectionsLog_OperationResultWithMedium(nullptr, ::std::move(from)) {} inline ConnectionsLog_OperationResultWithMedium& operator=(const ConnectionsLog_OperationResultWithMedium& from) { CopyFrom(from); return *this; } inline ConnectionsLog_OperationResultWithMedium& operator=(ConnectionsLog_OperationResultWithMedium&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -620,87 +505,102 @@ class ConnectionsLog_OperationResultWithMedium final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const ConnectionsLog_OperationResultWithMedium& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_ConnectionsLog_OperationResultWithMedium_default_instance_); } - static inline const ConnectionsLog_OperationResultWithMedium* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_OperationResultWithMedium_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ConnectionsLog_OperationResultWithMedium& a, ConnectionsLog_OperationResultWithMedium& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_OperationResultWithMedium* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(ConnectionsLog_OperationResultWithMedium& a, ConnectionsLog_OperationResultWithMedium& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_OperationResultWithMedium* other) { + void UnsafeArenaSwap(ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_OperationResultWithMedium* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const ConnectionsLog_OperationResultWithMedium& from); - void MergeFrom(const ConnectionsLog_OperationResultWithMedium& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const ConnectionsLog_OperationResultWithMedium& from) { ConnectionsLog_OperationResultWithMedium::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_OperationResultWithMedium* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium"; - } - protected: - explicit ConnectionsLog_OperationResultWithMedium(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium"; } + + explicit ConnectionsLog_OperationResultWithMedium(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_OperationResultWithMedium(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_OperationResultWithMedium& from); + ConnectionsLog_OperationResultWithMedium( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_OperationResultWithMedium&& from) noexcept + : ConnectionsLog_OperationResultWithMedium(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMediumFieldNumber = 1, kUpdateIndexFieldNumber = 2, @@ -710,111 +610,125 @@ class ConnectionsLog_OperationResultWithMedium final : }; // optional .location.nearby.proto.connections.Medium medium = 1; bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); + void clear_medium() ; ::location::nearby::proto::connections::Medium medium() const; void set_medium(::location::nearby::proto::connections::Medium value); + private: ::location::nearby::proto::connections::Medium _internal_medium() const; void _internal_set_medium(::location::nearby::proto::connections::Medium value); - public: + public: // optional int32 update_index = 2; bool has_update_index() const; - private: - bool _internal_has_update_index() const; - public: - void clear_update_index(); - int32_t update_index() const; - void set_update_index(int32_t value); - private: - int32_t _internal_update_index() const; - void _internal_set_update_index(int32_t value); - public: + void clear_update_index() ; + ::int32_t update_index() const; + void set_update_index(::int32_t value); + private: + ::int32_t _internal_update_index() const; + void _internal_set_update_index(::int32_t value); + + public: // optional .location.nearby.proto.connections.OperationResultCategory result_category = 3; bool has_result_category() const; - private: - bool _internal_has_result_category() const; - public: - void clear_result_category(); + void clear_result_category() ; ::location::nearby::proto::connections::OperationResultCategory result_category() const; void set_result_category(::location::nearby::proto::connections::OperationResultCategory value); + private: ::location::nearby::proto::connections::OperationResultCategory _internal_result_category() const; void _internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value); - public: + public: // optional .location.nearby.proto.connections.OperationResultCode result_code = 4; bool has_result_code() const; - private: - bool _internal_has_result_code() const; - public: - void clear_result_code(); + void clear_result_code() ; ::location::nearby::proto::connections::OperationResultCode result_code() const; void set_result_code(::location::nearby::proto::connections::OperationResultCode value); + private: ::location::nearby::proto::connections::OperationResultCode _internal_result_code() const; void _internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value); - public: + public: // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5; bool has_connection_mode() const; - private: - bool _internal_has_connection_mode() const; - public: - void clear_connection_mode(); + void clear_connection_mode() ; ::location::nearby::proto::connections::ConnectionMode connection_mode() const; void set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); + private: ::location::nearby::proto::connections::ConnectionMode _internal_connection_mode() const; void _internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int medium_; - int32_t update_index_; - int result_category_; - int result_code_; - int connection_mode_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_OperationResultWithMedium& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int medium_; + ::int32_t update_index_; + int result_category_; + int result_code_; + int connection_mode_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_OperationResultWithMedium_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog_StrategySession final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.StrategySession) */ { +class ConnectionsLog_OperationResult final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.OperationResult) */ { public: - inline ConnectionsLog_StrategySession() : ConnectionsLog_StrategySession(nullptr) {} - ~ConnectionsLog_StrategySession() override; - explicit constexpr ConnectionsLog_StrategySession(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ConnectionsLog_OperationResult() : ConnectionsLog_OperationResult(nullptr) {} + ~ConnectionsLog_OperationResult() PROTOBUF_FINAL; - ConnectionsLog_StrategySession(const ConnectionsLog_StrategySession& from); - ConnectionsLog_StrategySession(ConnectionsLog_StrategySession&& from) noexcept - : ConnectionsLog_StrategySession() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_OperationResult* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_OperationResult)); } +#endif - inline ConnectionsLog_StrategySession& operator=(const ConnectionsLog_StrategySession& from) { + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_OperationResult(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_OperationResult(const ConnectionsLog_OperationResult& from) : ConnectionsLog_OperationResult(nullptr, from) {} + inline ConnectionsLog_OperationResult(ConnectionsLog_OperationResult&& from) noexcept + : ConnectionsLog_OperationResult(nullptr, ::std::move(from)) {} + inline ConnectionsLog_OperationResult& operator=(const ConnectionsLog_OperationResult& from) { CopyFrom(from); return *this; } - inline ConnectionsLog_StrategySession& operator=(ConnectionsLog_StrategySession&& from) noexcept { + inline ConnectionsLog_OperationResult& operator=(ConnectionsLog_OperationResult&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -822,3712 +736,191 @@ class ConnectionsLog_StrategySession final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ConnectionsLog_StrategySession& default_instance() { - return *internal_default_instance(); + static const ConnectionsLog_OperationResult& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_OperationResult_default_instance_); } - static inline const ConnectionsLog_StrategySession* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_StrategySession_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConnectionsLog_StrategySession& a, ConnectionsLog_StrategySession& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_StrategySession* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(ConnectionsLog_OperationResult& a, ConnectionsLog_OperationResult& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_OperationResult* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_StrategySession* other) { + void UnsafeArenaSwap(ConnectionsLog_OperationResult* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_StrategySession* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_OperationResult* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_StrategySession& from); - void MergeFrom(const ConnectionsLog_StrategySession& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const ConnectionsLog_OperationResult& from); + void MergeFrom(const ConnectionsLog_OperationResult& from) { ConnectionsLog_OperationResult::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_StrategySession* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.StrategySession"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit ConnectionsLog_StrategySession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRoleFieldNumber = 3, - kDiscoveryPhaseFieldNumber = 4, - kAdvertisingPhaseFieldNumber = 5, - kConnectionAttemptFieldNumber = 6, - kEstablishedConnectionFieldNumber = 7, - kUpgradeAttemptFieldNumber = 9, - kBuildVersionFieldNumber = 10, - kDurationMillisFieldNumber = 1, - kStrategyFieldNumber = 2, - }; - // repeated .location.nearby.proto.connections.SessionRole role = 3; - int role_size() const; private: - int _internal_role_size() const; - public: - void clear_role(); - private: - ::location::nearby::proto::connections::SessionRole _internal_role(int index) const; - void _internal_add_role(::location::nearby::proto::connections::SessionRole value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_role(); - public: - ::location::nearby::proto::connections::SessionRole role(int index) const; - void set_role(int index, ::location::nearby::proto::connections::SessionRole value); - void add_role(::location::nearby::proto::connections::SessionRole value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& role() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_role(); - - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4; - int discovery_phase_size() const; - private: - int _internal_discovery_phase_size() const; - public: - void clear_discovery_phase(); - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* mutable_discovery_phase(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >* - mutable_discovery_phase(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& _internal_discovery_phase(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* _internal_add_discovery_phase(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& discovery_phase(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* add_discovery_phase(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >& - discovery_phase() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5; - int advertising_phase_size() const; - private: - int _internal_advertising_phase_size() const; - public: - void clear_advertising_phase(); - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* mutable_advertising_phase(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >* - mutable_advertising_phase(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& _internal_advertising_phase(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* _internal_add_advertising_phase(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& advertising_phase(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* add_advertising_phase(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >& - advertising_phase() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6; - int connection_attempt_size() const; - private: - int _internal_connection_attempt_size() const; - public: - void clear_connection_attempt(); - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* mutable_connection_attempt(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >* - mutable_connection_attempt(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& _internal_connection_attempt(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* _internal_add_connection_attempt(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& connection_attempt(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* add_connection_attempt(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >& - connection_attempt() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7; - int established_connection_size() const; - private: - int _internal_established_connection_size() const; - public: - void clear_established_connection(); - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* mutable_established_connection(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >* - mutable_established_connection(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& _internal_established_connection(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* _internal_add_established_connection(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& established_connection(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* add_established_connection(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >& - established_connection() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9; - int upgrade_attempt_size() const; - private: - int _internal_upgrade_attempt_size() const; - public: - void clear_upgrade_attempt(); - ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* mutable_upgrade_attempt(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >* - mutable_upgrade_attempt(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& _internal_upgrade_attempt(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* _internal_add_upgrade_attempt(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& upgrade_attempt(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* add_upgrade_attempt(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >& - upgrade_attempt() const; - - // optional string build_version = 10; - bool has_build_version() const; - private: - bool _internal_has_build_version() const; - public: - void clear_build_version(); - const std::string& build_version() const; - template - void set_build_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_build_version(); - PROTOBUF_NODISCARD std::string* release_build_version(); - void set_allocated_build_version(std::string* build_version); - private: - const std::string& _internal_build_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_build_version(const std::string& value); - std::string* _internal_mutable_build_version(); - public: - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2; - bool has_strategy() const; - private: - bool _internal_has_strategy() const; - public: - void clear_strategy(); - ::location::nearby::proto::connections::ConnectionsStrategy strategy() const; - void set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value); - private: - ::location::nearby::proto::connections::ConnectionsStrategy _internal_strategy() const; - void _internal_set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.StrategySession) + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_OperationResult* PROTOBUF_NONNULL other); private: - class _Internal; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.OperationResult"; } - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField role_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase > discovery_phase_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase > advertising_phase_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt > connection_attempt_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection > established_connection_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt > upgrade_attempt_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr build_version_; - int64_t duration_millis_; - int strategy_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_DiscoveryPhase final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) */ { - public: - inline ConnectionsLog_DiscoveryPhase() : ConnectionsLog_DiscoveryPhase(nullptr) {} - ~ConnectionsLog_DiscoveryPhase() override; - explicit constexpr ConnectionsLog_DiscoveryPhase(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_DiscoveryPhase(const ConnectionsLog_DiscoveryPhase& from); - ConnectionsLog_DiscoveryPhase(ConnectionsLog_DiscoveryPhase&& from) noexcept - : ConnectionsLog_DiscoveryPhase() { + explicit ConnectionsLog_OperationResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_OperationResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_OperationResult& from); + ConnectionsLog_OperationResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_OperationResult&& from) noexcept + : ConnectionsLog_OperationResult(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - inline ConnectionsLog_DiscoveryPhase& operator=(const ConnectionsLog_DiscoveryPhase& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_DiscoveryPhase& operator=(ConnectionsLog_DiscoveryPhase&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_DiscoveryPhase& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_DiscoveryPhase* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DiscoveryPhase_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(ConnectionsLog_DiscoveryPhase& a, ConnectionsLog_DiscoveryPhase& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DiscoveryPhase* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_DiscoveryPhase* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_DiscoveryPhase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_DiscoveryPhase& from); - void MergeFrom(const ConnectionsLog_DiscoveryPhase& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DiscoveryPhase* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase"; - } - protected: - explicit ConnectionsLog_DiscoveryPhase(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMediumFieldNumber = 2, - kDiscoveredEndpointFieldNumber = 3, - kSentConnectionRequestFieldNumber = 4, - kUwbRangingFieldNumber = 5, - kAdvDisResultFieldNumber = 8, - kDiscoveryMetadataFieldNumber = 7, - kDurationMillisFieldNumber = 1, - kClientFlowIdFieldNumber = 6, - kStopReasonFieldNumber = 9, - kDeviceTypeFieldNumber = 10, - kSupportedServiceFieldNumber = 11, - }; - // repeated .location.nearby.proto.connections.Medium medium = 2; - int medium_size() const; - private: - int _internal_medium_size() const; - public: - void clear_medium(); - private: - ::location::nearby::proto::connections::Medium _internal_medium(int index) const; - void _internal_add_medium(::location::nearby::proto::connections::Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_medium(); - public: - ::location::nearby::proto::connections::Medium medium(int index) const; - void set_medium(int index, ::location::nearby::proto::connections::Medium value); - void add_medium(::location::nearby::proto::connections::Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& medium() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_medium(); - - // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3; - int discovered_endpoint_size() const; - private: - int _internal_discovered_endpoint_size() const; - public: - void clear_discovered_endpoint(); - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* mutable_discovered_endpoint(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >* - mutable_discovered_endpoint(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& _internal_discovered_endpoint(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* _internal_add_discovered_endpoint(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& discovered_endpoint(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* add_discovered_endpoint(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >& - discovered_endpoint() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4; - int sent_connection_request_size() const; - private: - int _internal_sent_connection_request_size() const; - public: - void clear_sent_connection_request(); - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* mutable_sent_connection_request(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >* - mutable_sent_connection_request(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& _internal_sent_connection_request(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _internal_add_sent_connection_request(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& sent_connection_request(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* add_sent_connection_request(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >& - sent_connection_request() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5; - int uwb_ranging_size() const; - private: - int _internal_uwb_ranging_size() const; - public: - void clear_uwb_ranging(); - ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* mutable_uwb_ranging(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >* - mutable_uwb_ranging(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& _internal_uwb_ranging(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* _internal_add_uwb_ranging(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& uwb_ranging(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* add_uwb_ranging(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >& - uwb_ranging() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8; - int adv_dis_result_size() const; - private: - int _internal_adv_dis_result_size() const; - public: - void clear_adv_dis_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* mutable_adv_dis_result(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >* - mutable_adv_dis_result(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& _internal_adv_dis_result(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _internal_add_adv_dis_result(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& adv_dis_result(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* add_adv_dis_result(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >& - adv_dis_result() const; - - // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; - bool has_discovery_metadata() const; - private: - bool _internal_has_discovery_metadata() const; - public: - void clear_discovery_metadata(); - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& discovery_metadata() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* release_discovery_metadata(); - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* mutable_discovery_metadata(); - void set_allocated_discovery_metadata(::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* discovery_metadata); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& _internal_discovery_metadata() const; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* _internal_mutable_discovery_metadata(); - public: - void unsafe_arena_set_allocated_discovery_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* discovery_metadata); - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* unsafe_arena_release_discovery_metadata(); - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int64 client_flow_id = 6; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9; - bool has_stop_reason() const; - private: - bool _internal_has_stop_reason() const; - public: - void clear_stop_reason(); - ::location::nearby::proto::connections::StopDiscoveringReason stop_reason() const; - void set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value); - private: - ::location::nearby::proto::connections::StopDiscoveringReason _internal_stop_reason() const; - void _internal_set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value); - public: - - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::connections::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::connections::DeviceType value); - private: - ::location::nearby::proto::connections::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); - public: - - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - bool has_supported_service() const; - private: - bool _internal_has_supported_service() const; - public: - void clear_supported_service(); - ::location::nearby::proto::connections::SupportedService supported_service() const; - void set_supported_service(::location::nearby::proto::connections::SupportedService value); - private: - ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; - void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField medium_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint > discovered_endpoint_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest > sent_connection_request_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess > uwb_ranging_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium > adv_dis_result_; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* discovery_metadata_; - int64_t duration_millis_; - int64_t client_flow_id_; - int stop_reason_; - int device_type_; - int supported_service_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_DiscoveredEndpoint final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) */ { public: - inline ConnectionsLog_DiscoveredEndpoint() : ConnectionsLog_DiscoveredEndpoint(nullptr) {} - ~ConnectionsLog_DiscoveredEndpoint() override; - explicit constexpr ConnectionsLog_DiscoveredEndpoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_DiscoveredEndpoint(const ConnectionsLog_DiscoveredEndpoint& from); - ConnectionsLog_DiscoveredEndpoint(ConnectionsLog_DiscoveredEndpoint&& from) noexcept - : ConnectionsLog_DiscoveredEndpoint() { - *this = ::std::move(from); - } - - inline ConnectionsLog_DiscoveredEndpoint& operator=(const ConnectionsLog_DiscoveredEndpoint& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_DiscoveredEndpoint& operator=(ConnectionsLog_DiscoveredEndpoint&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_DiscoveredEndpoint& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_DiscoveredEndpoint* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DiscoveredEndpoint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(ConnectionsLog_DiscoveredEndpoint& a, ConnectionsLog_DiscoveredEndpoint& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DiscoveredEndpoint* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_DiscoveredEndpoint* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_DiscoveredEndpoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_DiscoveredEndpoint& from); - void MergeFrom(const ConnectionsLog_DiscoveredEndpoint& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DiscoveredEndpoint* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint"; - } - protected: - explicit ConnectionsLog_DiscoveredEndpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLatencyMillisFieldNumber = 2, - kMediumFieldNumber = 1, + kResultCategoryFieldNumber = 1, + kResultCodeFieldNumber = 2, }; - // optional int64 latency_millis = 2; - bool has_latency_millis() const; - private: - bool _internal_has_latency_millis() const; - public: - void clear_latency_millis(); - int64_t latency_millis() const; - void set_latency_millis(int64_t value); - private: - int64_t _internal_latency_millis() const; - void _internal_set_latency_millis(int64_t value); - public: + // optional .location.nearby.proto.connections.OperationResultCategory result_category = 1; + bool has_result_category() const; + void clear_result_category() ; + ::location::nearby::proto::connections::OperationResultCategory result_category() const; + void set_result_category(::location::nearby::proto::connections::OperationResultCategory value); - // optional .location.nearby.proto.connections.Medium medium = 1; - bool has_medium() const; private: - bool _internal_has_medium() const; - public: - void clear_medium(); - ::location::nearby::proto::connections::Medium medium() const; - void set_medium(::location::nearby::proto::connections::Medium value); - private: - ::location::nearby::proto::connections::Medium _internal_medium() const; - void _internal_set_medium(::location::nearby::proto::connections::Medium value); - public: + ::location::nearby::proto::connections::OperationResultCategory _internal_result_category() const; + void _internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value); - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) + public: + // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; + bool has_result_code() const; + void clear_result_code() ; + ::location::nearby::proto::connections::OperationResultCode result_code() const; + void set_result_code(::location::nearby::proto::connections::OperationResultCode value); + + private: + ::location::nearby::proto::connections::OperationResultCode _internal_result_code() const; + void _internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.OperationResult) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t latency_millis_; - int medium_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_UwbRangingProcess final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) */ { - public: - inline ConnectionsLog_UwbRangingProcess() : ConnectionsLog_UwbRangingProcess(nullptr) {} - ~ConnectionsLog_UwbRangingProcess() override; - explicit constexpr ConnectionsLog_UwbRangingProcess(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_UwbRangingProcess(const ConnectionsLog_UwbRangingProcess& from); - ConnectionsLog_UwbRangingProcess(ConnectionsLog_UwbRangingProcess&& from) noexcept - : ConnectionsLog_UwbRangingProcess() { - *this = ::std::move(from); - } - - inline ConnectionsLog_UwbRangingProcess& operator=(const ConnectionsLog_UwbRangingProcess& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_UwbRangingProcess& operator=(ConnectionsLog_UwbRangingProcess&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_UwbRangingProcess& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_UwbRangingProcess* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_UwbRangingProcess_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(ConnectionsLog_UwbRangingProcess& a, ConnectionsLog_UwbRangingProcess& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_UwbRangingProcess* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_UwbRangingProcess* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_UwbRangingProcess* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_UwbRangingProcess& from); - void MergeFrom(const ConnectionsLog_UwbRangingProcess& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_UwbRangingProcess* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess"; - } - protected: - explicit ConnectionsLog_UwbRangingProcess(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUwbRangingDataFieldNumber = 2, - kDurationMillisFieldNumber = 1, - kNumberOfRangingDataFieldNumber = 3, - kDistanceMinFieldNumber = 4, - kDistanceMaxFieldNumber = 5, - kDistanceAveFieldNumber = 6, - kDistanceVarianceFieldNumber = 7, - kAzimuthMinFieldNumber = 8, - kAzimuthMaxFieldNumber = 9, - kAzimuthAveFieldNumber = 10, - kAzimuthVarianceFieldNumber = 11, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_OperationResult& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int result_category_; + int result_code_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2; - int uwb_ranging_data_size() const; - private: - int _internal_uwb_ranging_data_size() const; - public: - void clear_uwb_ranging_data(); - ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* mutable_uwb_ranging_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >* - mutable_uwb_ranging_data(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& _internal_uwb_ranging_data(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* _internal_add_uwb_ranging_data(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& uwb_ranging_data(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* add_uwb_ranging_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >& - uwb_ranging_data() const; - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int32 number_of_ranging_data = 3; - bool has_number_of_ranging_data() const; - private: - bool _internal_has_number_of_ranging_data() const; - public: - void clear_number_of_ranging_data(); - int32_t number_of_ranging_data() const; - void set_number_of_ranging_data(int32_t value); - private: - int32_t _internal_number_of_ranging_data() const; - void _internal_set_number_of_ranging_data(int32_t value); - public: - - // optional int32 distance_min = 4; - bool has_distance_min() const; - private: - bool _internal_has_distance_min() const; - public: - void clear_distance_min(); - int32_t distance_min() const; - void set_distance_min(int32_t value); - private: - int32_t _internal_distance_min() const; - void _internal_set_distance_min(int32_t value); - public: - - // optional int32 distance_max = 5; - bool has_distance_max() const; - private: - bool _internal_has_distance_max() const; - public: - void clear_distance_max(); - int32_t distance_max() const; - void set_distance_max(int32_t value); - private: - int32_t _internal_distance_max() const; - void _internal_set_distance_max(int32_t value); - public: - - // optional int32 distance_ave = 6; - bool has_distance_ave() const; - private: - bool _internal_has_distance_ave() const; - public: - void clear_distance_ave(); - int32_t distance_ave() const; - void set_distance_ave(int32_t value); - private: - int32_t _internal_distance_ave() const; - void _internal_set_distance_ave(int32_t value); - public: - - // optional int32 distance_variance = 7; - bool has_distance_variance() const; - private: - bool _internal_has_distance_variance() const; - public: - void clear_distance_variance(); - int32_t distance_variance() const; - void set_distance_variance(int32_t value); - private: - int32_t _internal_distance_variance() const; - void _internal_set_distance_variance(int32_t value); - public: - - // optional int32 azimuth_min = 8; - bool has_azimuth_min() const; - private: - bool _internal_has_azimuth_min() const; - public: - void clear_azimuth_min(); - int32_t azimuth_min() const; - void set_azimuth_min(int32_t value); - private: - int32_t _internal_azimuth_min() const; - void _internal_set_azimuth_min(int32_t value); - public: - - // optional int32 azimuth_max = 9; - bool has_azimuth_max() const; - private: - bool _internal_has_azimuth_max() const; - public: - void clear_azimuth_max(); - int32_t azimuth_max() const; - void set_azimuth_max(int32_t value); - private: - int32_t _internal_azimuth_max() const; - void _internal_set_azimuth_max(int32_t value); - public: - - // optional int32 azimuth_ave = 10; - bool has_azimuth_ave() const; - private: - bool _internal_has_azimuth_ave() const; - public: - void clear_azimuth_ave(); - int32_t azimuth_ave() const; - void set_azimuth_ave(int32_t value); - private: - int32_t _internal_azimuth_ave() const; - void _internal_set_azimuth_ave(int32_t value); - public: - - // optional int32 azimuth_variance = 11; - bool has_azimuth_variance() const; - private: - bool _internal_has_azimuth_variance() const; - public: - void clear_azimuth_variance(); - int32_t azimuth_variance() const; - void set_azimuth_variance(int32_t value); - private: - int32_t _internal_azimuth_variance() const; - void _internal_set_azimuth_variance(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent > uwb_ranging_data_; - int64_t duration_millis_; - int32_t number_of_ranging_data_; - int32_t distance_min_; - int32_t distance_max_; - int32_t distance_ave_; - int32_t distance_variance_; - int32_t azimuth_min_; - int32_t azimuth_max_; - int32_t azimuth_ave_; - int32_t azimuth_variance_; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_OperationResult_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog_RawUwbRangingEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) */ { - public: - inline ConnectionsLog_RawUwbRangingEvent() : ConnectionsLog_RawUwbRangingEvent(nullptr) {} - ~ConnectionsLog_RawUwbRangingEvent() override; - explicit constexpr ConnectionsLog_RawUwbRangingEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_RawUwbRangingEvent(const ConnectionsLog_RawUwbRangingEvent& from); - ConnectionsLog_RawUwbRangingEvent(ConnectionsLog_RawUwbRangingEvent&& from) noexcept - : ConnectionsLog_RawUwbRangingEvent() { - *this = ::std::move(from); - } - - inline ConnectionsLog_RawUwbRangingEvent& operator=(const ConnectionsLog_RawUwbRangingEvent& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_RawUwbRangingEvent& operator=(ConnectionsLog_RawUwbRangingEvent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_RawUwbRangingEvent& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_RawUwbRangingEvent* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_RawUwbRangingEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ConnectionsLog_RawUwbRangingEvent& a, ConnectionsLog_RawUwbRangingEvent& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_RawUwbRangingEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_RawUwbRangingEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_RawUwbRangingEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_RawUwbRangingEvent& from); - void MergeFrom(const ConnectionsLog_RawUwbRangingEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_RawUwbRangingEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent"; - } - protected: - explicit ConnectionsLog_RawUwbRangingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDistanceFieldNumber = 1, - kAzimuthAngleFieldNumber = 2, - kPolarAngleFieldNumber = 3, - }; - // optional int32 distance = 1; - bool has_distance() const; - private: - bool _internal_has_distance() const; - public: - void clear_distance(); - int32_t distance() const; - void set_distance(int32_t value); - private: - int32_t _internal_distance() const; - void _internal_set_distance(int32_t value); - public: - - // optional int32 azimuth_angle = 2; - bool has_azimuth_angle() const; - private: - bool _internal_has_azimuth_angle() const; - public: - void clear_azimuth_angle(); - int32_t azimuth_angle() const; - void set_azimuth_angle(int32_t value); - private: - int32_t _internal_azimuth_angle() const; - void _internal_set_azimuth_angle(int32_t value); - public: - - // optional int32 polar_angle = 3; - bool has_polar_angle() const; - private: - bool _internal_has_polar_angle() const; - public: - void clear_polar_angle(); - int32_t polar_angle() const; - void set_polar_angle(int32_t value); - private: - int32_t _internal_polar_angle() const; - void _internal_set_polar_angle(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t distance_; - int32_t azimuth_angle_; - int32_t polar_angle_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_AdvertisingPhase final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) */ { - public: - inline ConnectionsLog_AdvertisingPhase() : ConnectionsLog_AdvertisingPhase(nullptr) {} - ~ConnectionsLog_AdvertisingPhase() override; - explicit constexpr ConnectionsLog_AdvertisingPhase(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_AdvertisingPhase(const ConnectionsLog_AdvertisingPhase& from); - ConnectionsLog_AdvertisingPhase(ConnectionsLog_AdvertisingPhase&& from) noexcept - : ConnectionsLog_AdvertisingPhase() { - *this = ::std::move(from); - } - - inline ConnectionsLog_AdvertisingPhase& operator=(const ConnectionsLog_AdvertisingPhase& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_AdvertisingPhase& operator=(ConnectionsLog_AdvertisingPhase&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_AdvertisingPhase& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_AdvertisingPhase* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_AdvertisingPhase_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(ConnectionsLog_AdvertisingPhase& a, ConnectionsLog_AdvertisingPhase& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_AdvertisingPhase* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_AdvertisingPhase* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_AdvertisingPhase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_AdvertisingPhase& from); - void MergeFrom(const ConnectionsLog_AdvertisingPhase& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_AdvertisingPhase* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase"; - } - protected: - explicit ConnectionsLog_AdvertisingPhase(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMediumFieldNumber = 2, - kReceivedConnectionRequestFieldNumber = 3, - kAdvDisResultFieldNumber = 6, - kAdvertisingMetadataFieldNumber = 5, - kDurationMillisFieldNumber = 1, - kClientFlowIdFieldNumber = 4, - kStopReasonFieldNumber = 7, - kDeviceTypeFieldNumber = 8, - kSupportedServiceFieldNumber = 9, - }; - // repeated .location.nearby.proto.connections.Medium medium = 2; - int medium_size() const; - private: - int _internal_medium_size() const; - public: - void clear_medium(); - private: - ::location::nearby::proto::connections::Medium _internal_medium(int index) const; - void _internal_add_medium(::location::nearby::proto::connections::Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_medium(); - public: - ::location::nearby::proto::connections::Medium medium(int index) const; - void set_medium(int index, ::location::nearby::proto::connections::Medium value); - void add_medium(::location::nearby::proto::connections::Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& medium() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_medium(); - - // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3; - int received_connection_request_size() const; - private: - int _internal_received_connection_request_size() const; - public: - void clear_received_connection_request(); - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* mutable_received_connection_request(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >* - mutable_received_connection_request(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& _internal_received_connection_request(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _internal_add_received_connection_request(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& received_connection_request(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* add_received_connection_request(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >& - received_connection_request() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6; - int adv_dis_result_size() const; - private: - int _internal_adv_dis_result_size() const; - public: - void clear_adv_dis_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* mutable_adv_dis_result(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >* - mutable_adv_dis_result(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& _internal_adv_dis_result(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _internal_add_adv_dis_result(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& adv_dis_result(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* add_adv_dis_result(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >& - adv_dis_result() const; - - // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; - bool has_advertising_metadata() const; - private: - bool _internal_has_advertising_metadata() const; - public: - void clear_advertising_metadata(); - const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& advertising_metadata() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* release_advertising_metadata(); - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* mutable_advertising_metadata(); - void set_allocated_advertising_metadata(::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* advertising_metadata); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& _internal_advertising_metadata() const; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* _internal_mutable_advertising_metadata(); - public: - void unsafe_arena_set_allocated_advertising_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* advertising_metadata); - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* unsafe_arena_release_advertising_metadata(); - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int64 client_flow_id = 4; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7; - bool has_stop_reason() const; - private: - bool _internal_has_stop_reason() const; - public: - void clear_stop_reason(); - ::location::nearby::proto::connections::StopAdvertisingReason stop_reason() const; - void set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value); - private: - ::location::nearby::proto::connections::StopAdvertisingReason _internal_stop_reason() const; - void _internal_set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value); - public: - - // optional .location.nearby.proto.connections.DeviceType device_type = 8; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::connections::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::connections::DeviceType value); - private: - ::location::nearby::proto::connections::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); - public: - - // optional .location.nearby.proto.connections.SupportedService supported_service = 9; - bool has_supported_service() const; - private: - bool _internal_has_supported_service() const; - public: - void clear_supported_service(); - ::location::nearby::proto::connections::SupportedService supported_service() const; - void set_supported_service(::location::nearby::proto::connections::SupportedService value); - private: - ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; - void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField medium_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest > received_connection_request_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium > adv_dis_result_; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* advertising_metadata_; - int64_t duration_millis_; - int64_t client_flow_id_; - int stop_reason_; - int device_type_; - int supported_service_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_ConnectionRequest final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) */ { - public: - inline ConnectionsLog_ConnectionRequest() : ConnectionsLog_ConnectionRequest(nullptr) {} - ~ConnectionsLog_ConnectionRequest() override; - explicit constexpr ConnectionsLog_ConnectionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_ConnectionRequest(const ConnectionsLog_ConnectionRequest& from); - ConnectionsLog_ConnectionRequest(ConnectionsLog_ConnectionRequest&& from) noexcept - : ConnectionsLog_ConnectionRequest() { - *this = ::std::move(from); - } - - inline ConnectionsLog_ConnectionRequest& operator=(const ConnectionsLog_ConnectionRequest& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_ConnectionRequest& operator=(ConnectionsLog_ConnectionRequest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_ConnectionRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_ConnectionRequest* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_ConnectionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(ConnectionsLog_ConnectionRequest& a, ConnectionsLog_ConnectionRequest& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_ConnectionRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_ConnectionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_ConnectionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_ConnectionRequest& from); - void MergeFrom(const ConnectionsLog_ConnectionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_ConnectionRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest"; - } - protected: - explicit ConnectionsLog_ConnectionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDurationMillisFieldNumber = 1, - kRequestDelayMillisFieldNumber = 2, - kLocalResponseFieldNumber = 3, - kRemoteResponseFieldNumber = 4, - kClientFlowIdFieldNumber = 5, - }; - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int64 request_delay_millis = 2; - bool has_request_delay_millis() const; - private: - bool _internal_has_request_delay_millis() const; - public: - void clear_request_delay_millis(); - int64_t request_delay_millis() const; - void set_request_delay_millis(int64_t value); - private: - int64_t _internal_request_delay_millis() const; - void _internal_set_request_delay_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3; - bool has_local_response() const; - private: - bool _internal_has_local_response() const; - public: - void clear_local_response(); - ::location::nearby::proto::connections::ConnectionRequestResponse local_response() const; - void set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value); - private: - ::location::nearby::proto::connections::ConnectionRequestResponse _internal_local_response() const; - void _internal_set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value); - public: - - // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; - bool has_remote_response() const; - private: - bool _internal_has_remote_response() const; - public: - void clear_remote_response(); - ::location::nearby::proto::connections::ConnectionRequestResponse remote_response() const; - void set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value); - private: - ::location::nearby::proto::connections::ConnectionRequestResponse _internal_remote_response() const; - void _internal_set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value); - public: - - // optional int64 client_flow_id = 5; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t duration_millis_; - int64_t request_delay_millis_; - int local_response_; - int remote_response_; - int64_t client_flow_id_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_ConnectionAttempt final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) */ { - public: - inline ConnectionsLog_ConnectionAttempt() : ConnectionsLog_ConnectionAttempt(nullptr) {} - ~ConnectionsLog_ConnectionAttempt() override; - explicit constexpr ConnectionsLog_ConnectionAttempt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_ConnectionAttempt(const ConnectionsLog_ConnectionAttempt& from); - ConnectionsLog_ConnectionAttempt(ConnectionsLog_ConnectionAttempt&& from) noexcept - : ConnectionsLog_ConnectionAttempt() { - *this = ::std::move(from); - } - - inline ConnectionsLog_ConnectionAttempt& operator=(const ConnectionsLog_ConnectionAttempt& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_ConnectionAttempt& operator=(ConnectionsLog_ConnectionAttempt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_ConnectionAttempt& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_ConnectionAttempt* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_ConnectionAttempt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(ConnectionsLog_ConnectionAttempt& a, ConnectionsLog_ConnectionAttempt& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_ConnectionAttempt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_ConnectionAttempt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_ConnectionAttempt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_ConnectionAttempt& from); - void MergeFrom(const ConnectionsLog_ConnectionAttempt& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_ConnectionAttempt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt"; - } - protected: - explicit ConnectionsLog_ConnectionAttempt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConnectionTokenFieldNumber = 7, - kConnectionAttemptMetadataFieldNumber = 8, - kOperationResultFieldNumber = 9, - kDurationMillisFieldNumber = 1, - kTypeFieldNumber = 2, - kDirectionFieldNumber = 3, - kMediumFieldNumber = 4, - kAttemptResultFieldNumber = 5, - kClientFlowIdFieldNumber = 6, - kConnectionModeFieldNumber = 10, - kDeviceTypeFieldNumber = 11, - kWifiConnectionLatencyMillisFieldNumber = 13, - kDeviceAttestationLatencyMillisFieldNumber = 14, - kSupportedServiceFieldNumber = 12, - }; - // optional string connection_token = 7; - bool has_connection_token() const; - private: - bool _internal_has_connection_token() const; - public: - void clear_connection_token(); - const std::string& connection_token() const; - template - void set_connection_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_token(); - PROTOBUF_NODISCARD std::string* release_connection_token(); - void set_allocated_connection_token(std::string* connection_token); - private: - const std::string& _internal_connection_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const std::string& value); - std::string* _internal_mutable_connection_token(); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8; - bool has_connection_attempt_metadata() const; - private: - bool _internal_has_connection_attempt_metadata() const; - public: - void clear_connection_attempt_metadata(); - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& connection_attempt_metadata() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* release_connection_attempt_metadata(); - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* mutable_connection_attempt_metadata(); - void set_allocated_connection_attempt_metadata(::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* connection_attempt_metadata); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& _internal_connection_attempt_metadata() const; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* _internal_mutable_connection_attempt_metadata(); - public: - void unsafe_arena_set_allocated_connection_attempt_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* connection_attempt_metadata); - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* unsafe_arena_release_connection_attempt_metadata(); - - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; - bool has_operation_result() const; - private: - bool _internal_has_operation_result() const; - public: - void clear_operation_result(); - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* release_operation_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* mutable_operation_result(); - void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _internal_mutable_operation_result(); - public: - void unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* unsafe_arena_release_operation_result(); - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionAttemptType type = 2; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::proto::connections::ConnectionAttemptType type() const; - void set_type(::location::nearby::proto::connections::ConnectionAttemptType value); - private: - ::location::nearby::proto::connections::ConnectionAttemptType _internal_type() const; - void _internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value); - public: - - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; - bool has_direction() const; - private: - bool _internal_has_direction() const; - public: - void clear_direction(); - ::location::nearby::proto::connections::ConnectionAttemptDirection direction() const; - void set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); - private: - ::location::nearby::proto::connections::ConnectionAttemptDirection _internal_direction() const; - void _internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); - public: - - // optional .location.nearby.proto.connections.Medium medium = 4; - bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); - ::location::nearby::proto::connections::Medium medium() const; - void set_medium(::location::nearby::proto::connections::Medium value); - private: - ::location::nearby::proto::connections::Medium _internal_medium() const; - void _internal_set_medium(::location::nearby::proto::connections::Medium value); - public: - - // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; - bool has_attempt_result() const; - private: - bool _internal_has_attempt_result() const; - public: - void clear_attempt_result(); - ::location::nearby::proto::connections::ConnectionAttemptResult attempt_result() const; - void set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value); - private: - ::location::nearby::proto::connections::ConnectionAttemptResult _internal_attempt_result() const; - void _internal_set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value); - public: - - // optional int64 client_flow_id = 6; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10; - bool has_connection_mode() const; - private: - bool _internal_has_connection_mode() const; - public: - void clear_connection_mode(); - ::location::nearby::proto::connections::ConnectionMode connection_mode() const; - void set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); - private: - ::location::nearby::proto::connections::ConnectionMode _internal_connection_mode() const; - void _internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); - public: - - // optional .location.nearby.proto.connections.DeviceType device_type = 11; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::connections::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::connections::DeviceType value); - private: - ::location::nearby::proto::connections::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); - public: - - // optional int64 wifi_connection_latency_millis = 13; - bool has_wifi_connection_latency_millis() const; - private: - bool _internal_has_wifi_connection_latency_millis() const; - public: - void clear_wifi_connection_latency_millis(); - int64_t wifi_connection_latency_millis() const; - void set_wifi_connection_latency_millis(int64_t value); - private: - int64_t _internal_wifi_connection_latency_millis() const; - void _internal_set_wifi_connection_latency_millis(int64_t value); - public: - - // optional int64 device_attestation_latency_millis = 14; - bool has_device_attestation_latency_millis() const; - private: - bool _internal_has_device_attestation_latency_millis() const; - public: - void clear_device_attestation_latency_millis(); - int64_t device_attestation_latency_millis() const; - void set_device_attestation_latency_millis(int64_t value); - private: - int64_t _internal_device_attestation_latency_millis() const; - void _internal_set_device_attestation_latency_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.SupportedService supported_service = 12; - bool has_supported_service() const; - private: - bool _internal_has_supported_service() const; - public: - void clear_supported_service(); - ::location::nearby::proto::connections::SupportedService supported_service() const; - void set_supported_service(::location::nearby::proto::connections::SupportedService value); - private: - ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; - void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_token_; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* connection_attempt_metadata_; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result_; - int64_t duration_millis_; - int type_; - int direction_; - int medium_; - int attempt_result_; - int64_t client_flow_id_; - int connection_mode_; - int device_type_; - int64_t wifi_connection_latency_millis_; - int64_t device_attestation_latency_millis_; - int supported_service_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_DeviceInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) */ { - public: - inline ConnectionsLog_DeviceInfo() : ConnectionsLog_DeviceInfo(nullptr) {} - ~ConnectionsLog_DeviceInfo() override; - explicit constexpr ConnectionsLog_DeviceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_DeviceInfo(const ConnectionsLog_DeviceInfo& from); - ConnectionsLog_DeviceInfo(ConnectionsLog_DeviceInfo&& from) noexcept - : ConnectionsLog_DeviceInfo() { - *this = ::std::move(from); - } - - inline ConnectionsLog_DeviceInfo& operator=(const ConnectionsLog_DeviceInfo& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_DeviceInfo& operator=(ConnectionsLog_DeviceInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_DeviceInfo& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_DeviceInfo* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DeviceInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(ConnectionsLog_DeviceInfo& a, ConnectionsLog_DeviceInfo& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DeviceInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_DeviceInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_DeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_DeviceInfo& from); - void MergeFrom(const ConnectionsLog_DeviceInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DeviceInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DeviceInfo"; - } - protected: - explicit ConnectionsLog_DeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionsLog_DeviceInfo_Platform Platform; - static constexpr Platform UNKNOWN = - ConnectionsLog_DeviceInfo_Platform_UNKNOWN; - static constexpr Platform ANDROID = - ConnectionsLog_DeviceInfo_Platform_ANDROID; - static constexpr Platform IOS = - ConnectionsLog_DeviceInfo_Platform_IOS; - static constexpr Platform CROS = - ConnectionsLog_DeviceInfo_Platform_CROS; - static constexpr Platform WINDOWS = - ConnectionsLog_DeviceInfo_Platform_WINDOWS; - static inline bool Platform_IsValid(int value) { - return ConnectionsLog_DeviceInfo_Platform_IsValid(value); - } - static constexpr Platform Platform_MIN = - ConnectionsLog_DeviceInfo_Platform_Platform_MIN; - static constexpr Platform Platform_MAX = - ConnectionsLog_DeviceInfo_Platform_Platform_MAX; - static constexpr int Platform_ARRAYSIZE = - ConnectionsLog_DeviceInfo_Platform_Platform_ARRAYSIZE; - template - static inline const std::string& Platform_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Platform_Name."); - return ConnectionsLog_DeviceInfo_Platform_Name(enum_t_value); - } - static inline bool Platform_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Platform* value) { - return ConnectionsLog_DeviceInfo_Platform_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kDeviceModelFieldNumber = 1, - kCountryCodeFieldNumber = 3, - kManufacturerFieldNumber = 4, - kDevicePlatformFieldNumber = 2, - }; - // optional string device_model = 1; - bool has_device_model() const; - private: - bool _internal_has_device_model() const; - public: - void clear_device_model(); - const std::string& device_model() const; - template - void set_device_model(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_model(); - PROTOBUF_NODISCARD std::string* release_device_model(); - void set_allocated_device_model(std::string* device_model); - private: - const std::string& _internal_device_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const std::string& value); - std::string* _internal_mutable_device_model(); - public: - - // optional string country_code = 3; - bool has_country_code() const; - private: - bool _internal_has_country_code() const; - public: - void clear_country_code(); - const std::string& country_code() const; - template - void set_country_code(ArgT0&& arg0, ArgT... args); - std::string* mutable_country_code(); - PROTOBUF_NODISCARD std::string* release_country_code(); - void set_allocated_country_code(std::string* country_code); - private: - const std::string& _internal_country_code() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_country_code(const std::string& value); - std::string* _internal_mutable_country_code(); - public: - - // optional string manufacturer = 4; - bool has_manufacturer() const; - private: - bool _internal_has_manufacturer() const; - public: - void clear_manufacturer(); - const std::string& manufacturer() const; - template - void set_manufacturer(ArgT0&& arg0, ArgT... args); - std::string* mutable_manufacturer(); - PROTOBUF_NODISCARD std::string* release_manufacturer(); - void set_allocated_manufacturer(std::string* manufacturer); - private: - const std::string& _internal_manufacturer() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_manufacturer(const std::string& value); - std::string* _internal_mutable_manufacturer(); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; - bool has_device_platform() const; - private: - bool _internal_has_device_platform() const; - public: - void clear_device_platform(); - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform device_platform() const; - void set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value); - private: - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform _internal_device_platform() const; - void _internal_set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_model_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_code_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr manufacturer_; - int device_platform_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_DisconnectionReasonDetail final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) */ { - public: - inline ConnectionsLog_DisconnectionReasonDetail() : ConnectionsLog_DisconnectionReasonDetail(nullptr) {} - ~ConnectionsLog_DisconnectionReasonDetail() override; - explicit constexpr ConnectionsLog_DisconnectionReasonDetail(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_DisconnectionReasonDetail(const ConnectionsLog_DisconnectionReasonDetail& from); - ConnectionsLog_DisconnectionReasonDetail(ConnectionsLog_DisconnectionReasonDetail&& from) noexcept - : ConnectionsLog_DisconnectionReasonDetail() { - *this = ::std::move(from); - } - - inline ConnectionsLog_DisconnectionReasonDetail& operator=(const ConnectionsLog_DisconnectionReasonDetail& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_DisconnectionReasonDetail& operator=(ConnectionsLog_DisconnectionReasonDetail&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_DisconnectionReasonDetail& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_DisconnectionReasonDetail* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DisconnectionReasonDetail_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ConnectionsLog_DisconnectionReasonDetail& a, ConnectionsLog_DisconnectionReasonDetail& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DisconnectionReasonDetail* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_DisconnectionReasonDetail* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_DisconnectionReasonDetail* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_DisconnectionReasonDetail& from); - void MergeFrom(const ConnectionsLog_DisconnectionReasonDetail& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DisconnectionReasonDetail* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail"; - } - protected: - explicit ConnectionsLog_DisconnectionReasonDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason DisconnectionReason; - static constexpr DisconnectionReason UNKNOWN_DISCONNECTION_REASON = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_UNKNOWN_DISCONNECTION_REASON; - static constexpr DisconnectionReason DCT_ERROR_MDNS_DISCOVERY_TIMEOUT = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_DISCOVERY_TIMEOUT; - static constexpr DisconnectionReason DCT_ERROR_MDNS_REGISTER_SERVICE = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_REGISTER_SERVICE; - static constexpr DisconnectionReason DCT_ERROR_SUBSEQUENT_TLS_SPAKE = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SUBSEQUENT_TLS_SPAKE; - static constexpr DisconnectionReason DCT_ERROR_REQUEST_FAILED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_REQUEST_FAILED; - static constexpr DisconnectionReason DCT_ERROR_RESPONSE_FAILED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_RESPONSE_FAILED; - static constexpr DisconnectionReason DCT_ERROR_CONTROL_MESSAGE_EXCHANGE = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CONTROL_MESSAGE_EXCHANGE; - static constexpr DisconnectionReason DCT_ERROR_CAPABILITY_MISMATCH = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CAPABILITY_MISMATCH; - static constexpr DisconnectionReason DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE; - static constexpr DisconnectionReason DCT_ERROR_WIFI_DISABLED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISABLED; - static constexpr DisconnectionReason DCT_ERROR_WIFI_DISCONNECTED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISCONNECTED; - static constexpr DisconnectionReason DCT_ERROR_WIFI_CREDENTIAL_TRANSFER = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_CREDENTIAL_TRANSFER; - static constexpr DisconnectionReason DCT_ERROR_WIFI_INTERNET_CONNECTION = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_INTERNET_CONNECTION; - static constexpr DisconnectionReason DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED; - static constexpr DisconnectionReason DCT_ERROR_USER_CANCELLED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_USER_CANCELLED; - static constexpr DisconnectionReason DCT_ERROR_SERVICE_CANCELLED = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SERVICE_CANCELLED; - static constexpr DisconnectionReason DCT_ERROR_UNVERIFIED_INTEGRITY = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UNVERIFIED_INTEGRITY; - static constexpr DisconnectionReason SESSION_SUCCESS = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_SESSION_SUCCESS; - static inline bool DisconnectionReason_IsValid(int value) { - return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(value); - } - static constexpr DisconnectionReason DisconnectionReason_MIN = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MIN; - static constexpr DisconnectionReason DisconnectionReason_MAX = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MAX; - static constexpr int DisconnectionReason_ARRAYSIZE = - ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_ARRAYSIZE; - template - static inline const std::string& DisconnectionReason_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DisconnectionReason_Name."); - return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(enum_t_value); - } - static inline bool DisconnectionReason_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - DisconnectionReason* value) { - return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kIsLocalDisconnectionFieldNumber = 1, - kDisconnectionReasonFieldNumber = 2, - }; - // optional bool is_local_disconnection = 1; - bool has_is_local_disconnection() const; - private: - bool _internal_has_is_local_disconnection() const; - public: - void clear_is_local_disconnection(); - bool is_local_disconnection() const; - void set_is_local_disconnection(bool value); - private: - bool _internal_is_local_disconnection() const; - void _internal_set_is_local_disconnection(bool value); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; - bool has_disconnection_reason() const; - private: - bool _internal_has_disconnection_reason() const; - public: - void clear_disconnection_reason(); - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason disconnection_reason() const; - void set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); - private: - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason _internal_disconnection_reason() const; - void _internal_set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool is_local_disconnection_; - int disconnection_reason_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_EstablishedConnection final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) */ { - public: - inline ConnectionsLog_EstablishedConnection() : ConnectionsLog_EstablishedConnection(nullptr) {} - ~ConnectionsLog_EstablishedConnection() override; - explicit constexpr ConnectionsLog_EstablishedConnection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_EstablishedConnection(const ConnectionsLog_EstablishedConnection& from); - ConnectionsLog_EstablishedConnection(ConnectionsLog_EstablishedConnection&& from) noexcept - : ConnectionsLog_EstablishedConnection() { - *this = ::std::move(from); - } - - inline ConnectionsLog_EstablishedConnection& operator=(const ConnectionsLog_EstablishedConnection& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_EstablishedConnection& operator=(ConnectionsLog_EstablishedConnection&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_EstablishedConnection& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_EstablishedConnection* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_EstablishedConnection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(ConnectionsLog_EstablishedConnection& a, ConnectionsLog_EstablishedConnection& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_EstablishedConnection* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_EstablishedConnection* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_EstablishedConnection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_EstablishedConnection& from); - void MergeFrom(const ConnectionsLog_EstablishedConnection& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_EstablishedConnection* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection"; - } - protected: - explicit ConnectionsLog_EstablishedConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionsLog_EstablishedConnection_SafeDisconnectionResult SafeDisconnectionResult; - static constexpr SafeDisconnectionResult UNKNOWN_SAFE_DISCONNECTION_RESULT = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT; - static constexpr SafeDisconnectionResult SAFE_DISCONNECTION = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION; - static constexpr SafeDisconnectionResult UNSAFE_DISCONNECTION = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION; - static inline bool SafeDisconnectionResult_IsValid(int value) { - return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(value); - } - static constexpr SafeDisconnectionResult SafeDisconnectionResult_MIN = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN; - static constexpr SafeDisconnectionResult SafeDisconnectionResult_MAX = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX; - static constexpr int SafeDisconnectionResult_ARRAYSIZE = - ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE; - template - static inline const std::string& SafeDisconnectionResult_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SafeDisconnectionResult_Name."); - return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(enum_t_value); - } - static inline bool SafeDisconnectionResult_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - SafeDisconnectionResult* value) { - return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSentPayloadFieldNumber = 3, - kReceivedPayloadFieldNumber = 4, - kConnectionTokenFieldNumber = 7, - kOperationResultFieldNumber = 10, - kRemoteDeviceInfoFieldNumber = 11, - kDisconnectionReasonDetailFieldNumber = 12, - kDurationMillisFieldNumber = 1, - kMediumFieldNumber = 2, - kDisconnectionReasonFieldNumber = 5, - kClientFlowIdFieldNumber = 6, - kTypeFieldNumber = 8, - kSafeDisconnectionResultFieldNumber = 9, - kDeviceTypeFieldNumber = 13, - kSupportedServiceFieldNumber = 14, - }; - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; - int sent_payload_size() const; - private: - int _internal_sent_payload_size() const; - public: - void clear_sent_payload(); - ::location::nearby::analytics::proto::ConnectionsLog_Payload* mutable_sent_payload(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >* - mutable_sent_payload(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_Payload& _internal_sent_payload(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_Payload* _internal_add_sent_payload(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_Payload& sent_payload(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_Payload* add_sent_payload(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >& - sent_payload() const; - - // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4; - int received_payload_size() const; - private: - int _internal_received_payload_size() const; - public: - void clear_received_payload(); - ::location::nearby::analytics::proto::ConnectionsLog_Payload* mutable_received_payload(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >* - mutable_received_payload(); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_Payload& _internal_received_payload(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_Payload* _internal_add_received_payload(); - public: - const ::location::nearby::analytics::proto::ConnectionsLog_Payload& received_payload(int index) const; - ::location::nearby::analytics::proto::ConnectionsLog_Payload* add_received_payload(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >& - received_payload() const; - - // optional string connection_token = 7; - bool has_connection_token() const; - private: - bool _internal_has_connection_token() const; - public: - void clear_connection_token(); - const std::string& connection_token() const; - template - void set_connection_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_token(); - PROTOBUF_NODISCARD std::string* release_connection_token(); - void set_allocated_connection_token(std::string* connection_token); - private: - const std::string& _internal_connection_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const std::string& value); - std::string* _internal_mutable_connection_token(); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10; - bool has_operation_result() const; - private: - bool _internal_has_operation_result() const; - public: - void clear_operation_result(); - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* release_operation_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* mutable_operation_result(); - void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _internal_mutable_operation_result(); - public: - void unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* unsafe_arena_release_operation_result(); - - // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; - bool has_remote_device_info() const; - private: - bool _internal_has_remote_device_info() const; - public: - void clear_remote_device_info(); - const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& remote_device_info() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* release_remote_device_info(); - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* mutable_remote_device_info(); - void set_allocated_remote_device_info(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* remote_device_info); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& _internal_remote_device_info() const; - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* _internal_mutable_remote_device_info(); - public: - void unsafe_arena_set_allocated_remote_device_info( - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* remote_device_info); - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* unsafe_arena_release_remote_device_info(); - - // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; - bool has_disconnection_reason_detail() const; - private: - bool _internal_has_disconnection_reason_detail() const; - public: - void clear_disconnection_reason_detail(); - const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& disconnection_reason_detail() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* release_disconnection_reason_detail(); - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* mutable_disconnection_reason_detail(); - void set_allocated_disconnection_reason_detail(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* disconnection_reason_detail); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& _internal_disconnection_reason_detail() const; - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* _internal_mutable_disconnection_reason_detail(); - public: - void unsafe_arena_set_allocated_disconnection_reason_detail( - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* disconnection_reason_detail); - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* unsafe_arena_release_disconnection_reason_detail(); - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.Medium medium = 2; - bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); - ::location::nearby::proto::connections::Medium medium() const; - void set_medium(::location::nearby::proto::connections::Medium value); - private: - ::location::nearby::proto::connections::Medium _internal_medium() const; - void _internal_set_medium(::location::nearby::proto::connections::Medium value); - public: - - // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; - bool has_disconnection_reason() const; - private: - bool _internal_has_disconnection_reason() const; - public: - void clear_disconnection_reason(); - ::location::nearby::proto::connections::DisconnectionReason disconnection_reason() const; - void set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value); - private: - ::location::nearby::proto::connections::DisconnectionReason _internal_disconnection_reason() const; - void _internal_set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value); - public: - - // optional int64 client_flow_id = 6; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::proto::connections::ConnectionAttemptType type() const; - void set_type(::location::nearby::proto::connections::ConnectionAttemptType value); - private: - ::location::nearby::proto::connections::ConnectionAttemptType _internal_type() const; - void _internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - bool has_safe_disconnection_result() const; - private: - bool _internal_has_safe_disconnection_result() const; - public: - void clear_safe_disconnection_result(); - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult safe_disconnection_result() const; - void set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); - private: - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult _internal_safe_disconnection_result() const; - void _internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); - public: - - // optional .location.nearby.proto.connections.DeviceType device_type = 13; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::connections::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::connections::DeviceType value); - private: - ::location::nearby::proto::connections::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); - public: - - // optional .location.nearby.proto.connections.SupportedService supported_service = 14; - bool has_supported_service() const; - private: - bool _internal_has_supported_service() const; - public: - void clear_supported_service(); - ::location::nearby::proto::connections::SupportedService supported_service() const; - void set_supported_service(::location::nearby::proto::connections::SupportedService value); - private: - ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; - void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload > sent_payload_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload > received_payload_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_token_; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result_; - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* remote_device_info_; - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* disconnection_reason_detail_; - int64_t duration_millis_; - int medium_; - int disconnection_reason_; - int64_t client_flow_id_; - int type_; - int safe_disconnection_result_; - int device_type_; - int supported_service_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_DctPayloadTransferStats final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) */ { - public: - inline ConnectionsLog_DctPayloadTransferStats() : ConnectionsLog_DctPayloadTransferStats(nullptr) {} - ~ConnectionsLog_DctPayloadTransferStats() override; - explicit constexpr ConnectionsLog_DctPayloadTransferStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_DctPayloadTransferStats(const ConnectionsLog_DctPayloadTransferStats& from); - ConnectionsLog_DctPayloadTransferStats(ConnectionsLog_DctPayloadTransferStats&& from) noexcept - : ConnectionsLog_DctPayloadTransferStats() { - *this = ::std::move(from); - } - - inline ConnectionsLog_DctPayloadTransferStats& operator=(const ConnectionsLog_DctPayloadTransferStats& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_DctPayloadTransferStats& operator=(ConnectionsLog_DctPayloadTransferStats&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_DctPayloadTransferStats& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_DctPayloadTransferStats* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DctPayloadTransferStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(ConnectionsLog_DctPayloadTransferStats& a, ConnectionsLog_DctPayloadTransferStats& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DctPayloadTransferStats* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_DctPayloadTransferStats* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_DctPayloadTransferStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_DctPayloadTransferStats& from); - void MergeFrom(const ConnectionsLog_DctPayloadTransferStats& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DctPayloadTransferStats* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats"; - } - protected: - explicit ConnectionsLog_DctPayloadTransferStats(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeFieldNumber = 1, - kNumPartsSuccessFieldNumber = 3, - kIsMultipartFieldNumber = 2, - kIsResumptionFieldNumber = 5, - kNumPartsFailureFieldNumber = 4, - }; - // optional .location.nearby.proto.connections.DctPayloadType type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::proto::connections::DctPayloadType type() const; - void set_type(::location::nearby::proto::connections::DctPayloadType value); - private: - ::location::nearby::proto::connections::DctPayloadType _internal_type() const; - void _internal_set_type(::location::nearby::proto::connections::DctPayloadType value); - public: - - // optional int32 num_parts_success = 3; - bool has_num_parts_success() const; - private: - bool _internal_has_num_parts_success() const; - public: - void clear_num_parts_success(); - int32_t num_parts_success() const; - void set_num_parts_success(int32_t value); - private: - int32_t _internal_num_parts_success() const; - void _internal_set_num_parts_success(int32_t value); - public: - - // optional bool is_multipart = 2; - bool has_is_multipart() const; - private: - bool _internal_has_is_multipart() const; - public: - void clear_is_multipart(); - bool is_multipart() const; - void set_is_multipart(bool value); - private: - bool _internal_is_multipart() const; - void _internal_set_is_multipart(bool value); - public: - - // optional bool is_resumption = 5; - bool has_is_resumption() const; - private: - bool _internal_has_is_resumption() const; - public: - void clear_is_resumption(); - bool is_resumption() const; - void set_is_resumption(bool value); - private: - bool _internal_is_resumption() const; - void _internal_set_is_resumption(bool value); - public: - - // optional int32 num_parts_failure = 4; - bool has_num_parts_failure() const; - private: - bool _internal_has_num_parts_failure() const; - public: - void clear_num_parts_failure(); - int32_t num_parts_failure() const; - void set_num_parts_failure(int32_t value); - private: - int32_t _internal_num_parts_failure() const; - void _internal_set_num_parts_failure(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int type_; - int32_t num_parts_success_; - bool is_multipart_; - bool is_resumption_; - int32_t num_parts_failure_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_Payload final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.Payload) */ { - public: - inline ConnectionsLog_Payload() : ConnectionsLog_Payload(nullptr) {} - ~ConnectionsLog_Payload() override; - explicit constexpr ConnectionsLog_Payload(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_Payload(const ConnectionsLog_Payload& from); - ConnectionsLog_Payload(ConnectionsLog_Payload&& from) noexcept - : ConnectionsLog_Payload() { - *this = ::std::move(from); - } - - inline ConnectionsLog_Payload& operator=(const ConnectionsLog_Payload& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_Payload& operator=(ConnectionsLog_Payload&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_Payload& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_Payload* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_Payload_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(ConnectionsLog_Payload& a, ConnectionsLog_Payload& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_Payload* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_Payload* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_Payload* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_Payload& from); - void MergeFrom(const ConnectionsLog_Payload& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_Payload* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.Payload"; - } - protected: - explicit ConnectionsLog_Payload(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperationResultFieldNumber = 8, - kDctPayloadTransferStatsFieldNumber = 10, - kDurationMillisFieldNumber = 1, - kTotalSizeBytesFieldNumber = 3, - kTypeFieldNumber = 2, - kNumChunksFieldNumber = 5, - kNumBytesTransferredFieldNumber = 4, - kStatusFieldNumber = 6, - kNumSuccessfulAutoResumeFieldNumber = 7, - kNumFailedAutoResumeFieldNumber = 9, - }; - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8; - bool has_operation_result() const; - private: - bool _internal_has_operation_result() const; - public: - void clear_operation_result(); - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* release_operation_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* mutable_operation_result(); - void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _internal_mutable_operation_result(); - public: - void unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* unsafe_arena_release_operation_result(); - - // optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10; - bool has_dct_payload_transfer_stats() const; - private: - bool _internal_has_dct_payload_transfer_stats() const; - public: - void clear_dct_payload_transfer_stats(); - const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& dct_payload_transfer_stats() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* release_dct_payload_transfer_stats(); - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* mutable_dct_payload_transfer_stats(); - void set_allocated_dct_payload_transfer_stats(::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* dct_payload_transfer_stats); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& _internal_dct_payload_transfer_stats() const; - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* _internal_mutable_dct_payload_transfer_stats(); - public: - void unsafe_arena_set_allocated_dct_payload_transfer_stats( - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* dct_payload_transfer_stats); - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* unsafe_arena_release_dct_payload_transfer_stats(); - - // optional int64 duration_millis = 1; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int64 total_size_bytes = 3; - bool has_total_size_bytes() const; - private: - bool _internal_has_total_size_bytes() const; - public: - void clear_total_size_bytes(); - int64_t total_size_bytes() const; - void set_total_size_bytes(int64_t value); - private: - int64_t _internal_total_size_bytes() const; - void _internal_set_total_size_bytes(int64_t value); - public: - - // optional .location.nearby.proto.connections.PayloadType type = 2; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::proto::connections::PayloadType type() const; - void set_type(::location::nearby::proto::connections::PayloadType value); - private: - ::location::nearby::proto::connections::PayloadType _internal_type() const; - void _internal_set_type(::location::nearby::proto::connections::PayloadType value); - public: - - // optional int32 num_chunks = 5; - bool has_num_chunks() const; - private: - bool _internal_has_num_chunks() const; - public: - void clear_num_chunks(); - int32_t num_chunks() const; - void set_num_chunks(int32_t value); - private: - int32_t _internal_num_chunks() const; - void _internal_set_num_chunks(int32_t value); - public: - - // optional int64 num_bytes_transferred = 4; - bool has_num_bytes_transferred() const; - private: - bool _internal_has_num_bytes_transferred() const; - public: - void clear_num_bytes_transferred(); - int64_t num_bytes_transferred() const; - void set_num_bytes_transferred(int64_t value); - private: - int64_t _internal_num_bytes_transferred() const; - void _internal_set_num_bytes_transferred(int64_t value); - public: - - // optional .location.nearby.proto.connections.PayloadStatus status = 6; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::connections::PayloadStatus status() const; - void set_status(::location::nearby::proto::connections::PayloadStatus value); - private: - ::location::nearby::proto::connections::PayloadStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::connections::PayloadStatus value); - public: - - // optional int32 num_successful_auto_resume = 7; - bool has_num_successful_auto_resume() const; - private: - bool _internal_has_num_successful_auto_resume() const; - public: - void clear_num_successful_auto_resume(); - int32_t num_successful_auto_resume() const; - void set_num_successful_auto_resume(int32_t value); - private: - int32_t _internal_num_successful_auto_resume() const; - void _internal_set_num_successful_auto_resume(int32_t value); - public: - - // optional int32 num_failed_auto_resume = 9; - bool has_num_failed_auto_resume() const; - private: - bool _internal_has_num_failed_auto_resume() const; - public: - void clear_num_failed_auto_resume(); - int32_t num_failed_auto_resume() const; - void set_num_failed_auto_resume(int32_t value); - private: - int32_t _internal_num_failed_auto_resume() const; - void _internal_set_num_failed_auto_resume(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.Payload) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result_; - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* dct_payload_transfer_stats_; - int64_t duration_millis_; - int64_t total_size_bytes_; - int type_; - int32_t num_chunks_; - int64_t num_bytes_transferred_; - int status_; - int32_t num_successful_auto_resume_; - int32_t num_failed_auto_resume_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_BandwidthUpgradeAttempt final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) */ { - public: - inline ConnectionsLog_BandwidthUpgradeAttempt() : ConnectionsLog_BandwidthUpgradeAttempt(nullptr) {} - ~ConnectionsLog_BandwidthUpgradeAttempt() override; - explicit constexpr ConnectionsLog_BandwidthUpgradeAttempt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_BandwidthUpgradeAttempt(const ConnectionsLog_BandwidthUpgradeAttempt& from); - ConnectionsLog_BandwidthUpgradeAttempt(ConnectionsLog_BandwidthUpgradeAttempt&& from) noexcept - : ConnectionsLog_BandwidthUpgradeAttempt() { - *this = ::std::move(from); - } - - inline ConnectionsLog_BandwidthUpgradeAttempt& operator=(const ConnectionsLog_BandwidthUpgradeAttempt& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_BandwidthUpgradeAttempt& operator=(ConnectionsLog_BandwidthUpgradeAttempt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_BandwidthUpgradeAttempt& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_BandwidthUpgradeAttempt* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_BandwidthUpgradeAttempt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(ConnectionsLog_BandwidthUpgradeAttempt& a, ConnectionsLog_BandwidthUpgradeAttempt& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_BandwidthUpgradeAttempt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_BandwidthUpgradeAttempt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_BandwidthUpgradeAttempt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from); - void MergeFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_BandwidthUpgradeAttempt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt"; - } - protected: - explicit ConnectionsLog_BandwidthUpgradeAttempt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConnectionTokenFieldNumber = 8, - kOperationResultFieldNumber = 9, - kDurationMillisFieldNumber = 2, - kDirectionFieldNumber = 1, - kFromMediumFieldNumber = 3, - kToMediumFieldNumber = 4, - kUpgradeResultFieldNumber = 5, - kClientFlowIdFieldNumber = 7, - kErrorStageFieldNumber = 6, - kDeviceTypeFieldNumber = 10, - kSupportedServiceFieldNumber = 11, - }; - // optional string connection_token = 8; - bool has_connection_token() const; - private: - bool _internal_has_connection_token() const; - public: - void clear_connection_token(); - const std::string& connection_token() const; - template - void set_connection_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_token(); - PROTOBUF_NODISCARD std::string* release_connection_token(); - void set_allocated_connection_token(std::string* connection_token); - private: - const std::string& _internal_connection_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const std::string& value); - std::string* _internal_mutable_connection_token(); - public: - - // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; - bool has_operation_result() const; - private: - bool _internal_has_operation_result() const; - public: - void clear_operation_result(); - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* release_operation_result(); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* mutable_operation_result(); - void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - private: - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _internal_mutable_operation_result(); - public: - void unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result); - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* unsafe_arena_release_operation_result(); - - // optional int64 duration_millis = 2; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; - bool has_direction() const; - private: - bool _internal_has_direction() const; - public: - void clear_direction(); - ::location::nearby::proto::connections::ConnectionAttemptDirection direction() const; - void set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); - private: - ::location::nearby::proto::connections::ConnectionAttemptDirection _internal_direction() const; - void _internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); - public: - - // optional .location.nearby.proto.connections.Medium from_medium = 3; - bool has_from_medium() const; - private: - bool _internal_has_from_medium() const; - public: - void clear_from_medium(); - ::location::nearby::proto::connections::Medium from_medium() const; - void set_from_medium(::location::nearby::proto::connections::Medium value); - private: - ::location::nearby::proto::connections::Medium _internal_from_medium() const; - void _internal_set_from_medium(::location::nearby::proto::connections::Medium value); - public: - - // optional .location.nearby.proto.connections.Medium to_medium = 4; - bool has_to_medium() const; - private: - bool _internal_has_to_medium() const; - public: - void clear_to_medium(); - ::location::nearby::proto::connections::Medium to_medium() const; - void set_to_medium(::location::nearby::proto::connections::Medium value); - private: - ::location::nearby::proto::connections::Medium _internal_to_medium() const; - void _internal_set_to_medium(::location::nearby::proto::connections::Medium value); - public: - - // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; - bool has_upgrade_result() const; - private: - bool _internal_has_upgrade_result() const; - public: - void clear_upgrade_result(); - ::location::nearby::proto::connections::BandwidthUpgradeResult upgrade_result() const; - void set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value); - private: - ::location::nearby::proto::connections::BandwidthUpgradeResult _internal_upgrade_result() const; - void _internal_set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value); - public: - - // optional int64 client_flow_id = 7; - bool has_client_flow_id() const; - private: - bool _internal_has_client_flow_id() const; - public: - void clear_client_flow_id(); - int64_t client_flow_id() const; - void set_client_flow_id(int64_t value); - private: - int64_t _internal_client_flow_id() const; - void _internal_set_client_flow_id(int64_t value); - public: - - // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; - bool has_error_stage() const; - private: - bool _internal_has_error_stage() const; - public: - void clear_error_stage(); - ::location::nearby::proto::connections::BandwidthUpgradeErrorStage error_stage() const; - void set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value); - private: - ::location::nearby::proto::connections::BandwidthUpgradeErrorStage _internal_error_stage() const; - void _internal_set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value); - public: - - // optional .location.nearby.proto.connections.DeviceType device_type = 10; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::connections::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::connections::DeviceType value); - private: - ::location::nearby::proto::connections::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); - public: - - // optional .location.nearby.proto.connections.SupportedService supported_service = 11; - bool has_supported_service() const; - private: - bool _internal_has_supported_service() const; - public: - void clear_supported_service(); - ::location::nearby::proto::connections::SupportedService supported_service() const; - void set_supported_service(::location::nearby::proto::connections::SupportedService value); - private: - ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; - void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_token_; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result_; - int64_t duration_millis_; - int direction_; - int from_medium_; - int to_medium_; - int upgrade_result_; - int64_t client_flow_id_; - int error_stage_; - int device_type_; - int supported_service_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_ErrorCode final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) */ { +class ConnectionsLog_ErrorCode final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) */ { public: inline ConnectionsLog_ErrorCode() : ConnectionsLog_ErrorCode(nullptr) {} - ~ConnectionsLog_ErrorCode() override; - explicit constexpr ConnectionsLog_ErrorCode(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ConnectionsLog_ErrorCode() PROTOBUF_FINAL; - ConnectionsLog_ErrorCode(const ConnectionsLog_ErrorCode& from); - ConnectionsLog_ErrorCode(ConnectionsLog_ErrorCode&& from) noexcept - : ConnectionsLog_ErrorCode() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_ErrorCode* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_ErrorCode)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_ErrorCode(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_ErrorCode(const ConnectionsLog_ErrorCode& from) : ConnectionsLog_ErrorCode(nullptr, from) {} + inline ConnectionsLog_ErrorCode(ConnectionsLog_ErrorCode&& from) noexcept + : ConnectionsLog_ErrorCode(nullptr, ::std::move(from)) {} inline ConnectionsLog_ErrorCode& operator=(const ConnectionsLog_ErrorCode& from) { CopyFrom(from); return *this; } inline ConnectionsLog_ErrorCode& operator=(ConnectionsLog_ErrorCode&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4535,15 +928,18 @@ class ConnectionsLog_ErrorCode final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const ConnectionsLog_ErrorCode& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_ConnectionsLog_ErrorCode_default_instance_); } enum ErrorCodeDetailCase { kCommonError = 7, @@ -4562,78 +958,89 @@ class ConnectionsLog_ErrorCode final : kRejectConnectionError = 21, ERRORCODEDETAIL_NOT_SET = 0, }; - - static inline const ConnectionsLog_ErrorCode* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_ErrorCode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(ConnectionsLog_ErrorCode& a, ConnectionsLog_ErrorCode& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_ErrorCode* other) { + static constexpr int kIndexInFileMessages = 17; + friend void swap(ConnectionsLog_ErrorCode& a, ConnectionsLog_ErrorCode& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_ErrorCode* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_ErrorCode* other) { + void UnsafeArenaSwap(ConnectionsLog_ErrorCode* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_ErrorCode* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_ErrorCode* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const ConnectionsLog_ErrorCode& from); - void MergeFrom(const ConnectionsLog_ErrorCode& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const ConnectionsLog_ErrorCode& from) { ConnectionsLog_ErrorCode::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_ErrorCode* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.ErrorCode"; - } - protected: - explicit ConnectionsLog_ErrorCode(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_ErrorCode* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.ErrorCode"; } + + explicit ConnectionsLog_ErrorCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_ErrorCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ErrorCode& from); + ConnectionsLog_ErrorCode( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_ErrorCode&& from) noexcept + : ConnectionsLog_ErrorCode(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kServiceIdFieldNumber = 2, kConnectionTokenFieldNumber = 16, @@ -4659,287 +1066,245 @@ class ConnectionsLog_ErrorCode final : }; // optional string service_id = 2; bool has_service_id() const; - private: - bool _internal_has_service_id() const; - public: - void clear_service_id(); - const std::string& service_id() const; - template - void set_service_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id(); - PROTOBUF_NODISCARD std::string* release_service_id(); - void set_allocated_service_id(std::string* service_id); - private: - const std::string& _internal_service_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const std::string& value); - std::string* _internal_mutable_service_id(); - public: + void clear_service_id() ; + const ::std::string& service_id() const; + template + void set_service_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id(); + void set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_service_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id(); + + public: // optional string connection_token = 16; bool has_connection_token() const; - private: - bool _internal_has_connection_token() const; - public: - void clear_connection_token(); - const std::string& connection_token() const; - template - void set_connection_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_token(); - PROTOBUF_NODISCARD std::string* release_connection_token(); - void set_allocated_connection_token(std::string* connection_token); - private: - const std::string& _internal_connection_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const std::string& value); - std::string* _internal_mutable_connection_token(); - public: + void clear_connection_token() ; + const ::std::string& connection_token() const; + template + void set_connection_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_token(); + void set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_connection_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_token(); + + public: // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; bool has_direction() const; - private: - bool _internal_has_direction() const; - public: - void clear_direction(); + void clear_direction() ; ::location::nearby::proto::connections::ConnectionAttemptDirection direction() const; void set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); + private: ::location::nearby::proto::connections::ConnectionAttemptDirection _internal_direction() const; void _internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); - public: + public: // optional .location.nearby.proto.connections.Medium medium = 3; bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); + void clear_medium() ; ::location::nearby::proto::connections::Medium medium() const; void set_medium(::location::nearby::proto::connections::Medium value); + private: ::location::nearby::proto::connections::Medium _internal_medium() const; void _internal_set_medium(::location::nearby::proto::connections::Medium value); - public: + public: // optional .location.nearby.errorcode.proto.Event event = 4; bool has_event() const; - private: - bool _internal_has_event() const; - public: - void clear_event(); + void clear_event() ; ::location::nearby::errorcode::proto::Event event() const; void set_event(::location::nearby::errorcode::proto::Event value); + private: ::location::nearby::errorcode::proto::Event _internal_event() const; void _internal_set_event(::location::nearby::errorcode::proto::Event value); - public: + public: // optional .location.nearby.errorcode.proto.Description description = 5; bool has_description() const; - private: - bool _internal_has_description() const; - public: - void clear_description(); + void clear_description() ; ::location::nearby::errorcode::proto::Description description() const; void set_description(::location::nearby::errorcode::proto::Description value); + private: ::location::nearby::errorcode::proto::Description _internal_description() const; void _internal_set_description(::location::nearby::errorcode::proto::Description value); - public: + public: // optional int64 flow_id = 6; bool has_flow_id() const; - private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: // .location.nearby.errorcode.proto.CommonError common_error = 7; bool has_common_error() const; - private: - bool _internal_has_common_error() const; - public: - void clear_common_error(); + void clear_common_error() ; ::location::nearby::errorcode::proto::CommonError common_error() const; void set_common_error(::location::nearby::errorcode::proto::CommonError value); + private: ::location::nearby::errorcode::proto::CommonError _internal_common_error() const; void _internal_set_common_error(::location::nearby::errorcode::proto::CommonError value); - public: + public: // .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8; bool has_start_advertising_error() const; - private: - bool _internal_has_start_advertising_error() const; - public: - void clear_start_advertising_error(); + void clear_start_advertising_error() ; ::location::nearby::errorcode::proto::StartAdvertisingError start_advertising_error() const; void set_start_advertising_error(::location::nearby::errorcode::proto::StartAdvertisingError value); + private: ::location::nearby::errorcode::proto::StartAdvertisingError _internal_start_advertising_error() const; void _internal_set_start_advertising_error(::location::nearby::errorcode::proto::StartAdvertisingError value); - public: + public: // .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9; bool has_start_discovering_error() const; - private: - bool _internal_has_start_discovering_error() const; - public: - void clear_start_discovering_error(); + void clear_start_discovering_error() ; ::location::nearby::errorcode::proto::StartDiscoveringError start_discovering_error() const; void set_start_discovering_error(::location::nearby::errorcode::proto::StartDiscoveringError value); + private: ::location::nearby::errorcode::proto::StartDiscoveringError _internal_start_discovering_error() const; void _internal_set_start_discovering_error(::location::nearby::errorcode::proto::StartDiscoveringError value); - public: + public: // .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10; bool has_stop_advertising_error() const; - private: - bool _internal_has_stop_advertising_error() const; - public: - void clear_stop_advertising_error(); + void clear_stop_advertising_error() ; ::location::nearby::errorcode::proto::StopAdvertisingError stop_advertising_error() const; void set_stop_advertising_error(::location::nearby::errorcode::proto::StopAdvertisingError value); + private: ::location::nearby::errorcode::proto::StopAdvertisingError _internal_stop_advertising_error() const; void _internal_set_stop_advertising_error(::location::nearby::errorcode::proto::StopAdvertisingError value); - public: + public: // .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11; bool has_stop_discovering_error() const; - private: - bool _internal_has_stop_discovering_error() const; - public: - void clear_stop_discovering_error(); + void clear_stop_discovering_error() ; ::location::nearby::errorcode::proto::StopDiscoveringError stop_discovering_error() const; void set_stop_discovering_error(::location::nearby::errorcode::proto::StopDiscoveringError value); + private: ::location::nearby::errorcode::proto::StopDiscoveringError _internal_stop_discovering_error() const; void _internal_set_stop_discovering_error(::location::nearby::errorcode::proto::StopDiscoveringError value); - public: + public: // .location.nearby.errorcode.proto.StartListeningIncomingConnectionError start_listening_incoming_connection_error = 12; bool has_start_listening_incoming_connection_error() const; - private: - bool _internal_has_start_listening_incoming_connection_error() const; - public: - void clear_start_listening_incoming_connection_error(); + void clear_start_listening_incoming_connection_error() ; ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError start_listening_incoming_connection_error() const; void set_start_listening_incoming_connection_error(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError value); + private: ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError _internal_start_listening_incoming_connection_error() const; void _internal_set_start_listening_incoming_connection_error(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError value); - public: + public: // .location.nearby.errorcode.proto.StopListeningIncomingConnectionError stop_listening_incoming_connection_error = 13; bool has_stop_listening_incoming_connection_error() const; - private: - bool _internal_has_stop_listening_incoming_connection_error() const; - public: - void clear_stop_listening_incoming_connection_error(); + void clear_stop_listening_incoming_connection_error() ; ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError stop_listening_incoming_connection_error() const; void set_stop_listening_incoming_connection_error(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError value); + private: ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError _internal_stop_listening_incoming_connection_error() const; void _internal_set_stop_listening_incoming_connection_error(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError value); - public: + public: // .location.nearby.errorcode.proto.ConnectError connect_error = 14; bool has_connect_error() const; - private: - bool _internal_has_connect_error() const; - public: - void clear_connect_error(); + void clear_connect_error() ; ::location::nearby::errorcode::proto::ConnectError connect_error() const; void set_connect_error(::location::nearby::errorcode::proto::ConnectError value); + private: ::location::nearby::errorcode::proto::ConnectError _internal_connect_error() const; void _internal_set_connect_error(::location::nearby::errorcode::proto::ConnectError value); - public: + public: // .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15; bool has_disconnect_error() const; - private: - bool _internal_has_disconnect_error() const; - public: - void clear_disconnect_error(); + void clear_disconnect_error() ; ::location::nearby::errorcode::proto::DisconnectError disconnect_error() const; void set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value); + private: ::location::nearby::errorcode::proto::DisconnectError _internal_disconnect_error() const; void _internal_set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value); - public: + public: // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; bool has_send_payload_error() const; - private: - bool _internal_has_send_payload_error() const; - public: - void clear_send_payload_error(); + void clear_send_payload_error() ; ::location::nearby::errorcode::proto::SendPayloadError send_payload_error() const; void set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value); + private: ::location::nearby::errorcode::proto::SendPayloadError _internal_send_payload_error() const; void _internal_set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value); - public: + public: // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; bool has_receive_payload_error() const; - private: - bool _internal_has_receive_payload_error() const; - public: - void clear_receive_payload_error(); + void clear_receive_payload_error() ; ::location::nearby::errorcode::proto::ReceivePayloadError receive_payload_error() const; void set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value); + private: ::location::nearby::errorcode::proto::ReceivePayloadError _internal_receive_payload_error() const; void _internal_set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value); - public: + public: // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; bool has_upgrade_error() const; - private: - bool _internal_has_upgrade_error() const; - public: - void clear_upgrade_error(); + void clear_upgrade_error() ; ::location::nearby::errorcode::proto::UpgradeError upgrade_error() const; void set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value); + private: ::location::nearby::errorcode::proto::UpgradeError _internal_upgrade_error() const; void _internal_set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value); - public: + public: // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; bool has_accept_connection_error() const; - private: - bool _internal_has_accept_connection_error() const; - public: - void clear_accept_connection_error(); + void clear_accept_connection_error() ; ::location::nearby::errorcode::proto::AcceptConnectionError accept_connection_error() const; void set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value); + private: ::location::nearby::errorcode::proto::AcceptConnectionError _internal_accept_connection_error() const; void _internal_set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value); - public: + public: // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; bool has_reject_connection_error() const; - private: - bool _internal_has_reject_connection_error() const; - public: - void clear_reject_connection_error(); + void clear_reject_connection_error() ; ::location::nearby::errorcode::proto::RejectConnectionError reject_connection_error() const; void set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value); + private: ::location::nearby::errorcode::proto::RejectConnectionError _internal_reject_connection_error() const; void _internal_set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value); - public: + public: void clear_ErrorCodeDetail(); ErrorCodeDetailCase ErrorCodeDetail_case() const; // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) @@ -4959,317 +1324,92 @@ class ConnectionsLog_ErrorCode final : void set_has_upgrade_error(); void set_has_accept_connection_error(); void set_has_reject_connection_error(); - inline bool has_ErrorCodeDetail() const; inline void clear_has_ErrorCodeDetail(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 21, + 18, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_token_; - int direction_; - int medium_; - int event_; - int description_; - int64_t flow_id_; - union ErrorCodeDetailUnion { - constexpr ErrorCodeDetailUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - int common_error_; - int start_advertising_error_; - int start_discovering_error_; - int stop_advertising_error_; - int stop_discovering_error_; - int start_listening_incoming_connection_error_; - int stop_listening_incoming_connection_error_; - int connect_error_; - int disconnect_error_; - int send_payload_error_; - int receive_payload_error_; - int upgrade_error_; - int accept_connection_error_; - int reject_connection_error_; - } ErrorCodeDetail_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionsLog_AdvertisingMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) */ { - public: - inline ConnectionsLog_AdvertisingMetadata() : ConnectionsLog_AdvertisingMetadata(nullptr) {} - ~ConnectionsLog_AdvertisingMetadata() override; - explicit constexpr ConnectionsLog_AdvertisingMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionsLog_AdvertisingMetadata(const ConnectionsLog_AdvertisingMetadata& from); - ConnectionsLog_AdvertisingMetadata(ConnectionsLog_AdvertisingMetadata&& from) noexcept - : ConnectionsLog_AdvertisingMetadata() { - *this = ::std::move(from); - } - - inline ConnectionsLog_AdvertisingMetadata& operator=(const ConnectionsLog_AdvertisingMetadata& from) { - CopyFrom(from); - return *this; - } - inline ConnectionsLog_AdvertisingMetadata& operator=(ConnectionsLog_AdvertisingMetadata&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionsLog_AdvertisingMetadata& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionsLog_AdvertisingMetadata* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_AdvertisingMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(ConnectionsLog_AdvertisingMetadata& a, ConnectionsLog_AdvertisingMetadata& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_AdvertisingMetadata* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionsLog_AdvertisingMetadata* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionsLog_AdvertisingMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_AdvertisingMetadata& from); - void MergeFrom(const ConnectionsLog_AdvertisingMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_AdvertisingMetadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata"; - } - protected: - explicit ConnectionsLog_AdvertisingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConnectedApFrequencyFieldNumber = 2, - kSupportsExtendedBleAdvertisementsFieldNumber = 1, - kSupportsNfcTechnologyFieldNumber = 3, - kMultipleAdvertisementSupportedFieldNumber = 4, - kSupportsDualBandFieldNumber = 6, - kSupportsWifiAwareFieldNumber = 7, - kEndpointInfoSizeFieldNumber = 8, - kPowerLevelFieldNumber = 5, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_ErrorCode& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_; + ::google::protobuf::internal::ArenaStringPtr connection_token_; + int direction_; + int medium_; + int event_; + int description_; + ::int64_t flow_id_; + union ErrorCodeDetailUnion { + constexpr ErrorCodeDetailUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + int common_error_; + int start_advertising_error_; + int start_discovering_error_; + int stop_advertising_error_; + int stop_discovering_error_; + int start_listening_incoming_connection_error_; + int stop_listening_incoming_connection_error_; + int connect_error_; + int disconnect_error_; + int send_payload_error_; + int receive_payload_error_; + int upgrade_error_; + int accept_connection_error_; + int reject_connection_error_; + } ErrorCodeDetail_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional int32 connected_ap_frequency = 2; - bool has_connected_ap_frequency() const; - private: - bool _internal_has_connected_ap_frequency() const; - public: - void clear_connected_ap_frequency(); - int32_t connected_ap_frequency() const; - void set_connected_ap_frequency(int32_t value); - private: - int32_t _internal_connected_ap_frequency() const; - void _internal_set_connected_ap_frequency(int32_t value); - public: - - // optional bool supports_extended_ble_advertisements = 1; - bool has_supports_extended_ble_advertisements() const; - private: - bool _internal_has_supports_extended_ble_advertisements() const; - public: - void clear_supports_extended_ble_advertisements(); - bool supports_extended_ble_advertisements() const; - void set_supports_extended_ble_advertisements(bool value); - private: - bool _internal_supports_extended_ble_advertisements() const; - void _internal_set_supports_extended_ble_advertisements(bool value); - public: - - // optional bool supports_nfc_technology = 3; - bool has_supports_nfc_technology() const; - private: - bool _internal_has_supports_nfc_technology() const; - public: - void clear_supports_nfc_technology(); - bool supports_nfc_technology() const; - void set_supports_nfc_technology(bool value); - private: - bool _internal_supports_nfc_technology() const; - void _internal_set_supports_nfc_technology(bool value); - public: - - // optional bool multiple_advertisement_supported = 4; - bool has_multiple_advertisement_supported() const; - private: - bool _internal_has_multiple_advertisement_supported() const; - public: - void clear_multiple_advertisement_supported(); - bool multiple_advertisement_supported() const; - void set_multiple_advertisement_supported(bool value); - private: - bool _internal_multiple_advertisement_supported() const; - void _internal_set_multiple_advertisement_supported(bool value); - public: - - // optional bool supports_dual_band = 6; - bool has_supports_dual_band() const; - private: - bool _internal_has_supports_dual_band() const; - public: - void clear_supports_dual_band(); - bool supports_dual_band() const; - void set_supports_dual_band(bool value); - private: - bool _internal_supports_dual_band() const; - void _internal_set_supports_dual_band(bool value); - public: - - // optional bool supports_wifi_aware = 7; - bool has_supports_wifi_aware() const; - private: - bool _internal_has_supports_wifi_aware() const; - public: - void clear_supports_wifi_aware(); - bool supports_wifi_aware() const; - void set_supports_wifi_aware(bool value); - private: - bool _internal_supports_wifi_aware() const; - void _internal_set_supports_wifi_aware(bool value); - public: - - // optional int32 endpoint_info_size = 8; - bool has_endpoint_info_size() const; - private: - bool _internal_has_endpoint_info_size() const; - public: - void clear_endpoint_info_size(); - int32_t endpoint_info_size() const; - void set_endpoint_info_size(int32_t value); - private: - int32_t _internal_endpoint_info_size() const; - void _internal_set_endpoint_info_size(int32_t value); - public: - - // optional .location.nearby.proto.connections.PowerLevel power_level = 5; - bool has_power_level() const; - private: - bool _internal_has_power_level() const; - public: - void clear_power_level(); - ::location::nearby::proto::connections::PowerLevel power_level() const; - void set_power_level(::location::nearby::proto::connections::PowerLevel value); - private: - ::location::nearby::proto::connections::PowerLevel _internal_power_level() const; - void _internal_set_power_level(::location::nearby::proto::connections::PowerLevel value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t connected_ap_frequency_; - bool supports_extended_ble_advertisements_; - bool supports_nfc_technology_; - bool multiple_advertisement_supported_; - bool supports_dual_band_; - bool supports_wifi_aware_; - int32_t endpoint_info_size_; - int power_level_; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<57> ConnectionsLog_ErrorCode_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog_DiscoveryMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) */ { +class ConnectionsLog_DiscoveryMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) */ { public: inline ConnectionsLog_DiscoveryMetadata() : ConnectionsLog_DiscoveryMetadata(nullptr) {} - ~ConnectionsLog_DiscoveryMetadata() override; - explicit constexpr ConnectionsLog_DiscoveryMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ConnectionsLog_DiscoveryMetadata() PROTOBUF_FINAL; - ConnectionsLog_DiscoveryMetadata(const ConnectionsLog_DiscoveryMetadata& from); - ConnectionsLog_DiscoveryMetadata(ConnectionsLog_DiscoveryMetadata&& from) noexcept - : ConnectionsLog_DiscoveryMetadata() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DiscoveryMetadata)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryMetadata(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DiscoveryMetadata(const ConnectionsLog_DiscoveryMetadata& from) : ConnectionsLog_DiscoveryMetadata(nullptr, from) {} + inline ConnectionsLog_DiscoveryMetadata(ConnectionsLog_DiscoveryMetadata&& from) noexcept + : ConnectionsLog_DiscoveryMetadata(nullptr, ::std::move(from)) {} inline ConnectionsLog_DiscoveryMetadata& operator=(const ConnectionsLog_DiscoveryMetadata& from) { CopyFrom(from); return *this; } inline ConnectionsLog_DiscoveryMetadata& operator=(ConnectionsLog_DiscoveryMetadata&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5277,87 +1417,102 @@ class ConnectionsLog_DiscoveryMetadata final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const ConnectionsLog_DiscoveryMetadata& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_ConnectionsLog_DiscoveryMetadata_default_instance_); } - static inline const ConnectionsLog_DiscoveryMetadata* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_DiscoveryMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(ConnectionsLog_DiscoveryMetadata& a, ConnectionsLog_DiscoveryMetadata& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_DiscoveryMetadata* other) { + static constexpr int kIndexInFileMessages = 19; + friend void swap(ConnectionsLog_DiscoveryMetadata& a, ConnectionsLog_DiscoveryMetadata& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_DiscoveryMetadata* other) { + void UnsafeArenaSwap(ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_DiscoveryMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const ConnectionsLog_DiscoveryMetadata& from); - void MergeFrom(const ConnectionsLog_DiscoveryMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const ConnectionsLog_DiscoveryMetadata& from) { ConnectionsLog_DiscoveryMetadata::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_DiscoveryMetadata* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata"; - } - protected: - explicit ConnectionsLog_DiscoveryMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata"; } + + explicit ConnectionsLog_DiscoveryMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DiscoveryMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DiscoveryMetadata& from); + ConnectionsLog_DiscoveryMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DiscoveryMetadata&& from) noexcept + : ConnectionsLog_DiscoveryMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kConnectedApFrequencyFieldNumber = 2, kSupportsExtendedBleAdvertisementsFieldNumber = 1, @@ -5366,97 +1521,113 @@ class ConnectionsLog_DiscoveryMetadata final : }; // optional int32 connected_ap_frequency = 2; bool has_connected_ap_frequency() const; - private: - bool _internal_has_connected_ap_frequency() const; - public: - void clear_connected_ap_frequency(); - int32_t connected_ap_frequency() const; - void set_connected_ap_frequency(int32_t value); - private: - int32_t _internal_connected_ap_frequency() const; - void _internal_set_connected_ap_frequency(int32_t value); - public: + void clear_connected_ap_frequency() ; + ::int32_t connected_ap_frequency() const; + void set_connected_ap_frequency(::int32_t value); + private: + ::int32_t _internal_connected_ap_frequency() const; + void _internal_set_connected_ap_frequency(::int32_t value); + + public: // optional bool supports_extended_ble_advertisements = 1; bool has_supports_extended_ble_advertisements() const; - private: - bool _internal_has_supports_extended_ble_advertisements() const; - public: - void clear_supports_extended_ble_advertisements(); + void clear_supports_extended_ble_advertisements() ; bool supports_extended_ble_advertisements() const; void set_supports_extended_ble_advertisements(bool value); + private: bool _internal_supports_extended_ble_advertisements() const; void _internal_set_supports_extended_ble_advertisements(bool value); - public: + public: // optional bool supports_nfc_technology = 3; bool has_supports_nfc_technology() const; - private: - bool _internal_has_supports_nfc_technology() const; - public: - void clear_supports_nfc_technology(); + void clear_supports_nfc_technology() ; bool supports_nfc_technology() const; void set_supports_nfc_technology(bool value); + private: bool _internal_supports_nfc_technology() const; void _internal_set_supports_nfc_technology(bool value); - public: + public: // optional .location.nearby.proto.connections.PowerLevel power_level = 4; bool has_power_level() const; - private: - bool _internal_has_power_level() const; - public: - void clear_power_level(); + void clear_power_level() ; ::location::nearby::proto::connections::PowerLevel power_level() const; void set_power_level(::location::nearby::proto::connections::PowerLevel value); + private: ::location::nearby::proto::connections::PowerLevel _internal_power_level() const; void _internal_set_power_level(::location::nearby::proto::connections::PowerLevel value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t connected_ap_frequency_; - bool supports_extended_ble_advertisements_; - bool supports_nfc_technology_; - int power_level_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DiscoveryMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t connected_ap_frequency_; + bool supports_extended_ble_advertisements_; + bool supports_nfc_technology_; + int power_level_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_DiscoveryMetadata_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog_ConnectionAttemptMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) */ { +class ConnectionsLog_DiscoveredEndpoint final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) */ { public: - inline ConnectionsLog_ConnectionAttemptMetadata() : ConnectionsLog_ConnectionAttemptMetadata(nullptr) {} - ~ConnectionsLog_ConnectionAttemptMetadata() override; - explicit constexpr ConnectionsLog_ConnectionAttemptMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ConnectionsLog_DiscoveredEndpoint() : ConnectionsLog_DiscoveredEndpoint(nullptr) {} + ~ConnectionsLog_DiscoveredEndpoint() PROTOBUF_FINAL; - ConnectionsLog_ConnectionAttemptMetadata(const ConnectionsLog_ConnectionAttemptMetadata& from); - ConnectionsLog_ConnectionAttemptMetadata(ConnectionsLog_ConnectionAttemptMetadata&& from) noexcept - : ConnectionsLog_ConnectionAttemptMetadata() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DiscoveredEndpoint)); } +#endif - inline ConnectionsLog_ConnectionAttemptMetadata& operator=(const ConnectionsLog_ConnectionAttemptMetadata& from) { + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveredEndpoint(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DiscoveredEndpoint(const ConnectionsLog_DiscoveredEndpoint& from) : ConnectionsLog_DiscoveredEndpoint(nullptr, from) {} + inline ConnectionsLog_DiscoveredEndpoint(ConnectionsLog_DiscoveredEndpoint&& from) noexcept + : ConnectionsLog_DiscoveredEndpoint(nullptr, ::std::move(from)) {} + inline ConnectionsLog_DiscoveredEndpoint& operator=(const ConnectionsLog_DiscoveredEndpoint& from) { CopyFrom(from); return *this; } - inline ConnectionsLog_ConnectionAttemptMetadata& operator=(ConnectionsLog_ConnectionAttemptMetadata&& from) noexcept { + inline ConnectionsLog_DiscoveredEndpoint& operator=(ConnectionsLog_DiscoveredEndpoint&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5464,87 +1635,1234 @@ class ConnectionsLog_ConnectionAttemptMetadata final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ConnectionsLog_ConnectionAttemptMetadata& default_instance() { - return *internal_default_instance(); + static const ConnectionsLog_DiscoveredEndpoint& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_DiscoveredEndpoint_default_instance_); } - static inline const ConnectionsLog_ConnectionAttemptMetadata* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_ConnectionAttemptMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(ConnectionsLog_ConnectionAttemptMetadata& a, ConnectionsLog_ConnectionAttemptMetadata& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog_ConnectionAttemptMetadata* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(ConnectionsLog_DiscoveredEndpoint& a, ConnectionsLog_DiscoveredEndpoint& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog_ConnectionAttemptMetadata* other) { + void UnsafeArenaSwap(ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog_ConnectionAttemptMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog_ConnectionAttemptMetadata& from); - void MergeFrom(const ConnectionsLog_ConnectionAttemptMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const ConnectionsLog_DiscoveredEndpoint& from); + void MergeFrom(const ConnectionsLog_DiscoveredEndpoint& from) { ConnectionsLog_DiscoveredEndpoint::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog_ConnectionAttemptMetadata* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata"; - } - protected: - explicit ConnectionsLog_ConnectionAttemptMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint"; } + + explicit ConnectionsLog_DiscoveredEndpoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DiscoveredEndpoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DiscoveredEndpoint& from); + ConnectionsLog_DiscoveredEndpoint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DiscoveredEndpoint&& from) noexcept + : ConnectionsLog_DiscoveredEndpoint(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kLatencyMillisFieldNumber = 2, + kMediumFieldNumber = 1, + }; + // optional int64 latency_millis = 2; + bool has_latency_millis() const; + void clear_latency_millis() ; + ::int64_t latency_millis() const; + void set_latency_millis(::int64_t value); + private: + ::int64_t _internal_latency_millis() const; + void _internal_set_latency_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.Medium medium = 1; + bool has_medium() const; + void clear_medium() ; + ::location::nearby::proto::connections::Medium medium() const; + void set_medium(::location::nearby::proto::connections::Medium value); + + private: + ::location::nearby::proto::connections::Medium _internal_medium() const; + void _internal_set_medium(::location::nearby::proto::connections::Medium value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DiscoveredEndpoint& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t latency_millis_; + int medium_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<66> ConnectionsLog_DiscoveredEndpoint_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_DisconnectionReasonDetail final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) */ { + public: + inline ConnectionsLog_DisconnectionReasonDetail() : ConnectionsLog_DisconnectionReasonDetail(nullptr) {} + ~ConnectionsLog_DisconnectionReasonDetail() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DisconnectionReasonDetail)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DisconnectionReasonDetail(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DisconnectionReasonDetail(const ConnectionsLog_DisconnectionReasonDetail& from) : ConnectionsLog_DisconnectionReasonDetail(nullptr, from) {} + inline ConnectionsLog_DisconnectionReasonDetail(ConnectionsLog_DisconnectionReasonDetail&& from) noexcept + : ConnectionsLog_DisconnectionReasonDetail(nullptr, ::std::move(from)) {} + inline ConnectionsLog_DisconnectionReasonDetail& operator=(const ConnectionsLog_DisconnectionReasonDetail& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_DisconnectionReasonDetail& operator=(ConnectionsLog_DisconnectionReasonDetail&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_DisconnectionReasonDetail& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_DisconnectionReasonDetail_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ConnectionsLog_DisconnectionReasonDetail& a, ConnectionsLog_DisconnectionReasonDetail& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_DisconnectionReasonDetail& from); + void MergeFrom(const ConnectionsLog_DisconnectionReasonDetail& from) { ConnectionsLog_DisconnectionReasonDetail::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail"; } + + explicit ConnectionsLog_DisconnectionReasonDetail(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DisconnectionReasonDetail(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DisconnectionReasonDetail& from); + ConnectionsLog_DisconnectionReasonDetail( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DisconnectionReasonDetail&& from) noexcept + : ConnectionsLog_DisconnectionReasonDetail(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using DisconnectionReason = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason; + static constexpr DisconnectionReason UNKNOWN_DISCONNECTION_REASON = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_UNKNOWN_DISCONNECTION_REASON; + static constexpr DisconnectionReason DCT_ERROR_MDNS_DISCOVERY_TIMEOUT = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_DISCOVERY_TIMEOUT; + static constexpr DisconnectionReason DCT_ERROR_MDNS_REGISTER_SERVICE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_REGISTER_SERVICE; + static constexpr DisconnectionReason DCT_ERROR_SUBSEQUENT_TLS_SPAKE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SUBSEQUENT_TLS_SPAKE; + static constexpr DisconnectionReason DCT_ERROR_REQUEST_FAILED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_REQUEST_FAILED; + static constexpr DisconnectionReason DCT_ERROR_RESPONSE_FAILED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_RESPONSE_FAILED; + static constexpr DisconnectionReason DCT_ERROR_CONTROL_MESSAGE_EXCHANGE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CONTROL_MESSAGE_EXCHANGE; + static constexpr DisconnectionReason DCT_ERROR_CAPABILITY_MISMATCH = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CAPABILITY_MISMATCH; + static constexpr DisconnectionReason DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE; + static constexpr DisconnectionReason DCT_ERROR_WIFI_DISABLED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISABLED; + static constexpr DisconnectionReason DCT_ERROR_WIFI_DISCONNECTED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISCONNECTED; + static constexpr DisconnectionReason DCT_ERROR_WIFI_CREDENTIAL_TRANSFER = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_CREDENTIAL_TRANSFER; + static constexpr DisconnectionReason DCT_ERROR_WIFI_INTERNET_CONNECTION = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_INTERNET_CONNECTION; + static constexpr DisconnectionReason DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED; + static constexpr DisconnectionReason DCT_ERROR_USER_CANCELLED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_USER_CANCELLED; + static constexpr DisconnectionReason DCT_ERROR_SERVICE_CANCELLED = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SERVICE_CANCELLED; + static constexpr DisconnectionReason DCT_ERROR_UNVERIFIED_INTEGRITY = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UNVERIFIED_INTEGRITY; + static constexpr DisconnectionReason SESSION_SUCCESS = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_SESSION_SUCCESS; + static inline bool DisconnectionReason_IsValid(int value) { + return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(value); + } + static constexpr DisconnectionReason DisconnectionReason_MIN = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MIN; + static constexpr DisconnectionReason DisconnectionReason_MAX = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_MAX; + static constexpr int DisconnectionReason_ARRAYSIZE = ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DisconnectionReason_ARRAYSIZE; + template + static inline const ::std::string& DisconnectionReason_Name(T value) { + return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name(value); + } + static inline bool DisconnectionReason_Parse( + ::absl::string_view name, DisconnectionReason* PROTOBUF_NONNULL value) { + return ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kIsLocalDisconnectionFieldNumber = 1, + kDisconnectionReasonFieldNumber = 2, + }; + // optional bool is_local_disconnection = 1; + bool has_is_local_disconnection() const; + void clear_is_local_disconnection() ; + bool is_local_disconnection() const; + void set_is_local_disconnection(bool value); + + private: + bool _internal_is_local_disconnection() const; + void _internal_set_is_local_disconnection(bool value); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; + bool has_disconnection_reason() const; + void clear_disconnection_reason() ; + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason disconnection_reason() const; + void set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); + + private: + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason _internal_disconnection_reason() const; + void _internal_set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DisconnectionReasonDetail& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool is_local_disconnection_; + int disconnection_reason_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_DisconnectionReasonDetail_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_DeviceInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) */ { + public: + inline ConnectionsLog_DeviceInfo() : ConnectionsLog_DeviceInfo(nullptr) {} + ~ConnectionsLog_DeviceInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DeviceInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DeviceInfo(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DeviceInfo(const ConnectionsLog_DeviceInfo& from) : ConnectionsLog_DeviceInfo(nullptr, from) {} + inline ConnectionsLog_DeviceInfo(ConnectionsLog_DeviceInfo&& from) noexcept + : ConnectionsLog_DeviceInfo(nullptr, ::std::move(from)) {} + inline ConnectionsLog_DeviceInfo& operator=(const ConnectionsLog_DeviceInfo& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_DeviceInfo& operator=(ConnectionsLog_DeviceInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_DeviceInfo& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_DeviceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(ConnectionsLog_DeviceInfo& a, ConnectionsLog_DeviceInfo& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_DeviceInfo& from); + void MergeFrom(const ConnectionsLog_DeviceInfo& from) { ConnectionsLog_DeviceInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DeviceInfo"; } + + explicit ConnectionsLog_DeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DeviceInfo& from); + ConnectionsLog_DeviceInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DeviceInfo&& from) noexcept + : ConnectionsLog_DeviceInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Platform = ConnectionsLog_DeviceInfo_Platform; + static constexpr Platform UNKNOWN = ConnectionsLog_DeviceInfo_Platform_UNKNOWN; + static constexpr Platform ANDROID = ConnectionsLog_DeviceInfo_Platform_ANDROID; + static constexpr Platform IOS = ConnectionsLog_DeviceInfo_Platform_IOS; + static constexpr Platform CROS = ConnectionsLog_DeviceInfo_Platform_CROS; + static constexpr Platform WINDOWS = ConnectionsLog_DeviceInfo_Platform_WINDOWS; + static inline bool Platform_IsValid(int value) { + return ConnectionsLog_DeviceInfo_Platform_IsValid(value); + } + static constexpr Platform Platform_MIN = ConnectionsLog_DeviceInfo_Platform_Platform_MIN; + static constexpr Platform Platform_MAX = ConnectionsLog_DeviceInfo_Platform_Platform_MAX; + static constexpr int Platform_ARRAYSIZE = ConnectionsLog_DeviceInfo_Platform_Platform_ARRAYSIZE; + template + static inline const ::std::string& Platform_Name(T value) { + return ConnectionsLog_DeviceInfo_Platform_Name(value); + } + static inline bool Platform_Parse( + ::absl::string_view name, Platform* PROTOBUF_NONNULL value) { + return ConnectionsLog_DeviceInfo_Platform_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kDeviceModelFieldNumber = 1, + kCountryCodeFieldNumber = 3, + kManufacturerFieldNumber = 4, + kDevicePlatformFieldNumber = 2, + }; + // optional string device_model = 1; + bool has_device_model() const; + void clear_device_model() ; + const ::std::string& device_model() const; + template + void set_device_model(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_model(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model(); + void set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_model() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model(); + + public: + // optional string country_code = 3; + bool has_country_code() const; + void clear_country_code() ; + const ::std::string& country_code() const; + template + void set_country_code(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_country_code(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_country_code(); + void set_allocated_country_code(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_country_code() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_country_code(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_country_code(); + + public: + // optional string manufacturer = 4; + bool has_manufacturer() const; + void clear_manufacturer() ; + const ::std::string& manufacturer() const; + template + void set_manufacturer(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_manufacturer(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_manufacturer(); + void set_allocated_manufacturer(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_manufacturer() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_manufacturer(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_manufacturer(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; + bool has_device_platform() const; + void clear_device_platform() ; + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform device_platform() const; + void set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value); + + private: + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform _internal_device_platform() const; + void _internal_set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DeviceInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr device_model_; + ::google::protobuf::internal::ArenaStringPtr country_code_; + ::google::protobuf::internal::ArenaStringPtr manufacturer_; + int device_platform_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> ConnectionsLog_DeviceInfo_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_DctPayloadTransferStats final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) */ { + public: + inline ConnectionsLog_DctPayloadTransferStats() : ConnectionsLog_DctPayloadTransferStats(nullptr) {} + ~ConnectionsLog_DctPayloadTransferStats() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DctPayloadTransferStats)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DctPayloadTransferStats(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DctPayloadTransferStats(const ConnectionsLog_DctPayloadTransferStats& from) : ConnectionsLog_DctPayloadTransferStats(nullptr, from) {} + inline ConnectionsLog_DctPayloadTransferStats(ConnectionsLog_DctPayloadTransferStats&& from) noexcept + : ConnectionsLog_DctPayloadTransferStats(nullptr, ::std::move(from)) {} + inline ConnectionsLog_DctPayloadTransferStats& operator=(const ConnectionsLog_DctPayloadTransferStats& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_DctPayloadTransferStats& operator=(ConnectionsLog_DctPayloadTransferStats&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_DctPayloadTransferStats& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_DctPayloadTransferStats_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(ConnectionsLog_DctPayloadTransferStats& a, ConnectionsLog_DctPayloadTransferStats& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_DctPayloadTransferStats& from); + void MergeFrom(const ConnectionsLog_DctPayloadTransferStats& from) { ConnectionsLog_DctPayloadTransferStats::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats"; } + + explicit ConnectionsLog_DctPayloadTransferStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DctPayloadTransferStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DctPayloadTransferStats& from); + ConnectionsLog_DctPayloadTransferStats( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DctPayloadTransferStats&& from) noexcept + : ConnectionsLog_DctPayloadTransferStats(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTypeFieldNumber = 1, + kNumPartsSuccessFieldNumber = 3, + kIsMultipartFieldNumber = 2, + kIsResumptionFieldNumber = 5, + kNumPartsFailureFieldNumber = 4, + }; + // optional .location.nearby.proto.connections.DctPayloadType type = 1; + bool has_type() const; + void clear_type() ; + ::location::nearby::proto::connections::DctPayloadType type() const; + void set_type(::location::nearby::proto::connections::DctPayloadType value); + + private: + ::location::nearby::proto::connections::DctPayloadType _internal_type() const; + void _internal_set_type(::location::nearby::proto::connections::DctPayloadType value); + + public: + // optional int32 num_parts_success = 3; + bool has_num_parts_success() const; + void clear_num_parts_success() ; + ::int32_t num_parts_success() const; + void set_num_parts_success(::int32_t value); + + private: + ::int32_t _internal_num_parts_success() const; + void _internal_set_num_parts_success(::int32_t value); + + public: + // optional bool is_multipart = 2; + bool has_is_multipart() const; + void clear_is_multipart() ; + bool is_multipart() const; + void set_is_multipart(bool value); + + private: + bool _internal_is_multipart() const; + void _internal_set_is_multipart(bool value); + + public: + // optional bool is_resumption = 5; + bool has_is_resumption() const; + void clear_is_resumption() ; + bool is_resumption() const; + void set_is_resumption(bool value); + + private: + bool _internal_is_resumption() const; + void _internal_set_is_resumption(bool value); + + public: + // optional int32 num_parts_failure = 4; + bool has_num_parts_failure() const; + void clear_num_parts_failure() ; + ::int32_t num_parts_failure() const; + void set_num_parts_failure(::int32_t value); + + private: + ::int32_t _internal_num_parts_failure() const; + void _internal_set_num_parts_failure(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DctPayloadTransferStats& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + ::int32_t num_parts_success_; + bool is_multipart_; + bool is_resumption_; + ::int32_t num_parts_failure_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_DctPayloadTransferStats_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_ConnectionRequest final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) */ { + public: + inline ConnectionsLog_ConnectionRequest() : ConnectionsLog_ConnectionRequest(nullptr) {} + ~ConnectionsLog_ConnectionRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_ConnectionRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionRequest(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_ConnectionRequest(const ConnectionsLog_ConnectionRequest& from) : ConnectionsLog_ConnectionRequest(nullptr, from) {} + inline ConnectionsLog_ConnectionRequest(ConnectionsLog_ConnectionRequest&& from) noexcept + : ConnectionsLog_ConnectionRequest(nullptr, ::std::move(from)) {} + inline ConnectionsLog_ConnectionRequest& operator=(const ConnectionsLog_ConnectionRequest& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_ConnectionRequest& operator=(ConnectionsLog_ConnectionRequest&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_ConnectionRequest& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_ConnectionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(ConnectionsLog_ConnectionRequest& a, ConnectionsLog_ConnectionRequest& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_ConnectionRequest& from); + void MergeFrom(const ConnectionsLog_ConnectionRequest& from) { ConnectionsLog_ConnectionRequest::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest"; } + + explicit ConnectionsLog_ConnectionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_ConnectionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ConnectionRequest& from); + ConnectionsLog_ConnectionRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_ConnectionRequest&& from) noexcept + : ConnectionsLog_ConnectionRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDurationMillisFieldNumber = 1, + kRequestDelayMillisFieldNumber = 2, + kLocalResponseFieldNumber = 3, + kRemoteResponseFieldNumber = 4, + kClientFlowIdFieldNumber = 5, + }; + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int64 request_delay_millis = 2; + bool has_request_delay_millis() const; + void clear_request_delay_millis() ; + ::int64_t request_delay_millis() const; + void set_request_delay_millis(::int64_t value); + + private: + ::int64_t _internal_request_delay_millis() const; + void _internal_set_request_delay_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3; + bool has_local_response() const; + void clear_local_response() ; + ::location::nearby::proto::connections::ConnectionRequestResponse local_response() const; + void set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value); + + private: + ::location::nearby::proto::connections::ConnectionRequestResponse _internal_local_response() const; + void _internal_set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value); + + public: + // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; + bool has_remote_response() const; + void clear_remote_response() ; + ::location::nearby::proto::connections::ConnectionRequestResponse remote_response() const; + void set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value); + + private: + ::location::nearby::proto::connections::ConnectionRequestResponse _internal_remote_response() const; + void _internal_set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value); + + public: + // optional int64 client_flow_id = 5; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_ConnectionRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t duration_millis_; + ::int64_t request_delay_millis_; + int local_response_; + int remote_response_; + ::int64_t client_flow_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionRequest_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_ConnectionAttemptMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) */ { + public: + inline ConnectionsLog_ConnectionAttemptMetadata() : ConnectionsLog_ConnectionAttemptMetadata(nullptr) {} + ~ConnectionsLog_ConnectionAttemptMetadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_ConnectionAttemptMetadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttemptMetadata(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_ConnectionAttemptMetadata(const ConnectionsLog_ConnectionAttemptMetadata& from) : ConnectionsLog_ConnectionAttemptMetadata(nullptr, from) {} + inline ConnectionsLog_ConnectionAttemptMetadata(ConnectionsLog_ConnectionAttemptMetadata&& from) noexcept + : ConnectionsLog_ConnectionAttemptMetadata(nullptr, ::std::move(from)) {} + inline ConnectionsLog_ConnectionAttemptMetadata& operator=(const ConnectionsLog_ConnectionAttemptMetadata& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_ConnectionAttemptMetadata& operator=(ConnectionsLog_ConnectionAttemptMetadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_ConnectionAttemptMetadata& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_ConnectionAttemptMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 20; + friend void swap(ConnectionsLog_ConnectionAttemptMetadata& a, ConnectionsLog_ConnectionAttemptMetadata& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_ConnectionAttemptMetadata& from); + void MergeFrom(const ConnectionsLog_ConnectionAttemptMetadata& from) { ConnectionsLog_ConnectionAttemptMetadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata"; } + + explicit ConnectionsLog_ConnectionAttemptMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_ConnectionAttemptMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ConnectionAttemptMetadata& from); + ConnectionsLog_ConnectionAttemptMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_ConnectionAttemptMetadata&& from) noexcept + : ConnectionsLog_ConnectionAttemptMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- enum : int { kNetworkOperatorFieldNumber = 4, kCountryCodeFieldNumber = 5, @@ -5564,261 +2882,255 @@ class ConnectionsLog_ConnectionAttemptMetadata final : }; // optional string network_operator = 4; bool has_network_operator() const; - private: - bool _internal_has_network_operator() const; - public: - void clear_network_operator(); - const std::string& network_operator() const; - template - void set_network_operator(ArgT0&& arg0, ArgT... args); - std::string* mutable_network_operator(); - PROTOBUF_NODISCARD std::string* release_network_operator(); - void set_allocated_network_operator(std::string* network_operator); - private: - const std::string& _internal_network_operator() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_network_operator(const std::string& value); - std::string* _internal_mutable_network_operator(); - public: + void clear_network_operator() ; + const ::std::string& network_operator() const; + template + void set_network_operator(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_network_operator(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_network_operator(); + void set_allocated_network_operator(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_network_operator() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_network_operator(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_network_operator(); + + public: // optional string country_code = 5; bool has_country_code() const; - private: - bool _internal_has_country_code() const; - public: - void clear_country_code(); - const std::string& country_code() const; - template - void set_country_code(ArgT0&& arg0, ArgT... args); - std::string* mutable_country_code(); - PROTOBUF_NODISCARD std::string* release_country_code(); - void set_allocated_country_code(std::string* country_code); - private: - const std::string& _internal_country_code() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_country_code(const std::string& value); - std::string* _internal_mutable_country_code(); - public: + void clear_country_code() ; + const ::std::string& country_code() const; + template + void set_country_code(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_country_code(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_country_code(); + void set_allocated_country_code(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_country_code() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_country_code(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_country_code(); + + public: // optional .location.nearby.proto.connections.ConnectionTechnology technology = 1; bool has_technology() const; - private: - bool _internal_has_technology() const; - public: - void clear_technology(); + void clear_technology() ; ::location::nearby::proto::connections::ConnectionTechnology technology() const; void set_technology(::location::nearby::proto::connections::ConnectionTechnology value); + private: ::location::nearby::proto::connections::ConnectionTechnology _internal_technology() const; void _internal_set_technology(::location::nearby::proto::connections::ConnectionTechnology value); - public: + public: // optional .location.nearby.proto.connections.ConnectionBand band = 2; bool has_band() const; - private: - bool _internal_has_band() const; - public: - void clear_band(); + void clear_band() ; ::location::nearby::proto::connections::ConnectionBand band() const; void set_band(::location::nearby::proto::connections::ConnectionBand value); + private: ::location::nearby::proto::connections::ConnectionBand _internal_band() const; void _internal_set_band(::location::nearby::proto::connections::ConnectionBand value); - public: + public: // optional int32 frequency = 3; bool has_frequency() const; - private: - bool _internal_has_frequency() const; - public: - void clear_frequency(); - int32_t frequency() const; - void set_frequency(int32_t value); - private: - int32_t _internal_frequency() const; - void _internal_set_frequency(int32_t value); - public: + void clear_frequency() ; + ::int32_t frequency() const; + void set_frequency(::int32_t value); + private: + ::int32_t _internal_frequency() const; + void _internal_set_frequency(::int32_t value); + + public: // optional int32 try_counts = 7; bool has_try_counts() const; - private: - bool _internal_has_try_counts() const; - public: - void clear_try_counts(); - int32_t try_counts() const; - void set_try_counts(int32_t value); - private: - int32_t _internal_try_counts() const; - void _internal_set_try_counts(int32_t value); - public: + void clear_try_counts() ; + ::int32_t try_counts() const; + void set_try_counts(::int32_t value); + private: + ::int32_t _internal_try_counts() const; + void _internal_set_try_counts(::int32_t value); + + public: // optional int32 max_tx_speed = 9; bool has_max_tx_speed() const; - private: - bool _internal_has_max_tx_speed() const; - public: - void clear_max_tx_speed(); - int32_t max_tx_speed() const; - void set_max_tx_speed(int32_t value); - private: - int32_t _internal_max_tx_speed() const; - void _internal_set_max_tx_speed(int32_t value); - public: + void clear_max_tx_speed() ; + ::int32_t max_tx_speed() const; + void set_max_tx_speed(::int32_t value); + private: + ::int32_t _internal_max_tx_speed() const; + void _internal_set_max_tx_speed(::int32_t value); + + public: // optional bool is_tdls_used = 6; bool has_is_tdls_used() const; - private: - bool _internal_has_is_tdls_used() const; - public: - void clear_is_tdls_used(); + void clear_is_tdls_used() ; bool is_tdls_used() const; void set_is_tdls_used(bool value); + private: bool _internal_is_tdls_used() const; void _internal_set_is_tdls_used(bool value); - public: + public: // optional bool wifi_hotspot_status = 8; bool has_wifi_hotspot_status() const; - private: - bool _internal_has_wifi_hotspot_status() const; - public: - void clear_wifi_hotspot_status(); + void clear_wifi_hotspot_status() ; bool wifi_hotspot_status() const; void set_wifi_hotspot_status(bool value); + private: bool _internal_wifi_hotspot_status() const; void _internal_set_wifi_hotspot_status(bool value); - public: + public: // optional bool is_mcc_mode = 15; bool has_is_mcc_mode() const; - private: - bool _internal_has_is_mcc_mode() const; - public: - void clear_is_mcc_mode(); + void clear_is_mcc_mode() ; bool is_mcc_mode() const; void set_is_mcc_mode(bool value); + private: bool _internal_is_mcc_mode() const; void _internal_set_is_mcc_mode(bool value); - public: + public: // optional int32 max_rx_speed = 10; bool has_max_rx_speed() const; - private: - bool _internal_has_max_rx_speed() const; - public: - void clear_max_rx_speed(); - int32_t max_rx_speed() const; - void set_max_rx_speed(int32_t value); - private: - int32_t _internal_max_rx_speed() const; - void _internal_set_max_rx_speed(int32_t value); - public: + void clear_max_rx_speed() ; + ::int32_t max_rx_speed() const; + void set_max_rx_speed(::int32_t value); + private: + ::int32_t _internal_max_rx_speed() const; + void _internal_set_max_rx_speed(::int32_t value); + + public: // optional int32 wifi_channel_width = 11; bool has_wifi_channel_width() const; - private: - bool _internal_has_wifi_channel_width() const; - public: - void clear_wifi_channel_width(); - int32_t wifi_channel_width() const; - void set_wifi_channel_width(int32_t value); - private: - int32_t _internal_wifi_channel_width() const; - void _internal_set_wifi_channel_width(int32_t value); - public: + void clear_wifi_channel_width() ; + ::int32_t wifi_channel_width() const; + void set_wifi_channel_width(::int32_t value); + private: + ::int32_t _internal_wifi_channel_width() const; + void _internal_set_wifi_channel_width(::int32_t value); + + public: // optional int32 send_buffer_size = 12; bool has_send_buffer_size() const; - private: - bool _internal_has_send_buffer_size() const; - public: - void clear_send_buffer_size(); - int32_t send_buffer_size() const; - void set_send_buffer_size(int32_t value); - private: - int32_t _internal_send_buffer_size() const; - void _internal_set_send_buffer_size(int32_t value); - public: + void clear_send_buffer_size() ; + ::int32_t send_buffer_size() const; + void set_send_buffer_size(::int32_t value); + private: + ::int32_t _internal_send_buffer_size() const; + void _internal_set_send_buffer_size(::int32_t value); + + public: // optional int32 receive_buffer_size = 13; bool has_receive_buffer_size() const; - private: - bool _internal_has_receive_buffer_size() const; - public: - void clear_receive_buffer_size(); - int32_t receive_buffer_size() const; - void set_receive_buffer_size(int32_t value); - private: - int32_t _internal_receive_buffer_size() const; - void _internal_set_receive_buffer_size(int32_t value); - public: + void clear_receive_buffer_size() ; + ::int32_t receive_buffer_size() const; + void set_receive_buffer_size(::int32_t value); + private: + ::int32_t _internal_receive_buffer_size() const; + void _internal_set_receive_buffer_size(::int32_t value); + + public: // optional int32 connected_ap_frequency = 14; bool has_connected_ap_frequency() const; - private: - bool _internal_has_connected_ap_frequency() const; - public: - void clear_connected_ap_frequency(); - int32_t connected_ap_frequency() const; - void set_connected_ap_frequency(int32_t value); - private: - int32_t _internal_connected_ap_frequency() const; - void _internal_set_connected_ap_frequency(int32_t value); - public: + void clear_connected_ap_frequency() ; + ::int32_t connected_ap_frequency() const; + void set_connected_ap_frequency(::int32_t value); + private: + ::int32_t _internal_connected_ap_frequency() const; + void _internal_set_connected_ap_frequency(::int32_t value); + + public: // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 15, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr network_operator_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_code_; - int technology_; - int band_; - int32_t frequency_; - int32_t try_counts_; - int32_t max_tx_speed_; - bool is_tdls_used_; - bool wifi_hotspot_status_; - bool is_mcc_mode_; - int32_t max_rx_speed_; - int32_t wifi_channel_width_; - int32_t send_buffer_size_; - int32_t receive_buffer_size_; - int32_t connected_ap_frequency_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_ConnectionAttemptMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr network_operator_; + ::google::protobuf::internal::ArenaStringPtr country_code_; + int technology_; + int band_; + ::int32_t frequency_; + ::int32_t try_counts_; + ::int32_t max_tx_speed_; + bool is_tdls_used_; + bool wifi_hotspot_status_; + bool is_mcc_mode_; + ::int32_t max_rx_speed_; + ::int32_t wifi_channel_width_; + ::int32_t send_buffer_size_; + ::int32_t receive_buffer_size_; + ::int32_t connected_ap_frequency_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<73> ConnectionsLog_ConnectionAttemptMetadata_class_data_; // ------------------------------------------------------------------- -class ConnectionsLog final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog) */ { +class ConnectionsLog_AdvertisingMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) */ { public: - inline ConnectionsLog() : ConnectionsLog(nullptr) {} - ~ConnectionsLog() override; - explicit constexpr ConnectionsLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ConnectionsLog_AdvertisingMetadata() : ConnectionsLog_AdvertisingMetadata(nullptr) {} + ~ConnectionsLog_AdvertisingMetadata() PROTOBUF_FINAL; - ConnectionsLog(const ConnectionsLog& from); - ConnectionsLog(ConnectionsLog&& from) noexcept - : ConnectionsLog() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_AdvertisingMetadata)); } +#endif - inline ConnectionsLog& operator=(const ConnectionsLog& from) { + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingMetadata(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_AdvertisingMetadata(const ConnectionsLog_AdvertisingMetadata& from) : ConnectionsLog_AdvertisingMetadata(nullptr, from) {} + inline ConnectionsLog_AdvertisingMetadata(ConnectionsLog_AdvertisingMetadata&& from) noexcept + : ConnectionsLog_AdvertisingMetadata(nullptr, ::std::move(from)) {} + inline ConnectionsLog_AdvertisingMetadata& operator=(const ConnectionsLog_AdvertisingMetadata& from) { CopyFrom(from); return *this; } - inline ConnectionsLog& operator=(ConnectionsLog&& from) noexcept { + inline ConnectionsLog_AdvertisingMetadata& operator=(ConnectionsLog_AdvertisingMetadata&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5826,109 +3138,3319 @@ class ConnectionsLog final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ConnectionsLog& default_instance() { - return *internal_default_instance(); + static const ConnectionsLog_AdvertisingMetadata& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_AdvertisingMetadata_default_instance_); } - static inline const ConnectionsLog* internal_default_instance() { - return reinterpret_cast( - &_ConnectionsLog_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(ConnectionsLog& a, ConnectionsLog& b) { - a.Swap(&b); - } - inline void Swap(ConnectionsLog* other) { + static constexpr int kIndexInFileMessages = 18; + friend void swap(ConnectionsLog_AdvertisingMetadata& a, ConnectionsLog_AdvertisingMetadata& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConnectionsLog* other) { + void UnsafeArenaSwap(ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConnectionsLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionsLog& from); - void MergeFrom(const ConnectionsLog& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const ConnectionsLog_AdvertisingMetadata& from); + void MergeFrom(const ConnectionsLog_AdvertisingMetadata& from) { ConnectionsLog_AdvertisingMetadata::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionsLog* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.analytics.proto.ConnectionsLog"; - } - protected: - explicit ConnectionsLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata"; } + + explicit ConnectionsLog_AdvertisingMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_AdvertisingMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_AdvertisingMetadata& from); + ConnectionsLog_AdvertisingMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_AdvertisingMetadata&& from) noexcept + : ConnectionsLog_AdvertisingMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - typedef ConnectionsLog_ClientSession ClientSession; - typedef ConnectionsLog_OperationResult OperationResult; - typedef ConnectionsLog_OperationResultWithMedium OperationResultWithMedium; - typedef ConnectionsLog_StrategySession StrategySession; - typedef ConnectionsLog_DiscoveryPhase DiscoveryPhase; - typedef ConnectionsLog_DiscoveredEndpoint DiscoveredEndpoint; - typedef ConnectionsLog_UwbRangingProcess UwbRangingProcess; - typedef ConnectionsLog_RawUwbRangingEvent RawUwbRangingEvent; - typedef ConnectionsLog_AdvertisingPhase AdvertisingPhase; - typedef ConnectionsLog_ConnectionRequest ConnectionRequest; - typedef ConnectionsLog_ConnectionAttempt ConnectionAttempt; - typedef ConnectionsLog_DeviceInfo DeviceInfo; - typedef ConnectionsLog_DisconnectionReasonDetail DisconnectionReasonDetail; - typedef ConnectionsLog_EstablishedConnection EstablishedConnection; - typedef ConnectionsLog_DctPayloadTransferStats DctPayloadTransferStats; - typedef ConnectionsLog_Payload Payload; - typedef ConnectionsLog_BandwidthUpgradeAttempt BandwidthUpgradeAttempt; - typedef ConnectionsLog_ErrorCode ErrorCode; - typedef ConnectionsLog_AdvertisingMetadata AdvertisingMetadata; - typedef ConnectionsLog_DiscoveryMetadata DiscoveryMetadata; - typedef ConnectionsLog_ConnectionAttemptMetadata ConnectionAttemptMetadata; + // accessors ------------------------------------------------------- + enum : int { + kConnectedApFrequencyFieldNumber = 2, + kSupportsExtendedBleAdvertisementsFieldNumber = 1, + kSupportsNfcTechnologyFieldNumber = 3, + kMultipleAdvertisementSupportedFieldNumber = 4, + kSupportsDualBandFieldNumber = 6, + kSupportsWifiAwareFieldNumber = 7, + kEndpointInfoSizeFieldNumber = 8, + kPowerLevelFieldNumber = 5, + }; + // optional int32 connected_ap_frequency = 2; + bool has_connected_ap_frequency() const; + void clear_connected_ap_frequency() ; + ::int32_t connected_ap_frequency() const; + void set_connected_ap_frequency(::int32_t value); + + private: + ::int32_t _internal_connected_ap_frequency() const; + void _internal_set_connected_ap_frequency(::int32_t value); + + public: + // optional bool supports_extended_ble_advertisements = 1; + bool has_supports_extended_ble_advertisements() const; + void clear_supports_extended_ble_advertisements() ; + bool supports_extended_ble_advertisements() const; + void set_supports_extended_ble_advertisements(bool value); + + private: + bool _internal_supports_extended_ble_advertisements() const; + void _internal_set_supports_extended_ble_advertisements(bool value); + + public: + // optional bool supports_nfc_technology = 3; + bool has_supports_nfc_technology() const; + void clear_supports_nfc_technology() ; + bool supports_nfc_technology() const; + void set_supports_nfc_technology(bool value); + + private: + bool _internal_supports_nfc_technology() const; + void _internal_set_supports_nfc_technology(bool value); + + public: + // optional bool multiple_advertisement_supported = 4; + bool has_multiple_advertisement_supported() const; + void clear_multiple_advertisement_supported() ; + bool multiple_advertisement_supported() const; + void set_multiple_advertisement_supported(bool value); + + private: + bool _internal_multiple_advertisement_supported() const; + void _internal_set_multiple_advertisement_supported(bool value); + + public: + // optional bool supports_dual_band = 6; + bool has_supports_dual_band() const; + void clear_supports_dual_band() ; + bool supports_dual_band() const; + void set_supports_dual_band(bool value); + + private: + bool _internal_supports_dual_band() const; + void _internal_set_supports_dual_band(bool value); + + public: + // optional bool supports_wifi_aware = 7; + bool has_supports_wifi_aware() const; + void clear_supports_wifi_aware() ; + bool supports_wifi_aware() const; + void set_supports_wifi_aware(bool value); + + private: + bool _internal_supports_wifi_aware() const; + void _internal_set_supports_wifi_aware(bool value); + + public: + // optional int32 endpoint_info_size = 8; + bool has_endpoint_info_size() const; + void clear_endpoint_info_size() ; + ::int32_t endpoint_info_size() const; + void set_endpoint_info_size(::int32_t value); + + private: + ::int32_t _internal_endpoint_info_size() const; + void _internal_set_endpoint_info_size(::int32_t value); + + public: + // optional .location.nearby.proto.connections.PowerLevel power_level = 5; + bool has_power_level() const; + void clear_power_level() ; + ::location::nearby::proto::connections::PowerLevel power_level() const; + void set_power_level(::location::nearby::proto::connections::PowerLevel value); + + private: + ::location::nearby::proto::connections::PowerLevel _internal_power_level() const; + void _internal_set_power_level(::location::nearby::proto::connections::PowerLevel value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_AdvertisingMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t connected_ap_frequency_; + bool supports_extended_ble_advertisements_; + bool supports_nfc_technology_; + bool multiple_advertisement_supported_; + bool supports_dual_band_; + bool supports_wifi_aware_; + ::int32_t endpoint_info_size_; + int power_level_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<67> ConnectionsLog_AdvertisingMetadata_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_UwbRangingProcess final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) */ { + public: + inline ConnectionsLog_UwbRangingProcess() : ConnectionsLog_UwbRangingProcess(nullptr) {} + ~ConnectionsLog_UwbRangingProcess() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_UwbRangingProcess)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_UwbRangingProcess(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_UwbRangingProcess(const ConnectionsLog_UwbRangingProcess& from) : ConnectionsLog_UwbRangingProcess(nullptr, from) {} + inline ConnectionsLog_UwbRangingProcess(ConnectionsLog_UwbRangingProcess&& from) noexcept + : ConnectionsLog_UwbRangingProcess(nullptr, ::std::move(from)) {} + inline ConnectionsLog_UwbRangingProcess& operator=(const ConnectionsLog_UwbRangingProcess& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_UwbRangingProcess& operator=(ConnectionsLog_UwbRangingProcess&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_UwbRangingProcess& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_UwbRangingProcess_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(ConnectionsLog_UwbRangingProcess& a, ConnectionsLog_UwbRangingProcess& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_UwbRangingProcess& from); + void MergeFrom(const ConnectionsLog_UwbRangingProcess& from) { ConnectionsLog_UwbRangingProcess::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess"; } + + explicit ConnectionsLog_UwbRangingProcess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_UwbRangingProcess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_UwbRangingProcess& from); + ConnectionsLog_UwbRangingProcess( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_UwbRangingProcess&& from) noexcept + : ConnectionsLog_UwbRangingProcess(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kUwbRangingDataFieldNumber = 2, + kDurationMillisFieldNumber = 1, + kNumberOfRangingDataFieldNumber = 3, + kDistanceMinFieldNumber = 4, + kDistanceMaxFieldNumber = 5, + kDistanceAveFieldNumber = 6, + kDistanceVarianceFieldNumber = 7, + kAzimuthMinFieldNumber = 8, + kAzimuthMaxFieldNumber = 9, + kAzimuthAveFieldNumber = 10, + kAzimuthVarianceFieldNumber = 11, + }; + // repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2; + int uwb_ranging_data_size() const; + private: + int _internal_uwb_ranging_data_size() const; + public: + void clear_uwb_ranging_data() ; + ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL mutable_uwb_ranging_data(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>* PROTOBUF_NONNULL mutable_uwb_ranging_data(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>& _internal_uwb_ranging_data() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>* PROTOBUF_NONNULL _internal_mutable_uwb_ranging_data(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& uwb_ranging_data(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL add_uwb_ranging_data(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>& uwb_ranging_data() const; + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int32 number_of_ranging_data = 3; + bool has_number_of_ranging_data() const; + void clear_number_of_ranging_data() ; + ::int32_t number_of_ranging_data() const; + void set_number_of_ranging_data(::int32_t value); + + private: + ::int32_t _internal_number_of_ranging_data() const; + void _internal_set_number_of_ranging_data(::int32_t value); + + public: + // optional int32 distance_min = 4; + bool has_distance_min() const; + void clear_distance_min() ; + ::int32_t distance_min() const; + void set_distance_min(::int32_t value); + + private: + ::int32_t _internal_distance_min() const; + void _internal_set_distance_min(::int32_t value); + + public: + // optional int32 distance_max = 5; + bool has_distance_max() const; + void clear_distance_max() ; + ::int32_t distance_max() const; + void set_distance_max(::int32_t value); + + private: + ::int32_t _internal_distance_max() const; + void _internal_set_distance_max(::int32_t value); + + public: + // optional int32 distance_ave = 6; + bool has_distance_ave() const; + void clear_distance_ave() ; + ::int32_t distance_ave() const; + void set_distance_ave(::int32_t value); + + private: + ::int32_t _internal_distance_ave() const; + void _internal_set_distance_ave(::int32_t value); + + public: + // optional int32 distance_variance = 7; + bool has_distance_variance() const; + void clear_distance_variance() ; + ::int32_t distance_variance() const; + void set_distance_variance(::int32_t value); + + private: + ::int32_t _internal_distance_variance() const; + void _internal_set_distance_variance(::int32_t value); + + public: + // optional int32 azimuth_min = 8; + bool has_azimuth_min() const; + void clear_azimuth_min() ; + ::int32_t azimuth_min() const; + void set_azimuth_min(::int32_t value); + + private: + ::int32_t _internal_azimuth_min() const; + void _internal_set_azimuth_min(::int32_t value); + + public: + // optional int32 azimuth_max = 9; + bool has_azimuth_max() const; + void clear_azimuth_max() ; + ::int32_t azimuth_max() const; + void set_azimuth_max(::int32_t value); + + private: + ::int32_t _internal_azimuth_max() const; + void _internal_set_azimuth_max(::int32_t value); + + public: + // optional int32 azimuth_ave = 10; + bool has_azimuth_ave() const; + void clear_azimuth_ave() ; + ::int32_t azimuth_ave() const; + void set_azimuth_ave(::int32_t value); + + private: + ::int32_t _internal_azimuth_ave() const; + void _internal_set_azimuth_ave(::int32_t value); + + public: + // optional int32 azimuth_variance = 11; + bool has_azimuth_variance() const; + void clear_azimuth_variance() ; + ::int32_t azimuth_variance() const; + void set_azimuth_variance(::int32_t value); + + private: + ::int32_t _internal_azimuth_variance() const; + void _internal_set_azimuth_variance(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_UwbRangingProcess& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent > uwb_ranging_data_; + ::int64_t duration_millis_; + ::int32_t number_of_ranging_data_; + ::int32_t distance_min_; + ::int32_t distance_max_; + ::int32_t distance_ave_; + ::int32_t distance_variance_; + ::int32_t azimuth_min_; + ::int32_t azimuth_max_; + ::int32_t azimuth_ave_; + ::int32_t azimuth_variance_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_UwbRangingProcess_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_Payload final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.Payload) */ { + public: + inline ConnectionsLog_Payload() : ConnectionsLog_Payload(nullptr) {} + ~ConnectionsLog_Payload() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_Payload* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_Payload)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_Payload(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_Payload(const ConnectionsLog_Payload& from) : ConnectionsLog_Payload(nullptr, from) {} + inline ConnectionsLog_Payload(ConnectionsLog_Payload&& from) noexcept + : ConnectionsLog_Payload(nullptr, ::std::move(from)) {} + inline ConnectionsLog_Payload& operator=(const ConnectionsLog_Payload& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_Payload& operator=(ConnectionsLog_Payload&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_Payload& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_Payload_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(ConnectionsLog_Payload& a, ConnectionsLog_Payload& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_Payload* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_Payload* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_Payload* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_Payload& from); + void MergeFrom(const ConnectionsLog_Payload& from) { ConnectionsLog_Payload::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_Payload* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.Payload"; } + + explicit ConnectionsLog_Payload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_Payload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_Payload& from); + ConnectionsLog_Payload( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_Payload&& from) noexcept + : ConnectionsLog_Payload(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kOperationResultFieldNumber = 8, + kDctPayloadTransferStatsFieldNumber = 10, + kDurationMillisFieldNumber = 1, + kTotalSizeBytesFieldNumber = 3, + kTypeFieldNumber = 2, + kNumChunksFieldNumber = 5, + kNumBytesTransferredFieldNumber = 4, + kStatusFieldNumber = 6, + kNumSuccessfulAutoResumeFieldNumber = 7, + kNumFailedAutoResumeFieldNumber = 9, + }; + // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8; + bool has_operation_result() const; + void clear_operation_result() ; + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE release_operation_result(); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL mutable_operation_result(); + void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE unsafe_arena_release_operation_result(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL _internal_mutable_operation_result(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10; + bool has_dct_payload_transfer_stats() const; + void clear_dct_payload_transfer_stats() ; + const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& dct_payload_transfer_stats() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE release_dct_payload_transfer_stats(); + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL mutable_dct_payload_transfer_stats(); + void set_allocated_dct_payload_transfer_stats(::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dct_payload_transfer_stats(::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE unsafe_arena_release_dct_payload_transfer_stats(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& _internal_dct_payload_transfer_stats() const; + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL _internal_mutable_dct_payload_transfer_stats(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int64 total_size_bytes = 3; + bool has_total_size_bytes() const; + void clear_total_size_bytes() ; + ::int64_t total_size_bytes() const; + void set_total_size_bytes(::int64_t value); + + private: + ::int64_t _internal_total_size_bytes() const; + void _internal_set_total_size_bytes(::int64_t value); + + public: + // optional .location.nearby.proto.connections.PayloadType type = 2; + bool has_type() const; + void clear_type() ; + ::location::nearby::proto::connections::PayloadType type() const; + void set_type(::location::nearby::proto::connections::PayloadType value); + + private: + ::location::nearby::proto::connections::PayloadType _internal_type() const; + void _internal_set_type(::location::nearby::proto::connections::PayloadType value); + + public: + // optional int32 num_chunks = 5; + bool has_num_chunks() const; + void clear_num_chunks() ; + ::int32_t num_chunks() const; + void set_num_chunks(::int32_t value); + + private: + ::int32_t _internal_num_chunks() const; + void _internal_set_num_chunks(::int32_t value); + + public: + // optional int64 num_bytes_transferred = 4; + bool has_num_bytes_transferred() const; + void clear_num_bytes_transferred() ; + ::int64_t num_bytes_transferred() const; + void set_num_bytes_transferred(::int64_t value); + + private: + ::int64_t _internal_num_bytes_transferred() const; + void _internal_set_num_bytes_transferred(::int64_t value); + + public: + // optional .location.nearby.proto.connections.PayloadStatus status = 6; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::connections::PayloadStatus status() const; + void set_status(::location::nearby::proto::connections::PayloadStatus value); + + private: + ::location::nearby::proto::connections::PayloadStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::connections::PayloadStatus value); + + public: + // optional int32 num_successful_auto_resume = 7; + bool has_num_successful_auto_resume() const; + void clear_num_successful_auto_resume() ; + ::int32_t num_successful_auto_resume() const; + void set_num_successful_auto_resume(::int32_t value); + + private: + ::int32_t _internal_num_successful_auto_resume() const; + void _internal_set_num_successful_auto_resume(::int32_t value); + + public: + // optional int32 num_failed_auto_resume = 9; + bool has_num_failed_auto_resume() const; + void clear_num_failed_auto_resume() ; + ::int32_t num_failed_auto_resume() const; + void set_num_failed_auto_resume(::int32_t value); + + private: + ::int32_t _internal_num_failed_auto_resume() const; + void _internal_set_num_failed_auto_resume(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.Payload) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 4, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_Payload& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE operation_result_; + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE dct_payload_transfer_stats_; + ::int64_t duration_millis_; + ::int64_t total_size_bytes_; + int type_; + ::int32_t num_chunks_; + ::int64_t num_bytes_transferred_; + int status_; + ::int32_t num_successful_auto_resume_; + ::int32_t num_failed_auto_resume_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<55> ConnectionsLog_Payload_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_ConnectionAttempt final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) */ { + public: + inline ConnectionsLog_ConnectionAttempt() : ConnectionsLog_ConnectionAttempt(nullptr) {} + ~ConnectionsLog_ConnectionAttempt() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_ConnectionAttempt)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_ConnectionAttempt(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_ConnectionAttempt(const ConnectionsLog_ConnectionAttempt& from) : ConnectionsLog_ConnectionAttempt(nullptr, from) {} + inline ConnectionsLog_ConnectionAttempt(ConnectionsLog_ConnectionAttempt&& from) noexcept + : ConnectionsLog_ConnectionAttempt(nullptr, ::std::move(from)) {} + inline ConnectionsLog_ConnectionAttempt& operator=(const ConnectionsLog_ConnectionAttempt& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_ConnectionAttempt& operator=(ConnectionsLog_ConnectionAttempt&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_ConnectionAttempt& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_ConnectionAttempt_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(ConnectionsLog_ConnectionAttempt& a, ConnectionsLog_ConnectionAttempt& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_ConnectionAttempt& from); + void MergeFrom(const ConnectionsLog_ConnectionAttempt& from) { ConnectionsLog_ConnectionAttempt::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt"; } + + explicit ConnectionsLog_ConnectionAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_ConnectionAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ConnectionAttempt& from); + ConnectionsLog_ConnectionAttempt( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_ConnectionAttempt&& from) noexcept + : ConnectionsLog_ConnectionAttempt(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kConnectionTokenFieldNumber = 7, + kConnectionAttemptMetadataFieldNumber = 8, + kOperationResultFieldNumber = 9, + kDurationMillisFieldNumber = 1, + kTypeFieldNumber = 2, + kDirectionFieldNumber = 3, + kMediumFieldNumber = 4, + kAttemptResultFieldNumber = 5, + kClientFlowIdFieldNumber = 6, + kConnectionModeFieldNumber = 10, + kDeviceTypeFieldNumber = 11, + kWifiConnectionLatencyMillisFieldNumber = 13, + kDeviceAttestationLatencyMillisFieldNumber = 14, + kSupportedServiceFieldNumber = 12, + }; + // optional string connection_token = 7; + bool has_connection_token() const; + void clear_connection_token() ; + const ::std::string& connection_token() const; + template + void set_connection_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_token(); + void set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connection_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_token(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8; + bool has_connection_attempt_metadata() const; + void clear_connection_attempt_metadata() ; + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& connection_attempt_metadata() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE release_connection_attempt_metadata(); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL mutable_connection_attempt_metadata(); + void set_allocated_connection_attempt_metadata(::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_attempt_metadata(::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE unsafe_arena_release_connection_attempt_metadata(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& _internal_connection_attempt_metadata() const; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL _internal_mutable_connection_attempt_metadata(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; + bool has_operation_result() const; + void clear_operation_result() ; + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE release_operation_result(); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL mutable_operation_result(); + void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE unsafe_arena_release_operation_result(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL _internal_mutable_operation_result(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 2; + bool has_type() const; + void clear_type() ; + ::location::nearby::proto::connections::ConnectionAttemptType type() const; + void set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + + private: + ::location::nearby::proto::connections::ConnectionAttemptType _internal_type() const; + void _internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + + public: + // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; + bool has_direction() const; + void clear_direction() ; + ::location::nearby::proto::connections::ConnectionAttemptDirection direction() const; + void set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); + + private: + ::location::nearby::proto::connections::ConnectionAttemptDirection _internal_direction() const; + void _internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); + + public: + // optional .location.nearby.proto.connections.Medium medium = 4; + bool has_medium() const; + void clear_medium() ; + ::location::nearby::proto::connections::Medium medium() const; + void set_medium(::location::nearby::proto::connections::Medium value); + + private: + ::location::nearby::proto::connections::Medium _internal_medium() const; + void _internal_set_medium(::location::nearby::proto::connections::Medium value); + + public: + // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; + bool has_attempt_result() const; + void clear_attempt_result() ; + ::location::nearby::proto::connections::ConnectionAttemptResult attempt_result() const; + void set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value); + + private: + ::location::nearby::proto::connections::ConnectionAttemptResult _internal_attempt_result() const; + void _internal_set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value); + + public: + // optional int64 client_flow_id = 6; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10; + bool has_connection_mode() const; + void clear_connection_mode() ; + ::location::nearby::proto::connections::ConnectionMode connection_mode() const; + void set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); + + private: + ::location::nearby::proto::connections::ConnectionMode _internal_connection_mode() const; + void _internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value); + + public: + // optional .location.nearby.proto.connections.DeviceType device_type = 11; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::connections::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::connections::DeviceType value); + + private: + ::location::nearby::proto::connections::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); + + public: + // optional int64 wifi_connection_latency_millis = 13; + bool has_wifi_connection_latency_millis() const; + void clear_wifi_connection_latency_millis() ; + ::int64_t wifi_connection_latency_millis() const; + void set_wifi_connection_latency_millis(::int64_t value); + + private: + ::int64_t _internal_wifi_connection_latency_millis() const; + void _internal_set_wifi_connection_latency_millis(::int64_t value); + + public: + // optional int64 device_attestation_latency_millis = 14; + bool has_device_attestation_latency_millis() const; + void clear_device_attestation_latency_millis() ; + ::int64_t device_attestation_latency_millis() const; + void set_device_attestation_latency_millis(::int64_t value); + + private: + ::int64_t _internal_device_attestation_latency_millis() const; + void _internal_set_device_attestation_latency_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.SupportedService supported_service = 12; + bool has_supported_service() const; + void clear_supported_service() ; + ::location::nearby::proto::connections::SupportedService supported_service() const; + void set_supported_service(::location::nearby::proto::connections::SupportedService value); + + private: + ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; + void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 14, + 9, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_ConnectionAttempt& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr connection_token_; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE connection_attempt_metadata_; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE operation_result_; + ::int64_t duration_millis_; + int type_; + int direction_; + int medium_; + int attempt_result_; + ::int64_t client_flow_id_; + int connection_mode_; + int device_type_; + ::int64_t wifi_connection_latency_millis_; + ::int64_t device_attestation_latency_millis_; + int supported_service_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> ConnectionsLog_ConnectionAttempt_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_BandwidthUpgradeAttempt final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) */ { + public: + inline ConnectionsLog_BandwidthUpgradeAttempt() : ConnectionsLog_BandwidthUpgradeAttempt(nullptr) {} + ~ConnectionsLog_BandwidthUpgradeAttempt() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_BandwidthUpgradeAttempt)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_BandwidthUpgradeAttempt(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_BandwidthUpgradeAttempt(const ConnectionsLog_BandwidthUpgradeAttempt& from) : ConnectionsLog_BandwidthUpgradeAttempt(nullptr, from) {} + inline ConnectionsLog_BandwidthUpgradeAttempt(ConnectionsLog_BandwidthUpgradeAttempt&& from) noexcept + : ConnectionsLog_BandwidthUpgradeAttempt(nullptr, ::std::move(from)) {} + inline ConnectionsLog_BandwidthUpgradeAttempt& operator=(const ConnectionsLog_BandwidthUpgradeAttempt& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_BandwidthUpgradeAttempt& operator=(ConnectionsLog_BandwidthUpgradeAttempt&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_BandwidthUpgradeAttempt& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_BandwidthUpgradeAttempt_default_instance_); + } + static constexpr int kIndexInFileMessages = 16; + friend void swap(ConnectionsLog_BandwidthUpgradeAttempt& a, ConnectionsLog_BandwidthUpgradeAttempt& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from); + void MergeFrom(const ConnectionsLog_BandwidthUpgradeAttempt& from) { ConnectionsLog_BandwidthUpgradeAttempt::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt"; } + + explicit ConnectionsLog_BandwidthUpgradeAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_BandwidthUpgradeAttempt(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_BandwidthUpgradeAttempt& from); + ConnectionsLog_BandwidthUpgradeAttempt( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_BandwidthUpgradeAttempt&& from) noexcept + : ConnectionsLog_BandwidthUpgradeAttempt(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kConnectionTokenFieldNumber = 8, + kOperationResultFieldNumber = 9, + kDurationMillisFieldNumber = 2, + kDirectionFieldNumber = 1, + kFromMediumFieldNumber = 3, + kToMediumFieldNumber = 4, + kUpgradeResultFieldNumber = 5, + kClientFlowIdFieldNumber = 7, + kErrorStageFieldNumber = 6, + kDeviceTypeFieldNumber = 10, + kSupportedServiceFieldNumber = 11, + kNumInterfacesFieldNumber = 12, + kNumIpv6OnlyInterfacesFieldNumber = 13, + }; + // optional string connection_token = 8; + bool has_connection_token() const; + void clear_connection_token() ; + const ::std::string& connection_token() const; + template + void set_connection_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_token(); + void set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connection_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_token(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; + bool has_operation_result() const; + void clear_operation_result() ; + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE release_operation_result(); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL mutable_operation_result(); + void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE unsafe_arena_release_operation_result(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL _internal_mutable_operation_result(); + + public: + // optional int64 duration_millis = 2; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; + bool has_direction() const; + void clear_direction() ; + ::location::nearby::proto::connections::ConnectionAttemptDirection direction() const; + void set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); + + private: + ::location::nearby::proto::connections::ConnectionAttemptDirection _internal_direction() const; + void _internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value); + + public: + // optional .location.nearby.proto.connections.Medium from_medium = 3; + bool has_from_medium() const; + void clear_from_medium() ; + ::location::nearby::proto::connections::Medium from_medium() const; + void set_from_medium(::location::nearby::proto::connections::Medium value); + + private: + ::location::nearby::proto::connections::Medium _internal_from_medium() const; + void _internal_set_from_medium(::location::nearby::proto::connections::Medium value); + + public: + // optional .location.nearby.proto.connections.Medium to_medium = 4; + bool has_to_medium() const; + void clear_to_medium() ; + ::location::nearby::proto::connections::Medium to_medium() const; + void set_to_medium(::location::nearby::proto::connections::Medium value); + + private: + ::location::nearby::proto::connections::Medium _internal_to_medium() const; + void _internal_set_to_medium(::location::nearby::proto::connections::Medium value); + + public: + // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; + bool has_upgrade_result() const; + void clear_upgrade_result() ; + ::location::nearby::proto::connections::BandwidthUpgradeResult upgrade_result() const; + void set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value); + + private: + ::location::nearby::proto::connections::BandwidthUpgradeResult _internal_upgrade_result() const; + void _internal_set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value); + + public: + // optional int64 client_flow_id = 7; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; + bool has_error_stage() const; + void clear_error_stage() ; + ::location::nearby::proto::connections::BandwidthUpgradeErrorStage error_stage() const; + void set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value); + + private: + ::location::nearby::proto::connections::BandwidthUpgradeErrorStage _internal_error_stage() const; + void _internal_set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value); + + public: + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::connections::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::connections::DeviceType value); + + private: + ::location::nearby::proto::connections::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); + + public: + // optional .location.nearby.proto.connections.SupportedService supported_service = 11; + bool has_supported_service() const; + void clear_supported_service() ; + ::location::nearby::proto::connections::SupportedService supported_service() const; + void set_supported_service(::location::nearby::proto::connections::SupportedService value); + + private: + ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; + void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); + + public: + // optional int32 num_interfaces = 12; + bool has_num_interfaces() const; + void clear_num_interfaces() ; + ::int32_t num_interfaces() const; + void set_num_interfaces(::int32_t value); + + private: + ::int32_t _internal_num_interfaces() const; + void _internal_set_num_interfaces(::int32_t value); + + public: + // optional int32 num_ipv6_only_interfaces = 13; + bool has_num_ipv6_only_interfaces() const; + void clear_num_ipv6_only_interfaces() ; + ::int32_t num_ipv6_only_interfaces() const; + void set_num_ipv6_only_interfaces(::int32_t value); + + private: + ::int32_t _internal_num_ipv6_only_interfaces() const; + void _internal_set_num_ipv6_only_interfaces(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 13, + 8, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_BandwidthUpgradeAttempt& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr connection_token_; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE operation_result_; + ::int64_t duration_millis_; + int direction_; + int from_medium_; + int to_medium_; + int upgrade_result_; + ::int64_t client_flow_id_; + int error_stage_; + int device_type_; + int supported_service_; + ::int32_t num_interfaces_; + ::int32_t num_ipv6_only_interfaces_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<71> ConnectionsLog_BandwidthUpgradeAttempt_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_AdvertisingPhase final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) */ { + public: + inline ConnectionsLog_AdvertisingPhase() : ConnectionsLog_AdvertisingPhase(nullptr) {} + ~ConnectionsLog_AdvertisingPhase() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_AdvertisingPhase)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_AdvertisingPhase(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_AdvertisingPhase(const ConnectionsLog_AdvertisingPhase& from) : ConnectionsLog_AdvertisingPhase(nullptr, from) {} + inline ConnectionsLog_AdvertisingPhase(ConnectionsLog_AdvertisingPhase&& from) noexcept + : ConnectionsLog_AdvertisingPhase(nullptr, ::std::move(from)) {} + inline ConnectionsLog_AdvertisingPhase& operator=(const ConnectionsLog_AdvertisingPhase& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_AdvertisingPhase& operator=(ConnectionsLog_AdvertisingPhase&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_AdvertisingPhase& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_AdvertisingPhase_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(ConnectionsLog_AdvertisingPhase& a, ConnectionsLog_AdvertisingPhase& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_AdvertisingPhase& from); + void MergeFrom(const ConnectionsLog_AdvertisingPhase& from) { ConnectionsLog_AdvertisingPhase::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase"; } + + explicit ConnectionsLog_AdvertisingPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_AdvertisingPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_AdvertisingPhase& from); + ConnectionsLog_AdvertisingPhase( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_AdvertisingPhase&& from) noexcept + : ConnectionsLog_AdvertisingPhase(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kMediumFieldNumber = 2, + kReceivedConnectionRequestFieldNumber = 3, + kAdvDisResultFieldNumber = 6, + kAdvertisingMetadataFieldNumber = 5, + kDurationMillisFieldNumber = 1, + kClientFlowIdFieldNumber = 4, + kStopReasonFieldNumber = 7, + kDeviceTypeFieldNumber = 8, + kSupportedServiceFieldNumber = 9, + }; + // repeated .location.nearby.proto.connections.Medium medium = 2; + int medium_size() const; + private: + int _internal_medium_size() const; + + public: + void clear_medium() ; + public: + ::location::nearby::proto::connections::Medium medium(int index) const; + void set_medium(int index, ::location::nearby::proto::connections::Medium value); + void add_medium(::location::nearby::proto::connections::Medium value); + const ::google::protobuf::RepeatedField& medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_medium(); + + private: + const ::google::protobuf::RepeatedField& _internal_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_medium(); + + public: + // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3; + int received_connection_request_size() const; + private: + int _internal_received_connection_request_size() const; + + public: + void clear_received_connection_request() ; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL mutable_received_connection_request(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL mutable_received_connection_request(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& _internal_received_connection_request() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL _internal_mutable_received_connection_request(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& received_connection_request(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL add_received_connection_request(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& received_connection_request() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6; + int adv_dis_result_size() const; + private: + int _internal_adv_dis_result_size() const; + + public: + void clear_adv_dis_result() ; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL mutable_adv_dis_result(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL mutable_adv_dis_result(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& _internal_adv_dis_result() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL _internal_mutable_adv_dis_result(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& adv_dis_result(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL add_adv_dis_result(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& adv_dis_result() const; + // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; + bool has_advertising_metadata() const; + void clear_advertising_metadata() ; + const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& advertising_metadata() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE release_advertising_metadata(); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL mutable_advertising_metadata(); + void set_allocated_advertising_metadata(::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_advertising_metadata(::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE unsafe_arena_release_advertising_metadata(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& _internal_advertising_metadata() const; + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL _internal_mutable_advertising_metadata(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int64 client_flow_id = 4; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7; + bool has_stop_reason() const; + void clear_stop_reason() ; + ::location::nearby::proto::connections::StopAdvertisingReason stop_reason() const; + void set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value); + + private: + ::location::nearby::proto::connections::StopAdvertisingReason _internal_stop_reason() const; + void _internal_set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value); + + public: + // optional .location.nearby.proto.connections.DeviceType device_type = 8; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::connections::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::connections::DeviceType value); + + private: + ::location::nearby::proto::connections::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); + + public: + // optional .location.nearby.proto.connections.SupportedService supported_service = 9; + bool has_supported_service() const; + void clear_supported_service() ; + ::location::nearby::proto::connections::SupportedService supported_service() const; + void set_supported_service(::location::nearby::proto::connections::SupportedService value); + + private: + ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; + void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 9, + 7, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_AdvertisingPhase& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField medium_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest > received_connection_request_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium > adv_dis_result_; + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE advertising_metadata_; + ::int64_t duration_millis_; + ::int64_t client_flow_id_; + int stop_reason_; + int device_type_; + int supported_service_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<64> ConnectionsLog_AdvertisingPhase_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_EstablishedConnection final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) */ { + public: + inline ConnectionsLog_EstablishedConnection() : ConnectionsLog_EstablishedConnection(nullptr) {} + ~ConnectionsLog_EstablishedConnection() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_EstablishedConnection)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_EstablishedConnection(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_EstablishedConnection(const ConnectionsLog_EstablishedConnection& from) : ConnectionsLog_EstablishedConnection(nullptr, from) {} + inline ConnectionsLog_EstablishedConnection(ConnectionsLog_EstablishedConnection&& from) noexcept + : ConnectionsLog_EstablishedConnection(nullptr, ::std::move(from)) {} + inline ConnectionsLog_EstablishedConnection& operator=(const ConnectionsLog_EstablishedConnection& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_EstablishedConnection& operator=(ConnectionsLog_EstablishedConnection&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_EstablishedConnection& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_EstablishedConnection_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(ConnectionsLog_EstablishedConnection& a, ConnectionsLog_EstablishedConnection& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_EstablishedConnection& from); + void MergeFrom(const ConnectionsLog_EstablishedConnection& from) { ConnectionsLog_EstablishedConnection::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection"; } + + explicit ConnectionsLog_EstablishedConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_EstablishedConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_EstablishedConnection& from); + ConnectionsLog_EstablishedConnection( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_EstablishedConnection&& from) noexcept + : ConnectionsLog_EstablishedConnection(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using SafeDisconnectionResult = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult; + static constexpr SafeDisconnectionResult UNKNOWN_SAFE_DISCONNECTION_RESULT = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT; + static constexpr SafeDisconnectionResult SAFE_DISCONNECTION = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION; + static constexpr SafeDisconnectionResult UNSAFE_DISCONNECTION = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION; + static inline bool SafeDisconnectionResult_IsValid(int value) { + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(value); + } + static constexpr SafeDisconnectionResult SafeDisconnectionResult_MIN = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN; + static constexpr SafeDisconnectionResult SafeDisconnectionResult_MAX = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX; + static constexpr int SafeDisconnectionResult_ARRAYSIZE = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE; + template + static inline const ::std::string& SafeDisconnectionResult_Name(T value) { + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(value); + } + static inline bool SafeDisconnectionResult_Parse( + ::absl::string_view name, SafeDisconnectionResult* PROTOBUF_NONNULL value) { + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kSentPayloadFieldNumber = 3, + kReceivedPayloadFieldNumber = 4, + kConnectionTokenFieldNumber = 7, + kOperationResultFieldNumber = 10, + kRemoteDeviceInfoFieldNumber = 11, + kDisconnectionReasonDetailFieldNumber = 12, + kDurationMillisFieldNumber = 1, + kMediumFieldNumber = 2, + kDisconnectionReasonFieldNumber = 5, + kClientFlowIdFieldNumber = 6, + kTypeFieldNumber = 8, + kSafeDisconnectionResultFieldNumber = 9, + kDeviceTypeFieldNumber = 13, + kSupportedServiceFieldNumber = 14, + }; + // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; + int sent_payload_size() const; + private: + int _internal_sent_payload_size() const; + + public: + void clear_sent_payload() ; + ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL mutable_sent_payload(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL mutable_sent_payload(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& _internal_sent_payload() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL _internal_mutable_sent_payload(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_Payload& sent_payload(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL add_sent_payload(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& sent_payload() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4; + int received_payload_size() const; + private: + int _internal_received_payload_size() const; + + public: + void clear_received_payload() ; + ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL mutable_received_payload(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL mutable_received_payload(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& _internal_received_payload() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL _internal_mutable_received_payload(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_Payload& received_payload(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL add_received_payload(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& received_payload() const; + // optional string connection_token = 7; + bool has_connection_token() const; + void clear_connection_token() ; + const ::std::string& connection_token() const; + template + void set_connection_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_token(); + void set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connection_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_token(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10; + bool has_operation_result() const; + void clear_operation_result() ; + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& operation_result() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE release_operation_result(); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL mutable_operation_result(); + void set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE unsafe_arena_release_operation_result(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& _internal_operation_result() const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL _internal_mutable_operation_result(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; + bool has_remote_device_info() const; + void clear_remote_device_info() ; + const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& remote_device_info() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE release_remote_device_info(); + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL mutable_remote_device_info(); + void set_allocated_remote_device_info(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remote_device_info(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE unsafe_arena_release_remote_device_info(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& _internal_remote_device_info() const; + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL _internal_mutable_remote_device_info(); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; + bool has_disconnection_reason_detail() const; + void clear_disconnection_reason_detail() ; + const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& disconnection_reason_detail() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE release_disconnection_reason_detail(); + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL mutable_disconnection_reason_detail(); + void set_allocated_disconnection_reason_detail(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_disconnection_reason_detail(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE unsafe_arena_release_disconnection_reason_detail(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& _internal_disconnection_reason_detail() const; + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL _internal_mutable_disconnection_reason_detail(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.Medium medium = 2; + bool has_medium() const; + void clear_medium() ; + ::location::nearby::proto::connections::Medium medium() const; + void set_medium(::location::nearby::proto::connections::Medium value); + + private: + ::location::nearby::proto::connections::Medium _internal_medium() const; + void _internal_set_medium(::location::nearby::proto::connections::Medium value); + + public: + // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; + bool has_disconnection_reason() const; + void clear_disconnection_reason() ; + ::location::nearby::proto::connections::DisconnectionReason disconnection_reason() const; + void set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value); + + private: + ::location::nearby::proto::connections::DisconnectionReason _internal_disconnection_reason() const; + void _internal_set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value); + + public: + // optional int64 client_flow_id = 6; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; + bool has_type() const; + void clear_type() ; + ::location::nearby::proto::connections::ConnectionAttemptType type() const; + void set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + + private: + ::location::nearby::proto::connections::ConnectionAttemptType _internal_type() const; + void _internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + + public: + // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; + bool has_safe_disconnection_result() const; + void clear_safe_disconnection_result() ; + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult safe_disconnection_result() const; + void set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); + + private: + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult _internal_safe_disconnection_result() const; + void _internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); + + public: + // optional .location.nearby.proto.connections.DeviceType device_type = 13; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::connections::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::connections::DeviceType value); + + private: + ::location::nearby::proto::connections::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); + + public: + // optional .location.nearby.proto.connections.SupportedService supported_service = 14; + bool has_supported_service() const; + void clear_supported_service() ; + ::location::nearby::proto::connections::SupportedService supported_service() const; + void set_supported_service(::location::nearby::proto::connections::SupportedService value); + + private: + ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; + void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 14, + 11, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_EstablishedConnection& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload > sent_payload_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload > received_payload_; + ::google::protobuf::internal::ArenaStringPtr connection_token_; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE operation_result_; + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE remote_device_info_; + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE disconnection_reason_detail_; + ::int64_t duration_millis_; + int medium_; + int disconnection_reason_; + ::int64_t client_flow_id_; + int type_; + int safe_disconnection_result_; + int device_type_; + int supported_service_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<69> ConnectionsLog_EstablishedConnection_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_DiscoveryPhase final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) */ { + public: + inline ConnectionsLog_DiscoveryPhase() : ConnectionsLog_DiscoveryPhase(nullptr) {} + ~ConnectionsLog_DiscoveryPhase() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_DiscoveryPhase)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_DiscoveryPhase(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_DiscoveryPhase(const ConnectionsLog_DiscoveryPhase& from) : ConnectionsLog_DiscoveryPhase(nullptr, from) {} + inline ConnectionsLog_DiscoveryPhase(ConnectionsLog_DiscoveryPhase&& from) noexcept + : ConnectionsLog_DiscoveryPhase(nullptr, ::std::move(from)) {} + inline ConnectionsLog_DiscoveryPhase& operator=(const ConnectionsLog_DiscoveryPhase& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_DiscoveryPhase& operator=(ConnectionsLog_DiscoveryPhase&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_DiscoveryPhase& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_DiscoveryPhase_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(ConnectionsLog_DiscoveryPhase& a, ConnectionsLog_DiscoveryPhase& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_DiscoveryPhase& from); + void MergeFrom(const ConnectionsLog_DiscoveryPhase& from) { ConnectionsLog_DiscoveryPhase::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase"; } + + explicit ConnectionsLog_DiscoveryPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_DiscoveryPhase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_DiscoveryPhase& from); + ConnectionsLog_DiscoveryPhase( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_DiscoveryPhase&& from) noexcept + : ConnectionsLog_DiscoveryPhase(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kMediumFieldNumber = 2, + kDiscoveredEndpointFieldNumber = 3, + kSentConnectionRequestFieldNumber = 4, + kUwbRangingFieldNumber = 5, + kAdvDisResultFieldNumber = 8, + kDiscoveryMetadataFieldNumber = 7, + kDurationMillisFieldNumber = 1, + kClientFlowIdFieldNumber = 6, + kStopReasonFieldNumber = 9, + kDeviceTypeFieldNumber = 10, + kSupportedServiceFieldNumber = 11, + }; + // repeated .location.nearby.proto.connections.Medium medium = 2; + int medium_size() const; + private: + int _internal_medium_size() const; + + public: + void clear_medium() ; + public: + ::location::nearby::proto::connections::Medium medium(int index) const; + void set_medium(int index, ::location::nearby::proto::connections::Medium value); + void add_medium(::location::nearby::proto::connections::Medium value); + const ::google::protobuf::RepeatedField& medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_medium(); + + private: + const ::google::protobuf::RepeatedField& _internal_medium() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_medium(); + + public: + // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3; + int discovered_endpoint_size() const; + private: + int _internal_discovered_endpoint_size() const; + + public: + void clear_discovered_endpoint() ; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL mutable_discovered_endpoint(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>* PROTOBUF_NONNULL mutable_discovered_endpoint(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>& _internal_discovered_endpoint() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>* PROTOBUF_NONNULL _internal_mutable_discovered_endpoint(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& discovered_endpoint(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL add_discovered_endpoint(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>& discovered_endpoint() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4; + int sent_connection_request_size() const; + private: + int _internal_sent_connection_request_size() const; + + public: + void clear_sent_connection_request() ; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL mutable_sent_connection_request(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL mutable_sent_connection_request(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& _internal_sent_connection_request() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL _internal_mutable_sent_connection_request(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& sent_connection_request(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL add_sent_connection_request(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& sent_connection_request() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5; + int uwb_ranging_size() const; + private: + int _internal_uwb_ranging_size() const; + + public: + void clear_uwb_ranging() ; + ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL mutable_uwb_ranging(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>* PROTOBUF_NONNULL mutable_uwb_ranging(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>& _internal_uwb_ranging() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>* PROTOBUF_NONNULL _internal_mutable_uwb_ranging(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& uwb_ranging(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL add_uwb_ranging(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>& uwb_ranging() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8; + int adv_dis_result_size() const; + private: + int _internal_adv_dis_result_size() const; + + public: + void clear_adv_dis_result() ; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL mutable_adv_dis_result(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL mutable_adv_dis_result(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& _internal_adv_dis_result() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL _internal_mutable_adv_dis_result(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& adv_dis_result(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL add_adv_dis_result(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& adv_dis_result() const; + // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; + bool has_discovery_metadata() const; + void clear_discovery_metadata() ; + const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& discovery_metadata() const; + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE release_discovery_metadata(); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL mutable_discovery_metadata(); + void set_allocated_discovery_metadata(::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_discovery_metadata(::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE unsafe_arena_release_discovery_metadata(); + + private: + const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& _internal_discovery_metadata() const; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL _internal_mutable_discovery_metadata(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int64 client_flow_id = 6; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9; + bool has_stop_reason() const; + void clear_stop_reason() ; + ::location::nearby::proto::connections::StopDiscoveringReason stop_reason() const; + void set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value); + + private: + ::location::nearby::proto::connections::StopDiscoveringReason _internal_stop_reason() const; + void _internal_set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value); + + public: + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::connections::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::connections::DeviceType value); + + private: + ::location::nearby::proto::connections::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::connections::DeviceType value); + + public: + // optional .location.nearby.proto.connections.SupportedService supported_service = 11; + bool has_supported_service() const; + void clear_supported_service() ; + ::location::nearby::proto::connections::SupportedService supported_service() const; + void set_supported_service(::location::nearby::proto::connections::SupportedService value); + + private: + ::location::nearby::proto::connections::SupportedService _internal_supported_service() const; + void _internal_set_supported_service(::location::nearby::proto::connections::SupportedService value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, + 9, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_DiscoveryPhase& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField medium_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint > discovered_endpoint_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest > sent_connection_request_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess > uwb_ranging_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium > adv_dis_result_; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE discovery_metadata_; + ::int64_t duration_millis_; + ::int64_t client_flow_id_; + int stop_reason_; + int device_type_; + int supported_service_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> ConnectionsLog_DiscoveryPhase_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_StrategySession final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.StrategySession) */ { + public: + inline ConnectionsLog_StrategySession() : ConnectionsLog_StrategySession(nullptr) {} + ~ConnectionsLog_StrategySession() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_StrategySession* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_StrategySession)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_StrategySession(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_StrategySession(const ConnectionsLog_StrategySession& from) : ConnectionsLog_StrategySession(nullptr, from) {} + inline ConnectionsLog_StrategySession(ConnectionsLog_StrategySession&& from) noexcept + : ConnectionsLog_StrategySession(nullptr, ::std::move(from)) {} + inline ConnectionsLog_StrategySession& operator=(const ConnectionsLog_StrategySession& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_StrategySession& operator=(ConnectionsLog_StrategySession&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_StrategySession& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_StrategySession_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ConnectionsLog_StrategySession& a, ConnectionsLog_StrategySession& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_StrategySession* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_StrategySession* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_StrategySession* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_StrategySession& from); + void MergeFrom(const ConnectionsLog_StrategySession& from) { ConnectionsLog_StrategySession::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_StrategySession* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.StrategySession"; } + + explicit ConnectionsLog_StrategySession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_StrategySession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_StrategySession& from); + ConnectionsLog_StrategySession( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_StrategySession&& from) noexcept + : ConnectionsLog_StrategySession(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRoleFieldNumber = 3, + kDiscoveryPhaseFieldNumber = 4, + kAdvertisingPhaseFieldNumber = 5, + kConnectionAttemptFieldNumber = 6, + kEstablishedConnectionFieldNumber = 7, + kUpgradeAttemptFieldNumber = 9, + kBuildVersionFieldNumber = 10, + kDurationMillisFieldNumber = 1, + kStrategyFieldNumber = 2, + }; + // repeated .location.nearby.proto.connections.SessionRole role = 3; + int role_size() const; + private: + int _internal_role_size() const; + + public: + void clear_role() ; + public: + ::location::nearby::proto::connections::SessionRole role(int index) const; + void set_role(int index, ::location::nearby::proto::connections::SessionRole value); + void add_role(::location::nearby::proto::connections::SessionRole value); + const ::google::protobuf::RepeatedField& role() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_role(); + + private: + const ::google::protobuf::RepeatedField& _internal_role() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_role(); + + public: + // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4; + int discovery_phase_size() const; + private: + int _internal_discovery_phase_size() const; + + public: + void clear_discovery_phase() ; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL mutable_discovery_phase(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>* PROTOBUF_NONNULL mutable_discovery_phase(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>& _internal_discovery_phase() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>* PROTOBUF_NONNULL _internal_mutable_discovery_phase(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& discovery_phase(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL add_discovery_phase(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>& discovery_phase() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5; + int advertising_phase_size() const; + private: + int _internal_advertising_phase_size() const; + + public: + void clear_advertising_phase() ; + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL mutable_advertising_phase(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>* PROTOBUF_NONNULL mutable_advertising_phase(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>& _internal_advertising_phase() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>* PROTOBUF_NONNULL _internal_mutable_advertising_phase(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& advertising_phase(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL add_advertising_phase(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>& advertising_phase() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6; + int connection_attempt_size() const; + private: + int _internal_connection_attempt_size() const; + + public: + void clear_connection_attempt() ; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL mutable_connection_attempt(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>* PROTOBUF_NONNULL mutable_connection_attempt(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>& _internal_connection_attempt() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>* PROTOBUF_NONNULL _internal_mutable_connection_attempt(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& connection_attempt(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL add_connection_attempt(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>& connection_attempt() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7; + int established_connection_size() const; + private: + int _internal_established_connection_size() const; + + public: + void clear_established_connection() ; + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL mutable_established_connection(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>* PROTOBUF_NONNULL mutable_established_connection(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>& _internal_established_connection() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>* PROTOBUF_NONNULL _internal_mutable_established_connection(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& established_connection(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL add_established_connection(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>& established_connection() const; + // repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9; + int upgrade_attempt_size() const; + private: + int _internal_upgrade_attempt_size() const; + + public: + void clear_upgrade_attempt() ; + ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL mutable_upgrade_attempt(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>* PROTOBUF_NONNULL mutable_upgrade_attempt(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>& _internal_upgrade_attempt() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>* PROTOBUF_NONNULL _internal_mutable_upgrade_attempt(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& upgrade_attempt(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL add_upgrade_attempt(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>& upgrade_attempt() const; + // optional string build_version = 10; + bool has_build_version() const; + void clear_build_version() ; + const ::std::string& build_version() const; + template + void set_build_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_build_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_build_version(); + void set_allocated_build_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_build_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_build_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_build_version(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2; + bool has_strategy() const; + void clear_strategy() ; + ::location::nearby::proto::connections::ConnectionsStrategy strategy() const; + void set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value); + + private: + ::location::nearby::proto::connections::ConnectionsStrategy _internal_strategy() const; + void _internal_set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.StrategySession) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 9, + 7, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_StrategySession& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField role_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase > discovery_phase_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase > advertising_phase_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt > connection_attempt_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection > established_connection_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt > upgrade_attempt_; + ::google::protobuf::internal::ArenaStringPtr build_version_; + ::int64_t duration_millis_; + int strategy_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<63> ConnectionsLog_StrategySession_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog_ClientSession final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog.ClientSession) */ { + public: + inline ConnectionsLog_ClientSession() : ConnectionsLog_ClientSession(nullptr) {} + ~ConnectionsLog_ClientSession() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog_ClientSession* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog_ClientSession)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog_ClientSession(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog_ClientSession(const ConnectionsLog_ClientSession& from) : ConnectionsLog_ClientSession(nullptr, from) {} + inline ConnectionsLog_ClientSession(ConnectionsLog_ClientSession&& from) noexcept + : ConnectionsLog_ClientSession(nullptr, ::std::move(from)) {} + inline ConnectionsLog_ClientSession& operator=(const ConnectionsLog_ClientSession& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog_ClientSession& operator=(ConnectionsLog_ClientSession&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog_ClientSession& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_ClientSession_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(ConnectionsLog_ClientSession& a, ConnectionsLog_ClientSession& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog_ClientSession* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog_ClientSession* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog_ClientSession* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog_ClientSession& from); + void MergeFrom(const ConnectionsLog_ClientSession& from) { ConnectionsLog_ClientSession::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog_ClientSession* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog.ClientSession"; } + + explicit ConnectionsLog_ClientSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog_ClientSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog_ClientSession& from); + ConnectionsLog_ClientSession( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog_ClientSession&& from) noexcept + : ConnectionsLog_ClientSession(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStrategySessionFieldNumber = 2, + kConnectionTokenFieldNumber = 4, + kDurationMillisFieldNumber = 1, + kClientFlowIdFieldNumber = 3, + }; + // repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2; + int strategy_session_size() const; + private: + int _internal_strategy_session_size() const; + + public: + void clear_strategy_session() ; + ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* PROTOBUF_NONNULL mutable_strategy_session(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>* PROTOBUF_NONNULL mutable_strategy_session(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>& _internal_strategy_session() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>* PROTOBUF_NONNULL _internal_mutable_strategy_session(); + public: + const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& strategy_session(int index) const; + ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* PROTOBUF_NONNULL add_strategy_session(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>& strategy_session() const; + // optional string connection_token = 4; + bool has_connection_token() const; + void clear_connection_token() ; + const ::std::string& connection_token() const; + template + void set_connection_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_token(); + void set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_connection_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_token(); + + public: + // optional int64 duration_millis = 1; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional int64 client_flow_id = 3; + bool has_client_flow_id() const; + void clear_client_flow_id() ; + ::int64_t client_flow_id() const; + void set_client_flow_id(::int64_t value); + + private: + ::int64_t _internal_client_flow_id() const; + void _internal_set_client_flow_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ClientSession) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog_ClientSession& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession > strategy_session_; + ::google::protobuf::internal::ArenaStringPtr connection_token_; + ::int64_t duration_millis_; + ::int64_t client_flow_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<61> ConnectionsLog_ClientSession_class_data_; +// ------------------------------------------------------------------- + +class ConnectionsLog final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.analytics.proto.ConnectionsLog) */ { + public: + inline ConnectionsLog() : ConnectionsLog(nullptr) {} + ~ConnectionsLog() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionsLog* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionsLog)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionsLog(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionsLog(const ConnectionsLog& from) : ConnectionsLog(nullptr, from) {} + inline ConnectionsLog(ConnectionsLog&& from) noexcept + : ConnectionsLog(nullptr, ::std::move(from)) {} + inline ConnectionsLog& operator=(const ConnectionsLog& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsLog& operator=(ConnectionsLog&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionsLog& default_instance() { + return *reinterpret_cast( + &_ConnectionsLog_default_instance_); + } + static constexpr int kIndexInFileMessages = 21; + friend void swap(ConnectionsLog& a, ConnectionsLog& b) { a.Swap(&b); } + inline void Swap(ConnectionsLog* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionsLog* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsLog* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionsLog& from); + void MergeFrom(const ConnectionsLog& from) { ConnectionsLog::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionsLog* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.analytics.proto.ConnectionsLog"; } + + explicit ConnectionsLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionsLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionsLog& from); + ConnectionsLog( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionsLog&& from) noexcept + : ConnectionsLog(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using ClientSession = ConnectionsLog_ClientSession; + using OperationResult = ConnectionsLog_OperationResult; + using OperationResultWithMedium = ConnectionsLog_OperationResultWithMedium; + using StrategySession = ConnectionsLog_StrategySession; + using DiscoveryPhase = ConnectionsLog_DiscoveryPhase; + using DiscoveredEndpoint = ConnectionsLog_DiscoveredEndpoint; + using UwbRangingProcess = ConnectionsLog_UwbRangingProcess; + using RawUwbRangingEvent = ConnectionsLog_RawUwbRangingEvent; + using AdvertisingPhase = ConnectionsLog_AdvertisingPhase; + using ConnectionRequest = ConnectionsLog_ConnectionRequest; + using ConnectionAttempt = ConnectionsLog_ConnectionAttempt; + using DeviceInfo = ConnectionsLog_DeviceInfo; + using DisconnectionReasonDetail = ConnectionsLog_DisconnectionReasonDetail; + using EstablishedConnection = ConnectionsLog_EstablishedConnection; + using DctPayloadTransferStats = ConnectionsLog_DctPayloadTransferStats; + using Payload = ConnectionsLog_Payload; + using BandwidthUpgradeAttempt = ConnectionsLog_BandwidthUpgradeAttempt; + using ErrorCode = ConnectionsLog_ErrorCode; + using AdvertisingMetadata = ConnectionsLog_AdvertisingMetadata; + using DiscoveryMetadata = ConnectionsLog_DiscoveryMetadata; + using ConnectionAttemptMetadata = ConnectionsLog_ConnectionAttemptMetadata; + + // accessors ------------------------------------------------------- enum : int { kVersionFieldNumber = 3, kFilesMigrationPhaseFieldNumber = 6, @@ -5939,292 +6461,324 @@ class ConnectionsLog final : }; // optional string version = 3; bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - const std::string& version() const; - template - void set_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: + void clear_version() ; + const ::std::string& version() const; + template + void set_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version(); + void set_allocated_version(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_version(); + + public: // optional string files_migration_phase = 6; bool has_files_migration_phase() const; - private: - bool _internal_has_files_migration_phase() const; - public: - void clear_files_migration_phase(); - const std::string& files_migration_phase() const; - template - void set_files_migration_phase(ArgT0&& arg0, ArgT... args); - std::string* mutable_files_migration_phase(); - PROTOBUF_NODISCARD std::string* release_files_migration_phase(); - void set_allocated_files_migration_phase(std::string* files_migration_phase); - private: - const std::string& _internal_files_migration_phase() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_files_migration_phase(const std::string& value); - std::string* _internal_mutable_files_migration_phase(); - public: + void clear_files_migration_phase() ; + const ::std::string& files_migration_phase() const; + template + void set_files_migration_phase(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_files_migration_phase(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_files_migration_phase(); + void set_allocated_files_migration_phase(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_files_migration_phase() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_files_migration_phase(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_files_migration_phase(); + + public: // optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2; bool has_client_session() const; - private: - bool _internal_has_client_session() const; - public: - void clear_client_session(); + void clear_client_session() ; const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& client_session() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* release_client_session(); - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* mutable_client_session(); - void set_allocated_client_session(::location::nearby::analytics::proto::ConnectionsLog_ClientSession* client_session); + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE release_client_session(); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NONNULL mutable_client_session(); + void set_allocated_client_session(::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_client_session(::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE unsafe_arena_release_client_session(); + private: const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& _internal_client_session() const; - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* _internal_mutable_client_session(); - public: - void unsafe_arena_set_allocated_client_session( - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* client_session); - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* unsafe_arena_release_client_session(); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NONNULL _internal_mutable_client_session(); + public: // optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4; bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); + void clear_error_code() ; const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& error_code() const; - PROTOBUF_NODISCARD ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* release_error_code(); - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* mutable_error_code(); - void set_allocated_error_code(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* error_code); + [[nodiscard]] ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE release_error_code(); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NONNULL mutable_error_code(); + void set_allocated_error_code(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_error_code(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE value); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE unsafe_arena_release_error_code(); + private: const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& _internal_error_code() const; - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* _internal_mutable_error_code(); - public: - void unsafe_arena_set_allocated_error_code( - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* error_code); - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* unsafe_arena_release_error_code(); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NONNULL _internal_mutable_error_code(); + public: // optional .location.nearby.proto.connections.EventType event_type = 1; bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); + void clear_event_type() ; ::location::nearby::proto::connections::EventType event_type() const; void set_event_type(::location::nearby::proto::connections::EventType value); + private: ::location::nearby::proto::connections::EventType _internal_event_type() const; void _internal_set_event_type(::location::nearby::proto::connections::EventType value); - public: + public: // optional .location.nearby.proto.connections.LogSource log_source = 5; bool has_log_source() const; - private: - bool _internal_has_log_source() const; - public: - void clear_log_source(); + void clear_log_source() ; ::location::nearby::proto::connections::LogSource log_source() const; void set_log_source(::location::nearby::proto::connections::LogSource value); + private: ::location::nearby::proto::connections::LogSource _internal_log_source() const; void _internal_set_log_source(::location::nearby::proto::connections::LogSource value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr files_migration_phase_; - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* client_session_; - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* error_code_; - int event_type_; - int log_source_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionsLog& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr files_migration_phase_; + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE client_session_; + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE error_code_; + int event_type_; + int log_source_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<47> ConnectionsLog_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // ConnectionsLog_ClientSession // optional int64 duration_millis = 1; -inline bool ConnectionsLog_ClientSession::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_ClientSession::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_ClientSession::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_ClientSession::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t ConnectionsLog_ClientSession::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_ClientSession::duration_millis() const { +inline ::int64_t ConnectionsLog_ClientSession::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ClientSession.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_ClientSession::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - duration_millis_ = value; -} -inline void ConnectionsLog_ClientSession::set_duration_millis(int64_t value) { +inline void ConnectionsLog_ClientSession::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ClientSession.duration_millis) } +inline ::int64_t ConnectionsLog_ClientSession::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_ClientSession::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.StrategySession strategy_session = 2; inline int ConnectionsLog_ClientSession::_internal_strategy_session_size() const { - return strategy_session_.size(); + return _internal_strategy_session().size(); } inline int ConnectionsLog_ClientSession::strategy_session_size() const { return _internal_strategy_session_size(); } inline void ConnectionsLog_ClientSession::clear_strategy_session() { - strategy_session_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.strategy_session_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* ConnectionsLog_ClientSession::mutable_strategy_session(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* PROTOBUF_NONNULL ConnectionsLog_ClientSession::mutable_strategy_session(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ClientSession.strategy_session) - return strategy_session_.Mutable(index); + return _internal_mutable_strategy_session()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >* -ConnectionsLog_ClientSession::mutable_strategy_session() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>* PROTOBUF_NONNULL ConnectionsLog_ClientSession::mutable_strategy_session() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.ClientSession.strategy_session) - return &strategy_session_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_strategy_session(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& ConnectionsLog_ClientSession::_internal_strategy_session(int index) const { - return strategy_session_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& ConnectionsLog_ClientSession::strategy_session(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_StrategySession& ConnectionsLog_ClientSession::strategy_session(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ClientSession.strategy_session) - return _internal_strategy_session(index); + return _internal_strategy_session().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* ConnectionsLog_ClientSession::_internal_add_strategy_session() { - return strategy_session_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* ConnectionsLog_ClientSession::add_strategy_session() { - ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* _add = _internal_add_strategy_session(); +inline ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* PROTOBUF_NONNULL ConnectionsLog_ClientSession::add_strategy_session() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_StrategySession* _add = + _internal_mutable_strategy_session()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.ClientSession.strategy_session) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_StrategySession >& -ConnectionsLog_ClientSession::strategy_session() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>& ConnectionsLog_ClientSession::strategy_session() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.ClientSession.strategy_session) - return strategy_session_; + return _internal_strategy_session(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>& +ConnectionsLog_ClientSession::_internal_strategy_session() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.strategy_session_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_StrategySession>* PROTOBUF_NONNULL +ConnectionsLog_ClientSession::_internal_mutable_strategy_session() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.strategy_session_; } // optional int64 client_flow_id = 3; -inline bool ConnectionsLog_ClientSession::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_ClientSession::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_ClientSession::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_ClientSession::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t ConnectionsLog_ClientSession::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_ClientSession::client_flow_id() const { +inline ::int64_t ConnectionsLog_ClientSession::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ClientSession.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_ClientSession::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - client_flow_id_ = value; -} -inline void ConnectionsLog_ClientSession::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_ClientSession::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ClientSession.client_flow_id) } +inline ::int64_t ConnectionsLog_ClientSession::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_ClientSession::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional string connection_token = 4; -inline bool ConnectionsLog_ClientSession::_internal_has_connection_token() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_ClientSession::has_connection_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_ClientSession::has_connection_token() const { - return _internal_has_connection_token(); -} inline void ConnectionsLog_ClientSession::clear_connection_token() { - connection_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsLog_ClientSession::connection_token() const { +inline const ::std::string& ConnectionsLog_ClientSession::connection_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ClientSession.connection_token) return _internal_connection_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ClientSession::set_connection_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ClientSession::set_connection_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.connection_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ClientSession.connection_token) } -inline std::string* ConnectionsLog_ClientSession::mutable_connection_token() { - std::string* _s = _internal_mutable_connection_token(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ClientSession::mutable_connection_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_connection_token(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ClientSession.connection_token) return _s; } -inline const std::string& ConnectionsLog_ClientSession::_internal_connection_token() const { - return connection_token_.Get(); +inline const ::std::string& ConnectionsLog_ClientSession::_internal_connection_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_token_.Get(); } -inline void ConnectionsLog_ClientSession::_internal_set_connection_token(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ClientSession::_internal_set_connection_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ClientSession::_internal_mutable_connection_token() { - _has_bits_[0] |= 0x00000001u; - return connection_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ClientSession::_internal_mutable_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_token_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ClientSession::release_connection_token() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ClientSession::release_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ClientSession.connection_token) - if (!_internal_has_connection_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = connection_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.connection_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ClientSession::set_allocated_connection_token(std::string* connection_token) { - if (connection_token != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_ClientSession::set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - connection_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_token_.IsDefault()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ClientSession.connection_token) } @@ -6233,583 +6787,697 @@ inline void ConnectionsLog_ClientSession::set_allocated_connection_token(std::st // ConnectionsLog_OperationResult // optional .location.nearby.proto.connections.OperationResultCategory result_category = 1; -inline bool ConnectionsLog_OperationResult::_internal_has_result_category() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_OperationResult::has_result_category() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_OperationResult::has_result_category() const { - return _internal_has_result_category(); -} inline void ConnectionsLog_OperationResult::clear_result_category() { - result_category_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResult::_internal_result_category() const { - return static_cast< ::location::nearby::proto::connections::OperationResultCategory >(result_category_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_category_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResult::result_category() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResult.result_category) return _internal_result_category(); } -inline void ConnectionsLog_OperationResult::_internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { - assert(::location::nearby::proto::connections::OperationResultCategory_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - result_category_ = value; -} inline void ConnectionsLog_OperationResult::set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { _internal_set_result_category(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResult.result_category) } +inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResult::_internal_result_category() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::OperationResultCategory>(_impl_.result_category_); +} +inline void ConnectionsLog_OperationResult::_internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::OperationResultCategory_internal_data_)); + _impl_.result_category_ = value; +} // optional .location.nearby.proto.connections.OperationResultCode result_code = 2; -inline bool ConnectionsLog_OperationResult::_internal_has_result_code() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_OperationResult::has_result_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_OperationResult::has_result_code() const { - return _internal_has_result_code(); -} inline void ConnectionsLog_OperationResult::clear_result_code() { - result_code_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResult::_internal_result_code() const { - return static_cast< ::location::nearby::proto::connections::OperationResultCode >(result_code_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_code_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResult::result_code() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResult.result_code) return _internal_result_code(); } -inline void ConnectionsLog_OperationResult::_internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value) { - assert(::location::nearby::proto::connections::OperationResultCode_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - result_code_ = value; -} inline void ConnectionsLog_OperationResult::set_result_code(::location::nearby::proto::connections::OperationResultCode value) { _internal_set_result_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResult.result_code) } +inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResult::_internal_result_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::OperationResultCode>(_impl_.result_code_); +} +inline void ConnectionsLog_OperationResult::_internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::OperationResultCode_internal_data_)); + _impl_.result_code_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_OperationResultWithMedium // optional .location.nearby.proto.connections.Medium medium = 1; -inline bool ConnectionsLog_OperationResultWithMedium::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_OperationResultWithMedium::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_OperationResultWithMedium::has_medium() const { - return _internal_has_medium(); -} inline void ConnectionsLog_OperationResultWithMedium::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_OperationResultWithMedium::_internal_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_OperationResultWithMedium::medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.medium) return _internal_medium(); } -inline void ConnectionsLog_OperationResultWithMedium::_internal_set_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - medium_ = value; -} inline void ConnectionsLog_OperationResultWithMedium::set_medium(::location::nearby::proto::connections::Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_OperationResultWithMedium::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.medium_); +} +inline void ConnectionsLog_OperationResultWithMedium::_internal_set_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.medium_ = value; +} // optional int32 update_index = 2; -inline bool ConnectionsLog_OperationResultWithMedium::_internal_has_update_index() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_OperationResultWithMedium::has_update_index() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_OperationResultWithMedium::has_update_index() const { - return _internal_has_update_index(); -} inline void ConnectionsLog_OperationResultWithMedium::clear_update_index() { - update_index_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.update_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t ConnectionsLog_OperationResultWithMedium::_internal_update_index() const { - return update_index_; -} -inline int32_t ConnectionsLog_OperationResultWithMedium::update_index() const { +inline ::int32_t ConnectionsLog_OperationResultWithMedium::update_index() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.update_index) return _internal_update_index(); } -inline void ConnectionsLog_OperationResultWithMedium::_internal_set_update_index(int32_t value) { - _has_bits_[0] |= 0x00000002u; - update_index_ = value; -} -inline void ConnectionsLog_OperationResultWithMedium::set_update_index(int32_t value) { +inline void ConnectionsLog_OperationResultWithMedium::set_update_index(::int32_t value) { _internal_set_update_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.update_index) } +inline ::int32_t ConnectionsLog_OperationResultWithMedium::_internal_update_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.update_index_; +} +inline void ConnectionsLog_OperationResultWithMedium::_internal_set_update_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.update_index_ = value; +} // optional .location.nearby.proto.connections.OperationResultCategory result_category = 3; -inline bool ConnectionsLog_OperationResultWithMedium::_internal_has_result_category() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_OperationResultWithMedium::has_result_category() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_OperationResultWithMedium::has_result_category() const { - return _internal_has_result_category(); -} inline void ConnectionsLog_OperationResultWithMedium::clear_result_category() { - result_category_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResultWithMedium::_internal_result_category() const { - return static_cast< ::location::nearby::proto::connections::OperationResultCategory >(result_category_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_category_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResultWithMedium::result_category() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.result_category) return _internal_result_category(); } -inline void ConnectionsLog_OperationResultWithMedium::_internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { - assert(::location::nearby::proto::connections::OperationResultCategory_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - result_category_ = value; -} inline void ConnectionsLog_OperationResultWithMedium::set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { _internal_set_result_category(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.result_category) } +inline ::location::nearby::proto::connections::OperationResultCategory ConnectionsLog_OperationResultWithMedium::_internal_result_category() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::OperationResultCategory>(_impl_.result_category_); +} +inline void ConnectionsLog_OperationResultWithMedium::_internal_set_result_category(::location::nearby::proto::connections::OperationResultCategory value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::OperationResultCategory_internal_data_)); + _impl_.result_category_ = value; +} // optional .location.nearby.proto.connections.OperationResultCode result_code = 4; -inline bool ConnectionsLog_OperationResultWithMedium::_internal_has_result_code() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_OperationResultWithMedium::has_result_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_OperationResultWithMedium::has_result_code() const { - return _internal_has_result_code(); -} inline void ConnectionsLog_OperationResultWithMedium::clear_result_code() { - result_code_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResultWithMedium::_internal_result_code() const { - return static_cast< ::location::nearby::proto::connections::OperationResultCode >(result_code_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_code_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResultWithMedium::result_code() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.result_code) return _internal_result_code(); } -inline void ConnectionsLog_OperationResultWithMedium::_internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value) { - assert(::location::nearby::proto::connections::OperationResultCode_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - result_code_ = value; -} inline void ConnectionsLog_OperationResultWithMedium::set_result_code(::location::nearby::proto::connections::OperationResultCode value) { _internal_set_result_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.result_code) } +inline ::location::nearby::proto::connections::OperationResultCode ConnectionsLog_OperationResultWithMedium::_internal_result_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::OperationResultCode>(_impl_.result_code_); +} +inline void ConnectionsLog_OperationResultWithMedium::_internal_set_result_code(::location::nearby::proto::connections::OperationResultCode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::OperationResultCode_internal_data_)); + _impl_.result_code_ = value; +} // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 5; -inline bool ConnectionsLog_OperationResultWithMedium::_internal_has_connection_mode() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_OperationResultWithMedium::has_connection_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_OperationResultWithMedium::has_connection_mode() const { - return _internal_has_connection_mode(); -} inline void ConnectionsLog_OperationResultWithMedium::clear_connection_mode() { - connection_mode_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_OperationResultWithMedium::_internal_connection_mode() const { - return static_cast< ::location::nearby::proto::connections::ConnectionMode >(connection_mode_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_OperationResultWithMedium::connection_mode() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.connection_mode) return _internal_connection_mode(); } -inline void ConnectionsLog_OperationResultWithMedium::_internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { - assert(::location::nearby::proto::connections::ConnectionMode_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - connection_mode_ = value; -} inline void ConnectionsLog_OperationResultWithMedium::set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { _internal_set_connection_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium.connection_mode) } +inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_OperationResultWithMedium::_internal_connection_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionMode>(_impl_.connection_mode_); +} +inline void ConnectionsLog_OperationResultWithMedium::_internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionMode_internal_data_)); + _impl_.connection_mode_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_StrategySession // optional int64 duration_millis = 1; -inline bool ConnectionsLog_StrategySession::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_StrategySession::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_StrategySession::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_StrategySession::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t ConnectionsLog_StrategySession::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_StrategySession::duration_millis() const { +inline ::int64_t ConnectionsLog_StrategySession::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_StrategySession::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - duration_millis_ = value; -} -inline void ConnectionsLog_StrategySession::set_duration_millis(int64_t value) { +inline void ConnectionsLog_StrategySession::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.StrategySession.duration_millis) } +inline ::int64_t ConnectionsLog_StrategySession::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_StrategySession::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.connections.ConnectionsStrategy strategy = 2; -inline bool ConnectionsLog_StrategySession::_internal_has_strategy() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_StrategySession::has_strategy() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_StrategySession::has_strategy() const { - return _internal_has_strategy(); -} inline void ConnectionsLog_StrategySession::clear_strategy() { - strategy_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::connections::ConnectionsStrategy ConnectionsLog_StrategySession::_internal_strategy() const { - return static_cast< ::location::nearby::proto::connections::ConnectionsStrategy >(strategy_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.strategy_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::connections::ConnectionsStrategy ConnectionsLog_StrategySession::strategy() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.strategy) return _internal_strategy(); } -inline void ConnectionsLog_StrategySession::_internal_set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value) { - assert(::location::nearby::proto::connections::ConnectionsStrategy_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - strategy_ = value; -} inline void ConnectionsLog_StrategySession::set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value) { _internal_set_strategy(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.StrategySession.strategy) } +inline ::location::nearby::proto::connections::ConnectionsStrategy ConnectionsLog_StrategySession::_internal_strategy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionsStrategy>(_impl_.strategy_); +} +inline void ConnectionsLog_StrategySession::_internal_set_strategy(::location::nearby::proto::connections::ConnectionsStrategy value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionsStrategy_internal_data_)); + _impl_.strategy_ = value; +} // repeated .location.nearby.proto.connections.SessionRole role = 3; inline int ConnectionsLog_StrategySession::_internal_role_size() const { - return role_.size(); + return _internal_role().size(); } inline int ConnectionsLog_StrategySession::role_size() const { return _internal_role_size(); } inline void ConnectionsLog_StrategySession::clear_role() { - role_.Clear(); -} -inline ::location::nearby::proto::connections::SessionRole ConnectionsLog_StrategySession::_internal_role(int index) const { - return static_cast< ::location::nearby::proto::connections::SessionRole >(role_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.role_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::SessionRole ConnectionsLog_StrategySession::role(int index) const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.role) - return _internal_role(index); + return static_cast<::location::nearby::proto::connections::SessionRole>(_internal_role().Get(index)); } inline void ConnectionsLog_StrategySession::set_role(int index, ::location::nearby::proto::connections::SessionRole value) { - assert(::location::nearby::proto::connections::SessionRole_IsValid(value)); - role_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SessionRole_internal_data_)); + _internal_mutable_role()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.StrategySession.role) } -inline void ConnectionsLog_StrategySession::_internal_add_role(::location::nearby::proto::connections::SessionRole value) { - assert(::location::nearby::proto::connections::SessionRole_IsValid(value)); - role_.Add(value); -} inline void ConnectionsLog_StrategySession::add_role(::location::nearby::proto::connections::SessionRole value) { - _internal_add_role(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SessionRole_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_role()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.role) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ConnectionsLog_StrategySession::role() const { +inline const ::google::protobuf::RepeatedField& ConnectionsLog_StrategySession::role() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.role) - return role_; + return _internal_role(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_StrategySession::_internal_mutable_role() { - return &role_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_StrategySession::mutable_role() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_role() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.role) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_role(); } +inline const ::google::protobuf::RepeatedField& ConnectionsLog_StrategySession::_internal_role() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.role_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_role() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.role_; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase discovery_phase = 4; inline int ConnectionsLog_StrategySession::_internal_discovery_phase_size() const { - return discovery_phase_.size(); + return _internal_discovery_phase().size(); } inline int ConnectionsLog_StrategySession::discovery_phase_size() const { return _internal_discovery_phase_size(); } inline void ConnectionsLog_StrategySession::clear_discovery_phase() { - discovery_phase_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.discovery_phase_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* ConnectionsLog_StrategySession::mutable_discovery_phase(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_discovery_phase(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.discovery_phase) - return discovery_phase_.Mutable(index); + return _internal_mutable_discovery_phase()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >* -ConnectionsLog_StrategySession::mutable_discovery_phase() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_discovery_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.discovery_phase) - return &discovery_phase_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_discovery_phase(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& ConnectionsLog_StrategySession::_internal_discovery_phase(int index) const { - return discovery_phase_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& ConnectionsLog_StrategySession::discovery_phase(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase& ConnectionsLog_StrategySession::discovery_phase(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.discovery_phase) - return _internal_discovery_phase(index); + return _internal_discovery_phase().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* ConnectionsLog_StrategySession::_internal_add_discovery_phase() { - return discovery_phase_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* ConnectionsLog_StrategySession::add_discovery_phase() { - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* _add = _internal_add_discovery_phase(); +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* PROTOBUF_NONNULL ConnectionsLog_StrategySession::add_discovery_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase* _add = + _internal_mutable_discovery_phase()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.discovery_phase) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase >& -ConnectionsLog_StrategySession::discovery_phase() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>& ConnectionsLog_StrategySession::discovery_phase() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.discovery_phase) - return discovery_phase_; + return _internal_discovery_phase(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>& +ConnectionsLog_StrategySession::_internal_discovery_phase() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.discovery_phase_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryPhase>* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_discovery_phase() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.discovery_phase_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase advertising_phase = 5; inline int ConnectionsLog_StrategySession::_internal_advertising_phase_size() const { - return advertising_phase_.size(); + return _internal_advertising_phase().size(); } inline int ConnectionsLog_StrategySession::advertising_phase_size() const { return _internal_advertising_phase_size(); } inline void ConnectionsLog_StrategySession::clear_advertising_phase() { - advertising_phase_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advertising_phase_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* ConnectionsLog_StrategySession::mutable_advertising_phase(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_advertising_phase(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.advertising_phase) - return advertising_phase_.Mutable(index); + return _internal_mutable_advertising_phase()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >* -ConnectionsLog_StrategySession::mutable_advertising_phase() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_advertising_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.advertising_phase) - return &advertising_phase_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_advertising_phase(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& ConnectionsLog_StrategySession::_internal_advertising_phase(int index) const { - return advertising_phase_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& ConnectionsLog_StrategySession::advertising_phase(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase& ConnectionsLog_StrategySession::advertising_phase(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.advertising_phase) - return _internal_advertising_phase(index); + return _internal_advertising_phase().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* ConnectionsLog_StrategySession::_internal_add_advertising_phase() { - return advertising_phase_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* ConnectionsLog_StrategySession::add_advertising_phase() { - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* _add = _internal_add_advertising_phase(); +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* PROTOBUF_NONNULL ConnectionsLog_StrategySession::add_advertising_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase* _add = + _internal_mutable_advertising_phase()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.advertising_phase) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase >& -ConnectionsLog_StrategySession::advertising_phase() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>& ConnectionsLog_StrategySession::advertising_phase() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.advertising_phase) - return advertising_phase_; + return _internal_advertising_phase(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>& +ConnectionsLog_StrategySession::_internal_advertising_phase() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.advertising_phase_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingPhase>* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_advertising_phase() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.advertising_phase_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt connection_attempt = 6; inline int ConnectionsLog_StrategySession::_internal_connection_attempt_size() const { - return connection_attempt_.size(); + return _internal_connection_attempt().size(); } inline int ConnectionsLog_StrategySession::connection_attempt_size() const { return _internal_connection_attempt_size(); } inline void ConnectionsLog_StrategySession::clear_connection_attempt() { - connection_attempt_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_attempt_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000008U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* ConnectionsLog_StrategySession::mutable_connection_attempt(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_connection_attempt(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.connection_attempt) - return connection_attempt_.Mutable(index); + return _internal_mutable_connection_attempt()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >* -ConnectionsLog_StrategySession::mutable_connection_attempt() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_connection_attempt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.connection_attempt) - return &connection_attempt_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_connection_attempt(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& ConnectionsLog_StrategySession::_internal_connection_attempt(int index) const { - return connection_attempt_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& ConnectionsLog_StrategySession::connection_attempt(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt& ConnectionsLog_StrategySession::connection_attempt(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.connection_attempt) - return _internal_connection_attempt(index); + return _internal_connection_attempt().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* ConnectionsLog_StrategySession::_internal_add_connection_attempt() { - return connection_attempt_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* ConnectionsLog_StrategySession::add_connection_attempt() { - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* _add = _internal_add_connection_attempt(); +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* PROTOBUF_NONNULL ConnectionsLog_StrategySession::add_connection_attempt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt* _add = + _internal_mutable_connection_attempt()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.connection_attempt) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt >& -ConnectionsLog_StrategySession::connection_attempt() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>& ConnectionsLog_StrategySession::connection_attempt() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.connection_attempt) - return connection_attempt_; + return _internal_connection_attempt(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>& +ConnectionsLog_StrategySession::_internal_connection_attempt() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_attempt_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttempt>* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_connection_attempt() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.connection_attempt_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection established_connection = 7; inline int ConnectionsLog_StrategySession::_internal_established_connection_size() const { - return established_connection_.size(); + return _internal_established_connection().size(); } inline int ConnectionsLog_StrategySession::established_connection_size() const { return _internal_established_connection_size(); } inline void ConnectionsLog_StrategySession::clear_established_connection() { - established_connection_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.established_connection_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000010U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* ConnectionsLog_StrategySession::mutable_established_connection(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_established_connection(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.established_connection) - return established_connection_.Mutable(index); + return _internal_mutable_established_connection()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >* -ConnectionsLog_StrategySession::mutable_established_connection() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_established_connection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.established_connection) - return &established_connection_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_established_connection(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& ConnectionsLog_StrategySession::_internal_established_connection(int index) const { - return established_connection_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& ConnectionsLog_StrategySession::established_connection(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection& ConnectionsLog_StrategySession::established_connection(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.established_connection) - return _internal_established_connection(index); + return _internal_established_connection().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* ConnectionsLog_StrategySession::_internal_add_established_connection() { - return established_connection_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* ConnectionsLog_StrategySession::add_established_connection() { - ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* _add = _internal_add_established_connection(); +inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* PROTOBUF_NONNULL ConnectionsLog_StrategySession::add_established_connection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection* _add = + _internal_mutable_established_connection()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.established_connection) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection >& -ConnectionsLog_StrategySession::established_connection() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>& ConnectionsLog_StrategySession::established_connection() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.established_connection) - return established_connection_; + return _internal_established_connection(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>& +ConnectionsLog_StrategySession::_internal_established_connection() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.established_connection_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection>* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_established_connection() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.established_connection_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt upgrade_attempt = 9; inline int ConnectionsLog_StrategySession::_internal_upgrade_attempt_size() const { - return upgrade_attempt_.size(); + return _internal_upgrade_attempt().size(); } inline int ConnectionsLog_StrategySession::upgrade_attempt_size() const { return _internal_upgrade_attempt_size(); } inline void ConnectionsLog_StrategySession::clear_upgrade_attempt() { - upgrade_attempt_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.upgrade_attempt_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000020U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* ConnectionsLog_StrategySession::mutable_upgrade_attempt(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_upgrade_attempt(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.upgrade_attempt) - return upgrade_attempt_.Mutable(index); + return _internal_mutable_upgrade_attempt()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >* -ConnectionsLog_StrategySession::mutable_upgrade_attempt() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_upgrade_attempt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.upgrade_attempt) - return &upgrade_attempt_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_upgrade_attempt(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& ConnectionsLog_StrategySession::_internal_upgrade_attempt(int index) const { - return upgrade_attempt_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& ConnectionsLog_StrategySession::upgrade_attempt(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt& ConnectionsLog_StrategySession::upgrade_attempt(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.upgrade_attempt) - return _internal_upgrade_attempt(index); + return _internal_upgrade_attempt().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* ConnectionsLog_StrategySession::_internal_add_upgrade_attempt() { - return upgrade_attempt_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* ConnectionsLog_StrategySession::add_upgrade_attempt() { - ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* _add = _internal_add_upgrade_attempt(); +inline ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* PROTOBUF_NONNULL ConnectionsLog_StrategySession::add_upgrade_attempt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt* _add = + _internal_mutable_upgrade_attempt()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.StrategySession.upgrade_attempt) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt >& -ConnectionsLog_StrategySession::upgrade_attempt() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>& ConnectionsLog_StrategySession::upgrade_attempt() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.StrategySession.upgrade_attempt) - return upgrade_attempt_; + return _internal_upgrade_attempt(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>& +ConnectionsLog_StrategySession::_internal_upgrade_attempt() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.upgrade_attempt_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_BandwidthUpgradeAttempt>* PROTOBUF_NONNULL +ConnectionsLog_StrategySession::_internal_mutable_upgrade_attempt() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.upgrade_attempt_; } // optional string build_version = 10; -inline bool ConnectionsLog_StrategySession::_internal_has_build_version() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_StrategySession::has_build_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_StrategySession::has_build_version() const { - return _internal_has_build_version(); -} inline void ConnectionsLog_StrategySession::clear_build_version() { - build_version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.build_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline const std::string& ConnectionsLog_StrategySession::build_version() const { +inline const ::std::string& ConnectionsLog_StrategySession::build_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.StrategySession.build_version) return _internal_build_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_StrategySession::set_build_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - build_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_StrategySession::set_build_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_.build_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.StrategySession.build_version) } -inline std::string* ConnectionsLog_StrategySession::mutable_build_version() { - std::string* _s = _internal_mutable_build_version(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_StrategySession::mutable_build_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + ::std::string* _s = _internal_mutable_build_version(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.StrategySession.build_version) return _s; } -inline const std::string& ConnectionsLog_StrategySession::_internal_build_version() const { - return build_version_.Get(); +inline const ::std::string& ConnectionsLog_StrategySession::_internal_build_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.build_version_.Get(); } -inline void ConnectionsLog_StrategySession::_internal_set_build_version(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - build_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_StrategySession::_internal_set_build_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.build_version_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_StrategySession::_internal_mutable_build_version() { - _has_bits_[0] |= 0x00000001u; - return build_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_StrategySession::_internal_mutable_build_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.build_version_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_StrategySession::release_build_version() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_StrategySession::release_build_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.StrategySession.build_version) - if (!_internal_has_build_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = build_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (build_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - build_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + auto* released = _impl_.build_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.build_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_StrategySession::set_allocated_build_version(std::string* build_version) { - if (build_version != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_StrategySession::set_allocated_build_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - build_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), build_version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (build_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - build_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.build_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.build_version_.IsDefault()) { + _impl_.build_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.StrategySession.build_version) } @@ -6818,2229 +7486,2475 @@ inline void ConnectionsLog_StrategySession::set_allocated_build_version(std::str // ConnectionsLog_DiscoveryPhase // optional int64 duration_millis = 1; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DiscoveryPhase::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_DiscoveryPhase::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t ConnectionsLog_DiscoveryPhase::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_DiscoveryPhase::duration_millis() const { +inline ::int64_t ConnectionsLog_DiscoveryPhase::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_DiscoveryPhase::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - duration_millis_ = value; -} -inline void ConnectionsLog_DiscoveryPhase::set_duration_millis(int64_t value) { +inline void ConnectionsLog_DiscoveryPhase::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.duration_millis) } +inline ::int64_t ConnectionsLog_DiscoveryPhase::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_DiscoveryPhase::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // repeated .location.nearby.proto.connections.Medium medium = 2; inline int ConnectionsLog_DiscoveryPhase::_internal_medium_size() const { - return medium_.size(); + return _internal_medium().size(); } inline int ConnectionsLog_DiscoveryPhase::medium_size() const { return _internal_medium_size(); } inline void ConnectionsLog_DiscoveryPhase::clear_medium() { - medium_.Clear(); -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_DiscoveryPhase::_internal_medium(int index) const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_DiscoveryPhase::medium(int index) const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.medium) - return _internal_medium(index); + return static_cast<::location::nearby::proto::connections::Medium>(_internal_medium().Get(index)); } inline void ConnectionsLog_DiscoveryPhase::set_medium(int index, ::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - medium_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _internal_mutable_medium()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.medium) } -inline void ConnectionsLog_DiscoveryPhase::_internal_add_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - medium_.Add(value); -} inline void ConnectionsLog_DiscoveryPhase::add_medium(::location::nearby::proto::connections::Medium value) { - _internal_add_medium(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_medium()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.medium) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ConnectionsLog_DiscoveryPhase::medium() const { +inline const ::google::protobuf::RepeatedField& ConnectionsLog_DiscoveryPhase::medium() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.medium) - return medium_; + return _internal_medium(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_DiscoveryPhase::_internal_mutable_medium() { - return &medium_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_DiscoveryPhase::mutable_medium() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_medium() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.medium) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_medium(); } +inline const ::google::protobuf::RepeatedField& ConnectionsLog_DiscoveryPhase::_internal_medium() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.medium_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ConnectionsLog_DiscoveryPhase::_internal_mutable_medium() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.medium_; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint discovered_endpoint = 3; inline int ConnectionsLog_DiscoveryPhase::_internal_discovered_endpoint_size() const { - return discovered_endpoint_.size(); + return _internal_discovered_endpoint().size(); } inline int ConnectionsLog_DiscoveryPhase::discovered_endpoint_size() const { return _internal_discovered_endpoint_size(); } inline void ConnectionsLog_DiscoveryPhase::clear_discovered_endpoint() { - discovered_endpoint_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.discovered_endpoint_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* ConnectionsLog_DiscoveryPhase::mutable_discovered_endpoint(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_discovered_endpoint(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovered_endpoint) - return discovered_endpoint_.Mutable(index); + return _internal_mutable_discovered_endpoint()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >* -ConnectionsLog_DiscoveryPhase::mutable_discovered_endpoint() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_discovered_endpoint() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovered_endpoint) - return &discovered_endpoint_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_discovered_endpoint(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& ConnectionsLog_DiscoveryPhase::_internal_discovered_endpoint(int index) const { - return discovered_endpoint_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& ConnectionsLog_DiscoveryPhase::discovered_endpoint(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint& ConnectionsLog_DiscoveryPhase::discovered_endpoint(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovered_endpoint) - return _internal_discovered_endpoint(index); + return _internal_discovered_endpoint().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* ConnectionsLog_DiscoveryPhase::_internal_add_discovered_endpoint() { - return discovered_endpoint_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* ConnectionsLog_DiscoveryPhase::add_discovered_endpoint() { - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* _add = _internal_add_discovered_endpoint(); +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::add_discovered_endpoint() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint* _add = + _internal_mutable_discovered_endpoint()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovered_endpoint) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint >& -ConnectionsLog_DiscoveryPhase::discovered_endpoint() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>& ConnectionsLog_DiscoveryPhase::discovered_endpoint() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovered_endpoint) - return discovered_endpoint_; + return _internal_discovered_endpoint(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>& +ConnectionsLog_DiscoveryPhase::_internal_discovered_endpoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.discovered_endpoint_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_DiscoveredEndpoint>* PROTOBUF_NONNULL +ConnectionsLog_DiscoveryPhase::_internal_mutable_discovered_endpoint() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.discovered_endpoint_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest sent_connection_request = 4; inline int ConnectionsLog_DiscoveryPhase::_internal_sent_connection_request_size() const { - return sent_connection_request_.size(); + return _internal_sent_connection_request().size(); } inline int ConnectionsLog_DiscoveryPhase::sent_connection_request_size() const { return _internal_sent_connection_request_size(); } inline void ConnectionsLog_DiscoveryPhase::clear_sent_connection_request() { - sent_connection_request_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sent_connection_request_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_DiscoveryPhase::mutable_sent_connection_request(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_sent_connection_request(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.sent_connection_request) - return sent_connection_request_.Mutable(index); + return _internal_mutable_sent_connection_request()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >* -ConnectionsLog_DiscoveryPhase::mutable_sent_connection_request() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_sent_connection_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.sent_connection_request) - return &sent_connection_request_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_sent_connection_request(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_DiscoveryPhase::_internal_sent_connection_request(int index) const { - return sent_connection_request_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_DiscoveryPhase::sent_connection_request(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_DiscoveryPhase::sent_connection_request(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.sent_connection_request) - return _internal_sent_connection_request(index); + return _internal_sent_connection_request().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_DiscoveryPhase::_internal_add_sent_connection_request() { - return sent_connection_request_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_DiscoveryPhase::add_sent_connection_request() { - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _add = _internal_add_sent_connection_request(); +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::add_sent_connection_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _add = + _internal_mutable_sent_connection_request()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.sent_connection_request) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >& -ConnectionsLog_DiscoveryPhase::sent_connection_request() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& ConnectionsLog_DiscoveryPhase::sent_connection_request() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.sent_connection_request) - return sent_connection_request_; + return _internal_sent_connection_request(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& +ConnectionsLog_DiscoveryPhase::_internal_sent_connection_request() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sent_connection_request_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL +ConnectionsLog_DiscoveryPhase::_internal_mutable_sent_connection_request() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.sent_connection_request_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess uwb_ranging = 5; inline int ConnectionsLog_DiscoveryPhase::_internal_uwb_ranging_size() const { - return uwb_ranging_.size(); + return _internal_uwb_ranging().size(); } inline int ConnectionsLog_DiscoveryPhase::uwb_ranging_size() const { return _internal_uwb_ranging_size(); } inline void ConnectionsLog_DiscoveryPhase::clear_uwb_ranging() { - uwb_ranging_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.uwb_ranging_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000008U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* ConnectionsLog_DiscoveryPhase::mutable_uwb_ranging(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_uwb_ranging(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.uwb_ranging) - return uwb_ranging_.Mutable(index); + return _internal_mutable_uwb_ranging()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >* -ConnectionsLog_DiscoveryPhase::mutable_uwb_ranging() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_uwb_ranging() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.uwb_ranging) - return &uwb_ranging_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_uwb_ranging(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& ConnectionsLog_DiscoveryPhase::_internal_uwb_ranging(int index) const { - return uwb_ranging_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& ConnectionsLog_DiscoveryPhase::uwb_ranging(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess& ConnectionsLog_DiscoveryPhase::uwb_ranging(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.uwb_ranging) - return _internal_uwb_ranging(index); + return _internal_uwb_ranging().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* ConnectionsLog_DiscoveryPhase::_internal_add_uwb_ranging() { - return uwb_ranging_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* ConnectionsLog_DiscoveryPhase::add_uwb_ranging() { - ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* _add = _internal_add_uwb_ranging(); +inline ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::add_uwb_ranging() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess* _add = + _internal_mutable_uwb_ranging()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.uwb_ranging) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess >& -ConnectionsLog_DiscoveryPhase::uwb_ranging() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>& ConnectionsLog_DiscoveryPhase::uwb_ranging() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.uwb_ranging) - return uwb_ranging_; + return _internal_uwb_ranging(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>& +ConnectionsLog_DiscoveryPhase::_internal_uwb_ranging() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.uwb_ranging_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_UwbRangingProcess>* PROTOBUF_NONNULL +ConnectionsLog_DiscoveryPhase::_internal_mutable_uwb_ranging() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.uwb_ranging_; } // optional int64 client_flow_id = 6; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_DiscoveryPhase::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_DiscoveryPhase::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t ConnectionsLog_DiscoveryPhase::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_DiscoveryPhase::client_flow_id() const { +inline ::int64_t ConnectionsLog_DiscoveryPhase::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_DiscoveryPhase::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - client_flow_id_ = value; -} -inline void ConnectionsLog_DiscoveryPhase::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_DiscoveryPhase::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.client_flow_id) } +inline ::int64_t ConnectionsLog_DiscoveryPhase::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_DiscoveryPhase::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_discovery_metadata() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || discovery_metadata_ != nullptr); +inline bool ConnectionsLog_DiscoveryPhase::has_discovery_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.discovery_metadata_ != nullptr); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_discovery_metadata() const { - return _internal_has_discovery_metadata(); -} inline void ConnectionsLog_DiscoveryPhase::clear_discovery_metadata() { - if (discovery_metadata_ != nullptr) discovery_metadata_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.discovery_metadata_ != nullptr) _impl_.discovery_metadata_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& ConnectionsLog_DiscoveryPhase::_internal_discovery_metadata() const { - const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* p = discovery_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_DiscoveryMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* p = _impl_.discovery_metadata_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_DiscoveryMetadata_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& ConnectionsLog_DiscoveryPhase::discovery_metadata() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& ConnectionsLog_DiscoveryPhase::discovery_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovery_metadata) return _internal_discovery_metadata(); } inline void ConnectionsLog_DiscoveryPhase::unsafe_arena_set_allocated_discovery_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* discovery_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(discovery_metadata_); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.discovery_metadata_); } - discovery_metadata_ = discovery_metadata; - if (discovery_metadata) { - _has_bits_[0] |= 0x00000001u; + _impl_.discovery_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovery_metadata) } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* ConnectionsLog_DiscoveryPhase::release_discovery_metadata() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* temp = discovery_metadata_; - discovery_metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE ConnectionsLog_DiscoveryPhase::release_discovery_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* released = _impl_.discovery_metadata_; + _impl_.discovery_metadata_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* ConnectionsLog_DiscoveryPhase::unsafe_arena_release_discovery_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE ConnectionsLog_DiscoveryPhase::unsafe_arena_release_discovery_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovery_metadata) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* temp = discovery_metadata_; - discovery_metadata_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* temp = _impl_.discovery_metadata_; + _impl_.discovery_metadata_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* ConnectionsLog_DiscoveryPhase::_internal_mutable_discovery_metadata() { - _has_bits_[0] |= 0x00000001u; - if (discovery_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>(GetArenaForAllocation()); - discovery_metadata_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::_internal_mutable_discovery_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.discovery_metadata_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>(GetArena()); + _impl_.discovery_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata*>(p); } - return discovery_metadata_; + return _impl_.discovery_metadata_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* ConnectionsLog_DiscoveryPhase::mutable_discovery_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_discovery_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* _msg = _internal_mutable_discovery_metadata(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovery_metadata) return _msg; } -inline void ConnectionsLog_DiscoveryPhase::set_allocated_discovery_metadata(::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* discovery_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_DiscoveryPhase::set_allocated_discovery_metadata(::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete discovery_metadata_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.discovery_metadata_); } - if (discovery_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata>::GetOwningArena(discovery_metadata); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - discovery_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, discovery_metadata, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - discovery_metadata_ = discovery_metadata; + + _impl_.discovery_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.discovery_metadata) } // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 8; inline int ConnectionsLog_DiscoveryPhase::_internal_adv_dis_result_size() const { - return adv_dis_result_.size(); + return _internal_adv_dis_result().size(); } inline int ConnectionsLog_DiscoveryPhase::adv_dis_result_size() const { return _internal_adv_dis_result_size(); } inline void ConnectionsLog_DiscoveryPhase::clear_adv_dis_result() { - adv_dis_result_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.adv_dis_result_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000010U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_DiscoveryPhase::mutable_adv_dis_result(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_adv_dis_result(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.adv_dis_result) - return adv_dis_result_.Mutable(index); + return _internal_mutable_adv_dis_result()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >* -ConnectionsLog_DiscoveryPhase::mutable_adv_dis_result() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::mutable_adv_dis_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.adv_dis_result) - return &adv_dis_result_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_adv_dis_result(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_DiscoveryPhase::_internal_adv_dis_result(int index) const { - return adv_dis_result_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_DiscoveryPhase::adv_dis_result(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_DiscoveryPhase::adv_dis_result(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.adv_dis_result) - return _internal_adv_dis_result(index); + return _internal_adv_dis_result().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_DiscoveryPhase::_internal_add_adv_dis_result() { - return adv_dis_result_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_DiscoveryPhase::add_adv_dis_result() { - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _add = _internal_add_adv_dis_result(); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL ConnectionsLog_DiscoveryPhase::add_adv_dis_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _add = + _internal_mutable_adv_dis_result()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.adv_dis_result) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >& -ConnectionsLog_DiscoveryPhase::adv_dis_result() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& ConnectionsLog_DiscoveryPhase::adv_dis_result() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.adv_dis_result) - return adv_dis_result_; + return _internal_adv_dis_result(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& +ConnectionsLog_DiscoveryPhase::_internal_adv_dis_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.adv_dis_result_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL +ConnectionsLog_DiscoveryPhase::_internal_mutable_adv_dis_result() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.adv_dis_result_; } // optional .location.nearby.proto.connections.StopDiscoveringReason stop_reason = 9; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_stop_reason() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_DiscoveryPhase::has_stop_reason() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_stop_reason() const { - return _internal_has_stop_reason(); -} inline void ConnectionsLog_DiscoveryPhase::clear_stop_reason() { - stop_reason_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::StopDiscoveringReason ConnectionsLog_DiscoveryPhase::_internal_stop_reason() const { - return static_cast< ::location::nearby::proto::connections::StopDiscoveringReason >(stop_reason_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.stop_reason_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::connections::StopDiscoveringReason ConnectionsLog_DiscoveryPhase::stop_reason() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.stop_reason) return _internal_stop_reason(); } -inline void ConnectionsLog_DiscoveryPhase::_internal_set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value) { - assert(::location::nearby::proto::connections::StopDiscoveringReason_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - stop_reason_ = value; -} inline void ConnectionsLog_DiscoveryPhase::set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value) { _internal_set_stop_reason(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.stop_reason) } +inline ::location::nearby::proto::connections::StopDiscoveringReason ConnectionsLog_DiscoveryPhase::_internal_stop_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::StopDiscoveringReason>(_impl_.stop_reason_); +} +inline void ConnectionsLog_DiscoveryPhase::_internal_set_stop_reason(::location::nearby::proto::connections::StopDiscoveringReason value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::StopDiscoveringReason_internal_data_)); + _impl_.stop_reason_ = value; +} // optional .location.nearby.proto.connections.DeviceType device_type = 10; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_DiscoveryPhase::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionsLog_DiscoveryPhase::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_DiscoveryPhase::_internal_device_type() const { - return static_cast< ::location::nearby::proto::connections::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_DiscoveryPhase::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.device_type) return _internal_device_type(); } -inline void ConnectionsLog_DiscoveryPhase::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { - assert(::location::nearby::proto::connections::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - device_type_ = value; -} inline void ConnectionsLog_DiscoveryPhase::set_device_type(::location::nearby::proto::connections::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.device_type) } +inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_DiscoveryPhase::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DeviceType>(_impl_.device_type_); +} +inline void ConnectionsLog_DiscoveryPhase::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.connections.SupportedService supported_service = 11; -inline bool ConnectionsLog_DiscoveryPhase::_internal_has_supported_service() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_DiscoveryPhase::has_supported_service() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_DiscoveryPhase::has_supported_service() const { - return _internal_has_supported_service(); -} inline void ConnectionsLog_DiscoveryPhase::clear_supported_service() { - supported_service_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_DiscoveryPhase::_internal_supported_service() const { - return static_cast< ::location::nearby::proto::connections::SupportedService >(supported_service_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_service_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_DiscoveryPhase::supported_service() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.supported_service) return _internal_supported_service(); } -inline void ConnectionsLog_DiscoveryPhase::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { - assert(::location::nearby::proto::connections::SupportedService_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - supported_service_ = value; -} inline void ConnectionsLog_DiscoveryPhase::set_supported_service(::location::nearby::proto::connections::SupportedService value) { _internal_set_supported_service(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.supported_service) } +inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_DiscoveryPhase::_internal_supported_service() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::SupportedService>(_impl_.supported_service_); +} +inline void ConnectionsLog_DiscoveryPhase::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SupportedService_internal_data_)); + _impl_.supported_service_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_DiscoveredEndpoint // optional .location.nearby.proto.connections.Medium medium = 1; -inline bool ConnectionsLog_DiscoveredEndpoint::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DiscoveredEndpoint::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_DiscoveredEndpoint::has_medium() const { - return _internal_has_medium(); -} inline void ConnectionsLog_DiscoveredEndpoint::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_DiscoveredEndpoint::_internal_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_DiscoveredEndpoint::medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint.medium) return _internal_medium(); } -inline void ConnectionsLog_DiscoveredEndpoint::_internal_set_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - medium_ = value; -} inline void ConnectionsLog_DiscoveredEndpoint::set_medium(::location::nearby::proto::connections::Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint.medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_DiscoveredEndpoint::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.medium_); +} +inline void ConnectionsLog_DiscoveredEndpoint::_internal_set_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.medium_ = value; +} // optional int64 latency_millis = 2; -inline bool ConnectionsLog_DiscoveredEndpoint::_internal_has_latency_millis() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_DiscoveredEndpoint::has_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_DiscoveredEndpoint::has_latency_millis() const { - return _internal_has_latency_millis(); -} inline void ConnectionsLog_DiscoveredEndpoint::clear_latency_millis() { - latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t ConnectionsLog_DiscoveredEndpoint::_internal_latency_millis() const { - return latency_millis_; -} -inline int64_t ConnectionsLog_DiscoveredEndpoint::latency_millis() const { +inline ::int64_t ConnectionsLog_DiscoveredEndpoint::latency_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint.latency_millis) return _internal_latency_millis(); } -inline void ConnectionsLog_DiscoveredEndpoint::_internal_set_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00000001u; - latency_millis_ = value; -} -inline void ConnectionsLog_DiscoveredEndpoint::set_latency_millis(int64_t value) { +inline void ConnectionsLog_DiscoveredEndpoint::set_latency_millis(::int64_t value) { _internal_set_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveredEndpoint.latency_millis) } +inline ::int64_t ConnectionsLog_DiscoveredEndpoint::_internal_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_millis_; +} +inline void ConnectionsLog_DiscoveredEndpoint::_internal_set_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_UwbRangingProcess // optional int64 duration_millis = 1; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_UwbRangingProcess::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t ConnectionsLog_UwbRangingProcess::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_UwbRangingProcess::duration_millis() const { +inline ::int64_t ConnectionsLog_UwbRangingProcess::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000001u; - duration_millis_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_duration_millis(int64_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.duration_millis) } +inline ::int64_t ConnectionsLog_UwbRangingProcess::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent uwb_ranging_data = 2; inline int ConnectionsLog_UwbRangingProcess::_internal_uwb_ranging_data_size() const { - return uwb_ranging_data_.size(); + return _internal_uwb_ranging_data().size(); } inline int ConnectionsLog_UwbRangingProcess::uwb_ranging_data_size() const { return _internal_uwb_ranging_data_size(); } inline void ConnectionsLog_UwbRangingProcess::clear_uwb_ranging_data() { - uwb_ranging_data_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.uwb_ranging_data_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* ConnectionsLog_UwbRangingProcess::mutable_uwb_ranging_data(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL ConnectionsLog_UwbRangingProcess::mutable_uwb_ranging_data(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.uwb_ranging_data) - return uwb_ranging_data_.Mutable(index); + return _internal_mutable_uwb_ranging_data()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >* -ConnectionsLog_UwbRangingProcess::mutable_uwb_ranging_data() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>* PROTOBUF_NONNULL ConnectionsLog_UwbRangingProcess::mutable_uwb_ranging_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.uwb_ranging_data) - return &uwb_ranging_data_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_uwb_ranging_data(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& ConnectionsLog_UwbRangingProcess::_internal_uwb_ranging_data(int index) const { - return uwb_ranging_data_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& ConnectionsLog_UwbRangingProcess::uwb_ranging_data(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent& ConnectionsLog_UwbRangingProcess::uwb_ranging_data(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.uwb_ranging_data) - return _internal_uwb_ranging_data(index); + return _internal_uwb_ranging_data().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* ConnectionsLog_UwbRangingProcess::_internal_add_uwb_ranging_data() { - return uwb_ranging_data_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* ConnectionsLog_UwbRangingProcess::add_uwb_ranging_data() { - ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* _add = _internal_add_uwb_ranging_data(); +inline ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* PROTOBUF_NONNULL ConnectionsLog_UwbRangingProcess::add_uwb_ranging_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent* _add = + _internal_mutable_uwb_ranging_data()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.uwb_ranging_data) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent >& -ConnectionsLog_UwbRangingProcess::uwb_ranging_data() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>& ConnectionsLog_UwbRangingProcess::uwb_ranging_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.uwb_ranging_data) - return uwb_ranging_data_; + return _internal_uwb_ranging_data(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>& +ConnectionsLog_UwbRangingProcess::_internal_uwb_ranging_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.uwb_ranging_data_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_RawUwbRangingEvent>* PROTOBUF_NONNULL +ConnectionsLog_UwbRangingProcess::_internal_mutable_uwb_ranging_data() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.uwb_ranging_data_; } // optional int32 number_of_ranging_data = 3; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_number_of_ranging_data() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_number_of_ranging_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_number_of_ranging_data() const { - return _internal_has_number_of_ranging_data(); -} inline void ConnectionsLog_UwbRangingProcess::clear_number_of_ranging_data() { - number_of_ranging_data_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.number_of_ranging_data_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_number_of_ranging_data() const { - return number_of_ranging_data_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::number_of_ranging_data() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::number_of_ranging_data() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.number_of_ranging_data) return _internal_number_of_ranging_data(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_number_of_ranging_data(int32_t value) { - _has_bits_[0] |= 0x00000002u; - number_of_ranging_data_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_number_of_ranging_data(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_number_of_ranging_data(::int32_t value) { _internal_set_number_of_ranging_data(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.number_of_ranging_data) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_number_of_ranging_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.number_of_ranging_data_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_number_of_ranging_data(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.number_of_ranging_data_ = value; +} // optional int32 distance_min = 4; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_distance_min() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_distance_min() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_distance_min() const { - return _internal_has_distance_min(); -} inline void ConnectionsLog_UwbRangingProcess::clear_distance_min() { - distance_min_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_min_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_min() const { - return distance_min_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::distance_min() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::distance_min() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_min) return _internal_distance_min(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_min(int32_t value) { - _has_bits_[0] |= 0x00000004u; - distance_min_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_distance_min(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_distance_min(::int32_t value) { _internal_set_distance_min(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_min) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_min() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distance_min_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_min(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_min_ = value; +} // optional int32 distance_max = 5; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_distance_max() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_distance_max() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_distance_max() const { - return _internal_has_distance_max(); -} inline void ConnectionsLog_UwbRangingProcess::clear_distance_max() { - distance_max_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_max_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_max() const { - return distance_max_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::distance_max() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::distance_max() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_max) return _internal_distance_max(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_max(int32_t value) { - _has_bits_[0] |= 0x00000008u; - distance_max_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_distance_max(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_distance_max(::int32_t value) { _internal_set_distance_max(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_max) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_max() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distance_max_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_max(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_max_ = value; +} // optional int32 distance_ave = 6; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_distance_ave() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_distance_ave() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_distance_ave() const { - return _internal_has_distance_ave(); -} inline void ConnectionsLog_UwbRangingProcess::clear_distance_ave() { - distance_ave_ = 0; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_ave_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_ave() const { - return distance_ave_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::distance_ave() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::distance_ave() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_ave) return _internal_distance_ave(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_ave(int32_t value) { - _has_bits_[0] |= 0x00000010u; - distance_ave_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_distance_ave(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_distance_ave(::int32_t value) { _internal_set_distance_ave(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_ave) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_ave() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distance_ave_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_ave(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_ave_ = value; +} // optional int32 distance_variance = 7; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_distance_variance() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_distance_variance() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_distance_variance() const { - return _internal_has_distance_variance(); -} inline void ConnectionsLog_UwbRangingProcess::clear_distance_variance() { - distance_variance_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_variance_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_variance() const { - return distance_variance_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::distance_variance() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::distance_variance() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_variance) return _internal_distance_variance(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_variance(int32_t value) { - _has_bits_[0] |= 0x00000020u; - distance_variance_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_distance_variance(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_distance_variance(::int32_t value) { _internal_set_distance_variance(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.distance_variance) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_distance_variance() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distance_variance_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_distance_variance(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_variance_ = value; +} // optional int32 azimuth_min = 8; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_azimuth_min() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_min() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_min() const { - return _internal_has_azimuth_min(); -} inline void ConnectionsLog_UwbRangingProcess::clear_azimuth_min() { - azimuth_min_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_min_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_min() const { - return azimuth_min_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::azimuth_min() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::azimuth_min() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_min) return _internal_azimuth_min(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_min(int32_t value) { - _has_bits_[0] |= 0x00000040u; - azimuth_min_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_azimuth_min(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_azimuth_min(::int32_t value) { _internal_set_azimuth_min(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_min) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_min() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.azimuth_min_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_min(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_min_ = value; +} // optional int32 azimuth_max = 9; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_azimuth_max() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_max() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_max() const { - return _internal_has_azimuth_max(); -} inline void ConnectionsLog_UwbRangingProcess::clear_azimuth_max() { - azimuth_max_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_max_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_max() const { - return azimuth_max_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::azimuth_max() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::azimuth_max() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_max) return _internal_azimuth_max(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_max(int32_t value) { - _has_bits_[0] |= 0x00000080u; - azimuth_max_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_azimuth_max(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_azimuth_max(::int32_t value) { _internal_set_azimuth_max(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_max) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_max() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.azimuth_max_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_max(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_max_ = value; +} // optional int32 azimuth_ave = 10; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_azimuth_ave() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_ave() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_ave() const { - return _internal_has_azimuth_ave(); -} inline void ConnectionsLog_UwbRangingProcess::clear_azimuth_ave() { - azimuth_ave_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_ave_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_ave() const { - return azimuth_ave_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::azimuth_ave() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::azimuth_ave() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_ave) return _internal_azimuth_ave(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_ave(int32_t value) { - _has_bits_[0] |= 0x00000100u; - azimuth_ave_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_azimuth_ave(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_azimuth_ave(::int32_t value) { _internal_set_azimuth_ave(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_ave) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_ave() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.azimuth_ave_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_ave(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_ave_ = value; +} // optional int32 azimuth_variance = 11; -inline bool ConnectionsLog_UwbRangingProcess::_internal_has_azimuth_variance() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_variance() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_UwbRangingProcess::has_azimuth_variance() const { - return _internal_has_azimuth_variance(); -} inline void ConnectionsLog_UwbRangingProcess::clear_azimuth_variance() { - azimuth_variance_ = 0; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_variance_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_variance() const { - return azimuth_variance_; -} -inline int32_t ConnectionsLog_UwbRangingProcess::azimuth_variance() const { +inline ::int32_t ConnectionsLog_UwbRangingProcess::azimuth_variance() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_variance) return _internal_azimuth_variance(); } -inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_variance(int32_t value) { - _has_bits_[0] |= 0x00000200u; - azimuth_variance_ = value; -} -inline void ConnectionsLog_UwbRangingProcess::set_azimuth_variance(int32_t value) { +inline void ConnectionsLog_UwbRangingProcess::set_azimuth_variance(::int32_t value) { _internal_set_azimuth_variance(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.UwbRangingProcess.azimuth_variance) } +inline ::int32_t ConnectionsLog_UwbRangingProcess::_internal_azimuth_variance() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.azimuth_variance_; +} +inline void ConnectionsLog_UwbRangingProcess::_internal_set_azimuth_variance(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_variance_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_RawUwbRangingEvent // optional int32 distance = 1; -inline bool ConnectionsLog_RawUwbRangingEvent::_internal_has_distance() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_RawUwbRangingEvent::has_distance() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_RawUwbRangingEvent::has_distance() const { - return _internal_has_distance(); -} inline void ConnectionsLog_RawUwbRangingEvent::clear_distance() { - distance_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t ConnectionsLog_RawUwbRangingEvent::_internal_distance() const { - return distance_; -} -inline int32_t ConnectionsLog_RawUwbRangingEvent::distance() const { +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::distance() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.distance) return _internal_distance(); } -inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_distance(int32_t value) { - _has_bits_[0] |= 0x00000001u; - distance_ = value; -} -inline void ConnectionsLog_RawUwbRangingEvent::set_distance(int32_t value) { +inline void ConnectionsLog_RawUwbRangingEvent::set_distance(::int32_t value) { _internal_set_distance(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.distance) } +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::_internal_distance() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distance_; +} +inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_distance(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distance_ = value; +} // optional int32 azimuth_angle = 2; -inline bool ConnectionsLog_RawUwbRangingEvent::_internal_has_azimuth_angle() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_RawUwbRangingEvent::has_azimuth_angle() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_RawUwbRangingEvent::has_azimuth_angle() const { - return _internal_has_azimuth_angle(); -} inline void ConnectionsLog_RawUwbRangingEvent::clear_azimuth_angle() { - azimuth_angle_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_angle_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t ConnectionsLog_RawUwbRangingEvent::_internal_azimuth_angle() const { - return azimuth_angle_; -} -inline int32_t ConnectionsLog_RawUwbRangingEvent::azimuth_angle() const { +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::azimuth_angle() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.azimuth_angle) return _internal_azimuth_angle(); } -inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_azimuth_angle(int32_t value) { - _has_bits_[0] |= 0x00000002u; - azimuth_angle_ = value; -} -inline void ConnectionsLog_RawUwbRangingEvent::set_azimuth_angle(int32_t value) { +inline void ConnectionsLog_RawUwbRangingEvent::set_azimuth_angle(::int32_t value) { _internal_set_azimuth_angle(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.azimuth_angle) } +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::_internal_azimuth_angle() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.azimuth_angle_; +} +inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_azimuth_angle(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.azimuth_angle_ = value; +} // optional int32 polar_angle = 3; -inline bool ConnectionsLog_RawUwbRangingEvent::_internal_has_polar_angle() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_RawUwbRangingEvent::has_polar_angle() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_RawUwbRangingEvent::has_polar_angle() const { - return _internal_has_polar_angle(); -} inline void ConnectionsLog_RawUwbRangingEvent::clear_polar_angle() { - polar_angle_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.polar_angle_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t ConnectionsLog_RawUwbRangingEvent::_internal_polar_angle() const { - return polar_angle_; -} -inline int32_t ConnectionsLog_RawUwbRangingEvent::polar_angle() const { +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::polar_angle() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.polar_angle) return _internal_polar_angle(); } -inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_polar_angle(int32_t value) { - _has_bits_[0] |= 0x00000004u; - polar_angle_ = value; -} -inline void ConnectionsLog_RawUwbRangingEvent::set_polar_angle(int32_t value) { +inline void ConnectionsLog_RawUwbRangingEvent::set_polar_angle(::int32_t value) { _internal_set_polar_angle(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.RawUwbRangingEvent.polar_angle) } +inline ::int32_t ConnectionsLog_RawUwbRangingEvent::_internal_polar_angle() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.polar_angle_; +} +inline void ConnectionsLog_RawUwbRangingEvent::_internal_set_polar_angle(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.polar_angle_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_AdvertisingPhase // optional int64 duration_millis = 1; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_AdvertisingPhase::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_AdvertisingPhase::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t ConnectionsLog_AdvertisingPhase::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_AdvertisingPhase::duration_millis() const { +inline ::int64_t ConnectionsLog_AdvertisingPhase::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_AdvertisingPhase::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - duration_millis_ = value; -} -inline void ConnectionsLog_AdvertisingPhase::set_duration_millis(int64_t value) { +inline void ConnectionsLog_AdvertisingPhase::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.duration_millis) } +inline ::int64_t ConnectionsLog_AdvertisingPhase::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_AdvertisingPhase::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // repeated .location.nearby.proto.connections.Medium medium = 2; inline int ConnectionsLog_AdvertisingPhase::_internal_medium_size() const { - return medium_.size(); + return _internal_medium().size(); } inline int ConnectionsLog_AdvertisingPhase::medium_size() const { return _internal_medium_size(); } inline void ConnectionsLog_AdvertisingPhase::clear_medium() { - medium_.Clear(); -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_AdvertisingPhase::_internal_medium(int index) const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_AdvertisingPhase::medium(int index) const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.medium) - return _internal_medium(index); + return static_cast<::location::nearby::proto::connections::Medium>(_internal_medium().Get(index)); } inline void ConnectionsLog_AdvertisingPhase::set_medium(int index, ::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - medium_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _internal_mutable_medium()->Set(index, value); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.medium) } -inline void ConnectionsLog_AdvertisingPhase::_internal_add_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - medium_.Add(value); -} inline void ConnectionsLog_AdvertisingPhase::add_medium(::location::nearby::proto::connections::Medium value) { - _internal_add_medium(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_medium()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.medium) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ConnectionsLog_AdvertisingPhase::medium() const { +inline const ::google::protobuf::RepeatedField& ConnectionsLog_AdvertisingPhase::medium() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.medium) - return medium_; + return _internal_medium(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_AdvertisingPhase::_internal_mutable_medium() { - return &medium_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionsLog_AdvertisingPhase::mutable_medium() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_medium() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.medium) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_medium(); } +inline const ::google::protobuf::RepeatedField& ConnectionsLog_AdvertisingPhase::_internal_medium() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.medium_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ConnectionsLog_AdvertisingPhase::_internal_mutable_medium() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.medium_; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest received_connection_request = 3; inline int ConnectionsLog_AdvertisingPhase::_internal_received_connection_request_size() const { - return received_connection_request_.size(); + return _internal_received_connection_request().size(); } inline int ConnectionsLog_AdvertisingPhase::received_connection_request_size() const { return _internal_received_connection_request_size(); } inline void ConnectionsLog_AdvertisingPhase::clear_received_connection_request() { - received_connection_request_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_connection_request_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_AdvertisingPhase::mutable_received_connection_request(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_received_connection_request(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.received_connection_request) - return received_connection_request_.Mutable(index); + return _internal_mutable_received_connection_request()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >* -ConnectionsLog_AdvertisingPhase::mutable_received_connection_request() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_received_connection_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.received_connection_request) - return &received_connection_request_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_received_connection_request(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_AdvertisingPhase::_internal_received_connection_request(int index) const { - return received_connection_request_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_AdvertisingPhase::received_connection_request(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest& ConnectionsLog_AdvertisingPhase::received_connection_request(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.received_connection_request) - return _internal_received_connection_request(index); + return _internal_received_connection_request().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_AdvertisingPhase::_internal_add_received_connection_request() { - return received_connection_request_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* ConnectionsLog_AdvertisingPhase::add_received_connection_request() { - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _add = _internal_add_received_connection_request(); +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::add_received_connection_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest* _add = + _internal_mutable_received_connection_request()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.received_connection_request) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest >& -ConnectionsLog_AdvertisingPhase::received_connection_request() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& ConnectionsLog_AdvertisingPhase::received_connection_request() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.received_connection_request) - return received_connection_request_; + return _internal_received_connection_request(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>& +ConnectionsLog_AdvertisingPhase::_internal_received_connection_request() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.received_connection_request_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_ConnectionRequest>* PROTOBUF_NONNULL +ConnectionsLog_AdvertisingPhase::_internal_mutable_received_connection_request() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.received_connection_request_; } // optional int64 client_flow_id = 4; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_AdvertisingPhase::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_AdvertisingPhase::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int64_t ConnectionsLog_AdvertisingPhase::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_AdvertisingPhase::client_flow_id() const { +inline ::int64_t ConnectionsLog_AdvertisingPhase::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_AdvertisingPhase::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - client_flow_id_ = value; -} -inline void ConnectionsLog_AdvertisingPhase::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_AdvertisingPhase::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.client_flow_id) } +inline ::int64_t ConnectionsLog_AdvertisingPhase::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_AdvertisingPhase::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_advertising_metadata() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || advertising_metadata_ != nullptr); +inline bool ConnectionsLog_AdvertisingPhase::has_advertising_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.advertising_metadata_ != nullptr); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_advertising_metadata() const { - return _internal_has_advertising_metadata(); -} inline void ConnectionsLog_AdvertisingPhase::clear_advertising_metadata() { - if (advertising_metadata_ != nullptr) advertising_metadata_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertising_metadata_ != nullptr) _impl_.advertising_metadata_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& ConnectionsLog_AdvertisingPhase::_internal_advertising_metadata() const { - const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* p = advertising_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_AdvertisingMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* p = _impl_.advertising_metadata_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_AdvertisingMetadata_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& ConnectionsLog_AdvertisingPhase::advertising_metadata() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& ConnectionsLog_AdvertisingPhase::advertising_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.advertising_metadata) return _internal_advertising_metadata(); } inline void ConnectionsLog_AdvertisingPhase::unsafe_arena_set_allocated_advertising_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* advertising_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advertising_metadata_); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertising_metadata_); } - advertising_metadata_ = advertising_metadata; - if (advertising_metadata) { - _has_bits_[0] |= 0x00000001u; + _impl_.advertising_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.advertising_metadata) } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* ConnectionsLog_AdvertisingPhase::release_advertising_metadata() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* temp = advertising_metadata_; - advertising_metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE ConnectionsLog_AdvertisingPhase::release_advertising_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* released = _impl_.advertising_metadata_; + _impl_.advertising_metadata_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* ConnectionsLog_AdvertisingPhase::unsafe_arena_release_advertising_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE ConnectionsLog_AdvertisingPhase::unsafe_arena_release_advertising_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.advertising_metadata) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* temp = advertising_metadata_; - advertising_metadata_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* temp = _impl_.advertising_metadata_; + _impl_.advertising_metadata_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* ConnectionsLog_AdvertisingPhase::_internal_mutable_advertising_metadata() { - _has_bits_[0] |= 0x00000001u; - if (advertising_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>(GetArenaForAllocation()); - advertising_metadata_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::_internal_mutable_advertising_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertising_metadata_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>(GetArena()); + _impl_.advertising_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata*>(p); } - return advertising_metadata_; + return _impl_.advertising_metadata_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* ConnectionsLog_AdvertisingPhase::mutable_advertising_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_advertising_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* _msg = _internal_mutable_advertising_metadata(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.advertising_metadata) return _msg; } -inline void ConnectionsLog_AdvertisingPhase::set_allocated_advertising_metadata(::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* advertising_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_AdvertisingPhase::set_allocated_advertising_metadata(::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete advertising_metadata_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertising_metadata_); } - if (advertising_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata>::GetOwningArena(advertising_metadata); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - advertising_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, advertising_metadata, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - advertising_metadata_ = advertising_metadata; + + _impl_.advertising_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.advertising_metadata) } // repeated .location.nearby.analytics.proto.ConnectionsLog.OperationResultWithMedium adv_dis_result = 6; inline int ConnectionsLog_AdvertisingPhase::_internal_adv_dis_result_size() const { - return adv_dis_result_.size(); + return _internal_adv_dis_result().size(); } inline int ConnectionsLog_AdvertisingPhase::adv_dis_result_size() const { return _internal_adv_dis_result_size(); } inline void ConnectionsLog_AdvertisingPhase::clear_adv_dis_result() { - adv_dis_result_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.adv_dis_result_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_AdvertisingPhase::mutable_adv_dis_result(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_adv_dis_result(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.adv_dis_result) - return adv_dis_result_.Mutable(index); + return _internal_mutable_adv_dis_result()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >* -ConnectionsLog_AdvertisingPhase::mutable_adv_dis_result() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::mutable_adv_dis_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.adv_dis_result) - return &adv_dis_result_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_adv_dis_result(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_AdvertisingPhase::_internal_adv_dis_result(int index) const { - return adv_dis_result_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_AdvertisingPhase::adv_dis_result(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium& ConnectionsLog_AdvertisingPhase::adv_dis_result(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.adv_dis_result) - return _internal_adv_dis_result(index); + return _internal_adv_dis_result().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_AdvertisingPhase::_internal_add_adv_dis_result() { - return adv_dis_result_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* ConnectionsLog_AdvertisingPhase::add_adv_dis_result() { - ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _add = _internal_add_adv_dis_result(); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* PROTOBUF_NONNULL ConnectionsLog_AdvertisingPhase::add_adv_dis_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium* _add = + _internal_mutable_adv_dis_result()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.adv_dis_result) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium >& -ConnectionsLog_AdvertisingPhase::adv_dis_result() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& ConnectionsLog_AdvertisingPhase::adv_dis_result() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.adv_dis_result) - return adv_dis_result_; + return _internal_adv_dis_result(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>& +ConnectionsLog_AdvertisingPhase::_internal_adv_dis_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.adv_dis_result_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_OperationResultWithMedium>* PROTOBUF_NONNULL +ConnectionsLog_AdvertisingPhase::_internal_mutable_adv_dis_result() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.adv_dis_result_; } // optional .location.nearby.proto.connections.StopAdvertisingReason stop_reason = 7; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_stop_reason() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_AdvertisingPhase::has_stop_reason() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_stop_reason() const { - return _internal_has_stop_reason(); -} inline void ConnectionsLog_AdvertisingPhase::clear_stop_reason() { - stop_reason_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::StopAdvertisingReason ConnectionsLog_AdvertisingPhase::_internal_stop_reason() const { - return static_cast< ::location::nearby::proto::connections::StopAdvertisingReason >(stop_reason_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.stop_reason_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::connections::StopAdvertisingReason ConnectionsLog_AdvertisingPhase::stop_reason() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.stop_reason) return _internal_stop_reason(); } -inline void ConnectionsLog_AdvertisingPhase::_internal_set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value) { - assert(::location::nearby::proto::connections::StopAdvertisingReason_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - stop_reason_ = value; -} inline void ConnectionsLog_AdvertisingPhase::set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value) { _internal_set_stop_reason(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.stop_reason) } +inline ::location::nearby::proto::connections::StopAdvertisingReason ConnectionsLog_AdvertisingPhase::_internal_stop_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::StopAdvertisingReason>(_impl_.stop_reason_); +} +inline void ConnectionsLog_AdvertisingPhase::_internal_set_stop_reason(::location::nearby::proto::connections::StopAdvertisingReason value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::StopAdvertisingReason_internal_data_)); + _impl_.stop_reason_ = value; +} // optional .location.nearby.proto.connections.DeviceType device_type = 8; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_AdvertisingPhase::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionsLog_AdvertisingPhase::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_AdvertisingPhase::_internal_device_type() const { - return static_cast< ::location::nearby::proto::connections::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_AdvertisingPhase::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.device_type) return _internal_device_type(); } -inline void ConnectionsLog_AdvertisingPhase::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { - assert(::location::nearby::proto::connections::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - device_type_ = value; -} inline void ConnectionsLog_AdvertisingPhase::set_device_type(::location::nearby::proto::connections::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.device_type) } +inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_AdvertisingPhase::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DeviceType>(_impl_.device_type_); +} +inline void ConnectionsLog_AdvertisingPhase::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.connections.SupportedService supported_service = 9; -inline bool ConnectionsLog_AdvertisingPhase::_internal_has_supported_service() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_AdvertisingPhase::has_supported_service() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_AdvertisingPhase::has_supported_service() const { - return _internal_has_supported_service(); -} inline void ConnectionsLog_AdvertisingPhase::clear_supported_service() { - supported_service_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_AdvertisingPhase::_internal_supported_service() const { - return static_cast< ::location::nearby::proto::connections::SupportedService >(supported_service_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_service_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_AdvertisingPhase::supported_service() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.supported_service) return _internal_supported_service(); } -inline void ConnectionsLog_AdvertisingPhase::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { - assert(::location::nearby::proto::connections::SupportedService_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - supported_service_ = value; -} inline void ConnectionsLog_AdvertisingPhase::set_supported_service(::location::nearby::proto::connections::SupportedService value) { _internal_set_supported_service(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.supported_service) } +inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_AdvertisingPhase::_internal_supported_service() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::SupportedService>(_impl_.supported_service_); +} +inline void ConnectionsLog_AdvertisingPhase::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SupportedService_internal_data_)); + _impl_.supported_service_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_ConnectionRequest // optional int64 duration_millis = 1; -inline bool ConnectionsLog_ConnectionRequest::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_ConnectionRequest::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_ConnectionRequest::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_ConnectionRequest::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t ConnectionsLog_ConnectionRequest::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_ConnectionRequest::duration_millis() const { +inline ::int64_t ConnectionsLog_ConnectionRequest::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_ConnectionRequest::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000001u; - duration_millis_ = value; -} -inline void ConnectionsLog_ConnectionRequest::set_duration_millis(int64_t value) { +inline void ConnectionsLog_ConnectionRequest::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.duration_millis) } +inline ::int64_t ConnectionsLog_ConnectionRequest::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_ConnectionRequest::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional int64 request_delay_millis = 2; -inline bool ConnectionsLog_ConnectionRequest::_internal_has_request_delay_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_ConnectionRequest::has_request_delay_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_ConnectionRequest::has_request_delay_millis() const { - return _internal_has_request_delay_millis(); -} inline void ConnectionsLog_ConnectionRequest::clear_request_delay_millis() { - request_delay_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.request_delay_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t ConnectionsLog_ConnectionRequest::_internal_request_delay_millis() const { - return request_delay_millis_; -} -inline int64_t ConnectionsLog_ConnectionRequest::request_delay_millis() const { +inline ::int64_t ConnectionsLog_ConnectionRequest::request_delay_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.request_delay_millis) return _internal_request_delay_millis(); } -inline void ConnectionsLog_ConnectionRequest::_internal_set_request_delay_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - request_delay_millis_ = value; -} -inline void ConnectionsLog_ConnectionRequest::set_request_delay_millis(int64_t value) { +inline void ConnectionsLog_ConnectionRequest::set_request_delay_millis(::int64_t value) { _internal_set_request_delay_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.request_delay_millis) } +inline ::int64_t ConnectionsLog_ConnectionRequest::_internal_request_delay_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.request_delay_millis_; +} +inline void ConnectionsLog_ConnectionRequest::_internal_set_request_delay_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.request_delay_millis_ = value; +} // optional .location.nearby.proto.connections.ConnectionRequestResponse local_response = 3; -inline bool ConnectionsLog_ConnectionRequest::_internal_has_local_response() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_ConnectionRequest::has_local_response() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_ConnectionRequest::has_local_response() const { - return _internal_has_local_response(); -} inline void ConnectionsLog_ConnectionRequest::clear_local_response() { - local_response_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::_internal_local_response() const { - return static_cast< ::location::nearby::proto::connections::ConnectionRequestResponse >(local_response_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.local_response_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::local_response() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.local_response) return _internal_local_response(); } -inline void ConnectionsLog_ConnectionRequest::_internal_set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { - assert(::location::nearby::proto::connections::ConnectionRequestResponse_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - local_response_ = value; -} inline void ConnectionsLog_ConnectionRequest::set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { _internal_set_local_response(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.local_response) } +inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::_internal_local_response() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionRequestResponse>(_impl_.local_response_); +} +inline void ConnectionsLog_ConnectionRequest::_internal_set_local_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionRequestResponse_internal_data_)); + _impl_.local_response_ = value; +} // optional .location.nearby.proto.connections.ConnectionRequestResponse remote_response = 4; -inline bool ConnectionsLog_ConnectionRequest::_internal_has_remote_response() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_ConnectionRequest::has_remote_response() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_ConnectionRequest::has_remote_response() const { - return _internal_has_remote_response(); -} inline void ConnectionsLog_ConnectionRequest::clear_remote_response() { - remote_response_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::_internal_remote_response() const { - return static_cast< ::location::nearby::proto::connections::ConnectionRequestResponse >(remote_response_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.remote_response_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::remote_response() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.remote_response) return _internal_remote_response(); } -inline void ConnectionsLog_ConnectionRequest::_internal_set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { - assert(::location::nearby::proto::connections::ConnectionRequestResponse_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - remote_response_ = value; -} inline void ConnectionsLog_ConnectionRequest::set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { _internal_set_remote_response(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.remote_response) } +inline ::location::nearby::proto::connections::ConnectionRequestResponse ConnectionsLog_ConnectionRequest::_internal_remote_response() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionRequestResponse>(_impl_.remote_response_); +} +inline void ConnectionsLog_ConnectionRequest::_internal_set_remote_response(::location::nearby::proto::connections::ConnectionRequestResponse value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionRequestResponse_internal_data_)); + _impl_.remote_response_ = value; +} // optional int64 client_flow_id = 5; -inline bool ConnectionsLog_ConnectionRequest::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_ConnectionRequest::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_ConnectionRequest::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_ConnectionRequest::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t ConnectionsLog_ConnectionRequest::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_ConnectionRequest::client_flow_id() const { +inline ::int64_t ConnectionsLog_ConnectionRequest::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_ConnectionRequest::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - client_flow_id_ = value; -} -inline void ConnectionsLog_ConnectionRequest::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_ConnectionRequest::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionRequest.client_flow_id) } +inline ::int64_t ConnectionsLog_ConnectionRequest::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_ConnectionRequest::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_ConnectionAttempt // optional int64 duration_millis = 1; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_ConnectionAttempt::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t ConnectionsLog_ConnectionAttempt::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_ConnectionAttempt::duration_millis() const { +inline ::int64_t ConnectionsLog_ConnectionAttempt::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000008u; - duration_millis_ = value; -} -inline void ConnectionsLog_ConnectionAttempt::set_duration_millis(int64_t value) { +inline void ConnectionsLog_ConnectionAttempt::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.duration_millis) } +inline ::int64_t ConnectionsLog_ConnectionAttempt::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.connections.ConnectionAttemptType type = 2; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_type() const { - return _internal_has_type(); -} inline void ConnectionsLog_ConnectionAttempt::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_ConnectionAttempt::_internal_type() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_ConnectionAttempt::type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.type) return _internal_type(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { - assert(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - type_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.type) } +inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_ConnectionAttempt::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptType>(_impl_.type_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptType_internal_data_)); + _impl_.type_ = value; +} // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 3; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_direction() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_direction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_direction() const { - return _internal_has_direction(); -} inline void ConnectionsLog_ConnectionAttempt::clear_direction() { - direction_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ConnectionAttempt::_internal_direction() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(direction_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.direction_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ConnectionAttempt::direction() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.direction) return _internal_direction(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { - assert(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - direction_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { _internal_set_direction(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.direction) } +inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ConnectionAttempt::_internal_direction() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(_impl_.direction_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptDirection_internal_data_)); + _impl_.direction_ = value; +} // optional .location.nearby.proto.connections.Medium medium = 4; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_medium() const { - return _internal_has_medium(); -} inline void ConnectionsLog_ConnectionAttempt::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_ConnectionAttempt::_internal_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_ConnectionAttempt::medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.medium) return _internal_medium(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - medium_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_medium(::location::nearby::proto::connections::Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_ConnectionAttempt::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.medium_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.medium_ = value; +} // optional .location.nearby.proto.connections.ConnectionAttemptResult attempt_result = 5; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_attempt_result() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_attempt_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_attempt_result() const { - return _internal_has_attempt_result(); -} inline void ConnectionsLog_ConnectionAttempt::clear_attempt_result() { - attempt_result_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptResult ConnectionsLog_ConnectionAttempt::_internal_attempt_result() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptResult >(attempt_result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.attempt_result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::connections::ConnectionAttemptResult ConnectionsLog_ConnectionAttempt::attempt_result() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.attempt_result) return _internal_attempt_result(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value) { - assert(::location::nearby::proto::connections::ConnectionAttemptResult_IsValid(value)); - _has_bits_[0] |= 0x00000080u; - attempt_result_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value) { _internal_set_attempt_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.attempt_result) } +inline ::location::nearby::proto::connections::ConnectionAttemptResult ConnectionsLog_ConnectionAttempt::_internal_attempt_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptResult>(_impl_.attempt_result_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_attempt_result(::location::nearby::proto::connections::ConnectionAttemptResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptResult_internal_data_)); + _impl_.attempt_result_ = value; +} // optional int64 client_flow_id = 6; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_ConnectionAttempt::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int64_t ConnectionsLog_ConnectionAttempt::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_ConnectionAttempt::client_flow_id() const { +inline ::int64_t ConnectionsLog_ConnectionAttempt::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000100u; - client_flow_id_ = value; -} -inline void ConnectionsLog_ConnectionAttempt::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_ConnectionAttempt::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.client_flow_id) } +inline ::int64_t ConnectionsLog_ConnectionAttempt::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional string connection_token = 7; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_connection_token() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_connection_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_connection_token() const { - return _internal_has_connection_token(); -} inline void ConnectionsLog_ConnectionAttempt::clear_connection_token() { - connection_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog_ConnectionAttempt::connection_token() const { +inline const ::std::string& ConnectionsLog_ConnectionAttempt::connection_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_token) return _internal_connection_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ConnectionAttempt::set_connection_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ConnectionAttempt::set_connection_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.connection_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_token) } -inline std::string* ConnectionsLog_ConnectionAttempt::mutable_connection_token() { - std::string* _s = _internal_mutable_connection_token(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::mutable_connection_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_connection_token(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_token) return _s; } -inline const std::string& ConnectionsLog_ConnectionAttempt::_internal_connection_token() const { - return connection_token_.Get(); +inline const ::std::string& ConnectionsLog_ConnectionAttempt::_internal_connection_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_token_.Get(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_connection_token(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ConnectionAttempt::_internal_set_connection_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttempt::_internal_mutable_connection_token() { - _has_bits_[0] |= 0x00000001u; - return connection_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::_internal_mutable_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_token_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttempt::release_connection_token() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttempt::release_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_token) - if (!_internal_has_connection_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = connection_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.connection_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ConnectionAttempt::set_allocated_connection_token(std::string* connection_token) { - if (connection_token != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_ConnectionAttempt::set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - connection_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_token_.IsDefault()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_token) } // optional .location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata connection_attempt_metadata = 8; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_connection_attempt_metadata() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || connection_attempt_metadata_ != nullptr); +inline bool ConnectionsLog_ConnectionAttempt::has_connection_attempt_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.connection_attempt_metadata_ != nullptr); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_connection_attempt_metadata() const { - return _internal_has_connection_attempt_metadata(); -} inline void ConnectionsLog_ConnectionAttempt::clear_connection_attempt_metadata() { - if (connection_attempt_metadata_ != nullptr) connection_attempt_metadata_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_attempt_metadata_ != nullptr) _impl_.connection_attempt_metadata_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& ConnectionsLog_ConnectionAttempt::_internal_connection_attempt_metadata() const { - const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* p = connection_attempt_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_ConnectionAttemptMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* p = _impl_.connection_attempt_metadata_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_ConnectionAttemptMetadata_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& ConnectionsLog_ConnectionAttempt::connection_attempt_metadata() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& ConnectionsLog_ConnectionAttempt::connection_attempt_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_attempt_metadata) return _internal_connection_attempt_metadata(); } inline void ConnectionsLog_ConnectionAttempt::unsafe_arena_set_allocated_connection_attempt_metadata( - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* connection_attempt_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_attempt_metadata_); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_attempt_metadata_); } - connection_attempt_metadata_ = connection_attempt_metadata; - if (connection_attempt_metadata) { - _has_bits_[0] |= 0x00000002u; + _impl_.connection_attempt_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_attempt_metadata) } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* ConnectionsLog_ConnectionAttempt::release_connection_attempt_metadata() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* temp = connection_attempt_metadata_; - connection_attempt_metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttempt::release_connection_attempt_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* released = _impl_.connection_attempt_metadata_; + _impl_.connection_attempt_metadata_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* ConnectionsLog_ConnectionAttempt::unsafe_arena_release_connection_attempt_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttempt::unsafe_arena_release_connection_attempt_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_attempt_metadata) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* temp = connection_attempt_metadata_; - connection_attempt_metadata_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* temp = _impl_.connection_attempt_metadata_; + _impl_.connection_attempt_metadata_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* ConnectionsLog_ConnectionAttempt::_internal_mutable_connection_attempt_metadata() { - _has_bits_[0] |= 0x00000002u; - if (connection_attempt_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>(GetArenaForAllocation()); - connection_attempt_metadata_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::_internal_mutable_connection_attempt_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_attempt_metadata_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>(GetArena()); + _impl_.connection_attempt_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata*>(p); } - return connection_attempt_metadata_; + return _impl_.connection_attempt_metadata_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* ConnectionsLog_ConnectionAttempt::mutable_connection_attempt_metadata() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::mutable_connection_attempt_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* _msg = _internal_mutable_connection_attempt_metadata(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_attempt_metadata) return _msg; } -inline void ConnectionsLog_ConnectionAttempt::set_allocated_connection_attempt_metadata(::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* connection_attempt_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_ConnectionAttempt::set_allocated_connection_attempt_metadata(::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete connection_attempt_metadata_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_attempt_metadata_); } - if (connection_attempt_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata>::GetOwningArena(connection_attempt_metadata); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - connection_attempt_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_attempt_metadata, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - connection_attempt_metadata_ = connection_attempt_metadata; + + _impl_.connection_attempt_metadata_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_attempt_metadata) } // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_operation_result() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || operation_result_ != nullptr); +inline bool ConnectionsLog_ConnectionAttempt::has_operation_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.operation_result_ != nullptr); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_operation_result() const { - return _internal_has_operation_result(); -} inline void ConnectionsLog_ConnectionAttempt::clear_operation_result() { - if (operation_result_ != nullptr) operation_result_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ != nullptr) _impl_.operation_result_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_ConnectionAttempt::_internal_operation_result() const { - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = operation_result_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = _impl_.operation_result_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_ConnectionAttempt::operation_result() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_ConnectionAttempt::operation_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.operation_result) return _internal_operation_result(); } inline void ConnectionsLog_ConnectionAttempt::unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operation_result_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - operation_result_ = operation_result; - if (operation_result) { - _has_bits_[0] |= 0x00000004u; + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.operation_result) } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_ConnectionAttempt::release_operation_result() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttempt::release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* released = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_ConnectionAttempt::unsafe_arena_release_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttempt::unsafe_arena_release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.operation_result) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_ConnectionAttempt::_internal_mutable_operation_result() { - _has_bits_[0] |= 0x00000004u; - if (operation_result_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArenaForAllocation()); - operation_result_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::_internal_mutable_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArena()); + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(p); } - return operation_result_; + return _impl_.operation_result_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_ConnectionAttempt::mutable_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttempt::mutable_operation_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _msg = _internal_mutable_operation_result(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.operation_result) return _msg; } -inline void ConnectionsLog_ConnectionAttempt::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_ConnectionAttempt::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete operation_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - if (operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>::GetOwningArena(operation_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - operation_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, operation_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - operation_result_ = operation_result; + + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.operation_result) } // optional .location.nearby.proto.connections.ConnectionMode connection_mode = 10; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_connection_mode() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_connection_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_connection_mode() const { - return _internal_has_connection_mode(); -} inline void ConnectionsLog_ConnectionAttempt::clear_connection_mode() { - connection_mode_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_ConnectionAttempt::_internal_connection_mode() const { - return static_cast< ::location::nearby::proto::connections::ConnectionMode >(connection_mode_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_ConnectionAttempt::connection_mode() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_mode) return _internal_connection_mode(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { - assert(::location::nearby::proto::connections::ConnectionMode_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - connection_mode_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { _internal_set_connection_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_mode) } +inline ::location::nearby::proto::connections::ConnectionMode ConnectionsLog_ConnectionAttempt::_internal_connection_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionMode>(_impl_.connection_mode_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_connection_mode(::location::nearby::proto::connections::ConnectionMode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionMode_internal_data_)); + _impl_.connection_mode_ = value; +} // optional .location.nearby.proto.connections.DeviceType device_type = 11; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionsLog_ConnectionAttempt::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000400u; -} -inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_ConnectionAttempt::_internal_device_type() const { - return static_cast< ::location::nearby::proto::connections::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_ConnectionAttempt::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.device_type) return _internal_device_type(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { - assert(::location::nearby::proto::connections::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000400u; - device_type_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_device_type(::location::nearby::proto::connections::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.device_type) } +inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_ConnectionAttempt::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DeviceType>(_impl_.device_type_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.connections.SupportedService supported_service = 12; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_supported_service() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_supported_service() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_supported_service() const { - return _internal_has_supported_service(); -} inline void ConnectionsLog_ConnectionAttempt::clear_supported_service() { - supported_service_ = 0; - _has_bits_[0] &= ~0x00002000u; -} -inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_ConnectionAttempt::_internal_supported_service() const { - return static_cast< ::location::nearby::proto::connections::SupportedService >(supported_service_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_service_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_ConnectionAttempt::supported_service() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.supported_service) return _internal_supported_service(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { - assert(::location::nearby::proto::connections::SupportedService_IsValid(value)); - _has_bits_[0] |= 0x00002000u; - supported_service_ = value; -} inline void ConnectionsLog_ConnectionAttempt::set_supported_service(::location::nearby::proto::connections::SupportedService value) { _internal_set_supported_service(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.supported_service) } +inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_ConnectionAttempt::_internal_supported_service() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::SupportedService>(_impl_.supported_service_); +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SupportedService_internal_data_)); + _impl_.supported_service_ = value; +} // optional int64 wifi_connection_latency_millis = 13; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_wifi_connection_latency_millis() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_wifi_connection_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_wifi_connection_latency_millis() const { - return _internal_has_wifi_connection_latency_millis(); -} inline void ConnectionsLog_ConnectionAttempt::clear_wifi_connection_latency_millis() { - wifi_connection_latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_connection_latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline int64_t ConnectionsLog_ConnectionAttempt::_internal_wifi_connection_latency_millis() const { - return wifi_connection_latency_millis_; -} -inline int64_t ConnectionsLog_ConnectionAttempt::wifi_connection_latency_millis() const { +inline ::int64_t ConnectionsLog_ConnectionAttempt::wifi_connection_latency_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.wifi_connection_latency_millis) return _internal_wifi_connection_latency_millis(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_wifi_connection_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00000800u; - wifi_connection_latency_millis_ = value; -} -inline void ConnectionsLog_ConnectionAttempt::set_wifi_connection_latency_millis(int64_t value) { +inline void ConnectionsLog_ConnectionAttempt::set_wifi_connection_latency_millis(::int64_t value) { _internal_set_wifi_connection_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.wifi_connection_latency_millis) } +inline ::int64_t ConnectionsLog_ConnectionAttempt::_internal_wifi_connection_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_connection_latency_millis_; +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_wifi_connection_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_connection_latency_millis_ = value; +} // optional int64 device_attestation_latency_millis = 14; -inline bool ConnectionsLog_ConnectionAttempt::_internal_has_device_attestation_latency_millis() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; +inline bool ConnectionsLog_ConnectionAttempt::has_device_attestation_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool ConnectionsLog_ConnectionAttempt::has_device_attestation_latency_millis() const { - return _internal_has_device_attestation_latency_millis(); -} inline void ConnectionsLog_ConnectionAttempt::clear_device_attestation_latency_millis() { - device_attestation_latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_attestation_latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } -inline int64_t ConnectionsLog_ConnectionAttempt::_internal_device_attestation_latency_millis() const { - return device_attestation_latency_millis_; -} -inline int64_t ConnectionsLog_ConnectionAttempt::device_attestation_latency_millis() const { +inline ::int64_t ConnectionsLog_ConnectionAttempt::device_attestation_latency_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.device_attestation_latency_millis) return _internal_device_attestation_latency_millis(); } -inline void ConnectionsLog_ConnectionAttempt::_internal_set_device_attestation_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00001000u; - device_attestation_latency_millis_ = value; -} -inline void ConnectionsLog_ConnectionAttempt::set_device_attestation_latency_millis(int64_t value) { +inline void ConnectionsLog_ConnectionAttempt::set_device_attestation_latency_millis(::int64_t value) { _internal_set_device_attestation_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.device_attestation_latency_millis) } +inline ::int64_t ConnectionsLog_ConnectionAttempt::_internal_device_attestation_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_attestation_latency_millis_; +} +inline void ConnectionsLog_ConnectionAttempt::_internal_set_device_attestation_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_attestation_latency_millis_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_DeviceInfo // optional string device_model = 1; -inline bool ConnectionsLog_DeviceInfo::_internal_has_device_model() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_DeviceInfo::has_device_model() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_DeviceInfo::has_device_model() const { - return _internal_has_device_model(); -} inline void ConnectionsLog_DeviceInfo::clear_device_model() { - device_model_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog_DeviceInfo::device_model() const { +inline const ::std::string& ConnectionsLog_DeviceInfo::device_model() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) return _internal_device_model(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_DeviceInfo::set_device_model(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_DeviceInfo::set_device_model(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.device_model_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) } -inline std::string* ConnectionsLog_DeviceInfo::mutable_device_model() { - std::string* _s = _internal_mutable_device_model(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::mutable_device_model() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_device_model(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) return _s; } -inline const std::string& ConnectionsLog_DeviceInfo::_internal_device_model() const { - return device_model_.Get(); +inline const ::std::string& ConnectionsLog_DeviceInfo::_internal_device_model() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_model_.Get(); } -inline void ConnectionsLog_DeviceInfo::_internal_set_device_model(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_DeviceInfo::_internal_set_device_model(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::_internal_mutable_device_model() { - _has_bits_[0] |= 0x00000001u; - return device_model_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::_internal_mutable_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_model_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::release_device_model() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_DeviceInfo::release_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) - if (!_internal_has_device_model()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = device_model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.device_model_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_model_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_DeviceInfo::set_allocated_device_model(std::string* device_model) { - if (device_model != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_DeviceInfo::set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - device_model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_model, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_model_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_.IsDefault()) { + _impl_.device_model_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) } // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; -inline bool ConnectionsLog_DeviceInfo::_internal_has_device_platform() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_DeviceInfo::has_device_platform() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_DeviceInfo::has_device_platform() const { - return _internal_has_device_platform(); -} inline void ConnectionsLog_DeviceInfo::clear_device_platform() { - device_platform_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::_internal_device_platform() const { - return static_cast< ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform >(device_platform_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_platform_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::device_platform() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_platform) return _internal_device_platform(); } -inline void ConnectionsLog_DeviceInfo::_internal_set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value) { - assert(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - device_platform_ = value; -} inline void ConnectionsLog_DeviceInfo::set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value) { _internal_set_device_platform(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_platform) } +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform ConnectionsLog_DeviceInfo::_internal_device_platform() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform>(_impl_.device_platform_); +} +inline void ConnectionsLog_DeviceInfo::_internal_set_device_platform(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform_internal_data_)); + _impl_.device_platform_ = value; +} // optional string country_code = 3; -inline bool ConnectionsLog_DeviceInfo::_internal_has_country_code() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DeviceInfo::has_country_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_DeviceInfo::has_country_code() const { - return _internal_has_country_code(); -} inline void ConnectionsLog_DeviceInfo::clear_country_code() { - country_code_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.country_code_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsLog_DeviceInfo::country_code() const { +inline const ::std::string& ConnectionsLog_DeviceInfo::country_code() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) return _internal_country_code(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_DeviceInfo::set_country_code(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_DeviceInfo::set_country_code(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.country_code_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) } -inline std::string* ConnectionsLog_DeviceInfo::mutable_country_code() { - std::string* _s = _internal_mutable_country_code(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::mutable_country_code() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_country_code(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) return _s; } -inline const std::string& ConnectionsLog_DeviceInfo::_internal_country_code() const { - return country_code_.Get(); +inline const ::std::string& ConnectionsLog_DeviceInfo::_internal_country_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.country_code_.Get(); } -inline void ConnectionsLog_DeviceInfo::_internal_set_country_code(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_DeviceInfo::_internal_set_country_code(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.country_code_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::_internal_mutable_country_code() { - _has_bits_[0] |= 0x00000002u; - return country_code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::_internal_mutable_country_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.country_code_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::release_country_code() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_DeviceInfo::release_country_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) - if (!_internal_has_country_code()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = country_code_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (country_code_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.country_code_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.country_code_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_DeviceInfo::set_allocated_country_code(std::string* country_code) { - if (country_code != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionsLog_DeviceInfo::set_allocated_country_code(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - country_code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), country_code, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (country_code_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.country_code_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.country_code_.IsDefault()) { + _impl_.country_code_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) } // optional string manufacturer = 4; -inline bool ConnectionsLog_DeviceInfo::_internal_has_manufacturer() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_DeviceInfo::has_manufacturer() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_DeviceInfo::has_manufacturer() const { - return _internal_has_manufacturer(); -} inline void ConnectionsLog_DeviceInfo::clear_manufacturer() { - manufacturer_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.manufacturer_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ConnectionsLog_DeviceInfo::manufacturer() const { +inline const ::std::string& ConnectionsLog_DeviceInfo::manufacturer() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) return _internal_manufacturer(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_DeviceInfo::set_manufacturer(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_DeviceInfo::set_manufacturer(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.manufacturer_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) } -inline std::string* ConnectionsLog_DeviceInfo::mutable_manufacturer() { - std::string* _s = _internal_mutable_manufacturer(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::mutable_manufacturer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_manufacturer(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) return _s; } -inline const std::string& ConnectionsLog_DeviceInfo::_internal_manufacturer() const { - return manufacturer_.Get(); +inline const ::std::string& ConnectionsLog_DeviceInfo::_internal_manufacturer() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.manufacturer_.Get(); } -inline void ConnectionsLog_DeviceInfo::_internal_set_manufacturer(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_DeviceInfo::_internal_set_manufacturer(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.manufacturer_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::_internal_mutable_manufacturer() { - _has_bits_[0] |= 0x00000004u; - return manufacturer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_DeviceInfo::_internal_mutable_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.manufacturer_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_DeviceInfo::release_manufacturer() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_DeviceInfo::release_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) - if (!_internal_has_manufacturer()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = manufacturer_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (manufacturer_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.manufacturer_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.manufacturer_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_DeviceInfo::set_allocated_manufacturer(std::string* manufacturer) { - if (manufacturer != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void ConnectionsLog_DeviceInfo::set_allocated_manufacturer(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - manufacturer_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), manufacturer, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (manufacturer_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.manufacturer_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.manufacturer_.IsDefault()) { + _impl_.manufacturer_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) } @@ -9049,1267 +9963,1387 @@ inline void ConnectionsLog_DeviceInfo::set_allocated_manufacturer(std::string* m // ConnectionsLog_DisconnectionReasonDetail // optional bool is_local_disconnection = 1; -inline bool ConnectionsLog_DisconnectionReasonDetail::_internal_has_is_local_disconnection() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_DisconnectionReasonDetail::has_is_local_disconnection() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_DisconnectionReasonDetail::has_is_local_disconnection() const { - return _internal_has_is_local_disconnection(); -} inline void ConnectionsLog_DisconnectionReasonDetail::clear_is_local_disconnection() { - is_local_disconnection_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool ConnectionsLog_DisconnectionReasonDetail::_internal_is_local_disconnection() const { - return is_local_disconnection_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_local_disconnection_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool ConnectionsLog_DisconnectionReasonDetail::is_local_disconnection() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.is_local_disconnection) return _internal_is_local_disconnection(); } -inline void ConnectionsLog_DisconnectionReasonDetail::_internal_set_is_local_disconnection(bool value) { - _has_bits_[0] |= 0x00000001u; - is_local_disconnection_ = value; -} inline void ConnectionsLog_DisconnectionReasonDetail::set_is_local_disconnection(bool value) { _internal_set_is_local_disconnection(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.is_local_disconnection) } +inline bool ConnectionsLog_DisconnectionReasonDetail::_internal_is_local_disconnection() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_local_disconnection_; +} +inline void ConnectionsLog_DisconnectionReasonDetail::_internal_set_is_local_disconnection(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_local_disconnection_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; -inline bool ConnectionsLog_DisconnectionReasonDetail::_internal_has_disconnection_reason() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DisconnectionReasonDetail::has_disconnection_reason() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_DisconnectionReasonDetail::has_disconnection_reason() const { - return _internal_has_disconnection_reason(); -} inline void ConnectionsLog_DisconnectionReasonDetail::clear_disconnection_reason() { - disconnection_reason_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::_internal_disconnection_reason() const { - return static_cast< ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason >(disconnection_reason_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.disconnection_reason_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::disconnection_reason() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.disconnection_reason) return _internal_disconnection_reason(); } -inline void ConnectionsLog_DisconnectionReasonDetail::_internal_set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value) { - assert(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - disconnection_reason_ = value; -} inline void ConnectionsLog_DisconnectionReasonDetail::set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value) { _internal_set_disconnection_reason(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.disconnection_reason) } +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason ConnectionsLog_DisconnectionReasonDetail::_internal_disconnection_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason>(_impl_.disconnection_reason_); +} +inline void ConnectionsLog_DisconnectionReasonDetail::_internal_set_disconnection_reason(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_internal_data_)); + _impl_.disconnection_reason_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_EstablishedConnection // optional int64 duration_millis = 1; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_EstablishedConnection::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t ConnectionsLog_EstablishedConnection::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_EstablishedConnection::duration_millis() const { +inline ::int64_t ConnectionsLog_EstablishedConnection::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000010u; - duration_millis_ = value; -} -inline void ConnectionsLog_EstablishedConnection::set_duration_millis(int64_t value) { +inline void ConnectionsLog_EstablishedConnection::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.duration_millis) } +inline ::int64_t ConnectionsLog_EstablishedConnection::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.connections.Medium medium = 2; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_medium() const { - return _internal_has_medium(); -} inline void ConnectionsLog_EstablishedConnection::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_EstablishedConnection::_internal_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_EstablishedConnection::medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.medium) return _internal_medium(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - medium_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_medium(::location::nearby::proto::connections::Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_EstablishedConnection::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.medium_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.medium_ = value; +} // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; inline int ConnectionsLog_EstablishedConnection::_internal_sent_payload_size() const { - return sent_payload_.size(); + return _internal_sent_payload().size(); } inline int ConnectionsLog_EstablishedConnection::sent_payload_size() const { return _internal_sent_payload_size(); } inline void ConnectionsLog_EstablishedConnection::clear_sent_payload() { - sent_payload_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sent_payload_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::mutable_sent_payload(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_sent_payload(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.sent_payload) - return sent_payload_.Mutable(index); + return _internal_mutable_sent_payload()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >* -ConnectionsLog_EstablishedConnection::mutable_sent_payload() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_sent_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.sent_payload) - return &sent_payload_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_sent_payload(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::_internal_sent_payload(int index) const { - return sent_payload_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::sent_payload(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::sent_payload(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.sent_payload) - return _internal_sent_payload(index); + return _internal_sent_payload().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::_internal_add_sent_payload() { - return sent_payload_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::add_sent_payload() { - ::location::nearby::analytics::proto::ConnectionsLog_Payload* _add = _internal_add_sent_payload(); +inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::add_sent_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_Payload* _add = + _internal_mutable_sent_payload()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.sent_payload) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >& -ConnectionsLog_EstablishedConnection::sent_payload() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& ConnectionsLog_EstablishedConnection::sent_payload() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.sent_payload) - return sent_payload_; + return _internal_sent_payload(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& +ConnectionsLog_EstablishedConnection::_internal_sent_payload() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sent_payload_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL +ConnectionsLog_EstablishedConnection::_internal_mutable_sent_payload() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.sent_payload_; } // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload received_payload = 4; inline int ConnectionsLog_EstablishedConnection::_internal_received_payload_size() const { - return received_payload_.size(); + return _internal_received_payload().size(); } inline int ConnectionsLog_EstablishedConnection::received_payload_size() const { return _internal_received_payload_size(); } inline void ConnectionsLog_EstablishedConnection::clear_received_payload() { - received_payload_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_payload_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::mutable_received_payload(int index) { +inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_received_payload(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.received_payload) - return received_payload_.Mutable(index); + return _internal_mutable_received_payload()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >* -ConnectionsLog_EstablishedConnection::mutable_received_payload() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_received_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.received_payload) - return &received_payload_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_received_payload(); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::_internal_received_payload(int index) const { - return received_payload_.Get(index); -} -inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::received_payload(int index) const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_Payload& ConnectionsLog_EstablishedConnection::received_payload(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.received_payload) - return _internal_received_payload(index); + return _internal_received_payload().Get(index); } -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::_internal_add_received_payload() { - return received_payload_.Add(); -} -inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* ConnectionsLog_EstablishedConnection::add_received_payload() { - ::location::nearby::analytics::proto::ConnectionsLog_Payload* _add = _internal_add_received_payload(); +inline ::location::nearby::analytics::proto::ConnectionsLog_Payload* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::add_received_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::analytics::proto::ConnectionsLog_Payload* _add = + _internal_mutable_received_payload()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.received_payload) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::analytics::proto::ConnectionsLog_Payload >& -ConnectionsLog_EstablishedConnection::received_payload() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& ConnectionsLog_EstablishedConnection::received_payload() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.received_payload) - return received_payload_; + return _internal_received_payload(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>& +ConnectionsLog_EstablishedConnection::_internal_received_payload() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.received_payload_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::analytics::proto::ConnectionsLog_Payload>* PROTOBUF_NONNULL +ConnectionsLog_EstablishedConnection::_internal_mutable_received_payload() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.received_payload_; } // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_disconnection_reason() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason() const { - return _internal_has_disconnection_reason(); -} inline void ConnectionsLog_EstablishedConnection::clear_disconnection_reason() { - disconnection_reason_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::connections::DisconnectionReason ConnectionsLog_EstablishedConnection::_internal_disconnection_reason() const { - return static_cast< ::location::nearby::proto::connections::DisconnectionReason >(disconnection_reason_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.disconnection_reason_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::connections::DisconnectionReason ConnectionsLog_EstablishedConnection::disconnection_reason() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason) return _internal_disconnection_reason(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value) { - assert(::location::nearby::proto::connections::DisconnectionReason_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - disconnection_reason_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value) { _internal_set_disconnection_reason(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason) } +inline ::location::nearby::proto::connections::DisconnectionReason ConnectionsLog_EstablishedConnection::_internal_disconnection_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DisconnectionReason>(_impl_.disconnection_reason_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DisconnectionReason_internal_data_)); + _impl_.disconnection_reason_ = value; +} // optional int64 client_flow_id = 6; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_EstablishedConnection::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int64_t ConnectionsLog_EstablishedConnection::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_EstablishedConnection::client_flow_id() const { +inline ::int64_t ConnectionsLog_EstablishedConnection::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000080u; - client_flow_id_ = value; -} -inline void ConnectionsLog_EstablishedConnection::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_EstablishedConnection::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.client_flow_id) } +inline ::int64_t ConnectionsLog_EstablishedConnection::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional string connection_token = 7; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_connection_token() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_connection_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_connection_token() const { - return _internal_has_connection_token(); -} inline void ConnectionsLog_EstablishedConnection::clear_connection_token() { - connection_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ConnectionsLog_EstablishedConnection::connection_token() const { +inline const ::std::string& ConnectionsLog_EstablishedConnection::connection_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) return _internal_connection_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_EstablishedConnection::set_connection_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_EstablishedConnection::set_connection_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.connection_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) } -inline std::string* ConnectionsLog_EstablishedConnection::mutable_connection_token() { - std::string* _s = _internal_mutable_connection_token(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_connection_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_connection_token(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) return _s; } -inline const std::string& ConnectionsLog_EstablishedConnection::_internal_connection_token() const { - return connection_token_.Get(); +inline const ::std::string& ConnectionsLog_EstablishedConnection::_internal_connection_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_token_.Get(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_connection_token(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_EstablishedConnection::_internal_set_connection_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_EstablishedConnection::_internal_mutable_connection_token() { - _has_bits_[0] |= 0x00000001u; - return connection_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_internal_mutable_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_token_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_EstablishedConnection::release_connection_token() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::release_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) - if (!_internal_has_connection_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = connection_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.connection_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_EstablishedConnection::set_allocated_connection_token(std::string* connection_token) { - if (connection_token != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_EstablishedConnection::set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - connection_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_token_.IsDefault()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) } // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_type() const { - return _internal_has_type(); -} inline void ConnectionsLog_EstablishedConnection::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::_internal_type() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.type) return _internal_type(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { - assert(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(value)); - _has_bits_[0] |= 0x00000100u; - type_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.type) } +inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptType>(_impl_.type_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptType_internal_data_)); + _impl_.type_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_safe_disconnection_result() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_safe_disconnection_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_safe_disconnection_result() const { - return _internal_has_safe_disconnection_result(); -} inline void ConnectionsLog_EstablishedConnection::clear_safe_disconnection_result() { - safe_disconnection_result_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::_internal_safe_disconnection_result() const { - return static_cast< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult >(safe_disconnection_result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.safe_disconnection_result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::safe_disconnection_result() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.safe_disconnection_result) return _internal_safe_disconnection_result(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { - assert(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - safe_disconnection_result_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { _internal_set_safe_disconnection_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.safe_disconnection_result) } +inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::_internal_safe_disconnection_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult>(_impl_.safe_disconnection_result_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_internal_data_)); + _impl_.safe_disconnection_result_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 10; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_operation_result() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || operation_result_ != nullptr); +inline bool ConnectionsLog_EstablishedConnection::has_operation_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.operation_result_ != nullptr); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_operation_result() const { - return _internal_has_operation_result(); -} inline void ConnectionsLog_EstablishedConnection::clear_operation_result() { - if (operation_result_ != nullptr) operation_result_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ != nullptr) _impl_.operation_result_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_EstablishedConnection::_internal_operation_result() const { - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = operation_result_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = _impl_.operation_result_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_EstablishedConnection::operation_result() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_EstablishedConnection::operation_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.operation_result) return _internal_operation_result(); } inline void ConnectionsLog_EstablishedConnection::unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operation_result_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - operation_result_ = operation_result; - if (operation_result) { - _has_bits_[0] |= 0x00000002u; + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.operation_result) } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_EstablishedConnection::release_operation_result() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* released = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_EstablishedConnection::unsafe_arena_release_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::unsafe_arena_release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.operation_result) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_EstablishedConnection::_internal_mutable_operation_result() { - _has_bits_[0] |= 0x00000002u; - if (operation_result_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArenaForAllocation()); - operation_result_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_internal_mutable_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArena()); + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(p); } - return operation_result_; + return _impl_.operation_result_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_EstablishedConnection::mutable_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_operation_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _msg = _internal_mutable_operation_result(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.operation_result) return _msg; } -inline void ConnectionsLog_EstablishedConnection::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_EstablishedConnection::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete operation_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - if (operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>::GetOwningArena(operation_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - operation_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, operation_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - operation_result_ = operation_result; + + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.operation_result) } // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_remote_device_info() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || remote_device_info_ != nullptr); +inline bool ConnectionsLog_EstablishedConnection::has_remote_device_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.remote_device_info_ != nullptr); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_remote_device_info() const { - return _internal_has_remote_device_info(); -} inline void ConnectionsLog_EstablishedConnection::clear_remote_device_info() { - if (remote_device_info_ != nullptr) remote_device_info_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remote_device_info_ != nullptr) _impl_.remote_device_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& ConnectionsLog_EstablishedConnection::_internal_remote_device_info() const { - const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* p = remote_device_info_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_DeviceInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* p = _impl_.remote_device_info_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_DeviceInfo_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& ConnectionsLog_EstablishedConnection::remote_device_info() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& ConnectionsLog_EstablishedConnection::remote_device_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.remote_device_info) return _internal_remote_device_info(); } inline void ConnectionsLog_EstablishedConnection::unsafe_arena_set_allocated_remote_device_info( - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* remote_device_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(remote_device_info_); + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remote_device_info_); } - remote_device_info_ = remote_device_info; - if (remote_device_info) { - _has_bits_[0] |= 0x00000004u; + _impl_.remote_device_info_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.remote_device_info) } -inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::release_remote_device_info() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* temp = remote_device_info_; - remote_device_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::release_remote_device_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* released = _impl_.remote_device_info_; + _impl_.remote_device_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::unsafe_arena_release_remote_device_info() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::unsafe_arena_release_remote_device_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.remote_device_info) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* temp = remote_device_info_; - remote_device_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* temp = _impl_.remote_device_info_; + _impl_.remote_device_info_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::_internal_mutable_remote_device_info() { - _has_bits_[0] |= 0x00000004u; - if (remote_device_info_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>(GetArenaForAllocation()); - remote_device_info_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_internal_mutable_remote_device_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remote_device_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>(GetArena()); + _impl_.remote_device_info_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo*>(p); } - return remote_device_info_; + return _impl_.remote_device_info_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::mutable_remote_device_info() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_remote_device_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* _msg = _internal_mutable_remote_device_info(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.remote_device_info) return _msg; } -inline void ConnectionsLog_EstablishedConnection::set_allocated_remote_device_info(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* remote_device_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_EstablishedConnection::set_allocated_remote_device_info(::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete remote_device_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remote_device_info_); } - if (remote_device_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo>::GetOwningArena(remote_device_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - remote_device_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remote_device_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - remote_device_info_ = remote_device_info; + + _impl_.remote_device_info_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.remote_device_info) } // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_disconnection_reason_detail() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || disconnection_reason_detail_ != nullptr); +inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason_detail() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.disconnection_reason_detail_ != nullptr); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason_detail() const { - return _internal_has_disconnection_reason_detail(); -} inline void ConnectionsLog_EstablishedConnection::clear_disconnection_reason_detail() { - if (disconnection_reason_detail_ != nullptr) disconnection_reason_detail_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_reason_detail_ != nullptr) _impl_.disconnection_reason_detail_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& ConnectionsLog_EstablishedConnection::_internal_disconnection_reason_detail() const { - const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* p = disconnection_reason_detail_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_DisconnectionReasonDetail_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* p = _impl_.disconnection_reason_detail_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_DisconnectionReasonDetail_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& ConnectionsLog_EstablishedConnection::disconnection_reason_detail() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& ConnectionsLog_EstablishedConnection::disconnection_reason_detail() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason_detail) return _internal_disconnection_reason_detail(); } inline void ConnectionsLog_EstablishedConnection::unsafe_arena_set_allocated_disconnection_reason_detail( - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* disconnection_reason_detail) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(disconnection_reason_detail_); + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_reason_detail_); } - disconnection_reason_detail_ = disconnection_reason_detail; - if (disconnection_reason_detail) { - _has_bits_[0] |= 0x00000008u; + _impl_.disconnection_reason_detail_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason_detail) } -inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::release_disconnection_reason_detail() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* temp = disconnection_reason_detail_; - disconnection_reason_detail_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::release_disconnection_reason_detail() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* released = _impl_.disconnection_reason_detail_; + _impl_.disconnection_reason_detail_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::unsafe_arena_release_disconnection_reason_detail() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE ConnectionsLog_EstablishedConnection::unsafe_arena_release_disconnection_reason_detail() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason_detail) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* temp = disconnection_reason_detail_; - disconnection_reason_detail_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* temp = _impl_.disconnection_reason_detail_; + _impl_.disconnection_reason_detail_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::_internal_mutable_disconnection_reason_detail() { - _has_bits_[0] |= 0x00000008u; - if (disconnection_reason_detail_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>(GetArenaForAllocation()); - disconnection_reason_detail_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::_internal_mutable_disconnection_reason_detail() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_reason_detail_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>(GetArena()); + _impl_.disconnection_reason_detail_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail*>(p); } - return disconnection_reason_detail_; + return _impl_.disconnection_reason_detail_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::mutable_disconnection_reason_detail() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NONNULL ConnectionsLog_EstablishedConnection::mutable_disconnection_reason_detail() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* _msg = _internal_mutable_disconnection_reason_detail(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason_detail) return _msg; } -inline void ConnectionsLog_EstablishedConnection::set_allocated_disconnection_reason_detail(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* disconnection_reason_detail) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_EstablishedConnection::set_allocated_disconnection_reason_detail(::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete disconnection_reason_detail_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_reason_detail_); } - if (disconnection_reason_detail) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail>::GetOwningArena(disconnection_reason_detail); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - disconnection_reason_detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, disconnection_reason_detail, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - disconnection_reason_detail_ = disconnection_reason_detail; + + _impl_.disconnection_reason_detail_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.disconnection_reason_detail) } // optional .location.nearby.proto.connections.DeviceType device_type = 13; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionsLog_EstablishedConnection::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000400u; -} -inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_EstablishedConnection::_internal_device_type() const { - return static_cast< ::location::nearby::proto::connections::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_EstablishedConnection::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.device_type) return _internal_device_type(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { - assert(::location::nearby::proto::connections::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000400u; - device_type_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_device_type(::location::nearby::proto::connections::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.device_type) } +inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_EstablishedConnection::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DeviceType>(_impl_.device_type_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.connections.SupportedService supported_service = 14; -inline bool ConnectionsLog_EstablishedConnection::_internal_has_supported_service() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool ConnectionsLog_EstablishedConnection::has_supported_service() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); return value; } -inline bool ConnectionsLog_EstablishedConnection::has_supported_service() const { - return _internal_has_supported_service(); -} inline void ConnectionsLog_EstablishedConnection::clear_supported_service() { - supported_service_ = 0; - _has_bits_[0] &= ~0x00000800u; -} -inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_EstablishedConnection::_internal_supported_service() const { - return static_cast< ::location::nearby::proto::connections::SupportedService >(supported_service_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_service_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_EstablishedConnection::supported_service() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.supported_service) return _internal_supported_service(); } -inline void ConnectionsLog_EstablishedConnection::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { - assert(::location::nearby::proto::connections::SupportedService_IsValid(value)); - _has_bits_[0] |= 0x00000800u; - supported_service_ = value; -} inline void ConnectionsLog_EstablishedConnection::set_supported_service(::location::nearby::proto::connections::SupportedService value) { _internal_set_supported_service(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.supported_service) } +inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_EstablishedConnection::_internal_supported_service() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::SupportedService>(_impl_.supported_service_); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SupportedService_internal_data_)); + _impl_.supported_service_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_DctPayloadTransferStats // optional .location.nearby.proto.connections.DctPayloadType type = 1; -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_DctPayloadTransferStats::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_DctPayloadTransferStats::has_type() const { - return _internal_has_type(); -} inline void ConnectionsLog_DctPayloadTransferStats::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::connections::DctPayloadType ConnectionsLog_DctPayloadTransferStats::_internal_type() const { - return static_cast< ::location::nearby::proto::connections::DctPayloadType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::connections::DctPayloadType ConnectionsLog_DctPayloadTransferStats::type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.type) return _internal_type(); } -inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_type(::location::nearby::proto::connections::DctPayloadType value) { - assert(::location::nearby::proto::connections::DctPayloadType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - type_ = value; -} inline void ConnectionsLog_DctPayloadTransferStats::set_type(::location::nearby::proto::connections::DctPayloadType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.type) } +inline ::location::nearby::proto::connections::DctPayloadType ConnectionsLog_DctPayloadTransferStats::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DctPayloadType>(_impl_.type_); +} +inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_type(::location::nearby::proto::connections::DctPayloadType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DctPayloadType_internal_data_)); + _impl_.type_ = value; +} // optional bool is_multipart = 2; -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_has_is_multipart() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_DctPayloadTransferStats::has_is_multipart() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_DctPayloadTransferStats::has_is_multipart() const { - return _internal_has_is_multipart(); -} inline void ConnectionsLog_DctPayloadTransferStats::clear_is_multipart() { - is_multipart_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_is_multipart() const { - return is_multipart_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_multipart_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ConnectionsLog_DctPayloadTransferStats::is_multipart() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.is_multipart) return _internal_is_multipart(); } -inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_is_multipart(bool value) { - _has_bits_[0] |= 0x00000004u; - is_multipart_ = value; -} inline void ConnectionsLog_DctPayloadTransferStats::set_is_multipart(bool value) { _internal_set_is_multipart(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.is_multipart) } +inline bool ConnectionsLog_DctPayloadTransferStats::_internal_is_multipart() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_multipart_; +} +inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_is_multipart(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_multipart_ = value; +} // optional int32 num_parts_success = 3; -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_has_num_parts_success() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DctPayloadTransferStats::has_num_parts_success() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_DctPayloadTransferStats::has_num_parts_success() const { - return _internal_has_num_parts_success(); -} inline void ConnectionsLog_DctPayloadTransferStats::clear_num_parts_success() { - num_parts_success_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_parts_success_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t ConnectionsLog_DctPayloadTransferStats::_internal_num_parts_success() const { - return num_parts_success_; -} -inline int32_t ConnectionsLog_DctPayloadTransferStats::num_parts_success() const { +inline ::int32_t ConnectionsLog_DctPayloadTransferStats::num_parts_success() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.num_parts_success) return _internal_num_parts_success(); } -inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_num_parts_success(int32_t value) { - _has_bits_[0] |= 0x00000002u; - num_parts_success_ = value; -} -inline void ConnectionsLog_DctPayloadTransferStats::set_num_parts_success(int32_t value) { +inline void ConnectionsLog_DctPayloadTransferStats::set_num_parts_success(::int32_t value) { _internal_set_num_parts_success(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.num_parts_success) } +inline ::int32_t ConnectionsLog_DctPayloadTransferStats::_internal_num_parts_success() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_parts_success_; +} +inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_num_parts_success(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_parts_success_ = value; +} // optional int32 num_parts_failure = 4; -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_has_num_parts_failure() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_DctPayloadTransferStats::has_num_parts_failure() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_DctPayloadTransferStats::has_num_parts_failure() const { - return _internal_has_num_parts_failure(); -} inline void ConnectionsLog_DctPayloadTransferStats::clear_num_parts_failure() { - num_parts_failure_ = 0; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_parts_failure_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t ConnectionsLog_DctPayloadTransferStats::_internal_num_parts_failure() const { - return num_parts_failure_; -} -inline int32_t ConnectionsLog_DctPayloadTransferStats::num_parts_failure() const { +inline ::int32_t ConnectionsLog_DctPayloadTransferStats::num_parts_failure() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.num_parts_failure) return _internal_num_parts_failure(); } -inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_num_parts_failure(int32_t value) { - _has_bits_[0] |= 0x00000010u; - num_parts_failure_ = value; -} -inline void ConnectionsLog_DctPayloadTransferStats::set_num_parts_failure(int32_t value) { +inline void ConnectionsLog_DctPayloadTransferStats::set_num_parts_failure(::int32_t value) { _internal_set_num_parts_failure(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.num_parts_failure) } +inline ::int32_t ConnectionsLog_DctPayloadTransferStats::_internal_num_parts_failure() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_parts_failure_; +} +inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_num_parts_failure(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_parts_failure_ = value; +} // optional bool is_resumption = 5; -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_has_is_resumption() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_DctPayloadTransferStats::has_is_resumption() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_DctPayloadTransferStats::has_is_resumption() const { - return _internal_has_is_resumption(); -} inline void ConnectionsLog_DctPayloadTransferStats::clear_is_resumption() { - is_resumption_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool ConnectionsLog_DctPayloadTransferStats::_internal_is_resumption() const { - return is_resumption_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_resumption_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool ConnectionsLog_DctPayloadTransferStats::is_resumption() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.is_resumption) return _internal_is_resumption(); } -inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_is_resumption(bool value) { - _has_bits_[0] |= 0x00000008u; - is_resumption_ = value; -} inline void ConnectionsLog_DctPayloadTransferStats::set_is_resumption(bool value) { _internal_set_is_resumption(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats.is_resumption) } +inline bool ConnectionsLog_DctPayloadTransferStats::_internal_is_resumption() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_resumption_; +} +inline void ConnectionsLog_DctPayloadTransferStats::_internal_set_is_resumption(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_resumption_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_Payload // optional int64 duration_millis = 1; -inline bool ConnectionsLog_Payload::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_Payload::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_Payload::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_Payload::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t ConnectionsLog_Payload::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_Payload::duration_millis() const { +inline ::int64_t ConnectionsLog_Payload::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_Payload::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - duration_millis_ = value; -} -inline void ConnectionsLog_Payload::set_duration_millis(int64_t value) { +inline void ConnectionsLog_Payload::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.duration_millis) } +inline ::int64_t ConnectionsLog_Payload::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_Payload::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.connections.PayloadType type = 2; -inline bool ConnectionsLog_Payload::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_Payload::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_Payload::has_type() const { - return _internal_has_type(); -} inline void ConnectionsLog_Payload::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::PayloadType ConnectionsLog_Payload::_internal_type() const { - return static_cast< ::location::nearby::proto::connections::PayloadType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::connections::PayloadType ConnectionsLog_Payload::type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.type) return _internal_type(); } -inline void ConnectionsLog_Payload::_internal_set_type(::location::nearby::proto::connections::PayloadType value) { - assert(::location::nearby::proto::connections::PayloadType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - type_ = value; -} inline void ConnectionsLog_Payload::set_type(::location::nearby::proto::connections::PayloadType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.type) } +inline ::location::nearby::proto::connections::PayloadType ConnectionsLog_Payload::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::PayloadType>(_impl_.type_); +} +inline void ConnectionsLog_Payload::_internal_set_type(::location::nearby::proto::connections::PayloadType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::PayloadType_internal_data_)); + _impl_.type_ = value; +} // optional int64 total_size_bytes = 3; -inline bool ConnectionsLog_Payload::_internal_has_total_size_bytes() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_Payload::has_total_size_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_Payload::has_total_size_bytes() const { - return _internal_has_total_size_bytes(); -} inline void ConnectionsLog_Payload::clear_total_size_bytes() { - total_size_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_size_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t ConnectionsLog_Payload::_internal_total_size_bytes() const { - return total_size_bytes_; -} -inline int64_t ConnectionsLog_Payload::total_size_bytes() const { +inline ::int64_t ConnectionsLog_Payload::total_size_bytes() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.total_size_bytes) return _internal_total_size_bytes(); } -inline void ConnectionsLog_Payload::_internal_set_total_size_bytes(int64_t value) { - _has_bits_[0] |= 0x00000008u; - total_size_bytes_ = value; -} -inline void ConnectionsLog_Payload::set_total_size_bytes(int64_t value) { +inline void ConnectionsLog_Payload::set_total_size_bytes(::int64_t value) { _internal_set_total_size_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.total_size_bytes) } +inline ::int64_t ConnectionsLog_Payload::_internal_total_size_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.total_size_bytes_; +} +inline void ConnectionsLog_Payload::_internal_set_total_size_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_size_bytes_ = value; +} // optional int64 num_bytes_transferred = 4; -inline bool ConnectionsLog_Payload::_internal_has_num_bytes_transferred() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_Payload::has_num_bytes_transferred() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_Payload::has_num_bytes_transferred() const { - return _internal_has_num_bytes_transferred(); -} inline void ConnectionsLog_Payload::clear_num_bytes_transferred() { - num_bytes_transferred_ = int64_t{0}; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_bytes_transferred_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t ConnectionsLog_Payload::_internal_num_bytes_transferred() const { - return num_bytes_transferred_; -} -inline int64_t ConnectionsLog_Payload::num_bytes_transferred() const { +inline ::int64_t ConnectionsLog_Payload::num_bytes_transferred() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.num_bytes_transferred) return _internal_num_bytes_transferred(); } -inline void ConnectionsLog_Payload::_internal_set_num_bytes_transferred(int64_t value) { - _has_bits_[0] |= 0x00000040u; - num_bytes_transferred_ = value; -} -inline void ConnectionsLog_Payload::set_num_bytes_transferred(int64_t value) { +inline void ConnectionsLog_Payload::set_num_bytes_transferred(::int64_t value) { _internal_set_num_bytes_transferred(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.num_bytes_transferred) } +inline ::int64_t ConnectionsLog_Payload::_internal_num_bytes_transferred() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_bytes_transferred_; +} +inline void ConnectionsLog_Payload::_internal_set_num_bytes_transferred(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_bytes_transferred_ = value; +} // optional int32 num_chunks = 5; -inline bool ConnectionsLog_Payload::_internal_has_num_chunks() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_Payload::has_num_chunks() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_Payload::has_num_chunks() const { - return _internal_has_num_chunks(); -} inline void ConnectionsLog_Payload::clear_num_chunks() { - num_chunks_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_chunks_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t ConnectionsLog_Payload::_internal_num_chunks() const { - return num_chunks_; -} -inline int32_t ConnectionsLog_Payload::num_chunks() const { +inline ::int32_t ConnectionsLog_Payload::num_chunks() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.num_chunks) return _internal_num_chunks(); } -inline void ConnectionsLog_Payload::_internal_set_num_chunks(int32_t value) { - _has_bits_[0] |= 0x00000020u; - num_chunks_ = value; -} -inline void ConnectionsLog_Payload::set_num_chunks(int32_t value) { +inline void ConnectionsLog_Payload::set_num_chunks(::int32_t value) { _internal_set_num_chunks(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.num_chunks) } +inline ::int32_t ConnectionsLog_Payload::_internal_num_chunks() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_chunks_; +} +inline void ConnectionsLog_Payload::_internal_set_num_chunks(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_chunks_ = value; +} // optional .location.nearby.proto.connections.PayloadStatus status = 6; -inline bool ConnectionsLog_Payload::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_Payload::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_Payload::has_status() const { - return _internal_has_status(); -} inline void ConnectionsLog_Payload::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline ::location::nearby::proto::connections::PayloadStatus ConnectionsLog_Payload::_internal_status() const { - return static_cast< ::location::nearby::proto::connections::PayloadStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::connections::PayloadStatus ConnectionsLog_Payload::status() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.status) return _internal_status(); } -inline void ConnectionsLog_Payload::_internal_set_status(::location::nearby::proto::connections::PayloadStatus value) { - assert(::location::nearby::proto::connections::PayloadStatus_IsValid(value)); - _has_bits_[0] |= 0x00000080u; - status_ = value; -} inline void ConnectionsLog_Payload::set_status(::location::nearby::proto::connections::PayloadStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.status) } +inline ::location::nearby::proto::connections::PayloadStatus ConnectionsLog_Payload::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::PayloadStatus>(_impl_.status_); +} +inline void ConnectionsLog_Payload::_internal_set_status(::location::nearby::proto::connections::PayloadStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::PayloadStatus_internal_data_)); + _impl_.status_ = value; +} // optional int32 num_successful_auto_resume = 7; -inline bool ConnectionsLog_Payload::_internal_has_num_successful_auto_resume() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_Payload::has_num_successful_auto_resume() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_Payload::has_num_successful_auto_resume() const { - return _internal_has_num_successful_auto_resume(); -} inline void ConnectionsLog_Payload::clear_num_successful_auto_resume() { - num_successful_auto_resume_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_successful_auto_resume_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t ConnectionsLog_Payload::_internal_num_successful_auto_resume() const { - return num_successful_auto_resume_; -} -inline int32_t ConnectionsLog_Payload::num_successful_auto_resume() const { +inline ::int32_t ConnectionsLog_Payload::num_successful_auto_resume() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.num_successful_auto_resume) return _internal_num_successful_auto_resume(); } -inline void ConnectionsLog_Payload::_internal_set_num_successful_auto_resume(int32_t value) { - _has_bits_[0] |= 0x00000100u; - num_successful_auto_resume_ = value; -} -inline void ConnectionsLog_Payload::set_num_successful_auto_resume(int32_t value) { +inline void ConnectionsLog_Payload::set_num_successful_auto_resume(::int32_t value) { _internal_set_num_successful_auto_resume(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.num_successful_auto_resume) } +inline ::int32_t ConnectionsLog_Payload::_internal_num_successful_auto_resume() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_successful_auto_resume_; +} +inline void ConnectionsLog_Payload::_internal_set_num_successful_auto_resume(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_successful_auto_resume_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 8; -inline bool ConnectionsLog_Payload::_internal_has_operation_result() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || operation_result_ != nullptr); +inline bool ConnectionsLog_Payload::has_operation_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.operation_result_ != nullptr); return value; } -inline bool ConnectionsLog_Payload::has_operation_result() const { - return _internal_has_operation_result(); -} inline void ConnectionsLog_Payload::clear_operation_result() { - if (operation_result_ != nullptr) operation_result_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ != nullptr) _impl_.operation_result_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_Payload::_internal_operation_result() const { - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = operation_result_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = _impl_.operation_result_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_Payload::operation_result() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_Payload::operation_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.operation_result) return _internal_operation_result(); } inline void ConnectionsLog_Payload::unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operation_result_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - operation_result_ = operation_result; - if (operation_result) { - _has_bits_[0] |= 0x00000001u; + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.Payload.operation_result) } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_Payload::release_operation_result() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_Payload::release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* released = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_Payload::unsafe_arena_release_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_Payload::unsafe_arena_release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.Payload.operation_result) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_Payload::_internal_mutable_operation_result() { - _has_bits_[0] |= 0x00000001u; - if (operation_result_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArenaForAllocation()); - operation_result_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_Payload::_internal_mutable_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArena()); + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(p); } - return operation_result_; + return _impl_.operation_result_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_Payload::mutable_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_Payload::mutable_operation_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _msg = _internal_mutable_operation_result(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.Payload.operation_result) return _msg; } -inline void ConnectionsLog_Payload::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_Payload::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete operation_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - if (operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>::GetOwningArena(operation_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - operation_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, operation_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - operation_result_ = operation_result; + + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.Payload.operation_result) } // optional int32 num_failed_auto_resume = 9; -inline bool ConnectionsLog_Payload::_internal_has_num_failed_auto_resume() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_Payload::has_num_failed_auto_resume() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_Payload::has_num_failed_auto_resume() const { - return _internal_has_num_failed_auto_resume(); -} inline void ConnectionsLog_Payload::clear_num_failed_auto_resume() { - num_failed_auto_resume_ = 0; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_failed_auto_resume_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int32_t ConnectionsLog_Payload::_internal_num_failed_auto_resume() const { - return num_failed_auto_resume_; -} -inline int32_t ConnectionsLog_Payload::num_failed_auto_resume() const { +inline ::int32_t ConnectionsLog_Payload::num_failed_auto_resume() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.num_failed_auto_resume) return _internal_num_failed_auto_resume(); } -inline void ConnectionsLog_Payload::_internal_set_num_failed_auto_resume(int32_t value) { - _has_bits_[0] |= 0x00000200u; - num_failed_auto_resume_ = value; -} -inline void ConnectionsLog_Payload::set_num_failed_auto_resume(int32_t value) { +inline void ConnectionsLog_Payload::set_num_failed_auto_resume(::int32_t value) { _internal_set_num_failed_auto_resume(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.Payload.num_failed_auto_resume) } +inline ::int32_t ConnectionsLog_Payload::_internal_num_failed_auto_resume() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_failed_auto_resume_; +} +inline void ConnectionsLog_Payload::_internal_set_num_failed_auto_resume(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_failed_auto_resume_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.DctPayloadTransferStats dct_payload_transfer_stats = 10; -inline bool ConnectionsLog_Payload::_internal_has_dct_payload_transfer_stats() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || dct_payload_transfer_stats_ != nullptr); +inline bool ConnectionsLog_Payload::has_dct_payload_transfer_stats() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.dct_payload_transfer_stats_ != nullptr); return value; } -inline bool ConnectionsLog_Payload::has_dct_payload_transfer_stats() const { - return _internal_has_dct_payload_transfer_stats(); -} inline void ConnectionsLog_Payload::clear_dct_payload_transfer_stats() { - if (dct_payload_transfer_stats_ != nullptr) dct_payload_transfer_stats_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dct_payload_transfer_stats_ != nullptr) _impl_.dct_payload_transfer_stats_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& ConnectionsLog_Payload::_internal_dct_payload_transfer_stats() const { - const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* p = dct_payload_transfer_stats_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_DctPayloadTransferStats_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* p = _impl_.dct_payload_transfer_stats_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_DctPayloadTransferStats_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& ConnectionsLog_Payload::dct_payload_transfer_stats() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats& ConnectionsLog_Payload::dct_payload_transfer_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.Payload.dct_payload_transfer_stats) return _internal_dct_payload_transfer_stats(); } inline void ConnectionsLog_Payload::unsafe_arena_set_allocated_dct_payload_transfer_stats( - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* dct_payload_transfer_stats) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dct_payload_transfer_stats_); + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dct_payload_transfer_stats_); } - dct_payload_transfer_stats_ = dct_payload_transfer_stats; - if (dct_payload_transfer_stats) { - _has_bits_[0] |= 0x00000002u; + _impl_.dct_payload_transfer_stats_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.Payload.dct_payload_transfer_stats) } -inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* ConnectionsLog_Payload::release_dct_payload_transfer_stats() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* temp = dct_payload_transfer_stats_; - dct_payload_transfer_stats_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE ConnectionsLog_Payload::release_dct_payload_transfer_stats() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* released = _impl_.dct_payload_transfer_stats_; + _impl_.dct_payload_transfer_stats_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* ConnectionsLog_Payload::unsafe_arena_release_dct_payload_transfer_stats() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE ConnectionsLog_Payload::unsafe_arena_release_dct_payload_transfer_stats() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.Payload.dct_payload_transfer_stats) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* temp = dct_payload_transfer_stats_; - dct_payload_transfer_stats_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* temp = _impl_.dct_payload_transfer_stats_; + _impl_.dct_payload_transfer_stats_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* ConnectionsLog_Payload::_internal_mutable_dct_payload_transfer_stats() { - _has_bits_[0] |= 0x00000002u; - if (dct_payload_transfer_stats_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>(GetArenaForAllocation()); - dct_payload_transfer_stats_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL ConnectionsLog_Payload::_internal_mutable_dct_payload_transfer_stats() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dct_payload_transfer_stats_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>(GetArena()); + _impl_.dct_payload_transfer_stats_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats*>(p); } - return dct_payload_transfer_stats_; + return _impl_.dct_payload_transfer_stats_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* ConnectionsLog_Payload::mutable_dct_payload_transfer_stats() { +inline ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NONNULL ConnectionsLog_Payload::mutable_dct_payload_transfer_stats() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* _msg = _internal_mutable_dct_payload_transfer_stats(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.Payload.dct_payload_transfer_stats) return _msg; } -inline void ConnectionsLog_Payload::set_allocated_dct_payload_transfer_stats(::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* dct_payload_transfer_stats) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_Payload::set_allocated_dct_payload_transfer_stats(::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete dct_payload_transfer_stats_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dct_payload_transfer_stats_); } - if (dct_payload_transfer_stats) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats>::GetOwningArena(dct_payload_transfer_stats); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - dct_payload_transfer_stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, dct_payload_transfer_stats, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - dct_payload_transfer_stats_ = dct_payload_transfer_stats; + + _impl_.dct_payload_transfer_stats_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_DctPayloadTransferStats*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.Payload.dct_payload_transfer_stats) } @@ -10318,1252 +11352,1313 @@ inline void ConnectionsLog_Payload::set_allocated_dct_payload_transfer_stats(::l // ConnectionsLog_BandwidthUpgradeAttempt // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_direction() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_direction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_direction() const { - return _internal_has_direction(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_direction() { - direction_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_BandwidthUpgradeAttempt::_internal_direction() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(direction_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.direction_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_BandwidthUpgradeAttempt::direction() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.direction) return _internal_direction(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { - assert(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - direction_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { _internal_set_direction(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.direction) } +inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_BandwidthUpgradeAttempt::_internal_direction() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(_impl_.direction_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptDirection_internal_data_)); + _impl_.direction_ = value; +} // optional int64 duration_millis = 2; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t ConnectionsLog_BandwidthUpgradeAttempt::duration_millis() const { +inline ::int64_t ConnectionsLog_BandwidthUpgradeAttempt::duration_millis() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.duration_millis) return _internal_duration_millis(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - duration_millis_ = value; -} -inline void ConnectionsLog_BandwidthUpgradeAttempt::set_duration_millis(int64_t value) { +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.duration_millis) } +inline ::int64_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.connections.Medium from_medium = 3; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_from_medium() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_from_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_from_medium() const { - return _internal_has_from_medium(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_from_medium() { - from_medium_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::_internal_from_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(from_medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.from_medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::from_medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.from_medium) return _internal_from_medium(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_from_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - from_medium_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_from_medium(::location::nearby::proto::connections::Medium value) { _internal_set_from_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.from_medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::_internal_from_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.from_medium_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_from_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.from_medium_ = value; +} // optional .location.nearby.proto.connections.Medium to_medium = 4; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_to_medium() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_to_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_to_medium() const { - return _internal_has_to_medium(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_to_medium() { - to_medium_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::_internal_to_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(to_medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.to_medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::to_medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.to_medium) return _internal_to_medium(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_to_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - to_medium_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_to_medium(::location::nearby::proto::connections::Medium value) { _internal_set_to_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.to_medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_BandwidthUpgradeAttempt::_internal_to_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.to_medium_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_to_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.to_medium_ = value; +} // optional .location.nearby.proto.connections.BandwidthUpgradeResult upgrade_result = 5; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_upgrade_result() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_upgrade_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_upgrade_result() const { - return _internal_has_upgrade_result(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_upgrade_result() { - upgrade_result_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::connections::BandwidthUpgradeResult ConnectionsLog_BandwidthUpgradeAttempt::_internal_upgrade_result() const { - return static_cast< ::location::nearby::proto::connections::BandwidthUpgradeResult >(upgrade_result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.upgrade_result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::connections::BandwidthUpgradeResult ConnectionsLog_BandwidthUpgradeAttempt::upgrade_result() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.upgrade_result) return _internal_upgrade_result(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value) { - assert(::location::nearby::proto::connections::BandwidthUpgradeResult_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - upgrade_result_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value) { _internal_set_upgrade_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.upgrade_result) } +inline ::location::nearby::proto::connections::BandwidthUpgradeResult ConnectionsLog_BandwidthUpgradeAttempt::_internal_upgrade_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::BandwidthUpgradeResult>(_impl_.upgrade_result_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_upgrade_result(::location::nearby::proto::connections::BandwidthUpgradeResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::BandwidthUpgradeResult_internal_data_)); + _impl_.upgrade_result_ = value; +} // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_error_stage() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_error_stage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_error_stage() const { - return _internal_has_error_stage(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_error_stage() { - error_stage_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline ::location::nearby::proto::connections::BandwidthUpgradeErrorStage ConnectionsLog_BandwidthUpgradeAttempt::_internal_error_stage() const { - return static_cast< ::location::nearby::proto::connections::BandwidthUpgradeErrorStage >(error_stage_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_stage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::connections::BandwidthUpgradeErrorStage ConnectionsLog_BandwidthUpgradeAttempt::error_stage() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.error_stage) return _internal_error_stage(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value) { - assert(::location::nearby::proto::connections::BandwidthUpgradeErrorStage_IsValid(value)); - _has_bits_[0] |= 0x00000100u; - error_stage_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value) { _internal_set_error_stage(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.error_stage) } +inline ::location::nearby::proto::connections::BandwidthUpgradeErrorStage ConnectionsLog_BandwidthUpgradeAttempt::_internal_error_stage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::BandwidthUpgradeErrorStage>(_impl_.error_stage_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_error_stage(::location::nearby::proto::connections::BandwidthUpgradeErrorStage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::BandwidthUpgradeErrorStage_internal_data_)); + _impl_.error_stage_ = value; +} // optional int64 client_flow_id = 7; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_client_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_client_flow_id() const { - return _internal_has_client_flow_id(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_client_flow_id() { - client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_client_flow_id() const { - return client_flow_id_; -} -inline int64_t ConnectionsLog_BandwidthUpgradeAttempt::client_flow_id() const { +inline ::int64_t ConnectionsLog_BandwidthUpgradeAttempt::client_flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.client_flow_id) return _internal_client_flow_id(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000080u; - client_flow_id_ = value; -} -inline void ConnectionsLog_BandwidthUpgradeAttempt::set_client_flow_id(int64_t value) { +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_client_flow_id(::int64_t value) { _internal_set_client_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.client_flow_id) } +inline ::int64_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_client_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_flow_id_; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_client_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_flow_id_ = value; +} // optional string connection_token = 8; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_connection_token() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_connection_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_connection_token() const { - return _internal_has_connection_token(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_connection_token() { - connection_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog_BandwidthUpgradeAttempt::connection_token() const { +inline const ::std::string& ConnectionsLog_BandwidthUpgradeAttempt::connection_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.connection_token) return _internal_connection_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_BandwidthUpgradeAttempt::set_connection_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_BandwidthUpgradeAttempt::set_connection_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.connection_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.connection_token) } -inline std::string* ConnectionsLog_BandwidthUpgradeAttempt::mutable_connection_token() { - std::string* _s = _internal_mutable_connection_token(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::mutable_connection_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_connection_token(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.connection_token) return _s; } -inline const std::string& ConnectionsLog_BandwidthUpgradeAttempt::_internal_connection_token() const { - return connection_token_.Get(); +inline const ::std::string& ConnectionsLog_BandwidthUpgradeAttempt::_internal_connection_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_token_.Get(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_connection_token(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_connection_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_BandwidthUpgradeAttempt::_internal_mutable_connection_token() { - _has_bits_[0] |= 0x00000001u; - return connection_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::_internal_mutable_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_token_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_BandwidthUpgradeAttempt::release_connection_token() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_BandwidthUpgradeAttempt::release_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.connection_token) - if (!_internal_has_connection_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = connection_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.connection_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_BandwidthUpgradeAttempt::set_allocated_connection_token(std::string* connection_token) { - if (connection_token != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - connection_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_token_.IsDefault()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.connection_token) } // optional .location.nearby.analytics.proto.ConnectionsLog.OperationResult operation_result = 9; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_operation_result() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || operation_result_ != nullptr); +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_operation_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.operation_result_ != nullptr); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_operation_result() const { - return _internal_has_operation_result(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_operation_result() { - if (operation_result_ != nullptr) operation_result_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ != nullptr) _impl_.operation_result_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_BandwidthUpgradeAttempt::_internal_operation_result() const { - const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = operation_result_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* p = _impl_.operation_result_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_OperationResult_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_BandwidthUpgradeAttempt::operation_result() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& ConnectionsLog_BandwidthUpgradeAttempt::operation_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.operation_result) return _internal_operation_result(); } inline void ConnectionsLog_BandwidthUpgradeAttempt::unsafe_arena_set_allocated_operation_result( - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operation_result_); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - operation_result_ = operation_result; - if (operation_result) { - _has_bits_[0] |= 0x00000002u; + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.operation_result) } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_BandwidthUpgradeAttempt::release_operation_result() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_BandwidthUpgradeAttempt::release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* released = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_BandwidthUpgradeAttempt::unsafe_arena_release_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE ConnectionsLog_BandwidthUpgradeAttempt::unsafe_arena_release_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.operation_result) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = operation_result_; - operation_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* temp = _impl_.operation_result_; + _impl_.operation_result_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_BandwidthUpgradeAttempt::_internal_mutable_operation_result() { - _has_bits_[0] |= 0x00000002u; - if (operation_result_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArenaForAllocation()); - operation_result_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::_internal_mutable_operation_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.operation_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>(GetArena()); + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(p); } - return operation_result_; + return _impl_.operation_result_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* ConnectionsLog_BandwidthUpgradeAttempt::mutable_operation_result() { +inline ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NONNULL ConnectionsLog_BandwidthUpgradeAttempt::mutable_operation_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::analytics::proto::ConnectionsLog_OperationResult* _msg = _internal_mutable_operation_result(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.operation_result) return _msg; } -inline void ConnectionsLog_BandwidthUpgradeAttempt::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_allocated_operation_result(::location::nearby::analytics::proto::ConnectionsLog_OperationResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete operation_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operation_result_); } - if (operation_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_OperationResult>::GetOwningArena(operation_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - operation_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, operation_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - operation_result_ = operation_result; + + _impl_.operation_result_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_OperationResult*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.operation_result) } // optional .location.nearby.proto.connections.DeviceType device_type = 10; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_device_type() const { - return _internal_has_device_type(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_BandwidthUpgradeAttempt::_internal_device_type() const { - return static_cast< ::location::nearby::proto::connections::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_BandwidthUpgradeAttempt::device_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.device_type) return _internal_device_type(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { - assert(::location::nearby::proto::connections::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - device_type_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_device_type(::location::nearby::proto::connections::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.device_type) } +inline ::location::nearby::proto::connections::DeviceType ConnectionsLog_BandwidthUpgradeAttempt::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::DeviceType>(_impl_.device_type_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_device_type(::location::nearby::proto::connections::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.connections.SupportedService supported_service = 11; -inline bool ConnectionsLog_BandwidthUpgradeAttempt::_internal_has_supported_service() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_supported_service() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_supported_service() const { - return _internal_has_supported_service(); -} inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_supported_service() { - supported_service_ = 0; - _has_bits_[0] &= ~0x00000400u; -} -inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_BandwidthUpgradeAttempt::_internal_supported_service() const { - return static_cast< ::location::nearby::proto::connections::SupportedService >(supported_service_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_service_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_BandwidthUpgradeAttempt::supported_service() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.supported_service) return _internal_supported_service(); } -inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { - assert(::location::nearby::proto::connections::SupportedService_IsValid(value)); - _has_bits_[0] |= 0x00000400u; - supported_service_ = value; -} inline void ConnectionsLog_BandwidthUpgradeAttempt::set_supported_service(::location::nearby::proto::connections::SupportedService value) { _internal_set_supported_service(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.supported_service) } +inline ::location::nearby::proto::connections::SupportedService ConnectionsLog_BandwidthUpgradeAttempt::_internal_supported_service() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::SupportedService>(_impl_.supported_service_); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_supported_service(::location::nearby::proto::connections::SupportedService value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::SupportedService_internal_data_)); + _impl_.supported_service_ = value; +} + +// optional int32 num_interfaces = 12; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_num_interfaces() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); + return value; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_num_interfaces() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_interfaces_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); +} +inline ::int32_t ConnectionsLog_BandwidthUpgradeAttempt::num_interfaces() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.num_interfaces) + return _internal_num_interfaces(); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_num_interfaces(::int32_t value) { + _internal_set_num_interfaces(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.num_interfaces) +} +inline ::int32_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_num_interfaces() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_interfaces_; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_num_interfaces(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_interfaces_ = value; +} + +// optional int32 num_ipv6_only_interfaces = 13; +inline bool ConnectionsLog_BandwidthUpgradeAttempt::has_num_ipv6_only_interfaces() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); + return value; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::clear_num_ipv6_only_interfaces() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_ipv6_only_interfaces_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); +} +inline ::int32_t ConnectionsLog_BandwidthUpgradeAttempt::num_ipv6_only_interfaces() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.num_ipv6_only_interfaces) + return _internal_num_ipv6_only_interfaces(); +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::set_num_ipv6_only_interfaces(::int32_t value) { + _internal_set_num_ipv6_only_interfaces(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.num_ipv6_only_interfaces) +} +inline ::int32_t ConnectionsLog_BandwidthUpgradeAttempt::_internal_num_ipv6_only_interfaces() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_ipv6_only_interfaces_; +} +inline void ConnectionsLog_BandwidthUpgradeAttempt::_internal_set_num_ipv6_only_interfaces(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_ipv6_only_interfaces_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_ErrorCode // optional .location.nearby.proto.connections.ConnectionAttemptDirection direction = 1; -inline bool ConnectionsLog_ErrorCode::_internal_has_direction() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_ErrorCode::has_direction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_ErrorCode::has_direction() const { - return _internal_has_direction(); -} inline void ConnectionsLog_ErrorCode::clear_direction() { - direction_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ErrorCode::_internal_direction() const { - return static_cast< ::location::nearby::proto::connections::ConnectionAttemptDirection >(direction_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.direction_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ErrorCode::direction() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.direction) return _internal_direction(); } -inline void ConnectionsLog_ErrorCode::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { - assert(::location::nearby::proto::connections::ConnectionAttemptDirection_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - direction_ = value; -} inline void ConnectionsLog_ErrorCode::set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { _internal_set_direction(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.direction) } +inline ::location::nearby::proto::connections::ConnectionAttemptDirection ConnectionsLog_ErrorCode::_internal_direction() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionAttemptDirection>(_impl_.direction_); +} +inline void ConnectionsLog_ErrorCode::_internal_set_direction(::location::nearby::proto::connections::ConnectionAttemptDirection value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionAttemptDirection_internal_data_)); + _impl_.direction_ = value; +} // optional string service_id = 2; -inline bool ConnectionsLog_ErrorCode::_internal_has_service_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_ErrorCode::has_service_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_ErrorCode::has_service_id() const { - return _internal_has_service_id(); -} inline void ConnectionsLog_ErrorCode::clear_service_id() { - service_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog_ErrorCode::service_id() const { +inline const ::std::string& ConnectionsLog_ErrorCode::service_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.service_id) return _internal_service_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ErrorCode::set_service_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ErrorCode::set_service_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.service_id) } -inline std::string* ConnectionsLog_ErrorCode::mutable_service_id() { - std::string* _s = _internal_mutable_service_id(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::mutable_service_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.service_id) return _s; } -inline const std::string& ConnectionsLog_ErrorCode::_internal_service_id() const { - return service_id_.Get(); +inline const ::std::string& ConnectionsLog_ErrorCode::_internal_service_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_.Get(); } -inline void ConnectionsLog_ErrorCode::_internal_set_service_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ErrorCode::_internal_set_service_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ErrorCode::_internal_mutable_service_id() { - _has_bits_[0] |= 0x00000001u; - return service_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::_internal_mutable_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ErrorCode::release_service_id() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ErrorCode::release_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.service_id) - if (!_internal_has_service_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ErrorCode::set_allocated_service_id(std::string* service_id) { - if (service_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_ErrorCode::set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_.IsDefault()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.service_id) } // optional .location.nearby.proto.connections.Medium medium = 3; -inline bool ConnectionsLog_ErrorCode::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_ErrorCode::has_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_ErrorCode::has_medium() const { - return _internal_has_medium(); -} inline void ConnectionsLog_ErrorCode::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::Medium ConnectionsLog_ErrorCode::_internal_medium() const { - return static_cast< ::location::nearby::proto::connections::Medium >(medium_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::Medium ConnectionsLog_ErrorCode::medium() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.medium) return _internal_medium(); } -inline void ConnectionsLog_ErrorCode::_internal_set_medium(::location::nearby::proto::connections::Medium value) { - assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - medium_ = value; -} inline void ConnectionsLog_ErrorCode::set_medium(::location::nearby::proto::connections::Medium value) { _internal_set_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.medium) } +inline ::location::nearby::proto::connections::Medium ConnectionsLog_ErrorCode::_internal_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::Medium>(_impl_.medium_); +} +inline void ConnectionsLog_ErrorCode::_internal_set_medium(::location::nearby::proto::connections::Medium value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::Medium_internal_data_)); + _impl_.medium_ = value; +} // optional .location.nearby.errorcode.proto.Event event = 4; -inline bool ConnectionsLog_ErrorCode::_internal_has_event() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_ErrorCode::has_event() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_ErrorCode::has_event() const { - return _internal_has_event(); -} inline void ConnectionsLog_ErrorCode::clear_event() { - event_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::errorcode::proto::Event ConnectionsLog_ErrorCode::_internal_event() const { - return static_cast< ::location::nearby::errorcode::proto::Event >(event_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::errorcode::proto::Event ConnectionsLog_ErrorCode::event() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.event) return _internal_event(); } -inline void ConnectionsLog_ErrorCode::_internal_set_event(::location::nearby::errorcode::proto::Event value) { - assert(::location::nearby::errorcode::proto::Event_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - event_ = value; -} inline void ConnectionsLog_ErrorCode::set_event(::location::nearby::errorcode::proto::Event value) { _internal_set_event(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.event) } +inline ::location::nearby::errorcode::proto::Event ConnectionsLog_ErrorCode::_internal_event() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::errorcode::proto::Event>(_impl_.event_); +} +inline void ConnectionsLog_ErrorCode::_internal_set_event(::location::nearby::errorcode::proto::Event value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::Event_internal_data_)); + _impl_.event_ = value; +} // optional .location.nearby.errorcode.proto.Description description = 5; -inline bool ConnectionsLog_ErrorCode::_internal_has_description() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_ErrorCode::has_description() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_ErrorCode::has_description() const { - return _internal_has_description(); -} inline void ConnectionsLog_ErrorCode::clear_description() { - description_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::errorcode::proto::Description ConnectionsLog_ErrorCode::_internal_description() const { - return static_cast< ::location::nearby::errorcode::proto::Description >(description_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.description_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::errorcode::proto::Description ConnectionsLog_ErrorCode::description() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.description) return _internal_description(); } -inline void ConnectionsLog_ErrorCode::_internal_set_description(::location::nearby::errorcode::proto::Description value) { - assert(::location::nearby::errorcode::proto::Description_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - description_ = value; -} inline void ConnectionsLog_ErrorCode::set_description(::location::nearby::errorcode::proto::Description value) { _internal_set_description(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.description) } +inline ::location::nearby::errorcode::proto::Description ConnectionsLog_ErrorCode::_internal_description() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::errorcode::proto::Description>(_impl_.description_); +} +inline void ConnectionsLog_ErrorCode::_internal_set_description(::location::nearby::errorcode::proto::Description value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::Description_internal_data_)); + _impl_.description_ = value; +} // optional int64 flow_id = 6; -inline bool ConnectionsLog_ErrorCode::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_ErrorCode::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_ErrorCode::has_flow_id() const { - return _internal_has_flow_id(); -} inline void ConnectionsLog_ErrorCode::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t ConnectionsLog_ErrorCode::_internal_flow_id() const { - return flow_id_; -} -inline int64_t ConnectionsLog_ErrorCode::flow_id() const { +inline ::int64_t ConnectionsLog_ErrorCode::flow_id() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.flow_id) return _internal_flow_id(); } -inline void ConnectionsLog_ErrorCode::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000040u; - flow_id_ = value; -} -inline void ConnectionsLog_ErrorCode::set_flow_id(int64_t value) { +inline void ConnectionsLog_ErrorCode::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.flow_id) } +inline ::int64_t ConnectionsLog_ErrorCode::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void ConnectionsLog_ErrorCode::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // .location.nearby.errorcode.proto.CommonError common_error = 7; -inline bool ConnectionsLog_ErrorCode::_internal_has_common_error() const { +inline bool ConnectionsLog_ErrorCode::has_common_error() const { return ErrorCodeDetail_case() == kCommonError; } -inline bool ConnectionsLog_ErrorCode::has_common_error() const { - return _internal_has_common_error(); -} inline void ConnectionsLog_ErrorCode::set_has_common_error() { - _oneof_case_[0] = kCommonError; + _impl_._oneof_case_[0] = kCommonError; } inline void ConnectionsLog_ErrorCode::clear_common_error() { - if (_internal_has_common_error()) { - ErrorCodeDetail_.common_error_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kCommonError) { + _impl_.ErrorCodeDetail_.common_error_ = 0; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::CommonError ConnectionsLog_ErrorCode::_internal_common_error() const { - if (_internal_has_common_error()) { - return static_cast< ::location::nearby::errorcode::proto::CommonError >(ErrorCodeDetail_.common_error_); - } - return static_cast< ::location::nearby::errorcode::proto::CommonError >(0); -} inline ::location::nearby::errorcode::proto::CommonError ConnectionsLog_ErrorCode::common_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.common_error) return _internal_common_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_common_error(::location::nearby::errorcode::proto::CommonError value) { - assert(::location::nearby::errorcode::proto::CommonError_IsValid(value)); - if (!_internal_has_common_error()) { +inline void ConnectionsLog_ErrorCode::set_common_error(::location::nearby::errorcode::proto::CommonError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::CommonError_internal_data_)); + if (ErrorCodeDetail_case() != kCommonError) { clear_ErrorCodeDetail(); set_has_common_error(); } - ErrorCodeDetail_.common_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_common_error(::location::nearby::errorcode::proto::CommonError value) { - _internal_set_common_error(value); + _impl_.ErrorCodeDetail_.common_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.common_error) } +inline ::location::nearby::errorcode::proto::CommonError ConnectionsLog_ErrorCode::_internal_common_error() const { + if (ErrorCodeDetail_case() == kCommonError) { + return static_cast<::location::nearby::errorcode::proto::CommonError>(_impl_.ErrorCodeDetail_.common_error_); + } + return static_cast<::location::nearby::errorcode::proto::CommonError>(0); +} // .location.nearby.errorcode.proto.StartAdvertisingError start_advertising_error = 8; -inline bool ConnectionsLog_ErrorCode::_internal_has_start_advertising_error() const { +inline bool ConnectionsLog_ErrorCode::has_start_advertising_error() const { return ErrorCodeDetail_case() == kStartAdvertisingError; } -inline bool ConnectionsLog_ErrorCode::has_start_advertising_error() const { - return _internal_has_start_advertising_error(); -} inline void ConnectionsLog_ErrorCode::set_has_start_advertising_error() { - _oneof_case_[0] = kStartAdvertisingError; + _impl_._oneof_case_[0] = kStartAdvertisingError; } inline void ConnectionsLog_ErrorCode::clear_start_advertising_error() { - if (_internal_has_start_advertising_error()) { - ErrorCodeDetail_.start_advertising_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStartAdvertisingError) { + _impl_.ErrorCodeDetail_.start_advertising_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StartAdvertisingError ConnectionsLog_ErrorCode::_internal_start_advertising_error() const { - if (_internal_has_start_advertising_error()) { - return static_cast< ::location::nearby::errorcode::proto::StartAdvertisingError >(ErrorCodeDetail_.start_advertising_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StartAdvertisingError >(31); -} inline ::location::nearby::errorcode::proto::StartAdvertisingError ConnectionsLog_ErrorCode::start_advertising_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_advertising_error) return _internal_start_advertising_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_start_advertising_error(::location::nearby::errorcode::proto::StartAdvertisingError value) { - assert(::location::nearby::errorcode::proto::StartAdvertisingError_IsValid(value)); - if (!_internal_has_start_advertising_error()) { +inline void ConnectionsLog_ErrorCode::set_start_advertising_error(::location::nearby::errorcode::proto::StartAdvertisingError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StartAdvertisingError_internal_data_)); + if (ErrorCodeDetail_case() != kStartAdvertisingError) { clear_ErrorCodeDetail(); set_has_start_advertising_error(); } - ErrorCodeDetail_.start_advertising_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_start_advertising_error(::location::nearby::errorcode::proto::StartAdvertisingError value) { - _internal_set_start_advertising_error(value); + _impl_.ErrorCodeDetail_.start_advertising_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_advertising_error) } +inline ::location::nearby::errorcode::proto::StartAdvertisingError ConnectionsLog_ErrorCode::_internal_start_advertising_error() const { + if (ErrorCodeDetail_case() == kStartAdvertisingError) { + return static_cast<::location::nearby::errorcode::proto::StartAdvertisingError>(_impl_.ErrorCodeDetail_.start_advertising_error_); + } + return static_cast<::location::nearby::errorcode::proto::StartAdvertisingError>(31); +} // .location.nearby.errorcode.proto.StartDiscoveringError start_discovering_error = 9; -inline bool ConnectionsLog_ErrorCode::_internal_has_start_discovering_error() const { +inline bool ConnectionsLog_ErrorCode::has_start_discovering_error() const { return ErrorCodeDetail_case() == kStartDiscoveringError; } -inline bool ConnectionsLog_ErrorCode::has_start_discovering_error() const { - return _internal_has_start_discovering_error(); -} inline void ConnectionsLog_ErrorCode::set_has_start_discovering_error() { - _oneof_case_[0] = kStartDiscoveringError; + _impl_._oneof_case_[0] = kStartDiscoveringError; } inline void ConnectionsLog_ErrorCode::clear_start_discovering_error() { - if (_internal_has_start_discovering_error()) { - ErrorCodeDetail_.start_discovering_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStartDiscoveringError) { + _impl_.ErrorCodeDetail_.start_discovering_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StartDiscoveringError ConnectionsLog_ErrorCode::_internal_start_discovering_error() const { - if (_internal_has_start_discovering_error()) { - return static_cast< ::location::nearby::errorcode::proto::StartDiscoveringError >(ErrorCodeDetail_.start_discovering_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StartDiscoveringError >(31); -} inline ::location::nearby::errorcode::proto::StartDiscoveringError ConnectionsLog_ErrorCode::start_discovering_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_discovering_error) return _internal_start_discovering_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_start_discovering_error(::location::nearby::errorcode::proto::StartDiscoveringError value) { - assert(::location::nearby::errorcode::proto::StartDiscoveringError_IsValid(value)); - if (!_internal_has_start_discovering_error()) { +inline void ConnectionsLog_ErrorCode::set_start_discovering_error(::location::nearby::errorcode::proto::StartDiscoveringError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StartDiscoveringError_internal_data_)); + if (ErrorCodeDetail_case() != kStartDiscoveringError) { clear_ErrorCodeDetail(); set_has_start_discovering_error(); } - ErrorCodeDetail_.start_discovering_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_start_discovering_error(::location::nearby::errorcode::proto::StartDiscoveringError value) { - _internal_set_start_discovering_error(value); + _impl_.ErrorCodeDetail_.start_discovering_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_discovering_error) } +inline ::location::nearby::errorcode::proto::StartDiscoveringError ConnectionsLog_ErrorCode::_internal_start_discovering_error() const { + if (ErrorCodeDetail_case() == kStartDiscoveringError) { + return static_cast<::location::nearby::errorcode::proto::StartDiscoveringError>(_impl_.ErrorCodeDetail_.start_discovering_error_); + } + return static_cast<::location::nearby::errorcode::proto::StartDiscoveringError>(31); +} // .location.nearby.errorcode.proto.StopAdvertisingError stop_advertising_error = 10; -inline bool ConnectionsLog_ErrorCode::_internal_has_stop_advertising_error() const { +inline bool ConnectionsLog_ErrorCode::has_stop_advertising_error() const { return ErrorCodeDetail_case() == kStopAdvertisingError; } -inline bool ConnectionsLog_ErrorCode::has_stop_advertising_error() const { - return _internal_has_stop_advertising_error(); -} inline void ConnectionsLog_ErrorCode::set_has_stop_advertising_error() { - _oneof_case_[0] = kStopAdvertisingError; + _impl_._oneof_case_[0] = kStopAdvertisingError; } inline void ConnectionsLog_ErrorCode::clear_stop_advertising_error() { - if (_internal_has_stop_advertising_error()) { - ErrorCodeDetail_.stop_advertising_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStopAdvertisingError) { + _impl_.ErrorCodeDetail_.stop_advertising_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StopAdvertisingError ConnectionsLog_ErrorCode::_internal_stop_advertising_error() const { - if (_internal_has_stop_advertising_error()) { - return static_cast< ::location::nearby::errorcode::proto::StopAdvertisingError >(ErrorCodeDetail_.stop_advertising_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StopAdvertisingError >(31); -} inline ::location::nearby::errorcode::proto::StopAdvertisingError ConnectionsLog_ErrorCode::stop_advertising_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_advertising_error) return _internal_stop_advertising_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_stop_advertising_error(::location::nearby::errorcode::proto::StopAdvertisingError value) { - assert(::location::nearby::errorcode::proto::StopAdvertisingError_IsValid(value)); - if (!_internal_has_stop_advertising_error()) { +inline void ConnectionsLog_ErrorCode::set_stop_advertising_error(::location::nearby::errorcode::proto::StopAdvertisingError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StopAdvertisingError_internal_data_)); + if (ErrorCodeDetail_case() != kStopAdvertisingError) { clear_ErrorCodeDetail(); set_has_stop_advertising_error(); } - ErrorCodeDetail_.stop_advertising_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_stop_advertising_error(::location::nearby::errorcode::proto::StopAdvertisingError value) { - _internal_set_stop_advertising_error(value); + _impl_.ErrorCodeDetail_.stop_advertising_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_advertising_error) } +inline ::location::nearby::errorcode::proto::StopAdvertisingError ConnectionsLog_ErrorCode::_internal_stop_advertising_error() const { + if (ErrorCodeDetail_case() == kStopAdvertisingError) { + return static_cast<::location::nearby::errorcode::proto::StopAdvertisingError>(_impl_.ErrorCodeDetail_.stop_advertising_error_); + } + return static_cast<::location::nearby::errorcode::proto::StopAdvertisingError>(31); +} // .location.nearby.errorcode.proto.StopDiscoveringError stop_discovering_error = 11; -inline bool ConnectionsLog_ErrorCode::_internal_has_stop_discovering_error() const { +inline bool ConnectionsLog_ErrorCode::has_stop_discovering_error() const { return ErrorCodeDetail_case() == kStopDiscoveringError; } -inline bool ConnectionsLog_ErrorCode::has_stop_discovering_error() const { - return _internal_has_stop_discovering_error(); -} inline void ConnectionsLog_ErrorCode::set_has_stop_discovering_error() { - _oneof_case_[0] = kStopDiscoveringError; + _impl_._oneof_case_[0] = kStopDiscoveringError; } inline void ConnectionsLog_ErrorCode::clear_stop_discovering_error() { - if (_internal_has_stop_discovering_error()) { - ErrorCodeDetail_.stop_discovering_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStopDiscoveringError) { + _impl_.ErrorCodeDetail_.stop_discovering_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StopDiscoveringError ConnectionsLog_ErrorCode::_internal_stop_discovering_error() const { - if (_internal_has_stop_discovering_error()) { - return static_cast< ::location::nearby::errorcode::proto::StopDiscoveringError >(ErrorCodeDetail_.stop_discovering_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StopDiscoveringError >(31); -} inline ::location::nearby::errorcode::proto::StopDiscoveringError ConnectionsLog_ErrorCode::stop_discovering_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_discovering_error) return _internal_stop_discovering_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_stop_discovering_error(::location::nearby::errorcode::proto::StopDiscoveringError value) { - assert(::location::nearby::errorcode::proto::StopDiscoveringError_IsValid(value)); - if (!_internal_has_stop_discovering_error()) { +inline void ConnectionsLog_ErrorCode::set_stop_discovering_error(::location::nearby::errorcode::proto::StopDiscoveringError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StopDiscoveringError_internal_data_)); + if (ErrorCodeDetail_case() != kStopDiscoveringError) { clear_ErrorCodeDetail(); set_has_stop_discovering_error(); } - ErrorCodeDetail_.stop_discovering_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_stop_discovering_error(::location::nearby::errorcode::proto::StopDiscoveringError value) { - _internal_set_stop_discovering_error(value); + _impl_.ErrorCodeDetail_.stop_discovering_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_discovering_error) } +inline ::location::nearby::errorcode::proto::StopDiscoveringError ConnectionsLog_ErrorCode::_internal_stop_discovering_error() const { + if (ErrorCodeDetail_case() == kStopDiscoveringError) { + return static_cast<::location::nearby::errorcode::proto::StopDiscoveringError>(_impl_.ErrorCodeDetail_.stop_discovering_error_); + } + return static_cast<::location::nearby::errorcode::proto::StopDiscoveringError>(31); +} // .location.nearby.errorcode.proto.StartListeningIncomingConnectionError start_listening_incoming_connection_error = 12; -inline bool ConnectionsLog_ErrorCode::_internal_has_start_listening_incoming_connection_error() const { +inline bool ConnectionsLog_ErrorCode::has_start_listening_incoming_connection_error() const { return ErrorCodeDetail_case() == kStartListeningIncomingConnectionError; } -inline bool ConnectionsLog_ErrorCode::has_start_listening_incoming_connection_error() const { - return _internal_has_start_listening_incoming_connection_error(); -} inline void ConnectionsLog_ErrorCode::set_has_start_listening_incoming_connection_error() { - _oneof_case_[0] = kStartListeningIncomingConnectionError; + _impl_._oneof_case_[0] = kStartListeningIncomingConnectionError; } inline void ConnectionsLog_ErrorCode::clear_start_listening_incoming_connection_error() { - if (_internal_has_start_listening_incoming_connection_error()) { - ErrorCodeDetail_.start_listening_incoming_connection_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStartListeningIncomingConnectionError) { + _impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError ConnectionsLog_ErrorCode::_internal_start_listening_incoming_connection_error() const { - if (_internal_has_start_listening_incoming_connection_error()) { - return static_cast< ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError >(ErrorCodeDetail_.start_listening_incoming_connection_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError >(31); -} inline ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError ConnectionsLog_ErrorCode::start_listening_incoming_connection_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_listening_incoming_connection_error) return _internal_start_listening_incoming_connection_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_start_listening_incoming_connection_error(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError value) { - assert(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError_IsValid(value)); - if (!_internal_has_start_listening_incoming_connection_error()) { +inline void ConnectionsLog_ErrorCode::set_start_listening_incoming_connection_error(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError_internal_data_)); + if (ErrorCodeDetail_case() != kStartListeningIncomingConnectionError) { clear_ErrorCodeDetail(); set_has_start_listening_incoming_connection_error(); } - ErrorCodeDetail_.start_listening_incoming_connection_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_start_listening_incoming_connection_error(::location::nearby::errorcode::proto::StartListeningIncomingConnectionError value) { - _internal_set_start_listening_incoming_connection_error(value); + _impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.start_listening_incoming_connection_error) } +inline ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError ConnectionsLog_ErrorCode::_internal_start_listening_incoming_connection_error() const { + if (ErrorCodeDetail_case() == kStartListeningIncomingConnectionError) { + return static_cast<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError>(_impl_.ErrorCodeDetail_.start_listening_incoming_connection_error_); + } + return static_cast<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError>(31); +} // .location.nearby.errorcode.proto.StopListeningIncomingConnectionError stop_listening_incoming_connection_error = 13; -inline bool ConnectionsLog_ErrorCode::_internal_has_stop_listening_incoming_connection_error() const { +inline bool ConnectionsLog_ErrorCode::has_stop_listening_incoming_connection_error() const { return ErrorCodeDetail_case() == kStopListeningIncomingConnectionError; } -inline bool ConnectionsLog_ErrorCode::has_stop_listening_incoming_connection_error() const { - return _internal_has_stop_listening_incoming_connection_error(); -} inline void ConnectionsLog_ErrorCode::set_has_stop_listening_incoming_connection_error() { - _oneof_case_[0] = kStopListeningIncomingConnectionError; + _impl_._oneof_case_[0] = kStopListeningIncomingConnectionError; } inline void ConnectionsLog_ErrorCode::clear_stop_listening_incoming_connection_error() { - if (_internal_has_stop_listening_incoming_connection_error()) { - ErrorCodeDetail_.stop_listening_incoming_connection_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kStopListeningIncomingConnectionError) { + _impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError ConnectionsLog_ErrorCode::_internal_stop_listening_incoming_connection_error() const { - if (_internal_has_stop_listening_incoming_connection_error()) { - return static_cast< ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError >(ErrorCodeDetail_.stop_listening_incoming_connection_error_); - } - return static_cast< ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError >(31); -} inline ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError ConnectionsLog_ErrorCode::stop_listening_incoming_connection_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_listening_incoming_connection_error) return _internal_stop_listening_incoming_connection_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_stop_listening_incoming_connection_error(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError value) { - assert(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError_IsValid(value)); - if (!_internal_has_stop_listening_incoming_connection_error()) { +inline void ConnectionsLog_ErrorCode::set_stop_listening_incoming_connection_error(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError_internal_data_)); + if (ErrorCodeDetail_case() != kStopListeningIncomingConnectionError) { clear_ErrorCodeDetail(); set_has_stop_listening_incoming_connection_error(); } - ErrorCodeDetail_.stop_listening_incoming_connection_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_stop_listening_incoming_connection_error(::location::nearby::errorcode::proto::StopListeningIncomingConnectionError value) { - _internal_set_stop_listening_incoming_connection_error(value); + _impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.stop_listening_incoming_connection_error) } +inline ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError ConnectionsLog_ErrorCode::_internal_stop_listening_incoming_connection_error() const { + if (ErrorCodeDetail_case() == kStopListeningIncomingConnectionError) { + return static_cast<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError>(_impl_.ErrorCodeDetail_.stop_listening_incoming_connection_error_); + } + return static_cast<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError>(31); +} // .location.nearby.errorcode.proto.ConnectError connect_error = 14; -inline bool ConnectionsLog_ErrorCode::_internal_has_connect_error() const { +inline bool ConnectionsLog_ErrorCode::has_connect_error() const { return ErrorCodeDetail_case() == kConnectError; } -inline bool ConnectionsLog_ErrorCode::has_connect_error() const { - return _internal_has_connect_error(); -} inline void ConnectionsLog_ErrorCode::set_has_connect_error() { - _oneof_case_[0] = kConnectError; + _impl_._oneof_case_[0] = kConnectError; } inline void ConnectionsLog_ErrorCode::clear_connect_error() { - if (_internal_has_connect_error()) { - ErrorCodeDetail_.connect_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kConnectError) { + _impl_.ErrorCodeDetail_.connect_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::ConnectError ConnectionsLog_ErrorCode::_internal_connect_error() const { - if (_internal_has_connect_error()) { - return static_cast< ::location::nearby::errorcode::proto::ConnectError >(ErrorCodeDetail_.connect_error_); - } - return static_cast< ::location::nearby::errorcode::proto::ConnectError >(31); -} inline ::location::nearby::errorcode::proto::ConnectError ConnectionsLog_ErrorCode::connect_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connect_error) return _internal_connect_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_connect_error(::location::nearby::errorcode::proto::ConnectError value) { - assert(::location::nearby::errorcode::proto::ConnectError_IsValid(value)); - if (!_internal_has_connect_error()) { +inline void ConnectionsLog_ErrorCode::set_connect_error(::location::nearby::errorcode::proto::ConnectError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::ConnectError_internal_data_)); + if (ErrorCodeDetail_case() != kConnectError) { clear_ErrorCodeDetail(); set_has_connect_error(); } - ErrorCodeDetail_.connect_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_connect_error(::location::nearby::errorcode::proto::ConnectError value) { - _internal_set_connect_error(value); + _impl_.ErrorCodeDetail_.connect_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connect_error) } +inline ::location::nearby::errorcode::proto::ConnectError ConnectionsLog_ErrorCode::_internal_connect_error() const { + if (ErrorCodeDetail_case() == kConnectError) { + return static_cast<::location::nearby::errorcode::proto::ConnectError>(_impl_.ErrorCodeDetail_.connect_error_); + } + return static_cast<::location::nearby::errorcode::proto::ConnectError>(31); +} // .location.nearby.errorcode.proto.DisconnectError disconnect_error = 15; -inline bool ConnectionsLog_ErrorCode::_internal_has_disconnect_error() const { +inline bool ConnectionsLog_ErrorCode::has_disconnect_error() const { return ErrorCodeDetail_case() == kDisconnectError; } -inline bool ConnectionsLog_ErrorCode::has_disconnect_error() const { - return _internal_has_disconnect_error(); -} inline void ConnectionsLog_ErrorCode::set_has_disconnect_error() { - _oneof_case_[0] = kDisconnectError; + _impl_._oneof_case_[0] = kDisconnectError; } inline void ConnectionsLog_ErrorCode::clear_disconnect_error() { - if (_internal_has_disconnect_error()) { - ErrorCodeDetail_.disconnect_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kDisconnectError) { + _impl_.ErrorCodeDetail_.disconnect_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::DisconnectError ConnectionsLog_ErrorCode::_internal_disconnect_error() const { - if (_internal_has_disconnect_error()) { - return static_cast< ::location::nearby::errorcode::proto::DisconnectError >(ErrorCodeDetail_.disconnect_error_); - } - return static_cast< ::location::nearby::errorcode::proto::DisconnectError >(31); -} inline ::location::nearby::errorcode::proto::DisconnectError ConnectionsLog_ErrorCode::disconnect_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.disconnect_error) return _internal_disconnect_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value) { - assert(::location::nearby::errorcode::proto::DisconnectError_IsValid(value)); - if (!_internal_has_disconnect_error()) { +inline void ConnectionsLog_ErrorCode::set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::DisconnectError_internal_data_)); + if (ErrorCodeDetail_case() != kDisconnectError) { clear_ErrorCodeDetail(); set_has_disconnect_error(); } - ErrorCodeDetail_.disconnect_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value) { - _internal_set_disconnect_error(value); + _impl_.ErrorCodeDetail_.disconnect_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.disconnect_error) } +inline ::location::nearby::errorcode::proto::DisconnectError ConnectionsLog_ErrorCode::_internal_disconnect_error() const { + if (ErrorCodeDetail_case() == kDisconnectError) { + return static_cast<::location::nearby::errorcode::proto::DisconnectError>(_impl_.ErrorCodeDetail_.disconnect_error_); + } + return static_cast<::location::nearby::errorcode::proto::DisconnectError>(31); +} // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; -inline bool ConnectionsLog_ErrorCode::_internal_has_send_payload_error() const { +inline bool ConnectionsLog_ErrorCode::has_send_payload_error() const { return ErrorCodeDetail_case() == kSendPayloadError; } -inline bool ConnectionsLog_ErrorCode::has_send_payload_error() const { - return _internal_has_send_payload_error(); -} inline void ConnectionsLog_ErrorCode::set_has_send_payload_error() { - _oneof_case_[0] = kSendPayloadError; + _impl_._oneof_case_[0] = kSendPayloadError; } inline void ConnectionsLog_ErrorCode::clear_send_payload_error() { - if (_internal_has_send_payload_error()) { - ErrorCodeDetail_.send_payload_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kSendPayloadError) { + _impl_.ErrorCodeDetail_.send_payload_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::SendPayloadError ConnectionsLog_ErrorCode::_internal_send_payload_error() const { - if (_internal_has_send_payload_error()) { - return static_cast< ::location::nearby::errorcode::proto::SendPayloadError >(ErrorCodeDetail_.send_payload_error_); - } - return static_cast< ::location::nearby::errorcode::proto::SendPayloadError >(31); -} inline ::location::nearby::errorcode::proto::SendPayloadError ConnectionsLog_ErrorCode::send_payload_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.send_payload_error) return _internal_send_payload_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value) { - assert(::location::nearby::errorcode::proto::SendPayloadError_IsValid(value)); - if (!_internal_has_send_payload_error()) { +inline void ConnectionsLog_ErrorCode::set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::SendPayloadError_internal_data_)); + if (ErrorCodeDetail_case() != kSendPayloadError) { clear_ErrorCodeDetail(); set_has_send_payload_error(); } - ErrorCodeDetail_.send_payload_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value) { - _internal_set_send_payload_error(value); + _impl_.ErrorCodeDetail_.send_payload_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.send_payload_error) } +inline ::location::nearby::errorcode::proto::SendPayloadError ConnectionsLog_ErrorCode::_internal_send_payload_error() const { + if (ErrorCodeDetail_case() == kSendPayloadError) { + return static_cast<::location::nearby::errorcode::proto::SendPayloadError>(_impl_.ErrorCodeDetail_.send_payload_error_); + } + return static_cast<::location::nearby::errorcode::proto::SendPayloadError>(31); +} // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; -inline bool ConnectionsLog_ErrorCode::_internal_has_receive_payload_error() const { +inline bool ConnectionsLog_ErrorCode::has_receive_payload_error() const { return ErrorCodeDetail_case() == kReceivePayloadError; } -inline bool ConnectionsLog_ErrorCode::has_receive_payload_error() const { - return _internal_has_receive_payload_error(); -} inline void ConnectionsLog_ErrorCode::set_has_receive_payload_error() { - _oneof_case_[0] = kReceivePayloadError; + _impl_._oneof_case_[0] = kReceivePayloadError; } inline void ConnectionsLog_ErrorCode::clear_receive_payload_error() { - if (_internal_has_receive_payload_error()) { - ErrorCodeDetail_.receive_payload_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kReceivePayloadError) { + _impl_.ErrorCodeDetail_.receive_payload_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::ReceivePayloadError ConnectionsLog_ErrorCode::_internal_receive_payload_error() const { - if (_internal_has_receive_payload_error()) { - return static_cast< ::location::nearby::errorcode::proto::ReceivePayloadError >(ErrorCodeDetail_.receive_payload_error_); - } - return static_cast< ::location::nearby::errorcode::proto::ReceivePayloadError >(31); -} inline ::location::nearby::errorcode::proto::ReceivePayloadError ConnectionsLog_ErrorCode::receive_payload_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.receive_payload_error) return _internal_receive_payload_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value) { - assert(::location::nearby::errorcode::proto::ReceivePayloadError_IsValid(value)); - if (!_internal_has_receive_payload_error()) { +inline void ConnectionsLog_ErrorCode::set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::ReceivePayloadError_internal_data_)); + if (ErrorCodeDetail_case() != kReceivePayloadError) { clear_ErrorCodeDetail(); set_has_receive_payload_error(); } - ErrorCodeDetail_.receive_payload_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value) { - _internal_set_receive_payload_error(value); + _impl_.ErrorCodeDetail_.receive_payload_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.receive_payload_error) } +inline ::location::nearby::errorcode::proto::ReceivePayloadError ConnectionsLog_ErrorCode::_internal_receive_payload_error() const { + if (ErrorCodeDetail_case() == kReceivePayloadError) { + return static_cast<::location::nearby::errorcode::proto::ReceivePayloadError>(_impl_.ErrorCodeDetail_.receive_payload_error_); + } + return static_cast<::location::nearby::errorcode::proto::ReceivePayloadError>(31); +} // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; -inline bool ConnectionsLog_ErrorCode::_internal_has_upgrade_error() const { +inline bool ConnectionsLog_ErrorCode::has_upgrade_error() const { return ErrorCodeDetail_case() == kUpgradeError; } -inline bool ConnectionsLog_ErrorCode::has_upgrade_error() const { - return _internal_has_upgrade_error(); -} inline void ConnectionsLog_ErrorCode::set_has_upgrade_error() { - _oneof_case_[0] = kUpgradeError; + _impl_._oneof_case_[0] = kUpgradeError; } inline void ConnectionsLog_ErrorCode::clear_upgrade_error() { - if (_internal_has_upgrade_error()) { - ErrorCodeDetail_.upgrade_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kUpgradeError) { + _impl_.ErrorCodeDetail_.upgrade_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::UpgradeError ConnectionsLog_ErrorCode::_internal_upgrade_error() const { - if (_internal_has_upgrade_error()) { - return static_cast< ::location::nearby::errorcode::proto::UpgradeError >(ErrorCodeDetail_.upgrade_error_); - } - return static_cast< ::location::nearby::errorcode::proto::UpgradeError >(31); -} inline ::location::nearby::errorcode::proto::UpgradeError ConnectionsLog_ErrorCode::upgrade_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.upgrade_error) return _internal_upgrade_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value) { - assert(::location::nearby::errorcode::proto::UpgradeError_IsValid(value)); - if (!_internal_has_upgrade_error()) { +inline void ConnectionsLog_ErrorCode::set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::UpgradeError_internal_data_)); + if (ErrorCodeDetail_case() != kUpgradeError) { clear_ErrorCodeDetail(); set_has_upgrade_error(); } - ErrorCodeDetail_.upgrade_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value) { - _internal_set_upgrade_error(value); + _impl_.ErrorCodeDetail_.upgrade_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.upgrade_error) } +inline ::location::nearby::errorcode::proto::UpgradeError ConnectionsLog_ErrorCode::_internal_upgrade_error() const { + if (ErrorCodeDetail_case() == kUpgradeError) { + return static_cast<::location::nearby::errorcode::proto::UpgradeError>(_impl_.ErrorCodeDetail_.upgrade_error_); + } + return static_cast<::location::nearby::errorcode::proto::UpgradeError>(31); +} // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; -inline bool ConnectionsLog_ErrorCode::_internal_has_accept_connection_error() const { +inline bool ConnectionsLog_ErrorCode::has_accept_connection_error() const { return ErrorCodeDetail_case() == kAcceptConnectionError; } -inline bool ConnectionsLog_ErrorCode::has_accept_connection_error() const { - return _internal_has_accept_connection_error(); -} inline void ConnectionsLog_ErrorCode::set_has_accept_connection_error() { - _oneof_case_[0] = kAcceptConnectionError; + _impl_._oneof_case_[0] = kAcceptConnectionError; } inline void ConnectionsLog_ErrorCode::clear_accept_connection_error() { - if (_internal_has_accept_connection_error()) { - ErrorCodeDetail_.accept_connection_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kAcceptConnectionError) { + _impl_.ErrorCodeDetail_.accept_connection_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::AcceptConnectionError ConnectionsLog_ErrorCode::_internal_accept_connection_error() const { - if (_internal_has_accept_connection_error()) { - return static_cast< ::location::nearby::errorcode::proto::AcceptConnectionError >(ErrorCodeDetail_.accept_connection_error_); - } - return static_cast< ::location::nearby::errorcode::proto::AcceptConnectionError >(31); -} inline ::location::nearby::errorcode::proto::AcceptConnectionError ConnectionsLog_ErrorCode::accept_connection_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.accept_connection_error) return _internal_accept_connection_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value) { - assert(::location::nearby::errorcode::proto::AcceptConnectionError_IsValid(value)); - if (!_internal_has_accept_connection_error()) { +inline void ConnectionsLog_ErrorCode::set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::AcceptConnectionError_internal_data_)); + if (ErrorCodeDetail_case() != kAcceptConnectionError) { clear_ErrorCodeDetail(); set_has_accept_connection_error(); } - ErrorCodeDetail_.accept_connection_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value) { - _internal_set_accept_connection_error(value); + _impl_.ErrorCodeDetail_.accept_connection_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.accept_connection_error) } +inline ::location::nearby::errorcode::proto::AcceptConnectionError ConnectionsLog_ErrorCode::_internal_accept_connection_error() const { + if (ErrorCodeDetail_case() == kAcceptConnectionError) { + return static_cast<::location::nearby::errorcode::proto::AcceptConnectionError>(_impl_.ErrorCodeDetail_.accept_connection_error_); + } + return static_cast<::location::nearby::errorcode::proto::AcceptConnectionError>(31); +} // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; -inline bool ConnectionsLog_ErrorCode::_internal_has_reject_connection_error() const { +inline bool ConnectionsLog_ErrorCode::has_reject_connection_error() const { return ErrorCodeDetail_case() == kRejectConnectionError; } -inline bool ConnectionsLog_ErrorCode::has_reject_connection_error() const { - return _internal_has_reject_connection_error(); -} inline void ConnectionsLog_ErrorCode::set_has_reject_connection_error() { - _oneof_case_[0] = kRejectConnectionError; + _impl_._oneof_case_[0] = kRejectConnectionError; } inline void ConnectionsLog_ErrorCode::clear_reject_connection_error() { - if (_internal_has_reject_connection_error()) { - ErrorCodeDetail_.reject_connection_error_ = 31; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (ErrorCodeDetail_case() == kRejectConnectionError) { + _impl_.ErrorCodeDetail_.reject_connection_error_ = 31; clear_has_ErrorCodeDetail(); } } -inline ::location::nearby::errorcode::proto::RejectConnectionError ConnectionsLog_ErrorCode::_internal_reject_connection_error() const { - if (_internal_has_reject_connection_error()) { - return static_cast< ::location::nearby::errorcode::proto::RejectConnectionError >(ErrorCodeDetail_.reject_connection_error_); - } - return static_cast< ::location::nearby::errorcode::proto::RejectConnectionError >(31); -} inline ::location::nearby::errorcode::proto::RejectConnectionError ConnectionsLog_ErrorCode::reject_connection_error() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.reject_connection_error) return _internal_reject_connection_error(); } -inline void ConnectionsLog_ErrorCode::_internal_set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value) { - assert(::location::nearby::errorcode::proto::RejectConnectionError_IsValid(value)); - if (!_internal_has_reject_connection_error()) { +inline void ConnectionsLog_ErrorCode::set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::errorcode::proto::RejectConnectionError_internal_data_)); + if (ErrorCodeDetail_case() != kRejectConnectionError) { clear_ErrorCodeDetail(); set_has_reject_connection_error(); } - ErrorCodeDetail_.reject_connection_error_ = value; -} -inline void ConnectionsLog_ErrorCode::set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value) { - _internal_set_reject_connection_error(value); + _impl_.ErrorCodeDetail_.reject_connection_error_ = value; // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.reject_connection_error) } +inline ::location::nearby::errorcode::proto::RejectConnectionError ConnectionsLog_ErrorCode::_internal_reject_connection_error() const { + if (ErrorCodeDetail_case() == kRejectConnectionError) { + return static_cast<::location::nearby::errorcode::proto::RejectConnectionError>(_impl_.ErrorCodeDetail_.reject_connection_error_); + } + return static_cast<::location::nearby::errorcode::proto::RejectConnectionError>(31); +} // optional string connection_token = 16; -inline bool ConnectionsLog_ErrorCode::_internal_has_connection_token() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_ErrorCode::has_connection_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_ErrorCode::has_connection_token() const { - return _internal_has_connection_token(); -} inline void ConnectionsLog_ErrorCode::clear_connection_token() { - connection_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsLog_ErrorCode::connection_token() const { +inline const ::std::string& ConnectionsLog_ErrorCode::connection_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connection_token) return _internal_connection_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ErrorCode::set_connection_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ErrorCode::set_connection_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.connection_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connection_token) } -inline std::string* ConnectionsLog_ErrorCode::mutable_connection_token() { - std::string* _s = _internal_mutable_connection_token(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::mutable_connection_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_connection_token(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connection_token) return _s; } -inline const std::string& ConnectionsLog_ErrorCode::_internal_connection_token() const { - return connection_token_.Get(); +inline const ::std::string& ConnectionsLog_ErrorCode::_internal_connection_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_token_.Get(); } -inline void ConnectionsLog_ErrorCode::_internal_set_connection_token(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - connection_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ErrorCode::_internal_set_connection_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_token_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ErrorCode::_internal_mutable_connection_token() { - _has_bits_[0] |= 0x00000002u; - return connection_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ErrorCode::_internal_mutable_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_token_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ErrorCode::release_connection_token() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ErrorCode::release_connection_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connection_token) - if (!_internal_has_connection_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = connection_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.connection_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ErrorCode::set_allocated_connection_token(std::string* connection_token) { - if (connection_token != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionsLog_ErrorCode::set_allocated_connection_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - connection_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_token_.IsDefault()) { + _impl_.connection_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.connection_token) } @@ -11571,1307 +12666,1328 @@ inline bool ConnectionsLog_ErrorCode::has_ErrorCodeDetail() const { return ErrorCodeDetail_case() != ERRORCODEDETAIL_NOT_SET; } inline void ConnectionsLog_ErrorCode::clear_has_ErrorCodeDetail() { - _oneof_case_[0] = ERRORCODEDETAIL_NOT_SET; + _impl_._oneof_case_[0] = ERRORCODEDETAIL_NOT_SET; } inline ConnectionsLog_ErrorCode::ErrorCodeDetailCase ConnectionsLog_ErrorCode::ErrorCodeDetail_case() const { - return ConnectionsLog_ErrorCode::ErrorCodeDetailCase(_oneof_case_[0]); + return ConnectionsLog_ErrorCode::ErrorCodeDetailCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // ConnectionsLog_AdvertisingMetadata // optional bool supports_extended_ble_advertisements = 1; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_supports_extended_ble_advertisements() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_supports_extended_ble_advertisements() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_supports_extended_ble_advertisements() const { - return _internal_has_supports_extended_ble_advertisements(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_supports_extended_ble_advertisements() { - supports_extended_ble_advertisements_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_extended_ble_advertisements() const { - return supports_extended_ble_advertisements_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_extended_ble_advertisements_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool ConnectionsLog_AdvertisingMetadata::supports_extended_ble_advertisements() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_extended_ble_advertisements) return _internal_supports_extended_ble_advertisements(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_extended_ble_advertisements(bool value) { - _has_bits_[0] |= 0x00000002u; - supports_extended_ble_advertisements_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_supports_extended_ble_advertisements(bool value) { _internal_set_supports_extended_ble_advertisements(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_extended_ble_advertisements) } +inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_extended_ble_advertisements() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_extended_ble_advertisements_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_extended_ble_advertisements(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_extended_ble_advertisements_ = value; +} // optional int32 connected_ap_frequency = 2; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_connected_ap_frequency() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_connected_ap_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_connected_ap_frequency() const { - return _internal_has_connected_ap_frequency(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_connected_ap_frequency() { - connected_ap_frequency_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t ConnectionsLog_AdvertisingMetadata::_internal_connected_ap_frequency() const { - return connected_ap_frequency_; -} -inline int32_t ConnectionsLog_AdvertisingMetadata::connected_ap_frequency() const { +inline ::int32_t ConnectionsLog_AdvertisingMetadata::connected_ap_frequency() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.connected_ap_frequency) return _internal_connected_ap_frequency(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_connected_ap_frequency(int32_t value) { - _has_bits_[0] |= 0x00000001u; - connected_ap_frequency_ = value; -} -inline void ConnectionsLog_AdvertisingMetadata::set_connected_ap_frequency(int32_t value) { +inline void ConnectionsLog_AdvertisingMetadata::set_connected_ap_frequency(::int32_t value) { _internal_set_connected_ap_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.connected_ap_frequency) } +inline ::int32_t ConnectionsLog_AdvertisingMetadata::_internal_connected_ap_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connected_ap_frequency_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_connected_ap_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = value; +} // optional bool supports_nfc_technology = 3; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_supports_nfc_technology() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_supports_nfc_technology() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_supports_nfc_technology() const { - return _internal_has_supports_nfc_technology(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_supports_nfc_technology() { - supports_nfc_technology_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_nfc_technology() const { - return supports_nfc_technology_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_nfc_technology_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ConnectionsLog_AdvertisingMetadata::supports_nfc_technology() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_nfc_technology) return _internal_supports_nfc_technology(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_nfc_technology(bool value) { - _has_bits_[0] |= 0x00000004u; - supports_nfc_technology_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_supports_nfc_technology(bool value) { _internal_set_supports_nfc_technology(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_nfc_technology) } +inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_nfc_technology() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_nfc_technology_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_nfc_technology(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_nfc_technology_ = value; +} // optional bool multiple_advertisement_supported = 4; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_multiple_advertisement_supported() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_multiple_advertisement_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_multiple_advertisement_supported() const { - return _internal_has_multiple_advertisement_supported(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_multiple_advertisement_supported() { - multiple_advertisement_supported_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool ConnectionsLog_AdvertisingMetadata::_internal_multiple_advertisement_supported() const { - return multiple_advertisement_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.multiple_advertisement_supported_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool ConnectionsLog_AdvertisingMetadata::multiple_advertisement_supported() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.multiple_advertisement_supported) return _internal_multiple_advertisement_supported(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_multiple_advertisement_supported(bool value) { - _has_bits_[0] |= 0x00000008u; - multiple_advertisement_supported_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_multiple_advertisement_supported(bool value) { _internal_set_multiple_advertisement_supported(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.multiple_advertisement_supported) } +inline bool ConnectionsLog_AdvertisingMetadata::_internal_multiple_advertisement_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.multiple_advertisement_supported_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_multiple_advertisement_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.multiple_advertisement_supported_ = value; +} // optional .location.nearby.proto.connections.PowerLevel power_level = 5; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_power_level() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_power_level() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_power_level() const { - return _internal_has_power_level(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_power_level() { - power_level_ = -1; - _has_bits_[0] &= ~0x00000080u; -} -inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_AdvertisingMetadata::_internal_power_level() const { - return static_cast< ::location::nearby::proto::connections::PowerLevel >(power_level_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.power_level_ = -1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_AdvertisingMetadata::power_level() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.power_level) return _internal_power_level(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { - assert(::location::nearby::proto::connections::PowerLevel_IsValid(value)); - _has_bits_[0] |= 0x00000080u; - power_level_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_power_level(::location::nearby::proto::connections::PowerLevel value) { _internal_set_power_level(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.power_level) } +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_AdvertisingMetadata::_internal_power_level() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::PowerLevel>(_impl_.power_level_); +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::PowerLevel_internal_data_)); + _impl_.power_level_ = value; +} // optional bool supports_dual_band = 6; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_supports_dual_band() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_supports_dual_band() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_supports_dual_band() const { - return _internal_has_supports_dual_band(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_supports_dual_band() { - supports_dual_band_ = false; - _has_bits_[0] &= ~0x00000010u; -} -inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_dual_band() const { - return supports_dual_band_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_dual_band_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool ConnectionsLog_AdvertisingMetadata::supports_dual_band() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_dual_band) return _internal_supports_dual_band(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_dual_band(bool value) { - _has_bits_[0] |= 0x00000010u; - supports_dual_band_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_supports_dual_band(bool value) { _internal_set_supports_dual_band(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_dual_band) } +inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_dual_band() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_dual_band_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_dual_band(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_dual_band_ = value; +} // optional bool supports_wifi_aware = 7; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_supports_wifi_aware() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_supports_wifi_aware() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_supports_wifi_aware() const { - return _internal_has_supports_wifi_aware(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_supports_wifi_aware() { - supports_wifi_aware_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_wifi_aware() const { - return supports_wifi_aware_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_wifi_aware_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool ConnectionsLog_AdvertisingMetadata::supports_wifi_aware() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_wifi_aware) return _internal_supports_wifi_aware(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_wifi_aware(bool value) { - _has_bits_[0] |= 0x00000020u; - supports_wifi_aware_ = value; -} inline void ConnectionsLog_AdvertisingMetadata::set_supports_wifi_aware(bool value) { _internal_set_supports_wifi_aware(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.supports_wifi_aware) } +inline bool ConnectionsLog_AdvertisingMetadata::_internal_supports_wifi_aware() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_wifi_aware_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_supports_wifi_aware(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_wifi_aware_ = value; +} // optional int32 endpoint_info_size = 8; -inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_endpoint_info_size() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_AdvertisingMetadata::has_endpoint_info_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_AdvertisingMetadata::has_endpoint_info_size() const { - return _internal_has_endpoint_info_size(); -} inline void ConnectionsLog_AdvertisingMetadata::clear_endpoint_info_size() { - endpoint_info_size_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t ConnectionsLog_AdvertisingMetadata::_internal_endpoint_info_size() const { - return endpoint_info_size_; -} -inline int32_t ConnectionsLog_AdvertisingMetadata::endpoint_info_size() const { +inline ::int32_t ConnectionsLog_AdvertisingMetadata::endpoint_info_size() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.endpoint_info_size) return _internal_endpoint_info_size(); } -inline void ConnectionsLog_AdvertisingMetadata::_internal_set_endpoint_info_size(int32_t value) { - _has_bits_[0] |= 0x00000040u; - endpoint_info_size_ = value; -} -inline void ConnectionsLog_AdvertisingMetadata::set_endpoint_info_size(int32_t value) { +inline void ConnectionsLog_AdvertisingMetadata::set_endpoint_info_size(::int32_t value) { _internal_set_endpoint_info_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.endpoint_info_size) } +inline ::int32_t ConnectionsLog_AdvertisingMetadata::_internal_endpoint_info_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_info_size_; +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_endpoint_info_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_info_size_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_DiscoveryMetadata // optional bool supports_extended_ble_advertisements = 1; -inline bool ConnectionsLog_DiscoveryMetadata::_internal_has_supports_extended_ble_advertisements() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_DiscoveryMetadata::has_supports_extended_ble_advertisements() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_DiscoveryMetadata::has_supports_extended_ble_advertisements() const { - return _internal_has_supports_extended_ble_advertisements(); -} inline void ConnectionsLog_DiscoveryMetadata::clear_supports_extended_ble_advertisements() { - supports_extended_ble_advertisements_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool ConnectionsLog_DiscoveryMetadata::_internal_supports_extended_ble_advertisements() const { - return supports_extended_ble_advertisements_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_extended_ble_advertisements_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool ConnectionsLog_DiscoveryMetadata::supports_extended_ble_advertisements() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.supports_extended_ble_advertisements) return _internal_supports_extended_ble_advertisements(); } -inline void ConnectionsLog_DiscoveryMetadata::_internal_set_supports_extended_ble_advertisements(bool value) { - _has_bits_[0] |= 0x00000002u; - supports_extended_ble_advertisements_ = value; -} inline void ConnectionsLog_DiscoveryMetadata::set_supports_extended_ble_advertisements(bool value) { _internal_set_supports_extended_ble_advertisements(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.supports_extended_ble_advertisements) } +inline bool ConnectionsLog_DiscoveryMetadata::_internal_supports_extended_ble_advertisements() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_extended_ble_advertisements_; +} +inline void ConnectionsLog_DiscoveryMetadata::_internal_set_supports_extended_ble_advertisements(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_extended_ble_advertisements_ = value; +} // optional int32 connected_ap_frequency = 2; -inline bool ConnectionsLog_DiscoveryMetadata::_internal_has_connected_ap_frequency() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_DiscoveryMetadata::has_connected_ap_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_DiscoveryMetadata::has_connected_ap_frequency() const { - return _internal_has_connected_ap_frequency(); -} inline void ConnectionsLog_DiscoveryMetadata::clear_connected_ap_frequency() { - connected_ap_frequency_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t ConnectionsLog_DiscoveryMetadata::_internal_connected_ap_frequency() const { - return connected_ap_frequency_; -} -inline int32_t ConnectionsLog_DiscoveryMetadata::connected_ap_frequency() const { +inline ::int32_t ConnectionsLog_DiscoveryMetadata::connected_ap_frequency() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.connected_ap_frequency) return _internal_connected_ap_frequency(); } -inline void ConnectionsLog_DiscoveryMetadata::_internal_set_connected_ap_frequency(int32_t value) { - _has_bits_[0] |= 0x00000001u; - connected_ap_frequency_ = value; -} -inline void ConnectionsLog_DiscoveryMetadata::set_connected_ap_frequency(int32_t value) { +inline void ConnectionsLog_DiscoveryMetadata::set_connected_ap_frequency(::int32_t value) { _internal_set_connected_ap_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.connected_ap_frequency) } +inline ::int32_t ConnectionsLog_DiscoveryMetadata::_internal_connected_ap_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connected_ap_frequency_; +} +inline void ConnectionsLog_DiscoveryMetadata::_internal_set_connected_ap_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = value; +} // optional bool supports_nfc_technology = 3; -inline bool ConnectionsLog_DiscoveryMetadata::_internal_has_supports_nfc_technology() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_DiscoveryMetadata::has_supports_nfc_technology() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_DiscoveryMetadata::has_supports_nfc_technology() const { - return _internal_has_supports_nfc_technology(); -} inline void ConnectionsLog_DiscoveryMetadata::clear_supports_nfc_technology() { - supports_nfc_technology_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool ConnectionsLog_DiscoveryMetadata::_internal_supports_nfc_technology() const { - return supports_nfc_technology_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_nfc_technology_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ConnectionsLog_DiscoveryMetadata::supports_nfc_technology() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.supports_nfc_technology) return _internal_supports_nfc_technology(); } -inline void ConnectionsLog_DiscoveryMetadata::_internal_set_supports_nfc_technology(bool value) { - _has_bits_[0] |= 0x00000004u; - supports_nfc_technology_ = value; -} inline void ConnectionsLog_DiscoveryMetadata::set_supports_nfc_technology(bool value) { _internal_set_supports_nfc_technology(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.supports_nfc_technology) } +inline bool ConnectionsLog_DiscoveryMetadata::_internal_supports_nfc_technology() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supports_nfc_technology_; +} +inline void ConnectionsLog_DiscoveryMetadata::_internal_set_supports_nfc_technology(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supports_nfc_technology_ = value; +} // optional .location.nearby.proto.connections.PowerLevel power_level = 4; -inline bool ConnectionsLog_DiscoveryMetadata::_internal_has_power_level() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_DiscoveryMetadata::has_power_level() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_DiscoveryMetadata::has_power_level() const { - return _internal_has_power_level(); -} inline void ConnectionsLog_DiscoveryMetadata::clear_power_level() { - power_level_ = -1; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_DiscoveryMetadata::_internal_power_level() const { - return static_cast< ::location::nearby::proto::connections::PowerLevel >(power_level_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.power_level_ = -1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_DiscoveryMetadata::power_level() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.power_level) return _internal_power_level(); } -inline void ConnectionsLog_DiscoveryMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { - assert(::location::nearby::proto::connections::PowerLevel_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - power_level_ = value; -} inline void ConnectionsLog_DiscoveryMetadata::set_power_level(::location::nearby::proto::connections::PowerLevel value) { _internal_set_power_level(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.power_level) } +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_DiscoveryMetadata::_internal_power_level() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::PowerLevel>(_impl_.power_level_); +} +inline void ConnectionsLog_DiscoveryMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::PowerLevel_internal_data_)); + _impl_.power_level_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog_ConnectionAttemptMetadata // optional .location.nearby.proto.connections.ConnectionTechnology technology = 1; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_technology() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_technology() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_technology() const { - return _internal_has_technology(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_technology() { - technology_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::connections::ConnectionTechnology ConnectionsLog_ConnectionAttemptMetadata::_internal_technology() const { - return static_cast< ::location::nearby::proto::connections::ConnectionTechnology >(technology_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.technology_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::connections::ConnectionTechnology ConnectionsLog_ConnectionAttemptMetadata::technology() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.technology) return _internal_technology(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_technology(::location::nearby::proto::connections::ConnectionTechnology value) { - assert(::location::nearby::proto::connections::ConnectionTechnology_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - technology_ = value; -} inline void ConnectionsLog_ConnectionAttemptMetadata::set_technology(::location::nearby::proto::connections::ConnectionTechnology value) { _internal_set_technology(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.technology) } +inline ::location::nearby::proto::connections::ConnectionTechnology ConnectionsLog_ConnectionAttemptMetadata::_internal_technology() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionTechnology>(_impl_.technology_); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_technology(::location::nearby::proto::connections::ConnectionTechnology value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionTechnology_internal_data_)); + _impl_.technology_ = value; +} // optional .location.nearby.proto.connections.ConnectionBand band = 2; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_band() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_band() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_band() const { - return _internal_has_band(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_band() { - band_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::connections::ConnectionBand ConnectionsLog_ConnectionAttemptMetadata::_internal_band() const { - return static_cast< ::location::nearby::proto::connections::ConnectionBand >(band_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.band_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::connections::ConnectionBand ConnectionsLog_ConnectionAttemptMetadata::band() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.band) return _internal_band(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_band(::location::nearby::proto::connections::ConnectionBand value) { - assert(::location::nearby::proto::connections::ConnectionBand_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - band_ = value; -} inline void ConnectionsLog_ConnectionAttemptMetadata::set_band(::location::nearby::proto::connections::ConnectionBand value) { _internal_set_band(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.band) } +inline ::location::nearby::proto::connections::ConnectionBand ConnectionsLog_ConnectionAttemptMetadata::_internal_band() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::ConnectionBand>(_impl_.band_); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_band(::location::nearby::proto::connections::ConnectionBand value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::ConnectionBand_internal_data_)); + _impl_.band_ = value; +} // optional int32 frequency = 3; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_frequency() const { - return _internal_has_frequency(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_frequency() { - frequency_ = 0; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_frequency() const { - return frequency_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::frequency() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::frequency() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.frequency) return _internal_frequency(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000010u; - frequency_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_frequency(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_frequency(::int32_t value) { _internal_set_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.frequency) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.frequency_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frequency_ = value; +} // optional string network_operator = 4; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_network_operator() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_network_operator() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_network_operator() const { - return _internal_has_network_operator(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_network_operator() { - network_operator_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_operator_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog_ConnectionAttemptMetadata::network_operator() const { +inline const ::std::string& ConnectionsLog_ConnectionAttemptMetadata::network_operator() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.network_operator) return _internal_network_operator(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ConnectionAttemptMetadata::set_network_operator(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - network_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ConnectionAttemptMetadata::set_network_operator(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.network_operator_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.network_operator) } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::mutable_network_operator() { - std::string* _s = _internal_mutable_network_operator(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::mutable_network_operator() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_network_operator(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.network_operator) return _s; } -inline const std::string& ConnectionsLog_ConnectionAttemptMetadata::_internal_network_operator() const { - return network_operator_.Get(); +inline const ::std::string& ConnectionsLog_ConnectionAttemptMetadata::_internal_network_operator() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.network_operator_.Get(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_network_operator(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - network_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_network_operator(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_operator_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::_internal_mutable_network_operator() { - _has_bits_[0] |= 0x00000001u; - return network_operator_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::_internal_mutable_network_operator() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.network_operator_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::release_network_operator() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttemptMetadata::release_network_operator() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.network_operator) - if (!_internal_has_network_operator()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = network_operator_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (network_operator_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - network_operator_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.network_operator_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.network_operator_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ConnectionAttemptMetadata::set_allocated_network_operator(std::string* network_operator) { - if (network_operator != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog_ConnectionAttemptMetadata::set_allocated_network_operator(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - network_operator_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), network_operator, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (network_operator_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - network_operator_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.network_operator_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.network_operator_.IsDefault()) { + _impl_.network_operator_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.network_operator) } // optional string country_code = 5; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_country_code() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_country_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_country_code() const { - return _internal_has_country_code(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_country_code() { - country_code_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.country_code_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsLog_ConnectionAttemptMetadata::country_code() const { +inline const ::std::string& ConnectionsLog_ConnectionAttemptMetadata::country_code() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.country_code) return _internal_country_code(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog_ConnectionAttemptMetadata::set_country_code(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog_ConnectionAttemptMetadata::set_country_code(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.country_code_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.country_code) } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::mutable_country_code() { - std::string* _s = _internal_mutable_country_code(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::mutable_country_code() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_country_code(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.country_code) return _s; } -inline const std::string& ConnectionsLog_ConnectionAttemptMetadata::_internal_country_code() const { - return country_code_.Get(); +inline const ::std::string& ConnectionsLog_ConnectionAttemptMetadata::_internal_country_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.country_code_.Get(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_country_code(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - country_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_country_code(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.country_code_.Set(value, GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::_internal_mutable_country_code() { - _has_bits_[0] |= 0x00000002u; - return country_code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog_ConnectionAttemptMetadata::_internal_mutable_country_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.country_code_.Mutable( GetArena()); } -inline std::string* ConnectionsLog_ConnectionAttemptMetadata::release_country_code() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog_ConnectionAttemptMetadata::release_country_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.country_code) - if (!_internal_has_country_code()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = country_code_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (country_code_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.country_code_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.country_code_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog_ConnectionAttemptMetadata::set_allocated_country_code(std::string* country_code) { - if (country_code != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionsLog_ConnectionAttemptMetadata::set_allocated_country_code(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - country_code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), country_code, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (country_code_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - country_code_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.country_code_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.country_code_.IsDefault()) { + _impl_.country_code_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.country_code) } // optional bool is_tdls_used = 6; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_is_tdls_used() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_tdls_used() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_tdls_used() const { - return _internal_has_is_tdls_used(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_is_tdls_used() { - is_tdls_used_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_tdls_used() const { - return is_tdls_used_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_tdls_used_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool ConnectionsLog_ConnectionAttemptMetadata::is_tdls_used() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_tdls_used) return _internal_is_tdls_used(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_tdls_used(bool value) { - _has_bits_[0] |= 0x00000080u; - is_tdls_used_ = value; -} inline void ConnectionsLog_ConnectionAttemptMetadata::set_is_tdls_used(bool value) { _internal_set_is_tdls_used(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_tdls_used) } +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_tdls_used() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_tdls_used_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_tdls_used(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_tdls_used_ = value; +} // optional int32 try_counts = 7; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_try_counts() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_try_counts() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_try_counts() const { - return _internal_has_try_counts(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_try_counts() { - try_counts_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.try_counts_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_try_counts() const { - return try_counts_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::try_counts() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::try_counts() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.try_counts) return _internal_try_counts(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_try_counts(int32_t value) { - _has_bits_[0] |= 0x00000020u; - try_counts_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_try_counts(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_try_counts(::int32_t value) { _internal_set_try_counts(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.try_counts) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_try_counts() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.try_counts_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_try_counts(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.try_counts_ = value; +} // optional bool wifi_hotspot_status = 8; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_wifi_hotspot_status() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_hotspot_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_hotspot_status() const { - return _internal_has_wifi_hotspot_status(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_wifi_hotspot_status() { - wifi_hotspot_status_ = false; - _has_bits_[0] &= ~0x00000100u; -} -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_hotspot_status() const { - return wifi_hotspot_status_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_hotspot_status_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline bool ConnectionsLog_ConnectionAttemptMetadata::wifi_hotspot_status() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.wifi_hotspot_status) return _internal_wifi_hotspot_status(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_hotspot_status(bool value) { - _has_bits_[0] |= 0x00000100u; - wifi_hotspot_status_ = value; -} inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_hotspot_status(bool value) { _internal_set_wifi_hotspot_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.wifi_hotspot_status) } +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_hotspot_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_hotspot_status_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_hotspot_status(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_hotspot_status_ = value; +} // optional int32 max_tx_speed = 9; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_max_tx_speed() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_tx_speed() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_tx_speed() const { - return _internal_has_max_tx_speed(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_max_tx_speed() { - max_tx_speed_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_tx_speed_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_tx_speed() const { - return max_tx_speed_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::max_tx_speed() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::max_tx_speed() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.max_tx_speed) return _internal_max_tx_speed(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_tx_speed(int32_t value) { - _has_bits_[0] |= 0x00000040u; - max_tx_speed_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_tx_speed(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_tx_speed(::int32_t value) { _internal_set_max_tx_speed(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.max_tx_speed) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_tx_speed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.max_tx_speed_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_tx_speed(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_tx_speed_ = value; +} // optional int32 max_rx_speed = 10; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_max_rx_speed() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_rx_speed() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_rx_speed() const { - return _internal_has_max_rx_speed(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_max_rx_speed() { - max_rx_speed_ = 0; - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_rx_speed_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_rx_speed() const { - return max_rx_speed_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::max_rx_speed() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::max_rx_speed() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.max_rx_speed) return _internal_max_rx_speed(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_rx_speed(int32_t value) { - _has_bits_[0] |= 0x00000400u; - max_rx_speed_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_rx_speed(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_rx_speed(::int32_t value) { _internal_set_max_rx_speed(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.max_rx_speed) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_rx_speed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.max_rx_speed_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_rx_speed(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_rx_speed_ = value; +} // optional int32 wifi_channel_width = 11; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_wifi_channel_width() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_channel_width() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_channel_width() const { - return _internal_has_wifi_channel_width(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_wifi_channel_width() { - wifi_channel_width_ = 0; - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_channel_width_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_channel_width() const { - return wifi_channel_width_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::wifi_channel_width() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::wifi_channel_width() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.wifi_channel_width) return _internal_wifi_channel_width(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_channel_width(int32_t value) { - _has_bits_[0] |= 0x00000800u; - wifi_channel_width_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_channel_width(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_channel_width(::int32_t value) { _internal_set_wifi_channel_width(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.wifi_channel_width) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_channel_width() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_channel_width_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_channel_width(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_channel_width_ = value; +} // optional int32 send_buffer_size = 12; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_send_buffer_size() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_send_buffer_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_send_buffer_size() const { - return _internal_has_send_buffer_size(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_send_buffer_size() { - send_buffer_size_ = 0; - _has_bits_[0] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.send_buffer_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_send_buffer_size() const { - return send_buffer_size_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::send_buffer_size() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::send_buffer_size() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.send_buffer_size) return _internal_send_buffer_size(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_send_buffer_size(int32_t value) { - _has_bits_[0] |= 0x00001000u; - send_buffer_size_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_send_buffer_size(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_send_buffer_size(::int32_t value) { _internal_set_send_buffer_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.send_buffer_size) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_send_buffer_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.send_buffer_size_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_send_buffer_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.send_buffer_size_ = value; +} // optional int32 receive_buffer_size = 13; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_receive_buffer_size() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_receive_buffer_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_receive_buffer_size() const { - return _internal_has_receive_buffer_size(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_receive_buffer_size() { - receive_buffer_size_ = 0; - _has_bits_[0] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.receive_buffer_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_receive_buffer_size() const { - return receive_buffer_size_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::receive_buffer_size() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::receive_buffer_size() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.receive_buffer_size) return _internal_receive_buffer_size(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_receive_buffer_size(int32_t value) { - _has_bits_[0] |= 0x00002000u; - receive_buffer_size_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_receive_buffer_size(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_receive_buffer_size(::int32_t value) { _internal_set_receive_buffer_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.receive_buffer_size) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_receive_buffer_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.receive_buffer_size_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_receive_buffer_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.receive_buffer_size_ = value; +} // optional int32 connected_ap_frequency = 14; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_connected_ap_frequency() const { - bool value = (_has_bits_[0] & 0x00004000u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_connected_ap_frequency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_connected_ap_frequency() const { - return _internal_has_connected_ap_frequency(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_connected_ap_frequency() { - connected_ap_frequency_ = 0; - _has_bits_[0] &= ~0x00004000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_connected_ap_frequency() const { - return connected_ap_frequency_; -} -inline int32_t ConnectionsLog_ConnectionAttemptMetadata::connected_ap_frequency() const { +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::connected_ap_frequency() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.connected_ap_frequency) return _internal_connected_ap_frequency(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_connected_ap_frequency(int32_t value) { - _has_bits_[0] |= 0x00004000u; - connected_ap_frequency_ = value; -} -inline void ConnectionsLog_ConnectionAttemptMetadata::set_connected_ap_frequency(int32_t value) { +inline void ConnectionsLog_ConnectionAttemptMetadata::set_connected_ap_frequency(::int32_t value) { _internal_set_connected_ap_frequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.connected_ap_frequency) } +inline ::int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_connected_ap_frequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connected_ap_frequency_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_connected_ap_frequency(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connected_ap_frequency_ = value; +} // optional bool is_mcc_mode = 15; -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_is_mcc_mode() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_mcc_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_mcc_mode() const { - return _internal_has_is_mcc_mode(); -} inline void ConnectionsLog_ConnectionAttemptMetadata::clear_is_mcc_mode() { - is_mcc_mode_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_mcc_mode() const { - return is_mcc_mode_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_mcc_mode_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool ConnectionsLog_ConnectionAttemptMetadata::is_mcc_mode() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_mcc_mode) return _internal_is_mcc_mode(); } -inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_mcc_mode(bool value) { - _has_bits_[0] |= 0x00000200u; - is_mcc_mode_ = value; -} inline void ConnectionsLog_ConnectionAttemptMetadata::set_is_mcc_mode(bool value) { _internal_set_is_mcc_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_mcc_mode) } +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_mcc_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_mcc_mode_; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_mcc_mode(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_mcc_mode_ = value; +} // ------------------------------------------------------------------- // ConnectionsLog // optional .location.nearby.proto.connections.EventType event_type = 1; -inline bool ConnectionsLog::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool ConnectionsLog::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool ConnectionsLog::has_event_type() const { - return _internal_has_event_type(); -} inline void ConnectionsLog::clear_event_type() { - event_type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::connections::EventType ConnectionsLog::_internal_event_type() const { - return static_cast< ::location::nearby::proto::connections::EventType >(event_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::connections::EventType ConnectionsLog::event_type() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.event_type) return _internal_event_type(); } -inline void ConnectionsLog::_internal_set_event_type(::location::nearby::proto::connections::EventType value) { - assert(::location::nearby::proto::connections::EventType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - event_type_ = value; -} inline void ConnectionsLog::set_event_type(::location::nearby::proto::connections::EventType value) { _internal_set_event_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.event_type) } +inline ::location::nearby::proto::connections::EventType ConnectionsLog::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::EventType>(_impl_.event_type_); +} +inline void ConnectionsLog::_internal_set_event_type(::location::nearby::proto::connections::EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::EventType_internal_data_)); + _impl_.event_type_ = value; +} // optional .location.nearby.analytics.proto.ConnectionsLog.ClientSession client_session = 2; -inline bool ConnectionsLog::_internal_has_client_session() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || client_session_ != nullptr); +inline bool ConnectionsLog::has_client_session() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.client_session_ != nullptr); return value; } -inline bool ConnectionsLog::has_client_session() const { - return _internal_has_client_session(); -} inline void ConnectionsLog::clear_client_session() { - if (client_session_ != nullptr) client_session_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_session_ != nullptr) _impl_.client_session_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& ConnectionsLog::_internal_client_session() const { - const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* p = client_session_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_ClientSession_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* p = _impl_.client_session_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_ClientSession_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& ConnectionsLog::client_session() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ClientSession& ConnectionsLog::client_session() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.client_session) return _internal_client_session(); } inline void ConnectionsLog::unsafe_arena_set_allocated_client_session( - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* client_session) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(client_session_); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_session_); } - client_session_ = client_session; - if (client_session) { - _has_bits_[0] |= 0x00000004u; + _impl_.client_session_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ClientSession*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.client_session) } -inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* ConnectionsLog::release_client_session() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* temp = client_session_; - client_session_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE ConnectionsLog::release_client_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* released = _impl_.client_session_; + _impl_.client_session_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* ConnectionsLog::unsafe_arena_release_client_session() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE ConnectionsLog::unsafe_arena_release_client_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.client_session) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* temp = client_session_; - client_session_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* temp = _impl_.client_session_; + _impl_.client_session_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* ConnectionsLog::_internal_mutable_client_session() { - _has_bits_[0] |= 0x00000004u; - if (client_session_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>(GetArenaForAllocation()); - client_session_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NONNULL ConnectionsLog::_internal_mutable_client_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.client_session_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>(GetArena()); + _impl_.client_session_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ClientSession*>(p); } - return client_session_; + return _impl_.client_session_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* ConnectionsLog::mutable_client_session() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NONNULL ConnectionsLog::mutable_client_session() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* _msg = _internal_mutable_client_session(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.client_session) return _msg; } -inline void ConnectionsLog::set_allocated_client_session(::location::nearby::analytics::proto::ConnectionsLog_ClientSession* client_session) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog::set_allocated_client_session(::location::nearby::analytics::proto::ConnectionsLog_ClientSession* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete client_session_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.client_session_); } - if (client_session) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_ClientSession>::GetOwningArena(client_session); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - client_session = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, client_session, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - client_session_ = client_session; + + _impl_.client_session_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ClientSession*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.client_session) } // optional string version = 3; -inline bool ConnectionsLog::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionsLog::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionsLog::has_version() const { - return _internal_has_version(); -} inline void ConnectionsLog::clear_version() { - version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ConnectionsLog::version() const { +inline const ::std::string& ConnectionsLog::version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog::set_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog::set_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.version) } -inline std::string* ConnectionsLog::mutable_version() { - std::string* _s = _internal_mutable_version(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog::mutable_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.version) return _s; } -inline const std::string& ConnectionsLog::_internal_version() const { - return version_.Get(); +inline const ::std::string& ConnectionsLog::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_.Get(); } -inline void ConnectionsLog::_internal_set_version(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog::_internal_set_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.Set(value, GetArena()); } -inline std::string* ConnectionsLog::_internal_mutable_version() { - _has_bits_[0] |= 0x00000001u; - return version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog::_internal_mutable_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.version_.Mutable( GetArena()); } -inline std::string* ConnectionsLog::release_version() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog::release_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.version) - if (!_internal_has_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog::set_allocated_version(std::string* version) { - if (version != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void ConnectionsLog::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.version) } // optional .location.nearby.analytics.proto.ConnectionsLog.ErrorCode error_code = 4; -inline bool ConnectionsLog::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || error_code_ != nullptr); +inline bool ConnectionsLog::has_error_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.error_code_ != nullptr); return value; } -inline bool ConnectionsLog::has_error_code() const { - return _internal_has_error_code(); -} inline void ConnectionsLog::clear_error_code() { - if (error_code_ != nullptr) error_code_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.error_code_ != nullptr) _impl_.error_code_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& ConnectionsLog::_internal_error_code() const { - const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* p = error_code_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::analytics::proto::_ConnectionsLog_ErrorCode_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* p = _impl_.error_code_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::analytics::proto::_ConnectionsLog_ErrorCode_default_instance_); } -inline const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& ConnectionsLog::error_code() const { +inline const ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode& ConnectionsLog::error_code() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.error_code) return _internal_error_code(); } inline void ConnectionsLog::unsafe_arena_set_allocated_error_code( - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* error_code) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_code_); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.error_code_); } - error_code_ = error_code; - if (error_code) { - _has_bits_[0] |= 0x00000008u; + _impl_.error_code_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.analytics.proto.ConnectionsLog.error_code) } -inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* ConnectionsLog::release_error_code() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* temp = error_code_; - error_code_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE ConnectionsLog::release_error_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* released = _impl_.error_code_; + _impl_.error_code_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* ConnectionsLog::unsafe_arena_release_error_code() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE ConnectionsLog::unsafe_arena_release_error_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.error_code) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* temp = error_code_; - error_code_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* temp = _impl_.error_code_; + _impl_.error_code_ = nullptr; return temp; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* ConnectionsLog::_internal_mutable_error_code() { - _has_bits_[0] |= 0x00000008u; - if (error_code_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>(GetArenaForAllocation()); - error_code_ = p; +inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NONNULL ConnectionsLog::_internal_mutable_error_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.error_code_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>(GetArena()); + _impl_.error_code_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode*>(p); } - return error_code_; + return _impl_.error_code_; } -inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* ConnectionsLog::mutable_error_code() { +inline ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NONNULL ConnectionsLog::mutable_error_code() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* _msg = _internal_mutable_error_code(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.error_code) return _msg; } -inline void ConnectionsLog::set_allocated_error_code(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* error_code) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ConnectionsLog::set_allocated_error_code(::location::nearby::analytics::proto::ConnectionsLog_ErrorCode* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete error_code_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.error_code_); } - if (error_code) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode>::GetOwningArena(error_code); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - error_code = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, error_code, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - error_code_ = error_code; + + _impl_.error_code_ = reinterpret_cast<::location::nearby::analytics::proto::ConnectionsLog_ErrorCode*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.error_code) } // optional .location.nearby.proto.connections.LogSource log_source = 5; -inline bool ConnectionsLog::_internal_has_log_source() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool ConnectionsLog::has_log_source() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool ConnectionsLog::has_log_source() const { - return _internal_has_log_source(); -} inline void ConnectionsLog::clear_log_source() { - log_source_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::connections::LogSource ConnectionsLog::_internal_log_source() const { - return static_cast< ::location::nearby::proto::connections::LogSource >(log_source_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.log_source_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::proto::connections::LogSource ConnectionsLog::log_source() const { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.log_source) return _internal_log_source(); } -inline void ConnectionsLog::_internal_set_log_source(::location::nearby::proto::connections::LogSource value) { - assert(::location::nearby::proto::connections::LogSource_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - log_source_ = value; -} inline void ConnectionsLog::set_log_source(::location::nearby::proto::connections::LogSource value) { _internal_set_log_source(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.log_source) } +inline ::location::nearby::proto::connections::LogSource ConnectionsLog::_internal_log_source() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::connections::LogSource>(_impl_.log_source_); +} +inline void ConnectionsLog::_internal_set_log_source(::location::nearby::proto::connections::LogSource value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::connections::LogSource_internal_data_)); + _impl_.log_source_ = value; +} // optional string files_migration_phase = 6; -inline bool ConnectionsLog::_internal_has_files_migration_phase() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ConnectionsLog::has_files_migration_phase() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ConnectionsLog::has_files_migration_phase() const { - return _internal_has_files_migration_phase(); -} inline void ConnectionsLog::clear_files_migration_phase() { - files_migration_phase_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.files_migration_phase_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ConnectionsLog::files_migration_phase() const { +inline const ::std::string& ConnectionsLog::files_migration_phase() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.files_migration_phase) return _internal_files_migration_phase(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionsLog::set_files_migration_phase(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ConnectionsLog::set_files_migration_phase(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.files_migration_phase_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.files_migration_phase) } -inline std::string* ConnectionsLog::mutable_files_migration_phase() { - std::string* _s = _internal_mutable_files_migration_phase(); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog::mutable_files_migration_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_files_migration_phase(); // @@protoc_insertion_point(field_mutable:location.nearby.analytics.proto.ConnectionsLog.files_migration_phase) return _s; } -inline const std::string& ConnectionsLog::_internal_files_migration_phase() const { - return files_migration_phase_.Get(); +inline const ::std::string& ConnectionsLog::_internal_files_migration_phase() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.files_migration_phase_.Get(); } -inline void ConnectionsLog::_internal_set_files_migration_phase(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ConnectionsLog::_internal_set_files_migration_phase(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.files_migration_phase_.Set(value, GetArena()); } -inline std::string* ConnectionsLog::_internal_mutable_files_migration_phase() { - _has_bits_[0] |= 0x00000002u; - return files_migration_phase_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ConnectionsLog::_internal_mutable_files_migration_phase() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.files_migration_phase_.Mutable( GetArena()); } -inline std::string* ConnectionsLog::release_files_migration_phase() { +inline ::std::string* PROTOBUF_NULLABLE ConnectionsLog::release_files_migration_phase() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.files_migration_phase) - if (!_internal_has_files_migration_phase()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = files_migration_phase_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (files_migration_phase_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.files_migration_phase_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.files_migration_phase_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ConnectionsLog::set_allocated_files_migration_phase(std::string* files_migration_phase) { - if (files_migration_phase != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void ConnectionsLog::set_allocated_files_migration_phase(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - files_migration_phase_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), files_migration_phase, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (files_migration_phase_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.files_migration_phase_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.files_migration_phase_.IsDefault()) { + _impl_.files_migration_phase_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.files_migration_phase) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace proto } // namespace analytics } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo_Platform> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // internal_2fproto_2fanalytics_2fconnections_5flog_2eproto_2epb_2eh diff --git a/compiled_proto/internal/proto/credential.pb.cc b/compiled_proto/internal/proto/credential.pb.cc index 33bd0f58..174e4e70 100644 --- a/compiled_proto/internal/proto/credential.pb.cc +++ b/compiled_proto/internal/proto/credential.pb.cc @@ -1,683 +1,1175 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/credential.proto +// Protobuf C++ Version: 6.33.3 #include "internal/proto/credential.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace nearby { namespace internal { -constexpr SharedCredential::SharedCredential( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : secret_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_seed_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , encrypted_metadata_bytes_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , metadata_encryption_key_tag_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , connection_signature_verification_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , advertisement_signature_verification_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , start_time_millis_(int64_t{0}) - , end_time_millis_(int64_t{0}) - , identity_type_(0) -{} + +inline constexpr SharedCredential::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + secret_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + key_seed_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + encrypted_metadata_bytes_v0_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + metadata_encryption_key_tag_v0_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + connection_signature_verification_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + advertisement_signature_verification_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + encrypted_metadata_bytes_v1_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_token_short_salt_adv_hmac_key_v1_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + dusi_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_token_extended_salt_adv_hmac_key_v1_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_token_signed_adv_hmac_key_v1_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + rust_encrypted_metadata_bytes_v0_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + start_time_millis_{::int64_t{0}}, + end_time_millis_{::int64_t{0}}, + identity_type_{static_cast< ::nearby::internal::IdentityType >(0)}, + credential_type_{static_cast< ::nearby::internal::CredentialType >(0)}, + id_{::int64_t{0}}, + credential_version_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharedCredential::SharedCredential(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharedCredential_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharedCredentialDefaultTypeInternal { - constexpr SharedCredentialDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharedCredentialDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharedCredentialDefaultTypeInternal() {} union { SharedCredential _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharedCredentialDefaultTypeInternal _SharedCredential_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharedCredentialDefaultTypeInternal _SharedCredential_default_instance_; } // namespace internal } // namespace nearby -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_internal_2fproto_2fcredential_2eproto[1]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_internal_2fproto_2fcredential_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_internal_2fproto_2fcredential_2eproto = nullptr; - -const uint32_t TableStruct_internal_2fproto_2fcredential_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, secret_id_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, key_seed_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, start_time_millis_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, end_time_millis_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, encrypted_metadata_bytes_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, metadata_encryption_key_tag_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, connection_signature_verification_key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, advertisement_signature_verification_key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, identity_type_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::SharedCredential, version_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::nearby::internal::SharedCredential)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::nearby::internal::_SharedCredential_default_instance_), -}; - -const char descriptor_table_protodef_internal_2fproto_2fcredential_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\037internal/proto/credential.proto\022\017nearb" - "y.internal\"\332\002\n\020SharedCredential\022\021\n\tsecre" - "t_id\030\001 \001(\014\022\020\n\010key_seed\030\002 \001(\014\022\031\n\021start_ti" - "me_millis\030\003 \001(\003\022\027\n\017end_time_millis\030\004 \001(\003" - "\022 \n\030encrypted_metadata_bytes\030\005 \001(\014\022#\n\033me" - "tadata_encryption_key_tag\030\006 \001(\014\022-\n%conne" - "ction_signature_verification_key\030\007 \001(\014\0220" - "\n(advertisement_signature_verification_k" - "ey\030\010 \001(\014\0224\n\ridentity_type\030\t \001(\0162\035.nearby" - ".internal.IdentityType\022\017\n\007version\030\n \001(\014*" - "\234\001\n\014IdentityType\022\035\n\031IDENTITY_TYPE_UNSPEC" - "IFIED\020\000\022\031\n\025IDENTITY_TYPE_PRIVATE\020\001\022\031\n\025ID" - "ENTITY_TYPE_TRUSTED\020\002\022\030\n\024IDENTITY_TYPE_P" - "UBLIC\020\003\022\035\n\031IDENTITY_TYPE_PROVISIONED\020\004B/" - "\n\032com.google.nearby.presenceB\017Credential" - "ProtoP\001b\006proto3" - ; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_internal_2fproto_2fcredential_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2fcredential_2eproto = { - false, false, 615, descriptor_table_protodef_internal_2fproto_2fcredential_2eproto, "internal/proto/credential.proto", - &descriptor_table_internal_2fproto_2fcredential_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_internal_2fproto_2fcredential_2eproto::offsets, - file_level_metadata_internal_2fproto_2fcredential_2eproto, file_level_enum_descriptors_internal_2fproto_2fcredential_2eproto, file_level_service_descriptors_internal_2fproto_2fcredential_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_internal_2fproto_2fcredential_2eproto_getter() { - return &descriptor_table_internal_2fproto_2fcredential_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_internal_2fproto_2fcredential_2eproto(&descriptor_table_internal_2fproto_2fcredential_2eproto); namespace nearby { namespace internal { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IdentityType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_internal_2fproto_2fcredential_2eproto); - return file_level_enum_descriptors_internal_2fproto_2fcredential_2eproto[0]; +PROTOBUF_CONSTINIT const uint32_t IdentityType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + IdentityType_strings[4] = {}; + +static const char IdentityType_names[] = { + "IDENTITY_TYPE_CONTACTS_GROUP" + "IDENTITY_TYPE_PRIVATE_GROUP" + "IDENTITY_TYPE_PUBLIC" + "IDENTITY_TYPE_UNSPECIFIED" +}; + +static const ::google::protobuf::internal::EnumEntry IdentityType_entries[] = { + {{&IdentityType_names[0], 28}, 2}, + {{&IdentityType_names[28], 27}, 1}, + {{&IdentityType_names[55], 20}, 3}, + {{&IdentityType_names[75], 25}, 0}, +}; + +static const int IdentityType_entries_by_number[] = { + 3, // 0 -> IDENTITY_TYPE_UNSPECIFIED + 1, // 1 -> IDENTITY_TYPE_PRIVATE_GROUP + 0, // 2 -> IDENTITY_TYPE_CONTACTS_GROUP + 2, // 3 -> IDENTITY_TYPE_PUBLIC +}; + +const ::std::string& IdentityType_Name(IdentityType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + IdentityType_entries, IdentityType_entries_by_number, 4, + IdentityType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(IdentityType_entries, + IdentityType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : IdentityType_strings[idx].get(); } -bool IdentityType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; + +bool IdentityType_Parse(::absl::string_view name, IdentityType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + IdentityType_entries, 4, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; +} +PROTOBUF_CONSTINIT const uint32_t CredentialType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + CredentialType_strings[3] = {}; + +static const char CredentialType_names[] = { + "CREDENTIAL_TYPE_DEVICE" + "CREDENTIAL_TYPE_GAIA" + "CREDENTIAL_TYPE_UNKNOWN" +}; + +static const ::google::protobuf::internal::EnumEntry CredentialType_entries[] = { + {{&CredentialType_names[0], 22}, 1}, + {{&CredentialType_names[22], 20}, 2}, + {{&CredentialType_names[42], 23}, 0}, +}; + +static const int CredentialType_entries_by_number[] = { + 2, // 0 -> CREDENTIAL_TYPE_UNKNOWN + 0, // 1 -> CREDENTIAL_TYPE_DEVICE + 1, // 2 -> CREDENTIAL_TYPE_GAIA +}; + +const ::std::string& CredentialType_Name(CredentialType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + CredentialType_entries, CredentialType_entries_by_number, 3, + CredentialType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(CredentialType_entries, + CredentialType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CredentialType_strings[idx].get(); } - +bool CredentialType_Parse(::absl::string_view name, CredentialType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + CredentialType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // =================================================================== class SharedCredential::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._has_bits_); }; -SharedCredential::SharedCredential(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharedCredential::SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharedCredential_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.internal.SharedCredential) } -SharedCredential::SharedCredential(const SharedCredential& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - secret_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_secret_id().empty()) { - secret_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_secret_id(), - GetArenaForAllocation()); - } - key_seed_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key_seed().empty()) { - key_seed_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key_seed(), - GetArenaForAllocation()); - } - encrypted_metadata_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - encrypted_metadata_bytes_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_encrypted_metadata_bytes().empty()) { - encrypted_metadata_bytes_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_encrypted_metadata_bytes(), - GetArenaForAllocation()); - } - metadata_encryption_key_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - metadata_encryption_key_tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_metadata_encryption_key_tag().empty()) { - metadata_encryption_key_tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_metadata_encryption_key_tag(), - GetArenaForAllocation()); - } - connection_signature_verification_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_connection_signature_verification_key().empty()) { - connection_signature_verification_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connection_signature_verification_key(), - GetArenaForAllocation()); - } - advertisement_signature_verification_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - advertisement_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_advertisement_signature_verification_key().empty()) { - advertisement_signature_verification_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_advertisement_signature_verification_key(), - GetArenaForAllocation()); - } - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_version().empty()) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(), - GetArenaForAllocation()); - } - ::memcpy(&start_time_millis_, &from.start_time_millis_, - static_cast(reinterpret_cast(&identity_type_) - - reinterpret_cast(&start_time_millis_)) + sizeof(identity_type_)); +PROTOBUF_NDEBUG_INLINE SharedCredential::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::SharedCredential& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + secret_id_(arena, from.secret_id_), + key_seed_(arena, from.key_seed_), + encrypted_metadata_bytes_v0_(arena, from.encrypted_metadata_bytes_v0_), + metadata_encryption_key_tag_v0_(arena, from.metadata_encryption_key_tag_v0_), + connection_signature_verification_key_(arena, from.connection_signature_verification_key_), + advertisement_signature_verification_key_(arena, from.advertisement_signature_verification_key_), + version_(arena, from.version_), + encrypted_metadata_bytes_v1_(arena, from.encrypted_metadata_bytes_v1_), + identity_token_short_salt_adv_hmac_key_v1_(arena, from.identity_token_short_salt_adv_hmac_key_v1_), + dusi_(arena, from.dusi_), + signature_version_(arena, from.signature_version_), + identity_token_extended_salt_adv_hmac_key_v1_(arena, from.identity_token_extended_salt_adv_hmac_key_v1_), + identity_token_signed_adv_hmac_key_v1_(arena, from.identity_token_signed_adv_hmac_key_v1_), + rust_encrypted_metadata_bytes_v0_(arena, from.rust_encrypted_metadata_bytes_v0_) {} + +SharedCredential::SharedCredential( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharedCredential& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharedCredential_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCredential* 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(&_impl_) + + offsetof(Impl_, start_time_millis_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, start_time_millis_), + offsetof(Impl_, credential_version_) - + offsetof(Impl_, start_time_millis_) + + sizeof(Impl_::credential_version_)); + // @@protoc_insertion_point(copy_constructor:nearby.internal.SharedCredential) } +PROTOBUF_NDEBUG_INLINE SharedCredential::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + secret_id_(arena), + key_seed_(arena), + encrypted_metadata_bytes_v0_(arena), + metadata_encryption_key_tag_v0_(arena), + connection_signature_verification_key_(arena), + advertisement_signature_verification_key_(arena), + version_(arena), + encrypted_metadata_bytes_v1_(arena), + identity_token_short_salt_adv_hmac_key_v1_(arena), + dusi_(arena), + signature_version_(arena), + identity_token_extended_salt_adv_hmac_key_v1_(arena), + identity_token_signed_adv_hmac_key_v1_(arena), + rust_encrypted_metadata_bytes_v0_(arena) {} -inline void SharedCredential::SharedCtor() { -secret_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -key_seed_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -encrypted_metadata_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - encrypted_metadata_bytes_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -metadata_encryption_key_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - metadata_encryption_key_tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -connection_signature_verification_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - connection_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -advertisement_signature_verification_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - advertisement_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&start_time_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&identity_type_) - - reinterpret_cast(&start_time_millis_)) + sizeof(identity_type_)); +inline void SharedCredential::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_time_millis_), + 0, + offsetof(Impl_, credential_version_) - + offsetof(Impl_, start_time_millis_) + + sizeof(Impl_::credential_version_)); } - SharedCredential::~SharedCredential() { // @@protoc_insertion_point(destructor:nearby.internal.SharedCredential) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SharedCredential::SharedDtor(MessageLite& self) { + SharedCredential& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.secret_id_.Destroy(); + this_._impl_.key_seed_.Destroy(); + this_._impl_.encrypted_metadata_bytes_v0_.Destroy(); + this_._impl_.metadata_encryption_key_tag_v0_.Destroy(); + this_._impl_.connection_signature_verification_key_.Destroy(); + this_._impl_.advertisement_signature_verification_key_.Destroy(); + this_._impl_.version_.Destroy(); + this_._impl_.encrypted_metadata_bytes_v1_.Destroy(); + this_._impl_.identity_token_short_salt_adv_hmac_key_v1_.Destroy(); + this_._impl_.dusi_.Destroy(); + this_._impl_.signature_version_.Destroy(); + this_._impl_.identity_token_extended_salt_adv_hmac_key_v1_.Destroy(); + this_._impl_.identity_token_signed_adv_hmac_key_v1_.Destroy(); + this_._impl_.rust_encrypted_metadata_bytes_v0_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharedCredential::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - secret_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_seed_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - encrypted_metadata_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - metadata_encryption_key_tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - connection_signature_verification_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - advertisement_signature_verification_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharedCredential::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharedCredential(arena); +} +constexpr auto SharedCredential::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharedCredential), + alignof(SharedCredential)); +} +constexpr auto SharedCredential::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<33>{ + { + &_SharedCredential_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharedCredential::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharedCredential::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharedCredential::ByteSizeLong, + &SharedCredential::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._cached_size_), + true, + }, + "nearby.internal.SharedCredential", + }; } -void SharedCredential::ArenaDtor(void* object) { - SharedCredential* _this = reinterpret_cast< SharedCredential* >(object); - (void)_this; -} -void SharedCredential::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharedCredential::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_ = + SharedCredential::InternalGenerateClassData_(); -void SharedCredential::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharedCredential::GetClassData() const { + return SharedCredential_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 20, 0, 78, 2> +SharedCredential::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._has_bits_), + 0, // no _extensions_ + 20, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4293918720, // skipmap + offsetof(decltype(_table_), field_entries), + 20, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharedCredential_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::SharedCredential>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bytes secret_id = 1 [deprecated = true]; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.secret_id_)}}, + // bytes key_seed = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.key_seed_)}}, + // int64 start_time_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 14, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_)}}, + // int64 end_time_millis = 4; + {::_pbi::TcParser::FastV64S1, + {32, 15, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.end_time_millis_)}}, + // bytes encrypted_metadata_bytes_v0 = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v0_)}}, + // bytes metadata_encryption_key_tag_v0 = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.metadata_encryption_key_tag_v0_)}}, + // bytes connection_signature_verification_key = 7; + {::_pbi::TcParser::FastBS1, + {58, 4, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.connection_signature_verification_key_)}}, + // bytes advertisement_signature_verification_key = 8; + {::_pbi::TcParser::FastBS1, + {66, 5, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.advertisement_signature_verification_key_)}}, + // .nearby.internal.IdentityType identity_type = 9; + {::_pbi::TcParser::FastV32S1, + {72, 16, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_type_)}}, + // bytes version = 10 [deprecated = true]; + {::_pbi::TcParser::FastBS1, + {82, 6, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.version_)}}, + // .nearby.internal.CredentialType credential_type = 11; + {::_pbi::TcParser::FastV32S1, + {88, 17, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_type_)}}, + // bytes encrypted_metadata_bytes_v1 = 12; + {::_pbi::TcParser::FastBS1, + {98, 7, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v1_)}}, + // bytes identity_token_short_salt_adv_hmac_key_v1 = 13; + {::_pbi::TcParser::FastBS1, + {106, 8, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_short_salt_adv_hmac_key_v1_)}}, + // int64 id = 14; + {::_pbi::TcParser::FastV64S1, + {112, 18, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.id_)}}, + // string dusi = 15; + {::_pbi::TcParser::FastUS1, + {122, 9, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.dusi_)}}, + // string signature_version = 16 [deprecated = true]; + {::_pbi::TcParser::FastUS2, + {386, 10, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.signature_version_)}}, + // bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; + {::_pbi::TcParser::FastBS2, + {394, 11, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_extended_salt_adv_hmac_key_v1_)}}, + // bytes identity_token_signed_adv_hmac_key_v1 = 18; + {::_pbi::TcParser::FastBS2, + {402, 12, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_signed_adv_hmac_key_v1_)}}, + // int64 credential_version = 19; + {::_pbi::TcParser::FastV64S2, + {408, 19, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_)}}, + // bytes rust_encrypted_metadata_bytes_v0 = 20; + {::_pbi::TcParser::FastBS2, + {418, 13, 0, + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.rust_encrypted_metadata_bytes_v0_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes secret_id = 1 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.secret_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes key_seed = 2; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.key_seed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // int64 start_time_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 end_time_millis = 4; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.end_time_millis_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // bytes encrypted_metadata_bytes_v0 = 5; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v0_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes metadata_encryption_key_tag_v0 = 6; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.metadata_encryption_key_tag_v0_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes connection_signature_verification_key = 7; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.connection_signature_verification_key_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes advertisement_signature_verification_key = 8; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.advertisement_signature_verification_key_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .nearby.internal.IdentityType identity_type = 9; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_type_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // bytes version = 10 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.version_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .nearby.internal.CredentialType credential_type = 11; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_type_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // bytes encrypted_metadata_bytes_v1 = 12; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v1_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes identity_token_short_salt_adv_hmac_key_v1 = 13; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_short_salt_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // int64 id = 14; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.id_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // string dusi = 15; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.dusi_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string signature_version = 16 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.signature_version_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_extended_salt_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes identity_token_signed_adv_hmac_key_v1 = 18; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_signed_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // int64 credential_version = 19; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // bytes rust_encrypted_metadata_bytes_v0 = 20; + {PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.rust_encrypted_metadata_bytes_v0_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\40\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\21\0\0\0\0\0\0\0" + "nearby.internal.SharedCredential" + "dusi" + "signature_version" + }}, +}; +PROTOBUF_NOINLINE void SharedCredential::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.internal.SharedCredential) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - secret_id_.ClearToEmpty(); - key_seed_.ClearToEmpty(); - encrypted_metadata_bytes_.ClearToEmpty(); - metadata_encryption_key_tag_.ClearToEmpty(); - connection_signature_verification_key_.ClearToEmpty(); - advertisement_signature_verification_key_.ClearToEmpty(); - version_.ClearToEmpty(); - ::memset(&start_time_millis_, 0, static_cast( - reinterpret_cast(&identity_type_) - - reinterpret_cast(&start_time_millis_)) + sizeof(identity_type_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SharedCredential::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bytes secret_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_secret_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes key_seed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_key_seed(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int64 start_time_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - start_time_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int64 end_time_millis = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - end_time_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes encrypted_metadata_bytes = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_encrypted_metadata_bytes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes metadata_encryption_key_tag = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_metadata_encryption_key_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes connection_signature_verification_key = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_connection_signature_verification_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes advertisement_signature_verification_key = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_advertisement_signature_verification_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.internal.IdentityType identity_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_identity_type(static_cast<::nearby::internal::IdentityType>(val)); - } else - goto handle_unusual; - continue; - // bytes version = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.secret_id_.ClearNonDefaultToEmpty(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.key_seed_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.encrypted_metadata_bytes_v0_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.metadata_encryption_key_tag_v0_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.connection_signature_verification_key_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.advertisement_signature_verification_key_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _impl_.version_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _impl_.encrypted_metadata_bytes_v1_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _impl_.identity_token_short_salt_adv_hmac_key_v1_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _impl_.dusi_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _impl_.signature_version_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _impl_.identity_token_signed_adv_hmac_key_v1_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _impl_.rust_encrypted_metadata_bytes_v0_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000c000U)) { + ::memset(&_impl_.start_time_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.end_time_millis_) - + reinterpret_cast(&_impl_.start_time_millis_)) + sizeof(_impl_.end_time_millis_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) { + ::memset(&_impl_.identity_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.credential_version_) - + reinterpret_cast(&_impl_.identity_type_)) + sizeof(_impl_.credential_version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* SharedCredential::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharedCredential::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharedCredential& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharedCredential::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharedCredential& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.SharedCredential) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // bytes secret_id = 1; - if (!this->_internal_secret_id().empty()) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_secret_id(), target); + cached_has_bits = this_._impl_._has_bits_[0]; + // bytes secret_id = 1 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_secret_id().empty()) { + const ::std::string& _s = this_._internal_secret_id(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes key_seed = 2; - if (!this->_internal_key_seed().empty()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_key_seed(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key_seed().empty()) { + const ::std::string& _s = this_._internal_key_seed(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // int64 start_time_millis = 3; - if (this->_internal_start_time_millis() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_start_time_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_start_time_millis() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_start_time_millis(), target); + } } // int64 end_time_millis = 4; - if (this->_internal_end_time_millis() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_end_time_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_end_time_millis() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_end_time_millis(), target); + } } - // bytes encrypted_metadata_bytes = 5; - if (!this->_internal_encrypted_metadata_bytes().empty()) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_encrypted_metadata_bytes(), target); + // bytes encrypted_metadata_bytes_v0 = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_encrypted_metadata_bytes_v0().empty()) { + const ::std::string& _s = this_._internal_encrypted_metadata_bytes_v0(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - // bytes metadata_encryption_key_tag = 6; - if (!this->_internal_metadata_encryption_key_tag().empty()) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_metadata_encryption_key_tag(), target); + // bytes metadata_encryption_key_tag_v0 = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_metadata_encryption_key_tag_v0().empty()) { + const ::std::string& _s = this_._internal_metadata_encryption_key_tag_v0(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } // bytes connection_signature_verification_key = 7; - if (!this->_internal_connection_signature_verification_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 7, this->_internal_connection_signature_verification_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_connection_signature_verification_key().empty()) { + const ::std::string& _s = this_._internal_connection_signature_verification_key(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } // bytes advertisement_signature_verification_key = 8; - if (!this->_internal_advertisement_signature_verification_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 8, this->_internal_advertisement_signature_verification_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (!this_._internal_advertisement_signature_verification_key().empty()) { + const ::std::string& _s = this_._internal_advertisement_signature_verification_key(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // .nearby.internal.IdentityType identity_type = 9; - if (this->_internal_identity_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_identity_type(), target); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_identity_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_identity_type(), target); + } } - // bytes version = 10; - if (!this->_internal_version().empty()) { - target = stream->WriteBytesMaybeAliased( - 10, this->_internal_version(), target); + // bytes version = 10 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (!this_._internal_version().empty()) { + const ::std::string& _s = this_._internal_version(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + // .nearby.internal.CredentialType credential_type = 11; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (this_._internal_credential_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_credential_type(), target); + } + } + + // bytes encrypted_metadata_bytes_v1 = 12; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (!this_._internal_encrypted_metadata_bytes_v1().empty()) { + const ::std::string& _s = this_._internal_encrypted_metadata_bytes_v1(); + target = stream->WriteBytesMaybeAliased(12, _s, target); + } + } + + // bytes identity_token_short_salt_adv_hmac_key_v1 = 13; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (!this_._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) { + const ::std::string& _s = this_._internal_identity_token_short_salt_adv_hmac_key_v1(); + target = stream->WriteBytesMaybeAliased(13, _s, target); + } + } + + // int64 id = 14; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (this_._internal_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>( + stream, this_._internal_id(), target); + } + } + + // string dusi = 15; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (!this_._internal_dusi().empty()) { + const ::std::string& _s = this_._internal_dusi(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.SharedCredential.dusi"); + target = stream->WriteStringMaybeAliased(15, _s, target); + } + } + + // string signature_version = 16 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (!this_._internal_signature_version().empty()) { + const ::std::string& _s = this_._internal_signature_version(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.SharedCredential.signature_version"); + target = stream->WriteStringMaybeAliased(16, _s, target); + } + } + + // bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (!this_._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) { + const ::std::string& _s = this_._internal_identity_token_extended_salt_adv_hmac_key_v1(); + target = stream->WriteBytesMaybeAliased(17, _s, target); + } + } + + // bytes identity_token_signed_adv_hmac_key_v1 = 18; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (!this_._internal_identity_token_signed_adv_hmac_key_v1().empty()) { + const ::std::string& _s = this_._internal_identity_token_signed_adv_hmac_key_v1(); + target = stream->WriteBytesMaybeAliased(18, _s, target); + } + } + + // int64 credential_version = 19; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (this_._internal_credential_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 19, this_._internal_credential_version(), target); + } + } + + // bytes rust_encrypted_metadata_bytes_v0 = 20; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (!this_._internal_rust_encrypted_metadata_bytes_v0().empty()) { + const ::std::string& _s = this_._internal_rust_encrypted_metadata_bytes_v0(); + target = stream->WriteBytesMaybeAliased(20, _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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.SharedCredential) return target; } -size_t SharedCredential::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.internal.SharedCredential) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharedCredential::ByteSizeLong(const MessageLite& base) { + const SharedCredential& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharedCredential::ByteSizeLong() const { + const SharedCredential& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.SharedCredential) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes secret_id = 1; - if (!this->_internal_secret_id().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_secret_id()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // bytes secret_id = 1 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_secret_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_secret_id()); + } + } + // bytes key_seed = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key_seed().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_key_seed()); + } + } + // bytes encrypted_metadata_bytes_v0 = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_encrypted_metadata_bytes_v0().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_metadata_bytes_v0()); + } + } + // bytes metadata_encryption_key_tag_v0 = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_metadata_encryption_key_tag_v0().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_metadata_encryption_key_tag_v0()); + } + } + // bytes connection_signature_verification_key = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_connection_signature_verification_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_connection_signature_verification_key()); + } + } + // bytes advertisement_signature_verification_key = 8; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (!this_._internal_advertisement_signature_verification_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_advertisement_signature_verification_key()); + } + } + // bytes version = 10 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (!this_._internal_version().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_version()); + } + } + // bytes encrypted_metadata_bytes_v1 = 12; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (!this_._internal_encrypted_metadata_bytes_v1().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_metadata_bytes_v1()); + } + } } - - // bytes key_seed = 2; - if (!this->_internal_key_seed().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_key_seed()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // bytes identity_token_short_salt_adv_hmac_key_v1 = 13; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (!this_._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_identity_token_short_salt_adv_hmac_key_v1()); + } + } + // string dusi = 15; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (!this_._internal_dusi().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_dusi()); + } + } + // string signature_version = 16 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (!this_._internal_signature_version().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_signature_version()); + } + } + // bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (!this_._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_identity_token_extended_salt_adv_hmac_key_v1()); + } + } + // bytes identity_token_signed_adv_hmac_key_v1 = 18; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (!this_._internal_identity_token_signed_adv_hmac_key_v1().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_identity_token_signed_adv_hmac_key_v1()); + } + } + // bytes rust_encrypted_metadata_bytes_v0 = 20; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (!this_._internal_rust_encrypted_metadata_bytes_v0().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_rust_encrypted_metadata_bytes_v0()); + } + } + // int64 start_time_millis = 3; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_start_time_millis() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_start_time_millis()); + } + } + // int64 end_time_millis = 4; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_end_time_millis() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_end_time_millis()); + } + } } - - // bytes encrypted_metadata_bytes = 5; - if (!this->_internal_encrypted_metadata_bytes().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_metadata_bytes()); + if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) { + // .nearby.internal.IdentityType identity_type = 9; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_identity_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_identity_type()); + } + } + // .nearby.internal.CredentialType credential_type = 11; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (this_._internal_credential_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_credential_type()); + } + } + // int64 id = 14; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (this_._internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_id()); + } + } + // int64 credential_version = 19; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (this_._internal_credential_version() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::Int64Size( + this_._internal_credential_version()); + } + } } - - // bytes metadata_encryption_key_tag = 6; - if (!this->_internal_metadata_encryption_key_tag().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_metadata_encryption_key_tag()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - // bytes connection_signature_verification_key = 7; - if (!this->_internal_connection_signature_verification_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_connection_signature_verification_key()); - } - - // bytes advertisement_signature_verification_key = 8; - if (!this->_internal_advertisement_signature_verification_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_advertisement_signature_verification_key()); - } - - // bytes version = 10; - if (!this->_internal_version().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_version()); - } - - // int64 start_time_millis = 3; - if (this->_internal_start_time_millis() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_start_time_millis()); - } - - // int64 end_time_millis = 4; - if (this->_internal_end_time_millis() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_end_time_millis()); - } - - // .nearby.internal.IdentityType identity_type = 9; - if (this->_internal_identity_type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_identity_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SharedCredential::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - SharedCredential::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SharedCredential::GetClassData() const { return &_class_data_; } +void SharedCredential::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.SharedCredential) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharedCredential::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void SharedCredential::MergeFrom(const SharedCredential& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.SharedCredential) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_secret_id().empty()) { - _internal_set_secret_id(from._internal_secret_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_secret_id().empty()) { + _this->_internal_set_secret_id(from._internal_secret_id()); + } else { + if (_this->_impl_.secret_id_.IsDefault()) { + _this->_internal_set_secret_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_key_seed().empty()) { + _this->_internal_set_key_seed(from._internal_key_seed()); + } else { + if (_this->_impl_.key_seed_.IsDefault()) { + _this->_internal_set_key_seed(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_encrypted_metadata_bytes_v0().empty()) { + _this->_internal_set_encrypted_metadata_bytes_v0(from._internal_encrypted_metadata_bytes_v0()); + } else { + if (_this->_impl_.encrypted_metadata_bytes_v0_.IsDefault()) { + _this->_internal_set_encrypted_metadata_bytes_v0(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_metadata_encryption_key_tag_v0().empty()) { + _this->_internal_set_metadata_encryption_key_tag_v0(from._internal_metadata_encryption_key_tag_v0()); + } else { + if (_this->_impl_.metadata_encryption_key_tag_v0_.IsDefault()) { + _this->_internal_set_metadata_encryption_key_tag_v0(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!from._internal_connection_signature_verification_key().empty()) { + _this->_internal_set_connection_signature_verification_key(from._internal_connection_signature_verification_key()); + } else { + if (_this->_impl_.connection_signature_verification_key_.IsDefault()) { + _this->_internal_set_connection_signature_verification_key(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (!from._internal_advertisement_signature_verification_key().empty()) { + _this->_internal_set_advertisement_signature_verification_key(from._internal_advertisement_signature_verification_key()); + } else { + if (_this->_impl_.advertisement_signature_verification_key_.IsDefault()) { + _this->_internal_set_advertisement_signature_verification_key(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } else { + if (_this->_impl_.version_.IsDefault()) { + _this->_internal_set_version(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (!from._internal_encrypted_metadata_bytes_v1().empty()) { + _this->_internal_set_encrypted_metadata_bytes_v1(from._internal_encrypted_metadata_bytes_v1()); + } else { + if (_this->_impl_.encrypted_metadata_bytes_v1_.IsDefault()) { + _this->_internal_set_encrypted_metadata_bytes_v1(""); + } + } + } } - if (!from._internal_key_seed().empty()) { - _internal_set_key_seed(from._internal_key_seed()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (!from._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) { + _this->_internal_set_identity_token_short_salt_adv_hmac_key_v1(from._internal_identity_token_short_salt_adv_hmac_key_v1()); + } else { + if (_this->_impl_.identity_token_short_salt_adv_hmac_key_v1_.IsDefault()) { + _this->_internal_set_identity_token_short_salt_adv_hmac_key_v1(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (!from._internal_dusi().empty()) { + _this->_internal_set_dusi(from._internal_dusi()); + } else { + if (_this->_impl_.dusi_.IsDefault()) { + _this->_internal_set_dusi(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (!from._internal_signature_version().empty()) { + _this->_internal_set_signature_version(from._internal_signature_version()); + } else { + if (_this->_impl_.signature_version_.IsDefault()) { + _this->_internal_set_signature_version(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (!from._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) { + _this->_internal_set_identity_token_extended_salt_adv_hmac_key_v1(from._internal_identity_token_extended_salt_adv_hmac_key_v1()); + } else { + if (_this->_impl_.identity_token_extended_salt_adv_hmac_key_v1_.IsDefault()) { + _this->_internal_set_identity_token_extended_salt_adv_hmac_key_v1(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (!from._internal_identity_token_signed_adv_hmac_key_v1().empty()) { + _this->_internal_set_identity_token_signed_adv_hmac_key_v1(from._internal_identity_token_signed_adv_hmac_key_v1()); + } else { + if (_this->_impl_.identity_token_signed_adv_hmac_key_v1_.IsDefault()) { + _this->_internal_set_identity_token_signed_adv_hmac_key_v1(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (!from._internal_rust_encrypted_metadata_bytes_v0().empty()) { + _this->_internal_set_rust_encrypted_metadata_bytes_v0(from._internal_rust_encrypted_metadata_bytes_v0()); + } else { + if (_this->_impl_.rust_encrypted_metadata_bytes_v0_.IsDefault()) { + _this->_internal_set_rust_encrypted_metadata_bytes_v0(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (from._internal_start_time_millis() != 0) { + _this->_impl_.start_time_millis_ = from._impl_.start_time_millis_; + } + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (from._internal_end_time_millis() != 0) { + _this->_impl_.end_time_millis_ = from._impl_.end_time_millis_; + } + } } - if (!from._internal_encrypted_metadata_bytes().empty()) { - _internal_set_encrypted_metadata_bytes(from._internal_encrypted_metadata_bytes()); + if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (from._internal_identity_type() != 0) { + _this->_impl_.identity_type_ = from._impl_.identity_type_; + } + } + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (from._internal_credential_type() != 0) { + _this->_impl_.credential_type_ = from._impl_.credential_type_; + } + } + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (from._internal_id() != 0) { + _this->_impl_.id_ = from._impl_.id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (from._internal_credential_version() != 0) { + _this->_impl_.credential_version_ = from._impl_.credential_version_; + } + } } - if (!from._internal_metadata_encryption_key_tag().empty()) { - _internal_set_metadata_encryption_key_tag(from._internal_metadata_encryption_key_tag()); - } - if (!from._internal_connection_signature_verification_key().empty()) { - _internal_set_connection_signature_verification_key(from._internal_connection_signature_verification_key()); - } - if (!from._internal_advertisement_signature_verification_key().empty()) { - _internal_set_advertisement_signature_verification_key(from._internal_advertisement_signature_verification_key()); - } - if (!from._internal_version().empty()) { - _internal_set_version(from._internal_version()); - } - if (from._internal_start_time_millis() != 0) { - _internal_set_start_time_millis(from._internal_start_time_millis()); - } - if (from._internal_end_time_millis() != 0) { - _internal_set_end_time_millis(from._internal_end_time_millis()); - } - if (from._internal_identity_type() != 0) { - _internal_set_identity_type(from._internal_identity_type()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharedCredential::CopyFrom(const SharedCredential& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.SharedCredential) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.SharedCredential) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharedCredential::IsInitialized() const { - return true; -} -void SharedCredential::InternalSwap(SharedCredential* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharedCredential::InternalSwap(SharedCredential* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &secret_id_, lhs_arena, - &other->secret_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &key_seed_, lhs_arena, - &other->key_seed_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &encrypted_metadata_bytes_, lhs_arena, - &other->encrypted_metadata_bytes_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &metadata_encryption_key_tag_, lhs_arena, - &other->metadata_encryption_key_tag_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &connection_signature_verification_key_, lhs_arena, - &other->connection_signature_verification_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &advertisement_signature_verification_key_, lhs_arena, - &other->advertisement_signature_verification_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &version_, lhs_arena, - &other->version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharedCredential, identity_type_) - + sizeof(SharedCredential::identity_type_) - - PROTOBUF_FIELD_OFFSET(SharedCredential, start_time_millis_)>( - reinterpret_cast(&start_time_millis_), - reinterpret_cast(&other->start_time_millis_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SharedCredential::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_internal_2fproto_2fcredential_2eproto_getter, &descriptor_table_internal_2fproto_2fcredential_2eproto_once, - file_level_metadata_internal_2fproto_2fcredential_2eproto[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_id_, &other->_impl_.secret_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_seed_, &other->_impl_.key_seed_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_metadata_bytes_v0_, &other->_impl_.encrypted_metadata_bytes_v0_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.metadata_encryption_key_tag_v0_, &other->_impl_.metadata_encryption_key_tag_v0_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connection_signature_verification_key_, &other->_impl_.connection_signature_verification_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.advertisement_signature_verification_key_, &other->_impl_.advertisement_signature_verification_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_metadata_bytes_v1_, &other->_impl_.encrypted_metadata_bytes_v1_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_short_salt_adv_hmac_key_v1_, &other->_impl_.identity_token_short_salt_adv_hmac_key_v1_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dusi_, &other->_impl_.dusi_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_version_, &other->_impl_.signature_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_extended_salt_adv_hmac_key_v1_, &other->_impl_.identity_token_extended_salt_adv_hmac_key_v1_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_signed_adv_hmac_key_v1_, &other->_impl_.identity_token_signed_adv_hmac_key_v1_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rust_encrypted_metadata_bytes_v0_, &other->_impl_.rust_encrypted_metadata_bytes_v0_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_) + + sizeof(SharedCredential::_impl_.credential_version_) + - PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_)>( + reinterpret_cast(&_impl_.start_time_millis_), + reinterpret_cast(&other->_impl_.start_time_millis_)); } // @@protoc_insertion_point(namespace_scope) } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::internal::SharedCredential* Arena::CreateMaybeMessage< ::nearby::internal::SharedCredential >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::internal::SharedCredential >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/internal/proto/credential.pb.h b/compiled_proto/internal/proto/credential.pb.h index 30750739..4d591200 100644 --- a/compiled_proto/internal/proto/credential.pb.h +++ b/compiled_proto/internal/proto/credential.pb.h @@ -1,126 +1,168 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/credential.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fcredential_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fcredential_2eproto +#ifndef internal_2fproto_2fcredential_2eproto_2epb_2eh +#define internal_2fproto_2fcredential_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fcredential_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_internal_2fproto_2fcredential_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2fcredential_2eproto; namespace nearby { namespace internal { +enum CredentialType : int; +extern const uint32_t CredentialType_internal_data_[]; +enum IdentityType : int; +extern const uint32_t IdentityType_internal_data_[]; class SharedCredential; struct SharedCredentialDefaultTypeInternal; extern SharedCredentialDefaultTypeInternal _SharedCredential_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_; } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::internal::SharedCredential* Arena::CreateMaybeMessage<::nearby::internal::SharedCredential>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::nearby::internal::CredentialType_internal_data_> + internal::EnumTraitsImpl::value<::nearby::internal::CredentialType>; +template <> +internal::EnumTraitsT<::nearby::internal::IdentityType_internal_data_> + internal::EnumTraitsImpl::value<::nearby::internal::IdentityType>; +} // namespace protobuf +} // namespace google + namespace nearby { namespace internal { - enum IdentityType : int { IDENTITY_TYPE_UNSPECIFIED = 0, - IDENTITY_TYPE_PRIVATE = 1, - IDENTITY_TYPE_TRUSTED = 2, + IDENTITY_TYPE_PRIVATE_GROUP = 1, + IDENTITY_TYPE_CONTACTS_GROUP = 2, IDENTITY_TYPE_PUBLIC = 3, - IDENTITY_TYPE_PROVISIONED = 4, - IdentityType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - IdentityType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + IdentityType_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + IdentityType_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), }; -bool IdentityType_IsValid(int value); -constexpr IdentityType IdentityType_MIN = IDENTITY_TYPE_UNSPECIFIED; -constexpr IdentityType IdentityType_MAX = IDENTITY_TYPE_PROVISIONED; -constexpr int IdentityType_ARRAYSIZE = IdentityType_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IdentityType_descriptor(); -template -inline const std::string& IdentityType_Name(T enum_t_value) { +extern const uint32_t IdentityType_internal_data_[]; +inline constexpr IdentityType IdentityType_MIN = + static_cast(0); +inline constexpr IdentityType IdentityType_MAX = + static_cast(3); +inline bool IdentityType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int IdentityType_ARRAYSIZE = 3 + 1; +const ::std::string& IdentityType_Name(IdentityType value); +template +const ::std::string& IdentityType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function IdentityType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - IdentityType_descriptor(), enum_t_value); + ::std::is_integral::value, + "Incorrect type passed to IdentityType_Name()."); + return IdentityType_Name(static_cast(value)); } -inline bool IdentityType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IdentityType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - IdentityType_descriptor(), name, value); +bool IdentityType_Parse( + ::absl::string_view name, IdentityType* PROTOBUF_NONNULL value); +enum CredentialType : int { + CREDENTIAL_TYPE_UNKNOWN = 0, + CREDENTIAL_TYPE_DEVICE = 1, + CREDENTIAL_TYPE_GAIA = 2, + CredentialType_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + CredentialType_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), +}; + +extern const uint32_t CredentialType_internal_data_[]; +inline constexpr CredentialType CredentialType_MIN = + static_cast(0); +inline constexpr CredentialType CredentialType_MAX = + static_cast(2); +inline bool CredentialType_IsValid(int value) { + return 0 <= value && value <= 2; } +inline constexpr int CredentialType_ARRAYSIZE = 2 + 1; +const ::std::string& CredentialType_Name(CredentialType value); +template +const ::std::string& CredentialType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to CredentialType_Name()."); + return CredentialType_Name(static_cast(value)); +} +bool CredentialType_Parse( + ::absl::string_view name, CredentialType* PROTOBUF_NONNULL value); + // =================================================================== -class SharedCredential final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.internal.SharedCredential) */ { + +// ------------------------------------------------------------------- + +class SharedCredential final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.SharedCredential) */ { public: inline SharedCredential() : SharedCredential(nullptr) {} - ~SharedCredential() override; - explicit constexpr SharedCredential(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharedCredential() PROTOBUF_FINAL; - SharedCredential(const SharedCredential& from); - SharedCredential(SharedCredential&& from) noexcept - : SharedCredential() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharedCredential* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharedCredential)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharedCredential(::google::protobuf::internal::ConstantInitialized); + + inline SharedCredential(const SharedCredential& from) : SharedCredential(nullptr, from) {} + inline SharedCredential(SharedCredential&& from) noexcept + : SharedCredential(nullptr, ::std::move(from)) {} inline SharedCredential& operator=(const SharedCredential& from) { CopyFrom(from); return *this; } inline SharedCredential& operator=(SharedCredential&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -128,701 +170,1546 @@ class SharedCredential final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SharedCredential& default_instance() { - return *internal_default_instance(); - } - static inline const SharedCredential* internal_default_instance() { - return reinterpret_cast( - &_SharedCredential_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(SharedCredential& a, SharedCredential& b) { - a.Swap(&b); + static const SharedCredential& default_instance() { + return *reinterpret_cast( + &_SharedCredential_default_instance_); } - inline void Swap(SharedCredential* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(SharedCredential& a, SharedCredential& b) { a.Swap(&b); } + inline void Swap(SharedCredential* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharedCredential* other) { + void UnsafeArenaSwap(SharedCredential* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharedCredential* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharedCredential* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SharedCredential& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SharedCredential& from); + void MergeFrom(const SharedCredential& from) { SharedCredential::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SharedCredential* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.internal.SharedCredential"; + bool IsInitialized() const { + return true; } - protected: - explicit SharedCredential(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharedCredential* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.SharedCredential"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + explicit SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharedCredential& from); + SharedCredential( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharedCredential&& from) noexcept + : SharedCredential(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSecretIdFieldNumber = 1, kKeySeedFieldNumber = 2, - kEncryptedMetadataBytesFieldNumber = 5, - kMetadataEncryptionKeyTagFieldNumber = 6, + kEncryptedMetadataBytesV0FieldNumber = 5, + kMetadataEncryptionKeyTagV0FieldNumber = 6, kConnectionSignatureVerificationKeyFieldNumber = 7, kAdvertisementSignatureVerificationKeyFieldNumber = 8, kVersionFieldNumber = 10, + kEncryptedMetadataBytesV1FieldNumber = 12, + kIdentityTokenShortSaltAdvHmacKeyV1FieldNumber = 13, + kDusiFieldNumber = 15, + kSignatureVersionFieldNumber = 16, + kIdentityTokenExtendedSaltAdvHmacKeyV1FieldNumber = 17, + kIdentityTokenSignedAdvHmacKeyV1FieldNumber = 18, + kRustEncryptedMetadataBytesV0FieldNumber = 20, kStartTimeMillisFieldNumber = 3, kEndTimeMillisFieldNumber = 4, kIdentityTypeFieldNumber = 9, + kCredentialTypeFieldNumber = 11, + kIdFieldNumber = 14, + kCredentialVersionFieldNumber = 19, }; - // bytes secret_id = 1; - void clear_secret_id(); - const std::string& secret_id() const; - template - void set_secret_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_secret_id(); - PROTOBUF_NODISCARD std::string* release_secret_id(); - void set_allocated_secret_id(std::string* secret_id); - private: - const std::string& _internal_secret_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const std::string& value); - std::string* _internal_mutable_secret_id(); - public: + // bytes secret_id = 1 [deprecated = true]; + [[deprecated]] void clear_secret_id() ; + [[deprecated]] const ::std::string& secret_id() const; + template + [[deprecated]] void set_secret_id(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_secret_id(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_secret_id(); + [[deprecated]] void set_allocated_secret_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_secret_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_secret_id(); + + public: // bytes key_seed = 2; - void clear_key_seed(); - const std::string& key_seed() const; - template - void set_key_seed(ArgT0&& arg0, ArgT... args); - std::string* mutable_key_seed(); - PROTOBUF_NODISCARD std::string* release_key_seed(); - void set_allocated_key_seed(std::string* key_seed); - private: - const std::string& _internal_key_seed() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key_seed(const std::string& value); - std::string* _internal_mutable_key_seed(); - public: + void clear_key_seed() ; + const ::std::string& key_seed() const; + template + void set_key_seed(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_key_seed(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_seed(); + void set_allocated_key_seed(::std::string* PROTOBUF_NULLABLE value); - // bytes encrypted_metadata_bytes = 5; - void clear_encrypted_metadata_bytes(); - const std::string& encrypted_metadata_bytes() const; - template - void set_encrypted_metadata_bytes(ArgT0&& arg0, ArgT... args); - std::string* mutable_encrypted_metadata_bytes(); - PROTOBUF_NODISCARD std::string* release_encrypted_metadata_bytes(); - void set_allocated_encrypted_metadata_bytes(std::string* encrypted_metadata_bytes); private: - const std::string& _internal_encrypted_metadata_bytes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_metadata_bytes(const std::string& value); - std::string* _internal_mutable_encrypted_metadata_bytes(); + const ::std::string& _internal_key_seed() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_key_seed(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_key_seed(); + public: + // bytes encrypted_metadata_bytes_v0 = 5; + void clear_encrypted_metadata_bytes_v0() ; + const ::std::string& encrypted_metadata_bytes_v0() const; + template + void set_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_metadata_bytes_v0(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_metadata_bytes_v0(); + void set_allocated_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value); - // bytes metadata_encryption_key_tag = 6; - void clear_metadata_encryption_key_tag(); - const std::string& metadata_encryption_key_tag() const; - template - void set_metadata_encryption_key_tag(ArgT0&& arg0, ArgT... args); - std::string* mutable_metadata_encryption_key_tag(); - PROTOBUF_NODISCARD std::string* release_metadata_encryption_key_tag(); - void set_allocated_metadata_encryption_key_tag(std::string* metadata_encryption_key_tag); private: - const std::string& _internal_metadata_encryption_key_tag() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key_tag(const std::string& value); - std::string* _internal_mutable_metadata_encryption_key_tag(); - public: + const ::std::string& _internal_encrypted_metadata_bytes_v0() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_metadata_bytes_v0(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_metadata_bytes_v0(); + public: + // bytes metadata_encryption_key_tag_v0 = 6; + void clear_metadata_encryption_key_tag_v0() ; + const ::std::string& metadata_encryption_key_tag_v0() const; + template + void set_metadata_encryption_key_tag_v0(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_metadata_encryption_key_tag_v0(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_metadata_encryption_key_tag_v0(); + void set_allocated_metadata_encryption_key_tag_v0(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_metadata_encryption_key_tag_v0() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key_tag_v0(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_metadata_encryption_key_tag_v0(); + + public: // bytes connection_signature_verification_key = 7; - void clear_connection_signature_verification_key(); - const std::string& connection_signature_verification_key() const; - template - void set_connection_signature_verification_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_connection_signature_verification_key(); - PROTOBUF_NODISCARD std::string* release_connection_signature_verification_key(); - void set_allocated_connection_signature_verification_key(std::string* connection_signature_verification_key); - private: - const std::string& _internal_connection_signature_verification_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_connection_signature_verification_key(const std::string& value); - std::string* _internal_mutable_connection_signature_verification_key(); - public: + void clear_connection_signature_verification_key() ; + const ::std::string& connection_signature_verification_key() const; + template + void set_connection_signature_verification_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_connection_signature_verification_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_signature_verification_key(); + void set_allocated_connection_signature_verification_key(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_connection_signature_verification_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_connection_signature_verification_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_connection_signature_verification_key(); + + public: // bytes advertisement_signature_verification_key = 8; - void clear_advertisement_signature_verification_key(); - const std::string& advertisement_signature_verification_key() const; - template - void set_advertisement_signature_verification_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_advertisement_signature_verification_key(); - PROTOBUF_NODISCARD std::string* release_advertisement_signature_verification_key(); - void set_allocated_advertisement_signature_verification_key(std::string* advertisement_signature_verification_key); - private: - const std::string& _internal_advertisement_signature_verification_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_advertisement_signature_verification_key(const std::string& value); - std::string* _internal_mutable_advertisement_signature_verification_key(); - public: + void clear_advertisement_signature_verification_key() ; + const ::std::string& advertisement_signature_verification_key() const; + template + void set_advertisement_signature_verification_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_advertisement_signature_verification_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_advertisement_signature_verification_key(); + void set_allocated_advertisement_signature_verification_key(::std::string* PROTOBUF_NULLABLE value); - // bytes version = 10; - void clear_version(); - const std::string& version() const; - template - void set_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* version); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: + const ::std::string& _internal_advertisement_signature_verification_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_advertisement_signature_verification_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_advertisement_signature_verification_key(); + public: + // bytes version = 10 [deprecated = true]; + [[deprecated]] void clear_version() ; + [[deprecated]] const ::std::string& version() const; + template + [[deprecated]] void set_version(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_version(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version(); + [[deprecated]] void set_allocated_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_version(); + + public: + // bytes encrypted_metadata_bytes_v1 = 12; + void clear_encrypted_metadata_bytes_v1() ; + const ::std::string& encrypted_metadata_bytes_v1() const; + template + void set_encrypted_metadata_bytes_v1(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_metadata_bytes_v1(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_metadata_bytes_v1(); + void set_allocated_encrypted_metadata_bytes_v1(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_encrypted_metadata_bytes_v1() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_metadata_bytes_v1(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_metadata_bytes_v1(); + + public: + // bytes identity_token_short_salt_adv_hmac_key_v1 = 13; + void clear_identity_token_short_salt_adv_hmac_key_v1() ; + const ::std::string& identity_token_short_salt_adv_hmac_key_v1() const; + template + void set_identity_token_short_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_identity_token_short_salt_adv_hmac_key_v1(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_short_salt_adv_hmac_key_v1(); + void set_allocated_identity_token_short_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_identity_token_short_salt_adv_hmac_key_v1() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_short_salt_adv_hmac_key_v1(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_short_salt_adv_hmac_key_v1(); + + public: + // string dusi = 15; + void clear_dusi() ; + const ::std::string& dusi() const; + template + void set_dusi(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_dusi(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_dusi(); + void set_allocated_dusi(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_dusi() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_dusi(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_dusi(); + + public: + // string signature_version = 16 [deprecated = true]; + [[deprecated]] void clear_signature_version() ; + [[deprecated]] const ::std::string& signature_version() const; + template + [[deprecated]] void set_signature_version(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_signature_version(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature_version(); + [[deprecated]] void set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_signature_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signature_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signature_version(); + + public: + // bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; + void clear_identity_token_extended_salt_adv_hmac_key_v1() ; + const ::std::string& identity_token_extended_salt_adv_hmac_key_v1() const; + template + void set_identity_token_extended_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_identity_token_extended_salt_adv_hmac_key_v1(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_extended_salt_adv_hmac_key_v1(); + void set_allocated_identity_token_extended_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_identity_token_extended_salt_adv_hmac_key_v1() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_extended_salt_adv_hmac_key_v1(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_extended_salt_adv_hmac_key_v1(); + + public: + // bytes identity_token_signed_adv_hmac_key_v1 = 18; + void clear_identity_token_signed_adv_hmac_key_v1() ; + const ::std::string& identity_token_signed_adv_hmac_key_v1() const; + template + void set_identity_token_signed_adv_hmac_key_v1(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_identity_token_signed_adv_hmac_key_v1(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_signed_adv_hmac_key_v1(); + void set_allocated_identity_token_signed_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_identity_token_signed_adv_hmac_key_v1() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_signed_adv_hmac_key_v1(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_signed_adv_hmac_key_v1(); + + public: + // bytes rust_encrypted_metadata_bytes_v0 = 20; + void clear_rust_encrypted_metadata_bytes_v0() ; + const ::std::string& rust_encrypted_metadata_bytes_v0() const; + template + void set_rust_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_rust_encrypted_metadata_bytes_v0(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rust_encrypted_metadata_bytes_v0(); + void set_allocated_rust_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_rust_encrypted_metadata_bytes_v0() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rust_encrypted_metadata_bytes_v0(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rust_encrypted_metadata_bytes_v0(); + + public: // int64 start_time_millis = 3; - void clear_start_time_millis(); - int64_t start_time_millis() const; - void set_start_time_millis(int64_t value); - private: - int64_t _internal_start_time_millis() const; - void _internal_set_start_time_millis(int64_t value); - public: + void clear_start_time_millis() ; + ::int64_t start_time_millis() const; + void set_start_time_millis(::int64_t value); + private: + ::int64_t _internal_start_time_millis() const; + void _internal_set_start_time_millis(::int64_t value); + + public: // int64 end_time_millis = 4; - void clear_end_time_millis(); - int64_t end_time_millis() const; - void set_end_time_millis(int64_t value); - private: - int64_t _internal_end_time_millis() const; - void _internal_set_end_time_millis(int64_t value); - public: + void clear_end_time_millis() ; + ::int64_t end_time_millis() const; + void set_end_time_millis(::int64_t value); + private: + ::int64_t _internal_end_time_millis() const; + void _internal_set_end_time_millis(::int64_t value); + + public: // .nearby.internal.IdentityType identity_type = 9; - void clear_identity_type(); + void clear_identity_type() ; ::nearby::internal::IdentityType identity_type() const; void set_identity_type(::nearby::internal::IdentityType value); + private: ::nearby::internal::IdentityType _internal_identity_type() const; void _internal_set_identity_type(::nearby::internal::IdentityType value); - public: + public: + // .nearby.internal.CredentialType credential_type = 11; + void clear_credential_type() ; + ::nearby::internal::CredentialType credential_type() const; + void set_credential_type(::nearby::internal::CredentialType value); + + private: + ::nearby::internal::CredentialType _internal_credential_type() const; + void _internal_set_credential_type(::nearby::internal::CredentialType value); + + public: + // int64 id = 14; + void clear_id() ; + ::int64_t id() const; + void set_id(::int64_t value); + + private: + ::int64_t _internal_id() const; + void _internal_set_id(::int64_t value); + + public: + // int64 credential_version = 19; + void clear_credential_version() ; + ::int64_t credential_version() const; + void set_credential_version(::int64_t value); + + private: + ::int64_t _internal_credential_version() const; + void _internal_set_credential_version(::int64_t value); + + public: // @@protoc_insertion_point(class_scope:nearby.internal.SharedCredential) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<5, 20, + 0, 78, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_seed_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr encrypted_metadata_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr metadata_encryption_key_tag_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connection_signature_verification_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr advertisement_signature_verification_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - int64_t start_time_millis_; - int64_t end_time_millis_; - int identity_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharedCredential& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr secret_id_; + ::google::protobuf::internal::ArenaStringPtr key_seed_; + ::google::protobuf::internal::ArenaStringPtr encrypted_metadata_bytes_v0_; + ::google::protobuf::internal::ArenaStringPtr metadata_encryption_key_tag_v0_; + ::google::protobuf::internal::ArenaStringPtr connection_signature_verification_key_; + ::google::protobuf::internal::ArenaStringPtr advertisement_signature_verification_key_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr encrypted_metadata_bytes_v1_; + ::google::protobuf::internal::ArenaStringPtr identity_token_short_salt_adv_hmac_key_v1_; + ::google::protobuf::internal::ArenaStringPtr dusi_; + ::google::protobuf::internal::ArenaStringPtr signature_version_; + ::google::protobuf::internal::ArenaStringPtr identity_token_extended_salt_adv_hmac_key_v1_; + ::google::protobuf::internal::ArenaStringPtr identity_token_signed_adv_hmac_key_v1_; + ::google::protobuf::internal::ArenaStringPtr rust_encrypted_metadata_bytes_v0_; + ::int64_t start_time_millis_; + ::int64_t end_time_millis_; + int identity_type_; + int credential_type_; + ::int64_t id_; + ::int64_t credential_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fcredential_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SharedCredential -// bytes secret_id = 1; +// bytes secret_id = 1 [deprecated = true]; inline void SharedCredential::clear_secret_id() { - secret_id_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.secret_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharedCredential::secret_id() const { +inline const ::std::string& SharedCredential::secret_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.secret_id) return _internal_secret_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_secret_id(ArgT0&& arg0, ArgT... args) { - - secret_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_secret_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.secret_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.secret_id) } -inline std::string* SharedCredential::mutable_secret_id() { - std::string* _s = _internal_mutable_secret_id(); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_secret_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_secret_id(); // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.secret_id) return _s; } -inline const std::string& SharedCredential::_internal_secret_id() const { - return secret_id_.Get(); +inline const ::std::string& SharedCredential::_internal_secret_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.secret_id_.Get(); } -inline void SharedCredential::_internal_set_secret_id(const std::string& value) { - - secret_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_secret_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.secret_id_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_secret_id() { - - return secret_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_secret_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.secret_id_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_secret_id() { +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_secret_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.secret_id) - return secret_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.secret_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.secret_id_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_secret_id(std::string* secret_id) { - if (secret_id != nullptr) { - +inline void SharedCredential::set_allocated_secret_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - secret_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), secret_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (secret_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.secret_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.secret_id_.IsDefault()) { + _impl_.secret_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.secret_id) } // bytes key_seed = 2; inline void SharedCredential::clear_key_seed() { - key_seed_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_seed_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharedCredential::key_seed() const { +inline const ::std::string& SharedCredential::key_seed() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.key_seed) return _internal_key_seed(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_key_seed(ArgT0&& arg0, ArgT... args) { - - key_seed_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_key_seed(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.key_seed_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.key_seed) } -inline std::string* SharedCredential::mutable_key_seed() { - std::string* _s = _internal_mutable_key_seed(); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_key_seed() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_key_seed(); // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.key_seed) return _s; } -inline const std::string& SharedCredential::_internal_key_seed() const { - return key_seed_.Get(); +inline const ::std::string& SharedCredential::_internal_key_seed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.key_seed_.Get(); } -inline void SharedCredential::_internal_set_key_seed(const std::string& value) { - - key_seed_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_key_seed(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_seed_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_key_seed() { - - return key_seed_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_key_seed() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.key_seed_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_key_seed() { +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_key_seed() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.key_seed) - return key_seed_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.key_seed_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.key_seed_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_key_seed(std::string* key_seed) { - if (key_seed != nullptr) { - +inline void SharedCredential::set_allocated_key_seed(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - key_seed_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_seed, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (key_seed_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.key_seed_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_seed_.IsDefault()) { + _impl_.key_seed_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.key_seed) } // int64 start_time_millis = 3; inline void SharedCredential::clear_start_time_millis() { - start_time_millis_ = int64_t{0}; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_time_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } -inline int64_t SharedCredential::_internal_start_time_millis() const { - return start_time_millis_; -} -inline int64_t SharedCredential::start_time_millis() const { +inline ::int64_t SharedCredential::start_time_millis() const { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.start_time_millis) return _internal_start_time_millis(); } -inline void SharedCredential::_internal_set_start_time_millis(int64_t value) { - - start_time_millis_ = value; -} -inline void SharedCredential::set_start_time_millis(int64_t value) { +inline void SharedCredential::set_start_time_millis(::int64_t value) { _internal_set_start_time_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.start_time_millis) } +inline ::int64_t SharedCredential::_internal_start_time_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.start_time_millis_; +} +inline void SharedCredential::_internal_set_start_time_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_time_millis_ = value; +} // int64 end_time_millis = 4; inline void SharedCredential::clear_end_time_millis() { - end_time_millis_ = int64_t{0}; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_time_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } -inline int64_t SharedCredential::_internal_end_time_millis() const { - return end_time_millis_; -} -inline int64_t SharedCredential::end_time_millis() const { +inline ::int64_t SharedCredential::end_time_millis() const { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.end_time_millis) return _internal_end_time_millis(); } -inline void SharedCredential::_internal_set_end_time_millis(int64_t value) { - - end_time_millis_ = value; -} -inline void SharedCredential::set_end_time_millis(int64_t value) { +inline void SharedCredential::set_end_time_millis(::int64_t value) { _internal_set_end_time_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.end_time_millis) } - -// bytes encrypted_metadata_bytes = 5; -inline void SharedCredential::clear_encrypted_metadata_bytes() { - encrypted_metadata_bytes_.ClearToEmpty(); +inline ::int64_t SharedCredential::_internal_end_time_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.end_time_millis_; } -inline const std::string& SharedCredential::encrypted_metadata_bytes() const { - // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.encrypted_metadata_bytes) - return _internal_encrypted_metadata_bytes(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_encrypted_metadata_bytes(ArgT0&& arg0, ArgT... args) { - - encrypted_metadata_bytes_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.encrypted_metadata_bytes) -} -inline std::string* SharedCredential::mutable_encrypted_metadata_bytes() { - std::string* _s = _internal_mutable_encrypted_metadata_bytes(); - // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.encrypted_metadata_bytes) - return _s; -} -inline const std::string& SharedCredential::_internal_encrypted_metadata_bytes() const { - return encrypted_metadata_bytes_.Get(); -} -inline void SharedCredential::_internal_set_encrypted_metadata_bytes(const std::string& value) { - - encrypted_metadata_bytes_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* SharedCredential::_internal_mutable_encrypted_metadata_bytes() { - - return encrypted_metadata_bytes_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* SharedCredential::release_encrypted_metadata_bytes() { - // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.encrypted_metadata_bytes) - return encrypted_metadata_bytes_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -} -inline void SharedCredential::set_allocated_encrypted_metadata_bytes(std::string* encrypted_metadata_bytes) { - if (encrypted_metadata_bytes != nullptr) { - - } else { - - } - encrypted_metadata_bytes_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), encrypted_metadata_bytes, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (encrypted_metadata_bytes_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - encrypted_metadata_bytes_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.encrypted_metadata_bytes) +inline void SharedCredential::_internal_set_end_time_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_time_millis_ = value; } -// bytes metadata_encryption_key_tag = 6; -inline void SharedCredential::clear_metadata_encryption_key_tag() { - metadata_encryption_key_tag_.ClearToEmpty(); +// bytes encrypted_metadata_bytes_v0 = 5; +inline void SharedCredential::clear_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_metadata_bytes_v0_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& SharedCredential::metadata_encryption_key_tag() const { - // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.metadata_encryption_key_tag) - return _internal_metadata_encryption_key_tag(); +inline const ::std::string& SharedCredential::encrypted_metadata_bytes_v0() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0) + return _internal_encrypted_metadata_bytes_v0(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_metadata_encryption_key_tag(ArgT0&& arg0, ArgT... args) { - - metadata_encryption_key_tag_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.metadata_encryption_key_tag) +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.encrypted_metadata_bytes_v0_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0) } -inline std::string* SharedCredential::mutable_metadata_encryption_key_tag() { - std::string* _s = _internal_mutable_metadata_encryption_key_tag(); - // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.metadata_encryption_key_tag) +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_encrypted_metadata_bytes_v0() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_encrypted_metadata_bytes_v0(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0) return _s; } -inline const std::string& SharedCredential::_internal_metadata_encryption_key_tag() const { - return metadata_encryption_key_tag_.Get(); +inline const ::std::string& SharedCredential::_internal_encrypted_metadata_bytes_v0() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.encrypted_metadata_bytes_v0_.Get(); } -inline void SharedCredential::_internal_set_metadata_encryption_key_tag(const std::string& value) { - - metadata_encryption_key_tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_encrypted_metadata_bytes_v0(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_metadata_bytes_v0_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_metadata_encryption_key_tag() { - - return metadata_encryption_key_tag_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.encrypted_metadata_bytes_v0_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_metadata_encryption_key_tag() { - // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.metadata_encryption_key_tag) - return metadata_encryption_key_tag_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.encrypted_metadata_bytes_v0_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_metadata_bytes_v0_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_metadata_encryption_key_tag(std::string* metadata_encryption_key_tag) { - if (metadata_encryption_key_tag != nullptr) { - +inline void SharedCredential::set_allocated_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - metadata_encryption_key_tag_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), metadata_encryption_key_tag, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (metadata_encryption_key_tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - metadata_encryption_key_tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.encrypted_metadata_bytes_v0_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_metadata_bytes_v0_.IsDefault()) { + _impl_.encrypted_metadata_bytes_v0_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.metadata_encryption_key_tag) + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0) +} + +// bytes metadata_encryption_key_tag_v0 = 6; +inline void SharedCredential::clear_metadata_encryption_key_tag_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_encryption_key_tag_v0_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& SharedCredential::metadata_encryption_key_tag_v0() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0) + return _internal_metadata_encryption_key_tag_v0(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_metadata_encryption_key_tag_v0(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.metadata_encryption_key_tag_v0_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_metadata_encryption_key_tag_v0() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_metadata_encryption_key_tag_v0(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0) + return _s; +} +inline const ::std::string& SharedCredential::_internal_metadata_encryption_key_tag_v0() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.metadata_encryption_key_tag_v0_.Get(); +} +inline void SharedCredential::_internal_set_metadata_encryption_key_tag_v0(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_encryption_key_tag_v0_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_metadata_encryption_key_tag_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.metadata_encryption_key_tag_v0_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_metadata_encryption_key_tag_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.metadata_encryption_key_tag_v0_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.metadata_encryption_key_tag_v0_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_metadata_encryption_key_tag_v0(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.metadata_encryption_key_tag_v0_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.metadata_encryption_key_tag_v0_.IsDefault()) { + _impl_.metadata_encryption_key_tag_v0_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0) } // bytes connection_signature_verification_key = 7; inline void SharedCredential::clear_connection_signature_verification_key() { - connection_signature_verification_key_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_signature_verification_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& SharedCredential::connection_signature_verification_key() const { +inline const ::std::string& SharedCredential::connection_signature_verification_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.connection_signature_verification_key) return _internal_connection_signature_verification_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_connection_signature_verification_key(ArgT0&& arg0, ArgT... args) { - - connection_signature_verification_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_connection_signature_verification_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.connection_signature_verification_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.connection_signature_verification_key) } -inline std::string* SharedCredential::mutable_connection_signature_verification_key() { - std::string* _s = _internal_mutable_connection_signature_verification_key(); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_connection_signature_verification_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_connection_signature_verification_key(); // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.connection_signature_verification_key) return _s; } -inline const std::string& SharedCredential::_internal_connection_signature_verification_key() const { - return connection_signature_verification_key_.Get(); +inline const ::std::string& SharedCredential::_internal_connection_signature_verification_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_signature_verification_key_.Get(); } -inline void SharedCredential::_internal_set_connection_signature_verification_key(const std::string& value) { - - connection_signature_verification_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_connection_signature_verification_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_signature_verification_key_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_connection_signature_verification_key() { - - return connection_signature_verification_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_connection_signature_verification_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.connection_signature_verification_key_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_connection_signature_verification_key() { +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_connection_signature_verification_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.connection_signature_verification_key) - return connection_signature_verification_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.connection_signature_verification_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.connection_signature_verification_key_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_connection_signature_verification_key(std::string* connection_signature_verification_key) { - if (connection_signature_verification_key != nullptr) { - +inline void SharedCredential::set_allocated_connection_signature_verification_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - connection_signature_verification_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connection_signature_verification_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (connection_signature_verification_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - connection_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.connection_signature_verification_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_signature_verification_key_.IsDefault()) { + _impl_.connection_signature_verification_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.connection_signature_verification_key) } // bytes advertisement_signature_verification_key = 8; inline void SharedCredential::clear_advertisement_signature_verification_key() { - advertisement_signature_verification_key_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advertisement_signature_verification_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& SharedCredential::advertisement_signature_verification_key() const { +inline const ::std::string& SharedCredential::advertisement_signature_verification_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.advertisement_signature_verification_key) return _internal_advertisement_signature_verification_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_advertisement_signature_verification_key(ArgT0&& arg0, ArgT... args) { - - advertisement_signature_verification_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_advertisement_signature_verification_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.advertisement_signature_verification_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.advertisement_signature_verification_key) } -inline std::string* SharedCredential::mutable_advertisement_signature_verification_key() { - std::string* _s = _internal_mutable_advertisement_signature_verification_key(); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_advertisement_signature_verification_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_advertisement_signature_verification_key(); // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.advertisement_signature_verification_key) return _s; } -inline const std::string& SharedCredential::_internal_advertisement_signature_verification_key() const { - return advertisement_signature_verification_key_.Get(); +inline const ::std::string& SharedCredential::_internal_advertisement_signature_verification_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.advertisement_signature_verification_key_.Get(); } -inline void SharedCredential::_internal_set_advertisement_signature_verification_key(const std::string& value) { - - advertisement_signature_verification_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_advertisement_signature_verification_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advertisement_signature_verification_key_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_advertisement_signature_verification_key() { - - return advertisement_signature_verification_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_advertisement_signature_verification_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.advertisement_signature_verification_key_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_advertisement_signature_verification_key() { +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_advertisement_signature_verification_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.advertisement_signature_verification_key) - return advertisement_signature_verification_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.advertisement_signature_verification_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.advertisement_signature_verification_key_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_advertisement_signature_verification_key(std::string* advertisement_signature_verification_key) { - if (advertisement_signature_verification_key != nullptr) { - +inline void SharedCredential::set_allocated_advertisement_signature_verification_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - advertisement_signature_verification_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), advertisement_signature_verification_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (advertisement_signature_verification_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - advertisement_signature_verification_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.advertisement_signature_verification_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.advertisement_signature_verification_key_.IsDefault()) { + _impl_.advertisement_signature_verification_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.advertisement_signature_verification_key) } // .nearby.internal.IdentityType identity_type = 9; inline void SharedCredential::clear_identity_type() { - identity_type_ = 0; -} -inline ::nearby::internal::IdentityType SharedCredential::_internal_identity_type() const { - return static_cast< ::nearby::internal::IdentityType >(identity_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } inline ::nearby::internal::IdentityType SharedCredential::identity_type() const { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_type) return _internal_identity_type(); } -inline void SharedCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) { - - identity_type_ = value; -} inline void SharedCredential::set_identity_type(::nearby::internal::IdentityType value) { _internal_set_identity_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_type) } - -// bytes version = 10; -inline void SharedCredential::clear_version() { - version_.ClearToEmpty(); +inline ::nearby::internal::IdentityType SharedCredential::_internal_identity_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_); } -inline const std::string& SharedCredential::version() const { +inline void SharedCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = value; +} + +// bytes version = 10 [deprecated = true]; +inline void SharedCredential::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); +} +inline const ::std::string& SharedCredential::version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharedCredential::set_version(ArgT0&& arg0, ArgT... args) { - - version_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_.version_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.version) } -inline std::string* SharedCredential::mutable_version() { - std::string* _s = _internal_mutable_version(); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.version) return _s; } -inline const std::string& SharedCredential::_internal_version() const { - return version_.Get(); +inline const ::std::string& SharedCredential::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_.Get(); } -inline void SharedCredential::_internal_set_version(const std::string& value) { - - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharedCredential::_internal_set_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.Set(value, GetArena()); } -inline std::string* SharedCredential::_internal_mutable_version() { - - return version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.version_.Mutable( GetArena()); } -inline std::string* SharedCredential::release_version() { +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.version) - return version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + auto* released = _impl_.version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.version_.Set("", GetArena()); + } + return released; } -inline void SharedCredential::set_allocated_version(std::string* version) { - if (version != nullptr) { - +inline void SharedCredential::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.version) } +// .nearby.internal.CredentialType credential_type = 11; +inline void SharedCredential::clear_credential_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00020000U); +} +inline ::nearby::internal::CredentialType SharedCredential::credential_type() const { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.credential_type) + return _internal_credential_type(); +} +inline void SharedCredential::set_credential_type(::nearby::internal::CredentialType value) { + _internal_set_credential_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00020000U); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.credential_type) +} +inline ::nearby::internal::CredentialType SharedCredential::_internal_credential_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::CredentialType>(_impl_.credential_type_); +} +inline void SharedCredential::_internal_set_credential_type(::nearby::internal::CredentialType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_type_ = value; +} + +// bytes encrypted_metadata_bytes_v1 = 12; +inline void SharedCredential::clear_encrypted_metadata_bytes_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_metadata_bytes_v1_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); +} +inline const ::std::string& SharedCredential::encrypted_metadata_bytes_v1() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1) + return _internal_encrypted_metadata_bytes_v1(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_encrypted_metadata_bytes_v1(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_.encrypted_metadata_bytes_v1_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_encrypted_metadata_bytes_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + ::std::string* _s = _internal_mutable_encrypted_metadata_bytes_v1(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1) + return _s; +} +inline const ::std::string& SharedCredential::_internal_encrypted_metadata_bytes_v1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.encrypted_metadata_bytes_v1_.Get(); +} +inline void SharedCredential::_internal_set_encrypted_metadata_bytes_v1(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_metadata_bytes_v1_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_encrypted_metadata_bytes_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.encrypted_metadata_bytes_v1_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_encrypted_metadata_bytes_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + auto* released = _impl_.encrypted_metadata_bytes_v1_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_metadata_bytes_v1_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_encrypted_metadata_bytes_v1(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + } + _impl_.encrypted_metadata_bytes_v1_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_metadata_bytes_v1_.IsDefault()) { + _impl_.encrypted_metadata_bytes_v1_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1) +} + +// bytes identity_token_short_salt_adv_hmac_key_v1 = 13; +inline void SharedCredential::clear_identity_token_short_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_short_salt_adv_hmac_key_v1_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); +} +inline const ::std::string& SharedCredential::identity_token_short_salt_adv_hmac_key_v1() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1) + return _internal_identity_token_short_salt_adv_hmac_key_v1(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_short_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_.identity_token_short_salt_adv_hmac_key_v1_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_short_salt_adv_hmac_key_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + ::std::string* _s = _internal_mutable_identity_token_short_salt_adv_hmac_key_v1(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1) + return _s; +} +inline const ::std::string& SharedCredential::_internal_identity_token_short_salt_adv_hmac_key_v1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_token_short_salt_adv_hmac_key_v1_.Get(); +} +inline void SharedCredential::_internal_set_identity_token_short_salt_adv_hmac_key_v1(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_short_salt_adv_hmac_key_v1_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_short_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.identity_token_short_salt_adv_hmac_key_v1_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_short_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + auto* released = _impl_.identity_token_short_salt_adv_hmac_key_v1_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.identity_token_short_salt_adv_hmac_key_v1_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_identity_token_short_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + } + _impl_.identity_token_short_salt_adv_hmac_key_v1_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_short_salt_adv_hmac_key_v1_.IsDefault()) { + _impl_.identity_token_short_salt_adv_hmac_key_v1_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1) +} + +// int64 id = 14; +inline void SharedCredential::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00040000U); +} +inline ::int64_t SharedCredential::id() const { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.id) + return _internal_id(); +} +inline void SharedCredential::set_id(::int64_t value) { + _internal_set_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00040000U); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.id) +} +inline ::int64_t SharedCredential::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void SharedCredential::_internal_set_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} + +// string dusi = 15; +inline void SharedCredential::clear_dusi() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dusi_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); +} +inline const ::std::string& SharedCredential::dusi() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.dusi) + return _internal_dusi(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_dusi(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_.dusi_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.dusi) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_dusi() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + ::std::string* _s = _internal_mutable_dusi(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.dusi) + return _s; +} +inline const ::std::string& SharedCredential::_internal_dusi() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.dusi_.Get(); +} +inline void SharedCredential::_internal_set_dusi(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dusi_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_dusi() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.dusi_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_dusi() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.dusi) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + auto* released = _impl_.dusi_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.dusi_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_dusi(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + } + _impl_.dusi_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.dusi_.IsDefault()) { + _impl_.dusi_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.dusi) +} + +// string signature_version = 16 [deprecated = true]; +inline void SharedCredential::clear_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); +} +inline const ::std::string& SharedCredential::signature_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.signature_version) + return _internal_signature_version(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_signature_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_.signature_version_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.signature_version) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_signature_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + ::std::string* _s = _internal_mutable_signature_version(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.signature_version) + return _s; +} +inline const ::std::string& SharedCredential::_internal_signature_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signature_version_.Get(); +} +inline void SharedCredential::_internal_set_signature_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_version_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.signature_version_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.signature_version) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + auto* released = _impl_.signature_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signature_version_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + } + _impl_.signature_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_version_.IsDefault()) { + _impl_.signature_version_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.signature_version) +} + +// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17; +inline void SharedCredential::clear_identity_token_extended_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); +} +inline const ::std::string& SharedCredential::identity_token_extended_salt_adv_hmac_key_v1() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1) + return _internal_identity_token_extended_salt_adv_hmac_key_v1(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_extended_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_extended_salt_adv_hmac_key_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + ::std::string* _s = _internal_mutable_identity_token_extended_salt_adv_hmac_key_v1(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1) + return _s; +} +inline const ::std::string& SharedCredential::_internal_identity_token_extended_salt_adv_hmac_key_v1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Get(); +} +inline void SharedCredential::_internal_set_identity_token_extended_salt_adv_hmac_key_v1(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_extended_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_extended_salt_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000800U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + auto* released = _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_identity_token_extended_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + } + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_extended_salt_adv_hmac_key_v1_.IsDefault()) { + _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1) +} + +// bytes identity_token_signed_adv_hmac_key_v1 = 18; +inline void SharedCredential::clear_identity_token_signed_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_signed_adv_hmac_key_v1_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); +} +inline const ::std::string& SharedCredential::identity_token_signed_adv_hmac_key_v1() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1) + return _internal_identity_token_signed_adv_hmac_key_v1(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_signed_adv_hmac_key_v1(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + _impl_.identity_token_signed_adv_hmac_key_v1_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_signed_adv_hmac_key_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + ::std::string* _s = _internal_mutable_identity_token_signed_adv_hmac_key_v1(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1) + return _s; +} +inline const ::std::string& SharedCredential::_internal_identity_token_signed_adv_hmac_key_v1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_token_signed_adv_hmac_key_v1_.Get(); +} +inline void SharedCredential::_internal_set_identity_token_signed_adv_hmac_key_v1(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_signed_adv_hmac_key_v1_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_signed_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.identity_token_signed_adv_hmac_key_v1_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_signed_adv_hmac_key_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00001000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + auto* released = _impl_.identity_token_signed_adv_hmac_key_v1_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.identity_token_signed_adv_hmac_key_v1_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_identity_token_signed_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + } + _impl_.identity_token_signed_adv_hmac_key_v1_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_signed_adv_hmac_key_v1_.IsDefault()) { + _impl_.identity_token_signed_adv_hmac_key_v1_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1) +} + +// int64 credential_version = 19; +inline void SharedCredential::clear_credential_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_version_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00080000U); +} +inline ::int64_t SharedCredential::credential_version() const { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.credential_version) + return _internal_credential_version(); +} +inline void SharedCredential::set_credential_version(::int64_t value) { + _internal_set_credential_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00080000U); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.credential_version) +} +inline ::int64_t SharedCredential::_internal_credential_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.credential_version_; +} +inline void SharedCredential::_internal_set_credential_version(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_version_ = value; +} + +// bytes rust_encrypted_metadata_bytes_v0 = 20; +inline void SharedCredential::clear_rust_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rust_encrypted_metadata_bytes_v0_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); +} +inline const ::std::string& SharedCredential::rust_encrypted_metadata_bytes_v0() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0) + return _internal_rust_encrypted_metadata_bytes_v0(); +} +template +PROTOBUF_ALWAYS_INLINE void SharedCredential::set_rust_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + _impl_.rust_encrypted_metadata_bytes_v0_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0) +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_rust_encrypted_metadata_bytes_v0() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + ::std::string* _s = _internal_mutable_rust_encrypted_metadata_bytes_v0(); + // @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0) + return _s; +} +inline const ::std::string& SharedCredential::_internal_rust_encrypted_metadata_bytes_v0() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rust_encrypted_metadata_bytes_v0_.Get(); +} +inline void SharedCredential::_internal_set_rust_encrypted_metadata_bytes_v0(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rust_encrypted_metadata_bytes_v0_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_rust_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.rust_encrypted_metadata_bytes_v0_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_rust_encrypted_metadata_bytes_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00002000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + auto* released = _impl_.rust_encrypted_metadata_bytes_v0_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rust_encrypted_metadata_bytes_v0_.Set("", GetArena()); + } + return released; +} +inline void SharedCredential::set_allocated_rust_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + } + _impl_.rust_encrypted_metadata_bytes_v0_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rust_encrypted_metadata_bytes_v0_.IsDefault()) { + _impl_.rust_encrypted_metadata_bytes_v0_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0) +} + #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::nearby::internal::IdentityType> : ::std::true_type {}; +namespace google { +namespace protobuf { + template <> -inline const EnumDescriptor* GetEnumDescriptor< ::nearby::internal::IdentityType>() { - return ::nearby::internal::IdentityType_descriptor(); -} +struct is_proto_enum<::nearby::internal::IdentityType> : std::true_type {}; +template <> +struct is_proto_enum<::nearby::internal::CredentialType> : std::true_type {}; -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fcredential_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // internal_2fproto_2fcredential_2eproto_2epb_2eh diff --git a/compiled_proto/internal/proto/local_credential.pb.cc b/compiled_proto/internal/proto/local_credential.pb.cc index c4018585..c6cc98ed 100644 --- a/compiled_proto/internal/proto/local_credential.pb.cc +++ b/compiled_proto/internal/proto/local_credential.pb.cc @@ -1,950 +1,1196 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/local_credential.proto +// Protobuf C++ Version: 6.33.3 #include "internal/proto/local_credential.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace nearby { namespace internal { -constexpr LocalCredential_PrivateKey::LocalCredential_PrivateKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : certificate_alias_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} + +inline constexpr LocalCredential_PrivateKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + certificate_alias_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + encrypted_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR LocalCredential_PrivateKey::LocalCredential_PrivateKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LocalCredential_PrivateKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LocalCredential_PrivateKeyDefaultTypeInternal { - constexpr LocalCredential_PrivateKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LocalCredential_PrivateKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LocalCredential_PrivateKeyDefaultTypeInternal() {} union { LocalCredential_PrivateKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalCredential_PrivateKeyDefaultTypeInternal _LocalCredential_PrivateKey_default_instance_; -constexpr LocalCredential_ConsumedSaltsEntry_DoNotUse::LocalCredential_ConsumedSaltsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal { - constexpr LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal() {} - union { - LocalCredential_ConsumedSaltsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal _LocalCredential_ConsumedSaltsEntry_DoNotUse_default_instance_; -constexpr LocalCredential::LocalCredential( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : consumed_salts_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) - , secret_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_seed_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , metadata_encryption_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , advertisement_signing_key_(nullptr) - , connection_signing_key_(nullptr) - , start_time_millis_(int64_t{0}) - , end_time_millis_(int64_t{0}) - , identity_type_(0) -{} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalCredential_PrivateKeyDefaultTypeInternal _LocalCredential_PrivateKey_default_instance_; + +inline constexpr LocalCredential::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + secret_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + key_seed_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + metadata_encryption_key_v0_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_token_v1_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + advertisement_signing_key_{nullptr}, + connection_signing_key_{nullptr}, + start_time_millis_{::int64_t{0}}, + end_time_millis_{::int64_t{0}}, + id_{::int64_t{0}}, + credential_version_{::int64_t{0}}, + identity_type_{static_cast< ::nearby::internal::IdentityType >(0)}, + consumed_salts_{} {} + +template +PROTOBUF_CONSTEXPR LocalCredential::LocalCredential(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LocalCredential_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LocalCredentialDefaultTypeInternal { - constexpr LocalCredentialDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LocalCredentialDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LocalCredentialDefaultTypeInternal() {} union { LocalCredential _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalCredentialDefaultTypeInternal _LocalCredential_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalCredentialDefaultTypeInternal _LocalCredential_default_instance_; } // namespace internal } // namespace nearby -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_internal_2fproto_2flocal_5fcredential_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_internal_2fproto_2flocal_5fcredential_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_internal_2fproto_2flocal_5fcredential_2eproto = nullptr; - -const uint32_t TableStruct_internal_2fproto_2flocal_5fcredential_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_PrivateKey, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_PrivateKey, certificate_alias_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_PrivateKey, key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, secret_id_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, key_seed_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, start_time_millis_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, end_time_millis_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, metadata_encryption_key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, advertisement_signing_key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, connection_signing_key_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, identity_type_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::LocalCredential, consumed_salts_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::nearby::internal::LocalCredential_PrivateKey)}, - { 8, 16, -1, sizeof(::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse)}, - { 18, -1, -1, sizeof(::nearby::internal::LocalCredential)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::nearby::internal::_LocalCredential_PrivateKey_default_instance_), - reinterpret_cast(&::nearby::internal::_LocalCredential_ConsumedSaltsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::nearby::internal::_LocalCredential_default_instance_), -}; - -const char descriptor_table_protodef_internal_2fproto_2flocal_5fcredential_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n%internal/proto/local_credential.proto\022" - "\017nearby.internal\032\037internal/proto/credent" - "ial.proto\"\227\004\n\017LocalCredential\022\021\n\tsecret_" - "id\030\001 \001(\014\022\020\n\010key_seed\030\002 \001(\014\022\031\n\021start_time" - "_millis\030\003 \001(\003\022\027\n\017end_time_millis\030\004 \001(\003\022\037" - "\n\027metadata_encryption_key\030\005 \001(\014\022N\n\031adver" - "tisement_signing_key\030\006 \001(\0132+.nearby.inte" - "rnal.LocalCredential.PrivateKey\022K\n\026conne" - "ction_signing_key\030\007 \001(\0132+.nearby.interna" - "l.LocalCredential.PrivateKey\0224\n\ridentity" - "_type\030\010 \001(\0162\035.nearby.internal.IdentityTy" - "pe\022K\n\016consumed_salts\030\t \003(\01323.nearby.inte" - "rnal.LocalCredential.ConsumedSaltsEntry\032" - "4\n\nPrivateKey\022\031\n\021certificate_alias\030\001 \001(\t" - "\022\013\n\003key\030\002 \001(\014\0324\n\022ConsumedSaltsEntry\022\013\n\003k" - "ey\030\001 \001(\r\022\r\n\005value\030\002 \001(\010:\0028\001B4\n\032com.googl" - "e.nearby.presenceB\024LocalCredentialProtoP" - "\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_deps[1] = { - &::descriptor_table_internal_2fproto_2fcredential_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto = { - false, false, 689, descriptor_table_protodef_internal_2fproto_2flocal_5fcredential_2eproto, "internal/proto/local_credential.proto", - &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_once, descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_deps, 1, 3, - schemas, file_default_instances, TableStruct_internal_2fproto_2flocal_5fcredential_2eproto::offsets, - file_level_metadata_internal_2fproto_2flocal_5fcredential_2eproto, file_level_enum_descriptors_internal_2fproto_2flocal_5fcredential_2eproto, file_level_service_descriptors_internal_2fproto_2flocal_5fcredential_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_getter() { - return &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_internal_2fproto_2flocal_5fcredential_2eproto(&descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto); namespace nearby { namespace internal { - // =================================================================== class LocalCredential_PrivateKey::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_._has_bits_); }; -LocalCredential_PrivateKey::LocalCredential_PrivateKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LocalCredential_PrivateKey::LocalCredential_PrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocalCredential_PrivateKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.internal.LocalCredential.PrivateKey) } -LocalCredential_PrivateKey::LocalCredential_PrivateKey(const LocalCredential_PrivateKey& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - certificate_alias_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - certificate_alias_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_certificate_alias().empty()) { - certificate_alias_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_certificate_alias(), - GetArenaForAllocation()); - } - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key().empty()) { - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE LocalCredential_PrivateKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::LocalCredential_PrivateKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + certificate_alias_(arena, from.certificate_alias_), + key_(arena, from.key_), + encrypted_key_(arena, from.encrypted_key_) {} + +LocalCredential_PrivateKey::LocalCredential_PrivateKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LocalCredential_PrivateKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocalCredential_PrivateKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LocalCredential_PrivateKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:nearby.internal.LocalCredential.PrivateKey) } +PROTOBUF_NDEBUG_INLINE LocalCredential_PrivateKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + certificate_alias_(arena), + key_(arena), + encrypted_key_(arena) {} -inline void LocalCredential_PrivateKey::SharedCtor() { -certificate_alias_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - certificate_alias_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void LocalCredential_PrivateKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - LocalCredential_PrivateKey::~LocalCredential_PrivateKey() { // @@protoc_insertion_point(destructor:nearby.internal.LocalCredential.PrivateKey) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void LocalCredential_PrivateKey::SharedDtor(MessageLite& self) { + LocalCredential_PrivateKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.certificate_alias_.Destroy(); + this_._impl_.key_.Destroy(); + this_._impl_.encrypted_key_.Destroy(); + this_._impl_.~Impl_(); } -inline void LocalCredential_PrivateKey::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - certificate_alias_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL LocalCredential_PrivateKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LocalCredential_PrivateKey(arena); +} +constexpr auto LocalCredential_PrivateKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocalCredential_PrivateKey), + alignof(LocalCredential_PrivateKey)); +} +constexpr auto LocalCredential_PrivateKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_LocalCredential_PrivateKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LocalCredential_PrivateKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LocalCredential_PrivateKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LocalCredential_PrivateKey::ByteSizeLong, + &LocalCredential_PrivateKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_._cached_size_), + true, + }, + "nearby.internal.LocalCredential.PrivateKey", + }; } -void LocalCredential_PrivateKey::ArenaDtor(void* object) { - LocalCredential_PrivateKey* _this = reinterpret_cast< LocalCredential_PrivateKey* >(object); - (void)_this; -} -void LocalCredential_PrivateKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LocalCredential_PrivateKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> LocalCredential_PrivateKey_class_data_ = + LocalCredential_PrivateKey::InternalGenerateClassData_(); -void LocalCredential_PrivateKey::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LocalCredential_PrivateKey::GetClassData() const { + return LocalCredential_PrivateKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 68, 2> +LocalCredential_PrivateKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _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 + LocalCredential_PrivateKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::LocalCredential_PrivateKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string certificate_alias = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.certificate_alias_)}}, + // bytes key = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.key_)}}, + // bytes encrypted_key = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.encrypted_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string certificate_alias = 1; + {PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.certificate_alias_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes key = 2; + {PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes encrypted_key = 3; + {PROTOBUF_FIELD_OFFSET(LocalCredential_PrivateKey, _impl_.encrypted_key_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\52\21\0\0\0\0\0\0" + "nearby.internal.LocalCredential.PrivateKey" + "certificate_alias" + }}, +}; +PROTOBUF_NOINLINE void LocalCredential_PrivateKey::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.internal.LocalCredential.PrivateKey) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - certificate_alias_.ClearToEmpty(); - key_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LocalCredential_PrivateKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string certificate_alias = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_certificate_alias(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.internal.LocalCredential.PrivateKey.certificate_alias")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.certificate_alias_.ClearNonDefaultToEmpty(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.key_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.encrypted_key_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* LocalCredential_PrivateKey::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LocalCredential_PrivateKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LocalCredential_PrivateKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LocalCredential_PrivateKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LocalCredential_PrivateKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.LocalCredential.PrivateKey) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string certificate_alias = 1; - if (!this->_internal_certificate_alias().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_certificate_alias().data(), static_cast(this->_internal_certificate_alias().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "nearby.internal.LocalCredential.PrivateKey.certificate_alias"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_certificate_alias(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_certificate_alias().empty()) { + const ::std::string& _s = this_._internal_certificate_alias(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.LocalCredential.PrivateKey.certificate_alias"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // bytes key = 2; - if (!this->_internal_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key().empty()) { + const ::std::string& _s = this_._internal_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + // bytes encrypted_key = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_encrypted_key().empty()) { + const ::std::string& _s = this_._internal_encrypted_key(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.LocalCredential.PrivateKey) return target; } -size_t LocalCredential_PrivateKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.internal.LocalCredential.PrivateKey) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LocalCredential_PrivateKey::ByteSizeLong(const MessageLite& base) { + const LocalCredential_PrivateKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LocalCredential_PrivateKey::ByteSizeLong() const { + const LocalCredential_PrivateKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.LocalCredential.PrivateKey) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string certificate_alias = 1; - if (!this->_internal_certificate_alias().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_certificate_alias()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string certificate_alias = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_certificate_alias().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_certificate_alias()); + } + } + // bytes key = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_key()); + } + } + // bytes encrypted_key = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_encrypted_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_key()); + } + } } - - // bytes key = 2; - if (!this->_internal_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_key()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalCredential_PrivateKey::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - LocalCredential_PrivateKey::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalCredential_PrivateKey::GetClassData() const { return &_class_data_; } - -void LocalCredential_PrivateKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void LocalCredential_PrivateKey::MergeFrom(const LocalCredential_PrivateKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.LocalCredential.PrivateKey) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_certificate_alias().empty()) { - _internal_set_certificate_alias(from._internal_certificate_alias()); +void LocalCredential_PrivateKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (!from._internal_key().empty()) { - _internal_set_key(from._internal_key()); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.LocalCredential.PrivateKey) + 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)) { + if (!from._internal_certificate_alias().empty()) { + _this->_internal_set_certificate_alias(from._internal_certificate_alias()); + } else { + if (_this->_impl_.certificate_alias_.IsDefault()) { + _this->_internal_set_certificate_alias(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); + } else { + if (_this->_impl_.key_.IsDefault()) { + _this->_internal_set_key(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_encrypted_key().empty()) { + _this->_internal_set_encrypted_key(from._internal_encrypted_key()); + } else { + if (_this->_impl_.encrypted_key_.IsDefault()) { + _this->_internal_set_encrypted_key(""); + } + } + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LocalCredential_PrivateKey::CopyFrom(const LocalCredential_PrivateKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.LocalCredential.PrivateKey) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.LocalCredential.PrivateKey) if (&from == this) return; Clear(); MergeFrom(from); } -bool LocalCredential_PrivateKey::IsInitialized() const { - return true; -} -void LocalCredential_PrivateKey::InternalSwap(LocalCredential_PrivateKey* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void LocalCredential_PrivateKey::InternalSwap(LocalCredential_PrivateKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &certificate_alias_, lhs_arena, - &other->certificate_alias_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &key_, lhs_arena, - &other->key_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LocalCredential_PrivateKey::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_getter, &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_once, - file_level_metadata_internal_2fproto_2flocal_5fcredential_2eproto[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.certificate_alias_, &other->_impl_.certificate_alias_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_key_, &other->_impl_.encrypted_key_, arena); } // =================================================================== -LocalCredential_ConsumedSaltsEntry_DoNotUse::LocalCredential_ConsumedSaltsEntry_DoNotUse() {} -LocalCredential_ConsumedSaltsEntry_DoNotUse::LocalCredential_ConsumedSaltsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void LocalCredential_ConsumedSaltsEntry_DoNotUse::MergeFrom(const LocalCredential_ConsumedSaltsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata LocalCredential_ConsumedSaltsEntry_DoNotUse::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_getter, &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_once, - file_level_metadata_internal_2fproto_2flocal_5fcredential_2eproto[1]); -} - // =================================================================== class LocalCredential::_Internal { public: - static const ::nearby::internal::LocalCredential_PrivateKey& advertisement_signing_key(const LocalCredential* msg); - static const ::nearby::internal::LocalCredential_PrivateKey& connection_signing_key(const LocalCredential* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_._has_bits_); }; -const ::nearby::internal::LocalCredential_PrivateKey& -LocalCredential::_Internal::advertisement_signing_key(const LocalCredential* msg) { - return *msg->advertisement_signing_key_; -} -const ::nearby::internal::LocalCredential_PrivateKey& -LocalCredential::_Internal::connection_signing_key(const LocalCredential* msg) { - return *msg->connection_signing_key_; -} -LocalCredential::LocalCredential(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - consumed_salts_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LocalCredential::LocalCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocalCredential_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.internal.LocalCredential) } -LocalCredential::LocalCredential(const LocalCredential& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - consumed_salts_.MergeFrom(from.consumed_salts_); - secret_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_secret_id().empty()) { - secret_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_secret_id(), - GetArenaForAllocation()); - } - key_seed_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key_seed().empty()) { - key_seed_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key_seed(), - GetArenaForAllocation()); - } - metadata_encryption_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - metadata_encryption_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_metadata_encryption_key().empty()) { - metadata_encryption_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_metadata_encryption_key(), - GetArenaForAllocation()); - } - if (from._internal_has_advertisement_signing_key()) { - advertisement_signing_key_ = new ::nearby::internal::LocalCredential_PrivateKey(*from.advertisement_signing_key_); - } else { - advertisement_signing_key_ = nullptr; - } - if (from._internal_has_connection_signing_key()) { - connection_signing_key_ = new ::nearby::internal::LocalCredential_PrivateKey(*from.connection_signing_key_); - } else { - connection_signing_key_ = nullptr; - } - ::memcpy(&start_time_millis_, &from.start_time_millis_, - static_cast(reinterpret_cast(&identity_type_) - - reinterpret_cast(&start_time_millis_)) + sizeof(identity_type_)); +PROTOBUF_NDEBUG_INLINE LocalCredential::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::LocalCredential& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + secret_id_(arena, from.secret_id_), + key_seed_(arena, from.key_seed_), + metadata_encryption_key_v0_(arena, from.metadata_encryption_key_v0_), + identity_token_v1_(arena, from.identity_token_v1_), + signature_version_(arena, from.signature_version_), + consumed_salts_{visibility, arena, from.consumed_salts_} {} + +LocalCredential::LocalCredential( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LocalCredential& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LocalCredential_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LocalCredential* 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_.advertisement_signing_key_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertisement_signing_key_) + : nullptr; + _impl_.connection_signing_key_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_signing_key_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_time_millis_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, start_time_millis_), + offsetof(Impl_, identity_type_) - + offsetof(Impl_, start_time_millis_) + + sizeof(Impl_::identity_type_)); + // @@protoc_insertion_point(copy_constructor:nearby.internal.LocalCredential) } +PROTOBUF_NDEBUG_INLINE LocalCredential::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + secret_id_(arena), + key_seed_(arena), + metadata_encryption_key_v0_(arena), + identity_token_v1_(arena), + signature_version_(arena), + consumed_salts_{visibility, arena} {} -inline void LocalCredential::SharedCtor() { -secret_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -key_seed_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -metadata_encryption_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - metadata_encryption_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&advertisement_signing_key_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&identity_type_) - - reinterpret_cast(&advertisement_signing_key_)) + sizeof(identity_type_)); +inline void LocalCredential::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, advertisement_signing_key_), + 0, + offsetof(Impl_, identity_type_) - + offsetof(Impl_, advertisement_signing_key_) + + sizeof(Impl_::identity_type_)); } - LocalCredential::~LocalCredential() { // @@protoc_insertion_point(destructor:nearby.internal.LocalCredential) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void LocalCredential::SharedDtor(MessageLite& self) { + LocalCredential& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.secret_id_.Destroy(); + this_._impl_.key_seed_.Destroy(); + this_._impl_.metadata_encryption_key_v0_.Destroy(); + this_._impl_.identity_token_v1_.Destroy(); + this_._impl_.signature_version_.Destroy(); + delete this_._impl_.advertisement_signing_key_; + delete this_._impl_.connection_signing_key_; + this_._impl_.~Impl_(); } -inline void LocalCredential::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - secret_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_seed_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - metadata_encryption_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete advertisement_signing_key_; - if (this != internal_default_instance()) delete connection_signing_key_; +inline void* PROTOBUF_NONNULL LocalCredential::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LocalCredential(arena); } - -void LocalCredential::ArenaDtor(void* object) { - LocalCredential* _this = reinterpret_cast< LocalCredential* >(object); - (void)_this; - _this->consumed_salts_. ~MapField(); -} -inline void LocalCredential::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { - if (arena != nullptr) { - arena->OwnCustomDestructor(this, &LocalCredential::ArenaDtor); +constexpr auto LocalCredential::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.consumed_salts_) + + decltype(LocalCredential::_impl_.consumed_salts_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(LocalCredential), alignof(LocalCredential), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&LocalCredential::PlacementNew_, + sizeof(LocalCredential), + alignof(LocalCredential)); } } -void LocalCredential::SetCachedSize(int size) const { - _cached_size_.Set(size); +constexpr auto LocalCredential::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_LocalCredential_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LocalCredential::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LocalCredential::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LocalCredential::ByteSizeLong, + &LocalCredential::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_._cached_size_), + true, + }, + "nearby.internal.LocalCredential", + }; } -void LocalCredential::Clear() { +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> LocalCredential_class_data_ = + LocalCredential::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LocalCredential::GetClassData() const { + return LocalCredential_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 3, 65, 2> +LocalCredential::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LocalCredential, _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 + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + LocalCredential_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::LocalCredential>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bytes secret_id = 1 [deprecated = true]; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.secret_id_)}}, + // bytes key_seed = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.key_seed_)}}, + // int64 start_time_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 7, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.start_time_millis_)}}, + // int64 end_time_millis = 4; + {::_pbi::TcParser::FastV64S1, + {32, 8, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.end_time_millis_)}}, + // bytes metadata_encryption_key_v0 = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.metadata_encryption_key_v0_)}}, + // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; + {::_pbi::TcParser::FastMtS1, + {50, 5, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.advertisement_signing_key_)}}, + // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; + {::_pbi::TcParser::FastMtS1, + {58, 6, 1, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.connection_signing_key_)}}, + // .nearby.internal.IdentityType identity_type = 8; + {::_pbi::TcParser::FastV32S1, + {64, 11, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.identity_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // bytes identity_token_v1 = 10; + {::_pbi::TcParser::FastBS1, + {82, 3, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.identity_token_v1_)}}, + // int64 id = 11; + {::_pbi::TcParser::FastV64S1, + {88, 9, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.id_)}}, + // string signature_version = 12 [deprecated = true]; + {::_pbi::TcParser::FastUS1, + {98, 4, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.signature_version_)}}, + // int64 credential_version = 13; + {::_pbi::TcParser::FastV64S1, + {104, 10, 0, + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.credential_version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes secret_id = 1 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.secret_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes key_seed = 2; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.key_seed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // int64 start_time_millis = 3; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.start_time_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 end_time_millis = 4; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.end_time_millis_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // bytes metadata_encryption_key_v0 = 5; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.metadata_encryption_key_v0_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.advertisement_signing_key_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.connection_signing_key_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.internal.IdentityType identity_type = 8; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.identity_type_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // map consumed_salts = 9; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.consumed_salts_), _Internal::kHasBitsOffset + 12, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // bytes identity_token_v1 = 10; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.identity_token_v1_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // int64 id = 11; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // string signature_version = 12 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.signature_version_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 credential_version = 13; + {PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.credential_version_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::internal::LocalCredential_PrivateKey>()}, + {::_pbi::TcParser::GetTable<::nearby::internal::LocalCredential_PrivateKey>()}, + {::_pbi::TcParser::GetMapAuxInfo( + 0, 0, 13, 8, 1)}, + }}, + {{ + "\37\0\0\0\0\0\0\0\0\0\0\0\21\0\0\0" + "nearby.internal.LocalCredential" + "signature_version" + }}, +}; +PROTOBUF_NOINLINE void LocalCredential::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.internal.LocalCredential) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - consumed_salts_.Clear(); - secret_id_.ClearToEmpty(); - key_seed_.ClearToEmpty(); - metadata_encryption_key_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && advertisement_signing_key_ != nullptr) { - delete advertisement_signing_key_; - } - advertisement_signing_key_ = nullptr; - if (GetArenaForAllocation() == nullptr && connection_signing_key_ != nullptr) { - delete connection_signing_key_; - } - connection_signing_key_ = nullptr; - ::memset(&start_time_millis_, 0, static_cast( - reinterpret_cast(&identity_type_) - - reinterpret_cast(&start_time_millis_)) + sizeof(identity_type_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LocalCredential::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bytes secret_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_secret_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes key_seed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_key_seed(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int64 start_time_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - start_time_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int64 end_time_millis = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - end_time_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes metadata_encryption_key = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_metadata_encryption_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_advertisement_signing_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_signing_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.internal.IdentityType identity_type = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_identity_type(static_cast<::nearby::internal::IdentityType>(val)); - } else - goto handle_unusual; - continue; - // map consumed_salts = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&consumed_salts_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.secret_id_.ClearNonDefaultToEmpty(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.key_seed_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.metadata_encryption_key_v0_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.identity_token_v1_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.signature_version_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.advertisement_signing_key_ != nullptr); + _impl_.advertisement_signing_key_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.connection_signing_key_ != nullptr); + _impl_.connection_signing_key_->Clear(); + } + } + _impl_.start_time_millis_ = ::int64_t{0}; + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + ::memset(&_impl_.end_time_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.identity_type_) - + reinterpret_cast(&_impl_.end_time_millis_)) + sizeof(_impl_.identity_type_)); + if (CheckHasBitForRepeated(cached_has_bits, 0x00001000U)) { + _impl_.consumed_salts_.Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* LocalCredential::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LocalCredential::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LocalCredential& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LocalCredential::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LocalCredential& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.LocalCredential) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // bytes secret_id = 1; - if (!this->_internal_secret_id().empty()) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_secret_id(), target); + cached_has_bits = this_._impl_._has_bits_[0]; + // bytes secret_id = 1 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_secret_id().empty()) { + const ::std::string& _s = this_._internal_secret_id(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes key_seed = 2; - if (!this->_internal_key_seed().empty()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_key_seed(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key_seed().empty()) { + const ::std::string& _s = this_._internal_key_seed(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // int64 start_time_millis = 3; - if (this->_internal_start_time_millis() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_start_time_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_start_time_millis() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_start_time_millis(), target); + } } // int64 end_time_millis = 4; - if (this->_internal_end_time_millis() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_end_time_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_end_time_millis() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_end_time_millis(), target); + } } - // bytes metadata_encryption_key = 5; - if (!this->_internal_metadata_encryption_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_metadata_encryption_key(), target); + // bytes metadata_encryption_key_v0 = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_metadata_encryption_key_v0().empty()) { + const ::std::string& _s = this_._internal_metadata_encryption_key_v0(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; - if (this->_internal_has_advertisement_signing_key()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::advertisement_signing_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.advertisement_signing_key_, this_._impl_.advertisement_signing_key_->GetCachedSize(), target, + stream); } // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; - if (this->_internal_has_connection_signing_key()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::connection_signing_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.connection_signing_key_, this_._impl_.connection_signing_key_->GetCachedSize(), target, + stream); } // .nearby.internal.IdentityType identity_type = 8; - if (this->_internal_identity_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 8, this->_internal_identity_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_identity_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_identity_type(), target); + } } // map consumed_salts = 9; - if (!this->_internal_consumed_salts().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >::const_pointer - ConstPtr; - typedef ::PROTOBUF_NAMESPACE_ID::internal::SortItem< uint32_t, ConstPtr > SortItem; - typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByFirstField Less; + if (CheckHasBitForRepeated(cached_has_bits, 0x00001000U)) { + if (!this_._internal_consumed_salts().empty()) { + using MapType = ::google::protobuf::Map<::uint32_t, bool>; + using WireHelper = _pbi::MapEntryFuncs<::uint32_t, bool, + _pbi::WireFormatLite::TYPE_UINT32, + _pbi::WireFormatLite::TYPE_BOOL>; + const auto& field = this_._internal_consumed_salts(); - if (stream->IsSerializationDeterministic() && - this->_internal_consumed_salts().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->_internal_consumed_salts().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >::const_iterator - it = this->_internal_consumed_salts().begin(); - it != this->_internal_consumed_salts().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - for (size_type i = 0; i < n; i++) { - target = LocalCredential_ConsumedSaltsEntry_DoNotUse::Funcs::InternalSerialize(9, items[static_cast(i)].second->first, items[static_cast(i)].second->second, target, stream); - } - } else { - for (::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >::const_iterator - it = this->_internal_consumed_salts().begin(); - it != this->_internal_consumed_salts().end(); ++it) { - target = LocalCredential_ConsumedSaltsEntry_DoNotUse::Funcs::InternalSerialize(9, it->first, it->second, target, stream); + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + } } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + // bytes identity_token_v1 = 10; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_identity_token_v1().empty()) { + const ::std::string& _s = this_._internal_identity_token_v1(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } + } + + // int64 id = 11; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<11>( + stream, this_._internal_id(), target); + } + } + + // string signature_version = 12 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_signature_version().empty()) { + const ::std::string& _s = this_._internal_signature_version(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.LocalCredential.signature_version"); + target = stream->WriteStringMaybeAliased(12, _s, target); + } + } + + // int64 credential_version = 13; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_credential_version() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<13>( + stream, this_._internal_credential_version(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.LocalCredential) return target; } -size_t LocalCredential::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.internal.LocalCredential) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LocalCredential::ByteSizeLong(const MessageLite& base) { + const LocalCredential& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LocalCredential::ByteSizeLong() const { + const LocalCredential& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.LocalCredential) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // map consumed_salts = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_consumed_salts_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >::const_iterator - it = this->_internal_consumed_salts().begin(); - it != this->_internal_consumed_salts().end(); ++it) { - total_size += LocalCredential_ConsumedSaltsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // bytes secret_id = 1 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_secret_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_secret_id()); + } + } + // bytes key_seed = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_key_seed().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_key_seed()); + } + } + // bytes metadata_encryption_key_v0 = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_metadata_encryption_key_v0().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_metadata_encryption_key_v0()); + } + } + // bytes identity_token_v1 = 10; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_identity_token_v1().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_identity_token_v1()); + } + } + // string signature_version = 12 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_signature_version().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_signature_version()); + } + } + // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertisement_signing_key_); + } + // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.connection_signing_key_); + } + // int64 start_time_millis = 3; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_start_time_millis() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_start_time_millis()); + } + } } - - // bytes secret_id = 1; - if (!this->_internal_secret_id().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_secret_id()); + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + // int64 end_time_millis = 4; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_end_time_millis() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_end_time_millis()); + } + } + // int64 id = 11; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_id()); + } + } + // int64 credential_version = 13; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_credential_version() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_credential_version()); + } + } + // .nearby.internal.IdentityType identity_type = 8; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_identity_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_identity_type()); + } + } + // map consumed_salts = 9; + if (CheckHasBitForRepeated(cached_has_bits, 0x00001000U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_consumed_salts_size()); + for (const auto& entry : this_._internal_consumed_salts()) { + total_size += _pbi::MapEntryFuncs<::uint32_t, bool, + _pbi::WireFormatLite::TYPE_UINT32, + _pbi::WireFormatLite::TYPE_BOOL>::ByteSizeLong(entry.first, entry.second); + } + } } - - // bytes key_seed = 2; - if (!this->_internal_key_seed().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_key_seed()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - // bytes metadata_encryption_key = 5; - if (!this->_internal_metadata_encryption_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_metadata_encryption_key()); - } - - // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; - if (this->_internal_has_advertisement_signing_key()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *advertisement_signing_key_); - } - - // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; - if (this->_internal_has_connection_signing_key()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_signing_key_); - } - - // int64 start_time_millis = 3; - if (this->_internal_start_time_millis() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_start_time_millis()); - } - - // int64 end_time_millis = 4; - if (this->_internal_end_time_millis() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_end_time_millis()); - } - - // .nearby.internal.IdentityType identity_type = 8; - if (this->_internal_identity_type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_identity_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalCredential::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - LocalCredential::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalCredential::GetClassData() const { return &_class_data_; } +void LocalCredential::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.LocalCredential) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void LocalCredential::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void LocalCredential::MergeFrom(const LocalCredential& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.LocalCredential) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - consumed_salts_.MergeFrom(from.consumed_salts_); - if (!from._internal_secret_id().empty()) { - _internal_set_secret_id(from._internal_secret_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_secret_id().empty()) { + _this->_internal_set_secret_id(from._internal_secret_id()); + } else { + if (_this->_impl_.secret_id_.IsDefault()) { + _this->_internal_set_secret_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_key_seed().empty()) { + _this->_internal_set_key_seed(from._internal_key_seed()); + } else { + if (_this->_impl_.key_seed_.IsDefault()) { + _this->_internal_set_key_seed(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_metadata_encryption_key_v0().empty()) { + _this->_internal_set_metadata_encryption_key_v0(from._internal_metadata_encryption_key_v0()); + } else { + if (_this->_impl_.metadata_encryption_key_v0_.IsDefault()) { + _this->_internal_set_metadata_encryption_key_v0(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_identity_token_v1().empty()) { + _this->_internal_set_identity_token_v1(from._internal_identity_token_v1()); + } else { + if (_this->_impl_.identity_token_v1_.IsDefault()) { + _this->_internal_set_identity_token_v1(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!from._internal_signature_version().empty()) { + _this->_internal_set_signature_version(from._internal_signature_version()); + } else { + if (_this->_impl_.signature_version_.IsDefault()) { + _this->_internal_set_signature_version(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.advertisement_signing_key_ != nullptr); + if (_this->_impl_.advertisement_signing_key_ == nullptr) { + _this->_impl_.advertisement_signing_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertisement_signing_key_); + } else { + _this->_impl_.advertisement_signing_key_->MergeFrom(*from._impl_.advertisement_signing_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.connection_signing_key_ != nullptr); + if (_this->_impl_.connection_signing_key_ == nullptr) { + _this->_impl_.connection_signing_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.connection_signing_key_); + } else { + _this->_impl_.connection_signing_key_->MergeFrom(*from._impl_.connection_signing_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_start_time_millis() != 0) { + _this->_impl_.start_time_millis_ = from._impl_.start_time_millis_; + } + } } - if (!from._internal_key_seed().empty()) { - _internal_set_key_seed(from._internal_key_seed()); + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_end_time_millis() != 0) { + _this->_impl_.end_time_millis_ = from._impl_.end_time_millis_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_id() != 0) { + _this->_impl_.id_ = from._impl_.id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_credential_version() != 0) { + _this->_impl_.credential_version_ = from._impl_.credential_version_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_identity_type() != 0) { + _this->_impl_.identity_type_ = from._impl_.identity_type_; + } + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00001000U)) { + _this->_impl_.consumed_salts_.MergeFrom(from._impl_.consumed_salts_); + } } - if (!from._internal_metadata_encryption_key().empty()) { - _internal_set_metadata_encryption_key(from._internal_metadata_encryption_key()); - } - if (from._internal_has_advertisement_signing_key()) { - _internal_mutable_advertisement_signing_key()->::nearby::internal::LocalCredential_PrivateKey::MergeFrom(from._internal_advertisement_signing_key()); - } - if (from._internal_has_connection_signing_key()) { - _internal_mutable_connection_signing_key()->::nearby::internal::LocalCredential_PrivateKey::MergeFrom(from._internal_connection_signing_key()); - } - if (from._internal_start_time_millis() != 0) { - _internal_set_start_time_millis(from._internal_start_time_millis()); - } - if (from._internal_end_time_millis() != 0) { - _internal_set_end_time_millis(from._internal_end_time_millis()); - } - if (from._internal_identity_type() != 0) { - _internal_set_identity_type(from._internal_identity_type()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LocalCredential::CopyFrom(const LocalCredential& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.LocalCredential) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.LocalCredential) if (&from == this) return; Clear(); MergeFrom(from); } -bool LocalCredential::IsInitialized() const { - return true; -} -void LocalCredential::InternalSwap(LocalCredential* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void LocalCredential::InternalSwap(LocalCredential* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - consumed_salts_.InternalSwap(&other->consumed_salts_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &secret_id_, lhs_arena, - &other->secret_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &key_seed_, lhs_arena, - &other->key_seed_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &metadata_encryption_key_, lhs_arena, - &other->metadata_encryption_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LocalCredential, identity_type_) - + sizeof(LocalCredential::identity_type_) - - PROTOBUF_FIELD_OFFSET(LocalCredential, advertisement_signing_key_)>( - reinterpret_cast(&advertisement_signing_key_), - reinterpret_cast(&other->advertisement_signing_key_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LocalCredential::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_getter, &descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto_once, - file_level_metadata_internal_2fproto_2flocal_5fcredential_2eproto[2]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_id_, &other->_impl_.secret_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_seed_, &other->_impl_.key_seed_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.metadata_encryption_key_v0_, &other->_impl_.metadata_encryption_key_v0_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_v1_, &other->_impl_.identity_token_v1_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_version_, &other->_impl_.signature_version_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.identity_type_) + + sizeof(LocalCredential::_impl_.identity_type_) + - PROTOBUF_FIELD_OFFSET(LocalCredential, _impl_.advertisement_signing_key_)>( + reinterpret_cast(&_impl_.advertisement_signing_key_), + reinterpret_cast(&other->_impl_.advertisement_signing_key_)); + _impl_.consumed_salts_.InternalSwap(&other->_impl_.consumed_salts_); } // @@protoc_insertion_point(namespace_scope) } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::internal::LocalCredential_PrivateKey* Arena::CreateMaybeMessage< ::nearby::internal::LocalCredential_PrivateKey >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::internal::LocalCredential_PrivateKey >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse* Arena::CreateMaybeMessage< ::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::internal::LocalCredential* Arena::CreateMaybeMessage< ::nearby::internal::LocalCredential >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::internal::LocalCredential >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/internal/proto/local_credential.pb.h b/compiled_proto/internal/proto/local_credential.pb.h index e4384470..604dc279 100644 --- a/compiled_proto/internal/proto/local_credential.pb.h +++ b/compiled_proto/internal/proto/local_credential.pb.h @@ -1,109 +1,106 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/local_credential.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2flocal_5fcredential_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2flocal_5fcredential_2eproto +#ifndef internal_2fproto_2flocal_5fcredential_2eproto_2epb_2eh +#define internal_2fproto_2flocal_5fcredential_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_type_handler.h" // IWYU pragma: export +#include "google/protobuf/map_field_lite.h" #include "internal/proto/credential.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2flocal_5fcredential_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_internal_2fproto_2flocal_5fcredential_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2flocal_5fcredential_2eproto; namespace nearby { namespace internal { class LocalCredential; struct LocalCredentialDefaultTypeInternal; extern LocalCredentialDefaultTypeInternal _LocalCredential_default_instance_; -class LocalCredential_ConsumedSaltsEntry_DoNotUse; -struct LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal; -extern LocalCredential_ConsumedSaltsEntry_DoNotUseDefaultTypeInternal _LocalCredential_ConsumedSaltsEntry_DoNotUse_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> LocalCredential_class_data_; class LocalCredential_PrivateKey; struct LocalCredential_PrivateKeyDefaultTypeInternal; extern LocalCredential_PrivateKeyDefaultTypeInternal _LocalCredential_PrivateKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> LocalCredential_PrivateKey_class_data_; } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::internal::LocalCredential* Arena::CreateMaybeMessage<::nearby::internal::LocalCredential>(Arena*); -template<> ::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse* Arena::CreateMaybeMessage<::nearby::internal::LocalCredential_ConsumedSaltsEntry_DoNotUse>(Arena*); -template<> ::nearby::internal::LocalCredential_PrivateKey* Arena::CreateMaybeMessage<::nearby::internal::LocalCredential_PrivateKey>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace nearby { namespace internal { // =================================================================== -class LocalCredential_PrivateKey final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential.PrivateKey) */ { + +// ------------------------------------------------------------------- + +class LocalCredential_PrivateKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential.PrivateKey) */ { public: inline LocalCredential_PrivateKey() : LocalCredential_PrivateKey(nullptr) {} - ~LocalCredential_PrivateKey() override; - explicit constexpr LocalCredential_PrivateKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~LocalCredential_PrivateKey() PROTOBUF_FINAL; - LocalCredential_PrivateKey(const LocalCredential_PrivateKey& from); - LocalCredential_PrivateKey(LocalCredential_PrivateKey&& from) noexcept - : LocalCredential_PrivateKey() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LocalCredential_PrivateKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LocalCredential_PrivateKey)); } +#endif + template + explicit PROTOBUF_CONSTEXPR LocalCredential_PrivateKey(::google::protobuf::internal::ConstantInitialized); + + inline LocalCredential_PrivateKey(const LocalCredential_PrivateKey& from) : LocalCredential_PrivateKey(nullptr, from) {} + inline LocalCredential_PrivateKey(LocalCredential_PrivateKey&& from) noexcept + : LocalCredential_PrivateKey(nullptr, ::std::move(from)) {} inline LocalCredential_PrivateKey& operator=(const LocalCredential_PrivateKey& from) { CopyFrom(from); return *this; } inline LocalCredential_PrivateKey& operator=(LocalCredential_PrivateKey&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -111,189 +108,218 @@ class LocalCredential_PrivateKey final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LocalCredential_PrivateKey& default_instance() { - return *internal_default_instance(); - } - static inline const LocalCredential_PrivateKey* internal_default_instance() { - return reinterpret_cast( - &_LocalCredential_PrivateKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(LocalCredential_PrivateKey& a, LocalCredential_PrivateKey& b) { - a.Swap(&b); + static const LocalCredential_PrivateKey& default_instance() { + return *reinterpret_cast( + &_LocalCredential_PrivateKey_default_instance_); } - inline void Swap(LocalCredential_PrivateKey* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(LocalCredential_PrivateKey& a, LocalCredential_PrivateKey& b) { a.Swap(&b); } + inline void Swap(LocalCredential_PrivateKey* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocalCredential_PrivateKey* other) { + void UnsafeArenaSwap(LocalCredential_PrivateKey* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocalCredential_PrivateKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LocalCredential_PrivateKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LocalCredential_PrivateKey& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LocalCredential_PrivateKey& from); + void MergeFrom(const LocalCredential_PrivateKey& from) { LocalCredential_PrivateKey::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LocalCredential_PrivateKey* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.internal.LocalCredential.PrivateKey"; + bool IsInitialized() const { + return true; } - protected: - explicit LocalCredential_PrivateKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LocalCredential_PrivateKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.LocalCredential.PrivateKey"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + explicit LocalCredential_PrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LocalCredential_PrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocalCredential_PrivateKey& from); + LocalCredential_PrivateKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocalCredential_PrivateKey&& from) noexcept + : LocalCredential_PrivateKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCertificateAliasFieldNumber = 1, kKeyFieldNumber = 2, + kEncryptedKeyFieldNumber = 3, }; // string certificate_alias = 1; - void clear_certificate_alias(); - const std::string& certificate_alias() const; - template - void set_certificate_alias(ArgT0&& arg0, ArgT... args); - std::string* mutable_certificate_alias(); - PROTOBUF_NODISCARD std::string* release_certificate_alias(); - void set_allocated_certificate_alias(std::string* certificate_alias); - private: - const std::string& _internal_certificate_alias() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_certificate_alias(const std::string& value); - std::string* _internal_mutable_certificate_alias(); - public: + void clear_certificate_alias() ; + const ::std::string& certificate_alias() const; + template + void set_certificate_alias(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_certificate_alias(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_certificate_alias(); + void set_allocated_certificate_alias(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_certificate_alias() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_certificate_alias(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_certificate_alias(); + + public: // bytes key = 2; - void clear_key(); - const std::string& key() const; - template - void set_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* key); - private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); - std::string* _internal_mutable_key(); - public: + void clear_key() ; + const ::std::string& key() const; + template + void set_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key(); + void set_allocated_key(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_key(); + + public: + // bytes encrypted_key = 3; + void clear_encrypted_key() ; + const ::std::string& encrypted_key() const; + template + void set_encrypted_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_key(); + void set_allocated_encrypted_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_encrypted_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_key(); + + public: // @@protoc_insertion_point(class_scope:nearby.internal.LocalCredential.PrivateKey) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 68, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr certificate_alias_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LocalCredential_PrivateKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr certificate_alias_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr encrypted_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2flocal_5fcredential_2eproto; }; -// ------------------------------------------------------------------- -class LocalCredential_ConsumedSaltsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - LocalCredential_ConsumedSaltsEntry_DoNotUse(); - explicit constexpr LocalCredential_ConsumedSaltsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit LocalCredential_ConsumedSaltsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const LocalCredential_ConsumedSaltsEntry_DoNotUse& other); - static const LocalCredential_ConsumedSaltsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_LocalCredential_ConsumedSaltsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; +extern const ::google::protobuf::internal::ClassDataLite<43> LocalCredential_PrivateKey_class_data_; +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -class LocalCredential final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential) */ { +class LocalCredential final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential) */ { public: inline LocalCredential() : LocalCredential(nullptr) {} - ~LocalCredential() override; - explicit constexpr LocalCredential(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~LocalCredential() PROTOBUF_FINAL; - LocalCredential(const LocalCredential& from); - LocalCredential(LocalCredential&& from) noexcept - : LocalCredential() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LocalCredential* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LocalCredential)); } +#endif + template + explicit PROTOBUF_CONSTEXPR LocalCredential(::google::protobuf::internal::ConstantInitialized); + + inline LocalCredential(const LocalCredential& from) : LocalCredential(nullptr, from) {} + inline LocalCredential(LocalCredential&& from) noexcept + : LocalCredential(nullptr, ::std::move(from)) {} inline LocalCredential& operator=(const LocalCredential& from) { CopyFrom(from); return *this; } inline LocalCredential& operator=(LocalCredential&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -301,809 +327,1243 @@ class LocalCredential final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LocalCredential& default_instance() { - return *internal_default_instance(); - } - static inline const LocalCredential* internal_default_instance() { - return reinterpret_cast( - &_LocalCredential_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(LocalCredential& a, LocalCredential& b) { - a.Swap(&b); + static const LocalCredential& default_instance() { + return *reinterpret_cast( + &_LocalCredential_default_instance_); } - inline void Swap(LocalCredential* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(LocalCredential& a, LocalCredential& b) { a.Swap(&b); } + inline void Swap(LocalCredential* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocalCredential* other) { + void UnsafeArenaSwap(LocalCredential* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocalCredential* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LocalCredential* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LocalCredential& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LocalCredential& from); + void MergeFrom(const LocalCredential& from) { LocalCredential::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LocalCredential* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.internal.LocalCredential"; + bool IsInitialized() const { + return true; } - protected: - explicit LocalCredential(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LocalCredential* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.LocalCredential"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + explicit LocalCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LocalCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocalCredential& from); + LocalCredential( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocalCredential&& from) noexcept + : LocalCredential(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef LocalCredential_PrivateKey PrivateKey; + using PrivateKey = LocalCredential_PrivateKey; // accessors ------------------------------------------------------- - enum : int { - kConsumedSaltsFieldNumber = 9, kSecretIdFieldNumber = 1, kKeySeedFieldNumber = 2, - kMetadataEncryptionKeyFieldNumber = 5, + kMetadataEncryptionKeyV0FieldNumber = 5, + kIdentityTokenV1FieldNumber = 10, + kSignatureVersionFieldNumber = 12, kAdvertisementSigningKeyFieldNumber = 6, kConnectionSigningKeyFieldNumber = 7, kStartTimeMillisFieldNumber = 3, kEndTimeMillisFieldNumber = 4, + kIdFieldNumber = 11, + kCredentialVersionFieldNumber = 13, kIdentityTypeFieldNumber = 8, + kConsumedSaltsFieldNumber = 9, }; + // bytes secret_id = 1 [deprecated = true]; + [[deprecated]] void clear_secret_id() ; + [[deprecated]] const ::std::string& secret_id() const; + template + [[deprecated]] void set_secret_id(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_secret_id(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_secret_id(); + [[deprecated]] void set_allocated_secret_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_secret_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_secret_id(); + + public: + // bytes key_seed = 2; + void clear_key_seed() ; + const ::std::string& key_seed() const; + template + void set_key_seed(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_key_seed(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_seed(); + void set_allocated_key_seed(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_key_seed() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_key_seed(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_key_seed(); + + public: + // bytes metadata_encryption_key_v0 = 5; + void clear_metadata_encryption_key_v0() ; + const ::std::string& metadata_encryption_key_v0() const; + template + void set_metadata_encryption_key_v0(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_metadata_encryption_key_v0(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_metadata_encryption_key_v0(); + void set_allocated_metadata_encryption_key_v0(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_metadata_encryption_key_v0() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key_v0(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_metadata_encryption_key_v0(); + + public: + // bytes identity_token_v1 = 10; + void clear_identity_token_v1() ; + const ::std::string& identity_token_v1() const; + template + void set_identity_token_v1(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_identity_token_v1(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_v1(); + void set_allocated_identity_token_v1(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_identity_token_v1() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_v1(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_v1(); + + public: + // string signature_version = 12 [deprecated = true]; + [[deprecated]] void clear_signature_version() ; + [[deprecated]] const ::std::string& signature_version() const; + template + [[deprecated]] void set_signature_version(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_signature_version(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature_version(); + [[deprecated]] void set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_signature_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signature_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signature_version(); + + public: + // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; + bool has_advertisement_signing_key() const; + void clear_advertisement_signing_key() ; + const ::nearby::internal::LocalCredential_PrivateKey& advertisement_signing_key() const; + [[nodiscard]] ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE release_advertisement_signing_key(); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL mutable_advertisement_signing_key(); + void set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE unsafe_arena_release_advertisement_signing_key(); + + private: + const ::nearby::internal::LocalCredential_PrivateKey& _internal_advertisement_signing_key() const; + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL _internal_mutable_advertisement_signing_key(); + + public: + // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; + bool has_connection_signing_key() const; + void clear_connection_signing_key() ; + const ::nearby::internal::LocalCredential_PrivateKey& connection_signing_key() const; + [[nodiscard]] ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE release_connection_signing_key(); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL mutable_connection_signing_key(); + void set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE unsafe_arena_release_connection_signing_key(); + + private: + const ::nearby::internal::LocalCredential_PrivateKey& _internal_connection_signing_key() const; + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL _internal_mutable_connection_signing_key(); + + public: + // int64 start_time_millis = 3; + void clear_start_time_millis() ; + ::int64_t start_time_millis() const; + void set_start_time_millis(::int64_t value); + + private: + ::int64_t _internal_start_time_millis() const; + void _internal_set_start_time_millis(::int64_t value); + + public: + // int64 end_time_millis = 4; + void clear_end_time_millis() ; + ::int64_t end_time_millis() const; + void set_end_time_millis(::int64_t value); + + private: + ::int64_t _internal_end_time_millis() const; + void _internal_set_end_time_millis(::int64_t value); + + public: + // int64 id = 11; + void clear_id() ; + ::int64_t id() const; + void set_id(::int64_t value); + + private: + ::int64_t _internal_id() const; + void _internal_set_id(::int64_t value); + + public: + // int64 credential_version = 13; + void clear_credential_version() ; + ::int64_t credential_version() const; + void set_credential_version(::int64_t value); + + private: + ::int64_t _internal_credential_version() const; + void _internal_set_credential_version(::int64_t value); + + public: + // .nearby.internal.IdentityType identity_type = 8; + void clear_identity_type() ; + ::nearby::internal::IdentityType identity_type() const; + void set_identity_type(::nearby::internal::IdentityType value); + + private: + ::nearby::internal::IdentityType _internal_identity_type() const; + void _internal_set_identity_type(::nearby::internal::IdentityType value); + + public: // map consumed_salts = 9; int consumed_salts_size() const; private: int _internal_consumed_salts_size() const; - public: - void clear_consumed_salts(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >& - _internal_consumed_salts() const; - ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >* - _internal_mutable_consumed_salts(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >& - consumed_salts() const; - ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >* - mutable_consumed_salts(); - // bytes secret_id = 1; - void clear_secret_id(); - const std::string& secret_id() const; - template - void set_secret_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_secret_id(); - PROTOBUF_NODISCARD std::string* release_secret_id(); - void set_allocated_secret_id(std::string* secret_id); - private: - const std::string& _internal_secret_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const std::string& value); - std::string* _internal_mutable_secret_id(); public: + void clear_consumed_salts() ; + const ::google::protobuf::Map<::uint32_t, bool>& consumed_salts() const; + ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL mutable_consumed_salts(); - // bytes key_seed = 2; - void clear_key_seed(); - const std::string& key_seed() const; - template - void set_key_seed(ArgT0&& arg0, ArgT... args); - std::string* mutable_key_seed(); - PROTOBUF_NODISCARD std::string* release_key_seed(); - void set_allocated_key_seed(std::string* key_seed); private: - const std::string& _internal_key_seed() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key_seed(const std::string& value); - std::string* _internal_mutable_key_seed(); - public: + const ::google::protobuf::Map<::uint32_t, bool>& _internal_consumed_salts() const; + ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL _internal_mutable_consumed_salts(); - // bytes metadata_encryption_key = 5; - void clear_metadata_encryption_key(); - const std::string& metadata_encryption_key() const; - template - void set_metadata_encryption_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_metadata_encryption_key(); - PROTOBUF_NODISCARD std::string* release_metadata_encryption_key(); - void set_allocated_metadata_encryption_key(std::string* metadata_encryption_key); - private: - const std::string& _internal_metadata_encryption_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key(const std::string& value); - std::string* _internal_mutable_metadata_encryption_key(); public: - - // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; - bool has_advertisement_signing_key() const; - private: - bool _internal_has_advertisement_signing_key() const; - public: - void clear_advertisement_signing_key(); - const ::nearby::internal::LocalCredential_PrivateKey& advertisement_signing_key() const; - PROTOBUF_NODISCARD ::nearby::internal::LocalCredential_PrivateKey* release_advertisement_signing_key(); - ::nearby::internal::LocalCredential_PrivateKey* mutable_advertisement_signing_key(); - void set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* advertisement_signing_key); - private: - const ::nearby::internal::LocalCredential_PrivateKey& _internal_advertisement_signing_key() const; - ::nearby::internal::LocalCredential_PrivateKey* _internal_mutable_advertisement_signing_key(); - public: - void unsafe_arena_set_allocated_advertisement_signing_key( - ::nearby::internal::LocalCredential_PrivateKey* advertisement_signing_key); - ::nearby::internal::LocalCredential_PrivateKey* unsafe_arena_release_advertisement_signing_key(); - - // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; - bool has_connection_signing_key() const; - private: - bool _internal_has_connection_signing_key() const; - public: - void clear_connection_signing_key(); - const ::nearby::internal::LocalCredential_PrivateKey& connection_signing_key() const; - PROTOBUF_NODISCARD ::nearby::internal::LocalCredential_PrivateKey* release_connection_signing_key(); - ::nearby::internal::LocalCredential_PrivateKey* mutable_connection_signing_key(); - void set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* connection_signing_key); - private: - const ::nearby::internal::LocalCredential_PrivateKey& _internal_connection_signing_key() const; - ::nearby::internal::LocalCredential_PrivateKey* _internal_mutable_connection_signing_key(); - public: - void unsafe_arena_set_allocated_connection_signing_key( - ::nearby::internal::LocalCredential_PrivateKey* connection_signing_key); - ::nearby::internal::LocalCredential_PrivateKey* unsafe_arena_release_connection_signing_key(); - - // int64 start_time_millis = 3; - void clear_start_time_millis(); - int64_t start_time_millis() const; - void set_start_time_millis(int64_t value); - private: - int64_t _internal_start_time_millis() const; - void _internal_set_start_time_millis(int64_t value); - public: - - // int64 end_time_millis = 4; - void clear_end_time_millis(); - int64_t end_time_millis() const; - void set_end_time_millis(int64_t value); - private: - int64_t _internal_end_time_millis() const; - void _internal_set_end_time_millis(int64_t value); - public: - - // .nearby.internal.IdentityType identity_type = 8; - void clear_identity_type(); - ::nearby::internal::IdentityType identity_type() const; - void set_identity_type(::nearby::internal::IdentityType value); - private: - ::nearby::internal::IdentityType _internal_identity_type() const; - void _internal_set_identity_type(::nearby::internal::IdentityType value); - public: - // @@protoc_insertion_point(class_scope:nearby.internal.LocalCredential) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 13, + 3, 65, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - LocalCredential_ConsumedSaltsEntry_DoNotUse, - uint32_t, bool, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL> consumed_salts_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_seed_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr metadata_encryption_key_; - ::nearby::internal::LocalCredential_PrivateKey* advertisement_signing_key_; - ::nearby::internal::LocalCredential_PrivateKey* connection_signing_key_; - int64_t start_time_millis_; - int64_t end_time_millis_; - int identity_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LocalCredential& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr secret_id_; + ::google::protobuf::internal::ArenaStringPtr key_seed_; + ::google::protobuf::internal::ArenaStringPtr metadata_encryption_key_v0_; + ::google::protobuf::internal::ArenaStringPtr identity_token_v1_; + ::google::protobuf::internal::ArenaStringPtr signature_version_; + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE advertisement_signing_key_; + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE connection_signing_key_; + ::int64_t start_time_millis_; + ::int64_t end_time_millis_; + ::int64_t id_; + ::int64_t credential_version_; + int identity_type_; + ::google::protobuf::internal::MapFieldLite<::uint32_t, bool> consumed_salts_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2flocal_5fcredential_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<32> LocalCredential_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // LocalCredential_PrivateKey // string certificate_alias = 1; inline void LocalCredential_PrivateKey::clear_certificate_alias() { - certificate_alias_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.certificate_alias_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& LocalCredential_PrivateKey::certificate_alias() const { +inline const ::std::string& LocalCredential_PrivateKey::certificate_alias() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.certificate_alias) return _internal_certificate_alias(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocalCredential_PrivateKey::set_certificate_alias(ArgT0&& arg0, ArgT... args) { - - certificate_alias_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_certificate_alias(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.certificate_alias_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.certificate_alias) } -inline std::string* LocalCredential_PrivateKey::mutable_certificate_alias() { - std::string* _s = _internal_mutable_certificate_alias(); +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_certificate_alias() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_certificate_alias(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.certificate_alias) return _s; } -inline const std::string& LocalCredential_PrivateKey::_internal_certificate_alias() const { - return certificate_alias_.Get(); +inline const ::std::string& LocalCredential_PrivateKey::_internal_certificate_alias() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.certificate_alias_.Get(); } -inline void LocalCredential_PrivateKey::_internal_set_certificate_alias(const std::string& value) { - - certificate_alias_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocalCredential_PrivateKey::_internal_set_certificate_alias(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.certificate_alias_.Set(value, GetArena()); } -inline std::string* LocalCredential_PrivateKey::_internal_mutable_certificate_alias() { - - return certificate_alias_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_certificate_alias() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.certificate_alias_.Mutable( GetArena()); } -inline std::string* LocalCredential_PrivateKey::release_certificate_alias() { +inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_certificate_alias() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.certificate_alias) - return certificate_alias_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.certificate_alias_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.certificate_alias_.Set("", GetArena()); + } + return released; } -inline void LocalCredential_PrivateKey::set_allocated_certificate_alias(std::string* certificate_alias) { - if (certificate_alias != nullptr) { - +inline void LocalCredential_PrivateKey::set_allocated_certificate_alias(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - certificate_alias_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), certificate_alias, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (certificate_alias_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - certificate_alias_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.certificate_alias_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.certificate_alias_.IsDefault()) { + _impl_.certificate_alias_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.certificate_alias) } // bytes key = 2; inline void LocalCredential_PrivateKey::clear_key() { - key_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& LocalCredential_PrivateKey::key() const { +inline const ::std::string& LocalCredential_PrivateKey::key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.key) return _internal_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocalCredential_PrivateKey::set_key(ArgT0&& arg0, ArgT... args) { - - key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.key) } -inline std::string* LocalCredential_PrivateKey::mutable_key() { - std::string* _s = _internal_mutable_key(); +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.key) return _s; } -inline const std::string& LocalCredential_PrivateKey::_internal_key() const { - return key_.Get(); +inline const ::std::string& LocalCredential_PrivateKey::_internal_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.key_.Get(); } -inline void LocalCredential_PrivateKey::_internal_set_key(const std::string& value) { - - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocalCredential_PrivateKey::_internal_set_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_.Set(value, GetArena()); } -inline std::string* LocalCredential_PrivateKey::_internal_mutable_key() { - - return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.key_.Mutable( GetArena()); } -inline std::string* LocalCredential_PrivateKey::release_key() { +inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.key) - return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.key_.Set("", GetArena()); + } + return released; } -inline void LocalCredential_PrivateKey::set_allocated_key(std::string* key) { - if (key != nullptr) { - +inline void LocalCredential_PrivateKey::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) { + _impl_.key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.key) } +// bytes encrypted_key = 3; +inline void LocalCredential_PrivateKey::clear_encrypted_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& LocalCredential_PrivateKey::encrypted_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.encrypted_key) + return _internal_encrypted_key(); +} +template +PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_encrypted_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.encrypted_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.encrypted_key) +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_encrypted_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_encrypted_key(); + // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.encrypted_key) + return _s; +} +inline const ::std::string& LocalCredential_PrivateKey::_internal_encrypted_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.encrypted_key_.Get(); +} +inline void LocalCredential_PrivateKey::_internal_set_encrypted_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encrypted_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_encrypted_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.encrypted_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_encrypted_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.encrypted_key) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.encrypted_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_key_.Set("", GetArena()); + } + return released; +} +inline void LocalCredential_PrivateKey::set_allocated_encrypted_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.encrypted_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_key_.IsDefault()) { + _impl_.encrypted_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.encrypted_key) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- // LocalCredential -// bytes secret_id = 1; +// bytes secret_id = 1 [deprecated = true]; inline void LocalCredential::clear_secret_id() { - secret_id_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.secret_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& LocalCredential::secret_id() const { +inline const ::std::string& LocalCredential::secret_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.secret_id) return _internal_secret_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocalCredential::set_secret_id(ArgT0&& arg0, ArgT... args) { - - secret_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LocalCredential::set_secret_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.secret_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.secret_id) } -inline std::string* LocalCredential::mutable_secret_id() { - std::string* _s = _internal_mutable_secret_id(); +inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_secret_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_secret_id(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.secret_id) return _s; } -inline const std::string& LocalCredential::_internal_secret_id() const { - return secret_id_.Get(); +inline const ::std::string& LocalCredential::_internal_secret_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.secret_id_.Get(); } -inline void LocalCredential::_internal_set_secret_id(const std::string& value) { - - secret_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocalCredential::_internal_set_secret_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.secret_id_.Set(value, GetArena()); } -inline std::string* LocalCredential::_internal_mutable_secret_id() { - - return secret_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_secret_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.secret_id_.Mutable( GetArena()); } -inline std::string* LocalCredential::release_secret_id() { +inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_secret_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.secret_id) - return secret_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.secret_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.secret_id_.Set("", GetArena()); + } + return released; } -inline void LocalCredential::set_allocated_secret_id(std::string* secret_id) { - if (secret_id != nullptr) { - +inline void LocalCredential::set_allocated_secret_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - secret_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), secret_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (secret_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - secret_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.secret_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.secret_id_.IsDefault()) { + _impl_.secret_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.secret_id) } // bytes key_seed = 2; inline void LocalCredential::clear_key_seed() { - key_seed_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_seed_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& LocalCredential::key_seed() const { +inline const ::std::string& LocalCredential::key_seed() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.key_seed) return _internal_key_seed(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocalCredential::set_key_seed(ArgT0&& arg0, ArgT... args) { - - key_seed_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LocalCredential::set_key_seed(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.key_seed_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.key_seed) } -inline std::string* LocalCredential::mutable_key_seed() { - std::string* _s = _internal_mutable_key_seed(); +inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_key_seed() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_key_seed(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.key_seed) return _s; } -inline const std::string& LocalCredential::_internal_key_seed() const { - return key_seed_.Get(); +inline const ::std::string& LocalCredential::_internal_key_seed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.key_seed_.Get(); } -inline void LocalCredential::_internal_set_key_seed(const std::string& value) { - - key_seed_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocalCredential::_internal_set_key_seed(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_seed_.Set(value, GetArena()); } -inline std::string* LocalCredential::_internal_mutable_key_seed() { - - return key_seed_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_key_seed() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.key_seed_.Mutable( GetArena()); } -inline std::string* LocalCredential::release_key_seed() { +inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_key_seed() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.key_seed) - return key_seed_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.key_seed_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.key_seed_.Set("", GetArena()); + } + return released; } -inline void LocalCredential::set_allocated_key_seed(std::string* key_seed) { - if (key_seed != nullptr) { - +inline void LocalCredential::set_allocated_key_seed(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - key_seed_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_seed, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (key_seed_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - key_seed_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.key_seed_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_seed_.IsDefault()) { + _impl_.key_seed_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.key_seed) } // int64 start_time_millis = 3; inline void LocalCredential::clear_start_time_millis() { - start_time_millis_ = int64_t{0}; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_time_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t LocalCredential::_internal_start_time_millis() const { - return start_time_millis_; -} -inline int64_t LocalCredential::start_time_millis() const { +inline ::int64_t LocalCredential::start_time_millis() const { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.start_time_millis) return _internal_start_time_millis(); } -inline void LocalCredential::_internal_set_start_time_millis(int64_t value) { - - start_time_millis_ = value; -} -inline void LocalCredential::set_start_time_millis(int64_t value) { +inline void LocalCredential::set_start_time_millis(::int64_t value) { _internal_set_start_time_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.start_time_millis) } +inline ::int64_t LocalCredential::_internal_start_time_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.start_time_millis_; +} +inline void LocalCredential::_internal_set_start_time_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_time_millis_ = value; +} // int64 end_time_millis = 4; inline void LocalCredential::clear_end_time_millis() { - end_time_millis_ = int64_t{0}; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_time_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int64_t LocalCredential::_internal_end_time_millis() const { - return end_time_millis_; -} -inline int64_t LocalCredential::end_time_millis() const { +inline ::int64_t LocalCredential::end_time_millis() const { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.end_time_millis) return _internal_end_time_millis(); } -inline void LocalCredential::_internal_set_end_time_millis(int64_t value) { - - end_time_millis_ = value; -} -inline void LocalCredential::set_end_time_millis(int64_t value) { +inline void LocalCredential::set_end_time_millis(::int64_t value) { _internal_set_end_time_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.end_time_millis) } +inline ::int64_t LocalCredential::_internal_end_time_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.end_time_millis_; +} +inline void LocalCredential::_internal_set_end_time_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_time_millis_ = value; +} -// bytes metadata_encryption_key = 5; -inline void LocalCredential::clear_metadata_encryption_key() { - metadata_encryption_key_.ClearToEmpty(); +// bytes metadata_encryption_key_v0 = 5; +inline void LocalCredential::clear_metadata_encryption_key_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_encryption_key_v0_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& LocalCredential::metadata_encryption_key() const { - // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.metadata_encryption_key) - return _internal_metadata_encryption_key(); +inline const ::std::string& LocalCredential::metadata_encryption_key_v0() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.metadata_encryption_key_v0) + return _internal_metadata_encryption_key_v0(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LocalCredential::set_metadata_encryption_key(ArgT0&& arg0, ArgT... args) { - - metadata_encryption_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.metadata_encryption_key) +template +PROTOBUF_ALWAYS_INLINE void LocalCredential::set_metadata_encryption_key_v0(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.metadata_encryption_key_v0_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.metadata_encryption_key_v0) } -inline std::string* LocalCredential::mutable_metadata_encryption_key() { - std::string* _s = _internal_mutable_metadata_encryption_key(); - // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.metadata_encryption_key) +inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_metadata_encryption_key_v0() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_metadata_encryption_key_v0(); + // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.metadata_encryption_key_v0) return _s; } -inline const std::string& LocalCredential::_internal_metadata_encryption_key() const { - return metadata_encryption_key_.Get(); +inline const ::std::string& LocalCredential::_internal_metadata_encryption_key_v0() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.metadata_encryption_key_v0_.Get(); } -inline void LocalCredential::_internal_set_metadata_encryption_key(const std::string& value) { - - metadata_encryption_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LocalCredential::_internal_set_metadata_encryption_key_v0(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_encryption_key_v0_.Set(value, GetArena()); } -inline std::string* LocalCredential::_internal_mutable_metadata_encryption_key() { - - return metadata_encryption_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_metadata_encryption_key_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.metadata_encryption_key_v0_.Mutable( GetArena()); } -inline std::string* LocalCredential::release_metadata_encryption_key() { - // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.metadata_encryption_key) - return metadata_encryption_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_metadata_encryption_key_v0() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.metadata_encryption_key_v0) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.metadata_encryption_key_v0_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.metadata_encryption_key_v0_.Set("", GetArena()); + } + return released; } -inline void LocalCredential::set_allocated_metadata_encryption_key(std::string* metadata_encryption_key) { - if (metadata_encryption_key != nullptr) { - +inline void LocalCredential::set_allocated_metadata_encryption_key_v0(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - metadata_encryption_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), metadata_encryption_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (metadata_encryption_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - metadata_encryption_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.metadata_encryption_key_v0_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.metadata_encryption_key_v0_.IsDefault()) { + _impl_.metadata_encryption_key_v0_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.metadata_encryption_key) + // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.metadata_encryption_key_v0) } // .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6; -inline bool LocalCredential::_internal_has_advertisement_signing_key() const { - return this != internal_default_instance() && advertisement_signing_key_ != nullptr; -} inline bool LocalCredential::has_advertisement_signing_key() const { - return _internal_has_advertisement_signing_key(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.advertisement_signing_key_ != nullptr); + return value; } inline void LocalCredential::clear_advertisement_signing_key() { - if (GetArenaForAllocation() == nullptr && advertisement_signing_key_ != nullptr) { - delete advertisement_signing_key_; - } - advertisement_signing_key_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertisement_signing_key_ != nullptr) _impl_.advertisement_signing_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::_internal_advertisement_signing_key() const { - const ::nearby::internal::LocalCredential_PrivateKey* p = advertisement_signing_key_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::internal::_LocalCredential_PrivateKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::internal::LocalCredential_PrivateKey* p = _impl_.advertisement_signing_key_; + return p != nullptr ? *p : reinterpret_cast(::nearby::internal::_LocalCredential_PrivateKey_default_instance_); } -inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::advertisement_signing_key() const { +inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::advertisement_signing_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.advertisement_signing_key) return _internal_advertisement_signing_key(); } inline void LocalCredential::unsafe_arena_set_allocated_advertisement_signing_key( - ::nearby::internal::LocalCredential_PrivateKey* advertisement_signing_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advertisement_signing_key_); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertisement_signing_key_); } - advertisement_signing_key_ = advertisement_signing_key; - if (advertisement_signing_key) { - + _impl_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.internal.LocalCredential.advertisement_signing_key) } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::release_advertisement_signing_key() { - - ::nearby::internal::LocalCredential_PrivateKey* temp = advertisement_signing_key_; - advertisement_signing_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::release_advertisement_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::internal::LocalCredential_PrivateKey* released = _impl_.advertisement_signing_key_; + _impl_.advertisement_signing_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::unsafe_arena_release_advertisement_signing_key() { +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::unsafe_arena_release_advertisement_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.advertisement_signing_key) - - ::nearby::internal::LocalCredential_PrivateKey* temp = advertisement_signing_key_; - advertisement_signing_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::internal::LocalCredential_PrivateKey* temp = _impl_.advertisement_signing_key_; + _impl_.advertisement_signing_key_ = nullptr; return temp; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::_internal_mutable_advertisement_signing_key() { - - if (advertisement_signing_key_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::internal::LocalCredential_PrivateKey>(GetArenaForAllocation()); - advertisement_signing_key_ = p; +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::_internal_mutable_advertisement_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertisement_signing_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::LocalCredential_PrivateKey>(GetArena()); + _impl_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(p); } - return advertisement_signing_key_; + return _impl_.advertisement_signing_key_; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::mutable_advertisement_signing_key() { +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::mutable_advertisement_signing_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::nearby::internal::LocalCredential_PrivateKey* _msg = _internal_mutable_advertisement_signing_key(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.advertisement_signing_key) return _msg; } -inline void LocalCredential::set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* advertisement_signing_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void LocalCredential::set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete advertisement_signing_key_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertisement_signing_key_); } - if (advertisement_signing_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::internal::LocalCredential_PrivateKey>::GetOwningArena(advertisement_signing_key); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - advertisement_signing_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, advertisement_signing_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - advertisement_signing_key_ = advertisement_signing_key; + + _impl_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.advertisement_signing_key) } // .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7; -inline bool LocalCredential::_internal_has_connection_signing_key() const { - return this != internal_default_instance() && connection_signing_key_ != nullptr; -} inline bool LocalCredential::has_connection_signing_key() const { - return _internal_has_connection_signing_key(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.connection_signing_key_ != nullptr); + return value; } inline void LocalCredential::clear_connection_signing_key() { - if (GetArenaForAllocation() == nullptr && connection_signing_key_ != nullptr) { - delete connection_signing_key_; - } - connection_signing_key_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_signing_key_ != nullptr) _impl_.connection_signing_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::_internal_connection_signing_key() const { - const ::nearby::internal::LocalCredential_PrivateKey* p = connection_signing_key_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::internal::_LocalCredential_PrivateKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::internal::LocalCredential_PrivateKey* p = _impl_.connection_signing_key_; + return p != nullptr ? *p : reinterpret_cast(::nearby::internal::_LocalCredential_PrivateKey_default_instance_); } -inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::connection_signing_key() const { +inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::connection_signing_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.connection_signing_key) return _internal_connection_signing_key(); } inline void LocalCredential::unsafe_arena_set_allocated_connection_signing_key( - ::nearby::internal::LocalCredential_PrivateKey* connection_signing_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_signing_key_); + ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_signing_key_); } - connection_signing_key_ = connection_signing_key; - if (connection_signing_key) { - + _impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.internal.LocalCredential.connection_signing_key) } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::release_connection_signing_key() { - - ::nearby::internal::LocalCredential_PrivateKey* temp = connection_signing_key_; - connection_signing_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::release_connection_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::nearby::internal::LocalCredential_PrivateKey* released = _impl_.connection_signing_key_; + _impl_.connection_signing_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::unsafe_arena_release_connection_signing_key() { +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::unsafe_arena_release_connection_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.connection_signing_key) - - ::nearby::internal::LocalCredential_PrivateKey* temp = connection_signing_key_; - connection_signing_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::nearby::internal::LocalCredential_PrivateKey* temp = _impl_.connection_signing_key_; + _impl_.connection_signing_key_ = nullptr; return temp; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::_internal_mutable_connection_signing_key() { - - if (connection_signing_key_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::internal::LocalCredential_PrivateKey>(GetArenaForAllocation()); - connection_signing_key_ = p; +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::_internal_mutable_connection_signing_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.connection_signing_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::LocalCredential_PrivateKey>(GetArena()); + _impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(p); } - return connection_signing_key_; + return _impl_.connection_signing_key_; } -inline ::nearby::internal::LocalCredential_PrivateKey* LocalCredential::mutable_connection_signing_key() { +inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::mutable_connection_signing_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::nearby::internal::LocalCredential_PrivateKey* _msg = _internal_mutable_connection_signing_key(); // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.connection_signing_key) return _msg; } -inline void LocalCredential::set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* connection_signing_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void LocalCredential::set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete connection_signing_key_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_signing_key_); } - if (connection_signing_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::internal::LocalCredential_PrivateKey>::GetOwningArena(connection_signing_key); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - connection_signing_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_signing_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - connection_signing_key_ = connection_signing_key; + + _impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.connection_signing_key) } // .nearby.internal.IdentityType identity_type = 8; inline void LocalCredential::clear_identity_type() { - identity_type_ = 0; -} -inline ::nearby::internal::IdentityType LocalCredential::_internal_identity_type() const { - return static_cast< ::nearby::internal::IdentityType >(identity_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::nearby::internal::IdentityType LocalCredential::identity_type() const { // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.identity_type) return _internal_identity_type(); } -inline void LocalCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) { - - identity_type_ = value; -} inline void LocalCredential::set_identity_type(::nearby::internal::IdentityType value) { _internal_set_identity_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.identity_type) } +inline ::nearby::internal::IdentityType LocalCredential::_internal_identity_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_); +} +inline void LocalCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = value; +} // map consumed_salts = 9; inline int LocalCredential::_internal_consumed_salts_size() const { - return consumed_salts_.size(); + return _internal_consumed_salts().size(); } inline int LocalCredential::consumed_salts_size() const { return _internal_consumed_salts_size(); } inline void LocalCredential::clear_consumed_salts() { - consumed_salts_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.consumed_salts_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00001000U); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >& -LocalCredential::_internal_consumed_salts() const { - return consumed_salts_.GetMap(); +inline const ::google::protobuf::Map<::uint32_t, bool>& LocalCredential::_internal_consumed_salts() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.consumed_salts_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >& -LocalCredential::consumed_salts() const { +inline const ::google::protobuf::Map<::uint32_t, bool>& LocalCredential::consumed_salts() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:nearby.internal.LocalCredential.consumed_salts) return _internal_consumed_salts(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >* -LocalCredential::_internal_mutable_consumed_salts() { - return consumed_salts_.MutableMap(); +inline ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL LocalCredential::_internal_mutable_consumed_salts() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.consumed_salts_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, bool >* -LocalCredential::mutable_consumed_salts() { +inline ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL LocalCredential::mutable_consumed_salts() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_mutable_map:nearby.internal.LocalCredential.consumed_salts) return _internal_mutable_consumed_salts(); } +// bytes identity_token_v1 = 10; +inline void LocalCredential::clear_identity_token_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_v1_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& LocalCredential::identity_token_v1() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.identity_token_v1) + return _internal_identity_token_v1(); +} +template +PROTOBUF_ALWAYS_INLINE void LocalCredential::set_identity_token_v1(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.identity_token_v1_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.identity_token_v1) +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_identity_token_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_identity_token_v1(); + // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.identity_token_v1) + return _s; +} +inline const ::std::string& LocalCredential::_internal_identity_token_v1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_token_v1_.Get(); +} +inline void LocalCredential::_internal_set_identity_token_v1(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_token_v1_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_identity_token_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.identity_token_v1_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_identity_token_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.identity_token_v1) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.identity_token_v1_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.identity_token_v1_.Set("", GetArena()); + } + return released; +} +inline void LocalCredential::set_allocated_identity_token_v1(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.identity_token_v1_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_v1_.IsDefault()) { + _impl_.identity_token_v1_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.identity_token_v1) +} + +// int64 id = 11; +inline void LocalCredential::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); +} +inline ::int64_t LocalCredential::id() const { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.id) + return _internal_id(); +} +inline void LocalCredential::set_id(::int64_t value) { + _internal_set_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.id) +} +inline ::int64_t LocalCredential::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void LocalCredential::_internal_set_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} + +// string signature_version = 12 [deprecated = true]; +inline void LocalCredential::clear_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); +} +inline const ::std::string& LocalCredential::signature_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.signature_version) + return _internal_signature_version(); +} +template +PROTOBUF_ALWAYS_INLINE void LocalCredential::set_signature_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.signature_version_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.signature_version) +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_signature_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_signature_version(); + // @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.signature_version) + return _s; +} +inline const ::std::string& LocalCredential::_internal_signature_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signature_version_.Get(); +} +inline void LocalCredential::_internal_set_signature_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_version_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.signature_version_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_signature_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.signature_version) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.signature_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signature_version_.Set("", GetArena()); + } + return released; +} +inline void LocalCredential::set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + } + _impl_.signature_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_version_.IsDefault()) { + _impl_.signature_version_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.signature_version) +} + +// int64 credential_version = 13; +inline void LocalCredential::clear_credential_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_version_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); +} +inline ::int64_t LocalCredential::credential_version() const { + // @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.credential_version) + return _internal_credential_version(); +} +inline void LocalCredential::set_credential_version(::int64_t value) { + _internal_set_credential_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + // @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.credential_version) +} +inline ::int64_t LocalCredential::_internal_credential_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.credential_version_; +} +inline void LocalCredential::_internal_set_credential_version(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.credential_version_ = value; +} + #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace internal } // namespace nearby + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2flocal_5fcredential_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // internal_2fproto_2flocal_5fcredential_2eproto_2epb_2eh diff --git a/compiled_proto/internal/proto/metadata.pb.cc b/compiled_proto/internal/proto/metadata.pb.cc index 9899ba34..f311ee76 100644 --- a/compiled_proto/internal/proto/metadata.pb.cc +++ b/compiled_proto/internal/proto/metadata.pb.cc @@ -1,549 +1,1627 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/metadata.proto +// Protobuf C++ Version: 6.33.3 #include "internal/proto/metadata.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace nearby { namespace internal { -constexpr Metadata::Metadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : account_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , user_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_profile_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , bluetooth_mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_type_(0) -{} + +inline constexpr PresenceIdentity::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + identity_provider_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_type_{static_cast< ::nearby::internal::IdentityType >(0)} {} + +template +PROTOBUF_CONSTEXPR PresenceIdentity::PresenceIdentity(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PresenceIdentity_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PresenceIdentityDefaultTypeInternal { + PROTOBUF_CONSTEXPR PresenceIdentityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PresenceIdentityDefaultTypeInternal() {} + union { + PresenceIdentity _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PresenceIdentityDefaultTypeInternal _PresenceIdentity_default_instance_; + +inline constexpr Metadata::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + account_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + user_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_profile_url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + bluetooth_mac_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_type_{static_cast< ::nearby::internal::DeviceType >(0)}, + instance_type_{static_cast< ::nearby::internal::InstanceType >(0)} {} + +template +PROTOBUF_CONSTEXPR Metadata::Metadata(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Metadata_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MetadataDefaultTypeInternal { - constexpr MetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MetadataDefaultTypeInternal() {} union { Metadata _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetadataDefaultTypeInternal _Metadata_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataDefaultTypeInternal _Metadata_default_instance_; + +inline constexpr DeviceIdentityMetaData::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + device_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + bluetooth_mac_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_model_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_manufacturer_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + identity_{nullptr}, + device_type_{static_cast< ::nearby::internal::DeviceType >(0)}, + instance_type_{static_cast< ::nearby::internal::InstanceType >(0)} {} + +template +PROTOBUF_CONSTEXPR DeviceIdentityMetaData::DeviceIdentityMetaData(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DeviceIdentityMetaData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DeviceIdentityMetaDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeviceIdentityMetaDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DeviceIdentityMetaDataDefaultTypeInternal() {} + union { + DeviceIdentityMetaData _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceIdentityMetaDataDefaultTypeInternal _DeviceIdentityMetaData_default_instance_; } // namespace internal } // namespace nearby -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_internal_2fproto_2fmetadata_2eproto[1]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_internal_2fproto_2fmetadata_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_internal_2fproto_2fmetadata_2eproto = nullptr; - -const uint32_t TableStruct_internal_2fproto_2fmetadata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, device_type_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, account_name_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, device_name_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, user_name_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, device_profile_url_), - PROTOBUF_FIELD_OFFSET(::nearby::internal::Metadata, bluetooth_mac_address_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::nearby::internal::Metadata)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::nearby::internal::_Metadata_default_instance_), -}; - -const char descriptor_table_protodef_internal_2fproto_2fmetadata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\035internal/proto/metadata.proto\022\017nearby." - "internal\"\265\001\n\010Metadata\0220\n\013device_type\030\001 \001" - "(\0162\033.nearby.internal.DeviceType\022\024\n\014accou" - "nt_name\030\002 \001(\t\022\023\n\013device_name\030\003 \001(\t\022\021\n\tus" - "er_name\030\004 \001(\t\022\032\n\022device_profile_url\030\005 \001(" - "\t\022\035\n\025bluetooth_mac_address\030\006 \001(\014*\260\001\n\nDev" - "iceType\022\027\n\023DEVICE_TYPE_UNKNOWN\020\000\022\025\n\021DEVI" - "CE_TYPE_PHONE\020\001\022\026\n\022DEVICE_TYPE_TABLET\020\002\022" - "\027\n\023DEVICE_TYPE_DISPLAY\020\003\022\026\n\022DEVICE_TYPE_" - "LAPTOP\020\004\022\022\n\016DEVICE_TYPE_TV\020\005\022\025\n\021DEVICE_T" - "YPE_WATCH\020\006B-\n\032com.google.nearby.presenc" - "eB\rMetadataProtoP\001b\006proto3" - ; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_internal_2fproto_2fmetadata_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2fmetadata_2eproto = { - false, false, 466, descriptor_table_protodef_internal_2fproto_2fmetadata_2eproto, "internal/proto/metadata.proto", - &descriptor_table_internal_2fproto_2fmetadata_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_internal_2fproto_2fmetadata_2eproto::offsets, - file_level_metadata_internal_2fproto_2fmetadata_2eproto, file_level_enum_descriptors_internal_2fproto_2fmetadata_2eproto, file_level_service_descriptors_internal_2fproto_2fmetadata_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_internal_2fproto_2fmetadata_2eproto_getter() { - return &descriptor_table_internal_2fproto_2fmetadata_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_internal_2fproto_2fmetadata_2eproto(&descriptor_table_internal_2fproto_2fmetadata_2eproto); namespace nearby { namespace internal { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DeviceType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_internal_2fproto_2fmetadata_2eproto); - return file_level_enum_descriptors_internal_2fproto_2fmetadata_2eproto[0]; -} -bool DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { + 720896u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceType_strings[11] = {}; - -// =================================================================== - -class Metadata::_Internal { - public: +static const char DeviceType_names[] = { + "DEVICE_TYPE_AUTOMOTIVE" + "DEVICE_TYPE_CHROMEOS" + "DEVICE_TYPE_DISPLAY" + "DEVICE_TYPE_FOLDABLE" + "DEVICE_TYPE_LAPTOP" + "DEVICE_TYPE_PHONE" + "DEVICE_TYPE_SPEAKER" + "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TV" + "DEVICE_TYPE_UNKNOWN" + "DEVICE_TYPE_WATCH" }; -Metadata::Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.internal.Metadata) -} -Metadata::Metadata(const Metadata& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - account_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - account_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_account_name().empty()) { - account_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account_name(), - GetArenaForAllocation()); - } - device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_device_name().empty()) { - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_name(), - GetArenaForAllocation()); - } - user_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - user_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_user_name().empty()) { - user_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_user_name(), - GetArenaForAllocation()); - } - device_profile_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_profile_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_device_profile_url().empty()) { - device_profile_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_profile_url(), - GetArenaForAllocation()); - } - bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_bluetooth_mac_address().empty()) { - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bluetooth_mac_address(), - GetArenaForAllocation()); - } - device_type_ = from.device_type_; - // @@protoc_insertion_point(copy_constructor:nearby.internal.Metadata) +static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { + {{&DeviceType_names[0], 22}, 9}, + {{&DeviceType_names[22], 20}, 7}, + {{&DeviceType_names[42], 19}, 3}, + {{&DeviceType_names[61], 20}, 8}, + {{&DeviceType_names[81], 18}, 4}, + {{&DeviceType_names[99], 17}, 1}, + {{&DeviceType_names[116], 19}, 10}, + {{&DeviceType_names[135], 18}, 2}, + {{&DeviceType_names[153], 14}, 5}, + {{&DeviceType_names[167], 19}, 0}, + {{&DeviceType_names[186], 17}, 6}, +}; + +static const int DeviceType_entries_by_number[] = { + 9, // 0 -> DEVICE_TYPE_UNKNOWN + 5, // 1 -> DEVICE_TYPE_PHONE + 7, // 2 -> DEVICE_TYPE_TABLET + 2, // 3 -> DEVICE_TYPE_DISPLAY + 4, // 4 -> DEVICE_TYPE_LAPTOP + 8, // 5 -> DEVICE_TYPE_TV + 10, // 6 -> DEVICE_TYPE_WATCH + 1, // 7 -> DEVICE_TYPE_CHROMEOS + 3, // 8 -> DEVICE_TYPE_FOLDABLE + 0, // 9 -> DEVICE_TYPE_AUTOMOTIVE + 6, // 10 -> DEVICE_TYPE_SPEAKER +}; + +const ::std::string& DeviceType_Name(DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceType_entries, DeviceType_entries_by_number, 11, + DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, + DeviceType_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); } -inline void Metadata::SharedCtor() { -account_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - account_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -user_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - user_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_profile_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_profile_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_type_ = 0; +bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + DeviceType_entries, 11, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t InstanceType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + InstanceType_strings[3] = {}; + +static const char InstanceType_names[] = { + "INSTANCE_TYPE_MAIN" + "INSTANCE_TYPE_SECONDARY" + "INSTANCE_TYPE_UNKNOWN" +}; + +static const ::google::protobuf::internal::EnumEntry InstanceType_entries[] = { + {{&InstanceType_names[0], 18}, 1}, + {{&InstanceType_names[18], 23}, 2}, + {{&InstanceType_names[41], 21}, 0}, +}; + +static const int InstanceType_entries_by_number[] = { + 2, // 0 -> INSTANCE_TYPE_UNKNOWN + 0, // 1 -> INSTANCE_TYPE_MAIN + 1, // 2 -> INSTANCE_TYPE_SECONDARY +}; + +const ::std::string& InstanceType_Name(InstanceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + InstanceType_entries, InstanceType_entries_by_number, 3, + InstanceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(InstanceType_entries, + InstanceType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InstanceType_strings[idx].get(); } -Metadata::~Metadata() { - // @@protoc_insertion_point(destructor:nearby.internal.Metadata) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +bool InstanceType_Parse(::absl::string_view name, InstanceType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + InstanceType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; } +// =================================================================== -inline void Metadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - account_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - user_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_profile_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - bluetooth_mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +class DeviceIdentityMetaData::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_._has_bits_); +}; + +DeviceIdentityMetaData::DeviceIdentityMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceIdentityMetaData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:nearby.internal.DeviceIdentityMetaData) } +PROTOBUF_NDEBUG_INLINE DeviceIdentityMetaData::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::DeviceIdentityMetaData& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + device_name_(arena, from.device_name_), + bluetooth_mac_address_(arena, from.bluetooth_mac_address_), + device_id_(arena, from.device_id_), + device_model_name_(arena, from.device_model_name_), + device_manufacturer_(arena, from.device_manufacturer_) {} -void Metadata::ArenaDtor(void* object) { - Metadata* _this = reinterpret_cast< Metadata* >(object); +DeviceIdentityMetaData::DeviceIdentityMetaData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DeviceIdentityMetaData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceIdentityMetaData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DeviceIdentityMetaData* 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_.identity_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.identity_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, device_type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, device_type_), + offsetof(Impl_, instance_type_) - + offsetof(Impl_, device_type_) + + sizeof(Impl_::instance_type_)); + + // @@protoc_insertion_point(copy_constructor:nearby.internal.DeviceIdentityMetaData) } -void Metadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_NDEBUG_INLINE DeviceIdentityMetaData::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + device_name_(arena), + bluetooth_mac_address_(arena), + device_id_(arena), + device_model_name_(arena), + device_manufacturer_(arena) {} + +inline void DeviceIdentityMetaData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, identity_), + 0, + offsetof(Impl_, instance_type_) - + offsetof(Impl_, identity_) + + sizeof(Impl_::instance_type_)); } -void Metadata::SetCachedSize(int size) const { - _cached_size_.Set(size); +DeviceIdentityMetaData::~DeviceIdentityMetaData() { + // @@protoc_insertion_point(destructor:nearby.internal.DeviceIdentityMetaData) + SharedDtor(*this); +} +inline void DeviceIdentityMetaData::SharedDtor(MessageLite& self) { + DeviceIdentityMetaData& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.device_name_.Destroy(); + this_._impl_.bluetooth_mac_address_.Destroy(); + this_._impl_.device_id_.Destroy(); + this_._impl_.device_model_name_.Destroy(); + this_._impl_.device_manufacturer_.Destroy(); + delete this_._impl_.identity_; + this_._impl_.~Impl_(); } -void Metadata::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.internal.Metadata) - uint32_t cached_has_bits = 0; +inline void* PROTOBUF_NONNULL DeviceIdentityMetaData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DeviceIdentityMetaData(arena); +} +constexpr auto DeviceIdentityMetaData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DeviceIdentityMetaData), + alignof(DeviceIdentityMetaData)); +} +constexpr auto DeviceIdentityMetaData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<39>{ + { + &_DeviceIdentityMetaData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DeviceIdentityMetaData::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DeviceIdentityMetaData::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DeviceIdentityMetaData::ByteSizeLong, + &DeviceIdentityMetaData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_._cached_size_), + true, + }, + "nearby.internal.DeviceIdentityMetaData", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<39> DeviceIdentityMetaData_class_data_ = + DeviceIdentityMetaData::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DeviceIdentityMetaData::GetClassData() const { + return DeviceIdentityMetaData_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 1, 102, 2> +DeviceIdentityMetaData::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _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), + DeviceIdentityMetaData_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::DeviceIdentityMetaData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .nearby.internal.PresenceIdentity identity = 8; + {::_pbi::TcParser::FastMtS1, + {66, 5, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.identity_)}}, + // .nearby.internal.DeviceType device_type = 1; + {::_pbi::TcParser::FastV32S1, + {8, 6, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_type_)}}, + // string device_name = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_name_)}}, + // bytes bluetooth_mac_address = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.bluetooth_mac_address_)}}, + // .nearby.internal.InstanceType instance_type = 4; + {::_pbi::TcParser::FastV32S1, + {32, 7, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.instance_type_)}}, + // bytes device_id = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_id_)}}, + // string device_model_name = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_model_name_)}}, + // string device_manufacturer = 7; + {::_pbi::TcParser::FastUS1, + {58, 4, 0, + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_manufacturer_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .nearby.internal.DeviceType device_type = 1; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_type_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string device_name = 2; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes bluetooth_mac_address = 3; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.bluetooth_mac_address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .nearby.internal.InstanceType instance_type = 4; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.instance_type_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // bytes device_id = 5; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // string device_model_name = 6; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_model_name_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string device_manufacturer = 7; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.device_manufacturer_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .nearby.internal.PresenceIdentity identity = 8; + {PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.identity_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::internal::PresenceIdentity>()}, + }}, + {{ + "\46\0\13\0\0\0\21\23\0\0\0\0\0\0\0\0" + "nearby.internal.DeviceIdentityMetaData" + "device_name" + "device_model_name" + "device_manufacturer" + }}, +}; +PROTOBUF_NOINLINE void DeviceIdentityMetaData::Clear() { +// @@protoc_insertion_point(message_clear_start:nearby.internal.DeviceIdentityMetaData) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - account_name_.ClearToEmpty(); - device_name_.ClearToEmpty(); - user_name_.ClearToEmpty(); - device_profile_url_.ClearToEmpty(); - bluetooth_mac_address_.ClearToEmpty(); - device_type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Metadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .nearby.internal.DeviceType device_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_device_type(static_cast<::nearby::internal::DeviceType>(val)); - } else - goto handle_unusual; - continue; - // string account_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_account_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.internal.Metadata.account_name")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string device_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_device_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.internal.Metadata.device_name")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string user_name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_user_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.internal.Metadata.user_name")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string device_profile_url = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_device_profile_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.internal.Metadata.device_profile_url")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes bluetooth_mac_address = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_bluetooth_mac_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.device_name_.ClearNonDefaultToEmpty(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.bluetooth_mac_address_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.device_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.device_model_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.device_manufacturer_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.identity_ != nullptr); + _impl_.identity_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) { + ::memset(&_impl_.device_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.instance_type_) - + reinterpret_cast(&_impl_.device_type_)) + sizeof(_impl_.instance_type_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* Metadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.Metadata) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DeviceIdentityMetaData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DeviceIdentityMetaData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DeviceIdentityMetaData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DeviceIdentityMetaData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.DeviceIdentityMetaData) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // .nearby.internal.DeviceType device_type = 1; - if (this->_internal_device_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_device_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_device_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_device_type(), target); + } } - // string account_name = 2; - if (!this->_internal_account_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_account_name().data(), static_cast(this->_internal_account_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "nearby.internal.Metadata.account_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_account_name(), target); + // string device_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_device_name().empty()) { + const ::std::string& _s = this_._internal_device_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.DeviceIdentityMetaData.device_name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } - // string device_name = 3; - if (!this->_internal_device_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_device_name().data(), static_cast(this->_internal_device_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "nearby.internal.Metadata.device_name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_device_name(), target); + // bytes bluetooth_mac_address = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_bluetooth_mac_address().empty()) { + const ::std::string& _s = this_._internal_bluetooth_mac_address(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - // string user_name = 4; - if (!this->_internal_user_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_user_name().data(), static_cast(this->_internal_user_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "nearby.internal.Metadata.user_name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_user_name(), target); + // .nearby.internal.InstanceType instance_type = 4; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_instance_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_instance_type(), target); + } } - // string device_profile_url = 5; - if (!this->_internal_device_profile_url().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_device_profile_url().data(), static_cast(this->_internal_device_profile_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "nearby.internal.Metadata.device_profile_url"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_device_profile_url(), target); + // bytes device_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_device_id().empty()) { + const ::std::string& _s = this_._internal_device_id(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - // bytes bluetooth_mac_address = 6; - if (!this->_internal_bluetooth_mac_address().empty()) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_bluetooth_mac_address(), target); + // string device_model_name = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_device_model_name().empty()) { + const ::std::string& _s = this_._internal_device_model_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.DeviceIdentityMetaData.device_model_name"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + // string device_manufacturer = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_device_manufacturer().empty()) { + const ::std::string& _s = this_._internal_device_manufacturer(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.DeviceIdentityMetaData.device_manufacturer"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } } - // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.Metadata) + + // .nearby.internal.PresenceIdentity identity = 8; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.identity_, this_._impl_.identity_->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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.DeviceIdentityMetaData) return target; } -size_t Metadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.internal.Metadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DeviceIdentityMetaData::ByteSizeLong(const MessageLite& base) { + const DeviceIdentityMetaData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DeviceIdentityMetaData::ByteSizeLong() const { + const DeviceIdentityMetaData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.DeviceIdentityMetaData) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string account_name = 2; - if (!this->_internal_account_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_account_name()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string device_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_device_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_name()); + } + } + // bytes bluetooth_mac_address = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_bluetooth_mac_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_bluetooth_mac_address()); + } + } + // bytes device_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_device_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_device_id()); + } + } + // string device_model_name = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_device_model_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_model_name()); + } + } + // string device_manufacturer = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_device_manufacturer().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_manufacturer()); + } + } + // .nearby.internal.PresenceIdentity identity = 8; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.identity_); + } + // .nearby.internal.DeviceType device_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_device_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); + } + } + // .nearby.internal.InstanceType instance_type = 4; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_instance_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_instance_type()); + } + } } - - // string device_name = 3; - if (!this->_internal_device_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_name()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - // string user_name = 4; - if (!this->_internal_user_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_user_name()); - } - - // string device_profile_url = 5; - if (!this->_internal_device_profile_url().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_profile_url()); - } - - // bytes bluetooth_mac_address = 6; - if (!this->_internal_bluetooth_mac_address().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_bluetooth_mac_address()); - } - - // .nearby.internal.DeviceType device_type = 1; - if (this->_internal_device_type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Metadata::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - Metadata::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Metadata::GetClassData() const { return &_class_data_; } +void DeviceIdentityMetaData::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.DeviceIdentityMetaData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void Metadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_device_name().empty()) { + _this->_internal_set_device_name(from._internal_device_name()); + } else { + if (_this->_impl_.device_name_.IsDefault()) { + _this->_internal_set_device_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_bluetooth_mac_address().empty()) { + _this->_internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); + } else { + if (_this->_impl_.bluetooth_mac_address_.IsDefault()) { + _this->_internal_set_bluetooth_mac_address(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_device_id().empty()) { + _this->_internal_set_device_id(from._internal_device_id()); + } else { + if (_this->_impl_.device_id_.IsDefault()) { + _this->_internal_set_device_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_device_model_name().empty()) { + _this->_internal_set_device_model_name(from._internal_device_model_name()); + } else { + if (_this->_impl_.device_model_name_.IsDefault()) { + _this->_internal_set_device_model_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!from._internal_device_manufacturer().empty()) { + _this->_internal_set_device_manufacturer(from._internal_device_manufacturer()); + } else { + if (_this->_impl_.device_manufacturer_.IsDefault()) { + _this->_internal_set_device_manufacturer(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.identity_ != nullptr); + if (_this->_impl_.identity_ == nullptr) { + _this->_impl_.identity_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.identity_); + } else { + _this->_impl_.identity_->MergeFrom(*from._impl_.identity_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_device_type() != 0) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_instance_type() != 0) { + _this->_impl_.instance_type_ = from._impl_.instance_type_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } - -void Metadata::MergeFrom(const Metadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.Metadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_account_name().empty()) { - _internal_set_account_name(from._internal_account_name()); - } - if (!from._internal_device_name().empty()) { - _internal_set_device_name(from._internal_device_name()); - } - if (!from._internal_user_name().empty()) { - _internal_set_user_name(from._internal_user_name()); - } - if (!from._internal_device_profile_url().empty()) { - _internal_set_device_profile_url(from._internal_device_profile_url()); - } - if (!from._internal_bluetooth_mac_address().empty()) { - _internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); - } - if (from._internal_device_type() != 0) { - _internal_set_device_type(from._internal_device_type()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void Metadata::CopyFrom(const Metadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.Metadata) +void DeviceIdentityMetaData::CopyFrom(const DeviceIdentityMetaData& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.DeviceIdentityMetaData) if (&from == this) return; Clear(); MergeFrom(from); } -bool Metadata::IsInitialized() const { - return true; -} -void Metadata::InternalSwap(Metadata* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void DeviceIdentityMetaData::InternalSwap(DeviceIdentityMetaData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &account_name_, lhs_arena, - &other->account_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_name_, lhs_arena, - &other->device_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &user_name_, lhs_arena, - &other->user_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_profile_url_, lhs_arena, - &other->device_profile_url_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bluetooth_mac_address_, lhs_arena, - &other->bluetooth_mac_address_, rhs_arena - ); - swap(device_type_, other->device_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_name_, &other->_impl_.device_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bluetooth_mac_address_, &other->_impl_.bluetooth_mac_address_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_id_, &other->_impl_.device_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_model_name_, &other->_impl_.device_model_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_manufacturer_, &other->_impl_.device_manufacturer_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.instance_type_) + + sizeof(DeviceIdentityMetaData::_impl_.instance_type_) + - PROTOBUF_FIELD_OFFSET(DeviceIdentityMetaData, _impl_.identity_)>( + reinterpret_cast(&_impl_.identity_), + reinterpret_cast(&other->_impl_.identity_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Metadata::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_internal_2fproto_2fmetadata_2eproto_getter, &descriptor_table_internal_2fproto_2fmetadata_2eproto_once, - file_level_metadata_internal_2fproto_2fmetadata_2eproto[0]); +// =================================================================== + +class PresenceIdentity::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_._has_bits_); +}; + +PresenceIdentity::PresenceIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PresenceIdentity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:nearby.internal.PresenceIdentity) +} +PROTOBUF_NDEBUG_INLINE PresenceIdentity::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::PresenceIdentity& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + identity_provider_name_(arena, from.identity_provider_name_) {} + +PresenceIdentity::PresenceIdentity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PresenceIdentity& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PresenceIdentity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PresenceIdentity* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.identity_type_ = from._impl_.identity_type_; + + // @@protoc_insertion_point(copy_constructor:nearby.internal.PresenceIdentity) +} +PROTOBUF_NDEBUG_INLINE PresenceIdentity::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + identity_provider_name_(arena) {} + +inline void PresenceIdentity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.identity_type_ = {}; +} +PresenceIdentity::~PresenceIdentity() { + // @@protoc_insertion_point(destructor:nearby.internal.PresenceIdentity) + SharedDtor(*this); +} +inline void PresenceIdentity::SharedDtor(MessageLite& self) { + PresenceIdentity& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.identity_provider_name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL PresenceIdentity::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PresenceIdentity(arena); +} +constexpr auto PresenceIdentity::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PresenceIdentity), + alignof(PresenceIdentity)); +} +constexpr auto PresenceIdentity::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<33>{ + { + &_PresenceIdentity_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PresenceIdentity::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PresenceIdentity::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PresenceIdentity::ByteSizeLong, + &PresenceIdentity::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_._cached_size_), + true, + }, + "nearby.internal.PresenceIdentity", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<33> PresenceIdentity_class_data_ = + PresenceIdentity::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PresenceIdentity::GetClassData() const { + return PresenceIdentity_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 63, 2> +PresenceIdentity::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PresenceIdentity_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::PresenceIdentity>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string identity_provider_name = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_.identity_provider_name_)}}, + // .nearby.internal.IdentityType identity_type = 1; + {::_pbi::TcParser::FastV32S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_.identity_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .nearby.internal.IdentityType identity_type = 1; + {PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_.identity_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string identity_provider_name = 2; + {PROTOBUF_FIELD_OFFSET(PresenceIdentity, _impl_.identity_provider_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\40\0\26\0\0\0\0\0" + "nearby.internal.PresenceIdentity" + "identity_provider_name" + }}, +}; +PROTOBUF_NOINLINE void PresenceIdentity::Clear() { +// @@protoc_insertion_point(message_clear_start:nearby.internal.PresenceIdentity) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.identity_provider_name_.ClearNonDefaultToEmpty(); + } + _impl_.identity_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PresenceIdentity::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PresenceIdentity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PresenceIdentity::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PresenceIdentity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.PresenceIdentity) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .nearby.internal.IdentityType identity_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_identity_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_identity_type(), target); + } + } + + // string identity_provider_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_identity_provider_name().empty()) { + const ::std::string& _s = this_._internal_identity_provider_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.PresenceIdentity.identity_provider_name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.PresenceIdentity) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PresenceIdentity::ByteSizeLong(const MessageLite& base) { + const PresenceIdentity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PresenceIdentity::ByteSizeLong() const { + const PresenceIdentity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.PresenceIdentity) + ::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)) { + // string identity_provider_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_identity_provider_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_identity_provider_name()); + } + } + // .nearby.internal.IdentityType identity_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_identity_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_identity_type()); + } + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void PresenceIdentity::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.PresenceIdentity) + 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)) { + if (!from._internal_identity_provider_name().empty()) { + _this->_internal_set_identity_provider_name(from._internal_identity_provider_name()); + } else { + if (_this->_impl_.identity_provider_name_.IsDefault()) { + _this->_internal_set_identity_provider_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_identity_type() != 0) { + _this->_impl_.identity_type_ = from._impl_.identity_type_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void PresenceIdentity::CopyFrom(const PresenceIdentity& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.PresenceIdentity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void PresenceIdentity::InternalSwap(PresenceIdentity* 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_.identity_provider_name_, &other->_impl_.identity_provider_name_, arena); + swap(_impl_.identity_type_, other->_impl_.identity_type_); +} + +// =================================================================== + +class Metadata::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Metadata, _impl_._has_bits_); +}; + +Metadata::Metadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Metadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:nearby.internal.Metadata) +} +PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::internal::Metadata& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + account_name_(arena, from.account_name_), + device_name_(arena, from.device_name_), + user_name_(arena, from.user_name_), + device_profile_url_(arena, from.device_profile_url_), + bluetooth_mac_address_(arena, from.bluetooth_mac_address_) {} + +Metadata::Metadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Metadata& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Metadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Metadata* 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(&_impl_) + + offsetof(Impl_, device_type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, device_type_), + offsetof(Impl_, instance_type_) - + offsetof(Impl_, device_type_) + + sizeof(Impl_::instance_type_)); + + // @@protoc_insertion_point(copy_constructor:nearby.internal.Metadata) +} +PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + account_name_(arena), + device_name_(arena), + user_name_(arena), + device_profile_url_(arena), + bluetooth_mac_address_(arena) {} + +inline void Metadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, device_type_), + 0, + offsetof(Impl_, instance_type_) - + offsetof(Impl_, device_type_) + + sizeof(Impl_::instance_type_)); +} +Metadata::~Metadata() { + // @@protoc_insertion_point(destructor:nearby.internal.Metadata) + SharedDtor(*this); +} +inline void Metadata::SharedDtor(MessageLite& self) { + Metadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.account_name_.Destroy(); + this_._impl_.device_name_.Destroy(); + this_._impl_.user_name_.Destroy(); + this_._impl_.device_profile_url_.Destroy(); + this_._impl_.bluetooth_mac_address_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Metadata::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Metadata(arena); +} +constexpr auto Metadata::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Metadata), + alignof(Metadata)); +} +constexpr auto Metadata::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_Metadata_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Metadata::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Metadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Metadata::ByteSizeLong, + &Metadata::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Metadata, _impl_._cached_size_), + true, + }, + "nearby.internal.Metadata", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> Metadata_class_data_ = + Metadata::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Metadata::GetClassData() const { + return Metadata_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 0, 83, 2> +Metadata::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Metadata, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Metadata_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::internal::Metadata>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .nearby.internal.DeviceType device_type = 1; + {::_pbi::TcParser::FastV32S1, + {8, 5, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_type_)}}, + // string account_name = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.account_name_)}}, + // string device_name = 3; + {::_pbi::TcParser::FastUS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_name_)}}, + // string user_name = 4; + {::_pbi::TcParser::FastUS1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.user_name_)}}, + // string device_profile_url = 5; + {::_pbi::TcParser::FastUS1, + {42, 3, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_profile_url_)}}, + // bytes bluetooth_mac_address = 6; + {::_pbi::TcParser::FastBS1, + {50, 4, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.bluetooth_mac_address_)}}, + // .nearby.internal.InstanceType instance_type = 7; + {::_pbi::TcParser::FastV32S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.instance_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .nearby.internal.DeviceType device_type = 1; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_type_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string account_name = 2; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.account_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string device_name = 3; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string user_name = 4; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.user_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string device_profile_url = 5; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_profile_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bytes bluetooth_mac_address = 6; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.bluetooth_mac_address_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .nearby.internal.InstanceType instance_type = 7; + {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.instance_type_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{ + "\30\0\14\13\11\22\0\0" + "nearby.internal.Metadata" + "account_name" + "device_name" + "user_name" + "device_profile_url" + }}, +}; +PROTOBUF_NOINLINE void Metadata::Clear() { +// @@protoc_insertion_point(message_clear_start:nearby.internal.Metadata) + ::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)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.account_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.device_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.user_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.device_profile_url_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.bluetooth_mac_address_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000060U)) { + ::memset(&_impl_.device_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.instance_type_) - + reinterpret_cast(&_impl_.device_type_)) + sizeof(_impl_.instance_type_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Metadata::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Metadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Metadata::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Metadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:nearby.internal.Metadata) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .nearby.internal.DeviceType device_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_device_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_device_type(), target); + } + } + + // string account_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_account_name().empty()) { + const ::std::string& _s = this_._internal_account_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.Metadata.account_name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + } + + // string device_name = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_device_name().empty()) { + const ::std::string& _s = this_._internal_device_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.Metadata.device_name"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + } + + // string user_name = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_user_name().empty()) { + const ::std::string& _s = this_._internal_user_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.Metadata.user_name"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + } + + // string device_profile_url = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_device_profile_url().empty()) { + const ::std::string& _s = this_._internal_device_profile_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.Metadata.device_profile_url"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + } + + // bytes bluetooth_mac_address = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_bluetooth_mac_address().empty()) { + const ::std::string& _s = this_._internal_bluetooth_mac_address(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } + } + + // .nearby.internal.InstanceType instance_type = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_instance_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_instance_type(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:nearby.internal.Metadata) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Metadata::ByteSizeLong(const MessageLite& base) { + const Metadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Metadata::ByteSizeLong() const { + const Metadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.internal.Metadata) + ::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)) { + // string account_name = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_account_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_account_name()); + } + } + // string device_name = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_device_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_name()); + } + } + // string user_name = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_user_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_user_name()); + } + } + // string device_profile_url = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_device_profile_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_profile_url()); + } + } + // bytes bluetooth_mac_address = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_bluetooth_mac_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_bluetooth_mac_address()); + } + } + // .nearby.internal.DeviceType device_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_device_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); + } + } + // .nearby.internal.InstanceType instance_type = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_instance_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_instance_type()); + } + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void Metadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.Metadata) + 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)) { + if (!from._internal_account_name().empty()) { + _this->_internal_set_account_name(from._internal_account_name()); + } else { + if (_this->_impl_.account_name_.IsDefault()) { + _this->_internal_set_account_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_device_name().empty()) { + _this->_internal_set_device_name(from._internal_device_name()); + } else { + if (_this->_impl_.device_name_.IsDefault()) { + _this->_internal_set_device_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_user_name().empty()) { + _this->_internal_set_user_name(from._internal_user_name()); + } else { + if (_this->_impl_.user_name_.IsDefault()) { + _this->_internal_set_user_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_device_profile_url().empty()) { + _this->_internal_set_device_profile_url(from._internal_device_profile_url()); + } else { + if (_this->_impl_.device_profile_url_.IsDefault()) { + _this->_internal_set_device_profile_url(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!from._internal_bluetooth_mac_address().empty()) { + _this->_internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); + } else { + if (_this->_impl_.bluetooth_mac_address_.IsDefault()) { + _this->_internal_set_bluetooth_mac_address(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_device_type() != 0) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_instance_type() != 0) { + _this->_impl_.instance_type_ = from._impl_.instance_type_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Metadata::CopyFrom(const Metadata& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.Metadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Metadata::InternalSwap(Metadata* 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_.account_name_, &other->_impl_.account_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_name_, &other->_impl_.device_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_name_, &other->_impl_.user_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_profile_url_, &other->_impl_.device_profile_url_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bluetooth_mac_address_, &other->_impl_.bluetooth_mac_address_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Metadata, _impl_.instance_type_) + + sizeof(Metadata::_impl_.instance_type_) + - PROTOBUF_FIELD_OFFSET(Metadata, _impl_.device_type_)>( + reinterpret_cast(&_impl_.device_type_), + reinterpret_cast(&other->_impl_.device_type_)); } // @@protoc_insertion_point(namespace_scope) } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::internal::Metadata* Arena::CreateMaybeMessage< ::nearby::internal::Metadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::internal::Metadata >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/internal/proto/metadata.pb.h b/compiled_proto/internal/proto/metadata.pb.h index ce60cb8f..00bd03ca 100644 --- a/compiled_proto/internal/proto/metadata.pb.h +++ b/compiled_proto/internal/proto/metadata.pb.h @@ -1,72 +1,86 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/metadata.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fmetadata_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fmetadata_2eproto +#ifndef internal_2fproto_2fmetadata_2eproto_2epb_2eh +#define internal_2fproto_2fmetadata_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +#include "internal/proto/credential.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fmetadata_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_internal_2fproto_2fmetadata_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_internal_2fproto_2fmetadata_2eproto; namespace nearby { namespace internal { +enum DeviceType : int; +extern const uint32_t DeviceType_internal_data_[]; +enum InstanceType : int; +extern const uint32_t InstanceType_internal_data_[]; +class DeviceIdentityMetaData; +struct DeviceIdentityMetaDataDefaultTypeInternal; +extern DeviceIdentityMetaDataDefaultTypeInternal _DeviceIdentityMetaData_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<39> DeviceIdentityMetaData_class_data_; class Metadata; struct MetadataDefaultTypeInternal; extern MetadataDefaultTypeInternal _Metadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> Metadata_class_data_; +class PresenceIdentity; +struct PresenceIdentityDefaultTypeInternal; +extern PresenceIdentityDefaultTypeInternal _PresenceIdentity_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<33> PresenceIdentity_class_data_; } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::internal::Metadata* Arena::CreateMaybeMessage<::nearby::internal::Metadata>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::nearby::internal::DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::nearby::internal::DeviceType>; +template <> +internal::EnumTraitsT<::nearby::internal::InstanceType_internal_data_> + internal::EnumTraitsImpl::value<::nearby::internal::InstanceType>; +} // namespace protobuf +} // namespace google + namespace nearby { namespace internal { - enum DeviceType : int { DEVICE_TYPE_UNKNOWN = 0, DEVICE_TYPE_PHONE = 1, @@ -75,54 +89,96 @@ enum DeviceType : int { DEVICE_TYPE_LAPTOP = 4, DEVICE_TYPE_TV = 5, DEVICE_TYPE_WATCH = 6, - DeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - DeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + DEVICE_TYPE_CHROMEOS = 7, + DEVICE_TYPE_FOLDABLE = 8, + DEVICE_TYPE_AUTOMOTIVE = 9, + DEVICE_TYPE_SPEAKER = 10, + DeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + DeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), }; -bool DeviceType_IsValid(int value); -constexpr DeviceType DeviceType_MIN = DEVICE_TYPE_UNKNOWN; -constexpr DeviceType DeviceType_MAX = DEVICE_TYPE_WATCH; -constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DeviceType_descriptor(); -template -inline const std::string& DeviceType_Name(T enum_t_value) { +extern const uint32_t DeviceType_internal_data_[]; +inline constexpr DeviceType DeviceType_MIN = + static_cast(0); +inline constexpr DeviceType DeviceType_MAX = + static_cast(10); +inline bool DeviceType_IsValid(int value) { + return 0 <= value && value <= 10; +} +inline constexpr int DeviceType_ARRAYSIZE = 10 + 1; +const ::std::string& DeviceType_Name(DeviceType value); +template +const ::std::string& DeviceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DeviceType_descriptor(), enum_t_value); + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return DeviceType_Name(static_cast(value)); } -inline bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DeviceType_descriptor(), name, value); +bool DeviceType_Parse( + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); +enum InstanceType : int { + INSTANCE_TYPE_UNKNOWN = 0, + INSTANCE_TYPE_MAIN = 1, + INSTANCE_TYPE_SECONDARY = 2, + InstanceType_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + InstanceType_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), +}; + +extern const uint32_t InstanceType_internal_data_[]; +inline constexpr InstanceType InstanceType_MIN = + static_cast(0); +inline constexpr InstanceType InstanceType_MAX = + static_cast(2); +inline bool InstanceType_IsValid(int value) { + return 0 <= value && value <= 2; } +inline constexpr int InstanceType_ARRAYSIZE = 2 + 1; +const ::std::string& InstanceType_Name(InstanceType value); +template +const ::std::string& InstanceType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to InstanceType_Name()."); + return InstanceType_Name(static_cast(value)); +} +bool InstanceType_Parse( + ::absl::string_view name, InstanceType* PROTOBUF_NONNULL value); + // =================================================================== -class Metadata final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.internal.Metadata) */ { + +// ------------------------------------------------------------------- + +class PresenceIdentity final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.PresenceIdentity) */ { public: - inline Metadata() : Metadata(nullptr) {} - ~Metadata() override; - explicit constexpr Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PresenceIdentity() : PresenceIdentity(nullptr) {} + ~PresenceIdentity() PROTOBUF_FINAL; - Metadata(const Metadata& from); - Metadata(Metadata&& from) noexcept - : Metadata() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PresenceIdentity* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PresenceIdentity)); } +#endif - inline Metadata& operator=(const Metadata& from) { + template + explicit PROTOBUF_CONSTEXPR PresenceIdentity(::google::protobuf::internal::ConstantInitialized); + + inline PresenceIdentity(const PresenceIdentity& from) : PresenceIdentity(nullptr, from) {} + inline PresenceIdentity(PresenceIdentity&& from) noexcept + : PresenceIdentity(nullptr, ::std::move(from)) {} + inline PresenceIdentity& operator=(const PresenceIdentity& from) { CopyFrom(from); return *this; } - inline Metadata& operator=(Metadata&& from) noexcept { + inline PresenceIdentity& operator=(PresenceIdentity&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -130,96 +186,297 @@ class Metadata final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Metadata& default_instance() { - return *internal_default_instance(); - } - static inline const Metadata* internal_default_instance() { - return reinterpret_cast( - &_Metadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(Metadata& a, Metadata& b) { - a.Swap(&b); + static const PresenceIdentity& default_instance() { + return *reinterpret_cast( + &_PresenceIdentity_default_instance_); } - inline void Swap(Metadata* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(PresenceIdentity& a, PresenceIdentity& b) { a.Swap(&b); } + inline void Swap(PresenceIdentity* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Metadata* other) { + void UnsafeArenaSwap(PresenceIdentity* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PresenceIdentity* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Metadata& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const Metadata& from); + void CopyFrom(const PresenceIdentity& from); + void MergeFrom(const PresenceIdentity& from) { PresenceIdentity::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Metadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.internal.Metadata"; + bool IsInitialized() const { + return true; } - protected: - explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PresenceIdentity* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.PresenceIdentity"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + explicit PresenceIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PresenceIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PresenceIdentity& from); + PresenceIdentity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PresenceIdentity&& from) noexcept + : PresenceIdentity(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kIdentityProviderNameFieldNumber = 2, + kIdentityTypeFieldNumber = 1, + }; + // string identity_provider_name = 2; + void clear_identity_provider_name() ; + const ::std::string& identity_provider_name() const; + template + void set_identity_provider_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_identity_provider_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_provider_name(); + void set_allocated_identity_provider_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_identity_provider_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_identity_provider_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_provider_name(); + + public: + // .nearby.internal.IdentityType identity_type = 1; + void clear_identity_type() ; + ::nearby::internal::IdentityType identity_type() const; + void set_identity_type(::nearby::internal::IdentityType value); + + private: + ::nearby::internal::IdentityType _internal_identity_type() const; + void _internal_set_identity_type(::nearby::internal::IdentityType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.internal.PresenceIdentity) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 63, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PresenceIdentity& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr identity_provider_name_; + int identity_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<33> PresenceIdentity_class_data_; +// ------------------------------------------------------------------- + +class Metadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.Metadata) */ { + public: + inline Metadata() : Metadata(nullptr) {} + ~Metadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Metadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Metadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Metadata(::google::protobuf::internal::ConstantInitialized); + + inline Metadata(const Metadata& from) : Metadata(nullptr, from) {} + inline Metadata(Metadata&& from) noexcept + : Metadata(nullptr, ::std::move(from)) {} + inline Metadata& operator=(const Metadata& from) { + CopyFrom(from); + return *this; + } + inline Metadata& operator=(Metadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Metadata& default_instance() { + return *reinterpret_cast( + &_Metadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Metadata& a, Metadata& b) { a.Swap(&b); } + inline void Swap(Metadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Metadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Metadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Metadata& from); + void MergeFrom(const Metadata& from) { Metadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Metadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.Metadata"; } + + explicit Metadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Metadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Metadata& from); + Metadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Metadata&& from) noexcept + : Metadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- enum : int { kAccountNameFieldNumber = 2, kDeviceNameFieldNumber = 3, @@ -227,408 +484,1421 @@ class Metadata final : kDeviceProfileUrlFieldNumber = 5, kBluetoothMacAddressFieldNumber = 6, kDeviceTypeFieldNumber = 1, + kInstanceTypeFieldNumber = 7, }; // string account_name = 2; - void clear_account_name(); - const std::string& account_name() const; - template - void set_account_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_account_name(); - PROTOBUF_NODISCARD std::string* release_account_name(); - void set_allocated_account_name(std::string* account_name); - private: - const std::string& _internal_account_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_account_name(const std::string& value); - std::string* _internal_mutable_account_name(); - public: + void clear_account_name() ; + const ::std::string& account_name() const; + template + void set_account_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_account_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_account_name(); + void set_allocated_account_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_account_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_account_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_account_name(); + + public: // string device_name = 3; - void clear_device_name(); - const std::string& device_name() const; - template - void set_device_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_name(); - PROTOBUF_NODISCARD std::string* release_device_name(); - void set_allocated_device_name(std::string* device_name); - private: - const std::string& _internal_device_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const std::string& value); - std::string* _internal_mutable_device_name(); - public: + void clear_device_name() ; + const ::std::string& device_name() const; + template + void set_device_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_name(); + void set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_name(); + + public: // string user_name = 4; - void clear_user_name(); - const std::string& user_name() const; - template - void set_user_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_user_name(); - PROTOBUF_NODISCARD std::string* release_user_name(); - void set_allocated_user_name(std::string* user_name); - private: - const std::string& _internal_user_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_name(const std::string& value); - std::string* _internal_mutable_user_name(); - public: + void clear_user_name() ; + const ::std::string& user_name() const; + template + void set_user_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_user_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_name(); + void set_allocated_user_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_user_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_user_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_user_name(); + + public: // string device_profile_url = 5; - void clear_device_profile_url(); - const std::string& device_profile_url() const; - template - void set_device_profile_url(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_profile_url(); - PROTOBUF_NODISCARD std::string* release_device_profile_url(); - void set_allocated_device_profile_url(std::string* device_profile_url); - private: - const std::string& _internal_device_profile_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_profile_url(const std::string& value); - std::string* _internal_mutable_device_profile_url(); - public: + void clear_device_profile_url() ; + const ::std::string& device_profile_url() const; + template + void set_device_profile_url(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_profile_url(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_profile_url(); + void set_allocated_device_profile_url(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_profile_url() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_profile_url(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_profile_url(); + + public: // bytes bluetooth_mac_address = 6; - void clear_bluetooth_mac_address(); - const std::string& bluetooth_mac_address() const; - template - void set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_bluetooth_mac_address(); - PROTOBUF_NODISCARD std::string* release_bluetooth_mac_address(); - void set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address); - private: - const std::string& _internal_bluetooth_mac_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const std::string& value); - std::string* _internal_mutable_bluetooth_mac_address(); - public: + void clear_bluetooth_mac_address() ; + const ::std::string& bluetooth_mac_address() const; + template + void set_bluetooth_mac_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); + void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_bluetooth_mac_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); + + public: // .nearby.internal.DeviceType device_type = 1; - void clear_device_type(); + void clear_device_type() ; ::nearby::internal::DeviceType device_type() const; void set_device_type(::nearby::internal::DeviceType value); + private: ::nearby::internal::DeviceType _internal_device_type() const; void _internal_set_device_type(::nearby::internal::DeviceType value); - public: + public: + // .nearby.internal.InstanceType instance_type = 7; + void clear_instance_type() ; + ::nearby::internal::InstanceType instance_type() const; + void set_instance_type(::nearby::internal::InstanceType value); + + private: + ::nearby::internal::InstanceType _internal_instance_type() const; + void _internal_set_instance_type(::nearby::internal::InstanceType value); + + public: // @@protoc_insertion_point(class_scope:nearby.internal.Metadata) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 0, 83, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr account_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_profile_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bluetooth_mac_address_; - int device_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Metadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr account_name_; + ::google::protobuf::internal::ArenaStringPtr device_name_; + ::google::protobuf::internal::ArenaStringPtr user_name_; + ::google::protobuf::internal::ArenaStringPtr device_profile_url_; + ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; + int device_type_; + int instance_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<25> Metadata_class_data_; +// ------------------------------------------------------------------- + +class DeviceIdentityMetaData final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.internal.DeviceIdentityMetaData) */ { + public: + inline DeviceIdentityMetaData() : DeviceIdentityMetaData(nullptr) {} + ~DeviceIdentityMetaData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DeviceIdentityMetaData* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DeviceIdentityMetaData)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DeviceIdentityMetaData(::google::protobuf::internal::ConstantInitialized); + + inline DeviceIdentityMetaData(const DeviceIdentityMetaData& from) : DeviceIdentityMetaData(nullptr, from) {} + inline DeviceIdentityMetaData(DeviceIdentityMetaData&& from) noexcept + : DeviceIdentityMetaData(nullptr, ::std::move(from)) {} + inline DeviceIdentityMetaData& operator=(const DeviceIdentityMetaData& from) { + CopyFrom(from); + return *this; + } + inline DeviceIdentityMetaData& operator=(DeviceIdentityMetaData&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DeviceIdentityMetaData& default_instance() { + return *reinterpret_cast( + &_DeviceIdentityMetaData_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(DeviceIdentityMetaData& a, DeviceIdentityMetaData& b) { a.Swap(&b); } + inline void Swap(DeviceIdentityMetaData* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeviceIdentityMetaData* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeviceIdentityMetaData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DeviceIdentityMetaData& from); + void MergeFrom(const DeviceIdentityMetaData& from) { DeviceIdentityMetaData::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DeviceIdentityMetaData* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.internal.DeviceIdentityMetaData"; } + + explicit DeviceIdentityMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DeviceIdentityMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeviceIdentityMetaData& from); + DeviceIdentityMetaData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DeviceIdentityMetaData&& from) noexcept + : DeviceIdentityMetaData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDeviceNameFieldNumber = 2, + kBluetoothMacAddressFieldNumber = 3, + kDeviceIdFieldNumber = 5, + kDeviceModelNameFieldNumber = 6, + kDeviceManufacturerFieldNumber = 7, + kIdentityFieldNumber = 8, + kDeviceTypeFieldNumber = 1, + kInstanceTypeFieldNumber = 4, + }; + // string device_name = 2; + void clear_device_name() ; + const ::std::string& device_name() const; + template + void set_device_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_name(); + void set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_name(); + + public: + // bytes bluetooth_mac_address = 3; + void clear_bluetooth_mac_address() ; + const ::std::string& bluetooth_mac_address() const; + template + void set_bluetooth_mac_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); + void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_bluetooth_mac_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); + + public: + // bytes device_id = 5; + void clear_device_id() ; + const ::std::string& device_id() const; + template + void set_device_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_id(); + void set_allocated_device_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_id(); + + public: + // string device_model_name = 6; + void clear_device_model_name() ; + const ::std::string& device_model_name() const; + template + void set_device_model_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_model_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model_name(); + void set_allocated_device_model_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_model_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_model_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model_name(); + + public: + // string device_manufacturer = 7; + void clear_device_manufacturer() ; + const ::std::string& device_manufacturer() const; + template + void set_device_manufacturer(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_manufacturer(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_manufacturer(); + void set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_manufacturer() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_manufacturer(); + + public: + // .nearby.internal.PresenceIdentity identity = 8; + bool has_identity() const; + void clear_identity() ; + const ::nearby::internal::PresenceIdentity& identity() const; + [[nodiscard]] ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE release_identity(); + ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL mutable_identity(); + void set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value); + ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE unsafe_arena_release_identity(); + + private: + const ::nearby::internal::PresenceIdentity& _internal_identity() const; + ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL _internal_mutable_identity(); + + public: + // .nearby.internal.DeviceType device_type = 1; + void clear_device_type() ; + ::nearby::internal::DeviceType device_type() const; + void set_device_type(::nearby::internal::DeviceType value); + + private: + ::nearby::internal::DeviceType _internal_device_type() const; + void _internal_set_device_type(::nearby::internal::DeviceType value); + + public: + // .nearby.internal.InstanceType instance_type = 4; + void clear_instance_type() ; + ::nearby::internal::InstanceType instance_type() const; + void set_instance_type(::nearby::internal::InstanceType value); + + private: + ::nearby::internal::InstanceType _internal_instance_type() const; + void _internal_set_instance_type(::nearby::internal::InstanceType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.internal.DeviceIdentityMetaData) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 1, 102, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DeviceIdentityMetaData& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr device_name_; + ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; + ::google::protobuf::internal::ArenaStringPtr device_id_; + ::google::protobuf::internal::ArenaStringPtr device_model_name_; + ::google::protobuf::internal::ArenaStringPtr device_manufacturer_; + ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE identity_; + int device_type_; + int instance_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<39> DeviceIdentityMetaData_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + +// DeviceIdentityMetaData + +// .nearby.internal.DeviceType device_type = 1; +inline void DeviceIdentityMetaData::clear_device_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); +} +inline ::nearby::internal::DeviceType DeviceIdentityMetaData::device_type() const { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_type) + return _internal_device_type(); +} +inline void DeviceIdentityMetaData::set_device_type(::nearby::internal::DeviceType value) { + _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_type) +} +inline ::nearby::internal::DeviceType DeviceIdentityMetaData::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::DeviceType>(_impl_.device_type_); +} +inline void DeviceIdentityMetaData::_internal_set_device_type(::nearby::internal::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = value; +} + +// string device_name = 2; +inline void DeviceIdentityMetaData::clear_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& DeviceIdentityMetaData::device_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_name) + return _internal_device_name(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.device_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_name) +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_device_name(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_name) + return _s; +} +inline const ::std::string& DeviceIdentityMetaData::_internal_device_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_.Get(); +} +inline void DeviceIdentityMetaData::_internal_set_device_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.device_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_name_.Set("", GetArena()); + } + return released; +} +inline void DeviceIdentityMetaData::set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.device_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_name_.IsDefault()) { + _impl_.device_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_name) +} + +// bytes bluetooth_mac_address = 3; +inline void DeviceIdentityMetaData::clear_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& DeviceIdentityMetaData::bluetooth_mac_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) + return _internal_bluetooth_mac_address(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.bluetooth_mac_address_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_bluetooth_mac_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_bluetooth_mac_address(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) + return _s; +} +inline const ::std::string& DeviceIdentityMetaData::_internal_bluetooth_mac_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_mac_address_.Get(); +} +inline void DeviceIdentityMetaData::_internal_set_bluetooth_mac_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bluetooth_mac_address_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.bluetooth_mac_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); + } + return released; +} +inline void DeviceIdentityMetaData::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) +} + +// .nearby.internal.InstanceType instance_type = 4; +inline void DeviceIdentityMetaData::clear_instance_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instance_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); +} +inline ::nearby::internal::InstanceType DeviceIdentityMetaData::instance_type() const { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.instance_type) + return _internal_instance_type(); +} +inline void DeviceIdentityMetaData::set_instance_type(::nearby::internal::InstanceType value) { + _internal_set_instance_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.instance_type) +} +inline ::nearby::internal::InstanceType DeviceIdentityMetaData::_internal_instance_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::InstanceType>(_impl_.instance_type_); +} +inline void DeviceIdentityMetaData::_internal_set_instance_type(::nearby::internal::InstanceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instance_type_ = value; +} + +// bytes device_id = 5; +inline void DeviceIdentityMetaData::clear_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& DeviceIdentityMetaData::device_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_id) + return _internal_device_id(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.device_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_id) +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_device_id(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_id) + return _s; +} +inline const ::std::string& DeviceIdentityMetaData::_internal_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_id_.Get(); +} +inline void DeviceIdentityMetaData::_internal_set_device_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.device_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_id_.Set("", GetArena()); + } + return released; +} +inline void DeviceIdentityMetaData::set_allocated_device_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.device_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_id_.IsDefault()) { + _impl_.device_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_id) +} + +// string device_model_name = 6; +inline void DeviceIdentityMetaData::clear_device_model_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& DeviceIdentityMetaData::device_model_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_model_name) + return _internal_device_model_name(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_model_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.device_model_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_model_name) +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_model_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_device_model_name(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_model_name) + return _s; +} +inline const ::std::string& DeviceIdentityMetaData::_internal_device_model_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_model_name_.Get(); +} +inline void DeviceIdentityMetaData::_internal_set_device_model_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_model_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_model_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_model_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_model_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.device_model_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_model_name_.Set("", GetArena()); + } + return released; +} +inline void DeviceIdentityMetaData::set_allocated_device_model_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.device_model_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_name_.IsDefault()) { + _impl_.device_model_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_model_name) +} + +// string device_manufacturer = 7; +inline void DeviceIdentityMetaData::clear_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); +} +inline const ::std::string& DeviceIdentityMetaData::device_manufacturer() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_manufacturer) + return _internal_device_manufacturer(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_manufacturer(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.device_manufacturer_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_manufacturer) +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_manufacturer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_device_manufacturer(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_manufacturer) + return _s; +} +inline const ::std::string& DeviceIdentityMetaData::_internal_device_manufacturer() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_manufacturer_.Get(); +} +inline void DeviceIdentityMetaData::_internal_set_device_manufacturer(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_manufacturer_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_manufacturer) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.device_manufacturer_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_manufacturer_.Set("", GetArena()); + } + return released; +} +inline void DeviceIdentityMetaData::set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + } + _impl_.device_manufacturer_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_manufacturer_.IsDefault()) { + _impl_.device_manufacturer_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_manufacturer) +} + +// .nearby.internal.PresenceIdentity identity = 8; +inline bool DeviceIdentityMetaData::has_identity() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.identity_ != nullptr); + return value; +} +inline void DeviceIdentityMetaData::clear_identity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.identity_ != nullptr) _impl_.identity_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); +} +inline const ::nearby::internal::PresenceIdentity& DeviceIdentityMetaData::_internal_identity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::internal::PresenceIdentity* p = _impl_.identity_; + return p != nullptr ? *p : reinterpret_cast(::nearby::internal::_PresenceIdentity_default_instance_); +} +inline const ::nearby::internal::PresenceIdentity& DeviceIdentityMetaData::identity() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.identity) + return _internal_identity(); +} +inline void DeviceIdentityMetaData::unsafe_arena_set_allocated_identity( + ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identity_); + } + _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.internal.DeviceIdentityMetaData.identity) +} +inline ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_identity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::internal::PresenceIdentity* released = _impl_.identity_; + _impl_.identity_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE DeviceIdentityMetaData::unsafe_arena_release_identity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.identity) + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::internal::PresenceIdentity* temp = _impl_.identity_; + _impl_.identity_ = nullptr; + return temp; +} +inline ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_identity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.identity_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::PresenceIdentity>(GetArena()); + _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(p); + } + return _impl_.identity_; +} +inline ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_identity() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::internal::PresenceIdentity* _msg = _internal_mutable_identity(); + // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.identity) + return _msg; +} +inline void DeviceIdentityMetaData::set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identity_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + } + + _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(value); + // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.identity) +} + +// ------------------------------------------------------------------- + +// PresenceIdentity + +// .nearby.internal.IdentityType identity_type = 1; +inline void PresenceIdentity::clear_identity_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::nearby::internal::IdentityType PresenceIdentity::identity_type() const { + // @@protoc_insertion_point(field_get:nearby.internal.PresenceIdentity.identity_type) + return _internal_identity_type(); +} +inline void PresenceIdentity::set_identity_type(::nearby::internal::IdentityType value) { + _internal_set_identity_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:nearby.internal.PresenceIdentity.identity_type) +} +inline ::nearby::internal::IdentityType PresenceIdentity::_internal_identity_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_); +} +inline void PresenceIdentity::_internal_set_identity_type(::nearby::internal::IdentityType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_type_ = value; +} + +// string identity_provider_name = 2; +inline void PresenceIdentity::clear_identity_provider_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_provider_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& PresenceIdentity::identity_provider_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:nearby.internal.PresenceIdentity.identity_provider_name) + return _internal_identity_provider_name(); +} +template +PROTOBUF_ALWAYS_INLINE void PresenceIdentity::set_identity_provider_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.identity_provider_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:nearby.internal.PresenceIdentity.identity_provider_name) +} +inline ::std::string* PROTOBUF_NONNULL PresenceIdentity::mutable_identity_provider_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_identity_provider_name(); + // @@protoc_insertion_point(field_mutable:nearby.internal.PresenceIdentity.identity_provider_name) + return _s; +} +inline const ::std::string& PresenceIdentity::_internal_identity_provider_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.identity_provider_name_.Get(); +} +inline void PresenceIdentity::_internal_set_identity_provider_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_provider_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PresenceIdentity::_internal_mutable_identity_provider_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.identity_provider_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PresenceIdentity::release_identity_provider_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:nearby.internal.PresenceIdentity.identity_provider_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.identity_provider_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.identity_provider_name_.Set("", GetArena()); + } + return released; +} +inline void PresenceIdentity::set_allocated_identity_provider_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.identity_provider_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_provider_name_.IsDefault()) { + _impl_.identity_provider_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:nearby.internal.PresenceIdentity.identity_provider_name) +} + +// ------------------------------------------------------------------- + // Metadata // .nearby.internal.DeviceType device_type = 1; inline void Metadata::clear_device_type() { - device_type_ = 0; -} -inline ::nearby::internal::DeviceType Metadata::_internal_device_type() const { - return static_cast< ::nearby::internal::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::nearby::internal::DeviceType Metadata::device_type() const { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_type) return _internal_device_type(); } -inline void Metadata::_internal_set_device_type(::nearby::internal::DeviceType value) { - - device_type_ = value; -} inline void Metadata::set_device_type(::nearby::internal::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_type) } +inline ::nearby::internal::DeviceType Metadata::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::DeviceType>(_impl_.device_type_); +} +inline void Metadata::_internal_set_device_type(::nearby::internal::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = value; +} // string account_name = 2; inline void Metadata::clear_account_name() { - account_name_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.account_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Metadata::account_name() const { +inline const ::std::string& Metadata::account_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.account_name) return _internal_account_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Metadata::set_account_name(ArgT0&& arg0, ArgT... args) { - - account_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Metadata::set_account_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.account_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.account_name) } -inline std::string* Metadata::mutable_account_name() { - std::string* _s = _internal_mutable_account_name(); +inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_account_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_account_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.account_name) return _s; } -inline const std::string& Metadata::_internal_account_name() const { - return account_name_.Get(); +inline const ::std::string& Metadata::_internal_account_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.account_name_.Get(); } -inline void Metadata::_internal_set_account_name(const std::string& value) { - - account_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Metadata::_internal_set_account_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.account_name_.Set(value, GetArena()); } -inline std::string* Metadata::_internal_mutable_account_name() { - - return account_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_account_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.account_name_.Mutable( GetArena()); } -inline std::string* Metadata::release_account_name() { +inline ::std::string* PROTOBUF_NULLABLE Metadata::release_account_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.account_name) - return account_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.account_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.account_name_.Set("", GetArena()); + } + return released; } -inline void Metadata::set_allocated_account_name(std::string* account_name) { - if (account_name != nullptr) { - +inline void Metadata::set_allocated_account_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - account_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), account_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (account_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - account_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.account_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.account_name_.IsDefault()) { + _impl_.account_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.account_name) } // string device_name = 3; inline void Metadata::clear_device_name() { - device_name_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& Metadata::device_name() const { +inline const ::std::string& Metadata::device_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_name) return _internal_device_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Metadata::set_device_name(ArgT0&& arg0, ArgT... args) { - - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Metadata::set_device_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.device_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_name) } -inline std::string* Metadata::mutable_device_name() { - std::string* _s = _internal_mutable_device_name(); +inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_device_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_device_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.device_name) return _s; } -inline const std::string& Metadata::_internal_device_name() const { - return device_name_.Get(); +inline const ::std::string& Metadata::_internal_device_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_.Get(); } -inline void Metadata::_internal_set_device_name(const std::string& value) { - - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Metadata::_internal_set_device_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_.Set(value, GetArena()); } -inline std::string* Metadata::_internal_mutable_device_name() { - - return device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_name_.Mutable( GetArena()); } -inline std::string* Metadata::release_device_name() { +inline ::std::string* PROTOBUF_NULLABLE Metadata::release_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.device_name) - return device_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.device_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_name_.Set("", GetArena()); + } + return released; } -inline void Metadata::set_allocated_device_name(std::string* device_name) { - if (device_name != nullptr) { - +inline void Metadata::set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - device_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_name_.IsDefault()) { + _impl_.device_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.device_name) } // string user_name = 4; inline void Metadata::clear_user_name() { - user_name_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& Metadata::user_name() const { +inline const ::std::string& Metadata::user_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.user_name) return _internal_user_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Metadata::set_user_name(ArgT0&& arg0, ArgT... args) { - - user_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Metadata::set_user_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.user_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.user_name) } -inline std::string* Metadata::mutable_user_name() { - std::string* _s = _internal_mutable_user_name(); +inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_user_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_user_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.user_name) return _s; } -inline const std::string& Metadata::_internal_user_name() const { - return user_name_.Get(); +inline const ::std::string& Metadata::_internal_user_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.user_name_.Get(); } -inline void Metadata::_internal_set_user_name(const std::string& value) { - - user_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Metadata::_internal_set_user_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_name_.Set(value, GetArena()); } -inline std::string* Metadata::_internal_mutable_user_name() { - - return user_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_user_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.user_name_.Mutable( GetArena()); } -inline std::string* Metadata::release_user_name() { +inline ::std::string* PROTOBUF_NULLABLE Metadata::release_user_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.user_name) - return user_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.user_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.user_name_.Set("", GetArena()); + } + return released; } -inline void Metadata::set_allocated_user_name(std::string* user_name) { - if (user_name != nullptr) { - +inline void Metadata::set_allocated_user_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - user_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), user_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (user_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - user_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.user_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_name_.IsDefault()) { + _impl_.user_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.user_name) } // string device_profile_url = 5; inline void Metadata::clear_device_profile_url() { - device_profile_url_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_profile_url_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& Metadata::device_profile_url() const { +inline const ::std::string& Metadata::device_profile_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_profile_url) return _internal_device_profile_url(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Metadata::set_device_profile_url(ArgT0&& arg0, ArgT... args) { - - device_profile_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Metadata::set_device_profile_url(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.device_profile_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_profile_url) } -inline std::string* Metadata::mutable_device_profile_url() { - std::string* _s = _internal_mutable_device_profile_url(); +inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_device_profile_url() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_device_profile_url(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.device_profile_url) return _s; } -inline const std::string& Metadata::_internal_device_profile_url() const { - return device_profile_url_.Get(); +inline const ::std::string& Metadata::_internal_device_profile_url() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_profile_url_.Get(); } -inline void Metadata::_internal_set_device_profile_url(const std::string& value) { - - device_profile_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Metadata::_internal_set_device_profile_url(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_profile_url_.Set(value, GetArena()); } -inline std::string* Metadata::_internal_mutable_device_profile_url() { - - return device_profile_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_device_profile_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_profile_url_.Mutable( GetArena()); } -inline std::string* Metadata::release_device_profile_url() { +inline ::std::string* PROTOBUF_NULLABLE Metadata::release_device_profile_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.device_profile_url) - return device_profile_url_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.device_profile_url_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_profile_url_.Set("", GetArena()); + } + return released; } -inline void Metadata::set_allocated_device_profile_url(std::string* device_profile_url) { - if (device_profile_url != nullptr) { - +inline void Metadata::set_allocated_device_profile_url(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - device_profile_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_profile_url, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_profile_url_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_profile_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_profile_url_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_profile_url_.IsDefault()) { + _impl_.device_profile_url_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.device_profile_url) } // bytes bluetooth_mac_address = 6; inline void Metadata::clear_bluetooth_mac_address() { - bluetooth_mac_address_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& Metadata::bluetooth_mac_address() const { +inline const ::std::string& Metadata::bluetooth_mac_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.bluetooth_mac_address) return _internal_bluetooth_mac_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Metadata::set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args) { - - bluetooth_mac_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Metadata::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.bluetooth_mac_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.bluetooth_mac_address) } -inline std::string* Metadata::mutable_bluetooth_mac_address() { - std::string* _s = _internal_mutable_bluetooth_mac_address(); +inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_bluetooth_mac_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_bluetooth_mac_address(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.bluetooth_mac_address) return _s; } -inline const std::string& Metadata::_internal_bluetooth_mac_address() const { - return bluetooth_mac_address_.Get(); +inline const ::std::string& Metadata::_internal_bluetooth_mac_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_mac_address_.Get(); } -inline void Metadata::_internal_set_bluetooth_mac_address(const std::string& value) { - - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Metadata::_internal_set_bluetooth_mac_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.Set(value, GetArena()); } -inline std::string* Metadata::_internal_mutable_bluetooth_mac_address() { - - return bluetooth_mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bluetooth_mac_address_.Mutable( GetArena()); } -inline std::string* Metadata::release_bluetooth_mac_address() { +inline ::std::string* PROTOBUF_NULLABLE Metadata::release_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.bluetooth_mac_address) - return bluetooth_mac_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.bluetooth_mac_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); + } + return released; } -inline void Metadata::set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address) { - if (bluetooth_mac_address != nullptr) { - +inline void Metadata::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - bluetooth_mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bluetooth_mac_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bluetooth_mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.bluetooth_mac_address) } +// .nearby.internal.InstanceType instance_type = 7; +inline void Metadata::clear_instance_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instance_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); +} +inline ::nearby::internal::InstanceType Metadata::instance_type() const { + // @@protoc_insertion_point(field_get:nearby.internal.Metadata.instance_type) + return _internal_instance_type(); +} +inline void Metadata::set_instance_type(::nearby::internal::InstanceType value) { + _internal_set_instance_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + // @@protoc_insertion_point(field_set:nearby.internal.Metadata.instance_type) +} +inline ::nearby::internal::InstanceType Metadata::_internal_instance_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::internal::InstanceType>(_impl_.instance_type_); +} +inline void Metadata::_internal_set_instance_type(::nearby::internal::InstanceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instance_type_ = value; +} + #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace internal } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::nearby::internal::DeviceType> : ::std::true_type {}; +namespace google { +namespace protobuf { + template <> -inline const EnumDescriptor* GetEnumDescriptor< ::nearby::internal::DeviceType>() { - return ::nearby::internal::DeviceType_descriptor(); -} +struct is_proto_enum<::nearby::internal::DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::nearby::internal::InstanceType> : std::true_type {}; -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fmetadata_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // internal_2fproto_2fmetadata_2eproto_2epb_2eh diff --git a/compiled_proto/proto/connections_enums.pb.cc b/compiled_proto/proto/connections_enums.pb.cc index 72d709fa..bf00c0c3 100644 --- a/compiled_proto/proto/connections_enums.pb.cc +++ b/compiled_proto/proto/connections_enums.pb.cc @@ -1,17 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/connections_enums.proto +// Protobuf C++ Version: 6.33.3 #include "proto/connections_enums.pb.h" #include - -#include -#include -#include +#include +#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" // @@protoc_insertion_point(includes) -#include +// 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 proto { @@ -24,3630 +32,2803 @@ namespace location { namespace nearby { namespace proto { namespace connections { -bool EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EventType_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EventType_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EventType_strings[7] = {}; +static const char EventType_names[] = { + "CLIENT_SESSION" + "ERROR_CODE" + "START_CLIENT_SESSION" + "START_STRATEGY_SESSION" + "STOP_CLIENT_SESSION" + "STOP_STRATEGY_SESSION" + "UNKNOWN_EVENT_TYPE" +}; -static const char EventType_names[] = - "CLIENT_SESSION" - "ERROR_CODE" - "START_CLIENT_SESSION" - "START_STRATEGY_SESSION" - "STOP_CLIENT_SESSION" - "STOP_STRATEGY_SESSION" - "UNKNOWN_EVENT_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EventType_entries[] = { - { {EventType_names + 0, 14}, 1 }, - { {EventType_names + 14, 10}, 6 }, - { {EventType_names + 24, 20}, 2 }, - { {EventType_names + 44, 22}, 4 }, - { {EventType_names + 66, 19}, 3 }, - { {EventType_names + 85, 21}, 5 }, - { {EventType_names + 106, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry EventType_entries[] = { + {{&EventType_names[0], 14}, 1}, + {{&EventType_names[14], 10}, 6}, + {{&EventType_names[24], 20}, 2}, + {{&EventType_names[44], 22}, 4}, + {{&EventType_names[66], 19}, 3}, + {{&EventType_names[85], 21}, 5}, + {{&EventType_names[106], 18}, 0}, }; static const int EventType_entries_by_number[] = { - 6, // 0 -> UNKNOWN_EVENT_TYPE - 0, // 1 -> CLIENT_SESSION - 2, // 2 -> START_CLIENT_SESSION - 4, // 3 -> STOP_CLIENT_SESSION - 3, // 4 -> START_STRATEGY_SESSION - 5, // 5 -> STOP_STRATEGY_SESSION - 1, // 6 -> ERROR_CODE + 6, // 0 -> UNKNOWN_EVENT_TYPE + 0, // 1 -> CLIENT_SESSION + 2, // 2 -> START_CLIENT_SESSION + 4, // 3 -> STOP_CLIENT_SESSION + 3, // 4 -> START_STRATEGY_SESSION + 5, // 5 -> STOP_STRATEGY_SESSION + 1, // 6 -> ERROR_CODE }; -const std::string& EventType_Name( - EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EventType_entries, - EventType_entries_by_number, - 7, EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EventType_entries, - EventType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EventType_strings[idx].get(); +const ::std::string& EventType_Name(EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EventType_entries, EventType_entries_by_number, 7, + EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EventType_entries, + EventType_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EventType_strings[idx].get(); } -bool EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value) { + +bool EventType_Parse(::absl::string_view name, EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EventType_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionsStrategy_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionsStrategy_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionsStrategy_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionsStrategy_strings[6] = {}; +static const char ConnectionsStrategy_names[] = { + "MDNS_LOCAL_WIFI" + "P2P_CLUSTER" + "P2P_POINT_TO_POINT" + "P2P_STAR" + "RADIO_P2P" + "UNKNOWN_STRATEGY" +}; -static const char ConnectionsStrategy_names[] = - "MDNS_LOCAL_WIFI" - "P2P_CLUSTER" - "P2P_POINT_TO_POINT" - "P2P_STAR" - "RADIO_P2P" - "UNKNOWN_STRATEGY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionsStrategy_entries[] = { - { {ConnectionsStrategy_names + 0, 15}, 1 }, - { {ConnectionsStrategy_names + 15, 11}, 3 }, - { {ConnectionsStrategy_names + 26, 18}, 5 }, - { {ConnectionsStrategy_names + 44, 8}, 4 }, - { {ConnectionsStrategy_names + 52, 9}, 2 }, - { {ConnectionsStrategy_names + 61, 16}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionsStrategy_entries[] = { + {{&ConnectionsStrategy_names[0], 15}, 1}, + {{&ConnectionsStrategy_names[15], 11}, 3}, + {{&ConnectionsStrategy_names[26], 18}, 5}, + {{&ConnectionsStrategy_names[44], 8}, 4}, + {{&ConnectionsStrategy_names[52], 9}, 2}, + {{&ConnectionsStrategy_names[61], 16}, 0}, }; static const int ConnectionsStrategy_entries_by_number[] = { - 5, // 0 -> UNKNOWN_STRATEGY - 0, // 1 -> MDNS_LOCAL_WIFI - 4, // 2 -> RADIO_P2P - 1, // 3 -> P2P_CLUSTER - 3, // 4 -> P2P_STAR - 2, // 5 -> P2P_POINT_TO_POINT + 5, // 0 -> UNKNOWN_STRATEGY + 0, // 1 -> MDNS_LOCAL_WIFI + 4, // 2 -> RADIO_P2P + 1, // 3 -> P2P_CLUSTER + 3, // 4 -> P2P_STAR + 2, // 5 -> P2P_POINT_TO_POINT }; -const std::string& ConnectionsStrategy_Name( - ConnectionsStrategy value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionsStrategy_entries, - ConnectionsStrategy_entries_by_number, - 6, ConnectionsStrategy_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionsStrategy_entries, - ConnectionsStrategy_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionsStrategy_strings[idx].get(); +const ::std::string& ConnectionsStrategy_Name(ConnectionsStrategy value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionsStrategy_entries, ConnectionsStrategy_entries_by_number, 6, + ConnectionsStrategy_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionsStrategy_entries, + ConnectionsStrategy_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionsStrategy_strings[idx].get(); } -bool ConnectionsStrategy_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsStrategy* value) { + +bool ConnectionsStrategy_Parse(::absl::string_view name, ConnectionsStrategy* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionsStrategy_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SessionRole_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SessionRole_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SessionRole_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SessionRole_strings[3] = {}; +static const char SessionRole_names[] = { + "ADVERTISER" + "DISCOVERER" + "UNKNOWN_SESSION_ROLE" +}; -static const char SessionRole_names[] = - "ADVERTISER" - "DISCOVERER" - "UNKNOWN_SESSION_ROLE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SessionRole_entries[] = { - { {SessionRole_names + 0, 10}, 1 }, - { {SessionRole_names + 10, 10}, 2 }, - { {SessionRole_names + 20, 20}, 0 }, +static const ::google::protobuf::internal::EnumEntry SessionRole_entries[] = { + {{&SessionRole_names[0], 10}, 1}, + {{&SessionRole_names[10], 10}, 2}, + {{&SessionRole_names[20], 20}, 0}, }; static const int SessionRole_entries_by_number[] = { - 2, // 0 -> UNKNOWN_SESSION_ROLE - 0, // 1 -> ADVERTISER - 1, // 2 -> DISCOVERER + 2, // 0 -> UNKNOWN_SESSION_ROLE + 0, // 1 -> ADVERTISER + 1, // 2 -> DISCOVERER }; -const std::string& SessionRole_Name( - SessionRole value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SessionRole_entries, - SessionRole_entries_by_number, - 3, SessionRole_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SessionRole_entries, - SessionRole_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SessionRole_strings[idx].get(); +const ::std::string& SessionRole_Name(SessionRole value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SessionRole_entries, SessionRole_entries_by_number, 3, + SessionRole_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SessionRole_entries, + SessionRole_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SessionRole_strings[idx].get(); } -bool SessionRole_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SessionRole* value) { + +bool SessionRole_Parse(::absl::string_view name, SessionRole* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SessionRole_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Medium_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Medium_internal_data_[] = { + 917504u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Medium_strings[14] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Medium_strings[14] = {}; +static const char Medium_names[] = { + "AWDL" + "BLE" + "BLE_L2CAP" + "BLUETOOTH" + "MDNS" + "NFC" + "UNKNOWN_MEDIUM" + "USB" + "WEB_RTC" + "WEB_RTC_NON_CELLULAR" + "WIFI_AWARE" + "WIFI_DIRECT" + "WIFI_HOTSPOT" + "WIFI_LAN" +}; -static const char Medium_names[] = - "AWDL" - "BLE" - "BLE_L2CAP" - "BLUETOOTH" - "MDNS" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WEB_RTC_NON_CELLULAR" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Medium_entries[] = { - { {Medium_names + 0, 4}, 13 }, - { {Medium_names + 4, 3}, 4 }, - { {Medium_names + 7, 9}, 10 }, - { {Medium_names + 16, 9}, 2 }, - { {Medium_names + 25, 4}, 1 }, - { {Medium_names + 29, 3}, 7 }, - { {Medium_names + 32, 14}, 0 }, - { {Medium_names + 46, 3}, 11 }, - { {Medium_names + 49, 7}, 9 }, - { {Medium_names + 56, 20}, 12 }, - { {Medium_names + 76, 10}, 6 }, - { {Medium_names + 86, 11}, 8 }, - { {Medium_names + 97, 12}, 3 }, - { {Medium_names + 109, 8}, 5 }, +static const ::google::protobuf::internal::EnumEntry Medium_entries[] = { + {{&Medium_names[0], 4}, 13}, + {{&Medium_names[4], 3}, 4}, + {{&Medium_names[7], 9}, 10}, + {{&Medium_names[16], 9}, 2}, + {{&Medium_names[25], 4}, 1}, + {{&Medium_names[29], 3}, 7}, + {{&Medium_names[32], 14}, 0}, + {{&Medium_names[46], 3}, 11}, + {{&Medium_names[49], 7}, 9}, + {{&Medium_names[56], 20}, 12}, + {{&Medium_names[76], 10}, 6}, + {{&Medium_names[86], 11}, 8}, + {{&Medium_names[97], 12}, 3}, + {{&Medium_names[109], 8}, 5}, }; static const int Medium_entries_by_number[] = { - 6, // 0 -> UNKNOWN_MEDIUM - 4, // 1 -> MDNS - 3, // 2 -> BLUETOOTH - 12, // 3 -> WIFI_HOTSPOT - 1, // 4 -> BLE - 13, // 5 -> WIFI_LAN - 10, // 6 -> WIFI_AWARE - 5, // 7 -> NFC - 11, // 8 -> WIFI_DIRECT - 8, // 9 -> WEB_RTC - 2, // 10 -> BLE_L2CAP - 7, // 11 -> USB - 9, // 12 -> WEB_RTC_NON_CELLULAR - 0, // 13 -> AWDL + 6, // 0 -> UNKNOWN_MEDIUM + 4, // 1 -> MDNS + 3, // 2 -> BLUETOOTH + 12, // 3 -> WIFI_HOTSPOT + 1, // 4 -> BLE + 13, // 5 -> WIFI_LAN + 10, // 6 -> WIFI_AWARE + 5, // 7 -> NFC + 11, // 8 -> WIFI_DIRECT + 8, // 9 -> WEB_RTC + 2, // 10 -> BLE_L2CAP + 7, // 11 -> USB + 9, // 12 -> WEB_RTC_NON_CELLULAR + 0, // 13 -> AWDL }; -const std::string& Medium_Name( - Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Medium_entries, - Medium_entries_by_number, - 14, Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Medium_entries, - Medium_entries_by_number, - 14, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Medium_strings[idx].get(); +const ::std::string& Medium_Name(Medium value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Medium_entries, Medium_entries_by_number, 14, + Medium_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Medium_entries, + Medium_entries_by_number, + 14, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Medium_strings[idx].get(); } -bool Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Medium* value) { + +bool Medium_Parse(::absl::string_view name, Medium* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Medium_entries, 14, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool WifiDirectAuthType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t WifiDirectAuthType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + WifiDirectAuthType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed WifiDirectAuthType_strings[3] = {}; +static const char WifiDirectAuthType_names[] = { + "WIFI_DIRECT_TYPE_UNKNOWN" + "WIFI_DIRECT_WITH_PASSWORD" + "WIFI_DIRECT_WITH_PIN" +}; -static const char WifiDirectAuthType_names[] = - "WIFI_DIRECT_TYPE_UNKNOWN" - "WIFI_DIRECT_WITH_PASSWORD" - "WIFI_DIRECT_WITH_PIN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry WifiDirectAuthType_entries[] = { - { {WifiDirectAuthType_names + 0, 24}, 0 }, - { {WifiDirectAuthType_names + 24, 25}, 1 }, - { {WifiDirectAuthType_names + 49, 20}, 2 }, +static const ::google::protobuf::internal::EnumEntry WifiDirectAuthType_entries[] = { + {{&WifiDirectAuthType_names[0], 24}, 0}, + {{&WifiDirectAuthType_names[24], 25}, 1}, + {{&WifiDirectAuthType_names[49], 20}, 2}, }; static const int WifiDirectAuthType_entries_by_number[] = { - 0, // 0 -> WIFI_DIRECT_TYPE_UNKNOWN - 1, // 1 -> WIFI_DIRECT_WITH_PASSWORD - 2, // 2 -> WIFI_DIRECT_WITH_PIN + 0, // 0 -> WIFI_DIRECT_TYPE_UNKNOWN + 1, // 1 -> WIFI_DIRECT_WITH_PASSWORD + 2, // 2 -> WIFI_DIRECT_WITH_PIN }; -const std::string& WifiDirectAuthType_Name( - WifiDirectAuthType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - WifiDirectAuthType_entries, - WifiDirectAuthType_entries_by_number, - 3, WifiDirectAuthType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - WifiDirectAuthType_entries, - WifiDirectAuthType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - WifiDirectAuthType_strings[idx].get(); +const ::std::string& WifiDirectAuthType_Name(WifiDirectAuthType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + WifiDirectAuthType_entries, WifiDirectAuthType_entries_by_number, 3, + WifiDirectAuthType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(WifiDirectAuthType_entries, + WifiDirectAuthType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : WifiDirectAuthType_strings[idx].get(); } -bool WifiDirectAuthType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WifiDirectAuthType* value) { + +bool WifiDirectAuthType_Parse(::absl::string_view name, WifiDirectAuthType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( WifiDirectAuthType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionTechnology_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionTechnology_internal_data_[] = { + 786432u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionTechnology_strings[12] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionTechnology_strings[12] = {}; +static const char ConnectionTechnology_names[] = { + "CONNECTION_TECHNOLOGY_BLE_GATT" + "CONNECTION_TECHNOLOGY_BLE_L2CAP" + "CONNECTION_TECHNOLOGY_HOTSPOT_DIRECT" + "CONNECTION_TECHNOLOGY_HOTSPOT_LOCALONLY" + "CONNECTION_TECHNOLOGY_HOTSPOT_SOFTAP" + "CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY" + "CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY" + "CONNECTION_TECHNOLOGY_WEBRTC_ETHERNET" + "CONNECTION_TECHNOLOGY_WEBRTC_LOOPBACK" + "CONNECTION_TECHNOLOGY_WEBRTC_MOBILE" + "CONNECTION_TECHNOLOGY_WEBRTC_VPN" + "CONNECTION_TECHNOLOGY_WEBRTC_WIFI" +}; -static const char ConnectionTechnology_names[] = - "CONNECTION_TECHNOLOGY_BLE_GATT" - "CONNECTION_TECHNOLOGY_BLE_L2CAP" - "CONNECTION_TECHNOLOGY_HOTSPOT_DIRECT" - "CONNECTION_TECHNOLOGY_HOTSPOT_LOCALONLY" - "CONNECTION_TECHNOLOGY_HOTSPOT_SOFTAP" - "CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY" - "CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY" - "CONNECTION_TECHNOLOGY_WEBRTC_ETHERNET" - "CONNECTION_TECHNOLOGY_WEBRTC_LOOPBACK" - "CONNECTION_TECHNOLOGY_WEBRTC_MOBILE" - "CONNECTION_TECHNOLOGY_WEBRTC_VPN" - "CONNECTION_TECHNOLOGY_WEBRTC_WIFI"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionTechnology_entries[] = { - { {ConnectionTechnology_names + 0, 30}, 1 }, - { {ConnectionTechnology_names + 30, 31}, 2 }, - { {ConnectionTechnology_names + 61, 36}, 3 }, - { {ConnectionTechnology_names + 97, 39}, 4 }, - { {ConnectionTechnology_names + 136, 36}, 5 }, - { {ConnectionTechnology_names + 172, 40}, 0 }, - { {ConnectionTechnology_names + 212, 45}, 11 }, - { {ConnectionTechnology_names + 257, 37}, 8 }, - { {ConnectionTechnology_names + 294, 37}, 10 }, - { {ConnectionTechnology_names + 331, 35}, 7 }, - { {ConnectionTechnology_names + 366, 32}, 9 }, - { {ConnectionTechnology_names + 398, 33}, 6 }, +static const ::google::protobuf::internal::EnumEntry ConnectionTechnology_entries[] = { + {{&ConnectionTechnology_names[0], 30}, 1}, + {{&ConnectionTechnology_names[30], 31}, 2}, + {{&ConnectionTechnology_names[61], 36}, 3}, + {{&ConnectionTechnology_names[97], 39}, 4}, + {{&ConnectionTechnology_names[136], 36}, 5}, + {{&ConnectionTechnology_names[172], 40}, 0}, + {{&ConnectionTechnology_names[212], 45}, 11}, + {{&ConnectionTechnology_names[257], 37}, 8}, + {{&ConnectionTechnology_names[294], 37}, 10}, + {{&ConnectionTechnology_names[331], 35}, 7}, + {{&ConnectionTechnology_names[366], 32}, 9}, + {{&ConnectionTechnology_names[398], 33}, 6}, }; static const int ConnectionTechnology_entries_by_number[] = { - 5, // 0 -> CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY - 0, // 1 -> CONNECTION_TECHNOLOGY_BLE_GATT - 1, // 2 -> CONNECTION_TECHNOLOGY_BLE_L2CAP - 2, // 3 -> CONNECTION_TECHNOLOGY_HOTSPOT_DIRECT - 3, // 4 -> CONNECTION_TECHNOLOGY_HOTSPOT_LOCALONLY - 4, // 5 -> CONNECTION_TECHNOLOGY_HOTSPOT_SOFTAP - 11, // 6 -> CONNECTION_TECHNOLOGY_WEBRTC_WIFI - 9, // 7 -> CONNECTION_TECHNOLOGY_WEBRTC_MOBILE - 7, // 8 -> CONNECTION_TECHNOLOGY_WEBRTC_ETHERNET - 10, // 9 -> CONNECTION_TECHNOLOGY_WEBRTC_VPN - 8, // 10 -> CONNECTION_TECHNOLOGY_WEBRTC_LOOPBACK - 6, // 11 -> CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY + 5, // 0 -> CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY + 0, // 1 -> CONNECTION_TECHNOLOGY_BLE_GATT + 1, // 2 -> CONNECTION_TECHNOLOGY_BLE_L2CAP + 2, // 3 -> CONNECTION_TECHNOLOGY_HOTSPOT_DIRECT + 3, // 4 -> CONNECTION_TECHNOLOGY_HOTSPOT_LOCALONLY + 4, // 5 -> CONNECTION_TECHNOLOGY_HOTSPOT_SOFTAP + 11, // 6 -> CONNECTION_TECHNOLOGY_WEBRTC_WIFI + 9, // 7 -> CONNECTION_TECHNOLOGY_WEBRTC_MOBILE + 7, // 8 -> CONNECTION_TECHNOLOGY_WEBRTC_ETHERNET + 10, // 9 -> CONNECTION_TECHNOLOGY_WEBRTC_VPN + 8, // 10 -> CONNECTION_TECHNOLOGY_WEBRTC_LOOPBACK + 6, // 11 -> CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY }; -const std::string& ConnectionTechnology_Name( - ConnectionTechnology value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionTechnology_entries, - ConnectionTechnology_entries_by_number, - 12, ConnectionTechnology_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionTechnology_entries, - ConnectionTechnology_entries_by_number, - 12, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionTechnology_strings[idx].get(); +const ::std::string& ConnectionTechnology_Name(ConnectionTechnology value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionTechnology_entries, ConnectionTechnology_entries_by_number, 12, + ConnectionTechnology_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionTechnology_entries, + ConnectionTechnology_entries_by_number, + 12, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionTechnology_strings[idx].get(); } -bool ConnectionTechnology_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionTechnology* value) { + +bool ConnectionTechnology_Parse(::absl::string_view name, ConnectionTechnology* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionTechnology_entries, 12, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionBand_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionBand_internal_data_[] = { + 524288u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionBand_strings[8] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionBand_strings[8] = {}; +static const char ConnectionBand_names[] = { + "CONNECTION_BAND_CELLULAR_BAND_2G" + "CONNECTION_BAND_CELLULAR_BAND_3G" + "CONNECTION_BAND_CELLULAR_BAND_4G" + "CONNECTION_BAND_CELLULAR_BAND_5G" + "CONNECTION_BAND_UNKNOWN_BAND" + "CONNECTION_BAND_WIFI_BAND_2GHZ" + "CONNECTION_BAND_WIFI_BAND_5GHZ" + "CONNECTION_BAND_WIFI_BAND_6GHZ" +}; -static const char ConnectionBand_names[] = - "CONNECTION_BAND_CELLULAR_BAND_2G" - "CONNECTION_BAND_CELLULAR_BAND_3G" - "CONNECTION_BAND_CELLULAR_BAND_4G" - "CONNECTION_BAND_CELLULAR_BAND_5G" - "CONNECTION_BAND_UNKNOWN_BAND" - "CONNECTION_BAND_WIFI_BAND_2GHZ" - "CONNECTION_BAND_WIFI_BAND_5GHZ" - "CONNECTION_BAND_WIFI_BAND_6GHZ"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionBand_entries[] = { - { {ConnectionBand_names + 0, 32}, 4 }, - { {ConnectionBand_names + 32, 32}, 5 }, - { {ConnectionBand_names + 64, 32}, 6 }, - { {ConnectionBand_names + 96, 32}, 7 }, - { {ConnectionBand_names + 128, 28}, 0 }, - { {ConnectionBand_names + 156, 30}, 1 }, - { {ConnectionBand_names + 186, 30}, 2 }, - { {ConnectionBand_names + 216, 30}, 3 }, +static const ::google::protobuf::internal::EnumEntry ConnectionBand_entries[] = { + {{&ConnectionBand_names[0], 32}, 4}, + {{&ConnectionBand_names[32], 32}, 5}, + {{&ConnectionBand_names[64], 32}, 6}, + {{&ConnectionBand_names[96], 32}, 7}, + {{&ConnectionBand_names[128], 28}, 0}, + {{&ConnectionBand_names[156], 30}, 1}, + {{&ConnectionBand_names[186], 30}, 2}, + {{&ConnectionBand_names[216], 30}, 3}, }; static const int ConnectionBand_entries_by_number[] = { - 4, // 0 -> CONNECTION_BAND_UNKNOWN_BAND - 5, // 1 -> CONNECTION_BAND_WIFI_BAND_2GHZ - 6, // 2 -> CONNECTION_BAND_WIFI_BAND_5GHZ - 7, // 3 -> CONNECTION_BAND_WIFI_BAND_6GHZ - 0, // 4 -> CONNECTION_BAND_CELLULAR_BAND_2G - 1, // 5 -> CONNECTION_BAND_CELLULAR_BAND_3G - 2, // 6 -> CONNECTION_BAND_CELLULAR_BAND_4G - 3, // 7 -> CONNECTION_BAND_CELLULAR_BAND_5G + 4, // 0 -> CONNECTION_BAND_UNKNOWN_BAND + 5, // 1 -> CONNECTION_BAND_WIFI_BAND_2GHZ + 6, // 2 -> CONNECTION_BAND_WIFI_BAND_5GHZ + 7, // 3 -> CONNECTION_BAND_WIFI_BAND_6GHZ + 0, // 4 -> CONNECTION_BAND_CELLULAR_BAND_2G + 1, // 5 -> CONNECTION_BAND_CELLULAR_BAND_3G + 2, // 6 -> CONNECTION_BAND_CELLULAR_BAND_4G + 3, // 7 -> CONNECTION_BAND_CELLULAR_BAND_5G }; -const std::string& ConnectionBand_Name( - ConnectionBand value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionBand_entries, - ConnectionBand_entries_by_number, - 8, ConnectionBand_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionBand_entries, - ConnectionBand_entries_by_number, - 8, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionBand_strings[idx].get(); +const ::std::string& ConnectionBand_Name(ConnectionBand value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionBand_entries, ConnectionBand_entries_by_number, 8, + ConnectionBand_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionBand_entries, + ConnectionBand_entries_by_number, + 8, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionBand_strings[idx].get(); } -bool ConnectionBand_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionBand* value) { + +bool ConnectionBand_Parse(::absl::string_view name, ConnectionBand* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionBand_entries, 8, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionMode_internal_data_[] = { + 131072u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionMode_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionMode_strings[2] = {}; +static const char ConnectionMode_names[] = { + "INSTANT" + "LEGACY" +}; -static const char ConnectionMode_names[] = - "INSTANT" - "LEGACY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionMode_entries[] = { - { {ConnectionMode_names + 0, 7}, 1 }, - { {ConnectionMode_names + 7, 6}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionMode_entries[] = { + {{&ConnectionMode_names[0], 7}, 1}, + {{&ConnectionMode_names[7], 6}, 0}, }; static const int ConnectionMode_entries_by_number[] = { - 1, // 0 -> LEGACY - 0, // 1 -> INSTANT + 1, // 0 -> LEGACY + 0, // 1 -> INSTANT }; -const std::string& ConnectionMode_Name( - ConnectionMode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionMode_entries, - ConnectionMode_entries_by_number, - 2, ConnectionMode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionMode_entries, - ConnectionMode_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionMode_strings[idx].get(); +const ::std::string& ConnectionMode_Name(ConnectionMode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionMode_entries, ConnectionMode_entries_by_number, 2, + ConnectionMode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionMode_entries, + ConnectionMode_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionMode_strings[idx].get(); } -bool ConnectionMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionMode* value) { + +bool ConnectionMode_Parse(::absl::string_view name, ConnectionMode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionMode_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool InstantConnectionResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t InstantConnectionResult_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + InstantConnectionResult_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed InstantConnectionResult_strings[4] = {}; +static const char InstantConnectionResult_names[] = { + "INSTANT_CONNECTION_FAILURE" + "INSTANT_CONNECTION_SUCCESS" + "INSTANT_CONNECTION_TIMEOUT" + "UNKNOWN_INSTANT_CONNECTION_RESULT" +}; -static const char InstantConnectionResult_names[] = - "INSTANT_CONNECTION_FAILURE" - "INSTANT_CONNECTION_SUCCESS" - "INSTANT_CONNECTION_TIMEOUT" - "UNKNOWN_INSTANT_CONNECTION_RESULT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry InstantConnectionResult_entries[] = { - { {InstantConnectionResult_names + 0, 26}, 2 }, - { {InstantConnectionResult_names + 26, 26}, 1 }, - { {InstantConnectionResult_names + 52, 26}, 3 }, - { {InstantConnectionResult_names + 78, 33}, 0 }, +static const ::google::protobuf::internal::EnumEntry InstantConnectionResult_entries[] = { + {{&InstantConnectionResult_names[0], 26}, 2}, + {{&InstantConnectionResult_names[26], 26}, 1}, + {{&InstantConnectionResult_names[52], 26}, 3}, + {{&InstantConnectionResult_names[78], 33}, 0}, }; static const int InstantConnectionResult_entries_by_number[] = { - 3, // 0 -> UNKNOWN_INSTANT_CONNECTION_RESULT - 1, // 1 -> INSTANT_CONNECTION_SUCCESS - 0, // 2 -> INSTANT_CONNECTION_FAILURE - 2, // 3 -> INSTANT_CONNECTION_TIMEOUT + 3, // 0 -> UNKNOWN_INSTANT_CONNECTION_RESULT + 1, // 1 -> INSTANT_CONNECTION_SUCCESS + 0, // 2 -> INSTANT_CONNECTION_FAILURE + 2, // 3 -> INSTANT_CONNECTION_TIMEOUT }; -const std::string& InstantConnectionResult_Name( - InstantConnectionResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - InstantConnectionResult_entries, - InstantConnectionResult_entries_by_number, - 4, InstantConnectionResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - InstantConnectionResult_entries, - InstantConnectionResult_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - InstantConnectionResult_strings[idx].get(); +const ::std::string& InstantConnectionResult_Name(InstantConnectionResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + InstantConnectionResult_entries, InstantConnectionResult_entries_by_number, 4, + InstantConnectionResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(InstantConnectionResult_entries, + InstantConnectionResult_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InstantConnectionResult_strings[idx].get(); } -bool InstantConnectionResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InstantConnectionResult* value) { + +bool InstantConnectionResult_Parse(::absl::string_view name, InstantConnectionResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( InstantConnectionResult_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionRequestResponse_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionRequestResponse_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionRequestResponse_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionRequestResponse_strings[5] = {}; +static const char ConnectionRequestResponse_names[] = { + "ACCEPTED" + "IGNORED" + "NOT_SENT" + "REJECTED" + "UNKNOWN_CONNECTION_REQUEST_RESPONSE" +}; -static const char ConnectionRequestResponse_names[] = - "ACCEPTED" - "IGNORED" - "NOT_SENT" - "REJECTED" - "UNKNOWN_CONNECTION_REQUEST_RESPONSE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestResponse_entries[] = { - { {ConnectionRequestResponse_names + 0, 8}, 1 }, - { {ConnectionRequestResponse_names + 8, 7}, 3 }, - { {ConnectionRequestResponse_names + 15, 8}, 4 }, - { {ConnectionRequestResponse_names + 23, 8}, 2 }, - { {ConnectionRequestResponse_names + 31, 35}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionRequestResponse_entries[] = { + {{&ConnectionRequestResponse_names[0], 8}, 1}, + {{&ConnectionRequestResponse_names[8], 7}, 3}, + {{&ConnectionRequestResponse_names[15], 8}, 4}, + {{&ConnectionRequestResponse_names[23], 8}, 2}, + {{&ConnectionRequestResponse_names[31], 35}, 0}, }; static const int ConnectionRequestResponse_entries_by_number[] = { - 4, // 0 -> UNKNOWN_CONNECTION_REQUEST_RESPONSE - 0, // 1 -> ACCEPTED - 3, // 2 -> REJECTED - 1, // 3 -> IGNORED - 2, // 4 -> NOT_SENT + 4, // 0 -> UNKNOWN_CONNECTION_REQUEST_RESPONSE + 0, // 1 -> ACCEPTED + 3, // 2 -> REJECTED + 1, // 3 -> IGNORED + 2, // 4 -> NOT_SENT }; -const std::string& ConnectionRequestResponse_Name( - ConnectionRequestResponse value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionRequestResponse_entries, - ConnectionRequestResponse_entries_by_number, - 5, ConnectionRequestResponse_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionRequestResponse_entries, - ConnectionRequestResponse_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionRequestResponse_strings[idx].get(); +const ::std::string& ConnectionRequestResponse_Name(ConnectionRequestResponse value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionRequestResponse_entries, ConnectionRequestResponse_entries_by_number, 5, + ConnectionRequestResponse_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionRequestResponse_entries, + ConnectionRequestResponse_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionRequestResponse_strings[idx].get(); } -bool ConnectionRequestResponse_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestResponse* value) { + +bool ConnectionRequestResponse_Parse(::absl::string_view name, ConnectionRequestResponse* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionRequestResponse_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionAttemptResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionAttemptResult_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionAttemptResult_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionAttemptResult_strings[4] = {}; +static const char ConnectionAttemptResult_names[] = { + "RESULT_CANCELLED" + "RESULT_ERROR" + "RESULT_SUCCESS" + "UNKNOWN_CONNECTION_ATTEMPT_RESULT" +}; -static const char ConnectionAttemptResult_names[] = - "RESULT_CANCELLED" - "RESULT_ERROR" - "RESULT_SUCCESS" - "UNKNOWN_CONNECTION_ATTEMPT_RESULT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionAttemptResult_entries[] = { - { {ConnectionAttemptResult_names + 0, 16}, 3 }, - { {ConnectionAttemptResult_names + 16, 12}, 2 }, - { {ConnectionAttemptResult_names + 28, 14}, 1 }, - { {ConnectionAttemptResult_names + 42, 33}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionAttemptResult_entries[] = { + {{&ConnectionAttemptResult_names[0], 16}, 3}, + {{&ConnectionAttemptResult_names[16], 12}, 2}, + {{&ConnectionAttemptResult_names[28], 14}, 1}, + {{&ConnectionAttemptResult_names[42], 33}, 0}, }; static const int ConnectionAttemptResult_entries_by_number[] = { - 3, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_RESULT - 2, // 1 -> RESULT_SUCCESS - 1, // 2 -> RESULT_ERROR - 0, // 3 -> RESULT_CANCELLED + 3, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_RESULT + 2, // 1 -> RESULT_SUCCESS + 1, // 2 -> RESULT_ERROR + 0, // 3 -> RESULT_CANCELLED }; -const std::string& ConnectionAttemptResult_Name( - ConnectionAttemptResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionAttemptResult_entries, - ConnectionAttemptResult_entries_by_number, - 4, ConnectionAttemptResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionAttemptResult_entries, - ConnectionAttemptResult_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionAttemptResult_strings[idx].get(); +const ::std::string& ConnectionAttemptResult_Name(ConnectionAttemptResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionAttemptResult_entries, ConnectionAttemptResult_entries_by_number, 4, + ConnectionAttemptResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionAttemptResult_entries, + ConnectionAttemptResult_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionAttemptResult_strings[idx].get(); } -bool ConnectionAttemptResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptResult* value) { + +bool ConnectionAttemptResult_Parse(::absl::string_view name, ConnectionAttemptResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionAttemptResult_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionAttemptDirection_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionAttemptDirection_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionAttemptDirection_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionAttemptDirection_strings[3] = {}; +static const char ConnectionAttemptDirection_names[] = { + "INCOMING" + "OUTGOING" + "UNKNOWN_CONNECTION_ATTEMPT_DIRECTION" +}; -static const char ConnectionAttemptDirection_names[] = - "INCOMING" - "OUTGOING" - "UNKNOWN_CONNECTION_ATTEMPT_DIRECTION"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionAttemptDirection_entries[] = { - { {ConnectionAttemptDirection_names + 0, 8}, 1 }, - { {ConnectionAttemptDirection_names + 8, 8}, 2 }, - { {ConnectionAttemptDirection_names + 16, 36}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionAttemptDirection_entries[] = { + {{&ConnectionAttemptDirection_names[0], 8}, 1}, + {{&ConnectionAttemptDirection_names[8], 8}, 2}, + {{&ConnectionAttemptDirection_names[16], 36}, 0}, }; static const int ConnectionAttemptDirection_entries_by_number[] = { - 2, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_DIRECTION - 0, // 1 -> INCOMING - 1, // 2 -> OUTGOING + 2, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_DIRECTION + 0, // 1 -> INCOMING + 1, // 2 -> OUTGOING }; -const std::string& ConnectionAttemptDirection_Name( - ConnectionAttemptDirection value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionAttemptDirection_entries, - ConnectionAttemptDirection_entries_by_number, - 3, ConnectionAttemptDirection_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionAttemptDirection_entries, - ConnectionAttemptDirection_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionAttemptDirection_strings[idx].get(); +const ::std::string& ConnectionAttemptDirection_Name(ConnectionAttemptDirection value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionAttemptDirection_entries, ConnectionAttemptDirection_entries_by_number, 3, + ConnectionAttemptDirection_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionAttemptDirection_entries, + ConnectionAttemptDirection_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionAttemptDirection_strings[idx].get(); } -bool ConnectionAttemptDirection_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptDirection* value) { + +bool ConnectionAttemptDirection_Parse(::absl::string_view name, ConnectionAttemptDirection* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionAttemptDirection_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionAttemptType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionAttemptType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionAttemptType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionAttemptType_strings[4] = {}; +static const char ConnectionAttemptType_names[] = { + "INITIAL" + "RECONNECT" + "UNKNOWN_CONNECTION_ATTEMPT_TYPE" + "UPGRADE" +}; -static const char ConnectionAttemptType_names[] = - "INITIAL" - "RECONNECT" - "UNKNOWN_CONNECTION_ATTEMPT_TYPE" - "UPGRADE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionAttemptType_entries[] = { - { {ConnectionAttemptType_names + 0, 7}, 1 }, - { {ConnectionAttemptType_names + 7, 9}, 3 }, - { {ConnectionAttemptType_names + 16, 31}, 0 }, - { {ConnectionAttemptType_names + 47, 7}, 2 }, +static const ::google::protobuf::internal::EnumEntry ConnectionAttemptType_entries[] = { + {{&ConnectionAttemptType_names[0], 7}, 1}, + {{&ConnectionAttemptType_names[7], 9}, 3}, + {{&ConnectionAttemptType_names[16], 31}, 0}, + {{&ConnectionAttemptType_names[47], 7}, 2}, }; static const int ConnectionAttemptType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_TYPE - 0, // 1 -> INITIAL - 3, // 2 -> UPGRADE - 1, // 3 -> RECONNECT + 2, // 0 -> UNKNOWN_CONNECTION_ATTEMPT_TYPE + 0, // 1 -> INITIAL + 3, // 2 -> UPGRADE + 1, // 3 -> RECONNECT }; -const std::string& ConnectionAttemptType_Name( - ConnectionAttemptType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionAttemptType_entries, - ConnectionAttemptType_entries_by_number, - 4, ConnectionAttemptType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionAttemptType_entries, - ConnectionAttemptType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionAttemptType_strings[idx].get(); +const ::std::string& ConnectionAttemptType_Name(ConnectionAttemptType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionAttemptType_entries, ConnectionAttemptType_entries_by_number, 4, + ConnectionAttemptType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionAttemptType_entries, + ConnectionAttemptType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionAttemptType_strings[idx].get(); } -bool ConnectionAttemptType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptType* value) { + +bool ConnectionAttemptType_Parse(::absl::string_view name, ConnectionAttemptType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionAttemptType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DisconnectionReason_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DisconnectionReason_internal_data_[] = { + 589824u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DisconnectionReason_strings[9] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DisconnectionReason_strings[9] = {}; +static const char DisconnectionReason_names[] = { + "AUTHENTICATION_FAILURE" + "IO_ERROR" + "LOCAL_DISCONNECTION" + "PREV_CHANNEL_DISCONNECTION_IN_RECONNECT" + "REMOTE_DISCONNECTION" + "SHUTDOWN" + "UNFINISHED" + "UNKNOWN_DISCONNECTION_REASON" + "UPGRADED" +}; -static const char DisconnectionReason_names[] = - "AUTHENTICATION_FAILURE" - "IO_ERROR" - "LOCAL_DISCONNECTION" - "PREV_CHANNEL_DISCONNECTION_IN_RECONNECT" - "REMOTE_DISCONNECTION" - "SHUTDOWN" - "UNFINISHED" - "UNKNOWN_DISCONNECTION_REASON" - "UPGRADED"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DisconnectionReason_entries[] = { - { {DisconnectionReason_names + 0, 22}, 8 }, - { {DisconnectionReason_names + 22, 8}, 3 }, - { {DisconnectionReason_names + 30, 19}, 1 }, - { {DisconnectionReason_names + 49, 39}, 7 }, - { {DisconnectionReason_names + 88, 20}, 2 }, - { {DisconnectionReason_names + 108, 8}, 5 }, - { {DisconnectionReason_names + 116, 10}, 6 }, - { {DisconnectionReason_names + 126, 28}, 0 }, - { {DisconnectionReason_names + 154, 8}, 4 }, +static const ::google::protobuf::internal::EnumEntry DisconnectionReason_entries[] = { + {{&DisconnectionReason_names[0], 22}, 8}, + {{&DisconnectionReason_names[22], 8}, 3}, + {{&DisconnectionReason_names[30], 19}, 1}, + {{&DisconnectionReason_names[49], 39}, 7}, + {{&DisconnectionReason_names[88], 20}, 2}, + {{&DisconnectionReason_names[108], 8}, 5}, + {{&DisconnectionReason_names[116], 10}, 6}, + {{&DisconnectionReason_names[126], 28}, 0}, + {{&DisconnectionReason_names[154], 8}, 4}, }; static const int DisconnectionReason_entries_by_number[] = { - 7, // 0 -> UNKNOWN_DISCONNECTION_REASON - 2, // 1 -> LOCAL_DISCONNECTION - 4, // 2 -> REMOTE_DISCONNECTION - 1, // 3 -> IO_ERROR - 8, // 4 -> UPGRADED - 5, // 5 -> SHUTDOWN - 6, // 6 -> UNFINISHED - 3, // 7 -> PREV_CHANNEL_DISCONNECTION_IN_RECONNECT - 0, // 8 -> AUTHENTICATION_FAILURE + 7, // 0 -> UNKNOWN_DISCONNECTION_REASON + 2, // 1 -> LOCAL_DISCONNECTION + 4, // 2 -> REMOTE_DISCONNECTION + 1, // 3 -> IO_ERROR + 8, // 4 -> UPGRADED + 5, // 5 -> SHUTDOWN + 6, // 6 -> UNFINISHED + 3, // 7 -> PREV_CHANNEL_DISCONNECTION_IN_RECONNECT + 0, // 8 -> AUTHENTICATION_FAILURE }; -const std::string& DisconnectionReason_Name( - DisconnectionReason value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DisconnectionReason_entries, - DisconnectionReason_entries_by_number, - 9, DisconnectionReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DisconnectionReason_entries, - DisconnectionReason_entries_by_number, - 9, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DisconnectionReason_strings[idx].get(); +const ::std::string& DisconnectionReason_Name(DisconnectionReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DisconnectionReason_entries, DisconnectionReason_entries_by_number, 9, + DisconnectionReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DisconnectionReason_entries, + DisconnectionReason_entries_by_number, + 9, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DisconnectionReason_strings[idx].get(); } -bool DisconnectionReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DisconnectionReason* value) { + +bool DisconnectionReason_Parse(::absl::string_view name, DisconnectionReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DisconnectionReason_entries, 9, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PayloadType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadType_strings[4] = {}; +static const char PayloadType_names[] = { + "BYTES" + "FILE" + "STREAM" + "UNKNOWN_PAYLOAD_TYPE" +}; -static const char PayloadType_names[] = - "BYTES" - "FILE" - "STREAM" - "UNKNOWN_PAYLOAD_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadType_entries[] = { - { {PayloadType_names + 0, 5}, 1 }, - { {PayloadType_names + 5, 4}, 2 }, - { {PayloadType_names + 9, 6}, 3 }, - { {PayloadType_names + 15, 20}, 0 }, +static const ::google::protobuf::internal::EnumEntry PayloadType_entries[] = { + {{&PayloadType_names[0], 5}, 1}, + {{&PayloadType_names[5], 4}, 2}, + {{&PayloadType_names[9], 6}, 3}, + {{&PayloadType_names[15], 20}, 0}, }; static const int PayloadType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_PAYLOAD_TYPE - 0, // 1 -> BYTES - 1, // 2 -> FILE - 2, // 3 -> STREAM + 3, // 0 -> UNKNOWN_PAYLOAD_TYPE + 0, // 1 -> BYTES + 1, // 2 -> FILE + 2, // 3 -> STREAM }; -const std::string& PayloadType_Name( - PayloadType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadType_entries, - PayloadType_entries_by_number, - 4, PayloadType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadType_entries, - PayloadType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadType_strings[idx].get(); +const ::std::string& PayloadType_Name(PayloadType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadType_entries, PayloadType_entries_by_number, 4, + PayloadType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadType_entries, + PayloadType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadType_strings[idx].get(); } -bool PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadType* value) { + +bool PayloadType_Parse(::absl::string_view name, PayloadType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PayloadStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PayloadStatus_internal_data_[] = { + 786432u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PayloadStatus_strings[12] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadStatus_strings[12] = {}; +static const char PayloadStatus_names[] = { + "CONNECTION_CLOSED" + "ENDPOINT_IO_ERROR" + "ENDPOINT_UNENCRYPTED" + "LOCAL_CANCELLATION" + "LOCAL_CLIENT_DISCONNECTION" + "LOCAL_ERROR" + "MOVED_TO_NEW_MEDIUM" + "REMOTE_CANCELLATION" + "REMOTE_CLIENT_DISCONNECTION" + "REMOTE_ERROR" + "SUCCESS" + "UNKNOWN_PAYLOAD_STATUS" +}; -static const char PayloadStatus_names[] = - "CONNECTION_CLOSED" - "ENDPOINT_IO_ERROR" - "ENDPOINT_UNENCRYPTED" - "LOCAL_CANCELLATION" - "LOCAL_CLIENT_DISCONNECTION" - "LOCAL_ERROR" - "MOVED_TO_NEW_MEDIUM" - "REMOTE_CANCELLATION" - "REMOTE_CLIENT_DISCONNECTION" - "REMOTE_ERROR" - "SUCCESS" - "UNKNOWN_PAYLOAD_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadStatus_entries[] = { - { {PayloadStatus_names + 0, 17}, 6 }, - { {PayloadStatus_names + 17, 17}, 4 }, - { {PayloadStatus_names + 34, 20}, 9 }, - { {PayloadStatus_names + 54, 18}, 7 }, - { {PayloadStatus_names + 72, 26}, 10 }, - { {PayloadStatus_names + 98, 11}, 2 }, - { {PayloadStatus_names + 109, 19}, 5 }, - { {PayloadStatus_names + 128, 19}, 8 }, - { {PayloadStatus_names + 147, 27}, 11 }, - { {PayloadStatus_names + 174, 12}, 3 }, - { {PayloadStatus_names + 186, 7}, 1 }, - { {PayloadStatus_names + 193, 22}, 0 }, +static const ::google::protobuf::internal::EnumEntry PayloadStatus_entries[] = { + {{&PayloadStatus_names[0], 17}, 6}, + {{&PayloadStatus_names[17], 17}, 4}, + {{&PayloadStatus_names[34], 20}, 9}, + {{&PayloadStatus_names[54], 18}, 7}, + {{&PayloadStatus_names[72], 26}, 10}, + {{&PayloadStatus_names[98], 11}, 2}, + {{&PayloadStatus_names[109], 19}, 5}, + {{&PayloadStatus_names[128], 19}, 8}, + {{&PayloadStatus_names[147], 27}, 11}, + {{&PayloadStatus_names[174], 12}, 3}, + {{&PayloadStatus_names[186], 7}, 1}, + {{&PayloadStatus_names[193], 22}, 0}, }; static const int PayloadStatus_entries_by_number[] = { - 11, // 0 -> UNKNOWN_PAYLOAD_STATUS - 10, // 1 -> SUCCESS - 5, // 2 -> LOCAL_ERROR - 9, // 3 -> REMOTE_ERROR - 1, // 4 -> ENDPOINT_IO_ERROR - 6, // 5 -> MOVED_TO_NEW_MEDIUM - 0, // 6 -> CONNECTION_CLOSED - 3, // 7 -> LOCAL_CANCELLATION - 7, // 8 -> REMOTE_CANCELLATION - 2, // 9 -> ENDPOINT_UNENCRYPTED - 4, // 10 -> LOCAL_CLIENT_DISCONNECTION - 8, // 11 -> REMOTE_CLIENT_DISCONNECTION + 11, // 0 -> UNKNOWN_PAYLOAD_STATUS + 10, // 1 -> SUCCESS + 5, // 2 -> LOCAL_ERROR + 9, // 3 -> REMOTE_ERROR + 1, // 4 -> ENDPOINT_IO_ERROR + 6, // 5 -> MOVED_TO_NEW_MEDIUM + 0, // 6 -> CONNECTION_CLOSED + 3, // 7 -> LOCAL_CANCELLATION + 7, // 8 -> REMOTE_CANCELLATION + 2, // 9 -> ENDPOINT_UNENCRYPTED + 4, // 10 -> LOCAL_CLIENT_DISCONNECTION + 8, // 11 -> REMOTE_CLIENT_DISCONNECTION }; -const std::string& PayloadStatus_Name( - PayloadStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadStatus_entries, - PayloadStatus_entries_by_number, - 12, PayloadStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadStatus_entries, - PayloadStatus_entries_by_number, - 12, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadStatus_strings[idx].get(); +const ::std::string& PayloadStatus_Name(PayloadStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PayloadStatus_entries, PayloadStatus_entries_by_number, 12, + PayloadStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PayloadStatus_entries, + PayloadStatus_entries_by_number, + 12, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PayloadStatus_strings[idx].get(); } -bool PayloadStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadStatus* value) { + +bool PayloadStatus_Parse(::absl::string_view name, PayloadStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PayloadStatus_entries, 12, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Bandwidth_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Bandwidth_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Bandwidth_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Bandwidth_strings[4] = {}; +static const char Bandwidth_names[] = { + "BANDWIDTH_24_GHZ" + "BANDWIDTH_5_GHZ" + "BANDWIDTH_6_GHZ" + "BANDWIDTH_UNKNOWN" +}; -static const char Bandwidth_names[] = - "BANDWIDTH_24_GHZ" - "BANDWIDTH_5_GHZ" - "BANDWIDTH_6_GHZ" - "BANDWIDTH_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Bandwidth_entries[] = { - { {Bandwidth_names + 0, 16}, 1 }, - { {Bandwidth_names + 16, 15}, 2 }, - { {Bandwidth_names + 31, 15}, 3 }, - { {Bandwidth_names + 46, 17}, 0 }, +static const ::google::protobuf::internal::EnumEntry Bandwidth_entries[] = { + {{&Bandwidth_names[0], 16}, 1}, + {{&Bandwidth_names[16], 15}, 2}, + {{&Bandwidth_names[31], 15}, 3}, + {{&Bandwidth_names[46], 17}, 0}, }; static const int Bandwidth_entries_by_number[] = { - 3, // 0 -> BANDWIDTH_UNKNOWN - 0, // 1 -> BANDWIDTH_24_GHZ - 1, // 2 -> BANDWIDTH_5_GHZ - 2, // 3 -> BANDWIDTH_6_GHZ + 3, // 0 -> BANDWIDTH_UNKNOWN + 0, // 1 -> BANDWIDTH_24_GHZ + 1, // 2 -> BANDWIDTH_5_GHZ + 2, // 3 -> BANDWIDTH_6_GHZ }; -const std::string& Bandwidth_Name( - Bandwidth value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Bandwidth_entries, - Bandwidth_entries_by_number, - 4, Bandwidth_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Bandwidth_entries, - Bandwidth_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Bandwidth_strings[idx].get(); +const ::std::string& Bandwidth_Name(Bandwidth value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Bandwidth_entries, Bandwidth_entries_by_number, 4, + Bandwidth_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Bandwidth_entries, + Bandwidth_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Bandwidth_strings[idx].get(); } -bool Bandwidth_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Bandwidth* value) { + +bool Bandwidth_Parse(::absl::string_view name, Bandwidth* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Bandwidth_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool BandwidthUpgradeResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t BandwidthUpgradeResult_internal_data_[] = { + 524288u, 32u, 4092u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + BandwidthUpgradeResult_strings[18] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeResult_strings[18] = {}; +static const char BandwidthUpgradeResult_names[] = { + "ALREADY_ON_MEDIUM_ERROR" + "ATTEMPT_SKIPPED" + "BLUETOOTH_MEDIUM_ERROR" + "CHANNEL_ERROR" + "MEDIUM_ERROR" + "PROTOCOL_ERROR" + "REMOTE_CONNECTION_ERROR" + "RESULT_IO_ERROR" + "RESULT_REMOTE_ERROR" + "UNFINISHED_ERROR" + "UNKNOWN_BANDWIDTH_UPGRADE_RESULT" + "UPGRADE_RESULT_ERROR" + "UPGRADE_RESULT_SUCCESS" + "WEB_RTC_MEDIUM_ERROR" + "WIFI_AWARE_MEDIUM_ERROR" + "WIFI_DIRECT_MEDIUM_ERROR" + "WIFI_HOTSPOT_MEDIUM_ERROR" + "WIFI_LAN_MEDIUM_ERROR" +}; -static const char BandwidthUpgradeResult_names[] = - "ALREADY_ON_MEDIUM_ERROR" - "ATTEMPT_SKIPPED" - "BLUETOOTH_MEDIUM_ERROR" - "CHANNEL_ERROR" - "MEDIUM_ERROR" - "PROTOCOL_ERROR" - "REMOTE_CONNECTION_ERROR" - "RESULT_IO_ERROR" - "RESULT_REMOTE_ERROR" - "UNFINISHED_ERROR" - "UNKNOWN_BANDWIDTH_UPGRADE_RESULT" - "UPGRADE_RESULT_ERROR" - "UPGRADE_RESULT_SUCCESS" - "WEB_RTC_MEDIUM_ERROR" - "WIFI_AWARE_MEDIUM_ERROR" - "WIFI_DIRECT_MEDIUM_ERROR" - "WIFI_HOTSPOT_MEDIUM_ERROR" - "WIFI_LAN_MEDIUM_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeResult_entries[] = { - { {BandwidthUpgradeResult_names + 0, 23}, 7 }, - { {BandwidthUpgradeResult_names + 23, 15}, 18 }, - { {BandwidthUpgradeResult_names + 38, 22}, 11 }, - { {BandwidthUpgradeResult_names + 60, 13}, 6 }, - { {BandwidthUpgradeResult_names + 73, 12}, 3 }, - { {BandwidthUpgradeResult_names + 85, 14}, 4 }, - { {BandwidthUpgradeResult_names + 99, 23}, 19 }, - { {BandwidthUpgradeResult_names + 122, 15}, 5 }, - { {BandwidthUpgradeResult_names + 137, 19}, 17 }, - { {BandwidthUpgradeResult_names + 156, 16}, 10 }, - { {BandwidthUpgradeResult_names + 172, 32}, 0 }, - { {BandwidthUpgradeResult_names + 204, 20}, 2 }, - { {BandwidthUpgradeResult_names + 224, 22}, 1 }, - { {BandwidthUpgradeResult_names + 246, 20}, 16 }, - { {BandwidthUpgradeResult_names + 266, 23}, 12 }, - { {BandwidthUpgradeResult_names + 289, 24}, 15 }, - { {BandwidthUpgradeResult_names + 313, 25}, 14 }, - { {BandwidthUpgradeResult_names + 338, 21}, 13 }, +static const ::google::protobuf::internal::EnumEntry BandwidthUpgradeResult_entries[] = { + {{&BandwidthUpgradeResult_names[0], 23}, 7}, + {{&BandwidthUpgradeResult_names[23], 15}, 18}, + {{&BandwidthUpgradeResult_names[38], 22}, 11}, + {{&BandwidthUpgradeResult_names[60], 13}, 6}, + {{&BandwidthUpgradeResult_names[73], 12}, 3}, + {{&BandwidthUpgradeResult_names[85], 14}, 4}, + {{&BandwidthUpgradeResult_names[99], 23}, 19}, + {{&BandwidthUpgradeResult_names[122], 15}, 5}, + {{&BandwidthUpgradeResult_names[137], 19}, 17}, + {{&BandwidthUpgradeResult_names[156], 16}, 10}, + {{&BandwidthUpgradeResult_names[172], 32}, 0}, + {{&BandwidthUpgradeResult_names[204], 20}, 2}, + {{&BandwidthUpgradeResult_names[224], 22}, 1}, + {{&BandwidthUpgradeResult_names[246], 20}, 16}, + {{&BandwidthUpgradeResult_names[266], 23}, 12}, + {{&BandwidthUpgradeResult_names[289], 24}, 15}, + {{&BandwidthUpgradeResult_names[313], 25}, 14}, + {{&BandwidthUpgradeResult_names[338], 21}, 13}, }; static const int BandwidthUpgradeResult_entries_by_number[] = { - 10, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_RESULT - 12, // 1 -> UPGRADE_RESULT_SUCCESS - 11, // 2 -> UPGRADE_RESULT_ERROR - 4, // 3 -> MEDIUM_ERROR - 5, // 4 -> PROTOCOL_ERROR - 7, // 5 -> RESULT_IO_ERROR - 3, // 6 -> CHANNEL_ERROR - 0, // 7 -> ALREADY_ON_MEDIUM_ERROR - 9, // 10 -> UNFINISHED_ERROR - 2, // 11 -> BLUETOOTH_MEDIUM_ERROR - 14, // 12 -> WIFI_AWARE_MEDIUM_ERROR - 17, // 13 -> WIFI_LAN_MEDIUM_ERROR - 16, // 14 -> WIFI_HOTSPOT_MEDIUM_ERROR - 15, // 15 -> WIFI_DIRECT_MEDIUM_ERROR - 13, // 16 -> WEB_RTC_MEDIUM_ERROR - 8, // 17 -> RESULT_REMOTE_ERROR - 1, // 18 -> ATTEMPT_SKIPPED - 6, // 19 -> REMOTE_CONNECTION_ERROR + 10, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_RESULT + 12, // 1 -> UPGRADE_RESULT_SUCCESS + 11, // 2 -> UPGRADE_RESULT_ERROR + 4, // 3 -> MEDIUM_ERROR + 5, // 4 -> PROTOCOL_ERROR + 7, // 5 -> RESULT_IO_ERROR + 3, // 6 -> CHANNEL_ERROR + 0, // 7 -> ALREADY_ON_MEDIUM_ERROR + 9, // 10 -> UNFINISHED_ERROR + 2, // 11 -> BLUETOOTH_MEDIUM_ERROR + 14, // 12 -> WIFI_AWARE_MEDIUM_ERROR + 17, // 13 -> WIFI_LAN_MEDIUM_ERROR + 16, // 14 -> WIFI_HOTSPOT_MEDIUM_ERROR + 15, // 15 -> WIFI_DIRECT_MEDIUM_ERROR + 13, // 16 -> WEB_RTC_MEDIUM_ERROR + 8, // 17 -> RESULT_REMOTE_ERROR + 1, // 18 -> ATTEMPT_SKIPPED + 6, // 19 -> REMOTE_CONNECTION_ERROR }; -const std::string& BandwidthUpgradeResult_Name( - BandwidthUpgradeResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeResult_entries, - BandwidthUpgradeResult_entries_by_number, - 18, BandwidthUpgradeResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeResult_entries, - BandwidthUpgradeResult_entries_by_number, - 18, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeResult_strings[idx].get(); +const ::std::string& BandwidthUpgradeResult_Name(BandwidthUpgradeResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + BandwidthUpgradeResult_entries, BandwidthUpgradeResult_entries_by_number, 18, + BandwidthUpgradeResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(BandwidthUpgradeResult_entries, + BandwidthUpgradeResult_entries_by_number, + 18, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BandwidthUpgradeResult_strings[idx].get(); } -bool BandwidthUpgradeResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeResult* value) { + +bool BandwidthUpgradeResult_Parse(::absl::string_view name, BandwidthUpgradeResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( BandwidthUpgradeResult_entries, 18, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool BandwidthUpgradeErrorStage_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - case 31: - case 32: - case 33: - case 34: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t BandwidthUpgradeErrorStage_internal_data_[] = { + 2293760u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + BandwidthUpgradeErrorStage_strings[35] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeErrorStage_strings[35] = {}; +static const char BandwidthUpgradeErrorStage_names[] = { + "BLUETOOTH_CONNECT_OUTGOING" + "BLUETOOTH_LISTEN_INCOMING" + "BLUETOOTH_OBTAIN_MAC_ADDRESS" + "BLUETOOTH_PARSE_MAC_ADDRESS" + "BLUETOOTH_SOCKET_CREATION" + "CLIENT_INTRODUCTION" + "LAST_WRITE_TO_PRIOR_CHANNEL" + "NETWORK_AVAILABLE" + "PRIOR_ENDPOINT_CHANNEL" + "SAFE_TO_CLOSE_PRIOR_CHANNEL" + "SOCKET_CREATION" + "UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE" + "UPGRADE_CANCEL" + "UPGRADE_SUCCESS" + "UPGRADE_UNFINISHED" + "WEB_RTC_LISTEN_INCOMING" + "WEB_RTC_SOCKET_CREATION" + "WIFI_AWARE_CONNECT_TO_NETWORK" + "WIFI_AWARE_LISTEN_INCOMING" + "WIFI_AWARE_PUBLISH" + "WIFI_AWARE_SOCKET_CREATION" + "WIFI_AWARE_SUBSCRIBE" + "WIFI_CONNECT_TO_HOTSPOT" + "WIFI_DIRECT_CONNECT_OUTGOING" + "WIFI_DIRECT_CREATE_GROUP" + "WIFI_DIRECT_LISTEN_INCOMING" + "WIFI_DIRECT_PARSE_DEVICE_ADDRESS" + "WIFI_DIRECT_SOCKET_CREATION" + "WIFI_HOTSPOT_SOCKET_CREATION" + "WIFI_LAN_IP_ADDRESS" + "WIFI_LAN_LISTEN_INCOMING" + "WIFI_LAN_SOCKET_CONNECTION" + "WIFI_LAN_SOCKET_CREATION" + "WIFI_LISTEN_INCOMING" + "WIFI_START_HOTSPOT" +}; -static const char BandwidthUpgradeErrorStage_names[] = - "BLUETOOTH_CONNECT_OUTGOING" - "BLUETOOTH_LISTEN_INCOMING" - "BLUETOOTH_OBTAIN_MAC_ADDRESS" - "BLUETOOTH_PARSE_MAC_ADDRESS" - "BLUETOOTH_SOCKET_CREATION" - "CLIENT_INTRODUCTION" - "LAST_WRITE_TO_PRIOR_CHANNEL" - "NETWORK_AVAILABLE" - "PRIOR_ENDPOINT_CHANNEL" - "SAFE_TO_CLOSE_PRIOR_CHANNEL" - "SOCKET_CREATION" - "UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE" - "UPGRADE_CANCEL" - "UPGRADE_SUCCESS" - "UPGRADE_UNFINISHED" - "WEB_RTC_LISTEN_INCOMING" - "WEB_RTC_SOCKET_CREATION" - "WIFI_AWARE_CONNECT_TO_NETWORK" - "WIFI_AWARE_LISTEN_INCOMING" - "WIFI_AWARE_PUBLISH" - "WIFI_AWARE_SOCKET_CREATION" - "WIFI_AWARE_SUBSCRIBE" - "WIFI_CONNECT_TO_HOTSPOT" - "WIFI_DIRECT_CONNECT_OUTGOING" - "WIFI_DIRECT_CREATE_GROUP" - "WIFI_DIRECT_LISTEN_INCOMING" - "WIFI_DIRECT_PARSE_DEVICE_ADDRESS" - "WIFI_DIRECT_SOCKET_CREATION" - "WIFI_HOTSPOT_SOCKET_CREATION" - "WIFI_LAN_IP_ADDRESS" - "WIFI_LAN_LISTEN_INCOMING" - "WIFI_LAN_SOCKET_CONNECTION" - "WIFI_LAN_SOCKET_CREATION" - "WIFI_LISTEN_INCOMING" - "WIFI_START_HOTSPOT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeErrorStage_entries[] = { - { {BandwidthUpgradeErrorStage_names + 0, 26}, 18 }, - { {BandwidthUpgradeErrorStage_names + 26, 25}, 16 }, - { {BandwidthUpgradeErrorStage_names + 51, 28}, 17 }, - { {BandwidthUpgradeErrorStage_names + 79, 27}, 19 }, - { {BandwidthUpgradeErrorStage_names + 106, 25}, 30 }, - { {BandwidthUpgradeErrorStage_names + 131, 19}, 1 }, - { {BandwidthUpgradeErrorStage_names + 150, 27}, 3 }, - { {BandwidthUpgradeErrorStage_names + 177, 17}, 2 }, - { {BandwidthUpgradeErrorStage_names + 194, 22}, 6 }, - { {BandwidthUpgradeErrorStage_names + 216, 27}, 4 }, - { {BandwidthUpgradeErrorStage_names + 243, 15}, 5 }, - { {BandwidthUpgradeErrorStage_names + 258, 37}, 0 }, - { {BandwidthUpgradeErrorStage_names + 295, 14}, 9 }, - { {BandwidthUpgradeErrorStage_names + 309, 15}, 8 }, - { {BandwidthUpgradeErrorStage_names + 324, 18}, 7 }, - { {BandwidthUpgradeErrorStage_names + 342, 23}, 34 }, - { {BandwidthUpgradeErrorStage_names + 365, 23}, 33 }, - { {BandwidthUpgradeErrorStage_names + 388, 29}, 23 }, - { {BandwidthUpgradeErrorStage_names + 417, 26}, 20 }, - { {BandwidthUpgradeErrorStage_names + 443, 18}, 21 }, - { {BandwidthUpgradeErrorStage_names + 461, 26}, 31 }, - { {BandwidthUpgradeErrorStage_names + 487, 20}, 22 }, - { {BandwidthUpgradeErrorStage_names + 507, 23}, 12 }, - { {BandwidthUpgradeErrorStage_names + 530, 28}, 26 }, - { {BandwidthUpgradeErrorStage_names + 558, 24}, 25 }, - { {BandwidthUpgradeErrorStage_names + 582, 27}, 24 }, - { {BandwidthUpgradeErrorStage_names + 609, 32}, 27 }, - { {BandwidthUpgradeErrorStage_names + 641, 27}, 32 }, - { {BandwidthUpgradeErrorStage_names + 668, 28}, 28 }, - { {BandwidthUpgradeErrorStage_names + 696, 19}, 14 }, - { {BandwidthUpgradeErrorStage_names + 715, 24}, 13 }, - { {BandwidthUpgradeErrorStage_names + 739, 26}, 15 }, - { {BandwidthUpgradeErrorStage_names + 765, 24}, 29 }, - { {BandwidthUpgradeErrorStage_names + 789, 20}, 11 }, - { {BandwidthUpgradeErrorStage_names + 809, 18}, 10 }, +static const ::google::protobuf::internal::EnumEntry BandwidthUpgradeErrorStage_entries[] = { + {{&BandwidthUpgradeErrorStage_names[0], 26}, 18}, + {{&BandwidthUpgradeErrorStage_names[26], 25}, 16}, + {{&BandwidthUpgradeErrorStage_names[51], 28}, 17}, + {{&BandwidthUpgradeErrorStage_names[79], 27}, 19}, + {{&BandwidthUpgradeErrorStage_names[106], 25}, 30}, + {{&BandwidthUpgradeErrorStage_names[131], 19}, 1}, + {{&BandwidthUpgradeErrorStage_names[150], 27}, 3}, + {{&BandwidthUpgradeErrorStage_names[177], 17}, 2}, + {{&BandwidthUpgradeErrorStage_names[194], 22}, 6}, + {{&BandwidthUpgradeErrorStage_names[216], 27}, 4}, + {{&BandwidthUpgradeErrorStage_names[243], 15}, 5}, + {{&BandwidthUpgradeErrorStage_names[258], 37}, 0}, + {{&BandwidthUpgradeErrorStage_names[295], 14}, 9}, + {{&BandwidthUpgradeErrorStage_names[309], 15}, 8}, + {{&BandwidthUpgradeErrorStage_names[324], 18}, 7}, + {{&BandwidthUpgradeErrorStage_names[342], 23}, 34}, + {{&BandwidthUpgradeErrorStage_names[365], 23}, 33}, + {{&BandwidthUpgradeErrorStage_names[388], 29}, 23}, + {{&BandwidthUpgradeErrorStage_names[417], 26}, 20}, + {{&BandwidthUpgradeErrorStage_names[443], 18}, 21}, + {{&BandwidthUpgradeErrorStage_names[461], 26}, 31}, + {{&BandwidthUpgradeErrorStage_names[487], 20}, 22}, + {{&BandwidthUpgradeErrorStage_names[507], 23}, 12}, + {{&BandwidthUpgradeErrorStage_names[530], 28}, 26}, + {{&BandwidthUpgradeErrorStage_names[558], 24}, 25}, + {{&BandwidthUpgradeErrorStage_names[582], 27}, 24}, + {{&BandwidthUpgradeErrorStage_names[609], 32}, 27}, + {{&BandwidthUpgradeErrorStage_names[641], 27}, 32}, + {{&BandwidthUpgradeErrorStage_names[668], 28}, 28}, + {{&BandwidthUpgradeErrorStage_names[696], 19}, 14}, + {{&BandwidthUpgradeErrorStage_names[715], 24}, 13}, + {{&BandwidthUpgradeErrorStage_names[739], 26}, 15}, + {{&BandwidthUpgradeErrorStage_names[765], 24}, 29}, + {{&BandwidthUpgradeErrorStage_names[789], 20}, 11}, + {{&BandwidthUpgradeErrorStage_names[809], 18}, 10}, }; static const int BandwidthUpgradeErrorStage_entries_by_number[] = { - 11, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE - 5, // 1 -> CLIENT_INTRODUCTION - 7, // 2 -> NETWORK_AVAILABLE - 6, // 3 -> LAST_WRITE_TO_PRIOR_CHANNEL - 9, // 4 -> SAFE_TO_CLOSE_PRIOR_CHANNEL - 10, // 5 -> SOCKET_CREATION - 8, // 6 -> PRIOR_ENDPOINT_CHANNEL - 14, // 7 -> UPGRADE_UNFINISHED - 13, // 8 -> UPGRADE_SUCCESS - 12, // 9 -> UPGRADE_CANCEL - 34, // 10 -> WIFI_START_HOTSPOT - 33, // 11 -> WIFI_LISTEN_INCOMING - 22, // 12 -> WIFI_CONNECT_TO_HOTSPOT - 30, // 13 -> WIFI_LAN_LISTEN_INCOMING - 29, // 14 -> WIFI_LAN_IP_ADDRESS - 31, // 15 -> WIFI_LAN_SOCKET_CONNECTION - 1, // 16 -> BLUETOOTH_LISTEN_INCOMING - 2, // 17 -> BLUETOOTH_OBTAIN_MAC_ADDRESS - 0, // 18 -> BLUETOOTH_CONNECT_OUTGOING - 3, // 19 -> BLUETOOTH_PARSE_MAC_ADDRESS - 18, // 20 -> WIFI_AWARE_LISTEN_INCOMING - 19, // 21 -> WIFI_AWARE_PUBLISH - 21, // 22 -> WIFI_AWARE_SUBSCRIBE - 17, // 23 -> WIFI_AWARE_CONNECT_TO_NETWORK - 25, // 24 -> WIFI_DIRECT_LISTEN_INCOMING - 24, // 25 -> WIFI_DIRECT_CREATE_GROUP - 23, // 26 -> WIFI_DIRECT_CONNECT_OUTGOING - 26, // 27 -> WIFI_DIRECT_PARSE_DEVICE_ADDRESS - 28, // 28 -> WIFI_HOTSPOT_SOCKET_CREATION - 32, // 29 -> WIFI_LAN_SOCKET_CREATION - 4, // 30 -> BLUETOOTH_SOCKET_CREATION - 20, // 31 -> WIFI_AWARE_SOCKET_CREATION - 27, // 32 -> WIFI_DIRECT_SOCKET_CREATION - 16, // 33 -> WEB_RTC_SOCKET_CREATION - 15, // 34 -> WEB_RTC_LISTEN_INCOMING + 11, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE + 5, // 1 -> CLIENT_INTRODUCTION + 7, // 2 -> NETWORK_AVAILABLE + 6, // 3 -> LAST_WRITE_TO_PRIOR_CHANNEL + 9, // 4 -> SAFE_TO_CLOSE_PRIOR_CHANNEL + 10, // 5 -> SOCKET_CREATION + 8, // 6 -> PRIOR_ENDPOINT_CHANNEL + 14, // 7 -> UPGRADE_UNFINISHED + 13, // 8 -> UPGRADE_SUCCESS + 12, // 9 -> UPGRADE_CANCEL + 34, // 10 -> WIFI_START_HOTSPOT + 33, // 11 -> WIFI_LISTEN_INCOMING + 22, // 12 -> WIFI_CONNECT_TO_HOTSPOT + 30, // 13 -> WIFI_LAN_LISTEN_INCOMING + 29, // 14 -> WIFI_LAN_IP_ADDRESS + 31, // 15 -> WIFI_LAN_SOCKET_CONNECTION + 1, // 16 -> BLUETOOTH_LISTEN_INCOMING + 2, // 17 -> BLUETOOTH_OBTAIN_MAC_ADDRESS + 0, // 18 -> BLUETOOTH_CONNECT_OUTGOING + 3, // 19 -> BLUETOOTH_PARSE_MAC_ADDRESS + 18, // 20 -> WIFI_AWARE_LISTEN_INCOMING + 19, // 21 -> WIFI_AWARE_PUBLISH + 21, // 22 -> WIFI_AWARE_SUBSCRIBE + 17, // 23 -> WIFI_AWARE_CONNECT_TO_NETWORK + 25, // 24 -> WIFI_DIRECT_LISTEN_INCOMING + 24, // 25 -> WIFI_DIRECT_CREATE_GROUP + 23, // 26 -> WIFI_DIRECT_CONNECT_OUTGOING + 26, // 27 -> WIFI_DIRECT_PARSE_DEVICE_ADDRESS + 28, // 28 -> WIFI_HOTSPOT_SOCKET_CREATION + 32, // 29 -> WIFI_LAN_SOCKET_CREATION + 4, // 30 -> BLUETOOTH_SOCKET_CREATION + 20, // 31 -> WIFI_AWARE_SOCKET_CREATION + 27, // 32 -> WIFI_DIRECT_SOCKET_CREATION + 16, // 33 -> WEB_RTC_SOCKET_CREATION + 15, // 34 -> WEB_RTC_LISTEN_INCOMING }; -const std::string& BandwidthUpgradeErrorStage_Name( - BandwidthUpgradeErrorStage value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeErrorStage_entries, - BandwidthUpgradeErrorStage_entries_by_number, - 35, BandwidthUpgradeErrorStage_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeErrorStage_entries, - BandwidthUpgradeErrorStage_entries_by_number, - 35, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeErrorStage_strings[idx].get(); +const ::std::string& BandwidthUpgradeErrorStage_Name(BandwidthUpgradeErrorStage value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + BandwidthUpgradeErrorStage_entries, BandwidthUpgradeErrorStage_entries_by_number, 35, + BandwidthUpgradeErrorStage_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(BandwidthUpgradeErrorStage_entries, + BandwidthUpgradeErrorStage_entries_by_number, + 35, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BandwidthUpgradeErrorStage_strings[idx].get(); } -bool BandwidthUpgradeErrorStage_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeErrorStage* value) { + +bool BandwidthUpgradeErrorStage_Parse(::absl::string_view name, BandwidthUpgradeErrorStage* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( BandwidthUpgradeErrorStage_entries, 35, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool LogSource_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t LogSource_internal_data_[] = { + 655360u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + LogSource_strings[10] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LogSource_strings[10] = {}; +static const char LogSource_names[] = { + "BETA_TESTER_DEVICES" + "BETO_DOGFOOD_DEVICES" + "DEBUG_DEVICES" + "INTERNAL_DEVICES" + "LAB_DEVICES" + "NEARBY_DOGFOOD_DEVICES" + "NEARBY_MODULE_FOOD_DEVICES" + "NEARBY_TEAMFOOD_DEVICES" + "OEM_DEVICES" + "UNSPECIFIED_SOURCE" +}; -static const char LogSource_names[] = - "BETA_TESTER_DEVICES" - "BETO_DOGFOOD_DEVICES" - "DEBUG_DEVICES" - "INTERNAL_DEVICES" - "LAB_DEVICES" - "NEARBY_DOGFOOD_DEVICES" - "NEARBY_MODULE_FOOD_DEVICES" - "NEARBY_TEAMFOOD_DEVICES" - "OEM_DEVICES" - "UNSPECIFIED_SOURCE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LogSource_entries[] = { - { {LogSource_names + 0, 19}, 3 }, - { {LogSource_names + 19, 20}, 7 }, - { {LogSource_names + 39, 13}, 5 }, - { {LogSource_names + 52, 16}, 2 }, - { {LogSource_names + 68, 11}, 1 }, - { {LogSource_names + 79, 22}, 8 }, - { {LogSource_names + 101, 26}, 6 }, - { {LogSource_names + 127, 23}, 9 }, - { {LogSource_names + 150, 11}, 4 }, - { {LogSource_names + 161, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry LogSource_entries[] = { + {{&LogSource_names[0], 19}, 3}, + {{&LogSource_names[19], 20}, 7}, + {{&LogSource_names[39], 13}, 5}, + {{&LogSource_names[52], 16}, 2}, + {{&LogSource_names[68], 11}, 1}, + {{&LogSource_names[79], 22}, 8}, + {{&LogSource_names[101], 26}, 6}, + {{&LogSource_names[127], 23}, 9}, + {{&LogSource_names[150], 11}, 4}, + {{&LogSource_names[161], 18}, 0}, }; static const int LogSource_entries_by_number[] = { - 9, // 0 -> UNSPECIFIED_SOURCE - 4, // 1 -> LAB_DEVICES - 3, // 2 -> INTERNAL_DEVICES - 0, // 3 -> BETA_TESTER_DEVICES - 8, // 4 -> OEM_DEVICES - 2, // 5 -> DEBUG_DEVICES - 6, // 6 -> NEARBY_MODULE_FOOD_DEVICES - 1, // 7 -> BETO_DOGFOOD_DEVICES - 5, // 8 -> NEARBY_DOGFOOD_DEVICES - 7, // 9 -> NEARBY_TEAMFOOD_DEVICES + 9, // 0 -> UNSPECIFIED_SOURCE + 4, // 1 -> LAB_DEVICES + 3, // 2 -> INTERNAL_DEVICES + 0, // 3 -> BETA_TESTER_DEVICES + 8, // 4 -> OEM_DEVICES + 2, // 5 -> DEBUG_DEVICES + 6, // 6 -> NEARBY_MODULE_FOOD_DEVICES + 1, // 7 -> BETO_DOGFOOD_DEVICES + 5, // 8 -> NEARBY_DOGFOOD_DEVICES + 7, // 9 -> NEARBY_TEAMFOOD_DEVICES }; -const std::string& LogSource_Name( - LogSource value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - LogSource_entries, - LogSource_entries_by_number, - 10, LogSource_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - LogSource_entries, - LogSource_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - LogSource_strings[idx].get(); +const ::std::string& LogSource_Name(LogSource value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + LogSource_entries, LogSource_entries_by_number, 10, + LogSource_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(LogSource_entries, + LogSource_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : LogSource_strings[idx].get(); } -bool LogSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value) { + +bool LogSource_Parse(::absl::string_view name, LogSource* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( LogSource_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PowerLevel_IsValid(int value) { - switch (value) { - case -1: - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PowerLevel_internal_data_[] = { + 393215u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PowerLevel_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PowerLevel_strings[5] = {}; +static const char PowerLevel_names[] = { + "BALANCED_POWER" + "HIGH_POWER" + "LOW_POWER" + "ULTRA_LOW_POWER" + "UNSPECIFIED" +}; -static const char PowerLevel_names[] = - "BALANCED_POWER" - "HIGH_POWER" - "LOW_POWER" - "ULTRA_LOW_POWER" - "UNSPECIFIED"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PowerLevel_entries[] = { - { {PowerLevel_names + 0, 14}, 2 }, - { {PowerLevel_names + 14, 10}, 3 }, - { {PowerLevel_names + 24, 9}, 1 }, - { {PowerLevel_names + 33, 15}, -1 }, - { {PowerLevel_names + 48, 11}, 0 }, +static const ::google::protobuf::internal::EnumEntry PowerLevel_entries[] = { + {{&PowerLevel_names[0], 14}, 2}, + {{&PowerLevel_names[14], 10}, 3}, + {{&PowerLevel_names[24], 9}, 1}, + {{&PowerLevel_names[33], 15}, -1}, + {{&PowerLevel_names[48], 11}, 0}, }; static const int PowerLevel_entries_by_number[] = { - 3, // -1 -> ULTRA_LOW_POWER - 4, // 0 -> UNSPECIFIED - 2, // 1 -> LOW_POWER - 0, // 2 -> BALANCED_POWER - 1, // 3 -> HIGH_POWER + 3, // -1 -> ULTRA_LOW_POWER + 4, // 0 -> UNSPECIFIED + 2, // 1 -> LOW_POWER + 0, // 2 -> BALANCED_POWER + 1, // 3 -> HIGH_POWER }; -const std::string& PowerLevel_Name( - PowerLevel value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PowerLevel_entries, - PowerLevel_entries_by_number, - 5, PowerLevel_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PowerLevel_entries, - PowerLevel_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PowerLevel_strings[idx].get(); +const ::std::string& PowerLevel_Name(PowerLevel value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PowerLevel_entries, PowerLevel_entries_by_number, 5, + PowerLevel_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PowerLevel_entries, + PowerLevel_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PowerLevel_strings[idx].get(); } -bool PowerLevel_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerLevel* value) { + +bool PowerLevel_Parse(::absl::string_view name, PowerLevel* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PowerLevel_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool OperationResultCategory_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t OperationResultCategory_internal_data_[] = { + 720896u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + OperationResultCategory_strings[11] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OperationResultCategory_strings[11] = {}; +static const char OperationResultCategory_names[] = { + "CATEGORY_CLIENT_CANCELLATION" + "CATEGORY_CLIENT_ERROR" + "CATEGORY_CONNECTIVITY_ERROR" + "CATEGORY_DCT_ERROR" + "CATEGORY_DEVICE_STATE_ERROR" + "CATEGORY_IO_ERROR" + "CATEGORY_MEDIUM_UNAVAILABLE" + "CATEGORY_MISCELLANEOUS" + "CATEGORY_NEARBY_ERROR" + "CATEGORY_SUCCESS" + "CATEGORY_UNKNOWN" +}; -static const char OperationResultCategory_names[] = - "CATEGORY_CLIENT_CANCELLATION" - "CATEGORY_CLIENT_ERROR" - "CATEGORY_CONNECTIVITY_ERROR" - "CATEGORY_DCT_ERROR" - "CATEGORY_DEVICE_STATE_ERROR" - "CATEGORY_IO_ERROR" - "CATEGORY_MEDIUM_UNAVAILABLE" - "CATEGORY_MISCELLANEOUS" - "CATEGORY_NEARBY_ERROR" - "CATEGORY_SUCCESS" - "CATEGORY_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OperationResultCategory_entries[] = { - { {OperationResultCategory_names + 0, 28}, 2 }, - { {OperationResultCategory_names + 28, 21}, 5 }, - { {OperationResultCategory_names + 49, 27}, 7 }, - { {OperationResultCategory_names + 76, 18}, 10 }, - { {OperationResultCategory_names + 94, 27}, 4 }, - { {OperationResultCategory_names + 121, 17}, 9 }, - { {OperationResultCategory_names + 138, 27}, 3 }, - { {OperationResultCategory_names + 165, 22}, 8 }, - { {OperationResultCategory_names + 187, 21}, 6 }, - { {OperationResultCategory_names + 208, 16}, 1 }, - { {OperationResultCategory_names + 224, 16}, 0 }, +static const ::google::protobuf::internal::EnumEntry OperationResultCategory_entries[] = { + {{&OperationResultCategory_names[0], 28}, 2}, + {{&OperationResultCategory_names[28], 21}, 5}, + {{&OperationResultCategory_names[49], 27}, 7}, + {{&OperationResultCategory_names[76], 18}, 10}, + {{&OperationResultCategory_names[94], 27}, 4}, + {{&OperationResultCategory_names[121], 17}, 9}, + {{&OperationResultCategory_names[138], 27}, 3}, + {{&OperationResultCategory_names[165], 22}, 8}, + {{&OperationResultCategory_names[187], 21}, 6}, + {{&OperationResultCategory_names[208], 16}, 1}, + {{&OperationResultCategory_names[224], 16}, 0}, }; static const int OperationResultCategory_entries_by_number[] = { - 10, // 0 -> CATEGORY_UNKNOWN - 9, // 1 -> CATEGORY_SUCCESS - 0, // 2 -> CATEGORY_CLIENT_CANCELLATION - 6, // 3 -> CATEGORY_MEDIUM_UNAVAILABLE - 4, // 4 -> CATEGORY_DEVICE_STATE_ERROR - 1, // 5 -> CATEGORY_CLIENT_ERROR - 8, // 6 -> CATEGORY_NEARBY_ERROR - 2, // 7 -> CATEGORY_CONNECTIVITY_ERROR - 7, // 8 -> CATEGORY_MISCELLANEOUS - 5, // 9 -> CATEGORY_IO_ERROR - 3, // 10 -> CATEGORY_DCT_ERROR + 10, // 0 -> CATEGORY_UNKNOWN + 9, // 1 -> CATEGORY_SUCCESS + 0, // 2 -> CATEGORY_CLIENT_CANCELLATION + 6, // 3 -> CATEGORY_MEDIUM_UNAVAILABLE + 4, // 4 -> CATEGORY_DEVICE_STATE_ERROR + 1, // 5 -> CATEGORY_CLIENT_ERROR + 8, // 6 -> CATEGORY_NEARBY_ERROR + 2, // 7 -> CATEGORY_CONNECTIVITY_ERROR + 7, // 8 -> CATEGORY_MISCELLANEOUS + 5, // 9 -> CATEGORY_IO_ERROR + 3, // 10 -> CATEGORY_DCT_ERROR }; -const std::string& OperationResultCategory_Name( - OperationResultCategory value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OperationResultCategory_entries, - OperationResultCategory_entries_by_number, - 11, OperationResultCategory_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OperationResultCategory_entries, - OperationResultCategory_entries_by_number, - 11, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OperationResultCategory_strings[idx].get(); +const ::std::string& OperationResultCategory_Name(OperationResultCategory value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + OperationResultCategory_entries, OperationResultCategory_entries_by_number, 11, + OperationResultCategory_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(OperationResultCategory_entries, + OperationResultCategory_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OperationResultCategory_strings[idx].get(); } -bool OperationResultCategory_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCategory* value) { + +bool OperationResultCategory_Parse(::absl::string_view name, OperationResultCategory* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( OperationResultCategory_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool OperationResultCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 500: - case 501: - case 502: - case 503: - case 504: - case 505: - case 506: - case 507: - case 508: - case 509: - case 510: - case 511: - case 512: - case 513: - case 514: - case 515: - case 516: - case 517: - case 518: - case 519: - case 520: - case 521: - case 522: - case 523: - case 524: - case 525: - case 1000: - case 1001: - case 1002: - case 1003: - case 1004: - case 1500: - case 1501: - case 1502: - case 1503: - case 1504: - case 1505: - case 1506: - case 1507: - case 1508: - case 1509: - case 1510: - case 1511: - case 1512: - case 1513: - case 1514: - case 1515: - case 1516: - case 1517: - case 1518: - case 1519: - case 1520: - case 1521: - case 1522: - case 1523: - case 1524: - case 1525: - case 1526: - case 1527: - case 1528: - case 1529: - case 1530: - case 1531: - case 1532: - case 1533: - case 1534: - case 1535: - case 1536: - case 1537: - case 1538: - case 1539: - case 1540: - case 1541: - case 1542: - case 1543: - case 1544: - case 1545: - case 1546: - case 1547: - case 2000: - case 2001: - case 2002: - case 2003: - case 2004: - case 2005: - case 2006: - case 2007: - case 2008: - case 2009: - case 2010: - case 2011: - case 2012: - case 2013: - case 2014: - case 2015: - case 2016: - case 2017: - case 2018: - case 2019: - case 2020: - case 2021: - case 2022: - case 2023: - case 2024: - case 2025: - case 2026: - case 2027: - case 2028: - case 2029: - case 2030: - case 2031: - case 2032: - case 2033: - case 2034: - case 2035: - case 2036: - case 2037: - case 2038: - case 2500: - case 2501: - case 2502: - case 2503: - case 2504: - case 2505: - case 2506: - case 2507: - case 2508: - case 2509: - case 2510: - case 2511: - case 2512: - case 2513: - case 2514: - case 2515: - case 2516: - case 3000: - case 3001: - case 3002: - case 3003: - case 3004: - case 3005: - case 3006: - case 3007: - case 3008: - case 3009: - case 3010: - case 3011: - case 3012: - case 3013: - case 3014: - case 3500: - case 3501: - case 3502: - case 3503: - case 3504: - case 3505: - case 3506: - case 3507: - case 3508: - case 3509: - case 3510: - case 3511: - case 3512: - case 3513: - case 3514: - case 3515: - case 3516: - case 3517: - case 3518: - case 3519: - case 3520: - case 3521: - case 3522: - case 3523: - case 3524: - case 3525: - case 3526: - case 3527: - case 3528: - case 3529: - case 3530: - case 3531: - case 3532: - case 3533: - case 3534: - case 3535: - case 3536: - case 3537: - case 3538: - case 3539: - case 3540: - case 3541: - case 3542: - case 3543: - case 3544: - case 3545: - case 3546: - case 3547: - case 3548: - case 3549: - case 3550: - case 3551: - case 3552: - case 3553: - case 3554: - case 3555: - case 3556: - case 3557: - case 3558: - case 3559: - case 3560: - case 3561: - case 3562: - case 3563: - case 3564: - case 3565: - case 3566: - case 3567: - case 3568: - case 3569: - case 3570: - case 3571: - case 3572: - case 3573: - case 3574: - case 3575: - case 3576: - case 3577: - case 3578: - case 3579: - case 3580: - case 3581: - case 3582: - case 3583: - case 3584: - case 3585: - case 3586: - case 3587: - case 3588: - case 3589: - case 3590: - case 3591: - case 3592: - case 3593: - case 3594: - case 3595: - case 3596: - case 3597: - case 3598: - case 3599: - case 3600: - case 3601: - case 3602: - case 3603: - case 3604: - case 3605: - case 3606: - case 3607: - case 3608: - case 3609: - case 3610: - case 4500: - case 4501: - case 4502: - case 4503: - case 4504: - case 4505: - case 4506: - case 4507: - case 4508: - case 4509: - case 4510: - case 4511: - case 4512: - case 4513: - case 4514: - case 4515: - case 4516: - case 4517: - case 4518: - case 4519: - case 4520: - case 4521: - case 4522: - case 4523: - case 4524: - case 4525: - case 4526: - case 4527: - case 4528: - case 4529: - case 4530: - case 4531: - case 4532: - case 4533: - case 4534: - case 4535: - case 4536: - case 4537: - case 4538: - case 4539: - case 4540: - case 4541: - case 4542: - case 4543: - case 4544: - case 4545: - case 4546: - case 4547: - case 4548: - case 4549: - case 4550: - case 4551: - case 4552: - case 4553: - case 4554: - case 4555: - case 4556: - case 4557: - case 4558: - case 4559: - case 4560: - case 4561: - case 4562: - case 4563: - case 4564: - case 4565: - case 4566: - case 4567: - case 4568: - case 4569: - case 4570: - case 4571: - case 4572: - case 4573: - case 4574: - case 4575: - case 4576: - case 4577: - case 4578: - case 4579: - case 4580: - case 4581: - case 4582: - case 4583: - case 4584: - case 4585: - case 4586: - case 4587: - case 4588: - case 4589: - case 4590: - case 4591: - case 4592: - case 4593: - case 4594: - case 4595: - case 4596: - case 4597: - case 4598: - case 4599: - case 4600: - case 4601: - case 4602: - case 4603: - case 4604: - case 4605: - case 4606: - case 4607: - case 4608: - case 4609: - case 4610: - case 4611: - case 4612: - case 5000: - case 5001: - case 5002: - case 5003: - case 5004: - case 5005: - case 5006: - case 5007: - case 5008: - case 5009: - case 5010: - case 5011: - case 5012: - case 5013: - case 5014: - case 5015: - case 5016: - case 5017: - case 5018: - case 5019: - case 5020: - case 5021: - case 5022: - case 5023: - case 5024: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t OperationResultCode_internal_data_[] = { + 131072u, 5024u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4294705152u, 4095u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 1984u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4227858432u, 4294967295u, 1023u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4294950912u, 2097151u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 524284u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4290772992u, 31u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4294966272u, 4294967295u, 4294967295u, 33554431u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 4294705152u, 4294967295u, 4294967295u, 4294967295u, 7u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 2147483584u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + OperationResultCode_strings[401] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OperationResultCode_strings[401] = {}; +static const char OperationResultCode_names[] = { + "CLIENT_ALREADY_CONNECTED_TO_ENDPOINT" + "CLIENT_ALREADY_CONNECTED_TO_TARGET" + "CLIENT_AWDL_DUPLICATE_ADVERTISING" + "CLIENT_AWDL_DUPLICATE_DISCOVERING" + "CLIENT_BLE_DUPLICATE_ADVERTISING" + "CLIENT_BLE_DUPLICATE_DISCOVERING" + "CLIENT_BLE_NO_LISTENING" + "CLIENT_BLUETOOTH_DUPLICATE_ADVERTISING" + "CLIENT_BLUETOOTH_DUPLICATE_DISCOVERING" + "CLIENT_CANCELLATION_AWDL_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_BT_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_CANCEL_AWDL_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_BLE_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_BT_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_INCOMING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_L2CAP_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_LAN_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_NFC_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_USB_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_WEB_RTC_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_WIFI_AWARE_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_WIFI_DIRECT_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_CANCEL_WIFI_HOTSPOT_OUTGOING_CONNECTION" + "CLIENT_CANCELLATION_LOCAL_CANCEL_PAYLOAD" + "CLIENT_CANCELLATION_LOCAL_DISCONNECT" + "CLIENT_CANCELLATION_REMOTE_CANCEL_PAYLOAD" + "CLIENT_CANCELLATION_REMOTE_DISCONNECT" + "CLIENT_CANCELLATION_REMOTE_IN_CANCELED_STATE" + "CLIENT_CANCELLATION_UPGRADE_CANCELED_BY_REMOTE" + "CLIENT_CANCELLATION_WEB_RTC_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_WIFI_AWARE_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_WIFI_DIRECT_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_WIFI_HOTSPOT_SERVER_SOCKET_CREATION" + "CLIENT_CANCELLATION_WIFI_LAN_SERVER_SOCKET_CREATION" + "CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT" + "CLIENT_DUPLICATE_ACCEPTING_AWDL_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_BT_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_L2CAP_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_LAN_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_NFC_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_USB_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_WEB_RTC_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_WIFI_AWARE_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_WIFI_DIRECT_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_ACCEPTING_WIFI_HOTSPOT_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_WIFI_AWARE_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_WIFI_AWARE_SUBSCRIBING_REQUEST" + "CLIENT_DUPLICATE_WIFI_DIRECT_CONNECTION_REQUEST" + "CLIENT_DUPLICATE_WIFI_HOTSPOT_CONNECTION_REQUEST" + "CLIENT_FAILED_INCOMING_CONNECTION_DUE_TO_TOPOLOGICAL_LIMIT" + "CLIENT_NFC_DUPLICATE_ADVERTISING" + "CLIENT_NFC_DUPLICATE_DISCOVERING" + "CLIENT_OUT_OF_ORDER_API_CALL" + "CLIENT_PERMISSION_FAILURE" + "CLIENT_PROCESS_TIE_BREAK_LOSS" + "CLIENT_UNSUPPORTED_USB_TO_BE_UPGRADE_MEDIUM" + "CLIENT_USB_DUPLICATE_ADVERTISING" + "CLIENT_USB_DUPLICATE_DISCOVERING" + "CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT" + "CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT" + "CLIENT_WIFI_LAN_DUPLICATE_ADVERTISING" + "CLIENT_WIFI_LAN_DUPLICATE_DISCOVERING" + "CLIENT_WRONG_CONNECTING_PERMISSIONS" + "CONNECTIVITY_AUTO_RESUME_FAILURE" + "CONNECTIVITY_AWDL_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_AWDL_INVALID_CREDENTIAL" + "CONNECTIVITY_AWDL_START_ADVERTISING_FAILURE" + "CONNECTIVITY_AWDL_START_DISCOVERY_FAILURE" + "CONNECTIVITY_BLE_ADD_GATT_ADVERTISEMENT_FAILURE" + "CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_BLE_CREATE_GATT_CONNECTION_FAILURE" + "CONNECTIVITY_BLE_SCAN_FAILURE" + "CONNECTIVITY_BLE_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_BLE_START_ADVERTISING_FAILURE" + "CONNECTIVITY_BLE_START_GATT_SERVER_FAILURE" + "CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE" + "CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE" + "CONNECTIVITY_BLUETOOTH_INVALID_CREDENTIAL" + "CONNECTIVITY_BLUETOOTH_SCAN_FAILURE" + "CONNECTIVITY_BLUETOOTH_START_ADVERTISING_FAILURE" + "CONNECTIVITY_BT_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_BT_CONNECTION_EXECUTION_EXCEPTION" + "CONNECTIVITY_BT_CONNECTION_INTERRUPTED_EXCEPTION" + "CONNECTIVITY_BT_CONNECTION_TIMEOUT_EXCEPTION" + "CONNECTIVITY_BT_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_BT_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE" + "CONNECTIVITY_BT_SOCKET_CONNECT_IO_EXCEPTION" + "CONNECTIVITY_BT_SOCKET_CREATION_IO_EXCEPTION" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_AWDL" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE_L2CAP" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BT" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_LAN" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_NFC" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_UNKNOWN_MEDIUM" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_USB" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WEB_RTC" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_AWARE" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_DIRECT" + "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_HOTSPOT" + "CONNECTIVITY_DIRECT_GROUP_MCC_FAILURE" + "CONNECTIVITY_GATT_SERVER_OPEN_FAILURE" + "CONNECTIVITY_GENERIC_PAYLOAD_SENT_ERROR" + "CONNECTIVITY_GENERIC_WRITE_CLIENT_INTRODUCTION_ACK_IO_ERROR" + "CONNECTIVITY_GENERIC_WRITING_CHANNEL_IO_ERROR" + "CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT" + "CONNECTIVITY_L2CAP_CLIENT_OBTAIN_FAIURE" + "CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_TIMEOUT_FAILURE" + "CONNECTIVITY_L2CAP_DATA_CONNECTION_FAILURE" + "CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE" + "CONNECTIVITY_LAN_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_LAN_GET_NETWORK_INTERFACES_FAILURE" + "CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE" + "CONNECTIVITY_LAN_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_LAN_UNREACHABLE" + "CONNECTIVITY_MDNS_SCAN_FAILURE" + "CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL" + "CONNECTIVITY_NFC_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_NFC_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_NFC_START_DISCOVERY_FAILURE" + "CONNECTIVITY_USB_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_UWB_START_DISCOVERY_FAILURE" + "CONNECTIVITY_WEB_RTC_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WEB_RTC_CONNECT_TO_TACHYON_FAILURE" + "CONNECTIVITY_WEB_RTC_INVALID_CREDENTIAL" + "CONNECTIVITY_WEB_RTC_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WEB_RTC_UNSATISFIED_LINK_ERROR" + "CONNECTIVITY_WFD_CONNECTION_EXECUTION_EXCEPTION" + "CONNECTIVITY_WFD_CONNECTION_HOSTED_ADDRESS_NULL" + "CONNECTIVITY_WFD_CONNECTION_INTERRUPTED_EXCEPTION" + "CONNECTIVITY_WFD_CONNECTION_TIMEOUT_EXCEPTION" + "CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE" + "CONNECTIVITY_WIFI_AWARE_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_AWARE_DISCOVERED_PEER_NULL" + "CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_SCREEN_OFF" + "CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_TIMEOUT" + "CONNECTIVITY_WIFI_AWARE_DO_UNAVAILABLE" + "CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_ADDRESS_FAILURE" + "CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_FRAME_FAILURE" + "CONNECTIVITY_WIFI_AWARE_INVALID_CREDENTIAL" + "CONNECTIVITY_WIFI_AWARE_JOIN_NETWORK_FAILED" + "CONNECTIVITY_WIFI_AWARE_L2MESSAGE_NETWORK_AVAILABLE_FRAME_NULL" + "CONNECTIVITY_WIFI_AWARE_L2MESSAGE_SEND_HOST_NETWORK_FRAME_FAILURE" + "CONNECTIVITY_WIFI_AWARE_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_AWARE_START_ADVERTISING_FAILURE" + "CONNECTIVITY_WIFI_AWARE_START_DISCOVERY_FAILURE" + "CONNECTIVITY_WIFI_AWARE_UPDATE_PUBLISH_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_GET_NETWORK_INTERFACES_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_INCONSISTENT_HOSTED_WIFI_BAND" + "CONNECTIVITY_WIFI_DIRECT_INVALID_CREDENTIAL" + "CONNECTIVITY_WIFI_DIRECT_P2P_CHANNEL_INITIALIZE_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_P2P_CONNECTION_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_P2P_GROUP_CREATION_FAILURE" + "CONNECTIVITY_WIFI_DIRECT_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_CLIENT_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_GET_NETWORK_INTERFACES_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_INCONSISTENT_HOSTED_WIFI_BAND" + "CONNECTIVITY_WIFI_HOTSPOT_INVALID_CREDENTIAL" + "CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_LOHS_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_P2P_CHANNEL_INITIALIZE_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_P2P_GROUP_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_SERVER_SOCKET_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_SOFT_AP_CREATION_FAILURE" + "CONNECTIVITY_WIFI_HOTSPOT_SPECIFIER_FAILURE" + "CONNECTIVITY_WIFI_LAN_INVALID_CREDENTIAL" + "CONNECTIVITY_WIFI_LAN_IP_ADDRESS_ERROR" + "CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_IO_EXCEPTION" + "CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_TIMEOUT" + "CONNECTIVITY_WIFI_LAN_START_ADVERTISING_FAILURE" + "CONNECTIVITY_WIFI_LAN_START_DISCOVERY_FAILURE" + "DCT_ERROR_BLE_ADV_FAILED" + "DCT_ERROR_BLE_DISABLED" + "DCT_ERROR_BLE_SCAN_FAILED" + "DCT_ERROR_CAPABILITY_MISMATCH" + "DCT_ERROR_CONTROL_MESSAGE_EXCHANGE" + "DCT_ERROR_ESTABLISHED_CONNECTION_LOST" + "DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE" + "DCT_ERROR_HTTP_SERVER_CLOSED" + "DCT_ERROR_INITIAL_TLS_SPAKE" + "DCT_ERROR_KEEPALIVE_TIMEOUT" + "DCT_ERROR_L2CAP_CLIENT_FAILED" + "DCT_ERROR_L2CAP_SERVER_FAILED" + "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" + "DETAIL_SUCCESS" + "DETAIL_UNKNOWN" + "DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS" + "DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED" + "DEVICE_STATE_LOCATION_DISABLED" + "DEVICE_STATE_RADIO_DISABLING_FAILURE" + "DEVICE_STATE_RADIO_ENABLING_FAILURE" + "IO_ENDPOINT_IO_ERROR_ON_BLE" + "IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP" + "IO_ENDPOINT_IO_ERROR_ON_BT" + "IO_ENDPOINT_IO_ERROR_ON_LAN" + "IO_ENDPOINT_IO_ERROR_ON_NFC" + "IO_ENDPOINT_IO_ERROR_ON_USB" + "IO_ENDPOINT_IO_ERROR_ON_WEB_RTC" + "IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE" + "IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT" + "IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT" + "IO_FILE_OPENING_ERROR" + "IO_FILE_READING_ERROR" + "IO_FILE_WRITING_ERROR" + "IO_FOLDER_CREATION_ERROR" + "IO_STREAM_CREATE_PIPE_FAILURE" + "MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP" + "MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS" + "MEDIUM_UNAVAILABLE_AWDL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED" + "MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT" + "MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING" + "MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_LAN_BLOCKED" + "MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE" + "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT" + "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G" + "MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_POOR_SIGNAL" + "MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION" + "MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE" + "MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT" + "MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE" + "MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW" + "MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS" + "MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET" + "MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE" + "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE" + "MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE" + "MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL" + "MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE" + "MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM" + "MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE" + "MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE" + "MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL" + "MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL" + "MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION" + "MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL" + "MISCELLEANEOUS_WORK_SOURCE_NULL" + "NEARBY_AUTHENTICATION_FAILURE" + "NEARBY_AWDL_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_AWDL_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD" + "NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR" + "NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION" + "NEARBY_BLE_GATT_NULL_CALLBACK" + "NEARBY_BLE_INVALID_PCP_OPTIONS" + "NEARBY_BLE_OPERATION_REGISTERED_FAILED" + "NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS" + "NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT" + "NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN" + "NEARBY_BLUETOOTH_RECONNECT_MAC_NULL" + "NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_BT_MULTIPLEX_SOCKET_DISABLED" + "NEARBY_BT_NULL_CALLBACK" + "NEARBY_BT_OPERATION_REGISTERED_FAILED" + "NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE" + "NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER" + "NEARBY_CONNECTION_LISTENER_NULL" + "NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG" + "NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE" + "NEARBY_ENCRYPTION_FAILURE" + "NEARBY_ENDPOINT_ID_MISMATCH" + "NEARBY_GENERIC_CONNECTION_CLOSED" + "NEARBY_GENERIC_ENDPOINT_UNENCRYPTED" + "NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE" + "NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE" + "NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL" + "NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL" + "NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR" + "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR" + "NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR" + "NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR" + "NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE" + "NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL" + "NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO" + "NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_L2CAP_NULL_CALLBACK" + "NEARBY_L2CAP_OPERATION_REGISTERED_FAILED" + "NEARBY_L2CAP_PSM_NOT_POSITIVE" + "NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED" + "NEARBY_LAN_NULL_CALLBACK" + "NEARBY_LAN_OPERATION_REGISTERED_FAILED" + "NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL" + "NEARBY_LAN_RECONNECT_IP_NULL" + "NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE" + "NEARBY_LAN_VIRTUAL_SOCKET_NULL" + "NEARBY_LOCAL_CLIENT_STATE_WRONG" + "NEARBY_NEED_METHOD_OVERRIDE" + "NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_NFC_INVALID_PCP_OPTIONS" + "NEARBY_NFC_NULL_CALLBACK" + "NEARBY_NOT_ADVERTISING_OR_LISTENING" + "NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD" + "NEARBY_SETUP_STRATEGY_FAILURE" + "NEARBY_TX_ADVERTISEMENT_NULL" + "NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM" + "NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_USB_INVALID_PCP_OPTIONS" + "NEARBY_USB_NULL_CALLBACK" + "NEARBY_UWB_INVALID_PCP_OPTIONS" + "NEARBY_WEB_RTC_CONNECTION_FLOW_NULL" + "NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_WEB_RTC_INVALID_PCP_OPTIONS" + "NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND" + "NEARBY_WEB_RTC_NULL_CALLBACK" + "NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED" + "NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL" + "NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS" + "NEARBY_WIFI_AWARE_NULL_CALLBACK" + "NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL" + "NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS" + "NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING" + "NEARBY_WIFI_DIRECT_NULL_CALLBACK" + "NEARBY_WIFI_DIRECT_NULL_PASSWORD" + "NEARBY_WIFI_DIRECT_NULL_SSID" + "NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G" + "NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G" + "NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL" + "NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL" + "NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE" + "NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS" + "NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING" + "NEARBY_WIFI_HOTSPOT_NULL_CALLBACK" + "NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G" + "NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G" + "NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL" + "NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL" + "NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED" + "NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE" + "NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS" + "NEARBY_WIFI_LAN_IP_ADDRESS_ERROR" +}; -static const char OperationResultCode_names[] = - "CLIENT_ALREADY_CONNECTED_TO_ENDPOINT" - "CLIENT_ALREADY_CONNECTED_TO_TARGET" - "CLIENT_AWDL_DUPLICATE_ADVERTISING" - "CLIENT_AWDL_DUPLICATE_DISCOVERING" - "CLIENT_BLE_DUPLICATE_ADVERTISING" - "CLIENT_BLE_DUPLICATE_DISCOVERING" - "CLIENT_BLE_NO_LISTENING" - "CLIENT_BLUETOOTH_DUPLICATE_ADVERTISING" - "CLIENT_BLUETOOTH_DUPLICATE_DISCOVERING" - "CLIENT_CANCELLATION_AWDL_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_BT_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_CANCEL_AWDL_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_BLE_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_BT_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_INCOMING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_L2CAP_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_LAN_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_NFC_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_USB_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_WEB_RTC_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_WIFI_AWARE_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_WIFI_DIRECT_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_CANCEL_WIFI_HOTSPOT_OUTGOING_CONNECTION" - "CLIENT_CANCELLATION_LOCAL_CANCEL_PAYLOAD" - "CLIENT_CANCELLATION_LOCAL_DISCONNECT" - "CLIENT_CANCELLATION_REMOTE_CANCEL_PAYLOAD" - "CLIENT_CANCELLATION_REMOTE_DISCONNECT" - "CLIENT_CANCELLATION_REMOTE_IN_CANCELED_STATE" - "CLIENT_CANCELLATION_UPGRADE_CANCELED_BY_REMOTE" - "CLIENT_CANCELLATION_WEB_RTC_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_WIFI_AWARE_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_WIFI_DIRECT_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_WIFI_HOTSPOT_SERVER_SOCKET_CREATION" - "CLIENT_CANCELLATION_WIFI_LAN_SERVER_SOCKET_CREATION" - "CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT" - "CLIENT_DUPLICATE_ACCEPTING_AWDL_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_BT_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_L2CAP_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_LAN_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_NFC_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_USB_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_WEB_RTC_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_WIFI_AWARE_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_WIFI_DIRECT_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_ACCEPTING_WIFI_HOTSPOT_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_WIFI_AWARE_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_WIFI_AWARE_SUBSCRIBING_REQUEST" - "CLIENT_DUPLICATE_WIFI_DIRECT_CONNECTION_REQUEST" - "CLIENT_DUPLICATE_WIFI_HOTSPOT_CONNECTION_REQUEST" - "CLIENT_FAILED_INCOMING_CONNECTION_DUE_TO_TOPOLOGICAL_LIMIT" - "CLIENT_NFC_DUPLICATE_ADVERTISING" - "CLIENT_NFC_DUPLICATE_DISCOVERING" - "CLIENT_OUT_OF_ORDER_API_CALL" - "CLIENT_PERMISSION_FAILURE" - "CLIENT_PROCESS_TIE_BREAK_LOSS" - "CLIENT_UNSUPPORTED_USB_TO_BE_UPGRADE_MEDIUM" - "CLIENT_USB_DUPLICATE_ADVERTISING" - "CLIENT_USB_DUPLICATE_DISCOVERING" - "CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT" - "CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT" - "CLIENT_WIFI_LAN_DUPLICATE_ADVERTISING" - "CLIENT_WIFI_LAN_DUPLICATE_DISCOVERING" - "CLIENT_WRONG_CONNECTING_PERMISSIONS" - "CONNECTIVITY_AUTO_RESUME_FAILURE" - "CONNECTIVITY_AWDL_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_AWDL_INVALID_CREDENTIAL" - "CONNECTIVITY_AWDL_START_ADVERTISING_FAILURE" - "CONNECTIVITY_AWDL_START_DISCOVERY_FAILURE" - "CONNECTIVITY_BLE_ADD_GATT_ADVERTISEMENT_FAILURE" - "CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_BLE_CREATE_GATT_CONNECTION_FAILURE" - "CONNECTIVITY_BLE_SCAN_FAILURE" - "CONNECTIVITY_BLE_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_BLE_START_ADVERTISING_FAILURE" - "CONNECTIVITY_BLE_START_GATT_SERVER_FAILURE" - "CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE" - "CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE" - "CONNECTIVITY_BLUETOOTH_INVALID_CREDENTIAL" - "CONNECTIVITY_BLUETOOTH_SCAN_FAILURE" - "CONNECTIVITY_BLUETOOTH_START_ADVERTISING_FAILURE" - "CONNECTIVITY_BT_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_BT_CONNECTION_EXECUTION_EXCEPTION" - "CONNECTIVITY_BT_CONNECTION_INTERRUPTED_EXCEPTION" - "CONNECTIVITY_BT_CONNECTION_TIMEOUT_EXCEPTION" - "CONNECTIVITY_BT_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_BT_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE" - "CONNECTIVITY_BT_SOCKET_CONNECT_IO_EXCEPTION" - "CONNECTIVITY_BT_SOCKET_CREATION_IO_EXCEPTION" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_AWDL" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE_L2CAP" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_BT" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_LAN" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_NFC" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_UNKNOWN_MEDIUM" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_USB" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WEB_RTC" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_AWARE" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_DIRECT" - "CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_HOTSPOT" - "CONNECTIVITY_DIRECT_GROUP_MCC_FAILURE" - "CONNECTIVITY_GATT_SERVER_OPEN_FAILURE" - "CONNECTIVITY_GENERIC_PAYLOAD_SENT_ERROR" - "CONNECTIVITY_GENERIC_WRITE_CLIENT_INTRODUCTION_ACK_IO_ERROR" - "CONNECTIVITY_GENERIC_WRITING_CHANNEL_IO_ERROR" - "CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT" - "CONNECTIVITY_L2CAP_CLIENT_OBTAIN_FAIURE" - "CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_TIMEOUT_FAILURE" - "CONNECTIVITY_L2CAP_DATA_CONNECTION_FAILURE" - "CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE" - "CONNECTIVITY_LAN_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_LAN_GET_NETWORK_INTERFACES_FAILURE" - "CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE" - "CONNECTIVITY_LAN_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_LAN_UNREACHABLE" - "CONNECTIVITY_MDNS_SCAN_FAILURE" - "CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL" - "CONNECTIVITY_NFC_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_NFC_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_NFC_START_DISCOVERY_FAILURE" - "CONNECTIVITY_USB_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_UWB_START_DISCOVERY_FAILURE" - "CONNECTIVITY_WEB_RTC_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WEB_RTC_CONNECT_TO_TACHYON_FAILURE" - "CONNECTIVITY_WEB_RTC_INVALID_CREDENTIAL" - "CONNECTIVITY_WEB_RTC_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WEB_RTC_UNSATISFIED_LINK_ERROR" - "CONNECTIVITY_WFD_CONNECTION_EXECUTION_EXCEPTION" - "CONNECTIVITY_WFD_CONNECTION_HOSTED_ADDRESS_NULL" - "CONNECTIVITY_WFD_CONNECTION_INTERRUPTED_EXCEPTION" - "CONNECTIVITY_WFD_CONNECTION_TIMEOUT_EXCEPTION" - "CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE" - "CONNECTIVITY_WIFI_AWARE_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_AWARE_DISCOVERED_PEER_NULL" - "CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_SCREEN_OFF" - "CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_TIMEOUT" - "CONNECTIVITY_WIFI_AWARE_DO_UNAVAILABLE" - "CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_ADDRESS_FAILURE" - "CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_FRAME_FAILURE" - "CONNECTIVITY_WIFI_AWARE_INVALID_CREDENTIAL" - "CONNECTIVITY_WIFI_AWARE_JOIN_NETWORK_FAILED" - "CONNECTIVITY_WIFI_AWARE_L2MESSAGE_NETWORK_AVAILABLE_FRAME_NULL" - "CONNECTIVITY_WIFI_AWARE_L2MESSAGE_SEND_HOST_NETWORK_FRAME_FAILURE" - "CONNECTIVITY_WIFI_AWARE_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_AWARE_START_ADVERTISING_FAILURE" - "CONNECTIVITY_WIFI_AWARE_START_DISCOVERY_FAILURE" - "CONNECTIVITY_WIFI_AWARE_UPDATE_PUBLISH_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_GET_NETWORK_INTERFACES_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_INCONSISTENT_HOSTED_WIFI_BAND" - "CONNECTIVITY_WIFI_DIRECT_INVALID_CREDENTIAL" - "CONNECTIVITY_WIFI_DIRECT_P2P_CHANNEL_INITIALIZE_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_P2P_CONNECTION_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_P2P_GROUP_CREATION_FAILURE" - "CONNECTIVITY_WIFI_DIRECT_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_CLIENT_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_GET_NETWORK_INTERFACES_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_INCONSISTENT_HOSTED_WIFI_BAND" - "CONNECTIVITY_WIFI_HOTSPOT_INVALID_CREDENTIAL" - "CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_LOHS_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_P2P_CHANNEL_INITIALIZE_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_P2P_GROUP_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_SERVER_SOCKET_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_SOFT_AP_CREATION_FAILURE" - "CONNECTIVITY_WIFI_HOTSPOT_SPECIFIER_FAILURE" - "CONNECTIVITY_WIFI_LAN_INVALID_CREDENTIAL" - "CONNECTIVITY_WIFI_LAN_IP_ADDRESS_ERROR" - "CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_IO_EXCEPTION" - "CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_TIMEOUT" - "CONNECTIVITY_WIFI_LAN_START_ADVERTISING_FAILURE" - "CONNECTIVITY_WIFI_LAN_START_DISCOVERY_FAILURE" - "DCT_ERROR_BLE_ADV_FAILED" - "DCT_ERROR_BLE_DISABLED" - "DCT_ERROR_BLE_SCAN_FAILED" - "DCT_ERROR_CAPABILITY_MISMATCH" - "DCT_ERROR_CONTROL_MESSAGE_EXCHANGE" - "DCT_ERROR_ESTABLISHED_CONNECTION_LOST" - "DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE" - "DCT_ERROR_HTTP_SERVER_CLOSED" - "DCT_ERROR_INITIAL_TLS_SPAKE" - "DCT_ERROR_KEEPALIVE_TIMEOUT" - "DCT_ERROR_L2CAP_CLIENT_FAILED" - "DCT_ERROR_L2CAP_SERVER_FAILED" - "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" - "DETAIL_SUCCESS" - "DETAIL_UNKNOWN" - "DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS" - "DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED" - "DEVICE_STATE_LOCATION_DISABLED" - "DEVICE_STATE_RADIO_DISABLING_FAILURE" - "DEVICE_STATE_RADIO_ENABLING_FAILURE" - "IO_ENDPOINT_IO_ERROR_ON_BLE" - "IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP" - "IO_ENDPOINT_IO_ERROR_ON_BT" - "IO_ENDPOINT_IO_ERROR_ON_LAN" - "IO_ENDPOINT_IO_ERROR_ON_NFC" - "IO_ENDPOINT_IO_ERROR_ON_USB" - "IO_ENDPOINT_IO_ERROR_ON_WEB_RTC" - "IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE" - "IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT" - "IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT" - "IO_FILE_OPENING_ERROR" - "IO_FILE_READING_ERROR" - "IO_FILE_WRITING_ERROR" - "IO_FOLDER_CREATION_ERROR" - "IO_STREAM_CREATE_PIPE_FAILURE" - "MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP" - "MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS" - "MEDIUM_UNAVAILABLE_AWDL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED" - "MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT" - "MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING" - "MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_LAN_BLOCKED" - "MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE" - "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT" - "MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G" - "MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_POOR_SIGNAL" - "MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION" - "MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE" - "MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT" - "MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE" - "MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW" - "MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS" - "MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET" - "MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE" - "MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE" - "MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE" - "MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL" - "MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE" - "MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM" - "MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE" - "MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE" - "MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL" - "MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL" - "MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION" - "MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL" - "MISCELLEANEOUS_WORK_SOURCE_NULL" - "NEARBY_AUTHENTICATION_FAILURE" - "NEARBY_AWDL_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_AWDL_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD" - "NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR" - "NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION" - "NEARBY_BLE_GATT_NULL_CALLBACK" - "NEARBY_BLE_INVALID_PCP_OPTIONS" - "NEARBY_BLE_OPERATION_REGISTERED_FAILED" - "NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS" - "NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT" - "NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN" - "NEARBY_BLUETOOTH_RECONNECT_MAC_NULL" - "NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_BT_MULTIPLEX_SOCKET_DISABLED" - "NEARBY_BT_NULL_CALLBACK" - "NEARBY_BT_OPERATION_REGISTERED_FAILED" - "NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE" - "NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER" - "NEARBY_CONNECTION_LISTENER_NULL" - "NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG" - "NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE" - "NEARBY_ENCRYPTION_FAILURE" - "NEARBY_ENDPOINT_ID_MISMATCH" - "NEARBY_GENERIC_CONNECTION_CLOSED" - "NEARBY_GENERIC_ENDPOINT_UNENCRYPTED" - "NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE" - "NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE" - "NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL" - "NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL" - "NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR" - "NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR" - "NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR" - "NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR" - "NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE" - "NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL" - "NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO" - "NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_L2CAP_NULL_CALLBACK" - "NEARBY_L2CAP_OPERATION_REGISTERED_FAILED" - "NEARBY_L2CAP_PSM_NOT_POSITIVE" - "NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED" - "NEARBY_LAN_NULL_CALLBACK" - "NEARBY_LAN_OPERATION_REGISTERED_FAILED" - "NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL" - "NEARBY_LAN_RECONNECT_IP_NULL" - "NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE" - "NEARBY_LAN_VIRTUAL_SOCKET_NULL" - "NEARBY_LOCAL_CLIENT_STATE_WRONG" - "NEARBY_NEED_METHOD_OVERRIDE" - "NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_NFC_INVALID_PCP_OPTIONS" - "NEARBY_NFC_NULL_CALLBACK" - "NEARBY_NOT_ADVERTISING_OR_LISTENING" - "NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD" - "NEARBY_SETUP_STRATEGY_FAILURE" - "NEARBY_TX_ADVERTISEMENT_NULL" - "NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM" - "NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_USB_INVALID_PCP_OPTIONS" - "NEARBY_USB_NULL_CALLBACK" - "NEARBY_UWB_INVALID_PCP_OPTIONS" - "NEARBY_WEB_RTC_CONNECTION_FLOW_NULL" - "NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_WEB_RTC_INVALID_PCP_OPTIONS" - "NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND" - "NEARBY_WEB_RTC_NULL_CALLBACK" - "NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED" - "NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL" - "NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS" - "NEARBY_WIFI_AWARE_NULL_CALLBACK" - "NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL" - "NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS" - "NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING" - "NEARBY_WIFI_DIRECT_NULL_CALLBACK" - "NEARBY_WIFI_DIRECT_NULL_PASSWORD" - "NEARBY_WIFI_DIRECT_NULL_SSID" - "NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G" - "NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G" - "NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL" - "NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL" - "NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE" - "NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS" - "NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING" - "NEARBY_WIFI_HOTSPOT_NULL_CALLBACK" - "NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G" - "NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G" - "NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL" - "NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL" - "NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED" - "NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE" - "NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS" - "NEARBY_WIFI_LAN_IP_ADDRESS_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OperationResultCode_entries[] = { - { {OperationResultCode_names + 0, 36}, 2034 }, - { {OperationResultCode_names + 36, 34}, 2030 }, - { {OperationResultCode_names + 70, 33}, 2036 }, - { {OperationResultCode_names + 103, 33}, 2037 }, - { {OperationResultCode_names + 136, 32}, 2018 }, - { {OperationResultCode_names + 168, 32}, 2023 }, - { {OperationResultCode_names + 200, 23}, 2029 }, - { {OperationResultCode_names + 223, 38}, 2019 }, - { {OperationResultCode_names + 261, 38}, 2024 }, - { {OperationResultCode_names + 299, 47}, 524 }, - { {OperationResultCode_names + 346, 45}, 519 }, - { {OperationResultCode_names + 391, 51}, 525 }, - { {OperationResultCode_names + 442, 50}, 504 }, - { {OperationResultCode_names + 492, 49}, 505 }, - { {OperationResultCode_names + 541, 46}, 515 }, - { {OperationResultCode_names + 587, 52}, 506 }, - { {OperationResultCode_names + 639, 50}, 507 }, - { {OperationResultCode_names + 689, 50}, 508 }, - { {OperationResultCode_names + 739, 46}, 514 }, - { {OperationResultCode_names + 785, 50}, 509 }, - { {OperationResultCode_names + 835, 54}, 513 }, - { {OperationResultCode_names + 889, 57}, 510 }, - { {OperationResultCode_names + 946, 58}, 511 }, - { {OperationResultCode_names + 1004, 59}, 512 }, - { {OperationResultCode_names + 1063, 40}, 501 }, - { {OperationResultCode_names + 1103, 36}, 522 }, - { {OperationResultCode_names + 1139, 41}, 502 }, - { {OperationResultCode_names + 1180, 37}, 523 }, - { {OperationResultCode_names + 1217, 44}, 500 }, - { {OperationResultCode_names + 1261, 46}, 503 }, - { {OperationResultCode_names + 1307, 50}, 520 }, - { {OperationResultCode_names + 1357, 53}, 516 }, - { {OperationResultCode_names + 1410, 54}, 517 }, - { {OperationResultCode_names + 1464, 55}, 518 }, - { {OperationResultCode_names + 1519, 51}, 521 }, - { {OperationResultCode_names + 1570, 34}, 2035 }, - { {OperationResultCode_names + 1604, 50}, 2038 }, - { {OperationResultCode_names + 1654, 49}, 2002 }, - { {OperationResultCode_names + 1703, 48}, 2004 }, - { {OperationResultCode_names + 1751, 51}, 2003 }, - { {OperationResultCode_names + 1802, 49}, 2005 }, - { {OperationResultCode_names + 1851, 49}, 2006 }, - { {OperationResultCode_names + 1900, 49}, 2011 }, - { {OperationResultCode_names + 1949, 53}, 2007 }, - { {OperationResultCode_names + 2002, 56}, 2008 }, - { {OperationResultCode_names + 2058, 57}, 2010 }, - { {OperationResultCode_names + 2115, 58}, 2009 }, - { {OperationResultCode_names + 2173, 46}, 2012 }, - { {OperationResultCode_names + 2219, 47}, 2015 }, - { {OperationResultCode_names + 2266, 47}, 2013 }, - { {OperationResultCode_names + 2313, 48}, 2014 }, - { {OperationResultCode_names + 2361, 58}, 2031 }, - { {OperationResultCode_names + 2419, 32}, 2020 }, - { {OperationResultCode_names + 2451, 32}, 2025 }, - { {OperationResultCode_names + 2483, 28}, 2032 }, - { {OperationResultCode_names + 2511, 25}, 2028 }, - { {OperationResultCode_names + 2536, 29}, 2017 }, - { {OperationResultCode_names + 2565, 43}, 2016 }, - { {OperationResultCode_names + 2608, 32}, 2022 }, - { {OperationResultCode_names + 2640, 32}, 2027 }, - { {OperationResultCode_names + 2672, 63}, 2000 }, - { {OperationResultCode_names + 2735, 59}, 2001 }, - { {OperationResultCode_names + 2794, 37}, 2021 }, - { {OperationResultCode_names + 2831, 37}, 2026 }, - { {OperationResultCode_names + 2868, 35}, 2033 }, - { {OperationResultCode_names + 2903, 32}, 3599 }, - { {OperationResultCode_names + 2935, 48}, 3605 }, - { {OperationResultCode_names + 2983, 36}, 3604 }, - { {OperationResultCode_names + 3019, 43}, 3602 }, - { {OperationResultCode_names + 3062, 41}, 3603 }, - { {OperationResultCode_names + 3103, 47}, 3585 }, - { {OperationResultCode_names + 3150, 47}, 3502 }, - { {OperationResultCode_names + 3197, 47}, 3513 }, - { {OperationResultCode_names + 3244, 29}, 3591 }, - { {OperationResultCode_names + 3273, 47}, 3539 }, - { {OperationResultCode_names + 3320, 42}, 3586 }, - { {OperationResultCode_names + 3362, 42}, 3584 }, - { {OperationResultCode_names + 3404, 47}, 3598 }, - { {OperationResultCode_names + 3451, 44}, 3501 }, - { {OperationResultCode_names + 3495, 41}, 3518 }, - { {OperationResultCode_names + 3536, 35}, 3590 }, - { {OperationResultCode_names + 3571, 48}, 3587 }, - { {OperationResultCode_names + 3619, 46}, 3504 }, - { {OperationResultCode_names + 3665, 46}, 3573 }, - { {OperationResultCode_names + 3711, 48}, 3572 }, - { {OperationResultCode_names + 3759, 44}, 3574 }, - { {OperationResultCode_names + 3803, 46}, 3541 }, - { {OperationResultCode_names + 3849, 65}, 3555 }, - { {OperationResultCode_names + 3914, 43}, 3571 }, - { {OperationResultCode_names + 3957, 44}, 3570 }, - { {OperationResultCode_names + 4001, 37}, 3606 }, - { {OperationResultCode_names + 4038, 36}, 3559 }, - { {OperationResultCode_names + 4074, 42}, 3560 }, - { {OperationResultCode_names + 4116, 35}, 3561 }, - { {OperationResultCode_names + 4151, 36}, 3563 }, - { {OperationResultCode_names + 4187, 36}, 3567 }, - { {OperationResultCode_names + 4223, 47}, 3569 }, - { {OperationResultCode_names + 4270, 36}, 3568 }, - { {OperationResultCode_names + 4306, 40}, 3562 }, - { {OperationResultCode_names + 4346, 43}, 3566 }, - { {OperationResultCode_names + 4389, 44}, 3564 }, - { {OperationResultCode_names + 4433, 45}, 3565 }, - { {OperationResultCode_names + 4478, 37}, 3558 }, - { {OperationResultCode_names + 4515, 37}, 3538 }, - { {OperationResultCode_names + 4552, 39}, 3553 }, - { {OperationResultCode_names + 4591, 59}, 3551 }, - { {OperationResultCode_names + 4650, 45}, 3550 }, - { {OperationResultCode_names + 4695, 49}, 3600 }, - { {OperationResultCode_names + 4744, 39}, 3525 }, - { {OperationResultCode_names + 4783, 49}, 3503 }, - { {OperationResultCode_names + 4832, 57}, 3556 }, - { {OperationResultCode_names + 4889, 42}, 3526 }, - { {OperationResultCode_names + 4931, 49}, 3540 }, - { {OperationResultCode_names + 4980, 68}, 3554 }, - { {OperationResultCode_names + 5048, 47}, 3505 }, - { {OperationResultCode_names + 5095, 47}, 3531 }, - { {OperationResultCode_names + 5142, 38}, 3597 }, - { {OperationResultCode_names + 5180, 47}, 3542 }, - { {OperationResultCode_names + 5227, 28}, 3529 }, - { {OperationResultCode_names + 5255, 30}, 3592 }, - { {OperationResultCode_names + 5285, 38}, 3601 }, - { {OperationResultCode_names + 5323, 47}, 3506 }, - { {OperationResultCode_names + 5370, 47}, 3547 }, - { {OperationResultCode_names + 5417, 40}, 3593 }, - { {OperationResultCode_names + 5457, 47}, 3511 }, - { {OperationResultCode_names + 5504, 40}, 3596 }, - { {OperationResultCode_names + 5544, 51}, 3507 }, - { {OperationResultCode_names + 5595, 47}, 3512 }, - { {OperationResultCode_names + 5642, 39}, 3523 }, - { {OperationResultCode_names + 5681, 51}, 3543 }, - { {OperationResultCode_names + 5732, 43}, 3557 }, - { {OperationResultCode_names + 5775, 47}, 3577 }, - { {OperationResultCode_names + 5822, 47}, 3579 }, - { {OperationResultCode_names + 5869, 49}, 3576 }, - { {OperationResultCode_names + 5918, 45}, 3578 }, - { {OperationResultCode_names + 5963, 38}, 3500 }, - { {OperationResultCode_names + 6001, 54}, 3508 }, - { {OperationResultCode_names + 6055, 44}, 3552 }, - { {OperationResultCode_names + 6099, 53}, 3608 }, - { {OperationResultCode_names + 6152, 50}, 3609 }, - { {OperationResultCode_names + 6202, 38}, 3607 }, - { {OperationResultCode_names + 6240, 53}, 3515 }, - { {OperationResultCode_names + 6293, 51}, 3514 }, - { {OperationResultCode_names + 6344, 42}, 3522 }, - { {OperationResultCode_names + 6386, 43}, 3610 }, - { {OperationResultCode_names + 6429, 62}, 3527 }, - { {OperationResultCode_names + 6491, 65}, 3528 }, - { {OperationResultCode_names + 6556, 54}, 3544 }, - { {OperationResultCode_names + 6610, 49}, 3589 }, - { {OperationResultCode_names + 6659, 47}, 3595 }, - { {OperationResultCode_names + 6706, 46}, 3549 }, - { {OperationResultCode_names + 6752, 55}, 3510 }, - { {OperationResultCode_names + 6807, 55}, 3532 }, - { {OperationResultCode_names + 6862, 54}, 3516 }, - { {OperationResultCode_names + 6916, 43}, 3520 }, - { {OperationResultCode_names + 6959, 55}, 3535 }, - { {OperationResultCode_names + 7014, 47}, 3575 }, - { {OperationResultCode_names + 7061, 51}, 3537 }, - { {OperationResultCode_names + 7112, 55}, 3546 }, - { {OperationResultCode_names + 7167, 56}, 3509 }, - { {OperationResultCode_names + 7223, 56}, 3533 }, - { {OperationResultCode_names + 7279, 55}, 3517 }, - { {OperationResultCode_names + 7334, 44}, 3521 }, - { {OperationResultCode_names + 7378, 55}, 3581 }, - { {OperationResultCode_names + 7433, 47}, 3530 }, - { {OperationResultCode_names + 7480, 56}, 3534 }, - { {OperationResultCode_names + 7536, 52}, 3536 }, - { {OperationResultCode_names + 7588, 56}, 3545 }, - { {OperationResultCode_names + 7644, 50}, 3548 }, - { {OperationResultCode_names + 7694, 43}, 3580 }, - { {OperationResultCode_names + 7737, 40}, 3519 }, - { {OperationResultCode_names + 7777, 38}, 3524 }, - { {OperationResultCode_names + 7815, 49}, 3583 }, - { {OperationResultCode_names + 7864, 44}, 3582 }, - { {OperationResultCode_names + 7908, 47}, 3588 }, - { {OperationResultCode_names + 7955, 45}, 3594 }, - { {OperationResultCode_names + 8000, 24}, 5001 }, - { {OperationResultCode_names + 8024, 22}, 5000 }, - { {OperationResultCode_names + 8046, 25}, 5002 }, - { {OperationResultCode_names + 8071, 29}, 5012 }, - { {OperationResultCode_names + 8100, 34}, 5011 }, - { {OperationResultCode_names + 8134, 37}, 5020 }, - { {OperationResultCode_names + 8171, 39}, 5013 }, - { {OperationResultCode_names + 8210, 28}, 5024 }, - { {OperationResultCode_names + 8238, 27}, 5007 }, - { {OperationResultCode_names + 8265, 27}, 5019 }, - { {OperationResultCode_names + 8292, 29}, 5004 }, - { {OperationResultCode_names + 8321, 29}, 5003 }, - { {OperationResultCode_names + 8350, 32}, 5005 }, - { {OperationResultCode_names + 8382, 31}, 5006 }, - { {OperationResultCode_names + 8413, 24}, 5009 }, - { {OperationResultCode_names + 8437, 25}, 5010 }, - { {OperationResultCode_names + 8462, 27}, 5022 }, - { {OperationResultCode_names + 8489, 30}, 5008 }, - { {OperationResultCode_names + 8519, 30}, 5023 }, - { {OperationResultCode_names + 8549, 42}, 5018 }, - { {OperationResultCode_names + 8591, 24}, 5021 }, - { {OperationResultCode_names + 8615, 34}, 5016 }, - { {OperationResultCode_names + 8649, 23}, 5014 }, - { {OperationResultCode_names + 8672, 27}, 5015 }, - { {OperationResultCode_names + 8699, 34}, 5017 }, - { {OperationResultCode_names + 8733, 14}, 1 }, - { {OperationResultCode_names + 8747, 14}, 0 }, - { {OperationResultCode_names + 8761, 46}, 1000 }, - { {OperationResultCode_names + 8807, 39}, 1001 }, - { {OperationResultCode_names + 8846, 30}, 1002 }, - { {OperationResultCode_names + 8876, 36}, 1003 }, - { {OperationResultCode_names + 8912, 35}, 1004 }, - { {OperationResultCode_names + 8947, 27}, 3005 }, - { {OperationResultCode_names + 8974, 33}, 3006 }, - { {OperationResultCode_names + 9007, 26}, 3007 }, - { {OperationResultCode_names + 9033, 27}, 3009 }, - { {OperationResultCode_names + 9060, 27}, 3013 }, - { {OperationResultCode_names + 9087, 27}, 3014 }, - { {OperationResultCode_names + 9114, 31}, 3008 }, - { {OperationResultCode_names + 9145, 34}, 3012 }, - { {OperationResultCode_names + 9179, 35}, 3010 }, - { {OperationResultCode_names + 9214, 36}, 3011 }, - { {OperationResultCode_names + 9250, 21}, 3000 }, - { {OperationResultCode_names + 9271, 21}, 3001 }, - { {OperationResultCode_names + 9292, 21}, 3002 }, - { {OperationResultCode_names + 9313, 24}, 3003 }, - { {OperationResultCode_names + 9337, 29}, 3004 }, - { {OperationResultCode_names + 9366, 51}, 1534 }, - { {OperationResultCode_names + 9417, 60}, 1535 }, - { {OperationResultCode_names + 9477, 37}, 1547 }, - { {OperationResultCode_names + 9514, 47}, 1515 }, - { {OperationResultCode_names + 9561, 36}, 1505 }, - { {OperationResultCode_names + 9597, 42}, 1507 }, - { {OperationResultCode_names + 9639, 40}, 1546 }, - { {OperationResultCode_names + 9679, 46}, 1516 }, - { {OperationResultCode_names + 9725, 45}, 1501 }, - { {OperationResultCode_names + 9770, 45}, 1541 }, - { {OperationResultCode_names + 9815, 38}, 1506 }, - { {OperationResultCode_names + 9853, 30}, 1544 }, - { {OperationResultCode_names + 9883, 47}, 1517 }, - { {OperationResultCode_names + 9930, 36}, 1513 }, - { {OperationResultCode_names + 9966, 54}, 1532 }, - { {OperationResultCode_names + 10020, 49}, 1503 }, - { {OperationResultCode_names + 10069, 52}, 1504 }, - { {OperationResultCode_names + 10121, 37}, 1543 }, - { {OperationResultCode_names + 10158, 47}, 1518 }, - { {OperationResultCode_names + 10205, 36}, 1512 }, - { {OperationResultCode_names + 10241, 36}, 1542 }, - { {OperationResultCode_names + 10277, 30}, 1545 }, - { {OperationResultCode_names + 10307, 60}, 1536 }, - { {OperationResultCode_names + 10367, 43}, 1533 }, - { {OperationResultCode_names + 10410, 38}, 1502 }, - { {OperationResultCode_names + 10448, 39}, 1539 }, - { {OperationResultCode_names + 10487, 37}, 1540 }, - { {OperationResultCode_names + 10524, 41}, 1537 }, - { {OperationResultCode_names + 10565, 55}, 1526 }, - { {OperationResultCode_names + 10620, 54}, 1530 }, - { {OperationResultCode_names + 10674, 57}, 1527 }, - { {OperationResultCode_names + 10731, 55}, 1529 }, - { {OperationResultCode_names + 10786, 55}, 1531 }, - { {OperationResultCode_names + 10841, 59}, 1528 }, - { {OperationResultCode_names + 10900, 47}, 1519 }, - { {OperationResultCode_names + 10947, 36}, 1514 }, - { {OperationResultCode_names + 10983, 51}, 1520 }, - { {OperationResultCode_names + 11034, 40}, 1508 }, - { {OperationResultCode_names + 11074, 38}, 1538 }, - { {OperationResultCode_names + 11112, 54}, 1521 }, - { {OperationResultCode_names + 11166, 43}, 1509 }, - { {OperationResultCode_names + 11209, 52}, 1500 }, - { {OperationResultCode_names + 11261, 55}, 1523 }, - { {OperationResultCode_names + 11316, 44}, 1511 }, - { {OperationResultCode_names + 11360, 57}, 1525 }, - { {OperationResultCode_names + 11417, 56}, 1522 }, - { {OperationResultCode_names + 11473, 45}, 1510 }, - { {OperationResultCode_names + 11518, 58}, 1524 }, - { {OperationResultCode_names + 11576, 38}, 2503 }, - { {OperationResultCode_names + 11614, 51}, 2514 }, - { {OperationResultCode_names + 11665, 41}, 2500 }, - { {OperationResultCode_names + 11706, 59}, 2510 }, - { {OperationResultCode_names + 11765, 37}, 2505 }, - { {OperationResultCode_names + 11802, 40}, 2504 }, - { {OperationResultCode_names + 11842, 33}, 2501 }, - { {OperationResultCode_names + 11875, 48}, 2513 }, - { {OperationResultCode_names + 11923, 52}, 2511 }, - { {OperationResultCode_names + 11975, 38}, 2515 }, - { {OperationResultCode_names + 12013, 55}, 2512 }, - { {OperationResultCode_names + 12068, 45}, 2506 }, - { {OperationResultCode_names + 12113, 46}, 2507 }, - { {OperationResultCode_names + 12159, 56}, 2502 }, - { {OperationResultCode_names + 12215, 47}, 2509 }, - { {OperationResultCode_names + 12262, 43}, 2508 }, - { {OperationResultCode_names + 12305, 31}, 2516 }, - { {OperationResultCode_names + 12336, 29}, 4568 }, - { {OperationResultCode_names + 12365, 38}, 4611 }, - { {OperationResultCode_names + 12403, 45}, 4612 }, - { {OperationResultCode_names + 12448, 60}, 4609 }, - { {OperationResultCode_names + 12508, 45}, 4500 }, - { {OperationResultCode_names + 12553, 37}, 4571 }, - { {OperationResultCode_names + 12590, 44}, 4504 }, - { {OperationResultCode_names + 12634, 42}, 4572 }, - { {OperationResultCode_names + 12676, 49}, 4515 }, - { {OperationResultCode_names + 12725, 29}, 4518 }, - { {OperationResultCode_names + 12754, 30}, 4579 }, - { {OperationResultCode_names + 12784, 38}, 4536 }, - { {OperationResultCode_names + 12822, 43}, 4570 }, - { {OperationResultCode_names + 12865, 36}, 4578 }, - { {OperationResultCode_names + 12901, 48}, 4501 }, - { {OperationResultCode_names + 12949, 44}, 4585 }, - { {OperationResultCode_names + 12993, 35}, 4592 }, - { {OperationResultCode_names + 13028, 43}, 4506 }, - { {OperationResultCode_names + 13071, 35}, 4530 }, - { {OperationResultCode_names + 13106, 23}, 4520 }, - { {OperationResultCode_names + 13129, 37}, 4538 }, - { {OperationResultCode_names + 13166, 41}, 4563 }, - { {OperationResultCode_names + 13207, 37}, 4602 }, - { {OperationResultCode_names + 13244, 31}, 4610 }, - { {OperationResultCode_names + 13275, 38}, 4606 }, - { {OperationResultCode_names + 13313, 37}, 4591 }, - { {OperationResultCode_names + 13350, 25}, 4567 }, - { {OperationResultCode_names + 13375, 27}, 4605 }, - { {OperationResultCode_names + 13402, 32}, 4503 }, - { {OperationResultCode_names + 13434, 35}, 4514 }, - { {OperationResultCode_names + 13469, 48}, 4588 }, - { {OperationResultCode_names + 13517, 45}, 4552 }, - { {OperationResultCode_names + 13562, 40}, 4532 }, - { {OperationResultCode_names + 13602, 40}, 4535 }, - { {OperationResultCode_names + 13642, 48}, 4547 }, - { {OperationResultCode_names + 13690, 60}, 4556 }, - { {OperationResultCode_names + 13750, 56}, 4558 }, - { {OperationResultCode_names + 13806, 60}, 4557 }, - { {OperationResultCode_names + 13866, 56}, 4553 }, - { {OperationResultCode_names + 13922, 52}, 4555 }, - { {OperationResultCode_names + 13974, 56}, 4554 }, - { {OperationResultCode_names + 14030, 43}, 4559 }, - { {OperationResultCode_names + 14073, 43}, 4560 }, - { {OperationResultCode_names + 14116, 37}, 4561 }, - { {OperationResultCode_names + 14153, 41}, 4562 }, - { {OperationResultCode_names + 14194, 49}, 4586 }, - { {OperationResultCode_names + 14243, 46}, 4505 }, - { {OperationResultCode_names + 14289, 26}, 4519 }, - { {OperationResultCode_names + 14315, 40}, 4537 }, - { {OperationResultCode_names + 14355, 29}, 4566 }, - { {OperationResultCode_names + 14384, 44}, 4507 }, - { {OperationResultCode_names + 14428, 36}, 4531 }, - { {OperationResultCode_names + 14464, 24}, 4525 }, - { {OperationResultCode_names + 14488, 38}, 4539 }, - { {OperationResultCode_names + 14526, 41}, 4593 }, - { {OperationResultCode_names + 14567, 28}, 4594 }, - { {OperationResultCode_names + 14595, 42}, 4564 }, - { {OperationResultCode_names + 14637, 30}, 4569 }, - { {OperationResultCode_names + 14667, 31}, 4607 }, - { {OperationResultCode_names + 14698, 27}, 4587 }, - { {OperationResultCode_names + 14725, 37}, 4573 }, - { {OperationResultCode_names + 14762, 44}, 4508 }, - { {OperationResultCode_names + 14806, 30}, 4577 }, - { {OperationResultCode_names + 14836, 24}, 4522 }, - { {OperationResultCode_names + 14860, 35}, 4601 }, - { {OperationResultCode_names + 14895, 56}, 4608 }, - { {OperationResultCode_names + 14951, 29}, 4603 }, - { {OperationResultCode_names + 14980, 28}, 4604 }, - { {OperationResultCode_names + 15008, 35}, 4590 }, - { {OperationResultCode_names + 15043, 37}, 4576 }, - { {OperationResultCode_names + 15080, 44}, 4513 }, - { {OperationResultCode_names + 15124, 30}, 4582 }, - { {OperationResultCode_names + 15154, 24}, 4521 }, - { {OperationResultCode_names + 15178, 30}, 4583 }, - { {OperationResultCode_names + 15208, 35}, 4502 }, - { {OperationResultCode_names + 15243, 48}, 4512 }, - { {OperationResultCode_names + 15291, 34}, 4584 }, - { {OperationResultCode_names + 15325, 38}, 4589 }, - { {OperationResultCode_names + 15363, 28}, 4524 }, - { {OperationResultCode_names + 15391, 42}, 4540 }, - { {OperationResultCode_names + 15433, 37}, 4599 }, - { {OperationResultCode_names + 15470, 44}, 4575 }, - { {OperationResultCode_names + 15514, 51}, 4509 }, - { {OperationResultCode_names + 15565, 37}, 4581 }, - { {OperationResultCode_names + 15602, 31}, 4523 }, - { {OperationResultCode_names + 15633, 45}, 4541 }, - { {OperationResultCode_names + 15678, 42}, 4600 }, - { {OperationResultCode_names + 15720, 52}, 4511 }, - { {OperationResultCode_names + 15772, 39}, 4516 }, - { {OperationResultCode_names + 15811, 41}, 4533 }, - { {OperationResultCode_names + 15852, 32}, 4527 }, - { {OperationResultCode_names + 15884, 32}, 4529 }, - { {OperationResultCode_names + 15916, 28}, 4528 }, - { {OperationResultCode_names + 15944, 46}, 4546 }, - { {OperationResultCode_names + 15990, 48}, 4549 }, - { {OperationResultCode_names + 16038, 48}, 4551 }, - { {OperationResultCode_names + 16086, 51}, 4596 }, - { {OperationResultCode_names + 16137, 43}, 4595 }, - { {OperationResultCode_names + 16180, 54}, 4545 }, - { {OperationResultCode_names + 16234, 54}, 4542 }, - { {OperationResultCode_names + 16288, 53}, 4510 }, - { {OperationResultCode_names + 16341, 40}, 4517 }, - { {OperationResultCode_names + 16381, 52}, 4544 }, - { {OperationResultCode_names + 16433, 44}, 4534 }, - { {OperationResultCode_names + 16477, 33}, 4526 }, - { {OperationResultCode_names + 16510, 49}, 4548 }, - { {OperationResultCode_names + 16559, 49}, 4550 }, - { {OperationResultCode_names + 16608, 52}, 4598 }, - { {OperationResultCode_names + 16660, 44}, 4597 }, - { {OperationResultCode_names + 16704, 55}, 4543 }, - { {OperationResultCode_names + 16759, 42}, 4574 }, - { {OperationResultCode_names + 16801, 35}, 4580 }, - { {OperationResultCode_names + 16836, 32}, 4565 }, +static const ::google::protobuf::internal::EnumEntry OperationResultCode_entries[] = { + {{&OperationResultCode_names[0], 36}, 2034}, + {{&OperationResultCode_names[36], 34}, 2030}, + {{&OperationResultCode_names[70], 33}, 2036}, + {{&OperationResultCode_names[103], 33}, 2037}, + {{&OperationResultCode_names[136], 32}, 2018}, + {{&OperationResultCode_names[168], 32}, 2023}, + {{&OperationResultCode_names[200], 23}, 2029}, + {{&OperationResultCode_names[223], 38}, 2019}, + {{&OperationResultCode_names[261], 38}, 2024}, + {{&OperationResultCode_names[299], 47}, 524}, + {{&OperationResultCode_names[346], 45}, 519}, + {{&OperationResultCode_names[391], 51}, 525}, + {{&OperationResultCode_names[442], 50}, 504}, + {{&OperationResultCode_names[492], 49}, 505}, + {{&OperationResultCode_names[541], 46}, 515}, + {{&OperationResultCode_names[587], 52}, 506}, + {{&OperationResultCode_names[639], 50}, 507}, + {{&OperationResultCode_names[689], 50}, 508}, + {{&OperationResultCode_names[739], 46}, 514}, + {{&OperationResultCode_names[785], 50}, 509}, + {{&OperationResultCode_names[835], 54}, 513}, + {{&OperationResultCode_names[889], 57}, 510}, + {{&OperationResultCode_names[946], 58}, 511}, + {{&OperationResultCode_names[1004], 59}, 512}, + {{&OperationResultCode_names[1063], 40}, 501}, + {{&OperationResultCode_names[1103], 36}, 522}, + {{&OperationResultCode_names[1139], 41}, 502}, + {{&OperationResultCode_names[1180], 37}, 523}, + {{&OperationResultCode_names[1217], 44}, 500}, + {{&OperationResultCode_names[1261], 46}, 503}, + {{&OperationResultCode_names[1307], 50}, 520}, + {{&OperationResultCode_names[1357], 53}, 516}, + {{&OperationResultCode_names[1410], 54}, 517}, + {{&OperationResultCode_names[1464], 55}, 518}, + {{&OperationResultCode_names[1519], 51}, 521}, + {{&OperationResultCode_names[1570], 34}, 2035}, + {{&OperationResultCode_names[1604], 50}, 2038}, + {{&OperationResultCode_names[1654], 49}, 2002}, + {{&OperationResultCode_names[1703], 48}, 2004}, + {{&OperationResultCode_names[1751], 51}, 2003}, + {{&OperationResultCode_names[1802], 49}, 2005}, + {{&OperationResultCode_names[1851], 49}, 2006}, + {{&OperationResultCode_names[1900], 49}, 2011}, + {{&OperationResultCode_names[1949], 53}, 2007}, + {{&OperationResultCode_names[2002], 56}, 2008}, + {{&OperationResultCode_names[2058], 57}, 2010}, + {{&OperationResultCode_names[2115], 58}, 2009}, + {{&OperationResultCode_names[2173], 46}, 2012}, + {{&OperationResultCode_names[2219], 47}, 2015}, + {{&OperationResultCode_names[2266], 47}, 2013}, + {{&OperationResultCode_names[2313], 48}, 2014}, + {{&OperationResultCode_names[2361], 58}, 2031}, + {{&OperationResultCode_names[2419], 32}, 2020}, + {{&OperationResultCode_names[2451], 32}, 2025}, + {{&OperationResultCode_names[2483], 28}, 2032}, + {{&OperationResultCode_names[2511], 25}, 2028}, + {{&OperationResultCode_names[2536], 29}, 2017}, + {{&OperationResultCode_names[2565], 43}, 2016}, + {{&OperationResultCode_names[2608], 32}, 2022}, + {{&OperationResultCode_names[2640], 32}, 2027}, + {{&OperationResultCode_names[2672], 63}, 2000}, + {{&OperationResultCode_names[2735], 59}, 2001}, + {{&OperationResultCode_names[2794], 37}, 2021}, + {{&OperationResultCode_names[2831], 37}, 2026}, + {{&OperationResultCode_names[2868], 35}, 2033}, + {{&OperationResultCode_names[2903], 32}, 3599}, + {{&OperationResultCode_names[2935], 48}, 3605}, + {{&OperationResultCode_names[2983], 36}, 3604}, + {{&OperationResultCode_names[3019], 43}, 3602}, + {{&OperationResultCode_names[3062], 41}, 3603}, + {{&OperationResultCode_names[3103], 47}, 3585}, + {{&OperationResultCode_names[3150], 47}, 3502}, + {{&OperationResultCode_names[3197], 47}, 3513}, + {{&OperationResultCode_names[3244], 29}, 3591}, + {{&OperationResultCode_names[3273], 47}, 3539}, + {{&OperationResultCode_names[3320], 42}, 3586}, + {{&OperationResultCode_names[3362], 42}, 3584}, + {{&OperationResultCode_names[3404], 47}, 3598}, + {{&OperationResultCode_names[3451], 44}, 3501}, + {{&OperationResultCode_names[3495], 41}, 3518}, + {{&OperationResultCode_names[3536], 35}, 3590}, + {{&OperationResultCode_names[3571], 48}, 3587}, + {{&OperationResultCode_names[3619], 46}, 3504}, + {{&OperationResultCode_names[3665], 46}, 3573}, + {{&OperationResultCode_names[3711], 48}, 3572}, + {{&OperationResultCode_names[3759], 44}, 3574}, + {{&OperationResultCode_names[3803], 46}, 3541}, + {{&OperationResultCode_names[3849], 65}, 3555}, + {{&OperationResultCode_names[3914], 43}, 3571}, + {{&OperationResultCode_names[3957], 44}, 3570}, + {{&OperationResultCode_names[4001], 37}, 3606}, + {{&OperationResultCode_names[4038], 36}, 3559}, + {{&OperationResultCode_names[4074], 42}, 3560}, + {{&OperationResultCode_names[4116], 35}, 3561}, + {{&OperationResultCode_names[4151], 36}, 3563}, + {{&OperationResultCode_names[4187], 36}, 3567}, + {{&OperationResultCode_names[4223], 47}, 3569}, + {{&OperationResultCode_names[4270], 36}, 3568}, + {{&OperationResultCode_names[4306], 40}, 3562}, + {{&OperationResultCode_names[4346], 43}, 3566}, + {{&OperationResultCode_names[4389], 44}, 3564}, + {{&OperationResultCode_names[4433], 45}, 3565}, + {{&OperationResultCode_names[4478], 37}, 3558}, + {{&OperationResultCode_names[4515], 37}, 3538}, + {{&OperationResultCode_names[4552], 39}, 3553}, + {{&OperationResultCode_names[4591], 59}, 3551}, + {{&OperationResultCode_names[4650], 45}, 3550}, + {{&OperationResultCode_names[4695], 49}, 3600}, + {{&OperationResultCode_names[4744], 39}, 3525}, + {{&OperationResultCode_names[4783], 49}, 3503}, + {{&OperationResultCode_names[4832], 57}, 3556}, + {{&OperationResultCode_names[4889], 42}, 3526}, + {{&OperationResultCode_names[4931], 49}, 3540}, + {{&OperationResultCode_names[4980], 68}, 3554}, + {{&OperationResultCode_names[5048], 47}, 3505}, + {{&OperationResultCode_names[5095], 47}, 3531}, + {{&OperationResultCode_names[5142], 38}, 3597}, + {{&OperationResultCode_names[5180], 47}, 3542}, + {{&OperationResultCode_names[5227], 28}, 3529}, + {{&OperationResultCode_names[5255], 30}, 3592}, + {{&OperationResultCode_names[5285], 38}, 3601}, + {{&OperationResultCode_names[5323], 47}, 3506}, + {{&OperationResultCode_names[5370], 47}, 3547}, + {{&OperationResultCode_names[5417], 40}, 3593}, + {{&OperationResultCode_names[5457], 47}, 3511}, + {{&OperationResultCode_names[5504], 40}, 3596}, + {{&OperationResultCode_names[5544], 51}, 3507}, + {{&OperationResultCode_names[5595], 47}, 3512}, + {{&OperationResultCode_names[5642], 39}, 3523}, + {{&OperationResultCode_names[5681], 51}, 3543}, + {{&OperationResultCode_names[5732], 43}, 3557}, + {{&OperationResultCode_names[5775], 47}, 3577}, + {{&OperationResultCode_names[5822], 47}, 3579}, + {{&OperationResultCode_names[5869], 49}, 3576}, + {{&OperationResultCode_names[5918], 45}, 3578}, + {{&OperationResultCode_names[5963], 38}, 3500}, + {{&OperationResultCode_names[6001], 54}, 3508}, + {{&OperationResultCode_names[6055], 44}, 3552}, + {{&OperationResultCode_names[6099], 53}, 3608}, + {{&OperationResultCode_names[6152], 50}, 3609}, + {{&OperationResultCode_names[6202], 38}, 3607}, + {{&OperationResultCode_names[6240], 53}, 3515}, + {{&OperationResultCode_names[6293], 51}, 3514}, + {{&OperationResultCode_names[6344], 42}, 3522}, + {{&OperationResultCode_names[6386], 43}, 3610}, + {{&OperationResultCode_names[6429], 62}, 3527}, + {{&OperationResultCode_names[6491], 65}, 3528}, + {{&OperationResultCode_names[6556], 54}, 3544}, + {{&OperationResultCode_names[6610], 49}, 3589}, + {{&OperationResultCode_names[6659], 47}, 3595}, + {{&OperationResultCode_names[6706], 46}, 3549}, + {{&OperationResultCode_names[6752], 55}, 3510}, + {{&OperationResultCode_names[6807], 55}, 3532}, + {{&OperationResultCode_names[6862], 54}, 3516}, + {{&OperationResultCode_names[6916], 43}, 3520}, + {{&OperationResultCode_names[6959], 55}, 3535}, + {{&OperationResultCode_names[7014], 47}, 3575}, + {{&OperationResultCode_names[7061], 51}, 3537}, + {{&OperationResultCode_names[7112], 55}, 3546}, + {{&OperationResultCode_names[7167], 56}, 3509}, + {{&OperationResultCode_names[7223], 56}, 3533}, + {{&OperationResultCode_names[7279], 55}, 3517}, + {{&OperationResultCode_names[7334], 44}, 3521}, + {{&OperationResultCode_names[7378], 55}, 3581}, + {{&OperationResultCode_names[7433], 47}, 3530}, + {{&OperationResultCode_names[7480], 56}, 3534}, + {{&OperationResultCode_names[7536], 52}, 3536}, + {{&OperationResultCode_names[7588], 56}, 3545}, + {{&OperationResultCode_names[7644], 50}, 3548}, + {{&OperationResultCode_names[7694], 43}, 3580}, + {{&OperationResultCode_names[7737], 40}, 3519}, + {{&OperationResultCode_names[7777], 38}, 3524}, + {{&OperationResultCode_names[7815], 49}, 3583}, + {{&OperationResultCode_names[7864], 44}, 3582}, + {{&OperationResultCode_names[7908], 47}, 3588}, + {{&OperationResultCode_names[7955], 45}, 3594}, + {{&OperationResultCode_names[8000], 24}, 5001}, + {{&OperationResultCode_names[8024], 22}, 5000}, + {{&OperationResultCode_names[8046], 25}, 5002}, + {{&OperationResultCode_names[8071], 29}, 5012}, + {{&OperationResultCode_names[8100], 34}, 5011}, + {{&OperationResultCode_names[8134], 37}, 5020}, + {{&OperationResultCode_names[8171], 39}, 5013}, + {{&OperationResultCode_names[8210], 28}, 5024}, + {{&OperationResultCode_names[8238], 27}, 5007}, + {{&OperationResultCode_names[8265], 27}, 5019}, + {{&OperationResultCode_names[8292], 29}, 5004}, + {{&OperationResultCode_names[8321], 29}, 5003}, + {{&OperationResultCode_names[8350], 32}, 5005}, + {{&OperationResultCode_names[8382], 31}, 5006}, + {{&OperationResultCode_names[8413], 24}, 5009}, + {{&OperationResultCode_names[8437], 25}, 5010}, + {{&OperationResultCode_names[8462], 27}, 5022}, + {{&OperationResultCode_names[8489], 30}, 5008}, + {{&OperationResultCode_names[8519], 30}, 5023}, + {{&OperationResultCode_names[8549], 42}, 5018}, + {{&OperationResultCode_names[8591], 24}, 5021}, + {{&OperationResultCode_names[8615], 34}, 5016}, + {{&OperationResultCode_names[8649], 23}, 5014}, + {{&OperationResultCode_names[8672], 27}, 5015}, + {{&OperationResultCode_names[8699], 34}, 5017}, + {{&OperationResultCode_names[8733], 14}, 1}, + {{&OperationResultCode_names[8747], 14}, 0}, + {{&OperationResultCode_names[8761], 46}, 1000}, + {{&OperationResultCode_names[8807], 39}, 1001}, + {{&OperationResultCode_names[8846], 30}, 1002}, + {{&OperationResultCode_names[8876], 36}, 1003}, + {{&OperationResultCode_names[8912], 35}, 1004}, + {{&OperationResultCode_names[8947], 27}, 3005}, + {{&OperationResultCode_names[8974], 33}, 3006}, + {{&OperationResultCode_names[9007], 26}, 3007}, + {{&OperationResultCode_names[9033], 27}, 3009}, + {{&OperationResultCode_names[9060], 27}, 3013}, + {{&OperationResultCode_names[9087], 27}, 3014}, + {{&OperationResultCode_names[9114], 31}, 3008}, + {{&OperationResultCode_names[9145], 34}, 3012}, + {{&OperationResultCode_names[9179], 35}, 3010}, + {{&OperationResultCode_names[9214], 36}, 3011}, + {{&OperationResultCode_names[9250], 21}, 3000}, + {{&OperationResultCode_names[9271], 21}, 3001}, + {{&OperationResultCode_names[9292], 21}, 3002}, + {{&OperationResultCode_names[9313], 24}, 3003}, + {{&OperationResultCode_names[9337], 29}, 3004}, + {{&OperationResultCode_names[9366], 51}, 1534}, + {{&OperationResultCode_names[9417], 60}, 1535}, + {{&OperationResultCode_names[9477], 37}, 1547}, + {{&OperationResultCode_names[9514], 47}, 1515}, + {{&OperationResultCode_names[9561], 36}, 1505}, + {{&OperationResultCode_names[9597], 42}, 1507}, + {{&OperationResultCode_names[9639], 40}, 1546}, + {{&OperationResultCode_names[9679], 46}, 1516}, + {{&OperationResultCode_names[9725], 45}, 1501}, + {{&OperationResultCode_names[9770], 45}, 1541}, + {{&OperationResultCode_names[9815], 38}, 1506}, + {{&OperationResultCode_names[9853], 30}, 1544}, + {{&OperationResultCode_names[9883], 47}, 1517}, + {{&OperationResultCode_names[9930], 36}, 1513}, + {{&OperationResultCode_names[9966], 54}, 1532}, + {{&OperationResultCode_names[10020], 49}, 1503}, + {{&OperationResultCode_names[10069], 52}, 1504}, + {{&OperationResultCode_names[10121], 37}, 1543}, + {{&OperationResultCode_names[10158], 47}, 1518}, + {{&OperationResultCode_names[10205], 36}, 1512}, + {{&OperationResultCode_names[10241], 36}, 1542}, + {{&OperationResultCode_names[10277], 30}, 1545}, + {{&OperationResultCode_names[10307], 60}, 1536}, + {{&OperationResultCode_names[10367], 43}, 1533}, + {{&OperationResultCode_names[10410], 38}, 1502}, + {{&OperationResultCode_names[10448], 39}, 1539}, + {{&OperationResultCode_names[10487], 37}, 1540}, + {{&OperationResultCode_names[10524], 41}, 1537}, + {{&OperationResultCode_names[10565], 55}, 1526}, + {{&OperationResultCode_names[10620], 54}, 1530}, + {{&OperationResultCode_names[10674], 57}, 1527}, + {{&OperationResultCode_names[10731], 55}, 1529}, + {{&OperationResultCode_names[10786], 55}, 1531}, + {{&OperationResultCode_names[10841], 59}, 1528}, + {{&OperationResultCode_names[10900], 47}, 1519}, + {{&OperationResultCode_names[10947], 36}, 1514}, + {{&OperationResultCode_names[10983], 51}, 1520}, + {{&OperationResultCode_names[11034], 40}, 1508}, + {{&OperationResultCode_names[11074], 38}, 1538}, + {{&OperationResultCode_names[11112], 54}, 1521}, + {{&OperationResultCode_names[11166], 43}, 1509}, + {{&OperationResultCode_names[11209], 52}, 1500}, + {{&OperationResultCode_names[11261], 55}, 1523}, + {{&OperationResultCode_names[11316], 44}, 1511}, + {{&OperationResultCode_names[11360], 57}, 1525}, + {{&OperationResultCode_names[11417], 56}, 1522}, + {{&OperationResultCode_names[11473], 45}, 1510}, + {{&OperationResultCode_names[11518], 58}, 1524}, + {{&OperationResultCode_names[11576], 38}, 2503}, + {{&OperationResultCode_names[11614], 51}, 2514}, + {{&OperationResultCode_names[11665], 41}, 2500}, + {{&OperationResultCode_names[11706], 59}, 2510}, + {{&OperationResultCode_names[11765], 37}, 2505}, + {{&OperationResultCode_names[11802], 40}, 2504}, + {{&OperationResultCode_names[11842], 33}, 2501}, + {{&OperationResultCode_names[11875], 48}, 2513}, + {{&OperationResultCode_names[11923], 52}, 2511}, + {{&OperationResultCode_names[11975], 38}, 2515}, + {{&OperationResultCode_names[12013], 55}, 2512}, + {{&OperationResultCode_names[12068], 45}, 2506}, + {{&OperationResultCode_names[12113], 46}, 2507}, + {{&OperationResultCode_names[12159], 56}, 2502}, + {{&OperationResultCode_names[12215], 47}, 2509}, + {{&OperationResultCode_names[12262], 43}, 2508}, + {{&OperationResultCode_names[12305], 31}, 2516}, + {{&OperationResultCode_names[12336], 29}, 4568}, + {{&OperationResultCode_names[12365], 38}, 4611}, + {{&OperationResultCode_names[12403], 45}, 4612}, + {{&OperationResultCode_names[12448], 60}, 4609}, + {{&OperationResultCode_names[12508], 45}, 4500}, + {{&OperationResultCode_names[12553], 37}, 4571}, + {{&OperationResultCode_names[12590], 44}, 4504}, + {{&OperationResultCode_names[12634], 42}, 4572}, + {{&OperationResultCode_names[12676], 49}, 4515}, + {{&OperationResultCode_names[12725], 29}, 4518}, + {{&OperationResultCode_names[12754], 30}, 4579}, + {{&OperationResultCode_names[12784], 38}, 4536}, + {{&OperationResultCode_names[12822], 43}, 4570}, + {{&OperationResultCode_names[12865], 36}, 4578}, + {{&OperationResultCode_names[12901], 48}, 4501}, + {{&OperationResultCode_names[12949], 44}, 4585}, + {{&OperationResultCode_names[12993], 35}, 4592}, + {{&OperationResultCode_names[13028], 43}, 4506}, + {{&OperationResultCode_names[13071], 35}, 4530}, + {{&OperationResultCode_names[13106], 23}, 4520}, + {{&OperationResultCode_names[13129], 37}, 4538}, + {{&OperationResultCode_names[13166], 41}, 4563}, + {{&OperationResultCode_names[13207], 37}, 4602}, + {{&OperationResultCode_names[13244], 31}, 4610}, + {{&OperationResultCode_names[13275], 38}, 4606}, + {{&OperationResultCode_names[13313], 37}, 4591}, + {{&OperationResultCode_names[13350], 25}, 4567}, + {{&OperationResultCode_names[13375], 27}, 4605}, + {{&OperationResultCode_names[13402], 32}, 4503}, + {{&OperationResultCode_names[13434], 35}, 4514}, + {{&OperationResultCode_names[13469], 48}, 4588}, + {{&OperationResultCode_names[13517], 45}, 4552}, + {{&OperationResultCode_names[13562], 40}, 4532}, + {{&OperationResultCode_names[13602], 40}, 4535}, + {{&OperationResultCode_names[13642], 48}, 4547}, + {{&OperationResultCode_names[13690], 60}, 4556}, + {{&OperationResultCode_names[13750], 56}, 4558}, + {{&OperationResultCode_names[13806], 60}, 4557}, + {{&OperationResultCode_names[13866], 56}, 4553}, + {{&OperationResultCode_names[13922], 52}, 4555}, + {{&OperationResultCode_names[13974], 56}, 4554}, + {{&OperationResultCode_names[14030], 43}, 4559}, + {{&OperationResultCode_names[14073], 43}, 4560}, + {{&OperationResultCode_names[14116], 37}, 4561}, + {{&OperationResultCode_names[14153], 41}, 4562}, + {{&OperationResultCode_names[14194], 49}, 4586}, + {{&OperationResultCode_names[14243], 46}, 4505}, + {{&OperationResultCode_names[14289], 26}, 4519}, + {{&OperationResultCode_names[14315], 40}, 4537}, + {{&OperationResultCode_names[14355], 29}, 4566}, + {{&OperationResultCode_names[14384], 44}, 4507}, + {{&OperationResultCode_names[14428], 36}, 4531}, + {{&OperationResultCode_names[14464], 24}, 4525}, + {{&OperationResultCode_names[14488], 38}, 4539}, + {{&OperationResultCode_names[14526], 41}, 4593}, + {{&OperationResultCode_names[14567], 28}, 4594}, + {{&OperationResultCode_names[14595], 42}, 4564}, + {{&OperationResultCode_names[14637], 30}, 4569}, + {{&OperationResultCode_names[14667], 31}, 4607}, + {{&OperationResultCode_names[14698], 27}, 4587}, + {{&OperationResultCode_names[14725], 37}, 4573}, + {{&OperationResultCode_names[14762], 44}, 4508}, + {{&OperationResultCode_names[14806], 30}, 4577}, + {{&OperationResultCode_names[14836], 24}, 4522}, + {{&OperationResultCode_names[14860], 35}, 4601}, + {{&OperationResultCode_names[14895], 56}, 4608}, + {{&OperationResultCode_names[14951], 29}, 4603}, + {{&OperationResultCode_names[14980], 28}, 4604}, + {{&OperationResultCode_names[15008], 35}, 4590}, + {{&OperationResultCode_names[15043], 37}, 4576}, + {{&OperationResultCode_names[15080], 44}, 4513}, + {{&OperationResultCode_names[15124], 30}, 4582}, + {{&OperationResultCode_names[15154], 24}, 4521}, + {{&OperationResultCode_names[15178], 30}, 4583}, + {{&OperationResultCode_names[15208], 35}, 4502}, + {{&OperationResultCode_names[15243], 48}, 4512}, + {{&OperationResultCode_names[15291], 34}, 4584}, + {{&OperationResultCode_names[15325], 38}, 4589}, + {{&OperationResultCode_names[15363], 28}, 4524}, + {{&OperationResultCode_names[15391], 42}, 4540}, + {{&OperationResultCode_names[15433], 37}, 4599}, + {{&OperationResultCode_names[15470], 44}, 4575}, + {{&OperationResultCode_names[15514], 51}, 4509}, + {{&OperationResultCode_names[15565], 37}, 4581}, + {{&OperationResultCode_names[15602], 31}, 4523}, + {{&OperationResultCode_names[15633], 45}, 4541}, + {{&OperationResultCode_names[15678], 42}, 4600}, + {{&OperationResultCode_names[15720], 52}, 4511}, + {{&OperationResultCode_names[15772], 39}, 4516}, + {{&OperationResultCode_names[15811], 41}, 4533}, + {{&OperationResultCode_names[15852], 32}, 4527}, + {{&OperationResultCode_names[15884], 32}, 4529}, + {{&OperationResultCode_names[15916], 28}, 4528}, + {{&OperationResultCode_names[15944], 46}, 4546}, + {{&OperationResultCode_names[15990], 48}, 4549}, + {{&OperationResultCode_names[16038], 48}, 4551}, + {{&OperationResultCode_names[16086], 51}, 4596}, + {{&OperationResultCode_names[16137], 43}, 4595}, + {{&OperationResultCode_names[16180], 54}, 4545}, + {{&OperationResultCode_names[16234], 54}, 4542}, + {{&OperationResultCode_names[16288], 53}, 4510}, + {{&OperationResultCode_names[16341], 40}, 4517}, + {{&OperationResultCode_names[16381], 52}, 4544}, + {{&OperationResultCode_names[16433], 44}, 4534}, + {{&OperationResultCode_names[16477], 33}, 4526}, + {{&OperationResultCode_names[16510], 49}, 4548}, + {{&OperationResultCode_names[16559], 49}, 4550}, + {{&OperationResultCode_names[16608], 52}, 4598}, + {{&OperationResultCode_names[16660], 44}, 4597}, + {{&OperationResultCode_names[16704], 55}, 4543}, + {{&OperationResultCode_names[16759], 42}, 4574}, + {{&OperationResultCode_names[16801], 35}, 4580}, + {{&OperationResultCode_names[16836], 32}, 4565}, }; static const int OperationResultCode_entries_by_number[] = { - 202, // 0 -> DETAIL_UNKNOWN - 201, // 1 -> DETAIL_SUCCESS - 28, // 500 -> CLIENT_CANCELLATION_REMOTE_IN_CANCELED_STATE - 24, // 501 -> CLIENT_CANCELLATION_LOCAL_CANCEL_PAYLOAD - 26, // 502 -> CLIENT_CANCELLATION_REMOTE_CANCEL_PAYLOAD - 29, // 503 -> CLIENT_CANCELLATION_UPGRADE_CANCELED_BY_REMOTE - 12, // 504 -> CLIENT_CANCELLATION_CANCEL_BLE_OUTGOING_CONNECTION - 13, // 505 -> CLIENT_CANCELLATION_CANCEL_BT_OUTGOING_CONNECTION - 15, // 506 -> CLIENT_CANCELLATION_CANCEL_L2CAP_OUTGOING_CONNECTION - 16, // 507 -> CLIENT_CANCELLATION_CANCEL_LAN_OUTGOING_CONNECTION - 17, // 508 -> CLIENT_CANCELLATION_CANCEL_NFC_OUTGOING_CONNECTION - 19, // 509 -> CLIENT_CANCELLATION_CANCEL_USB_OUTGOING_CONNECTION - 21, // 510 -> CLIENT_CANCELLATION_CANCEL_WIFI_AWARE_OUTGOING_CONNECTION - 22, // 511 -> CLIENT_CANCELLATION_CANCEL_WIFI_DIRECT_OUTGOING_CONNECTION - 23, // 512 -> CLIENT_CANCELLATION_CANCEL_WIFI_HOTSPOT_OUTGOING_CONNECTION - 20, // 513 -> CLIENT_CANCELLATION_CANCEL_WEB_RTC_OUTGOING_CONNECTION - 18, // 514 -> CLIENT_CANCELLATION_CANCEL_OUTGOING_CONNECTION - 14, // 515 -> CLIENT_CANCELLATION_CANCEL_INCOMING_CONNECTION - 31, // 516 -> CLIENT_CANCELLATION_WIFI_AWARE_SERVER_SOCKET_CREATION - 32, // 517 -> CLIENT_CANCELLATION_WIFI_DIRECT_SERVER_SOCKET_CREATION - 33, // 518 -> CLIENT_CANCELLATION_WIFI_HOTSPOT_SERVER_SOCKET_CREATION - 10, // 519 -> CLIENT_CANCELLATION_BT_SERVER_SOCKET_CREATION - 30, // 520 -> CLIENT_CANCELLATION_WEB_RTC_SERVER_SOCKET_CREATION - 34, // 521 -> CLIENT_CANCELLATION_WIFI_LAN_SERVER_SOCKET_CREATION - 25, // 522 -> CLIENT_CANCELLATION_LOCAL_DISCONNECT - 27, // 523 -> CLIENT_CANCELLATION_REMOTE_DISCONNECT - 9, // 524 -> CLIENT_CANCELLATION_AWDL_SERVER_SOCKET_CREATION - 11, // 525 -> CLIENT_CANCELLATION_CANCEL_AWDL_OUTGOING_CONNECTION - 203, // 1000 -> DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS - 204, // 1001 -> DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED - 205, // 1002 -> DEVICE_STATE_LOCATION_DISABLED - 206, // 1003 -> DEVICE_STATE_RADIO_DISABLING_FAILURE - 207, // 1004 -> DEVICE_STATE_RADIO_ENABLING_FAILURE - 264, // 1500 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE - 231, // 1501 -> MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT - 247, // 1502 -> MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT - 238, // 1503 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT - 239, // 1504 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G - 227, // 1505 -> MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE - 233, // 1506 -> MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE - 228, // 1507 -> MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE - 260, // 1508 -> MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE - 263, // 1509 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE - 269, // 1510 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE - 266, // 1511 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE - 242, // 1512 -> MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE - 236, // 1513 -> MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE - 258, // 1514 -> MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE - 226, // 1515 -> MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE - 230, // 1516 -> MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE - 235, // 1517 -> MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE - 241, // 1518 -> MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE - 257, // 1519 -> MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE - 259, // 1520 -> MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE - 262, // 1521 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE - 268, // 1522 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE - 265, // 1523 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE - 270, // 1524 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE - 267, // 1525 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE - 251, // 1526 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS - 253, // 1527 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS - 256, // 1528 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS - 254, // 1529 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS - 252, // 1530 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS - 255, // 1531 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS - 237, // 1532 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE - 246, // 1533 -> MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE - 223, // 1534 -> MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP - 224, // 1535 -> MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS - 245, // 1536 -> MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION - 250, // 1537 -> MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM - 261, // 1538 -> MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET - 248, // 1539 -> MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE - 249, // 1540 -> MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW - 232, // 1541 -> MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING - 243, // 1542 -> MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE - 240, // 1543 -> MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE - 234, // 1544 -> MEDIUM_UNAVAILABLE_LAN_BLOCKED - 244, // 1545 -> MEDIUM_UNAVAILABLE_POOR_SIGNAL - 229, // 1546 -> MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED - 225, // 1547 -> MEDIUM_UNAVAILABLE_AWDL_NOT_AVAILABLE - 60, // 2000 -> CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT - 61, // 2001 -> CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT - 37, // 2002 -> CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST - 39, // 2003 -> CLIENT_DUPLICATE_ACCEPTING_L2CAP_CONNECTION_REQUEST - 38, // 2004 -> CLIENT_DUPLICATE_ACCEPTING_BT_CONNECTION_REQUEST - 40, // 2005 -> CLIENT_DUPLICATE_ACCEPTING_LAN_CONNECTION_REQUEST - 41, // 2006 -> CLIENT_DUPLICATE_ACCEPTING_NFC_CONNECTION_REQUEST - 43, // 2007 -> CLIENT_DUPLICATE_ACCEPTING_WEB_RTC_CONNECTION_REQUEST - 44, // 2008 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_AWARE_CONNECTION_REQUEST - 46, // 2009 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_HOTSPOT_CONNECTION_REQUEST - 45, // 2010 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_DIRECT_CONNECTION_REQUEST - 42, // 2011 -> CLIENT_DUPLICATE_ACCEPTING_USB_CONNECTION_REQUEST - 47, // 2012 -> CLIENT_DUPLICATE_WIFI_AWARE_CONNECTION_REQUEST - 49, // 2013 -> CLIENT_DUPLICATE_WIFI_DIRECT_CONNECTION_REQUEST - 50, // 2014 -> CLIENT_DUPLICATE_WIFI_HOTSPOT_CONNECTION_REQUEST - 48, // 2015 -> CLIENT_DUPLICATE_WIFI_AWARE_SUBSCRIBING_REQUEST - 57, // 2016 -> CLIENT_UNSUPPORTED_USB_TO_BE_UPGRADE_MEDIUM - 56, // 2017 -> CLIENT_PROCESS_TIE_BREAK_LOSS - 4, // 2018 -> CLIENT_BLE_DUPLICATE_ADVERTISING - 7, // 2019 -> CLIENT_BLUETOOTH_DUPLICATE_ADVERTISING - 52, // 2020 -> CLIENT_NFC_DUPLICATE_ADVERTISING - 62, // 2021 -> CLIENT_WIFI_LAN_DUPLICATE_ADVERTISING - 58, // 2022 -> CLIENT_USB_DUPLICATE_ADVERTISING - 5, // 2023 -> CLIENT_BLE_DUPLICATE_DISCOVERING - 8, // 2024 -> CLIENT_BLUETOOTH_DUPLICATE_DISCOVERING - 53, // 2025 -> CLIENT_NFC_DUPLICATE_DISCOVERING - 63, // 2026 -> CLIENT_WIFI_LAN_DUPLICATE_DISCOVERING - 59, // 2027 -> CLIENT_USB_DUPLICATE_DISCOVERING - 55, // 2028 -> CLIENT_PERMISSION_FAILURE - 6, // 2029 -> CLIENT_BLE_NO_LISTENING - 1, // 2030 -> CLIENT_ALREADY_CONNECTED_TO_TARGET - 51, // 2031 -> CLIENT_FAILED_INCOMING_CONNECTION_DUE_TO_TOPOLOGICAL_LIMIT - 54, // 2032 -> CLIENT_OUT_OF_ORDER_API_CALL - 64, // 2033 -> CLIENT_WRONG_CONNECTING_PERMISSIONS - 0, // 2034 -> CLIENT_ALREADY_CONNECTED_TO_ENDPOINT - 35, // 2035 -> CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT - 2, // 2036 -> CLIENT_AWDL_DUPLICATE_ADVERTISING - 3, // 2037 -> CLIENT_AWDL_DUPLICATE_DISCOVERING - 36, // 2038 -> CLIENT_DUPLICATE_ACCEPTING_AWDL_CONNECTION_REQUEST - 273, // 2500 -> MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL - 277, // 2501 -> MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM - 284, // 2502 -> MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION - 271, // 2503 -> MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL - 276, // 2504 -> MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL - 275, // 2505 -> MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL - 282, // 2506 -> MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL - 283, // 2507 -> MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL - 286, // 2508 -> MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL - 285, // 2509 -> MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL - 274, // 2510 -> MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE - 279, // 2511 -> MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE - 281, // 2512 -> MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL - 278, // 2513 -> MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE - 272, // 2514 -> MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE - 280, // 2515 -> MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL - 287, // 2516 -> MISCELLEANEOUS_WORK_SOURCE_NULL - 218, // 3000 -> IO_FILE_OPENING_ERROR - 219, // 3001 -> IO_FILE_READING_ERROR - 220, // 3002 -> IO_FILE_WRITING_ERROR - 221, // 3003 -> IO_FOLDER_CREATION_ERROR - 222, // 3004 -> IO_STREAM_CREATE_PIPE_FAILURE - 208, // 3005 -> IO_ENDPOINT_IO_ERROR_ON_BLE - 209, // 3006 -> IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP - 210, // 3007 -> IO_ENDPOINT_IO_ERROR_ON_BT - 214, // 3008 -> IO_ENDPOINT_IO_ERROR_ON_WEB_RTC - 211, // 3009 -> IO_ENDPOINT_IO_ERROR_ON_LAN - 216, // 3010 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT - 217, // 3011 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT - 215, // 3012 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE - 212, // 3013 -> IO_ENDPOINT_IO_ERROR_ON_NFC - 213, // 3014 -> IO_ENDPOINT_IO_ERROR_ON_USB - 135, // 3500 -> CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE - 78, // 3501 -> CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE - 71, // 3502 -> CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE - 109, // 3503 -> CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_FAILURE - 82, // 3504 -> CONNECTIVITY_BT_CLIENT_SOCKET_CREATION_FAILURE - 114, // 3505 -> CONNECTIVITY_LAN_CLIENT_SOCKET_CREATION_FAILURE - 121, // 3506 -> CONNECTIVITY_NFC_CLIENT_SOCKET_CREATION_FAILURE - 126, // 3507 -> CONNECTIVITY_WEB_RTC_CLIENT_SOCKET_CREATION_FAILURE - 136, // 3508 -> CONNECTIVITY_WIFI_AWARE_CLIENT_SOCKET_CREATION_FAILURE - 159, // 3509 -> CONNECTIVITY_WIFI_HOTSPOT_CLIENT_SOCKET_CREATION_FAILURE - 151, // 3510 -> CONNECTIVITY_WIFI_DIRECT_CLIENT_SOCKET_CREATION_FAILURE - 124, // 3511 -> CONNECTIVITY_USB_CLIENT_SOCKET_CREATION_FAILURE - 127, // 3512 -> CONNECTIVITY_WEB_RTC_CONNECT_TO_TACHYON_FAILURE - 72, // 3513 -> CONNECTIVITY_BLE_CREATE_GATT_CONNECTION_FAILURE - 142, // 3514 -> CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_FRAME_FAILURE - 141, // 3515 -> CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_ADDRESS_FAILURE - 153, // 3516 -> CONNECTIVITY_WIFI_DIRECT_INCONSISTENT_HOSTED_WIFI_BAND - 161, // 3517 -> CONNECTIVITY_WIFI_HOTSPOT_INCONSISTENT_HOSTED_WIFI_BAND - 79, // 3518 -> CONNECTIVITY_BLUETOOTH_INVALID_CREDENTIAL - 170, // 3519 -> CONNECTIVITY_WIFI_LAN_INVALID_CREDENTIAL - 154, // 3520 -> CONNECTIVITY_WIFI_DIRECT_INVALID_CREDENTIAL - 162, // 3521 -> CONNECTIVITY_WIFI_HOTSPOT_INVALID_CREDENTIAL - 143, // 3522 -> CONNECTIVITY_WIFI_AWARE_INVALID_CREDENTIAL - 128, // 3523 -> CONNECTIVITY_WEB_RTC_INVALID_CREDENTIAL - 171, // 3524 -> CONNECTIVITY_WIFI_LAN_IP_ADDRESS_ERROR - 108, // 3525 -> CONNECTIVITY_L2CAP_CLIENT_OBTAIN_FAIURE - 111, // 3526 -> CONNECTIVITY_L2CAP_DATA_CONNECTION_FAILURE - 145, // 3527 -> CONNECTIVITY_WIFI_AWARE_L2MESSAGE_NETWORK_AVAILABLE_FRAME_NULL - 146, // 3528 -> CONNECTIVITY_WIFI_AWARE_L2MESSAGE_SEND_HOST_NETWORK_FRAME_FAILURE - 118, // 3529 -> CONNECTIVITY_LAN_UNREACHABLE - 164, // 3530 -> CONNECTIVITY_WIFI_HOTSPOT_LOHS_CREATION_FAILURE - 115, // 3531 -> CONNECTIVITY_LAN_GET_NETWORK_INTERFACES_FAILURE - 152, // 3532 -> CONNECTIVITY_WIFI_DIRECT_GET_NETWORK_INTERFACES_FAILURE - 160, // 3533 -> CONNECTIVITY_WIFI_HOTSPOT_GET_NETWORK_INTERFACES_FAILURE - 165, // 3534 -> CONNECTIVITY_WIFI_HOTSPOT_P2P_CHANNEL_INITIALIZE_FAILURE - 155, // 3535 -> CONNECTIVITY_WIFI_DIRECT_P2P_CHANNEL_INITIALIZE_FAILURE - 166, // 3536 -> CONNECTIVITY_WIFI_HOTSPOT_P2P_GROUP_CREATION_FAILURE - 157, // 3537 -> CONNECTIVITY_WIFI_DIRECT_P2P_GROUP_CREATION_FAILURE - 103, // 3538 -> CONNECTIVITY_GATT_SERVER_OPEN_FAILURE - 74, // 3539 -> CONNECTIVITY_BLE_SERVER_SOCKET_CREATION_FAILURE - 112, // 3540 -> CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_FAILURE - 86, // 3541 -> CONNECTIVITY_BT_SERVER_SOCKET_CREATION_FAILURE - 117, // 3542 -> CONNECTIVITY_LAN_SERVER_SOCKET_CREATION_FAILURE - 129, // 3543 -> CONNECTIVITY_WEB_RTC_SERVER_SOCKET_CREATION_FAILURE - 147, // 3544 -> CONNECTIVITY_WIFI_AWARE_SERVER_SOCKET_CREATION_FAILURE - 167, // 3545 -> CONNECTIVITY_WIFI_HOTSPOT_SERVER_SOCKET_CREATION_FAILURE - 158, // 3546 -> CONNECTIVITY_WIFI_DIRECT_SERVER_SOCKET_CREATION_FAILURE - 122, // 3547 -> CONNECTIVITY_NFC_SERVER_SOCKET_CREATION_FAILURE - 168, // 3548 -> CONNECTIVITY_WIFI_HOTSPOT_SOFT_AP_CREATION_FAILURE - 150, // 3549 -> CONNECTIVITY_WIFI_AWARE_UPDATE_PUBLISH_FAILURE - 106, // 3550 -> CONNECTIVITY_GENERIC_WRITING_CHANNEL_IO_ERROR - 105, // 3551 -> CONNECTIVITY_GENERIC_WRITE_CLIENT_INTRODUCTION_ACK_IO_ERROR - 137, // 3552 -> CONNECTIVITY_WIFI_AWARE_DISCOVERED_PEER_NULL - 104, // 3553 -> CONNECTIVITY_GENERIC_PAYLOAD_SENT_ERROR - 113, // 3554 -> CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE - 87, // 3555 -> CONNECTIVITY_BT_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE - 110, // 3556 -> CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_TIMEOUT_FAILURE - 130, // 3557 -> CONNECTIVITY_WEB_RTC_UNSATISFIED_LINK_ERROR - 102, // 3558 -> CONNECTIVITY_DIRECT_GROUP_MCC_FAILURE - 91, // 3559 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE - 92, // 3560 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE_L2CAP - 93, // 3561 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BT - 98, // 3562 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WEB_RTC - 94, // 3563 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_LAN - 100, // 3564 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_DIRECT - 101, // 3565 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_HOTSPOT - 99, // 3566 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_AWARE - 95, // 3567 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_NFC - 97, // 3568 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_USB - 96, // 3569 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_UNKNOWN_MEDIUM - 89, // 3570 -> CONNECTIVITY_BT_SOCKET_CREATION_IO_EXCEPTION - 88, // 3571 -> CONNECTIVITY_BT_SOCKET_CONNECT_IO_EXCEPTION - 84, // 3572 -> CONNECTIVITY_BT_CONNECTION_INTERRUPTED_EXCEPTION - 83, // 3573 -> CONNECTIVITY_BT_CONNECTION_EXECUTION_EXCEPTION - 85, // 3574 -> CONNECTIVITY_BT_CONNECTION_TIMEOUT_EXCEPTION - 156, // 3575 -> CONNECTIVITY_WIFI_DIRECT_P2P_CONNECTION_FAILURE - 133, // 3576 -> CONNECTIVITY_WFD_CONNECTION_INTERRUPTED_EXCEPTION - 131, // 3577 -> CONNECTIVITY_WFD_CONNECTION_EXECUTION_EXCEPTION - 134, // 3578 -> CONNECTIVITY_WFD_CONNECTION_TIMEOUT_EXCEPTION - 132, // 3579 -> CONNECTIVITY_WFD_CONNECTION_HOSTED_ADDRESS_NULL - 169, // 3580 -> CONNECTIVITY_WIFI_HOTSPOT_SPECIFIER_FAILURE - 163, // 3581 -> CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE - 173, // 3582 -> CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_TIMEOUT - 172, // 3583 -> CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_IO_EXCEPTION - 76, // 3584 -> CONNECTIVITY_BLE_START_GATT_SERVER_FAILURE - 70, // 3585 -> CONNECTIVITY_BLE_ADD_GATT_ADVERTISEMENT_FAILURE - 75, // 3586 -> CONNECTIVITY_BLE_START_ADVERTISING_FAILURE - 81, // 3587 -> CONNECTIVITY_BLUETOOTH_START_ADVERTISING_FAILURE - 174, // 3588 -> CONNECTIVITY_WIFI_LAN_START_ADVERTISING_FAILURE - 148, // 3589 -> CONNECTIVITY_WIFI_AWARE_START_ADVERTISING_FAILURE - 80, // 3590 -> CONNECTIVITY_BLUETOOTH_SCAN_FAILURE - 73, // 3591 -> CONNECTIVITY_BLE_SCAN_FAILURE - 119, // 3592 -> CONNECTIVITY_MDNS_SCAN_FAILURE - 123, // 3593 -> CONNECTIVITY_NFC_START_DISCOVERY_FAILURE - 175, // 3594 -> CONNECTIVITY_WIFI_LAN_START_DISCOVERY_FAILURE - 149, // 3595 -> CONNECTIVITY_WIFI_AWARE_START_DISCOVERY_FAILURE - 125, // 3596 -> CONNECTIVITY_UWB_START_DISCOVERY_FAILURE - 116, // 3597 -> CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE - 77, // 3598 -> CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE - 65, // 3599 -> CONNECTIVITY_AUTO_RESUME_FAILURE - 107, // 3600 -> CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT - 120, // 3601 -> CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL - 68, // 3602 -> CONNECTIVITY_AWDL_START_ADVERTISING_FAILURE - 69, // 3603 -> CONNECTIVITY_AWDL_START_DISCOVERY_FAILURE - 67, // 3604 -> CONNECTIVITY_AWDL_INVALID_CREDENTIAL - 66, // 3605 -> CONNECTIVITY_AWDL_CLIENT_SOCKET_CREATION_FAILURE - 90, // 3606 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_AWDL - 140, // 3607 -> CONNECTIVITY_WIFI_AWARE_DO_UNAVAILABLE - 138, // 3608 -> CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_SCREEN_OFF - 139, // 3609 -> CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_TIMEOUT - 144, // 3610 -> CONNECTIVITY_WIFI_AWARE_JOIN_NETWORK_FAILED - 292, // 4500 -> NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR - 302, // 4501 -> NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT - 362, // 4502 -> NEARBY_WEB_RTC_CONNECTION_FLOW_NULL - 316, // 4503 -> NEARBY_GENERIC_CONNECTION_CLOSED - 294, // 4504 -> NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE - 334, // 4505 -> NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE - 305, // 4506 -> NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE - 338, // 4507 -> NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE - 349, // 4508 -> NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE - 370, // 4509 -> NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE - 388, // 4510 -> NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE - 375, // 4511 -> NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE - 363, // 4512 -> NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE - 358, // 4513 -> NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE - 317, // 4514 -> NEARBY_GENERIC_ENDPOINT_UNENCRYPTED - 296, // 4515 -> NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION - 376, // 4516 -> NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS - 389, // 4517 -> NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS - 297, // 4518 -> NEARBY_BLE_GATT_NULL_CALLBACK - 335, // 4519 -> NEARBY_L2CAP_NULL_CALLBACK - 307, // 4520 -> NEARBY_BT_NULL_CALLBACK - 360, // 4521 -> NEARBY_USB_NULL_CALLBACK - 351, // 4522 -> NEARBY_NFC_NULL_CALLBACK - 372, // 4523 -> NEARBY_WIFI_AWARE_NULL_CALLBACK - 366, // 4524 -> NEARBY_WEB_RTC_NULL_CALLBACK - 340, // 4525 -> NEARBY_LAN_NULL_CALLBACK - 392, // 4526 -> NEARBY_WIFI_HOTSPOT_NULL_CALLBACK - 378, // 4527 -> NEARBY_WIFI_DIRECT_NULL_CALLBACK - 380, // 4528 -> NEARBY_WIFI_DIRECT_NULL_SSID - 379, // 4529 -> NEARBY_WIFI_DIRECT_NULL_PASSWORD - 306, // 4530 -> NEARBY_BT_MULTIPLEX_SOCKET_DISABLED - 339, // 4531 -> NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED - 320, // 4532 -> NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL - 377, // 4533 -> NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING - 391, // 4534 -> NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING - 321, // 4535 -> NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL - 299, // 4536 -> NEARBY_BLE_OPERATION_REGISTERED_FAILED - 336, // 4537 -> NEARBY_L2CAP_OPERATION_REGISTERED_FAILED - 308, // 4538 -> NEARBY_BT_OPERATION_REGISTERED_FAILED - 341, // 4539 -> NEARBY_LAN_OPERATION_REGISTERED_FAILED - 367, // 4540 -> NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED - 373, // 4541 -> NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED - 387, // 4542 -> NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED - 397, // 4543 -> NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED - 390, // 4544 -> NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED - 386, // 4545 -> NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED - 381, // 4546 -> NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED - 322, // 4547 -> NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE - 393, // 4548 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G - 382, // 4549 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G - 394, // 4550 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G - 383, // 4551 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G - 319, // 4552 -> NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE - 326, // 4553 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR - 328, // 4554 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR - 327, // 4555 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR - 323, // 4556 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR - 325, // 4557 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR - 324, // 4558 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR - 329, // 4559 -> NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR - 330, // 4560 -> NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR - 331, // 4561 -> NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE - 332, // 4562 -> NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL - 309, // 4563 -> NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE - 344, // 4564 -> NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE - 400, // 4565 -> NEARBY_WIFI_LAN_IP_ADDRESS_ERROR - 337, // 4566 -> NEARBY_L2CAP_PSM_NOT_POSITIVE - 314, // 4567 -> NEARBY_ENCRYPTION_FAILURE - 288, // 4568 -> NEARBY_AUTHENTICATION_FAILURE - 345, // 4569 -> NEARBY_LAN_VIRTUAL_SOCKET_NULL - 300, // 4570 -> NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE - 293, // 4571 -> NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE - 295, // 4572 -> NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE - 348, // 4573 -> NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE - 398, // 4574 -> NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE - 369, // 4575 -> NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE - 357, // 4576 -> NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE - 350, // 4577 -> NEARBY_NFC_INVALID_PCP_OPTIONS - 301, // 4578 -> NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS - 298, // 4579 -> NEARBY_BLE_INVALID_PCP_OPTIONS - 399, // 4580 -> NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS - 371, // 4581 -> NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS - 359, // 4582 -> NEARBY_USB_INVALID_PCP_OPTIONS - 361, // 4583 -> NEARBY_UWB_INVALID_PCP_OPTIONS - 364, // 4584 -> NEARBY_WEB_RTC_INVALID_PCP_OPTIONS - 303, // 4585 -> NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN - 333, // 4586 -> NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO - 347, // 4587 -> NEARBY_NEED_METHOD_OVERRIDE - 318, // 4588 -> NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE - 365, // 4589 -> NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND - 356, // 4590 -> NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM - 313, // 4591 -> NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE - 304, // 4592 -> NEARBY_BLUETOOTH_RECONNECT_MAC_NULL - 342, // 4593 -> NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL - 343, // 4594 -> NEARBY_LAN_RECONNECT_IP_NULL - 385, // 4595 -> NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL - 384, // 4596 -> NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL - 396, // 4597 -> NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL - 395, // 4598 -> NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL - 368, // 4599 -> NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL - 374, // 4600 -> NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL - 352, // 4601 -> NEARBY_NOT_ADVERTISING_OR_LISTENING - 310, // 4602 -> NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER - 354, // 4603 -> NEARBY_SETUP_STRATEGY_FAILURE - 355, // 4604 -> NEARBY_TX_ADVERTISEMENT_NULL - 315, // 4605 -> NEARBY_ENDPOINT_ID_MISMATCH - 312, // 4606 -> NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG - 346, // 4607 -> NEARBY_LOCAL_CLIENT_STATE_WRONG - 353, // 4608 -> NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD - 291, // 4609 -> NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD - 311, // 4610 -> NEARBY_CONNECTION_LISTENER_NULL - 289, // 4611 -> NEARBY_AWDL_ADVERTISE_TO_BYTES_FAILURE - 290, // 4612 -> NEARBY_AWDL_ENDPOINT_CHANNEL_CREATION_FAILURE - 177, // 5000 -> DCT_ERROR_BLE_DISABLED - 176, // 5001 -> DCT_ERROR_BLE_ADV_FAILED - 178, // 5002 -> DCT_ERROR_BLE_SCAN_FAILED - 187, // 5003 -> DCT_ERROR_L2CAP_SERVER_FAILED - 186, // 5004 -> DCT_ERROR_L2CAP_CLIENT_FAILED - 188, // 5005 -> DCT_ERROR_MDNS_DISCOVERY_TIMEOUT - 189, // 5006 -> DCT_ERROR_MDNS_REGISTER_SERVICE - 184, // 5007 -> DCT_ERROR_INITIAL_TLS_SPAKE - 193, // 5008 -> DCT_ERROR_SUBSEQUENT_TLS_SPAKE - 190, // 5009 -> DCT_ERROR_REQUEST_FAILED - 191, // 5010 -> DCT_ERROR_RESPONSE_FAILED - 180, // 5011 -> DCT_ERROR_CONTROL_MESSAGE_EXCHANGE - 179, // 5012 -> DCT_ERROR_CAPABILITY_MISMATCH - 182, // 5013 -> DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE - 198, // 5014 -> DCT_ERROR_WIFI_DISABLED - 199, // 5015 -> DCT_ERROR_WIFI_DISCONNECTED - 197, // 5016 -> DCT_ERROR_WIFI_CREDENTIAL_TRANSFER - 200, // 5017 -> DCT_ERROR_WIFI_INTERNET_CONNECTION - 195, // 5018 -> DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED - 185, // 5019 -> DCT_ERROR_KEEPALIVE_TIMEOUT - 181, // 5020 -> DCT_ERROR_ESTABLISHED_CONNECTION_LOST - 196, // 5021 -> DCT_ERROR_USER_CANCELLED - 192, // 5022 -> DCT_ERROR_SERVICE_CANCELLED - 194, // 5023 -> DCT_ERROR_UNVERIFIED_INTEGRITY - 183, // 5024 -> DCT_ERROR_HTTP_SERVER_CLOSED + 202, // 0 -> DETAIL_UNKNOWN + 201, // 1 -> DETAIL_SUCCESS + 28, // 500 -> CLIENT_CANCELLATION_REMOTE_IN_CANCELED_STATE + 24, // 501 -> CLIENT_CANCELLATION_LOCAL_CANCEL_PAYLOAD + 26, // 502 -> CLIENT_CANCELLATION_REMOTE_CANCEL_PAYLOAD + 29, // 503 -> CLIENT_CANCELLATION_UPGRADE_CANCELED_BY_REMOTE + 12, // 504 -> CLIENT_CANCELLATION_CANCEL_BLE_OUTGOING_CONNECTION + 13, // 505 -> CLIENT_CANCELLATION_CANCEL_BT_OUTGOING_CONNECTION + 15, // 506 -> CLIENT_CANCELLATION_CANCEL_L2CAP_OUTGOING_CONNECTION + 16, // 507 -> CLIENT_CANCELLATION_CANCEL_LAN_OUTGOING_CONNECTION + 17, // 508 -> CLIENT_CANCELLATION_CANCEL_NFC_OUTGOING_CONNECTION + 19, // 509 -> CLIENT_CANCELLATION_CANCEL_USB_OUTGOING_CONNECTION + 21, // 510 -> CLIENT_CANCELLATION_CANCEL_WIFI_AWARE_OUTGOING_CONNECTION + 22, // 511 -> CLIENT_CANCELLATION_CANCEL_WIFI_DIRECT_OUTGOING_CONNECTION + 23, // 512 -> CLIENT_CANCELLATION_CANCEL_WIFI_HOTSPOT_OUTGOING_CONNECTION + 20, // 513 -> CLIENT_CANCELLATION_CANCEL_WEB_RTC_OUTGOING_CONNECTION + 18, // 514 -> CLIENT_CANCELLATION_CANCEL_OUTGOING_CONNECTION + 14, // 515 -> CLIENT_CANCELLATION_CANCEL_INCOMING_CONNECTION + 31, // 516 -> CLIENT_CANCELLATION_WIFI_AWARE_SERVER_SOCKET_CREATION + 32, // 517 -> CLIENT_CANCELLATION_WIFI_DIRECT_SERVER_SOCKET_CREATION + 33, // 518 -> CLIENT_CANCELLATION_WIFI_HOTSPOT_SERVER_SOCKET_CREATION + 10, // 519 -> CLIENT_CANCELLATION_BT_SERVER_SOCKET_CREATION + 30, // 520 -> CLIENT_CANCELLATION_WEB_RTC_SERVER_SOCKET_CREATION + 34, // 521 -> CLIENT_CANCELLATION_WIFI_LAN_SERVER_SOCKET_CREATION + 25, // 522 -> CLIENT_CANCELLATION_LOCAL_DISCONNECT + 27, // 523 -> CLIENT_CANCELLATION_REMOTE_DISCONNECT + 9, // 524 -> CLIENT_CANCELLATION_AWDL_SERVER_SOCKET_CREATION + 11, // 525 -> CLIENT_CANCELLATION_CANCEL_AWDL_OUTGOING_CONNECTION + 203, // 1000 -> DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS + 204, // 1001 -> DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED + 205, // 1002 -> DEVICE_STATE_LOCATION_DISABLED + 206, // 1003 -> DEVICE_STATE_RADIO_DISABLING_FAILURE + 207, // 1004 -> DEVICE_STATE_RADIO_ENABLING_FAILURE + 264, // 1500 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE + 231, // 1501 -> MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT + 247, // 1502 -> MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT + 238, // 1503 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT + 239, // 1504 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G + 227, // 1505 -> MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE + 233, // 1506 -> MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE + 228, // 1507 -> MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE + 260, // 1508 -> MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE + 263, // 1509 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE + 269, // 1510 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE + 266, // 1511 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE + 242, // 1512 -> MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE + 236, // 1513 -> MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE + 258, // 1514 -> MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE + 226, // 1515 -> MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE + 230, // 1516 -> MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE + 235, // 1517 -> MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE + 241, // 1518 -> MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE + 257, // 1519 -> MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE + 259, // 1520 -> MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE + 262, // 1521 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE + 268, // 1522 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE + 265, // 1523 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE + 270, // 1524 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE + 267, // 1525 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE + 251, // 1526 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS + 253, // 1527 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS + 256, // 1528 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS + 254, // 1529 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS + 252, // 1530 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS + 255, // 1531 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS + 237, // 1532 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE + 246, // 1533 -> MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE + 223, // 1534 -> MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP + 224, // 1535 -> MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS + 245, // 1536 -> MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION + 250, // 1537 -> MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM + 261, // 1538 -> MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET + 248, // 1539 -> MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE + 249, // 1540 -> MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW + 232, // 1541 -> MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING + 243, // 1542 -> MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE + 240, // 1543 -> MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE + 234, // 1544 -> MEDIUM_UNAVAILABLE_LAN_BLOCKED + 244, // 1545 -> MEDIUM_UNAVAILABLE_POOR_SIGNAL + 229, // 1546 -> MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED + 225, // 1547 -> MEDIUM_UNAVAILABLE_AWDL_NOT_AVAILABLE + 60, // 2000 -> CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT + 61, // 2001 -> CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT + 37, // 2002 -> CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST + 39, // 2003 -> CLIENT_DUPLICATE_ACCEPTING_L2CAP_CONNECTION_REQUEST + 38, // 2004 -> CLIENT_DUPLICATE_ACCEPTING_BT_CONNECTION_REQUEST + 40, // 2005 -> CLIENT_DUPLICATE_ACCEPTING_LAN_CONNECTION_REQUEST + 41, // 2006 -> CLIENT_DUPLICATE_ACCEPTING_NFC_CONNECTION_REQUEST + 43, // 2007 -> CLIENT_DUPLICATE_ACCEPTING_WEB_RTC_CONNECTION_REQUEST + 44, // 2008 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_AWARE_CONNECTION_REQUEST + 46, // 2009 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_HOTSPOT_CONNECTION_REQUEST + 45, // 2010 -> CLIENT_DUPLICATE_ACCEPTING_WIFI_DIRECT_CONNECTION_REQUEST + 42, // 2011 -> CLIENT_DUPLICATE_ACCEPTING_USB_CONNECTION_REQUEST + 47, // 2012 -> CLIENT_DUPLICATE_WIFI_AWARE_CONNECTION_REQUEST + 49, // 2013 -> CLIENT_DUPLICATE_WIFI_DIRECT_CONNECTION_REQUEST + 50, // 2014 -> CLIENT_DUPLICATE_WIFI_HOTSPOT_CONNECTION_REQUEST + 48, // 2015 -> CLIENT_DUPLICATE_WIFI_AWARE_SUBSCRIBING_REQUEST + 57, // 2016 -> CLIENT_UNSUPPORTED_USB_TO_BE_UPGRADE_MEDIUM + 56, // 2017 -> CLIENT_PROCESS_TIE_BREAK_LOSS + 4, // 2018 -> CLIENT_BLE_DUPLICATE_ADVERTISING + 7, // 2019 -> CLIENT_BLUETOOTH_DUPLICATE_ADVERTISING + 52, // 2020 -> CLIENT_NFC_DUPLICATE_ADVERTISING + 62, // 2021 -> CLIENT_WIFI_LAN_DUPLICATE_ADVERTISING + 58, // 2022 -> CLIENT_USB_DUPLICATE_ADVERTISING + 5, // 2023 -> CLIENT_BLE_DUPLICATE_DISCOVERING + 8, // 2024 -> CLIENT_BLUETOOTH_DUPLICATE_DISCOVERING + 53, // 2025 -> CLIENT_NFC_DUPLICATE_DISCOVERING + 63, // 2026 -> CLIENT_WIFI_LAN_DUPLICATE_DISCOVERING + 59, // 2027 -> CLIENT_USB_DUPLICATE_DISCOVERING + 55, // 2028 -> CLIENT_PERMISSION_FAILURE + 6, // 2029 -> CLIENT_BLE_NO_LISTENING + 1, // 2030 -> CLIENT_ALREADY_CONNECTED_TO_TARGET + 51, // 2031 -> CLIENT_FAILED_INCOMING_CONNECTION_DUE_TO_TOPOLOGICAL_LIMIT + 54, // 2032 -> CLIENT_OUT_OF_ORDER_API_CALL + 64, // 2033 -> CLIENT_WRONG_CONNECTING_PERMISSIONS + 0, // 2034 -> CLIENT_ALREADY_CONNECTED_TO_ENDPOINT + 35, // 2035 -> CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT + 2, // 2036 -> CLIENT_AWDL_DUPLICATE_ADVERTISING + 3, // 2037 -> CLIENT_AWDL_DUPLICATE_DISCOVERING + 36, // 2038 -> CLIENT_DUPLICATE_ACCEPTING_AWDL_CONNECTION_REQUEST + 273, // 2500 -> MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL + 277, // 2501 -> MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM + 284, // 2502 -> MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION + 271, // 2503 -> MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL + 276, // 2504 -> MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL + 275, // 2505 -> MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL + 282, // 2506 -> MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL + 283, // 2507 -> MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL + 286, // 2508 -> MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL + 285, // 2509 -> MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL + 274, // 2510 -> MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE + 279, // 2511 -> MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE + 281, // 2512 -> MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL + 278, // 2513 -> MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE + 272, // 2514 -> MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE + 280, // 2515 -> MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL + 287, // 2516 -> MISCELLEANEOUS_WORK_SOURCE_NULL + 218, // 3000 -> IO_FILE_OPENING_ERROR + 219, // 3001 -> IO_FILE_READING_ERROR + 220, // 3002 -> IO_FILE_WRITING_ERROR + 221, // 3003 -> IO_FOLDER_CREATION_ERROR + 222, // 3004 -> IO_STREAM_CREATE_PIPE_FAILURE + 208, // 3005 -> IO_ENDPOINT_IO_ERROR_ON_BLE + 209, // 3006 -> IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP + 210, // 3007 -> IO_ENDPOINT_IO_ERROR_ON_BT + 214, // 3008 -> IO_ENDPOINT_IO_ERROR_ON_WEB_RTC + 211, // 3009 -> IO_ENDPOINT_IO_ERROR_ON_LAN + 216, // 3010 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT + 217, // 3011 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT + 215, // 3012 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE + 212, // 3013 -> IO_ENDPOINT_IO_ERROR_ON_NFC + 213, // 3014 -> IO_ENDPOINT_IO_ERROR_ON_USB + 135, // 3500 -> CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE + 78, // 3501 -> CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE + 71, // 3502 -> CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE + 109, // 3503 -> CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_FAILURE + 82, // 3504 -> CONNECTIVITY_BT_CLIENT_SOCKET_CREATION_FAILURE + 114, // 3505 -> CONNECTIVITY_LAN_CLIENT_SOCKET_CREATION_FAILURE + 121, // 3506 -> CONNECTIVITY_NFC_CLIENT_SOCKET_CREATION_FAILURE + 126, // 3507 -> CONNECTIVITY_WEB_RTC_CLIENT_SOCKET_CREATION_FAILURE + 136, // 3508 -> CONNECTIVITY_WIFI_AWARE_CLIENT_SOCKET_CREATION_FAILURE + 159, // 3509 -> CONNECTIVITY_WIFI_HOTSPOT_CLIENT_SOCKET_CREATION_FAILURE + 151, // 3510 -> CONNECTIVITY_WIFI_DIRECT_CLIENT_SOCKET_CREATION_FAILURE + 124, // 3511 -> CONNECTIVITY_USB_CLIENT_SOCKET_CREATION_FAILURE + 127, // 3512 -> CONNECTIVITY_WEB_RTC_CONNECT_TO_TACHYON_FAILURE + 72, // 3513 -> CONNECTIVITY_BLE_CREATE_GATT_CONNECTION_FAILURE + 142, // 3514 -> CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_FRAME_FAILURE + 141, // 3515 -> CONNECTIVITY_WIFI_AWARE_GET_REMOTE_IP_ADDRESS_FAILURE + 153, // 3516 -> CONNECTIVITY_WIFI_DIRECT_INCONSISTENT_HOSTED_WIFI_BAND + 161, // 3517 -> CONNECTIVITY_WIFI_HOTSPOT_INCONSISTENT_HOSTED_WIFI_BAND + 79, // 3518 -> CONNECTIVITY_BLUETOOTH_INVALID_CREDENTIAL + 170, // 3519 -> CONNECTIVITY_WIFI_LAN_INVALID_CREDENTIAL + 154, // 3520 -> CONNECTIVITY_WIFI_DIRECT_INVALID_CREDENTIAL + 162, // 3521 -> CONNECTIVITY_WIFI_HOTSPOT_INVALID_CREDENTIAL + 143, // 3522 -> CONNECTIVITY_WIFI_AWARE_INVALID_CREDENTIAL + 128, // 3523 -> CONNECTIVITY_WEB_RTC_INVALID_CREDENTIAL + 171, // 3524 -> CONNECTIVITY_WIFI_LAN_IP_ADDRESS_ERROR + 108, // 3525 -> CONNECTIVITY_L2CAP_CLIENT_OBTAIN_FAIURE + 111, // 3526 -> CONNECTIVITY_L2CAP_DATA_CONNECTION_FAILURE + 145, // 3527 -> CONNECTIVITY_WIFI_AWARE_L2MESSAGE_NETWORK_AVAILABLE_FRAME_NULL + 146, // 3528 -> CONNECTIVITY_WIFI_AWARE_L2MESSAGE_SEND_HOST_NETWORK_FRAME_FAILURE + 118, // 3529 -> CONNECTIVITY_LAN_UNREACHABLE + 164, // 3530 -> CONNECTIVITY_WIFI_HOTSPOT_LOHS_CREATION_FAILURE + 115, // 3531 -> CONNECTIVITY_LAN_GET_NETWORK_INTERFACES_FAILURE + 152, // 3532 -> CONNECTIVITY_WIFI_DIRECT_GET_NETWORK_INTERFACES_FAILURE + 160, // 3533 -> CONNECTIVITY_WIFI_HOTSPOT_GET_NETWORK_INTERFACES_FAILURE + 165, // 3534 -> CONNECTIVITY_WIFI_HOTSPOT_P2P_CHANNEL_INITIALIZE_FAILURE + 155, // 3535 -> CONNECTIVITY_WIFI_DIRECT_P2P_CHANNEL_INITIALIZE_FAILURE + 166, // 3536 -> CONNECTIVITY_WIFI_HOTSPOT_P2P_GROUP_CREATION_FAILURE + 157, // 3537 -> CONNECTIVITY_WIFI_DIRECT_P2P_GROUP_CREATION_FAILURE + 103, // 3538 -> CONNECTIVITY_GATT_SERVER_OPEN_FAILURE + 74, // 3539 -> CONNECTIVITY_BLE_SERVER_SOCKET_CREATION_FAILURE + 112, // 3540 -> CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_FAILURE + 86, // 3541 -> CONNECTIVITY_BT_SERVER_SOCKET_CREATION_FAILURE + 117, // 3542 -> CONNECTIVITY_LAN_SERVER_SOCKET_CREATION_FAILURE + 129, // 3543 -> CONNECTIVITY_WEB_RTC_SERVER_SOCKET_CREATION_FAILURE + 147, // 3544 -> CONNECTIVITY_WIFI_AWARE_SERVER_SOCKET_CREATION_FAILURE + 167, // 3545 -> CONNECTIVITY_WIFI_HOTSPOT_SERVER_SOCKET_CREATION_FAILURE + 158, // 3546 -> CONNECTIVITY_WIFI_DIRECT_SERVER_SOCKET_CREATION_FAILURE + 122, // 3547 -> CONNECTIVITY_NFC_SERVER_SOCKET_CREATION_FAILURE + 168, // 3548 -> CONNECTIVITY_WIFI_HOTSPOT_SOFT_AP_CREATION_FAILURE + 150, // 3549 -> CONNECTIVITY_WIFI_AWARE_UPDATE_PUBLISH_FAILURE + 106, // 3550 -> CONNECTIVITY_GENERIC_WRITING_CHANNEL_IO_ERROR + 105, // 3551 -> CONNECTIVITY_GENERIC_WRITE_CLIENT_INTRODUCTION_ACK_IO_ERROR + 137, // 3552 -> CONNECTIVITY_WIFI_AWARE_DISCOVERED_PEER_NULL + 104, // 3553 -> CONNECTIVITY_GENERIC_PAYLOAD_SENT_ERROR + 113, // 3554 -> CONNECTIVITY_L2CAP_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE + 87, // 3555 -> CONNECTIVITY_BT_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE + 110, // 3556 -> CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_TIMEOUT_FAILURE + 130, // 3557 -> CONNECTIVITY_WEB_RTC_UNSATISFIED_LINK_ERROR + 102, // 3558 -> CONNECTIVITY_DIRECT_GROUP_MCC_FAILURE + 91, // 3559 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE + 92, // 3560 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE_L2CAP + 93, // 3561 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_BT + 98, // 3562 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WEB_RTC + 94, // 3563 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_LAN + 100, // 3564 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_DIRECT + 101, // 3565 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_HOTSPOT + 99, // 3566 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_AWARE + 95, // 3567 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_NFC + 97, // 3568 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_USB + 96, // 3569 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_UNKNOWN_MEDIUM + 89, // 3570 -> CONNECTIVITY_BT_SOCKET_CREATION_IO_EXCEPTION + 88, // 3571 -> CONNECTIVITY_BT_SOCKET_CONNECT_IO_EXCEPTION + 84, // 3572 -> CONNECTIVITY_BT_CONNECTION_INTERRUPTED_EXCEPTION + 83, // 3573 -> CONNECTIVITY_BT_CONNECTION_EXECUTION_EXCEPTION + 85, // 3574 -> CONNECTIVITY_BT_CONNECTION_TIMEOUT_EXCEPTION + 156, // 3575 -> CONNECTIVITY_WIFI_DIRECT_P2P_CONNECTION_FAILURE + 133, // 3576 -> CONNECTIVITY_WFD_CONNECTION_INTERRUPTED_EXCEPTION + 131, // 3577 -> CONNECTIVITY_WFD_CONNECTION_EXECUTION_EXCEPTION + 134, // 3578 -> CONNECTIVITY_WFD_CONNECTION_TIMEOUT_EXCEPTION + 132, // 3579 -> CONNECTIVITY_WFD_CONNECTION_HOSTED_ADDRESS_NULL + 169, // 3580 -> CONNECTIVITY_WIFI_HOTSPOT_SPECIFIER_FAILURE + 163, // 3581 -> CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE + 173, // 3582 -> CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_TIMEOUT + 172, // 3583 -> CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_IO_EXCEPTION + 76, // 3584 -> CONNECTIVITY_BLE_START_GATT_SERVER_FAILURE + 70, // 3585 -> CONNECTIVITY_BLE_ADD_GATT_ADVERTISEMENT_FAILURE + 75, // 3586 -> CONNECTIVITY_BLE_START_ADVERTISING_FAILURE + 81, // 3587 -> CONNECTIVITY_BLUETOOTH_START_ADVERTISING_FAILURE + 174, // 3588 -> CONNECTIVITY_WIFI_LAN_START_ADVERTISING_FAILURE + 148, // 3589 -> CONNECTIVITY_WIFI_AWARE_START_ADVERTISING_FAILURE + 80, // 3590 -> CONNECTIVITY_BLUETOOTH_SCAN_FAILURE + 73, // 3591 -> CONNECTIVITY_BLE_SCAN_FAILURE + 119, // 3592 -> CONNECTIVITY_MDNS_SCAN_FAILURE + 123, // 3593 -> CONNECTIVITY_NFC_START_DISCOVERY_FAILURE + 175, // 3594 -> CONNECTIVITY_WIFI_LAN_START_DISCOVERY_FAILURE + 149, // 3595 -> CONNECTIVITY_WIFI_AWARE_START_DISCOVERY_FAILURE + 125, // 3596 -> CONNECTIVITY_UWB_START_DISCOVERY_FAILURE + 116, // 3597 -> CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE + 77, // 3598 -> CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE + 65, // 3599 -> CONNECTIVITY_AUTO_RESUME_FAILURE + 107, // 3600 -> CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT + 120, // 3601 -> CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL + 68, // 3602 -> CONNECTIVITY_AWDL_START_ADVERTISING_FAILURE + 69, // 3603 -> CONNECTIVITY_AWDL_START_DISCOVERY_FAILURE + 67, // 3604 -> CONNECTIVITY_AWDL_INVALID_CREDENTIAL + 66, // 3605 -> CONNECTIVITY_AWDL_CLIENT_SOCKET_CREATION_FAILURE + 90, // 3606 -> CONNECTIVITY_CHANNEL_IO_ERROR_ON_AWDL + 140, // 3607 -> CONNECTIVITY_WIFI_AWARE_DO_UNAVAILABLE + 138, // 3608 -> CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_SCREEN_OFF + 139, // 3609 -> CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_TIMEOUT + 144, // 3610 -> CONNECTIVITY_WIFI_AWARE_JOIN_NETWORK_FAILED + 292, // 4500 -> NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR + 302, // 4501 -> NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT + 362, // 4502 -> NEARBY_WEB_RTC_CONNECTION_FLOW_NULL + 316, // 4503 -> NEARBY_GENERIC_CONNECTION_CLOSED + 294, // 4504 -> NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE + 334, // 4505 -> NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE + 305, // 4506 -> NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE + 338, // 4507 -> NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE + 349, // 4508 -> NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE + 370, // 4509 -> NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE + 388, // 4510 -> NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE + 375, // 4511 -> NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE + 363, // 4512 -> NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE + 358, // 4513 -> NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE + 317, // 4514 -> NEARBY_GENERIC_ENDPOINT_UNENCRYPTED + 296, // 4515 -> NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION + 376, // 4516 -> NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS + 389, // 4517 -> NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS + 297, // 4518 -> NEARBY_BLE_GATT_NULL_CALLBACK + 335, // 4519 -> NEARBY_L2CAP_NULL_CALLBACK + 307, // 4520 -> NEARBY_BT_NULL_CALLBACK + 360, // 4521 -> NEARBY_USB_NULL_CALLBACK + 351, // 4522 -> NEARBY_NFC_NULL_CALLBACK + 372, // 4523 -> NEARBY_WIFI_AWARE_NULL_CALLBACK + 366, // 4524 -> NEARBY_WEB_RTC_NULL_CALLBACK + 340, // 4525 -> NEARBY_LAN_NULL_CALLBACK + 392, // 4526 -> NEARBY_WIFI_HOTSPOT_NULL_CALLBACK + 378, // 4527 -> NEARBY_WIFI_DIRECT_NULL_CALLBACK + 380, // 4528 -> NEARBY_WIFI_DIRECT_NULL_SSID + 379, // 4529 -> NEARBY_WIFI_DIRECT_NULL_PASSWORD + 306, // 4530 -> NEARBY_BT_MULTIPLEX_SOCKET_DISABLED + 339, // 4531 -> NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED + 320, // 4532 -> NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL + 377, // 4533 -> NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING + 391, // 4534 -> NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING + 321, // 4535 -> NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL + 299, // 4536 -> NEARBY_BLE_OPERATION_REGISTERED_FAILED + 336, // 4537 -> NEARBY_L2CAP_OPERATION_REGISTERED_FAILED + 308, // 4538 -> NEARBY_BT_OPERATION_REGISTERED_FAILED + 341, // 4539 -> NEARBY_LAN_OPERATION_REGISTERED_FAILED + 367, // 4540 -> NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED + 373, // 4541 -> NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED + 387, // 4542 -> NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED + 397, // 4543 -> NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED + 390, // 4544 -> NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED + 386, // 4545 -> NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED + 381, // 4546 -> NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED + 322, // 4547 -> NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE + 393, // 4548 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G + 382, // 4549 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G + 394, // 4550 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G + 383, // 4551 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G + 319, // 4552 -> NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE + 326, // 4553 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR + 328, // 4554 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR + 327, // 4555 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR + 323, // 4556 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR + 325, // 4557 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR + 324, // 4558 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR + 329, // 4559 -> NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR + 330, // 4560 -> NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR + 331, // 4561 -> NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE + 332, // 4562 -> NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL + 309, // 4563 -> NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE + 344, // 4564 -> NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE + 400, // 4565 -> NEARBY_WIFI_LAN_IP_ADDRESS_ERROR + 337, // 4566 -> NEARBY_L2CAP_PSM_NOT_POSITIVE + 314, // 4567 -> NEARBY_ENCRYPTION_FAILURE + 288, // 4568 -> NEARBY_AUTHENTICATION_FAILURE + 345, // 4569 -> NEARBY_LAN_VIRTUAL_SOCKET_NULL + 300, // 4570 -> NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE + 293, // 4571 -> NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE + 295, // 4572 -> NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE + 348, // 4573 -> NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE + 398, // 4574 -> NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE + 369, // 4575 -> NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE + 357, // 4576 -> NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE + 350, // 4577 -> NEARBY_NFC_INVALID_PCP_OPTIONS + 301, // 4578 -> NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS + 298, // 4579 -> NEARBY_BLE_INVALID_PCP_OPTIONS + 399, // 4580 -> NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS + 371, // 4581 -> NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS + 359, // 4582 -> NEARBY_USB_INVALID_PCP_OPTIONS + 361, // 4583 -> NEARBY_UWB_INVALID_PCP_OPTIONS + 364, // 4584 -> NEARBY_WEB_RTC_INVALID_PCP_OPTIONS + 303, // 4585 -> NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN + 333, // 4586 -> NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO + 347, // 4587 -> NEARBY_NEED_METHOD_OVERRIDE + 318, // 4588 -> NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE + 365, // 4589 -> NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND + 356, // 4590 -> NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM + 313, // 4591 -> NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE + 304, // 4592 -> NEARBY_BLUETOOTH_RECONNECT_MAC_NULL + 342, // 4593 -> NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL + 343, // 4594 -> NEARBY_LAN_RECONNECT_IP_NULL + 385, // 4595 -> NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL + 384, // 4596 -> NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL + 396, // 4597 -> NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL + 395, // 4598 -> NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL + 368, // 4599 -> NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL + 374, // 4600 -> NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL + 352, // 4601 -> NEARBY_NOT_ADVERTISING_OR_LISTENING + 310, // 4602 -> NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER + 354, // 4603 -> NEARBY_SETUP_STRATEGY_FAILURE + 355, // 4604 -> NEARBY_TX_ADVERTISEMENT_NULL + 315, // 4605 -> NEARBY_ENDPOINT_ID_MISMATCH + 312, // 4606 -> NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG + 346, // 4607 -> NEARBY_LOCAL_CLIENT_STATE_WRONG + 353, // 4608 -> NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD + 291, // 4609 -> NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD + 311, // 4610 -> NEARBY_CONNECTION_LISTENER_NULL + 289, // 4611 -> NEARBY_AWDL_ADVERTISE_TO_BYTES_FAILURE + 290, // 4612 -> NEARBY_AWDL_ENDPOINT_CHANNEL_CREATION_FAILURE + 177, // 5000 -> DCT_ERROR_BLE_DISABLED + 176, // 5001 -> DCT_ERROR_BLE_ADV_FAILED + 178, // 5002 -> DCT_ERROR_BLE_SCAN_FAILED + 187, // 5003 -> DCT_ERROR_L2CAP_SERVER_FAILED + 186, // 5004 -> DCT_ERROR_L2CAP_CLIENT_FAILED + 188, // 5005 -> DCT_ERROR_MDNS_DISCOVERY_TIMEOUT + 189, // 5006 -> DCT_ERROR_MDNS_REGISTER_SERVICE + 184, // 5007 -> DCT_ERROR_INITIAL_TLS_SPAKE + 193, // 5008 -> DCT_ERROR_SUBSEQUENT_TLS_SPAKE + 190, // 5009 -> DCT_ERROR_REQUEST_FAILED + 191, // 5010 -> DCT_ERROR_RESPONSE_FAILED + 180, // 5011 -> DCT_ERROR_CONTROL_MESSAGE_EXCHANGE + 179, // 5012 -> DCT_ERROR_CAPABILITY_MISMATCH + 182, // 5013 -> DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE + 198, // 5014 -> DCT_ERROR_WIFI_DISABLED + 199, // 5015 -> DCT_ERROR_WIFI_DISCONNECTED + 197, // 5016 -> DCT_ERROR_WIFI_CREDENTIAL_TRANSFER + 200, // 5017 -> DCT_ERROR_WIFI_INTERNET_CONNECTION + 195, // 5018 -> DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED + 185, // 5019 -> DCT_ERROR_KEEPALIVE_TIMEOUT + 181, // 5020 -> DCT_ERROR_ESTABLISHED_CONNECTION_LOST + 196, // 5021 -> DCT_ERROR_USER_CANCELLED + 192, // 5022 -> DCT_ERROR_SERVICE_CANCELLED + 194, // 5023 -> DCT_ERROR_UNVERIFIED_INTEGRITY + 183, // 5024 -> DCT_ERROR_HTTP_SERVER_CLOSED }; -const std::string& OperationResultCode_Name( - OperationResultCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OperationResultCode_entries, - OperationResultCode_entries_by_number, - 401, OperationResultCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OperationResultCode_entries, - OperationResultCode_entries_by_number, - 401, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OperationResultCode_strings[idx].get(); +const ::std::string& OperationResultCode_Name(OperationResultCode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + OperationResultCode_entries, OperationResultCode_entries_by_number, 401, + OperationResultCode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(OperationResultCode_entries, + OperationResultCode_entries_by_number, + 401, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OperationResultCode_strings[idx].get(); } -bool OperationResultCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCode* value) { + +bool OperationResultCode_Parse(::absl::string_view name, OperationResultCode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( OperationResultCode_entries, 401, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StopAdvertisingReason_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StopAdvertisingReason_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StopAdvertisingReason_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StopAdvertisingReason_strings[3] = {}; +static const char StopAdvertisingReason_names[] = { + "CLIENT_STOP_ADVERTISING" + "FINISH_SESSION_STOP_ADVERTISING" + "STOP_ADVERTISING_REASON_UNKNOWN" +}; -static const char StopAdvertisingReason_names[] = - "CLIENT_STOP_ADVERTISING" - "FINISH_SESSION_STOP_ADVERTISING" - "STOP_ADVERTISING_REASON_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StopAdvertisingReason_entries[] = { - { {StopAdvertisingReason_names + 0, 23}, 1 }, - { {StopAdvertisingReason_names + 23, 31}, 2 }, - { {StopAdvertisingReason_names + 54, 31}, 0 }, +static const ::google::protobuf::internal::EnumEntry StopAdvertisingReason_entries[] = { + {{&StopAdvertisingReason_names[0], 23}, 1}, + {{&StopAdvertisingReason_names[23], 31}, 2}, + {{&StopAdvertisingReason_names[54], 31}, 0}, }; static const int StopAdvertisingReason_entries_by_number[] = { - 2, // 0 -> STOP_ADVERTISING_REASON_UNKNOWN - 0, // 1 -> CLIENT_STOP_ADVERTISING - 1, // 2 -> FINISH_SESSION_STOP_ADVERTISING + 2, // 0 -> STOP_ADVERTISING_REASON_UNKNOWN + 0, // 1 -> CLIENT_STOP_ADVERTISING + 1, // 2 -> FINISH_SESSION_STOP_ADVERTISING }; -const std::string& StopAdvertisingReason_Name( - StopAdvertisingReason value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StopAdvertisingReason_entries, - StopAdvertisingReason_entries_by_number, - 3, StopAdvertisingReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StopAdvertisingReason_entries, - StopAdvertisingReason_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StopAdvertisingReason_strings[idx].get(); +const ::std::string& StopAdvertisingReason_Name(StopAdvertisingReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StopAdvertisingReason_entries, StopAdvertisingReason_entries_by_number, 3, + StopAdvertisingReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StopAdvertisingReason_entries, + StopAdvertisingReason_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StopAdvertisingReason_strings[idx].get(); } -bool StopAdvertisingReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopAdvertisingReason* value) { + +bool StopAdvertisingReason_Parse(::absl::string_view name, StopAdvertisingReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StopAdvertisingReason_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StopDiscoveringReason_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StopDiscoveringReason_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StopDiscoveringReason_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StopDiscoveringReason_strings[3] = {}; +static const char StopDiscoveringReason_names[] = { + "CLIENT_STOP_DISCOVERING" + "FINISH_SESSION_STOP_DISCOVERING" + "STOP_DISCOVERING_REASON_UNKNOWN" +}; -static const char StopDiscoveringReason_names[] = - "CLIENT_STOP_DISCOVERING" - "FINISH_SESSION_STOP_DISCOVERING" - "STOP_DISCOVERING_REASON_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StopDiscoveringReason_entries[] = { - { {StopDiscoveringReason_names + 0, 23}, 1 }, - { {StopDiscoveringReason_names + 23, 31}, 2 }, - { {StopDiscoveringReason_names + 54, 31}, 0 }, +static const ::google::protobuf::internal::EnumEntry StopDiscoveringReason_entries[] = { + {{&StopDiscoveringReason_names[0], 23}, 1}, + {{&StopDiscoveringReason_names[23], 31}, 2}, + {{&StopDiscoveringReason_names[54], 31}, 0}, }; static const int StopDiscoveringReason_entries_by_number[] = { - 2, // 0 -> STOP_DISCOVERING_REASON_UNKNOWN - 0, // 1 -> CLIENT_STOP_DISCOVERING - 1, // 2 -> FINISH_SESSION_STOP_DISCOVERING + 2, // 0 -> STOP_DISCOVERING_REASON_UNKNOWN + 0, // 1 -> CLIENT_STOP_DISCOVERING + 1, // 2 -> FINISH_SESSION_STOP_DISCOVERING }; -const std::string& StopDiscoveringReason_Name( - StopDiscoveringReason value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StopDiscoveringReason_entries, - StopDiscoveringReason_entries_by_number, - 3, StopDiscoveringReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StopDiscoveringReason_entries, - StopDiscoveringReason_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StopDiscoveringReason_strings[idx].get(); +const ::std::string& StopDiscoveringReason_Name(StopDiscoveringReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StopDiscoveringReason_entries, StopDiscoveringReason_entries_by_number, 3, + StopDiscoveringReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StopDiscoveringReason_entries, + StopDiscoveringReason_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StopDiscoveringReason_strings[idx].get(); } -bool StopDiscoveringReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringReason* value) { + +bool StopDiscoveringReason_Parse(::absl::string_view name, StopDiscoveringReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StopDiscoveringReason_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[4] = {}; +static const char DeviceType_names[] = { + "DCT" + "NEARBY_CONNECTION" + "NEARBY_PRESENCE" + "UNKNOWN_TYPE" +}; -static const char DeviceType_names[] = - "DCT" - "NEARBY_CONNECTION" - "NEARBY_PRESENCE" - "UNKNOWN_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = { - { {DeviceType_names + 0, 3}, 3 }, - { {DeviceType_names + 3, 17}, 1 }, - { {DeviceType_names + 20, 15}, 2 }, - { {DeviceType_names + 35, 12}, 0 }, +static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { + {{&DeviceType_names[0], 3}, 3}, + {{&DeviceType_names[3], 17}, 1}, + {{&DeviceType_names[20], 15}, 2}, + {{&DeviceType_names[35], 12}, 0}, }; static const int DeviceType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_TYPE - 1, // 1 -> NEARBY_CONNECTION - 2, // 2 -> NEARBY_PRESENCE - 0, // 3 -> DCT + 3, // 0 -> UNKNOWN_TYPE + 1, // 1 -> NEARBY_CONNECTION + 2, // 2 -> NEARBY_PRESENCE + 0, // 3 -> DCT }; -const std::string& DeviceType_Name( - DeviceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DeviceType_entries, - DeviceType_entries_by_number, - 4, DeviceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DeviceType_entries, - DeviceType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DeviceType_strings[idx].get(); +const ::std::string& DeviceType_Name(DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceType_entries, DeviceType_entries_by_number, 4, + DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, + DeviceType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); } -bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { + +bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DeviceType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SupportedService_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SupportedService_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SupportedService_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SupportedService_strings[4] = {}; +static const char SupportedService_names[] = { + "SUPPORTED_SERVICE_DATA_MIGRATION" + "SUPPORTED_SERVICE_DATA_TRANSFER" + "SUPPORTED_SERVICE_SETTINGS_ESIM" + "SUPPORTED_SERVICE_UNSPECIFIED" +}; -static const char SupportedService_names[] = - "SUPPORTED_SERVICE_DATA_MIGRATION" - "SUPPORTED_SERVICE_DATA_TRANSFER" - "SUPPORTED_SERVICE_SETTINGS_ESIM" - "SUPPORTED_SERVICE_UNSPECIFIED"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SupportedService_entries[] = { - { {SupportedService_names + 0, 32}, 2 }, - { {SupportedService_names + 32, 31}, 3 }, - { {SupportedService_names + 63, 31}, 1 }, - { {SupportedService_names + 94, 29}, 0 }, +static const ::google::protobuf::internal::EnumEntry SupportedService_entries[] = { + {{&SupportedService_names[0], 32}, 2}, + {{&SupportedService_names[32], 31}, 3}, + {{&SupportedService_names[63], 31}, 1}, + {{&SupportedService_names[94], 29}, 0}, }; static const int SupportedService_entries_by_number[] = { - 3, // 0 -> SUPPORTED_SERVICE_UNSPECIFIED - 2, // 1 -> SUPPORTED_SERVICE_SETTINGS_ESIM - 0, // 2 -> SUPPORTED_SERVICE_DATA_MIGRATION - 1, // 3 -> SUPPORTED_SERVICE_DATA_TRANSFER + 3, // 0 -> SUPPORTED_SERVICE_UNSPECIFIED + 2, // 1 -> SUPPORTED_SERVICE_SETTINGS_ESIM + 0, // 2 -> SUPPORTED_SERVICE_DATA_MIGRATION + 1, // 3 -> SUPPORTED_SERVICE_DATA_TRANSFER }; -const std::string& SupportedService_Name( - SupportedService value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SupportedService_entries, - SupportedService_entries_by_number, - 4, SupportedService_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SupportedService_entries, - SupportedService_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SupportedService_strings[idx].get(); +const ::std::string& SupportedService_Name(SupportedService value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SupportedService_entries, SupportedService_entries_by_number, 4, + SupportedService_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SupportedService_entries, + SupportedService_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SupportedService_strings[idx].get(); } -bool SupportedService_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SupportedService* value) { + +bool SupportedService_Parse(::absl::string_view name, SupportedService* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SupportedService_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DctPayloadType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DctPayloadType_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DctPayloadType_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DctPayloadType_strings[5] = {}; +static const char DctPayloadType_names[] = { + "DCT_PAYLOAD_TYPE_BYTES_RESPONSE" + "DCT_PAYLOAD_TYPE_FILES_RESPONSE" + "DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE" + "DCT_PAYLOAD_TYPE_REQUEST" + "DCT_PAYLOAD_TYPE_UNSPECIFIED" +}; -static const char DctPayloadType_names[] = - "DCT_PAYLOAD_TYPE_BYTES_RESPONSE" - "DCT_PAYLOAD_TYPE_FILES_RESPONSE" - "DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE" - "DCT_PAYLOAD_TYPE_REQUEST" - "DCT_PAYLOAD_TYPE_UNSPECIFIED"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DctPayloadType_entries[] = { - { {DctPayloadType_names + 0, 31}, 2 }, - { {DctPayloadType_names + 31, 31}, 3 }, - { {DctPayloadType_names + 62, 32}, 4 }, - { {DctPayloadType_names + 94, 24}, 1 }, - { {DctPayloadType_names + 118, 28}, 0 }, +static const ::google::protobuf::internal::EnumEntry DctPayloadType_entries[] = { + {{&DctPayloadType_names[0], 31}, 2}, + {{&DctPayloadType_names[31], 31}, 3}, + {{&DctPayloadType_names[62], 32}, 4}, + {{&DctPayloadType_names[94], 24}, 1}, + {{&DctPayloadType_names[118], 28}, 0}, }; static const int DctPayloadType_entries_by_number[] = { - 4, // 0 -> DCT_PAYLOAD_TYPE_UNSPECIFIED - 3, // 1 -> DCT_PAYLOAD_TYPE_REQUEST - 0, // 2 -> DCT_PAYLOAD_TYPE_BYTES_RESPONSE - 1, // 3 -> DCT_PAYLOAD_TYPE_FILES_RESPONSE - 2, // 4 -> DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE + 4, // 0 -> DCT_PAYLOAD_TYPE_UNSPECIFIED + 3, // 1 -> DCT_PAYLOAD_TYPE_REQUEST + 0, // 2 -> DCT_PAYLOAD_TYPE_BYTES_RESPONSE + 1, // 3 -> DCT_PAYLOAD_TYPE_FILES_RESPONSE + 2, // 4 -> DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE }; -const std::string& DctPayloadType_Name( - DctPayloadType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DctPayloadType_entries, - DctPayloadType_entries_by_number, - 5, DctPayloadType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DctPayloadType_entries, - DctPayloadType_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DctPayloadType_strings[idx].get(); +const ::std::string& DctPayloadType_Name(DctPayloadType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DctPayloadType_entries, DctPayloadType_entries_by_number, 5, + DctPayloadType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DctPayloadType_entries, + DctPayloadType_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DctPayloadType_strings[idx].get(); } -bool DctPayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DctPayloadType* value) { + +bool DctPayloadType_Parse(::absl::string_view name, DctPayloadType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DctPayloadType_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // @@protoc_insertion_point(namespace_scope) } // namespace connections } // namespace proto } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/connections_enums.pb.h b/compiled_proto/proto/connections_enums.pb.h index a1708e54..0d0dcf74 100644 --- a/compiled_proto/proto/connections_enums.pb.h +++ b/compiled_proto/proto/connections_enums.pb.h @@ -1,62 +1,208 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/connections_enums.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fconnections_5fenums_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fconnections_5fenums_2eproto +#ifndef proto_2fconnections_5fenums_2eproto_2epb_2eh +#define proto_2fconnections_5fenums_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019005 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fconnections_5fenums_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fconnections_5fenums_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE namespace location { namespace nearby { namespace proto { namespace connections { +enum Bandwidth : int; +extern const uint32_t Bandwidth_internal_data_[]; +enum BandwidthUpgradeErrorStage : int; +extern const uint32_t BandwidthUpgradeErrorStage_internal_data_[]; +enum BandwidthUpgradeResult : int; +extern const uint32_t BandwidthUpgradeResult_internal_data_[]; +enum ConnectionAttemptDirection : int; +extern const uint32_t ConnectionAttemptDirection_internal_data_[]; +enum ConnectionAttemptResult : int; +extern const uint32_t ConnectionAttemptResult_internal_data_[]; +enum ConnectionAttemptType : int; +extern const uint32_t ConnectionAttemptType_internal_data_[]; +enum ConnectionBand : int; +extern const uint32_t ConnectionBand_internal_data_[]; +enum ConnectionMode : int; +extern const uint32_t ConnectionMode_internal_data_[]; +enum ConnectionRequestResponse : int; +extern const uint32_t ConnectionRequestResponse_internal_data_[]; +enum ConnectionTechnology : int; +extern const uint32_t ConnectionTechnology_internal_data_[]; +enum ConnectionsStrategy : int; +extern const uint32_t ConnectionsStrategy_internal_data_[]; +enum DctPayloadType : int; +extern const uint32_t DctPayloadType_internal_data_[]; +enum DeviceType : int; +extern const uint32_t DeviceType_internal_data_[]; +enum DisconnectionReason : int; +extern const uint32_t DisconnectionReason_internal_data_[]; +enum EventType : int; +extern const uint32_t EventType_internal_data_[]; +enum InstantConnectionResult : int; +extern const uint32_t InstantConnectionResult_internal_data_[]; +enum LogSource : int; +extern const uint32_t LogSource_internal_data_[]; +enum Medium : int; +extern const uint32_t Medium_internal_data_[]; +enum OperationResultCategory : int; +extern const uint32_t OperationResultCategory_internal_data_[]; +enum OperationResultCode : int; +extern const uint32_t OperationResultCode_internal_data_[]; +enum PayloadStatus : int; +extern const uint32_t PayloadStatus_internal_data_[]; +enum PayloadType : int; +extern const uint32_t PayloadType_internal_data_[]; +enum PowerLevel : int; +extern const uint32_t PowerLevel_internal_data_[]; +enum SessionRole : int; +extern const uint32_t SessionRole_internal_data_[]; +enum StopAdvertisingReason : int; +extern const uint32_t StopAdvertisingReason_internal_data_[]; +enum StopDiscoveringReason : int; +extern const uint32_t StopDiscoveringReason_internal_data_[]; +enum SupportedService : int; +extern const uint32_t SupportedService_internal_data_[]; +enum WifiDirectAuthType : int; +extern const uint32_t WifiDirectAuthType_internal_data_[]; +} // namespace connections +} // namespace proto +} // namespace nearby +} // namespace location +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::Bandwidth_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::Bandwidth>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::BandwidthUpgradeErrorStage_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::BandwidthUpgradeErrorStage>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::BandwidthUpgradeResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::BandwidthUpgradeResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionAttemptDirection_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionAttemptDirection>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionAttemptResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionAttemptResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionAttemptType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionAttemptType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionBand_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionBand>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionMode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionMode>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionRequestResponse_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionRequestResponse>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionTechnology_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionTechnology>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::ConnectionsStrategy_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::ConnectionsStrategy>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::DctPayloadType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::DctPayloadType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::DeviceType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::DisconnectionReason_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::DisconnectionReason>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::EventType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::InstantConnectionResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::InstantConnectionResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::LogSource_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::LogSource>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::Medium_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::Medium>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::OperationResultCategory_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::OperationResultCategory>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::OperationResultCode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::OperationResultCode>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::PayloadStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::PayloadStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::PayloadType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::PayloadType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::PowerLevel_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::PowerLevel>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::SessionRole_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::SessionRole>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::StopAdvertisingReason_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::StopAdvertisingReason>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::StopDiscoveringReason_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::StopDiscoveringReason>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::SupportedService_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::SupportedService>; +template <> +internal::EnumTraitsT<::location::nearby::proto::connections::WifiDirectAuthType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::connections::WifiDirectAuthType>; +} // namespace protobuf +} // namespace google +namespace location { +namespace nearby { +namespace proto { +namespace connections { enum EventType : int { UNKNOWN_EVENT_TYPE = 0, CLIENT_SESSION = 1, @@ -64,69 +210,84 @@ enum EventType : int { STOP_CLIENT_SESSION = 3, START_STRATEGY_SESSION = 4, STOP_STRATEGY_SESSION = 5, - ERROR_CODE = 6 + ERROR_CODE = 6, }; -bool EventType_IsValid(int value); -constexpr EventType EventType_MIN = UNKNOWN_EVENT_TYPE; -constexpr EventType EventType_MAX = ERROR_CODE; -constexpr int EventType_ARRAYSIZE = EventType_MAX + 1; -const std::string& EventType_Name(EventType value); -template -inline const std::string& EventType_Name(T enum_t_value) { +extern const uint32_t EventType_internal_data_[]; +inline constexpr EventType EventType_MIN = + static_cast(0); +inline constexpr EventType EventType_MAX = + static_cast(6); +inline bool EventType_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int EventType_ARRAYSIZE = 6 + 1; +const ::std::string& EventType_Name(EventType value); +template +const ::std::string& EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return EventType_Name(static_cast(value)); } bool EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value); + ::absl::string_view name, EventType* PROTOBUF_NONNULL value); enum ConnectionsStrategy : int { UNKNOWN_STRATEGY = 0, - MDNS_LOCAL_WIFI PROTOBUF_DEPRECATED_ENUM = 1, - RADIO_P2P PROTOBUF_DEPRECATED_ENUM = 2, + MDNS_LOCAL_WIFI [[deprecated]] = 1, + RADIO_P2P [[deprecated]] = 2, P2P_CLUSTER = 3, P2P_STAR = 4, - P2P_POINT_TO_POINT = 5 + P2P_POINT_TO_POINT = 5, }; -bool ConnectionsStrategy_IsValid(int value); -constexpr ConnectionsStrategy ConnectionsStrategy_MIN = UNKNOWN_STRATEGY; -constexpr ConnectionsStrategy ConnectionsStrategy_MAX = P2P_POINT_TO_POINT; -constexpr int ConnectionsStrategy_ARRAYSIZE = ConnectionsStrategy_MAX + 1; -const std::string& ConnectionsStrategy_Name(ConnectionsStrategy value); -template -inline const std::string& ConnectionsStrategy_Name(T enum_t_value) { +extern const uint32_t ConnectionsStrategy_internal_data_[]; +inline constexpr ConnectionsStrategy ConnectionsStrategy_MIN = + static_cast(0); +inline constexpr ConnectionsStrategy ConnectionsStrategy_MAX = + static_cast(5); +inline bool ConnectionsStrategy_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int ConnectionsStrategy_ARRAYSIZE = 5 + 1; +const ::std::string& ConnectionsStrategy_Name(ConnectionsStrategy value); +template +const ::std::string& ConnectionsStrategy_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionsStrategy_Name."); - return ConnectionsStrategy_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionsStrategy_Name()."); + return ConnectionsStrategy_Name(static_cast(value)); } bool ConnectionsStrategy_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsStrategy* value); + ::absl::string_view name, ConnectionsStrategy* PROTOBUF_NONNULL value); enum SessionRole : int { UNKNOWN_SESSION_ROLE = 0, ADVERTISER = 1, - DISCOVERER = 2 + DISCOVERER = 2, }; -bool SessionRole_IsValid(int value); -constexpr SessionRole SessionRole_MIN = UNKNOWN_SESSION_ROLE; -constexpr SessionRole SessionRole_MAX = DISCOVERER; -constexpr int SessionRole_ARRAYSIZE = SessionRole_MAX + 1; -const std::string& SessionRole_Name(SessionRole value); -template -inline const std::string& SessionRole_Name(T enum_t_value) { +extern const uint32_t SessionRole_internal_data_[]; +inline constexpr SessionRole SessionRole_MIN = + static_cast(0); +inline constexpr SessionRole SessionRole_MAX = + static_cast(2); +inline bool SessionRole_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int SessionRole_ARRAYSIZE = 2 + 1; +const ::std::string& SessionRole_Name(SessionRole value); +template +const ::std::string& SessionRole_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SessionRole_Name."); - return SessionRole_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SessionRole_Name()."); + return SessionRole_Name(static_cast(value)); } bool SessionRole_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SessionRole* value); + ::absl::string_view name, SessionRole* PROTOBUF_NONNULL value); enum Medium : int { UNKNOWN_MEDIUM = 0, - MDNS PROTOBUF_DEPRECATED_ENUM = 1, + MDNS [[deprecated]] = 1, BLUETOOTH = 2, WIFI_HOTSPOT = 3, BLE = 4, @@ -138,43 +299,53 @@ enum Medium : int { BLE_L2CAP = 10, USB = 11, WEB_RTC_NON_CELLULAR = 12, - AWDL = 13 + AWDL = 13, }; -bool Medium_IsValid(int value); -constexpr Medium Medium_MIN = UNKNOWN_MEDIUM; -constexpr Medium Medium_MAX = AWDL; -constexpr int Medium_ARRAYSIZE = Medium_MAX + 1; -const std::string& Medium_Name(Medium value); -template -inline const std::string& Medium_Name(T enum_t_value) { +extern const uint32_t Medium_internal_data_[]; +inline constexpr Medium Medium_MIN = + static_cast(0); +inline constexpr Medium Medium_MAX = + static_cast(13); +inline bool Medium_IsValid(int value) { + return 0 <= value && value <= 13; +} +inline constexpr int Medium_ARRAYSIZE = 13 + 1; +const ::std::string& Medium_Name(Medium value); +template +const ::std::string& Medium_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return Medium_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Medium_Name()."); + return Medium_Name(static_cast(value)); } bool Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Medium* value); + ::absl::string_view name, Medium* PROTOBUF_NONNULL value); enum WifiDirectAuthType : int { WIFI_DIRECT_TYPE_UNKNOWN = 0, WIFI_DIRECT_WITH_PASSWORD = 1, - WIFI_DIRECT_WITH_PIN = 2 + WIFI_DIRECT_WITH_PIN = 2, }; -bool WifiDirectAuthType_IsValid(int value); -constexpr WifiDirectAuthType WifiDirectAuthType_MIN = WIFI_DIRECT_TYPE_UNKNOWN; -constexpr WifiDirectAuthType WifiDirectAuthType_MAX = WIFI_DIRECT_WITH_PIN; -constexpr int WifiDirectAuthType_ARRAYSIZE = WifiDirectAuthType_MAX + 1; -const std::string& WifiDirectAuthType_Name(WifiDirectAuthType value); -template -inline const std::string& WifiDirectAuthType_Name(T enum_t_value) { +extern const uint32_t WifiDirectAuthType_internal_data_[]; +inline constexpr WifiDirectAuthType WifiDirectAuthType_MIN = + static_cast(0); +inline constexpr WifiDirectAuthType WifiDirectAuthType_MAX = + static_cast(2); +inline bool WifiDirectAuthType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int WifiDirectAuthType_ARRAYSIZE = 2 + 1; +const ::std::string& WifiDirectAuthType_Name(WifiDirectAuthType value); +template +const ::std::string& WifiDirectAuthType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function WifiDirectAuthType_Name."); - return WifiDirectAuthType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to WifiDirectAuthType_Name()."); + return WifiDirectAuthType_Name(static_cast(value)); } bool WifiDirectAuthType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WifiDirectAuthType* value); + ::absl::string_view name, WifiDirectAuthType* PROTOBUF_NONNULL value); enum ConnectionTechnology : int { CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY = 0, CONNECTION_TECHNOLOGY_BLE_GATT = 1, @@ -187,23 +358,28 @@ enum ConnectionTechnology : int { CONNECTION_TECHNOLOGY_WEBRTC_ETHERNET = 8, CONNECTION_TECHNOLOGY_WEBRTC_VPN = 9, CONNECTION_TECHNOLOGY_WEBRTC_LOOPBACK = 10, - CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY = 11 + CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY = 11, }; -bool ConnectionTechnology_IsValid(int value); -constexpr ConnectionTechnology ConnectionTechnology_MIN = CONNECTION_TECHNOLOGY_UNKNOWN_TECHNOLOGY; -constexpr ConnectionTechnology ConnectionTechnology_MAX = CONNECTION_TECHNOLOGY_WEBRTC_ADAPTER_TYPE_ANY; -constexpr int ConnectionTechnology_ARRAYSIZE = ConnectionTechnology_MAX + 1; -const std::string& ConnectionTechnology_Name(ConnectionTechnology value); -template -inline const std::string& ConnectionTechnology_Name(T enum_t_value) { +extern const uint32_t ConnectionTechnology_internal_data_[]; +inline constexpr ConnectionTechnology ConnectionTechnology_MIN = + static_cast(0); +inline constexpr ConnectionTechnology ConnectionTechnology_MAX = + static_cast(11); +inline bool ConnectionTechnology_IsValid(int value) { + return 0 <= value && value <= 11; +} +inline constexpr int ConnectionTechnology_ARRAYSIZE = 11 + 1; +const ::std::string& ConnectionTechnology_Name(ConnectionTechnology value); +template +const ::std::string& ConnectionTechnology_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionTechnology_Name."); - return ConnectionTechnology_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionTechnology_Name()."); + return ConnectionTechnology_Name(static_cast(value)); } bool ConnectionTechnology_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionTechnology* value); + ::absl::string_view name, ConnectionTechnology* PROTOBUF_NONNULL value); enum ConnectionBand : int { CONNECTION_BAND_UNKNOWN_BAND = 0, CONNECTION_BAND_WIFI_BAND_2GHZ = 1, @@ -212,147 +388,182 @@ enum ConnectionBand : int { CONNECTION_BAND_CELLULAR_BAND_2G = 4, CONNECTION_BAND_CELLULAR_BAND_3G = 5, CONNECTION_BAND_CELLULAR_BAND_4G = 6, - CONNECTION_BAND_CELLULAR_BAND_5G = 7 + CONNECTION_BAND_CELLULAR_BAND_5G = 7, }; -bool ConnectionBand_IsValid(int value); -constexpr ConnectionBand ConnectionBand_MIN = CONNECTION_BAND_UNKNOWN_BAND; -constexpr ConnectionBand ConnectionBand_MAX = CONNECTION_BAND_CELLULAR_BAND_5G; -constexpr int ConnectionBand_ARRAYSIZE = ConnectionBand_MAX + 1; -const std::string& ConnectionBand_Name(ConnectionBand value); -template -inline const std::string& ConnectionBand_Name(T enum_t_value) { +extern const uint32_t ConnectionBand_internal_data_[]; +inline constexpr ConnectionBand ConnectionBand_MIN = + static_cast(0); +inline constexpr ConnectionBand ConnectionBand_MAX = + static_cast(7); +inline bool ConnectionBand_IsValid(int value) { + return 0 <= value && value <= 7; +} +inline constexpr int ConnectionBand_ARRAYSIZE = 7 + 1; +const ::std::string& ConnectionBand_Name(ConnectionBand value); +template +const ::std::string& ConnectionBand_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionBand_Name."); - return ConnectionBand_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionBand_Name()."); + return ConnectionBand_Name(static_cast(value)); } bool ConnectionBand_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionBand* value); + ::absl::string_view name, ConnectionBand* PROTOBUF_NONNULL value); enum ConnectionMode : int { LEGACY = 0, - INSTANT = 1 + INSTANT = 1, }; -bool ConnectionMode_IsValid(int value); -constexpr ConnectionMode ConnectionMode_MIN = LEGACY; -constexpr ConnectionMode ConnectionMode_MAX = INSTANT; -constexpr int ConnectionMode_ARRAYSIZE = ConnectionMode_MAX + 1; -const std::string& ConnectionMode_Name(ConnectionMode value); -template -inline const std::string& ConnectionMode_Name(T enum_t_value) { +extern const uint32_t ConnectionMode_internal_data_[]; +inline constexpr ConnectionMode ConnectionMode_MIN = + static_cast(0); +inline constexpr ConnectionMode ConnectionMode_MAX = + static_cast(1); +inline bool ConnectionMode_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int ConnectionMode_ARRAYSIZE = 1 + 1; +const ::std::string& ConnectionMode_Name(ConnectionMode value); +template +const ::std::string& ConnectionMode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionMode_Name."); - return ConnectionMode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionMode_Name()."); + return ConnectionMode_Name(static_cast(value)); } bool ConnectionMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionMode* value); + ::absl::string_view name, ConnectionMode* PROTOBUF_NONNULL value); enum InstantConnectionResult : int { UNKNOWN_INSTANT_CONNECTION_RESULT = 0, INSTANT_CONNECTION_SUCCESS = 1, INSTANT_CONNECTION_FAILURE = 2, - INSTANT_CONNECTION_TIMEOUT = 3 + INSTANT_CONNECTION_TIMEOUT = 3, }; -bool InstantConnectionResult_IsValid(int value); -constexpr InstantConnectionResult InstantConnectionResult_MIN = UNKNOWN_INSTANT_CONNECTION_RESULT; -constexpr InstantConnectionResult InstantConnectionResult_MAX = INSTANT_CONNECTION_TIMEOUT; -constexpr int InstantConnectionResult_ARRAYSIZE = InstantConnectionResult_MAX + 1; -const std::string& InstantConnectionResult_Name(InstantConnectionResult value); -template -inline const std::string& InstantConnectionResult_Name(T enum_t_value) { +extern const uint32_t InstantConnectionResult_internal_data_[]; +inline constexpr InstantConnectionResult InstantConnectionResult_MIN = + static_cast(0); +inline constexpr InstantConnectionResult InstantConnectionResult_MAX = + static_cast(3); +inline bool InstantConnectionResult_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int InstantConnectionResult_ARRAYSIZE = 3 + 1; +const ::std::string& InstantConnectionResult_Name(InstantConnectionResult value); +template +const ::std::string& InstantConnectionResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function InstantConnectionResult_Name."); - return InstantConnectionResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to InstantConnectionResult_Name()."); + return InstantConnectionResult_Name(static_cast(value)); } bool InstantConnectionResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InstantConnectionResult* value); + ::absl::string_view name, InstantConnectionResult* PROTOBUF_NONNULL value); enum ConnectionRequestResponse : int { UNKNOWN_CONNECTION_REQUEST_RESPONSE = 0, ACCEPTED = 1, REJECTED = 2, IGNORED = 3, - NOT_SENT = 4 + NOT_SENT = 4, }; -bool ConnectionRequestResponse_IsValid(int value); -constexpr ConnectionRequestResponse ConnectionRequestResponse_MIN = UNKNOWN_CONNECTION_REQUEST_RESPONSE; -constexpr ConnectionRequestResponse ConnectionRequestResponse_MAX = NOT_SENT; -constexpr int ConnectionRequestResponse_ARRAYSIZE = ConnectionRequestResponse_MAX + 1; -const std::string& ConnectionRequestResponse_Name(ConnectionRequestResponse value); -template -inline const std::string& ConnectionRequestResponse_Name(T enum_t_value) { +extern const uint32_t ConnectionRequestResponse_internal_data_[]; +inline constexpr ConnectionRequestResponse ConnectionRequestResponse_MIN = + static_cast(0); +inline constexpr ConnectionRequestResponse ConnectionRequestResponse_MAX = + static_cast(4); +inline bool ConnectionRequestResponse_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int ConnectionRequestResponse_ARRAYSIZE = 4 + 1; +const ::std::string& ConnectionRequestResponse_Name(ConnectionRequestResponse value); +template +const ::std::string& ConnectionRequestResponse_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionRequestResponse_Name."); - return ConnectionRequestResponse_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionRequestResponse_Name()."); + return ConnectionRequestResponse_Name(static_cast(value)); } bool ConnectionRequestResponse_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestResponse* value); + ::absl::string_view name, ConnectionRequestResponse* PROTOBUF_NONNULL value); enum ConnectionAttemptResult : int { UNKNOWN_CONNECTION_ATTEMPT_RESULT = 0, RESULT_SUCCESS = 1, RESULT_ERROR = 2, - RESULT_CANCELLED = 3 + RESULT_CANCELLED = 3, }; -bool ConnectionAttemptResult_IsValid(int value); -constexpr ConnectionAttemptResult ConnectionAttemptResult_MIN = UNKNOWN_CONNECTION_ATTEMPT_RESULT; -constexpr ConnectionAttemptResult ConnectionAttemptResult_MAX = RESULT_CANCELLED; -constexpr int ConnectionAttemptResult_ARRAYSIZE = ConnectionAttemptResult_MAX + 1; -const std::string& ConnectionAttemptResult_Name(ConnectionAttemptResult value); -template -inline const std::string& ConnectionAttemptResult_Name(T enum_t_value) { +extern const uint32_t ConnectionAttemptResult_internal_data_[]; +inline constexpr ConnectionAttemptResult ConnectionAttemptResult_MIN = + static_cast(0); +inline constexpr ConnectionAttemptResult ConnectionAttemptResult_MAX = + static_cast(3); +inline bool ConnectionAttemptResult_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ConnectionAttemptResult_ARRAYSIZE = 3 + 1; +const ::std::string& ConnectionAttemptResult_Name(ConnectionAttemptResult value); +template +const ::std::string& ConnectionAttemptResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionAttemptResult_Name."); - return ConnectionAttemptResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionAttemptResult_Name()."); + return ConnectionAttemptResult_Name(static_cast(value)); } bool ConnectionAttemptResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptResult* value); + ::absl::string_view name, ConnectionAttemptResult* PROTOBUF_NONNULL value); enum ConnectionAttemptDirection : int { UNKNOWN_CONNECTION_ATTEMPT_DIRECTION = 0, INCOMING = 1, - OUTGOING = 2 + OUTGOING = 2, }; -bool ConnectionAttemptDirection_IsValid(int value); -constexpr ConnectionAttemptDirection ConnectionAttemptDirection_MIN = UNKNOWN_CONNECTION_ATTEMPT_DIRECTION; -constexpr ConnectionAttemptDirection ConnectionAttemptDirection_MAX = OUTGOING; -constexpr int ConnectionAttemptDirection_ARRAYSIZE = ConnectionAttemptDirection_MAX + 1; -const std::string& ConnectionAttemptDirection_Name(ConnectionAttemptDirection value); -template -inline const std::string& ConnectionAttemptDirection_Name(T enum_t_value) { +extern const uint32_t ConnectionAttemptDirection_internal_data_[]; +inline constexpr ConnectionAttemptDirection ConnectionAttemptDirection_MIN = + static_cast(0); +inline constexpr ConnectionAttemptDirection ConnectionAttemptDirection_MAX = + static_cast(2); +inline bool ConnectionAttemptDirection_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ConnectionAttemptDirection_ARRAYSIZE = 2 + 1; +const ::std::string& ConnectionAttemptDirection_Name(ConnectionAttemptDirection value); +template +const ::std::string& ConnectionAttemptDirection_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionAttemptDirection_Name."); - return ConnectionAttemptDirection_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionAttemptDirection_Name()."); + return ConnectionAttemptDirection_Name(static_cast(value)); } bool ConnectionAttemptDirection_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptDirection* value); + ::absl::string_view name, ConnectionAttemptDirection* PROTOBUF_NONNULL value); enum ConnectionAttemptType : int { UNKNOWN_CONNECTION_ATTEMPT_TYPE = 0, INITIAL = 1, UPGRADE = 2, - RECONNECT = 3 + RECONNECT = 3, }; -bool ConnectionAttemptType_IsValid(int value); -constexpr ConnectionAttemptType ConnectionAttemptType_MIN = UNKNOWN_CONNECTION_ATTEMPT_TYPE; -constexpr ConnectionAttemptType ConnectionAttemptType_MAX = RECONNECT; -constexpr int ConnectionAttemptType_ARRAYSIZE = ConnectionAttemptType_MAX + 1; -const std::string& ConnectionAttemptType_Name(ConnectionAttemptType value); -template -inline const std::string& ConnectionAttemptType_Name(T enum_t_value) { +extern const uint32_t ConnectionAttemptType_internal_data_[]; +inline constexpr ConnectionAttemptType ConnectionAttemptType_MIN = + static_cast(0); +inline constexpr ConnectionAttemptType ConnectionAttemptType_MAX = + static_cast(3); +inline bool ConnectionAttemptType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ConnectionAttemptType_ARRAYSIZE = 3 + 1; +const ::std::string& ConnectionAttemptType_Name(ConnectionAttemptType value); +template +const ::std::string& ConnectionAttemptType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionAttemptType_Name."); - return ConnectionAttemptType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionAttemptType_Name()."); + return ConnectionAttemptType_Name(static_cast(value)); } bool ConnectionAttemptType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionAttemptType* value); + ::absl::string_view name, ConnectionAttemptType* PROTOBUF_NONNULL value); enum DisconnectionReason : int { UNKNOWN_DISCONNECTION_REASON = 0, LOCAL_DISCONNECTION = 1, @@ -362,44 +573,54 @@ enum DisconnectionReason : int { SHUTDOWN = 5, UNFINISHED = 6, PREV_CHANNEL_DISCONNECTION_IN_RECONNECT = 7, - AUTHENTICATION_FAILURE = 8 + AUTHENTICATION_FAILURE = 8, }; -bool DisconnectionReason_IsValid(int value); -constexpr DisconnectionReason DisconnectionReason_MIN = UNKNOWN_DISCONNECTION_REASON; -constexpr DisconnectionReason DisconnectionReason_MAX = AUTHENTICATION_FAILURE; -constexpr int DisconnectionReason_ARRAYSIZE = DisconnectionReason_MAX + 1; -const std::string& DisconnectionReason_Name(DisconnectionReason value); -template -inline const std::string& DisconnectionReason_Name(T enum_t_value) { +extern const uint32_t DisconnectionReason_internal_data_[]; +inline constexpr DisconnectionReason DisconnectionReason_MIN = + static_cast(0); +inline constexpr DisconnectionReason DisconnectionReason_MAX = + static_cast(8); +inline bool DisconnectionReason_IsValid(int value) { + return 0 <= value && value <= 8; +} +inline constexpr int DisconnectionReason_ARRAYSIZE = 8 + 1; +const ::std::string& DisconnectionReason_Name(DisconnectionReason value); +template +const ::std::string& DisconnectionReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DisconnectionReason_Name."); - return DisconnectionReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DisconnectionReason_Name()."); + return DisconnectionReason_Name(static_cast(value)); } bool DisconnectionReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DisconnectionReason* value); + ::absl::string_view name, DisconnectionReason* PROTOBUF_NONNULL value); enum PayloadType : int { UNKNOWN_PAYLOAD_TYPE = 0, BYTES = 1, FILE = 2, - STREAM = 3 + STREAM = 3, }; -bool PayloadType_IsValid(int value); -constexpr PayloadType PayloadType_MIN = UNKNOWN_PAYLOAD_TYPE; -constexpr PayloadType PayloadType_MAX = STREAM; -constexpr int PayloadType_ARRAYSIZE = PayloadType_MAX + 1; -const std::string& PayloadType_Name(PayloadType value); -template -inline const std::string& PayloadType_Name(T enum_t_value) { +extern const uint32_t PayloadType_internal_data_[]; +inline constexpr PayloadType PayloadType_MIN = + static_cast(0); +inline constexpr PayloadType PayloadType_MAX = + static_cast(3); +inline bool PayloadType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int PayloadType_ARRAYSIZE = 3 + 1; +const ::std::string& PayloadType_Name(PayloadType value); +template +const ::std::string& PayloadType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadType_Name."); - return PayloadType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PayloadType_Name()."); + return PayloadType_Name(static_cast(value)); } bool PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadType* value); + ::absl::string_view name, PayloadType* PROTOBUF_NONNULL value); enum PayloadStatus : int { UNKNOWN_PAYLOAD_STATUS = 0, SUCCESS = 1, @@ -412,44 +633,54 @@ enum PayloadStatus : int { REMOTE_CANCELLATION = 8, ENDPOINT_UNENCRYPTED = 9, LOCAL_CLIENT_DISCONNECTION = 10, - REMOTE_CLIENT_DISCONNECTION = 11 + REMOTE_CLIENT_DISCONNECTION = 11, }; -bool PayloadStatus_IsValid(int value); -constexpr PayloadStatus PayloadStatus_MIN = UNKNOWN_PAYLOAD_STATUS; -constexpr PayloadStatus PayloadStatus_MAX = REMOTE_CLIENT_DISCONNECTION; -constexpr int PayloadStatus_ARRAYSIZE = PayloadStatus_MAX + 1; -const std::string& PayloadStatus_Name(PayloadStatus value); -template -inline const std::string& PayloadStatus_Name(T enum_t_value) { +extern const uint32_t PayloadStatus_internal_data_[]; +inline constexpr PayloadStatus PayloadStatus_MIN = + static_cast(0); +inline constexpr PayloadStatus PayloadStatus_MAX = + static_cast(11); +inline bool PayloadStatus_IsValid(int value) { + return 0 <= value && value <= 11; +} +inline constexpr int PayloadStatus_ARRAYSIZE = 11 + 1; +const ::std::string& PayloadStatus_Name(PayloadStatus value); +template +const ::std::string& PayloadStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadStatus_Name."); - return PayloadStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PayloadStatus_Name()."); + return PayloadStatus_Name(static_cast(value)); } bool PayloadStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadStatus* value); + ::absl::string_view name, PayloadStatus* PROTOBUF_NONNULL value); enum Bandwidth : int { BANDWIDTH_UNKNOWN = 0, BANDWIDTH_24_GHZ = 1, BANDWIDTH_5_GHZ = 2, - BANDWIDTH_6_GHZ = 3 + BANDWIDTH_6_GHZ = 3, }; -bool Bandwidth_IsValid(int value); -constexpr Bandwidth Bandwidth_MIN = BANDWIDTH_UNKNOWN; -constexpr Bandwidth Bandwidth_MAX = BANDWIDTH_6_GHZ; -constexpr int Bandwidth_ARRAYSIZE = Bandwidth_MAX + 1; -const std::string& Bandwidth_Name(Bandwidth value); -template -inline const std::string& Bandwidth_Name(T enum_t_value) { +extern const uint32_t Bandwidth_internal_data_[]; +inline constexpr Bandwidth Bandwidth_MIN = + static_cast(0); +inline constexpr Bandwidth Bandwidth_MAX = + static_cast(3); +inline bool Bandwidth_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int Bandwidth_ARRAYSIZE = 3 + 1; +const ::std::string& Bandwidth_Name(Bandwidth value); +template +const ::std::string& Bandwidth_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Bandwidth_Name."); - return Bandwidth_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Bandwidth_Name()."); + return Bandwidth_Name(static_cast(value)); } bool Bandwidth_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Bandwidth* value); + ::absl::string_view name, Bandwidth* PROTOBUF_NONNULL value); enum BandwidthUpgradeResult : int { UNKNOWN_BANDWIDTH_UPGRADE_RESULT = 0, UPGRADE_RESULT_SUCCESS = 1, @@ -468,23 +699,28 @@ enum BandwidthUpgradeResult : int { WEB_RTC_MEDIUM_ERROR = 16, RESULT_REMOTE_ERROR = 17, ATTEMPT_SKIPPED = 18, - REMOTE_CONNECTION_ERROR = 19 + REMOTE_CONNECTION_ERROR = 19, }; -bool BandwidthUpgradeResult_IsValid(int value); -constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MIN = UNKNOWN_BANDWIDTH_UPGRADE_RESULT; -constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MAX = REMOTE_CONNECTION_ERROR; -constexpr int BandwidthUpgradeResult_ARRAYSIZE = BandwidthUpgradeResult_MAX + 1; -const std::string& BandwidthUpgradeResult_Name(BandwidthUpgradeResult value); -template -inline const std::string& BandwidthUpgradeResult_Name(T enum_t_value) { +extern const uint32_t BandwidthUpgradeResult_internal_data_[]; +inline constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MIN = + static_cast(0); +inline constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MAX = + static_cast(19); +inline bool BandwidthUpgradeResult_IsValid(int value) { + return 0 <= value && value <= 19 && ((1047807u >> value) & 1) != 0; +} +inline constexpr int BandwidthUpgradeResult_ARRAYSIZE = 19 + 1; +const ::std::string& BandwidthUpgradeResult_Name(BandwidthUpgradeResult value); +template +const ::std::string& BandwidthUpgradeResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeResult_Name."); - return BandwidthUpgradeResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to BandwidthUpgradeResult_Name()."); + return BandwidthUpgradeResult_Name(static_cast(value)); } bool BandwidthUpgradeResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeResult* value); + ::absl::string_view name, BandwidthUpgradeResult* PROTOBUF_NONNULL value); enum BandwidthUpgradeErrorStage : int { UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE = 0, CLIENT_INTRODUCTION = 1, @@ -520,23 +756,28 @@ enum BandwidthUpgradeErrorStage : int { WIFI_DIRECT_PARSE_DEVICE_ADDRESS = 27, WIFI_DIRECT_SOCKET_CREATION = 32, WEB_RTC_SOCKET_CREATION = 33, - WEB_RTC_LISTEN_INCOMING = 34 + WEB_RTC_LISTEN_INCOMING = 34, }; -bool BandwidthUpgradeErrorStage_IsValid(int value); -constexpr BandwidthUpgradeErrorStage BandwidthUpgradeErrorStage_MIN = UNKNOWN_BANDWIDTH_UPGRADE_ERROR_STAGE; -constexpr BandwidthUpgradeErrorStage BandwidthUpgradeErrorStage_MAX = WEB_RTC_LISTEN_INCOMING; -constexpr int BandwidthUpgradeErrorStage_ARRAYSIZE = BandwidthUpgradeErrorStage_MAX + 1; -const std::string& BandwidthUpgradeErrorStage_Name(BandwidthUpgradeErrorStage value); -template -inline const std::string& BandwidthUpgradeErrorStage_Name(T enum_t_value) { +extern const uint32_t BandwidthUpgradeErrorStage_internal_data_[]; +inline constexpr BandwidthUpgradeErrorStage BandwidthUpgradeErrorStage_MIN = + static_cast(0); +inline constexpr BandwidthUpgradeErrorStage BandwidthUpgradeErrorStage_MAX = + static_cast(34); +inline bool BandwidthUpgradeErrorStage_IsValid(int value) { + return 0 <= value && value <= 34; +} +inline constexpr int BandwidthUpgradeErrorStage_ARRAYSIZE = 34 + 1; +const ::std::string& BandwidthUpgradeErrorStage_Name(BandwidthUpgradeErrorStage value); +template +const ::std::string& BandwidthUpgradeErrorStage_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeErrorStage_Name."); - return BandwidthUpgradeErrorStage_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to BandwidthUpgradeErrorStage_Name()."); + return BandwidthUpgradeErrorStage_Name(static_cast(value)); } bool BandwidthUpgradeErrorStage_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeErrorStage* value); + ::absl::string_view name, BandwidthUpgradeErrorStage* PROTOBUF_NONNULL value); enum LogSource : int { UNSPECIFIED_SOURCE = 0, LAB_DEVICES = 1, @@ -547,45 +788,55 @@ enum LogSource : int { NEARBY_MODULE_FOOD_DEVICES = 6, BETO_DOGFOOD_DEVICES = 7, NEARBY_DOGFOOD_DEVICES = 8, - NEARBY_TEAMFOOD_DEVICES = 9 + NEARBY_TEAMFOOD_DEVICES = 9, }; -bool LogSource_IsValid(int value); -constexpr LogSource LogSource_MIN = UNSPECIFIED_SOURCE; -constexpr LogSource LogSource_MAX = NEARBY_TEAMFOOD_DEVICES; -constexpr int LogSource_ARRAYSIZE = LogSource_MAX + 1; -const std::string& LogSource_Name(LogSource value); -template -inline const std::string& LogSource_Name(T enum_t_value) { +extern const uint32_t LogSource_internal_data_[]; +inline constexpr LogSource LogSource_MIN = + static_cast(0); +inline constexpr LogSource LogSource_MAX = + static_cast(9); +inline bool LogSource_IsValid(int value) { + return 0 <= value && value <= 9; +} +inline constexpr int LogSource_ARRAYSIZE = 9 + 1; +const ::std::string& LogSource_Name(LogSource value); +template +const ::std::string& LogSource_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LogSource_Name."); - return LogSource_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to LogSource_Name()."); + return LogSource_Name(static_cast(value)); } bool LogSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value); + ::absl::string_view name, LogSource* PROTOBUF_NONNULL value); enum PowerLevel : int { ULTRA_LOW_POWER = -1, UNSPECIFIED = 0, LOW_POWER = 1, BALANCED_POWER = 2, - HIGH_POWER = 3 + HIGH_POWER = 3, }; -bool PowerLevel_IsValid(int value); -constexpr PowerLevel PowerLevel_MIN = ULTRA_LOW_POWER; -constexpr PowerLevel PowerLevel_MAX = HIGH_POWER; -constexpr int PowerLevel_ARRAYSIZE = PowerLevel_MAX + 1; -const std::string& PowerLevel_Name(PowerLevel value); -template -inline const std::string& PowerLevel_Name(T enum_t_value) { +extern const uint32_t PowerLevel_internal_data_[]; +inline constexpr PowerLevel PowerLevel_MIN = + static_cast(-1); +inline constexpr PowerLevel PowerLevel_MAX = + static_cast(3); +inline bool PowerLevel_IsValid(int value) { + return -1 <= value && value <= 3; +} +inline constexpr int PowerLevel_ARRAYSIZE = 3 + 1; +const ::std::string& PowerLevel_Name(PowerLevel value); +template +const ::std::string& PowerLevel_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PowerLevel_Name."); - return PowerLevel_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PowerLevel_Name()."); + return PowerLevel_Name(static_cast(value)); } bool PowerLevel_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerLevel* value); + ::absl::string_view name, PowerLevel* PROTOBUF_NONNULL value); enum OperationResultCategory : int { CATEGORY_UNKNOWN = 0, CATEGORY_SUCCESS = 1, @@ -597,23 +848,28 @@ enum OperationResultCategory : int { CATEGORY_CONNECTIVITY_ERROR = 7, CATEGORY_MISCELLANEOUS = 8, CATEGORY_IO_ERROR = 9, - CATEGORY_DCT_ERROR = 10 + CATEGORY_DCT_ERROR = 10, }; -bool OperationResultCategory_IsValid(int value); -constexpr OperationResultCategory OperationResultCategory_MIN = CATEGORY_UNKNOWN; -constexpr OperationResultCategory OperationResultCategory_MAX = CATEGORY_DCT_ERROR; -constexpr int OperationResultCategory_ARRAYSIZE = OperationResultCategory_MAX + 1; -const std::string& OperationResultCategory_Name(OperationResultCategory value); -template -inline const std::string& OperationResultCategory_Name(T enum_t_value) { +extern const uint32_t OperationResultCategory_internal_data_[]; +inline constexpr OperationResultCategory OperationResultCategory_MIN = + static_cast(0); +inline constexpr OperationResultCategory OperationResultCategory_MAX = + static_cast(10); +inline bool OperationResultCategory_IsValid(int value) { + return 0 <= value && value <= 10; +} +inline constexpr int OperationResultCategory_ARRAYSIZE = 10 + 1; +const ::std::string& OperationResultCategory_Name(OperationResultCategory value); +template +const ::std::string& OperationResultCategory_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OperationResultCategory_Name."); - return OperationResultCategory_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to OperationResultCategory_Name()."); + return OperationResultCategory_Name(static_cast(value)); } bool OperationResultCategory_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCategory* value); + ::absl::string_view name, OperationResultCategory* PROTOBUF_NONNULL value); enum OperationResultCode : int { DETAIL_UNKNOWN = 0, DETAIL_SUCCESS = 1, @@ -757,16 +1013,16 @@ enum OperationResultCode : int { IO_FILE_WRITING_ERROR = 3002, IO_FOLDER_CREATION_ERROR = 3003, IO_STREAM_CREATE_PIPE_FAILURE = 3004, - IO_ENDPOINT_IO_ERROR_ON_BLE PROTOBUF_DEPRECATED_ENUM = 3005, - IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP PROTOBUF_DEPRECATED_ENUM = 3006, - IO_ENDPOINT_IO_ERROR_ON_BT PROTOBUF_DEPRECATED_ENUM = 3007, - IO_ENDPOINT_IO_ERROR_ON_WEB_RTC PROTOBUF_DEPRECATED_ENUM = 3008, - IO_ENDPOINT_IO_ERROR_ON_LAN PROTOBUF_DEPRECATED_ENUM = 3009, - IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT PROTOBUF_DEPRECATED_ENUM = 3010, - IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT PROTOBUF_DEPRECATED_ENUM = 3011, - IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE PROTOBUF_DEPRECATED_ENUM = 3012, - IO_ENDPOINT_IO_ERROR_ON_NFC PROTOBUF_DEPRECATED_ENUM = 3013, - IO_ENDPOINT_IO_ERROR_ON_USB PROTOBUF_DEPRECATED_ENUM = 3014, + IO_ENDPOINT_IO_ERROR_ON_BLE [[deprecated]] = 3005, + IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP [[deprecated]] = 3006, + IO_ENDPOINT_IO_ERROR_ON_BT [[deprecated]] = 3007, + IO_ENDPOINT_IO_ERROR_ON_WEB_RTC [[deprecated]] = 3008, + IO_ENDPOINT_IO_ERROR_ON_LAN [[deprecated]] = 3009, + IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT [[deprecated]] = 3010, + IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT [[deprecated]] = 3011, + IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE [[deprecated]] = 3012, + IO_ENDPOINT_IO_ERROR_ON_NFC [[deprecated]] = 3013, + IO_ENDPOINT_IO_ERROR_ON_USB [[deprecated]] = 3014, CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE = 3500, CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE = 3501, CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE = 3502, @@ -908,7 +1164,7 @@ enum OperationResultCode : int { NEARBY_WIFI_DIRECT_NULL_CALLBACK = 4527, NEARBY_WIFI_DIRECT_NULL_SSID = 4528, NEARBY_WIFI_DIRECT_NULL_PASSWORD = 4529, - NEARBY_BT_MULTIPLEX_SOCKET_DISABLED PROTOBUF_DEPRECATED_ENUM = 4530, + NEARBY_BT_MULTIPLEX_SOCKET_DISABLED [[deprecated]] = 4530, NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED = 4531, NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL = 4532, NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING = 4533, @@ -1015,184 +1271,250 @@ enum OperationResultCode : int { DCT_ERROR_USER_CANCELLED = 5021, DCT_ERROR_SERVICE_CANCELLED = 5022, DCT_ERROR_UNVERIFIED_INTEGRITY = 5023, - DCT_ERROR_HTTP_SERVER_CLOSED = 5024 + DCT_ERROR_HTTP_SERVER_CLOSED = 5024, }; -bool OperationResultCode_IsValid(int value); -constexpr OperationResultCode OperationResultCode_MIN = DETAIL_UNKNOWN; -constexpr OperationResultCode OperationResultCode_MAX = DCT_ERROR_HTTP_SERVER_CLOSED; -constexpr int OperationResultCode_ARRAYSIZE = OperationResultCode_MAX + 1; -const std::string& OperationResultCode_Name(OperationResultCode value); -template -inline const std::string& OperationResultCode_Name(T enum_t_value) { +extern const uint32_t OperationResultCode_internal_data_[]; +inline constexpr OperationResultCode OperationResultCode_MIN = + static_cast(0); +inline constexpr OperationResultCode OperationResultCode_MAX = + static_cast(5024); +inline bool OperationResultCode_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, OperationResultCode_internal_data_); +} +inline constexpr int OperationResultCode_ARRAYSIZE = 5024 + 1; +const ::std::string& OperationResultCode_Name(OperationResultCode value); +template +const ::std::string& OperationResultCode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OperationResultCode_Name."); - return OperationResultCode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to OperationResultCode_Name()."); + return OperationResultCode_Name(static_cast(value)); } bool OperationResultCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCode* value); + ::absl::string_view name, OperationResultCode* PROTOBUF_NONNULL value); enum StopAdvertisingReason : int { STOP_ADVERTISING_REASON_UNKNOWN = 0, CLIENT_STOP_ADVERTISING = 1, - FINISH_SESSION_STOP_ADVERTISING = 2 + FINISH_SESSION_STOP_ADVERTISING = 2, }; -bool StopAdvertisingReason_IsValid(int value); -constexpr StopAdvertisingReason StopAdvertisingReason_MIN = STOP_ADVERTISING_REASON_UNKNOWN; -constexpr StopAdvertisingReason StopAdvertisingReason_MAX = FINISH_SESSION_STOP_ADVERTISING; -constexpr int StopAdvertisingReason_ARRAYSIZE = StopAdvertisingReason_MAX + 1; -const std::string& StopAdvertisingReason_Name(StopAdvertisingReason value); -template -inline const std::string& StopAdvertisingReason_Name(T enum_t_value) { +extern const uint32_t StopAdvertisingReason_internal_data_[]; +inline constexpr StopAdvertisingReason StopAdvertisingReason_MIN = + static_cast(0); +inline constexpr StopAdvertisingReason StopAdvertisingReason_MAX = + static_cast(2); +inline bool StopAdvertisingReason_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int StopAdvertisingReason_ARRAYSIZE = 2 + 1; +const ::std::string& StopAdvertisingReason_Name(StopAdvertisingReason value); +template +const ::std::string& StopAdvertisingReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StopAdvertisingReason_Name."); - return StopAdvertisingReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StopAdvertisingReason_Name()."); + return StopAdvertisingReason_Name(static_cast(value)); } bool StopAdvertisingReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopAdvertisingReason* value); + ::absl::string_view name, StopAdvertisingReason* PROTOBUF_NONNULL value); enum StopDiscoveringReason : int { STOP_DISCOVERING_REASON_UNKNOWN = 0, CLIENT_STOP_DISCOVERING = 1, - FINISH_SESSION_STOP_DISCOVERING = 2 + FINISH_SESSION_STOP_DISCOVERING = 2, }; -bool StopDiscoveringReason_IsValid(int value); -constexpr StopDiscoveringReason StopDiscoveringReason_MIN = STOP_DISCOVERING_REASON_UNKNOWN; -constexpr StopDiscoveringReason StopDiscoveringReason_MAX = FINISH_SESSION_STOP_DISCOVERING; -constexpr int StopDiscoveringReason_ARRAYSIZE = StopDiscoveringReason_MAX + 1; -const std::string& StopDiscoveringReason_Name(StopDiscoveringReason value); -template -inline const std::string& StopDiscoveringReason_Name(T enum_t_value) { +extern const uint32_t StopDiscoveringReason_internal_data_[]; +inline constexpr StopDiscoveringReason StopDiscoveringReason_MIN = + static_cast(0); +inline constexpr StopDiscoveringReason StopDiscoveringReason_MAX = + static_cast(2); +inline bool StopDiscoveringReason_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int StopDiscoveringReason_ARRAYSIZE = 2 + 1; +const ::std::string& StopDiscoveringReason_Name(StopDiscoveringReason value); +template +const ::std::string& StopDiscoveringReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StopDiscoveringReason_Name."); - return StopDiscoveringReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StopDiscoveringReason_Name()."); + return StopDiscoveringReason_Name(static_cast(value)); } bool StopDiscoveringReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringReason* value); + ::absl::string_view name, StopDiscoveringReason* PROTOBUF_NONNULL value); enum DeviceType : int { UNKNOWN_TYPE = 0, NEARBY_CONNECTION = 1, NEARBY_PRESENCE = 2, - DCT = 3 + DCT = 3, }; -bool DeviceType_IsValid(int value); -constexpr DeviceType DeviceType_MIN = UNKNOWN_TYPE; -constexpr DeviceType DeviceType_MAX = DCT; -constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; -const std::string& DeviceType_Name(DeviceType value); -template -inline const std::string& DeviceType_Name(T enum_t_value) { +extern const uint32_t DeviceType_internal_data_[]; +inline constexpr DeviceType DeviceType_MIN = + static_cast(0); +inline constexpr DeviceType DeviceType_MAX = + static_cast(3); +inline bool DeviceType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int DeviceType_ARRAYSIZE = 3 + 1; +const ::std::string& DeviceType_Name(DeviceType value); +template +const ::std::string& DeviceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return DeviceType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return DeviceType_Name(static_cast(value)); } bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value); + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); enum SupportedService : int { SUPPORTED_SERVICE_UNSPECIFIED = 0, SUPPORTED_SERVICE_SETTINGS_ESIM = 1, SUPPORTED_SERVICE_DATA_MIGRATION = 2, - SUPPORTED_SERVICE_DATA_TRANSFER = 3 + SUPPORTED_SERVICE_DATA_TRANSFER = 3, }; -bool SupportedService_IsValid(int value); -constexpr SupportedService SupportedService_MIN = SUPPORTED_SERVICE_UNSPECIFIED; -constexpr SupportedService SupportedService_MAX = SUPPORTED_SERVICE_DATA_TRANSFER; -constexpr int SupportedService_ARRAYSIZE = SupportedService_MAX + 1; -const std::string& SupportedService_Name(SupportedService value); -template -inline const std::string& SupportedService_Name(T enum_t_value) { +extern const uint32_t SupportedService_internal_data_[]; +inline constexpr SupportedService SupportedService_MIN = + static_cast(0); +inline constexpr SupportedService SupportedService_MAX = + static_cast(3); +inline bool SupportedService_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int SupportedService_ARRAYSIZE = 3 + 1; +const ::std::string& SupportedService_Name(SupportedService value); +template +const ::std::string& SupportedService_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SupportedService_Name."); - return SupportedService_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SupportedService_Name()."); + return SupportedService_Name(static_cast(value)); } bool SupportedService_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SupportedService* value); + ::absl::string_view name, SupportedService* PROTOBUF_NONNULL value); enum DctPayloadType : int { DCT_PAYLOAD_TYPE_UNSPECIFIED = 0, DCT_PAYLOAD_TYPE_REQUEST = 1, DCT_PAYLOAD_TYPE_BYTES_RESPONSE = 2, DCT_PAYLOAD_TYPE_FILES_RESPONSE = 3, - DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE = 4 + DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE = 4, }; -bool DctPayloadType_IsValid(int value); -constexpr DctPayloadType DctPayloadType_MIN = DCT_PAYLOAD_TYPE_UNSPECIFIED; -constexpr DctPayloadType DctPayloadType_MAX = DCT_PAYLOAD_TYPE_ONE_WAY_MESSAGE; -constexpr int DctPayloadType_ARRAYSIZE = DctPayloadType_MAX + 1; -const std::string& DctPayloadType_Name(DctPayloadType value); -template -inline const std::string& DctPayloadType_Name(T enum_t_value) { +extern const uint32_t DctPayloadType_internal_data_[]; +inline constexpr DctPayloadType DctPayloadType_MIN = + static_cast(0); +inline constexpr DctPayloadType DctPayloadType_MAX = + static_cast(4); +inline bool DctPayloadType_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int DctPayloadType_ARRAYSIZE = 4 + 1; +const ::std::string& DctPayloadType_Name(DctPayloadType value); +template +const ::std::string& DctPayloadType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DctPayloadType_Name."); - return DctPayloadType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DctPayloadType_Name()."); + return DctPayloadType_Name(static_cast(value)); } bool DctPayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DctPayloadType* value); + ::absl::string_view name, DctPayloadType* PROTOBUF_NONNULL value); + // =================================================================== + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace connections } // namespace proto } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::proto::connections::EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionsStrategy> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::SessionRole> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::WifiDirectAuthType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionTechnology> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionBand> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionMode> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::InstantConnectionResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionRequestResponse> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionAttemptResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionAttemptDirection> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionAttemptType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::DisconnectionReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::PayloadType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::PayloadStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::Bandwidth> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::BandwidthUpgradeResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::BandwidthUpgradeErrorStage> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::LogSource> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::PowerLevel> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::OperationResultCategory> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::OperationResultCode> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::StopAdvertisingReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::StopDiscoveringReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::DeviceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::SupportedService> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::connections::DctPayloadType> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::proto::connections::EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionsStrategy> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::SessionRole> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::Medium> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::WifiDirectAuthType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionTechnology> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionBand> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionMode> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::InstantConnectionResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionRequestResponse> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionAttemptResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionAttemptDirection> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::ConnectionAttemptType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::DisconnectionReason> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::PayloadType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::PayloadStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::Bandwidth> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::BandwidthUpgradeResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::BandwidthUpgradeErrorStage> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::LogSource> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::PowerLevel> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::OperationResultCategory> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::OperationResultCode> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::StopAdvertisingReason> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::StopDiscoveringReason> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::SupportedService> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::connections::DctPayloadType> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fconnections_5fenums_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fconnections_5fenums_2eproto_2epb_2eh diff --git a/compiled_proto/proto/errorcode/error_code_enums.pb.cc b/compiled_proto/proto/errorcode/error_code_enums.pb.cc index af5e3559..d59aa4db 100644 --- a/compiled_proto/proto/errorcode/error_code_enums.pb.cc +++ b/compiled_proto/proto/errorcode/error_code_enums.pb.cc @@ -1,17 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/errorcode/error_code_enums.proto +// Protobuf C++ Version: 6.33.3 #include "proto/errorcode/error_code_enums.pb.h" #include - -#include -#include -#include +#include +#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" // @@protoc_insertion_point(includes) -#include +// 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 errorcode { @@ -24,1901 +32,1476 @@ namespace location { namespace nearby { namespace errorcode { namespace proto { -bool ErrorType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ErrorType_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ErrorType_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ErrorType_strings[6] = {}; +static const char ErrorType_names[] = { + "DEVELOPING" + "DEVICE" + "NETWORK" + "OTHERS" + "SYSTEM" + "UNKNOWN_TYPE" +}; -static const char ErrorType_names[] = - "DEVELOPING" - "DEVICE" - "NETWORK" - "OTHERS" - "SYSTEM" - "UNKNOWN_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ErrorType_entries[] = { - { {ErrorType_names + 0, 10}, 1 }, - { {ErrorType_names + 10, 6}, 2 }, - { {ErrorType_names + 16, 7}, 4 }, - { {ErrorType_names + 23, 6}, 5 }, - { {ErrorType_names + 29, 6}, 3 }, - { {ErrorType_names + 35, 12}, 0 }, +static const ::google::protobuf::internal::EnumEntry ErrorType_entries[] = { + {{&ErrorType_names[0], 10}, 1}, + {{&ErrorType_names[10], 6}, 2}, + {{&ErrorType_names[16], 7}, 4}, + {{&ErrorType_names[23], 6}, 5}, + {{&ErrorType_names[29], 6}, 3}, + {{&ErrorType_names[35], 12}, 0}, }; static const int ErrorType_entries_by_number[] = { - 5, // 0 -> UNKNOWN_TYPE - 0, // 1 -> DEVELOPING - 1, // 2 -> DEVICE - 4, // 3 -> SYSTEM - 2, // 4 -> NETWORK - 3, // 5 -> OTHERS + 5, // 0 -> UNKNOWN_TYPE + 0, // 1 -> DEVELOPING + 1, // 2 -> DEVICE + 4, // 3 -> SYSTEM + 2, // 4 -> NETWORK + 3, // 5 -> OTHERS }; -const std::string& ErrorType_Name( - ErrorType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ErrorType_entries, - ErrorType_entries_by_number, - 6, ErrorType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ErrorType_entries, - ErrorType_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ErrorType_strings[idx].get(); +const ::std::string& ErrorType_Name(ErrorType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ErrorType_entries, ErrorType_entries_by_number, 6, + ErrorType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ErrorType_entries, + ErrorType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ErrorType_strings[idx].get(); } -bool ErrorType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ErrorType* value) { + +bool ErrorType_Parse(::absl::string_view name, ErrorType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ErrorType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Event_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Event_internal_data_[] = { + 983040u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Event_strings[15] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Event_strings[15] = {}; +static const char Event_names[] = { + "ACCEPT_CONNECTION" + "CANCEL_PAYLOAD" + "CONNECT" + "DISCONNECT" + "RECEIVE_PAYLOAD" + "REJECT_CONNECTION" + "SEND_PAYLOAD" + "START_ADVERTISING" + "START_DISCOVERING" + "START_LISTENING_INCOMING_CONNECTION" + "STOP_ADVERTISING" + "STOP_DISCOVERING" + "STOP_LISTENING_INCOMING_CONNECTION" + "UNKNOWN_EVENT" + "UPGRADE" +}; -static const char Event_names[] = - "ACCEPT_CONNECTION" - "CANCEL_PAYLOAD" - "CONNECT" - "DISCONNECT" - "RECEIVE_PAYLOAD" - "REJECT_CONNECTION" - "SEND_PAYLOAD" - "START_ADVERTISING" - "START_DISCOVERING" - "START_LISTENING_INCOMING_CONNECTION" - "STOP_ADVERTISING" - "STOP_DISCOVERING" - "STOP_LISTENING_INCOMING_CONNECTION" - "UNKNOWN_EVENT" - "UPGRADE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Event_entries[] = { - { {Event_names + 0, 17}, 9 }, - { {Event_names + 17, 14}, 12 }, - { {Event_names + 31, 7}, 7 }, - { {Event_names + 38, 10}, 8 }, - { {Event_names + 48, 15}, 13 }, - { {Event_names + 63, 17}, 10 }, - { {Event_names + 80, 12}, 11 }, - { {Event_names + 92, 17}, 1 }, - { {Event_names + 109, 17}, 5 }, - { {Event_names + 126, 35}, 3 }, - { {Event_names + 161, 16}, 2 }, - { {Event_names + 177, 16}, 6 }, - { {Event_names + 193, 34}, 4 }, - { {Event_names + 227, 13}, 0 }, - { {Event_names + 240, 7}, 14 }, +static const ::google::protobuf::internal::EnumEntry Event_entries[] = { + {{&Event_names[0], 17}, 9}, + {{&Event_names[17], 14}, 12}, + {{&Event_names[31], 7}, 7}, + {{&Event_names[38], 10}, 8}, + {{&Event_names[48], 15}, 13}, + {{&Event_names[63], 17}, 10}, + {{&Event_names[80], 12}, 11}, + {{&Event_names[92], 17}, 1}, + {{&Event_names[109], 17}, 5}, + {{&Event_names[126], 35}, 3}, + {{&Event_names[161], 16}, 2}, + {{&Event_names[177], 16}, 6}, + {{&Event_names[193], 34}, 4}, + {{&Event_names[227], 13}, 0}, + {{&Event_names[240], 7}, 14}, }; static const int Event_entries_by_number[] = { - 13, // 0 -> UNKNOWN_EVENT - 7, // 1 -> START_ADVERTISING - 10, // 2 -> STOP_ADVERTISING - 9, // 3 -> START_LISTENING_INCOMING_CONNECTION - 12, // 4 -> STOP_LISTENING_INCOMING_CONNECTION - 8, // 5 -> START_DISCOVERING - 11, // 6 -> STOP_DISCOVERING - 2, // 7 -> CONNECT - 3, // 8 -> DISCONNECT - 0, // 9 -> ACCEPT_CONNECTION - 5, // 10 -> REJECT_CONNECTION - 6, // 11 -> SEND_PAYLOAD - 1, // 12 -> CANCEL_PAYLOAD - 4, // 13 -> RECEIVE_PAYLOAD - 14, // 14 -> UPGRADE + 13, // 0 -> UNKNOWN_EVENT + 7, // 1 -> START_ADVERTISING + 10, // 2 -> STOP_ADVERTISING + 9, // 3 -> START_LISTENING_INCOMING_CONNECTION + 12, // 4 -> STOP_LISTENING_INCOMING_CONNECTION + 8, // 5 -> START_DISCOVERING + 11, // 6 -> STOP_DISCOVERING + 2, // 7 -> CONNECT + 3, // 8 -> DISCONNECT + 0, // 9 -> ACCEPT_CONNECTION + 5, // 10 -> REJECT_CONNECTION + 6, // 11 -> SEND_PAYLOAD + 1, // 12 -> CANCEL_PAYLOAD + 4, // 13 -> RECEIVE_PAYLOAD + 14, // 14 -> UPGRADE }; -const std::string& Event_Name( - Event value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Event_entries, - Event_entries_by_number, - 15, Event_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Event_entries, - Event_entries_by_number, - 15, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Event_strings[idx].get(); +const ::std::string& Event_Name(Event value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Event_entries, Event_entries_by_number, 15, + Event_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Event_entries, + Event_entries_by_number, + 15, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Event_strings[idx].get(); } -bool Event_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Event* value) { + +bool Event_Parse(::absl::string_view name, Event* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Event_entries, 15, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool CommonError_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t CommonError_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + CommonError_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CommonError_strings[7] = {}; +static const char CommonError_names[] = { + "FLOW_CANCELED" + "INVALID_PARAMETER" + "MEDIUM_NOT_AVAILABLE" + "OUT_OF_RESOURCE" + "UNEXPECTED_CALL" + "UNEXPECTED_MEDIUM_STATE" + "UNKNOWN_ERROR" +}; -static const char CommonError_names[] = - "FLOW_CANCELED" - "INVALID_PARAMETER" - "MEDIUM_NOT_AVAILABLE" - "OUT_OF_RESOURCE" - "UNEXPECTED_CALL" - "UNEXPECTED_MEDIUM_STATE" - "UNKNOWN_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CommonError_entries[] = { - { {CommonError_names + 0, 13}, 5 }, - { {CommonError_names + 13, 17}, 1 }, - { {CommonError_names + 30, 20}, 2 }, - { {CommonError_names + 50, 15}, 4 }, - { {CommonError_names + 65, 15}, 6 }, - { {CommonError_names + 80, 23}, 3 }, - { {CommonError_names + 103, 13}, 0 }, +static const ::google::protobuf::internal::EnumEntry CommonError_entries[] = { + {{&CommonError_names[0], 13}, 5}, + {{&CommonError_names[13], 17}, 1}, + {{&CommonError_names[30], 20}, 2}, + {{&CommonError_names[50], 15}, 4}, + {{&CommonError_names[65], 15}, 6}, + {{&CommonError_names[80], 23}, 3}, + {{&CommonError_names[103], 13}, 0}, }; static const int CommonError_entries_by_number[] = { - 6, // 0 -> UNKNOWN_ERROR - 1, // 1 -> INVALID_PARAMETER - 2, // 2 -> MEDIUM_NOT_AVAILABLE - 5, // 3 -> UNEXPECTED_MEDIUM_STATE - 3, // 4 -> OUT_OF_RESOURCE - 0, // 5 -> FLOW_CANCELED - 4, // 6 -> UNEXPECTED_CALL + 6, // 0 -> UNKNOWN_ERROR + 1, // 1 -> INVALID_PARAMETER + 2, // 2 -> MEDIUM_NOT_AVAILABLE + 5, // 3 -> UNEXPECTED_MEDIUM_STATE + 3, // 4 -> OUT_OF_RESOURCE + 0, // 5 -> FLOW_CANCELED + 4, // 6 -> UNEXPECTED_CALL }; -const std::string& CommonError_Name( - CommonError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - CommonError_entries, - CommonError_entries_by_number, - 7, CommonError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - CommonError_entries, - CommonError_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - CommonError_strings[idx].get(); +const ::std::string& CommonError_Name(CommonError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + CommonError_entries, CommonError_entries_by_number, 7, + CommonError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(CommonError_entries, + CommonError_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CommonError_strings[idx].get(); } -bool CommonError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CommonError* value) { + +bool CommonError_Parse(::absl::string_view name, CommonError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( CommonError_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StartAdvertisingError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 38: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StartAdvertisingError_internal_data_[] = { + 393247u, 32u, 2042u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StartAdvertisingError_strings[15] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StartAdvertisingError_strings[15] = {}; +static const char StartAdvertisingError_names[] = { + "ACQUIRE_WIFI_AWARE_SESSION_FAILED" + "AWARE_UPDATE_PUBLISHING_FAILED" + "BLE_MAX_GATT_ADVERTISEMENT_SLOT_REACHED" + "BLUETOOTH_ALREADY_ADVERTISED" + "DUPLICATE_ADVERTISING_REQUESTED" + "FAST_ADVERTISEMENT_ALREADY_ADVERTISED" + "MODIFY_BLUETOOTH_NAME_FAILED" + "MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED" + "PERSIST_ORIGINAL_BLUETOOTH_NAME_FAILED" + "SHOULD_ACCEPT_CONNECTIONS_BEFORE_ADVERTISING_ON_WIFI_LAN" + "START_ADVERTISING_FAILED" + "START_EXTENDED_ADVERTISING_FAILED" + "START_GATT_SERVER_FAILED" + "START_LEGACY_ADVERTISING_FAILED" + "UNKNOWN_START_ADVERTISING_ERROR" +}; -static const char StartAdvertisingError_names[] = - "ACQUIRE_WIFI_AWARE_SESSION_FAILED" - "AWARE_UPDATE_PUBLISHING_FAILED" - "BLE_MAX_GATT_ADVERTISEMENT_SLOT_REACHED" - "BLUETOOTH_ALREADY_ADVERTISED" - "DUPLICATE_ADVERTISING_REQUESTED" - "FAST_ADVERTISEMENT_ALREADY_ADVERTISED" - "MODIFY_BLUETOOTH_NAME_FAILED" - "MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED" - "PERSIST_ORIGINAL_BLUETOOTH_NAME_FAILED" - "SHOULD_ACCEPT_CONNECTIONS_BEFORE_ADVERTISING_ON_WIFI_LAN" - "START_ADVERTISING_FAILED" - "START_EXTENDED_ADVERTISING_FAILED" - "START_GATT_SERVER_FAILED" - "START_LEGACY_ADVERTISING_FAILED" - "UNKNOWN_START_ADVERTISING_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StartAdvertisingError_entries[] = { - { {StartAdvertisingError_names + 0, 33}, 45 }, - { {StartAdvertisingError_names + 33, 30}, 47 }, - { {StartAdvertisingError_names + 63, 39}, 35 }, - { {StartAdvertisingError_names + 102, 28}, 40 }, - { {StartAdvertisingError_names + 130, 31}, 33 }, - { {StartAdvertisingError_names + 161, 37}, 32 }, - { {StartAdvertisingError_names + 198, 28}, 41 }, - { {StartAdvertisingError_names + 226, 39}, 31 }, - { {StartAdvertisingError_names + 265, 38}, 42 }, - { {StartAdvertisingError_names + 303, 56}, 44 }, - { {StartAdvertisingError_names + 359, 24}, 43 }, - { {StartAdvertisingError_names + 383, 33}, 38 }, - { {StartAdvertisingError_names + 416, 24}, 34 }, - { {StartAdvertisingError_names + 440, 31}, 36 }, - { {StartAdvertisingError_names + 471, 31}, 46 }, +static const ::google::protobuf::internal::EnumEntry StartAdvertisingError_entries[] = { + {{&StartAdvertisingError_names[0], 33}, 45}, + {{&StartAdvertisingError_names[33], 30}, 47}, + {{&StartAdvertisingError_names[63], 39}, 35}, + {{&StartAdvertisingError_names[102], 28}, 40}, + {{&StartAdvertisingError_names[130], 31}, 33}, + {{&StartAdvertisingError_names[161], 37}, 32}, + {{&StartAdvertisingError_names[198], 28}, 41}, + {{&StartAdvertisingError_names[226], 39}, 31}, + {{&StartAdvertisingError_names[265], 38}, 42}, + {{&StartAdvertisingError_names[303], 56}, 44}, + {{&StartAdvertisingError_names[359], 24}, 43}, + {{&StartAdvertisingError_names[383], 33}, 38}, + {{&StartAdvertisingError_names[416], 24}, 34}, + {{&StartAdvertisingError_names[440], 31}, 36}, + {{&StartAdvertisingError_names[471], 31}, 46}, }; static const int StartAdvertisingError_entries_by_number[] = { - 7, // 31 -> MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED - 5, // 32 -> FAST_ADVERTISEMENT_ALREADY_ADVERTISED - 4, // 33 -> DUPLICATE_ADVERTISING_REQUESTED - 12, // 34 -> START_GATT_SERVER_FAILED - 2, // 35 -> BLE_MAX_GATT_ADVERTISEMENT_SLOT_REACHED - 13, // 36 -> START_LEGACY_ADVERTISING_FAILED - 11, // 38 -> START_EXTENDED_ADVERTISING_FAILED - 3, // 40 -> BLUETOOTH_ALREADY_ADVERTISED - 6, // 41 -> MODIFY_BLUETOOTH_NAME_FAILED - 8, // 42 -> PERSIST_ORIGINAL_BLUETOOTH_NAME_FAILED - 10, // 43 -> START_ADVERTISING_FAILED - 9, // 44 -> SHOULD_ACCEPT_CONNECTIONS_BEFORE_ADVERTISING_ON_WIFI_LAN - 0, // 45 -> ACQUIRE_WIFI_AWARE_SESSION_FAILED - 14, // 46 -> UNKNOWN_START_ADVERTISING_ERROR - 1, // 47 -> AWARE_UPDATE_PUBLISHING_FAILED + 7, // 31 -> MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED + 5, // 32 -> FAST_ADVERTISEMENT_ALREADY_ADVERTISED + 4, // 33 -> DUPLICATE_ADVERTISING_REQUESTED + 12, // 34 -> START_GATT_SERVER_FAILED + 2, // 35 -> BLE_MAX_GATT_ADVERTISEMENT_SLOT_REACHED + 13, // 36 -> START_LEGACY_ADVERTISING_FAILED + 11, // 38 -> START_EXTENDED_ADVERTISING_FAILED + 3, // 40 -> BLUETOOTH_ALREADY_ADVERTISED + 6, // 41 -> MODIFY_BLUETOOTH_NAME_FAILED + 8, // 42 -> PERSIST_ORIGINAL_BLUETOOTH_NAME_FAILED + 10, // 43 -> START_ADVERTISING_FAILED + 9, // 44 -> SHOULD_ACCEPT_CONNECTIONS_BEFORE_ADVERTISING_ON_WIFI_LAN + 0, // 45 -> ACQUIRE_WIFI_AWARE_SESSION_FAILED + 14, // 46 -> UNKNOWN_START_ADVERTISING_ERROR + 1, // 47 -> AWARE_UPDATE_PUBLISHING_FAILED }; -const std::string& StartAdvertisingError_Name( - StartAdvertisingError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StartAdvertisingError_entries, - StartAdvertisingError_entries_by_number, - 15, StartAdvertisingError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StartAdvertisingError_entries, - StartAdvertisingError_entries_by_number, - 15, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StartAdvertisingError_strings[idx].get(); +const ::std::string& StartAdvertisingError_Name(StartAdvertisingError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StartAdvertisingError_entries, StartAdvertisingError_entries_by_number, 15, + StartAdvertisingError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StartAdvertisingError_entries, + StartAdvertisingError_entries_by_number, + 15, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StartAdvertisingError_strings[idx].get(); } -bool StartAdvertisingError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartAdvertisingError* value) { + +bool StartAdvertisingError_Parse(::absl::string_view name, StartAdvertisingError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StartAdvertisingError_entries, 15, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StopAdvertisingError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - case 35: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StopAdvertisingError_internal_data_[] = { + 327711u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StopAdvertisingError_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StopAdvertisingError_strings[5] = {}; +static const char StopAdvertisingError_names[] = { + "RESTORE_BLUETOOTH_NAME_FAILED" + "STOP_ADVERTISING_FAILED" + "STOP_EXTENDED_ADVERTISING_FAILED" + "STOP_LEGACY_ADVERTISING_FAILED" + "UNKNOWN_STOP_ADVERTISING_ERROR" +}; -static const char StopAdvertisingError_names[] = - "RESTORE_BLUETOOTH_NAME_FAILED" - "STOP_ADVERTISING_FAILED" - "STOP_EXTENDED_ADVERTISING_FAILED" - "STOP_LEGACY_ADVERTISING_FAILED" - "UNKNOWN_STOP_ADVERTISING_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StopAdvertisingError_entries[] = { - { {StopAdvertisingError_names + 0, 29}, 32 }, - { {StopAdvertisingError_names + 29, 23}, 31 }, - { {StopAdvertisingError_names + 52, 32}, 34 }, - { {StopAdvertisingError_names + 84, 30}, 33 }, - { {StopAdvertisingError_names + 114, 30}, 35 }, +static const ::google::protobuf::internal::EnumEntry StopAdvertisingError_entries[] = { + {{&StopAdvertisingError_names[0], 29}, 32}, + {{&StopAdvertisingError_names[29], 23}, 31}, + {{&StopAdvertisingError_names[52], 32}, 34}, + {{&StopAdvertisingError_names[84], 30}, 33}, + {{&StopAdvertisingError_names[114], 30}, 35}, }; static const int StopAdvertisingError_entries_by_number[] = { - 1, // 31 -> STOP_ADVERTISING_FAILED - 0, // 32 -> RESTORE_BLUETOOTH_NAME_FAILED - 3, // 33 -> STOP_LEGACY_ADVERTISING_FAILED - 2, // 34 -> STOP_EXTENDED_ADVERTISING_FAILED - 4, // 35 -> UNKNOWN_STOP_ADVERTISING_ERROR + 1, // 31 -> STOP_ADVERTISING_FAILED + 0, // 32 -> RESTORE_BLUETOOTH_NAME_FAILED + 3, // 33 -> STOP_LEGACY_ADVERTISING_FAILED + 2, // 34 -> STOP_EXTENDED_ADVERTISING_FAILED + 4, // 35 -> UNKNOWN_STOP_ADVERTISING_ERROR }; -const std::string& StopAdvertisingError_Name( - StopAdvertisingError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StopAdvertisingError_entries, - StopAdvertisingError_entries_by_number, - 5, StopAdvertisingError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StopAdvertisingError_entries, - StopAdvertisingError_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StopAdvertisingError_strings[idx].get(); +const ::std::string& StopAdvertisingError_Name(StopAdvertisingError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StopAdvertisingError_entries, StopAdvertisingError_entries_by_number, 5, + StopAdvertisingError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StopAdvertisingError_entries, + StopAdvertisingError_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StopAdvertisingError_strings[idx].get(); } -bool StopAdvertisingError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopAdvertisingError* value) { + +bool StopAdvertisingError_Parse(::absl::string_view name, StopAdvertisingError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StopAdvertisingError_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StartDiscoveringError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - case 41: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StartDiscoveringError_internal_data_[] = { + 720927u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StartDiscoveringError_strings[11] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StartDiscoveringError_strings[11] = {}; +static const char StartDiscoveringError_names[] = { + "ACQUIRE_WIFI_AWARE_SESSION_FOR_DISCOVERING_FAILED" + "DUPLICATE_DISCOVERING_REQUESTED" + "FETCH_ADVERTISEMENT_FAILED" + "GATT_FETCH_ADVERTISEMENT_FAILED" + "INVALID_TARGET_INFO" + "L2CAP_FETCH_ADVERTISEMENT_FAILED" + "NOT_AVAILABLE_TO_FETCH_ADVERTISEMENT" + "START_DISCOVERING_FAILED" + "START_EXTENDED_DISCOVERING_FAILED" + "START_LEGACY_DISCOVERING_FAILED" + "UNKNOWN_START_DISCOVERING_ERROR" +}; -static const char StartDiscoveringError_names[] = - "ACQUIRE_WIFI_AWARE_SESSION_FOR_DISCOVERING_FAILED" - "DUPLICATE_DISCOVERING_REQUESTED" - "FETCH_ADVERTISEMENT_FAILED" - "GATT_FETCH_ADVERTISEMENT_FAILED" - "INVALID_TARGET_INFO" - "L2CAP_FETCH_ADVERTISEMENT_FAILED" - "NOT_AVAILABLE_TO_FETCH_ADVERTISEMENT" - "START_DISCOVERING_FAILED" - "START_EXTENDED_DISCOVERING_FAILED" - "START_LEGACY_DISCOVERING_FAILED" - "UNKNOWN_START_DISCOVERING_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StartDiscoveringError_entries[] = { - { {StartDiscoveringError_names + 0, 49}, 40 }, - { {StartDiscoveringError_names + 49, 31}, 31 }, - { {StartDiscoveringError_names + 80, 26}, 36 }, - { {StartDiscoveringError_names + 106, 31}, 37 }, - { {StartDiscoveringError_names + 137, 19}, 35 }, - { {StartDiscoveringError_names + 156, 32}, 38 }, - { {StartDiscoveringError_names + 188, 36}, 39 }, - { {StartDiscoveringError_names + 224, 24}, 34 }, - { {StartDiscoveringError_names + 248, 33}, 33 }, - { {StartDiscoveringError_names + 281, 31}, 32 }, - { {StartDiscoveringError_names + 312, 31}, 41 }, +static const ::google::protobuf::internal::EnumEntry StartDiscoveringError_entries[] = { + {{&StartDiscoveringError_names[0], 49}, 40}, + {{&StartDiscoveringError_names[49], 31}, 31}, + {{&StartDiscoveringError_names[80], 26}, 36}, + {{&StartDiscoveringError_names[106], 31}, 37}, + {{&StartDiscoveringError_names[137], 19}, 35}, + {{&StartDiscoveringError_names[156], 32}, 38}, + {{&StartDiscoveringError_names[188], 36}, 39}, + {{&StartDiscoveringError_names[224], 24}, 34}, + {{&StartDiscoveringError_names[248], 33}, 33}, + {{&StartDiscoveringError_names[281], 31}, 32}, + {{&StartDiscoveringError_names[312], 31}, 41}, }; static const int StartDiscoveringError_entries_by_number[] = { - 1, // 31 -> DUPLICATE_DISCOVERING_REQUESTED - 9, // 32 -> START_LEGACY_DISCOVERING_FAILED - 8, // 33 -> START_EXTENDED_DISCOVERING_FAILED - 7, // 34 -> START_DISCOVERING_FAILED - 4, // 35 -> INVALID_TARGET_INFO - 2, // 36 -> FETCH_ADVERTISEMENT_FAILED - 3, // 37 -> GATT_FETCH_ADVERTISEMENT_FAILED - 5, // 38 -> L2CAP_FETCH_ADVERTISEMENT_FAILED - 6, // 39 -> NOT_AVAILABLE_TO_FETCH_ADVERTISEMENT - 0, // 40 -> ACQUIRE_WIFI_AWARE_SESSION_FOR_DISCOVERING_FAILED - 10, // 41 -> UNKNOWN_START_DISCOVERING_ERROR + 1, // 31 -> DUPLICATE_DISCOVERING_REQUESTED + 9, // 32 -> START_LEGACY_DISCOVERING_FAILED + 8, // 33 -> START_EXTENDED_DISCOVERING_FAILED + 7, // 34 -> START_DISCOVERING_FAILED + 4, // 35 -> INVALID_TARGET_INFO + 2, // 36 -> FETCH_ADVERTISEMENT_FAILED + 3, // 37 -> GATT_FETCH_ADVERTISEMENT_FAILED + 5, // 38 -> L2CAP_FETCH_ADVERTISEMENT_FAILED + 6, // 39 -> NOT_AVAILABLE_TO_FETCH_ADVERTISEMENT + 0, // 40 -> ACQUIRE_WIFI_AWARE_SESSION_FOR_DISCOVERING_FAILED + 10, // 41 -> UNKNOWN_START_DISCOVERING_ERROR }; -const std::string& StartDiscoveringError_Name( - StartDiscoveringError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StartDiscoveringError_entries, - StartDiscoveringError_entries_by_number, - 11, StartDiscoveringError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StartDiscoveringError_entries, - StartDiscoveringError_entries_by_number, - 11, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StartDiscoveringError_strings[idx].get(); +const ::std::string& StartDiscoveringError_Name(StartDiscoveringError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StartDiscoveringError_entries, StartDiscoveringError_entries_by_number, 11, + StartDiscoveringError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StartDiscoveringError_entries, + StartDiscoveringError_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StartDiscoveringError_strings[idx].get(); } -bool StartDiscoveringError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartDiscoveringError* value) { + +bool StartDiscoveringError_Parse(::absl::string_view name, StartDiscoveringError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StartDiscoveringError_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StopDiscoveringError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StopDiscoveringError_internal_data_[] = { + 262175u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StopDiscoveringError_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StopDiscoveringError_strings[4] = {}; +static const char StopDiscoveringError_names[] = { + "STOP_DISCOVERING_FAILED" + "STOP_EXTENDED_DISCOVERING_FAILED" + "STOP_LEGACY_DISCOVERING_FAILED" + "UNKNOWN_STOP_DISCOVERING_ERROR" +}; -static const char StopDiscoveringError_names[] = - "STOP_DISCOVERING_FAILED" - "STOP_EXTENDED_DISCOVERING_FAILED" - "STOP_LEGACY_DISCOVERING_FAILED" - "UNKNOWN_STOP_DISCOVERING_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StopDiscoveringError_entries[] = { - { {StopDiscoveringError_names + 0, 23}, 31 }, - { {StopDiscoveringError_names + 23, 32}, 33 }, - { {StopDiscoveringError_names + 55, 30}, 32 }, - { {StopDiscoveringError_names + 85, 30}, 34 }, +static const ::google::protobuf::internal::EnumEntry StopDiscoveringError_entries[] = { + {{&StopDiscoveringError_names[0], 23}, 31}, + {{&StopDiscoveringError_names[23], 32}, 33}, + {{&StopDiscoveringError_names[55], 30}, 32}, + {{&StopDiscoveringError_names[85], 30}, 34}, }; static const int StopDiscoveringError_entries_by_number[] = { - 0, // 31 -> STOP_DISCOVERING_FAILED - 2, // 32 -> STOP_LEGACY_DISCOVERING_FAILED - 1, // 33 -> STOP_EXTENDED_DISCOVERING_FAILED - 3, // 34 -> UNKNOWN_STOP_DISCOVERING_ERROR + 0, // 31 -> STOP_DISCOVERING_FAILED + 2, // 32 -> STOP_LEGACY_DISCOVERING_FAILED + 1, // 33 -> STOP_EXTENDED_DISCOVERING_FAILED + 3, // 34 -> UNKNOWN_STOP_DISCOVERING_ERROR }; -const std::string& StopDiscoveringError_Name( - StopDiscoveringError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StopDiscoveringError_entries, - StopDiscoveringError_entries_by_number, - 4, StopDiscoveringError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StopDiscoveringError_entries, - StopDiscoveringError_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StopDiscoveringError_strings[idx].get(); +const ::std::string& StopDiscoveringError_Name(StopDiscoveringError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StopDiscoveringError_entries, StopDiscoveringError_entries_by_number, 4, + StopDiscoveringError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StopDiscoveringError_entries, + StopDiscoveringError_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StopDiscoveringError_strings[idx].get(); } -bool StopDiscoveringError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringError* value) { + +bool StopDiscoveringError_Parse(::absl::string_view name, StopDiscoveringError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StopDiscoveringError_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StartListeningIncomingConnectionError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StartListeningIncomingConnectionError_internal_data_[] = { + 655391u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StartListeningIncomingConnectionError_strings[10] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StartListeningIncomingConnectionError_strings[10] = {}; +static const char StartListeningIncomingConnectionError_names[] = { + "ACCEPT_CONNECTION_FAILED" + "ACCEPT_GATT_CONNECTION_FAILED" + "ACCEPT_L2CAP_CONNECTION_FAILED" + "ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED" + "ACCEPT_SEND_AWARE_L2_MESSAGE_FAILED" + "CREATE_GATT_SERVER_SOCKET_NOT_READY" + "CREATE_SERVER_SOCKET_FAILED" + "DUPLICATE_ACCEPTING_CONNECTION_REQUESTED" + "OPEN_GATT_SERVER_FAILED" + "UNKNOWN_START_LISTENING_INCOMING_CONNECTION_ERROR" +}; -static const char StartListeningIncomingConnectionError_names[] = - "ACCEPT_CONNECTION_FAILED" - "ACCEPT_GATT_CONNECTION_FAILED" - "ACCEPT_L2CAP_CONNECTION_FAILED" - "ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED" - "ACCEPT_SEND_AWARE_L2_MESSAGE_FAILED" - "CREATE_GATT_SERVER_SOCKET_NOT_READY" - "CREATE_SERVER_SOCKET_FAILED" - "DUPLICATE_ACCEPTING_CONNECTION_REQUESTED" - "OPEN_GATT_SERVER_FAILED" - "UNKNOWN_START_LISTENING_INCOMING_CONNECTION_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StartListeningIncomingConnectionError_entries[] = { - { {StartListeningIncomingConnectionError_names + 0, 24}, 36 }, - { {StartListeningIncomingConnectionError_names + 24, 29}, 33 }, - { {StartListeningIncomingConnectionError_names + 53, 30}, 34 }, - { {StartListeningIncomingConnectionError_names + 83, 38}, 40 }, - { {StartListeningIncomingConnectionError_names + 121, 35}, 39 }, - { {StartListeningIncomingConnectionError_names + 156, 35}, 35 }, - { {StartListeningIncomingConnectionError_names + 191, 27}, 37 }, - { {StartListeningIncomingConnectionError_names + 218, 40}, 31 }, - { {StartListeningIncomingConnectionError_names + 258, 23}, 32 }, - { {StartListeningIncomingConnectionError_names + 281, 49}, 38 }, +static const ::google::protobuf::internal::EnumEntry StartListeningIncomingConnectionError_entries[] = { + {{&StartListeningIncomingConnectionError_names[0], 24}, 36}, + {{&StartListeningIncomingConnectionError_names[24], 29}, 33}, + {{&StartListeningIncomingConnectionError_names[53], 30}, 34}, + {{&StartListeningIncomingConnectionError_names[83], 38}, 40}, + {{&StartListeningIncomingConnectionError_names[121], 35}, 39}, + {{&StartListeningIncomingConnectionError_names[156], 35}, 35}, + {{&StartListeningIncomingConnectionError_names[191], 27}, 37}, + {{&StartListeningIncomingConnectionError_names[218], 40}, 31}, + {{&StartListeningIncomingConnectionError_names[258], 23}, 32}, + {{&StartListeningIncomingConnectionError_names[281], 49}, 38}, }; static const int StartListeningIncomingConnectionError_entries_by_number[] = { - 7, // 31 -> DUPLICATE_ACCEPTING_CONNECTION_REQUESTED - 8, // 32 -> OPEN_GATT_SERVER_FAILED - 1, // 33 -> ACCEPT_GATT_CONNECTION_FAILED - 2, // 34 -> ACCEPT_L2CAP_CONNECTION_FAILED - 5, // 35 -> CREATE_GATT_SERVER_SOCKET_NOT_READY - 0, // 36 -> ACCEPT_CONNECTION_FAILED - 6, // 37 -> CREATE_SERVER_SOCKET_FAILED - 9, // 38 -> UNKNOWN_START_LISTENING_INCOMING_CONNECTION_ERROR - 4, // 39 -> ACCEPT_SEND_AWARE_L2_MESSAGE_FAILED - 3, // 40 -> ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED + 7, // 31 -> DUPLICATE_ACCEPTING_CONNECTION_REQUESTED + 8, // 32 -> OPEN_GATT_SERVER_FAILED + 1, // 33 -> ACCEPT_GATT_CONNECTION_FAILED + 2, // 34 -> ACCEPT_L2CAP_CONNECTION_FAILED + 5, // 35 -> CREATE_GATT_SERVER_SOCKET_NOT_READY + 0, // 36 -> ACCEPT_CONNECTION_FAILED + 6, // 37 -> CREATE_SERVER_SOCKET_FAILED + 9, // 38 -> UNKNOWN_START_LISTENING_INCOMING_CONNECTION_ERROR + 4, // 39 -> ACCEPT_SEND_AWARE_L2_MESSAGE_FAILED + 3, // 40 -> ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED }; -const std::string& StartListeningIncomingConnectionError_Name( - StartListeningIncomingConnectionError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StartListeningIncomingConnectionError_entries, - StartListeningIncomingConnectionError_entries_by_number, - 10, StartListeningIncomingConnectionError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StartListeningIncomingConnectionError_entries, - StartListeningIncomingConnectionError_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StartListeningIncomingConnectionError_strings[idx].get(); +const ::std::string& StartListeningIncomingConnectionError_Name(StartListeningIncomingConnectionError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StartListeningIncomingConnectionError_entries, StartListeningIncomingConnectionError_entries_by_number, 10, + StartListeningIncomingConnectionError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StartListeningIncomingConnectionError_entries, + StartListeningIncomingConnectionError_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StartListeningIncomingConnectionError_strings[idx].get(); } -bool StartListeningIncomingConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartListeningIncomingConnectionError* value) { + +bool StartListeningIncomingConnectionError_Parse(::absl::string_view name, StartListeningIncomingConnectionError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StartListeningIncomingConnectionError_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool StopListeningIncomingConnectionError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t StopListeningIncomingConnectionError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + StopListeningIncomingConnectionError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StopListeningIncomingConnectionError_strings[2] = {}; +static const char StopListeningIncomingConnectionError_names[] = { + "STOP_ACCEPTING_CONNECTION_FAILED" + "UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR" +}; -static const char StopListeningIncomingConnectionError_names[] = - "STOP_ACCEPTING_CONNECTION_FAILED" - "UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StopListeningIncomingConnectionError_entries[] = { - { {StopListeningIncomingConnectionError_names + 0, 32}, 31 }, - { {StopListeningIncomingConnectionError_names + 32, 48}, 32 }, +static const ::google::protobuf::internal::EnumEntry StopListeningIncomingConnectionError_entries[] = { + {{&StopListeningIncomingConnectionError_names[0], 32}, 31}, + {{&StopListeningIncomingConnectionError_names[32], 48}, 32}, }; static const int StopListeningIncomingConnectionError_entries_by_number[] = { - 0, // 31 -> STOP_ACCEPTING_CONNECTION_FAILED - 1, // 32 -> UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR + 0, // 31 -> STOP_ACCEPTING_CONNECTION_FAILED + 1, // 32 -> UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR }; -const std::string& StopListeningIncomingConnectionError_Name( - StopListeningIncomingConnectionError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - StopListeningIncomingConnectionError_entries, - StopListeningIncomingConnectionError_entries_by_number, - 2, StopListeningIncomingConnectionError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - StopListeningIncomingConnectionError_entries, - StopListeningIncomingConnectionError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - StopListeningIncomingConnectionError_strings[idx].get(); +const ::std::string& StopListeningIncomingConnectionError_Name(StopListeningIncomingConnectionError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + StopListeningIncomingConnectionError_entries, StopListeningIncomingConnectionError_entries_by_number, 2, + StopListeningIncomingConnectionError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(StopListeningIncomingConnectionError_entries, + StopListeningIncomingConnectionError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StopListeningIncomingConnectionError_strings[idx].get(); } -bool StopListeningIncomingConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopListeningIncomingConnectionError* value) { + +bool StopListeningIncomingConnectionError_Parse(::absl::string_view name, StopListeningIncomingConnectionError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( StopListeningIncomingConnectionError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectError_IsValid(int value) { - switch (value) { - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectError_internal_data_[] = { + 1048607u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectError_strings[16] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectError_strings[16] = {}; +static const char ConnectError_names[] = { + "CONNECTION_LOST" + "CONNECT_READ_AWARE_L2_MESSAGE_FAILED" + "CONNECT_SEND_AWARE_L2_MESSAGE_FAILED" + "CONNECT_TO_NETWORK_FAILED" + "DUPLICATE_CONNECTION_REQUESTED" + "ESTABLISH_CONNECTION_FAILED" + "ESTABLISH_GATT_CONNECTION_FAILED" + "ESTABLISH_L2CAP_CONNECTION_FAILED" + "GATT_SWITCH_TO_DATA_TRANSFERRING_FAILED" + "INVALID_MAC_ADDRESS" + "L2CAP_SWITCH_TO_DATA_TRANSFERRING_FAILED" + "REQUEST_GATT_CONNECTION_PRIORITY_FAILED" + "SLEEP_AFTER_GATT_CONNECTED_INTERRUPTED" + "SLEEP_BEFORE_CONNECT_GATT_INTERRUPTED" + "UNEXPECT_TARGET_LOST" + "UNKNOWN_CONNECT_ERROR" +}; -static const char ConnectError_names[] = - "CONNECTION_LOST" - "CONNECT_READ_AWARE_L2_MESSAGE_FAILED" - "CONNECT_SEND_AWARE_L2_MESSAGE_FAILED" - "CONNECT_TO_NETWORK_FAILED" - "DUPLICATE_CONNECTION_REQUESTED" - "ESTABLISH_CONNECTION_FAILED" - "ESTABLISH_GATT_CONNECTION_FAILED" - "ESTABLISH_L2CAP_CONNECTION_FAILED" - "GATT_SWITCH_TO_DATA_TRANSFERRING_FAILED" - "INVALID_MAC_ADDRESS" - "L2CAP_SWITCH_TO_DATA_TRANSFERRING_FAILED" - "REQUEST_GATT_CONNECTION_PRIORITY_FAILED" - "SLEEP_AFTER_GATT_CONNECTED_INTERRUPTED" - "SLEEP_BEFORE_CONNECT_GATT_INTERRUPTED" - "UNEXPECT_TARGET_LOST" - "UNKNOWN_CONNECT_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectError_entries[] = { - { {ConnectError_names + 0, 15}, 42 }, - { {ConnectError_names + 15, 36}, 46 }, - { {ConnectError_names + 51, 36}, 45 }, - { {ConnectError_names + 87, 25}, 43 }, - { {ConnectError_names + 112, 30}, 41 }, - { {ConnectError_names + 142, 27}, 40 }, - { {ConnectError_names + 169, 32}, 32 }, - { {ConnectError_names + 201, 33}, 33 }, - { {ConnectError_names + 234, 39}, 39 }, - { {ConnectError_names + 273, 19}, 34 }, - { {ConnectError_names + 292, 40}, 38 }, - { {ConnectError_names + 332, 39}, 37 }, - { {ConnectError_names + 371, 38}, 36 }, - { {ConnectError_names + 409, 37}, 35 }, - { {ConnectError_names + 446, 20}, 31 }, - { {ConnectError_names + 466, 21}, 44 }, +static const ::google::protobuf::internal::EnumEntry ConnectError_entries[] = { + {{&ConnectError_names[0], 15}, 42}, + {{&ConnectError_names[15], 36}, 46}, + {{&ConnectError_names[51], 36}, 45}, + {{&ConnectError_names[87], 25}, 43}, + {{&ConnectError_names[112], 30}, 41}, + {{&ConnectError_names[142], 27}, 40}, + {{&ConnectError_names[169], 32}, 32}, + {{&ConnectError_names[201], 33}, 33}, + {{&ConnectError_names[234], 39}, 39}, + {{&ConnectError_names[273], 19}, 34}, + {{&ConnectError_names[292], 40}, 38}, + {{&ConnectError_names[332], 39}, 37}, + {{&ConnectError_names[371], 38}, 36}, + {{&ConnectError_names[409], 37}, 35}, + {{&ConnectError_names[446], 20}, 31}, + {{&ConnectError_names[466], 21}, 44}, }; static const int ConnectError_entries_by_number[] = { - 14, // 31 -> UNEXPECT_TARGET_LOST - 6, // 32 -> ESTABLISH_GATT_CONNECTION_FAILED - 7, // 33 -> ESTABLISH_L2CAP_CONNECTION_FAILED - 9, // 34 -> INVALID_MAC_ADDRESS - 13, // 35 -> SLEEP_BEFORE_CONNECT_GATT_INTERRUPTED - 12, // 36 -> SLEEP_AFTER_GATT_CONNECTED_INTERRUPTED - 11, // 37 -> REQUEST_GATT_CONNECTION_PRIORITY_FAILED - 10, // 38 -> L2CAP_SWITCH_TO_DATA_TRANSFERRING_FAILED - 8, // 39 -> GATT_SWITCH_TO_DATA_TRANSFERRING_FAILED - 5, // 40 -> ESTABLISH_CONNECTION_FAILED - 4, // 41 -> DUPLICATE_CONNECTION_REQUESTED - 0, // 42 -> CONNECTION_LOST - 3, // 43 -> CONNECT_TO_NETWORK_FAILED - 15, // 44 -> UNKNOWN_CONNECT_ERROR - 2, // 45 -> CONNECT_SEND_AWARE_L2_MESSAGE_FAILED - 1, // 46 -> CONNECT_READ_AWARE_L2_MESSAGE_FAILED + 14, // 31 -> UNEXPECT_TARGET_LOST + 6, // 32 -> ESTABLISH_GATT_CONNECTION_FAILED + 7, // 33 -> ESTABLISH_L2CAP_CONNECTION_FAILED + 9, // 34 -> INVALID_MAC_ADDRESS + 13, // 35 -> SLEEP_BEFORE_CONNECT_GATT_INTERRUPTED + 12, // 36 -> SLEEP_AFTER_GATT_CONNECTED_INTERRUPTED + 11, // 37 -> REQUEST_GATT_CONNECTION_PRIORITY_FAILED + 10, // 38 -> L2CAP_SWITCH_TO_DATA_TRANSFERRING_FAILED + 8, // 39 -> GATT_SWITCH_TO_DATA_TRANSFERRING_FAILED + 5, // 40 -> ESTABLISH_CONNECTION_FAILED + 4, // 41 -> DUPLICATE_CONNECTION_REQUESTED + 0, // 42 -> CONNECTION_LOST + 3, // 43 -> CONNECT_TO_NETWORK_FAILED + 15, // 44 -> UNKNOWN_CONNECT_ERROR + 2, // 45 -> CONNECT_SEND_AWARE_L2_MESSAGE_FAILED + 1, // 46 -> CONNECT_READ_AWARE_L2_MESSAGE_FAILED }; -const std::string& ConnectError_Name( - ConnectError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectError_entries, - ConnectError_entries_by_number, - 16, ConnectError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectError_entries, - ConnectError_entries_by_number, - 16, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectError_strings[idx].get(); +const ::std::string& ConnectError_Name(ConnectError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectError_entries, ConnectError_entries_by_number, 16, + ConnectError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectError_entries, + ConnectError_entries_by_number, + 16, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectError_strings[idx].get(); } -bool ConnectError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectError* value) { + +bool ConnectError_Parse(::absl::string_view name, ConnectError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectError_entries, 16, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DisconnectError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DisconnectError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DisconnectError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DisconnectError_strings[2] = {}; +static const char DisconnectError_names[] = { + "DISCONNECT_NETWORK_FAILED" + "UNKNOWN_DISCONNECT_ERROR" +}; -static const char DisconnectError_names[] = - "DISCONNECT_NETWORK_FAILED" - "UNKNOWN_DISCONNECT_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DisconnectError_entries[] = { - { {DisconnectError_names + 0, 25}, 31 }, - { {DisconnectError_names + 25, 24}, 32 }, +static const ::google::protobuf::internal::EnumEntry DisconnectError_entries[] = { + {{&DisconnectError_names[0], 25}, 31}, + {{&DisconnectError_names[25], 24}, 32}, }; static const int DisconnectError_entries_by_number[] = { - 0, // 31 -> DISCONNECT_NETWORK_FAILED - 1, // 32 -> UNKNOWN_DISCONNECT_ERROR + 0, // 31 -> DISCONNECT_NETWORK_FAILED + 1, // 32 -> UNKNOWN_DISCONNECT_ERROR }; -const std::string& DisconnectError_Name( - DisconnectError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DisconnectError_entries, - DisconnectError_entries_by_number, - 2, DisconnectError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DisconnectError_entries, - DisconnectError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DisconnectError_strings[idx].get(); +const ::std::string& DisconnectError_Name(DisconnectError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DisconnectError_entries, DisconnectError_entries_by_number, 2, + DisconnectError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DisconnectError_entries, + DisconnectError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DisconnectError_strings[idx].get(); } -bool DisconnectError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DisconnectError* value) { + +bool DisconnectError_Parse(::absl::string_view name, DisconnectError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DisconnectError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SendPayloadError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SendPayloadError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SendPayloadError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SendPayloadError_strings[2] = {}; +static const char SendPayloadError_names[] = { + "SEND_PAYLOAD_FAILED" + "UNKNOWN_SEND_PAYLOAD_ERROR" +}; -static const char SendPayloadError_names[] = - "SEND_PAYLOAD_FAILED" - "UNKNOWN_SEND_PAYLOAD_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SendPayloadError_entries[] = { - { {SendPayloadError_names + 0, 19}, 32 }, - { {SendPayloadError_names + 19, 26}, 31 }, +static const ::google::protobuf::internal::EnumEntry SendPayloadError_entries[] = { + {{&SendPayloadError_names[0], 19}, 32}, + {{&SendPayloadError_names[19], 26}, 31}, }; static const int SendPayloadError_entries_by_number[] = { - 1, // 31 -> UNKNOWN_SEND_PAYLOAD_ERROR - 0, // 32 -> SEND_PAYLOAD_FAILED + 1, // 31 -> UNKNOWN_SEND_PAYLOAD_ERROR + 0, // 32 -> SEND_PAYLOAD_FAILED }; -const std::string& SendPayloadError_Name( - SendPayloadError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SendPayloadError_entries, - SendPayloadError_entries_by_number, - 2, SendPayloadError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SendPayloadError_entries, - SendPayloadError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SendPayloadError_strings[idx].get(); +const ::std::string& SendPayloadError_Name(SendPayloadError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SendPayloadError_entries, SendPayloadError_entries_by_number, 2, + SendPayloadError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SendPayloadError_entries, + SendPayloadError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SendPayloadError_strings[idx].get(); } -bool SendPayloadError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SendPayloadError* value) { + +bool SendPayloadError_Parse(::absl::string_view name, SendPayloadError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SendPayloadError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ReceivePayloadError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ReceivePayloadError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ReceivePayloadError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ReceivePayloadError_strings[2] = {}; +static const char ReceivePayloadError_names[] = { + "RECEIVE_PAYLOAD_FAILED" + "UNKNOWN_RECEIVE_PAYLOAD_ERROR" +}; -static const char ReceivePayloadError_names[] = - "RECEIVE_PAYLOAD_FAILED" - "UNKNOWN_RECEIVE_PAYLOAD_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ReceivePayloadError_entries[] = { - { {ReceivePayloadError_names + 0, 22}, 32 }, - { {ReceivePayloadError_names + 22, 29}, 31 }, +static const ::google::protobuf::internal::EnumEntry ReceivePayloadError_entries[] = { + {{&ReceivePayloadError_names[0], 22}, 32}, + {{&ReceivePayloadError_names[22], 29}, 31}, }; static const int ReceivePayloadError_entries_by_number[] = { - 1, // 31 -> UNKNOWN_RECEIVE_PAYLOAD_ERROR - 0, // 32 -> RECEIVE_PAYLOAD_FAILED + 1, // 31 -> UNKNOWN_RECEIVE_PAYLOAD_ERROR + 0, // 32 -> RECEIVE_PAYLOAD_FAILED }; -const std::string& ReceivePayloadError_Name( - ReceivePayloadError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ReceivePayloadError_entries, - ReceivePayloadError_entries_by_number, - 2, ReceivePayloadError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ReceivePayloadError_entries, - ReceivePayloadError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ReceivePayloadError_strings[idx].get(); +const ::std::string& ReceivePayloadError_Name(ReceivePayloadError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ReceivePayloadError_entries, ReceivePayloadError_entries_by_number, 2, + ReceivePayloadError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ReceivePayloadError_entries, + ReceivePayloadError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ReceivePayloadError_strings[idx].get(); } -bool ReceivePayloadError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReceivePayloadError* value) { + +bool ReceivePayloadError_Parse(::absl::string_view name, ReceivePayloadError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ReceivePayloadError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool UpgradeError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t UpgradeError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + UpgradeError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed UpgradeError_strings[2] = {}; +static const char UpgradeError_names[] = { + "CREATE_P2P_GROUP_FAILED" + "UNKNOWN_UPGRADE_ERROR" +}; -static const char UpgradeError_names[] = - "CREATE_P2P_GROUP_FAILED" - "UNKNOWN_UPGRADE_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry UpgradeError_entries[] = { - { {UpgradeError_names + 0, 23}, 32 }, - { {UpgradeError_names + 23, 21}, 31 }, +static const ::google::protobuf::internal::EnumEntry UpgradeError_entries[] = { + {{&UpgradeError_names[0], 23}, 32}, + {{&UpgradeError_names[23], 21}, 31}, }; static const int UpgradeError_entries_by_number[] = { - 1, // 31 -> UNKNOWN_UPGRADE_ERROR - 0, // 32 -> CREATE_P2P_GROUP_FAILED + 1, // 31 -> UNKNOWN_UPGRADE_ERROR + 0, // 32 -> CREATE_P2P_GROUP_FAILED }; -const std::string& UpgradeError_Name( - UpgradeError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - UpgradeError_entries, - UpgradeError_entries_by_number, - 2, UpgradeError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - UpgradeError_entries, - UpgradeError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - UpgradeError_strings[idx].get(); +const ::std::string& UpgradeError_Name(UpgradeError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + UpgradeError_entries, UpgradeError_entries_by_number, 2, + UpgradeError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(UpgradeError_entries, + UpgradeError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : UpgradeError_strings[idx].get(); } -bool UpgradeError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UpgradeError* value) { + +bool UpgradeError_Parse(::absl::string_view name, UpgradeError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( UpgradeError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool AcceptConnectionError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AcceptConnectionError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AcceptConnectionError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AcceptConnectionError_strings[2] = {}; +static const char AcceptConnectionError_names[] = { + "RESPOND_ACCEPT_CONNECTION_FAILED" + "UNKNOWN_ACCEPT_CONNECTION_ERROR" +}; -static const char AcceptConnectionError_names[] = - "RESPOND_ACCEPT_CONNECTION_FAILED" - "UNKNOWN_ACCEPT_CONNECTION_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AcceptConnectionError_entries[] = { - { {AcceptConnectionError_names + 0, 32}, 32 }, - { {AcceptConnectionError_names + 32, 31}, 31 }, +static const ::google::protobuf::internal::EnumEntry AcceptConnectionError_entries[] = { + {{&AcceptConnectionError_names[0], 32}, 32}, + {{&AcceptConnectionError_names[32], 31}, 31}, }; static const int AcceptConnectionError_entries_by_number[] = { - 1, // 31 -> UNKNOWN_ACCEPT_CONNECTION_ERROR - 0, // 32 -> RESPOND_ACCEPT_CONNECTION_FAILED + 1, // 31 -> UNKNOWN_ACCEPT_CONNECTION_ERROR + 0, // 32 -> RESPOND_ACCEPT_CONNECTION_FAILED }; -const std::string& AcceptConnectionError_Name( - AcceptConnectionError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AcceptConnectionError_entries, - AcceptConnectionError_entries_by_number, - 2, AcceptConnectionError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AcceptConnectionError_entries, - AcceptConnectionError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AcceptConnectionError_strings[idx].get(); +const ::std::string& AcceptConnectionError_Name(AcceptConnectionError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AcceptConnectionError_entries, AcceptConnectionError_entries_by_number, 2, + AcceptConnectionError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AcceptConnectionError_entries, + AcceptConnectionError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AcceptConnectionError_strings[idx].get(); } -bool AcceptConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AcceptConnectionError* value) { + +bool AcceptConnectionError_Parse(::absl::string_view name, AcceptConnectionError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AcceptConnectionError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool RejectConnectionError_IsValid(int value) { - switch (value) { - case 31: - case 32: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t RejectConnectionError_internal_data_[] = { + 131103u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + RejectConnectionError_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed RejectConnectionError_strings[2] = {}; +static const char RejectConnectionError_names[] = { + "RESPOND_REJECT_CONNECTION_FAILED" + "UNKNOWN_REJECT_CONNECTION_ERROR" +}; -static const char RejectConnectionError_names[] = - "RESPOND_REJECT_CONNECTION_FAILED" - "UNKNOWN_REJECT_CONNECTION_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry RejectConnectionError_entries[] = { - { {RejectConnectionError_names + 0, 32}, 32 }, - { {RejectConnectionError_names + 32, 31}, 31 }, +static const ::google::protobuf::internal::EnumEntry RejectConnectionError_entries[] = { + {{&RejectConnectionError_names[0], 32}, 32}, + {{&RejectConnectionError_names[32], 31}, 31}, }; static const int RejectConnectionError_entries_by_number[] = { - 1, // 31 -> UNKNOWN_REJECT_CONNECTION_ERROR - 0, // 32 -> RESPOND_REJECT_CONNECTION_FAILED + 1, // 31 -> UNKNOWN_REJECT_CONNECTION_ERROR + 0, // 32 -> RESPOND_REJECT_CONNECTION_FAILED }; -const std::string& RejectConnectionError_Name( - RejectConnectionError value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - RejectConnectionError_entries, - RejectConnectionError_entries_by_number, - 2, RejectConnectionError_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - RejectConnectionError_entries, - RejectConnectionError_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - RejectConnectionError_strings[idx].get(); +const ::std::string& RejectConnectionError_Name(RejectConnectionError value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + RejectConnectionError_entries, RejectConnectionError_entries_by_number, 2, + RejectConnectionError_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(RejectConnectionError_entries, + RejectConnectionError_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : RejectConnectionError_strings[idx].get(); } -bool RejectConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RejectConnectionError* value) { + +bool RejectConnectionError_Parse(::absl::string_view name, RejectConnectionError* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( RejectConnectionError_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Description_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 30: - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - case 48: - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - case 58: - case 59: - case 60: - case 61: - case 62: - case 63: - case 64: - case 65: - case 66: - case 67: - case 68: - case 69: - case 70: - case 71: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 80: - case 81: - case 82: - case 83: - case 84: - case 85: - case 86: - case 87: - case 88: - case 89: - case 90: - case 91: - case 92: - case 93: - case 94: - case 95: - case 96: - case 97: - case 98: - case 99: - case 100: - case 101: - case 102: - case 103: - case 104: - case 105: - case 106: - case 107: - case 108: - case 109: - case 110: - case 111: - case 112: - case 113: - case 114: - case 115: - case 116: - case 117: - case 118: - case 119: - case 120: - case 121: - case 122: - case 123: - case 124: - case 125: - case 126: - case 127: - case 128: - case 129: - case 130: - case 131: - case 132: - case 133: - case 134: - case 135: - case 136: - case 137: - case 138: - case 139: - case 140: - case 141: - case 142: - case 143: - case 144: - case 145: - case 146: - case 147: - case 148: - case 149: - case 150: - case 151: - case 152: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 159: - case 160: - case 161: - case 162: - case 163: - case 164: - case 165: - case 166: - case 167: - case 168: - case 169: - case 170: - case 171: - case 172: - case 173: - case 174: - case 175: - case 176: - case 177: - case 178: - case 179: - case 180: - case 181: - case 182: - case 183: - case 184: - case 185: - case 186: - case 187: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Description_internal_data_[] = { + 1835008u, 160u, 4294967292u, 4294967295u, 4294967295u, 4294967295u, 4294967295u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Description_strings[186] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Description_strings[186] = {}; +static const char Description_names[] = { + "ACQUIRE_P2P_CHANNEL_FAILED" + "ADD_NETWORK_FAILED" + "ADVERTISE_FAILED_ALREADY_STARTED" + "ADVERTISE_FAILED_DATA_TOO_LARGE" + "ADVERTISE_FAILED_FEATURE_UNSUPPORTED" + "ADVERTISE_FAILED_INTERNAL_ERROR" + "ADVERTISE_FAILED_TOO_MANY_ADVERTISERS" + "ALREADY_HAS_GATT_CONNECTION" + "ALREADY_IN_PROGRESS" + "AWARE_DATA_PATH_RAN_OUT" + "AWARE_L2_MESSAGE_CANCELLATION_RECEIVED" + "AWARE_L2_MESSAGE_HOST_NETWORK_ERROR" + "AWARE_L2_MESSAGE_IP_AVAILABLE_ERROR" + "AWARE_L2_MESSAGE_NETWORK_AVAILABLE_ERROR" + "AWARE_PUBLISH_SESSION_RAN_OUT" + "AWARE_SUBSCRIBE_SESSION_RAN_OUT" + "AWARE_UNAVAILABLE" + "AWARE_UPDATE_PUBLISHING_CONFIG_FAILED" + "BIND_NFC_SERVICE_FAILED" + "BLUETOOTH_SCAN_REJUVENATE_FAILED" + "BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED" + "BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE" + "BROKEN_PIPE" + "BUSY" + "CLOSE_SERVER_SOCKET_FAILED" + "CONNECTIONS_FEATURE_DISABLED" + "CONNECTION_ABORT" + "CONNET_TO_SOCKET_CANCELLED" + "CREATE_OFFER_FAILED" + "EMPTY_TACHYON_ICE_SERVER" + "EMPTY_WORK_SOURCE_CACHE" + "EXECUTION_EXCEPTION" + "FAIL_TO_RECEIVE_L2CAP_PACKET" + "FEATURE_BLUETOOTH_LE_NOT_SUPPORTED" + "FEATURE_BLUETOOTH_NOT_SUPPORTED" + "FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED" + "FEATURE_NFC_NOT_SUPPORTED" + "FEATURE_USB_ACCESSORY_NOT_SUPPORTED" + "FEATURE_USB_HOST_NOT_SUPPORTED" + "FEATURE_USB_PORTS_NOT_FOUND" + "FEATURE_WIFI_AWARE_NOT_SUPPORTED" + "FEATURE_WIFI_DIRECT_NOT_SUPPORTED" + "FEATURE_WIFI_NOT_SUPPORTED" + "GET_ADDRESS_FAILED" + "HOSTED_NETWORK_UNAVAILABLE" + "HOTSPOT_NOT_STARTED" + "INTERNAL_ERROR" + "INTERRUPTED_EXCEPTION" + "INVALID_ADVERTISEMENT_HEADER_DATA" + "INVALID_ARGS" + "INVALID_BLUETOOTH_CHANNEL" + "INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE" + "INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS" + "INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT" + "INVALID_FAST_ADVERTISEMENT_DATA" + "INVALID_FAST_PAIR_MODEL_ID" + "INVALID_IPV4_ADDRESS" + "INVALID_IPV6_ADDRESS" + "INVALID_NETWORK_ID" + "INVALID_PACKET_BYTES" + "INVALID_PACKET_LENGTH" + "INVALID_PORT_NUMBER" + "INVALID_REGULAR_ADVERTISEMENT_DATA" + "INVALID_REMOTE_ADDRESS" + "INVALID_VERSION" + "INVALID_WEBRTC_STATE" + "INVOKE_API_FAILED" + "IN_BLACK_LIST" + "IS_LOOPBACK_ADDRESS" + "JOIN_AWARE_NETWORK_CANCELLED" + "L2CAP_UNAVAILABLE" + "MULTICAST_NOT_SUPPORTED" + "MULTIPLEX_SOCKET_DISABLED" + "MULTIPLEX_SOCKET_EXECUTION_EXCEPTION" + "MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION" + "MULTIPLEX_SOCKET_IOEXCEPTION" + "MULTIPLEX_SOCKET_NOT_LISTENING" + "MULTIPLEX_SOCKET_TIMEOUT" + "MULTIPLEX_SOCKET_UNKNOWN_ERROR" + "MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE" + "NETWORK_ALREADY_JOINED" + "NETWORK_ERROR_EHOSTUNREACH" + "NETWORK_ERROR_ENETUNREACH" + "NETWORK_UNAVAILABLE" + "NFC_CREATE_SOCKET_FAILED" + "NFC_SERVICE_DIED" + "NFC_TECH_NOT_SUPPORTED" + "NOT_AUTHORIZED" + "NSD_NOT_ENABLED" + "NULL_ADDRESS" + "NULL_ADVERTISEMENT_BYTES" + "NULL_BLE_PERIPHERAL" + "NULL_BLUETOOTH_ADAPTER" + "NULL_BLUETOOTH_DEVICE" + "NULL_BLUETOOTH_DEVICE_NAME" + "NULL_BLUETOOTH_GATT" + "NULL_BLUETOOTH_LE_ADVERTISER_COMPAT" + "NULL_BLUETOOTH_LE_SCANNER_COMPAT" + "NULL_BLUETOOTH_MANAGER" + "NULL_BLUETOOTH_PROXY" + "NULL_CALLBACK" + "NULL_CONNECTIVITY_MANAGER" + "NULL_DATA_CHANNEL" + "NULL_DROID_GUARD_RESULT" + "NULL_LOCAL_ADDRESS" + "NULL_MESSAGE" + "NULL_NFC_TAG" + "NULL_PASSWORD" + "NULL_SERVICE_ID" + "NULL_SERVICE_INFO" + "NULL_SERVICE_NAME" + "NULL_SERVICE_TYPE" + "NULL_SSID" + "NULL_WIFI_AWARE_MANAGER" + "NULL_WIFI_AWARE_PEER" + "NULL_WIFI_MANAGER" + "NULL_WIFI_P2P_MANAGER" + "NULL_WORK_SOURCE" + "P2P_GROUP_FORMED" + "P2P_UNSUPPORTED" + "POTENTIAL_SRD_ISSUE" + "POTENTIAL_WEBRTC_LIB_LOADING_FAILURE" + "PUBLISH_EMPTY_ADVERTISEMENT_FAILED" + "READ_CHARACTERISTIC_FAILED" + "REFLECTION_ERROR" + "REMOTE_EXCEPTION" + "SCAN_FAILED_ALREADY_STARTED" + "SCAN_FAILED_APPLICATION_REGISTRATION_FAILED" + "SCAN_FAILED_BLUETOOTH_DISABLED" + "SCAN_FAILED_FEATURE_UNSUPPORTED" + "SCAN_FAILED_INTERNAL_ERROR" + "SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION" + "SERVER_SOCKET_UNAVAILABLE" + "SET_CONNECTION_PRIORITY_FAILED" + "SET_CONNECTION_PRIORITY_INTERRUPTED" + "SET_SCAN_MODE_FAILED" + "SOCKET_ALREADY_BOUND" + "SOCKET_ALREADY_CONNECTED" + "SOCKET_BIND_LISTEN_FAILED" + "SOCKET_CLOSED" + "SOCKET_CLOSED_OR_TIMEOUT" + "SOCKET_NOT_BOUND" + "STALE_ANDROID_VERSION" + "STALE_SDK_VERSION" + "TACHYON_ALREADY_START_RECEIVE_MESSAGE" + "TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION" + "TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION" + "TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION" + "TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION" + "TACHYON_RECEIVE_MESSAGE_FAILED" + "TACHYON_RECEIVE_MESSAGE_INTERRUPTED" + "TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION" + "TACHYON_RECEIVE_MESSAGE_TIMEOUT" + "TACHYON_SEND_MESSAGE_AUTH_EXCEPTION" + "TACHYON_SEND_MESSAGE_STATUS_EXCEPTION" + "TACHYON_SIGNALING_MESSENGER_EXIST" + "TIE_BREAK_LOSER" + "TIMEOUT" + "UNEXPECTED_BLUETOOTH_STATE" + "UNEXPECTED_EOF_EXCEPTION" + "UNEXPECTED_GATT_DESCRIPTOR" + "UNEXPECTED_PACKET_CONTENT" + "UNKNOWN" + "UNKNOWN_IO_EXCEPTION" + "UNREGISTER_NSD_MANAGER_FAILED" + "UNSUPPORTED_DEVICE_TYPE" + "UNSUPPORTED_DEVICE_TYPE_AUTO" + "UNSUPPORTED_DEVICE_TYPE_CHROME_OS" + "UNSUPPORTED_DEVICE_TYPE_PHONE" + "UNSUPPORTED_DEVICE_TYPE_TABLET" + "UNSUPPORTED_DEVICE_TYPE_TV" + "UNSUPPORTED_DEVICE_TYPE_WEAR" + "UPDATE_NETWORK_FAILED" + "USER_RESTRICTION_DISALLOWED" + "WEBRTC_ALREADY_INITIALIZED" + "WEBRTC_CONNECTION_FLOW_EXIST" + "WIFI_AWARE_STARTED" + "WIFI_HOTSPOT_ENABLED" + "WIFI_MANAGER_ENABLE_NETWORK_FAILED" + "WIFI_MANAGER_RECONNECT_FAILED" + "WIFI_SIGNAL_STRENGTH_POOR" + "WITHOUT_ACTIVE_AWARE_NETWORK" + "WITHOUT_ACTIVE_NETWORK" + "WITHOUT_CONNECTED_WIFI_NETWORK" + "WITHOUT_JOINED_AWARE_NETWORK" + "WITHOUT_PSM_VALUE" +}; -static const char Description_names[] = - "ACQUIRE_P2P_CHANNEL_FAILED" - "ADD_NETWORK_FAILED" - "ADVERTISE_FAILED_ALREADY_STARTED" - "ADVERTISE_FAILED_DATA_TOO_LARGE" - "ADVERTISE_FAILED_FEATURE_UNSUPPORTED" - "ADVERTISE_FAILED_INTERNAL_ERROR" - "ADVERTISE_FAILED_TOO_MANY_ADVERTISERS" - "ALREADY_HAS_GATT_CONNECTION" - "ALREADY_IN_PROGRESS" - "AWARE_DATA_PATH_RAN_OUT" - "AWARE_L2_MESSAGE_CANCELLATION_RECEIVED" - "AWARE_L2_MESSAGE_HOST_NETWORK_ERROR" - "AWARE_L2_MESSAGE_IP_AVAILABLE_ERROR" - "AWARE_L2_MESSAGE_NETWORK_AVAILABLE_ERROR" - "AWARE_PUBLISH_SESSION_RAN_OUT" - "AWARE_SUBSCRIBE_SESSION_RAN_OUT" - "AWARE_UNAVAILABLE" - "AWARE_UPDATE_PUBLISHING_CONFIG_FAILED" - "BIND_NFC_SERVICE_FAILED" - "BLUETOOTH_SCAN_REJUVENATE_FAILED" - "BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED" - "BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE" - "BROKEN_PIPE" - "BUSY" - "CLOSE_SERVER_SOCKET_FAILED" - "CONNECTIONS_FEATURE_DISABLED" - "CONNECTION_ABORT" - "CONNET_TO_SOCKET_CANCELLED" - "CREATE_OFFER_FAILED" - "EMPTY_TACHYON_ICE_SERVER" - "EMPTY_WORK_SOURCE_CACHE" - "EXECUTION_EXCEPTION" - "FAIL_TO_RECEIVE_L2CAP_PACKET" - "FEATURE_BLUETOOTH_LE_NOT_SUPPORTED" - "FEATURE_BLUETOOTH_NOT_SUPPORTED" - "FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED" - "FEATURE_NFC_NOT_SUPPORTED" - "FEATURE_USB_ACCESSORY_NOT_SUPPORTED" - "FEATURE_USB_HOST_NOT_SUPPORTED" - "FEATURE_USB_PORTS_NOT_FOUND" - "FEATURE_WIFI_AWARE_NOT_SUPPORTED" - "FEATURE_WIFI_DIRECT_NOT_SUPPORTED" - "FEATURE_WIFI_NOT_SUPPORTED" - "GET_ADDRESS_FAILED" - "HOSTED_NETWORK_UNAVAILABLE" - "HOTSPOT_NOT_STARTED" - "INTERNAL_ERROR" - "INTERRUPTED_EXCEPTION" - "INVALID_ADVERTISEMENT_HEADER_DATA" - "INVALID_ARGS" - "INVALID_BLUETOOTH_CHANNEL" - "INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE" - "INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS" - "INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT" - "INVALID_FAST_ADVERTISEMENT_DATA" - "INVALID_FAST_PAIR_MODEL_ID" - "INVALID_IPV4_ADDRESS" - "INVALID_IPV6_ADDRESS" - "INVALID_NETWORK_ID" - "INVALID_PACKET_BYTES" - "INVALID_PACKET_LENGTH" - "INVALID_PORT_NUMBER" - "INVALID_REGULAR_ADVERTISEMENT_DATA" - "INVALID_REMOTE_ADDRESS" - "INVALID_VERSION" - "INVALID_WEBRTC_STATE" - "INVOKE_API_FAILED" - "IN_BLACK_LIST" - "IS_LOOPBACK_ADDRESS" - "JOIN_AWARE_NETWORK_CANCELLED" - "L2CAP_UNAVAILABLE" - "MULTICAST_NOT_SUPPORTED" - "MULTIPLEX_SOCKET_DISABLED" - "MULTIPLEX_SOCKET_EXECUTION_EXCEPTION" - "MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION" - "MULTIPLEX_SOCKET_IOEXCEPTION" - "MULTIPLEX_SOCKET_NOT_LISTENING" - "MULTIPLEX_SOCKET_TIMEOUT" - "MULTIPLEX_SOCKET_UNKNOWN_ERROR" - "MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE" - "NETWORK_ALREADY_JOINED" - "NETWORK_ERROR_EHOSTUNREACH" - "NETWORK_ERROR_ENETUNREACH" - "NETWORK_UNAVAILABLE" - "NFC_CREATE_SOCKET_FAILED" - "NFC_SERVICE_DIED" - "NFC_TECH_NOT_SUPPORTED" - "NOT_AUTHORIZED" - "NSD_NOT_ENABLED" - "NULL_ADDRESS" - "NULL_ADVERTISEMENT_BYTES" - "NULL_BLE_PERIPHERAL" - "NULL_BLUETOOTH_ADAPTER" - "NULL_BLUETOOTH_DEVICE" - "NULL_BLUETOOTH_DEVICE_NAME" - "NULL_BLUETOOTH_GATT" - "NULL_BLUETOOTH_LE_ADVERTISER_COMPAT" - "NULL_BLUETOOTH_LE_SCANNER_COMPAT" - "NULL_BLUETOOTH_MANAGER" - "NULL_BLUETOOTH_PROXY" - "NULL_CALLBACK" - "NULL_CONNECTIVITY_MANAGER" - "NULL_DATA_CHANNEL" - "NULL_DROID_GUARD_RESULT" - "NULL_LOCAL_ADDRESS" - "NULL_MESSAGE" - "NULL_NFC_TAG" - "NULL_PASSWORD" - "NULL_SERVICE_ID" - "NULL_SERVICE_INFO" - "NULL_SERVICE_NAME" - "NULL_SERVICE_TYPE" - "NULL_SSID" - "NULL_WIFI_AWARE_MANAGER" - "NULL_WIFI_AWARE_PEER" - "NULL_WIFI_MANAGER" - "NULL_WIFI_P2P_MANAGER" - "NULL_WORK_SOURCE" - "P2P_GROUP_FORMED" - "P2P_UNSUPPORTED" - "POTENTIAL_SRD_ISSUE" - "POTENTIAL_WEBRTC_LIB_LOADING_FAILURE" - "PUBLISH_EMPTY_ADVERTISEMENT_FAILED" - "READ_CHARACTERISTIC_FAILED" - "REFLECTION_ERROR" - "REMOTE_EXCEPTION" - "SCAN_FAILED_ALREADY_STARTED" - "SCAN_FAILED_APPLICATION_REGISTRATION_FAILED" - "SCAN_FAILED_BLUETOOTH_DISABLED" - "SCAN_FAILED_FEATURE_UNSUPPORTED" - "SCAN_FAILED_INTERNAL_ERROR" - "SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION" - "SERVER_SOCKET_UNAVAILABLE" - "SET_CONNECTION_PRIORITY_FAILED" - "SET_CONNECTION_PRIORITY_INTERRUPTED" - "SET_SCAN_MODE_FAILED" - "SOCKET_ALREADY_BOUND" - "SOCKET_ALREADY_CONNECTED" - "SOCKET_BIND_LISTEN_FAILED" - "SOCKET_CLOSED" - "SOCKET_CLOSED_OR_TIMEOUT" - "SOCKET_NOT_BOUND" - "STALE_ANDROID_VERSION" - "STALE_SDK_VERSION" - "TACHYON_ALREADY_START_RECEIVE_MESSAGE" - "TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION" - "TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION" - "TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION" - "TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION" - "TACHYON_RECEIVE_MESSAGE_FAILED" - "TACHYON_RECEIVE_MESSAGE_INTERRUPTED" - "TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION" - "TACHYON_RECEIVE_MESSAGE_TIMEOUT" - "TACHYON_SEND_MESSAGE_AUTH_EXCEPTION" - "TACHYON_SEND_MESSAGE_STATUS_EXCEPTION" - "TACHYON_SIGNALING_MESSENGER_EXIST" - "TIE_BREAK_LOSER" - "TIMEOUT" - "UNEXPECTED_BLUETOOTH_STATE" - "UNEXPECTED_EOF_EXCEPTION" - "UNEXPECTED_GATT_DESCRIPTOR" - "UNEXPECTED_PACKET_CONTENT" - "UNKNOWN" - "UNKNOWN_IO_EXCEPTION" - "UNREGISTER_NSD_MANAGER_FAILED" - "UNSUPPORTED_DEVICE_TYPE" - "UNSUPPORTED_DEVICE_TYPE_AUTO" - "UNSUPPORTED_DEVICE_TYPE_CHROME_OS" - "UNSUPPORTED_DEVICE_TYPE_PHONE" - "UNSUPPORTED_DEVICE_TYPE_TABLET" - "UNSUPPORTED_DEVICE_TYPE_TV" - "UNSUPPORTED_DEVICE_TYPE_WEAR" - "UPDATE_NETWORK_FAILED" - "USER_RESTRICTION_DISALLOWED" - "WEBRTC_ALREADY_INITIALIZED" - "WEBRTC_CONNECTION_FLOW_EXIST" - "WIFI_AWARE_STARTED" - "WIFI_HOTSPOT_ENABLED" - "WIFI_MANAGER_ENABLE_NETWORK_FAILED" - "WIFI_MANAGER_RECONNECT_FAILED" - "WIFI_SIGNAL_STRENGTH_POOR" - "WITHOUT_ACTIVE_AWARE_NETWORK" - "WITHOUT_ACTIVE_NETWORK" - "WITHOUT_CONNECTED_WIFI_NETWORK" - "WITHOUT_JOINED_AWARE_NETWORK" - "WITHOUT_PSM_VALUE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Description_entries[] = { - { {Description_names + 0, 26}, 96 }, - { {Description_names + 26, 18}, 103 }, - { {Description_names + 44, 32}, 14 }, - { {Description_names + 76, 31}, 15 }, - { {Description_names + 107, 36}, 16 }, - { {Description_names + 143, 31}, 17 }, - { {Description_names + 174, 37}, 18 }, - { {Description_names + 211, 27}, 165 }, - { {Description_names + 238, 19}, 105 }, - { {Description_names + 257, 23}, 153 }, - { {Description_names + 280, 38}, 159 }, - { {Description_names + 318, 35}, 156 }, - { {Description_names + 353, 35}, 158 }, - { {Description_names + 388, 40}, 157 }, - { {Description_names + 428, 29}, 151 }, - { {Description_names + 457, 31}, 152 }, - { {Description_names + 488, 17}, 74 }, - { {Description_names + 505, 37}, 163 }, - { {Description_names + 542, 23}, 82 }, - { {Description_names + 565, 32}, 51 }, - { {Description_names + 597, 39}, 57 }, - { {Description_names + 636, 39}, 135 }, - { {Description_names + 675, 11}, 175 }, - { {Description_names + 686, 4}, 99 }, - { {Description_names + 690, 26}, 149 }, - { {Description_names + 716, 28}, 3 }, - { {Description_names + 744, 16}, 176 }, - { {Description_names + 760, 26}, 90 }, - { {Description_names + 786, 19}, 148 }, - { {Description_names + 805, 24}, 126 }, - { {Description_names + 829, 23}, 44 }, - { {Description_names + 852, 19}, 20 }, - { {Description_names + 871, 28}, 129 }, - { {Description_names + 899, 34}, 6 }, - { {Description_names + 933, 31}, 5 }, - { {Description_names + 964, 45}, 27 }, - { {Description_names + 1009, 25}, 26 }, - { {Description_names + 1034, 35}, 178 }, - { {Description_names + 1069, 30}, 177 }, - { {Description_names + 1099, 27}, 179 }, - { {Description_names + 1126, 32}, 36 }, - { {Description_names + 1158, 33}, 93 }, - { {Description_names + 1191, 26}, 76 }, - { {Description_names + 1217, 18}, 138 }, - { {Description_names + 1235, 26}, 162 }, - { {Description_names + 1261, 19}, 144 }, - { {Description_names + 1280, 14}, 98 }, - { {Description_names + 1294, 21}, 19 }, - { {Description_names + 1315, 33}, 11 }, - { {Description_names + 1348, 12}, 106 }, - { {Description_names + 1360, 25}, 58 }, - { {Description_names + 1385, 36}, 136 }, - { {Description_names + 1421, 38}, 137 }, - { {Description_names + 1459, 45}, 56 }, - { {Description_names + 1504, 31}, 10 }, - { {Description_names + 1535, 26}, 9 }, - { {Description_names + 1561, 20}, 65 }, - { {Description_names + 1581, 20}, 66 }, - { {Description_names + 1601, 18}, 108 }, - { {Description_names + 1619, 20}, 62 }, - { {Description_names + 1639, 21}, 61 }, - { {Description_names + 1660, 19}, 32 }, - { {Description_names + 1679, 34}, 12 }, - { {Description_names + 1713, 22}, 142 }, - { {Description_names + 1735, 15}, 68 }, - { {Description_names + 1750, 20}, 146 }, - { {Description_names + 1770, 17}, 23 }, - { {Description_names + 1787, 13}, 75 }, - { {Description_names + 1800, 19}, 140 }, - { {Description_names + 1819, 28}, 86 }, - { {Description_names + 1847, 17}, 164 }, - { {Description_names + 1864, 23}, 30 }, - { {Description_names + 1887, 25}, 182 }, - { {Description_names + 1912, 36}, 186 }, - { {Description_names + 1948, 38}, 187 }, - { {Description_names + 1986, 28}, 184 }, - { {Description_names + 2014, 30}, 181 }, - { {Description_names + 2044, 24}, 183 }, - { {Description_names + 2068, 30}, 180 }, - { {Description_names + 2098, 38}, 185 }, - { {Description_names + 2136, 22}, 85 }, - { {Description_names + 2158, 26}, 101 }, - { {Description_names + 2184, 25}, 102 }, - { {Description_names + 2209, 19}, 87 }, - { {Description_names + 2228, 24}, 83 }, - { {Description_names + 2252, 16}, 81 }, - { {Description_names + 2268, 22}, 80 }, - { {Description_names + 2290, 14}, 107 }, - { {Description_names + 2304, 15}, 31 }, - { {Description_names + 2319, 12}, 67 }, - { {Description_names + 2331, 24}, 2 }, - { {Description_names + 2355, 19}, 52 }, - { {Description_names + 2374, 22}, 8 }, - { {Description_names + 2396, 21}, 59 }, - { {Description_names + 2417, 26}, 21 }, - { {Description_names + 2443, 19}, 53 }, - { {Description_names + 2462, 35}, 13 }, - { {Description_names + 2497, 32}, 43 }, - { {Description_names + 2529, 22}, 7 }, - { {Description_names + 2551, 20}, 60 }, - { {Description_names + 2571, 13}, 42 }, - { {Description_names + 2584, 25}, 37 }, - { {Description_names + 2609, 17}, 147 }, - { {Description_names + 2626, 23}, 113 }, - { {Description_names + 2649, 18}, 139 }, - { {Description_names + 2667, 12}, 171 }, - { {Description_names + 2679, 12}, 25 }, - { {Description_names + 2691, 13}, 92 }, - { {Description_names + 2704, 15}, 1 }, - { {Description_names + 2719, 17}, 40 }, - { {Description_names + 2736, 17}, 33 }, - { {Description_names + 2753, 17}, 34 }, - { {Description_names + 2770, 9}, 91 }, - { {Description_names + 2779, 23}, 38 }, - { {Description_names + 2802, 20}, 84 }, - { {Description_names + 2822, 17}, 77 }, - { {Description_names + 2839, 21}, 94 }, - { {Description_names + 2860, 16}, 41 }, - { {Description_names + 2876, 16}, 95 }, - { {Description_names + 2892, 15}, 97 }, - { {Description_names + 2907, 19}, 155 }, - { {Description_names + 2926, 36}, 127 }, - { {Description_names + 2962, 34}, 134 }, - { {Description_names + 2996, 26}, 72 }, - { {Description_names + 3022, 16}, 100 }, - { {Description_names + 3038, 16}, 55 }, - { {Description_names + 3054, 27}, 45 }, - { {Description_names + 3081, 43}, 46 }, - { {Description_names + 3124, 30}, 49 }, - { {Description_names + 3154, 31}, 48 }, - { {Description_names + 3185, 26}, 47 }, - { {Description_names + 3211, 37}, 50 }, - { {Description_names + 3248, 25}, 161 }, - { {Description_names + 3273, 30}, 69 }, - { {Description_names + 3303, 35}, 70 }, - { {Description_names + 3338, 20}, 22 }, - { {Description_names + 3358, 20}, 143 }, - { {Description_names + 3378, 24}, 79 }, - { {Description_names + 3402, 25}, 131 }, - { {Description_names + 3427, 13}, 78 }, - { {Description_names + 3440, 24}, 64 }, - { {Description_names + 3464, 16}, 141 }, - { {Description_names + 3480, 21}, 39 }, - { {Description_names + 3501, 17}, 4 }, - { {Description_names + 3518, 37}, 115 }, - { {Description_names + 3555, 37}, 124 }, - { {Description_names + 3592, 39}, 125 }, - { {Description_names + 3631, 38}, 120 }, - { {Description_names + 3669, 43}, 118 }, - { {Description_names + 3712, 30}, 116 }, - { {Description_names + 3742, 35}, 117 }, - { {Description_names + 3777, 40}, 121 }, - { {Description_names + 3817, 31}, 119 }, - { {Description_names + 3848, 35}, 122 }, - { {Description_names + 3883, 37}, 123 }, - { {Description_names + 3920, 33}, 114 }, - { {Description_names + 3953, 15}, 160 }, - { {Description_names + 3968, 7}, 24 }, - { {Description_names + 3975, 26}, 54 }, - { {Description_names + 4001, 24}, 63 }, - { {Description_names + 4025, 26}, 128 }, - { {Description_names + 4051, 25}, 132 }, - { {Description_names + 4076, 7}, 0 }, - { {Description_names + 4083, 20}, 71 }, - { {Description_names + 4103, 29}, 133 }, - { {Description_names + 4132, 23}, 166 }, - { {Description_names + 4155, 28}, 168 }, - { {Description_names + 4183, 33}, 167 }, - { {Description_names + 4216, 29}, 173 }, - { {Description_names + 4245, 30}, 174 }, - { {Description_names + 4275, 26}, 169 }, - { {Description_names + 4301, 28}, 170 }, - { {Description_names + 4329, 21}, 104 }, - { {Description_names + 4350, 27}, 172 }, - { {Description_names + 4377, 26}, 145 }, - { {Description_names + 4403, 28}, 112 }, - { {Description_names + 4431, 18}, 150 }, - { {Description_names + 4449, 20}, 73 }, - { {Description_names + 4469, 34}, 109 }, - { {Description_names + 4503, 29}, 110 }, - { {Description_names + 4532, 25}, 154 }, - { {Description_names + 4557, 28}, 88 }, - { {Description_names + 4585, 22}, 111 }, - { {Description_names + 4607, 30}, 35 }, - { {Description_names + 4637, 28}, 89 }, - { {Description_names + 4665, 17}, 130 }, +static const ::google::protobuf::internal::EnumEntry Description_entries[] = { + {{&Description_names[0], 26}, 96}, + {{&Description_names[26], 18}, 103}, + {{&Description_names[44], 32}, 14}, + {{&Description_names[76], 31}, 15}, + {{&Description_names[107], 36}, 16}, + {{&Description_names[143], 31}, 17}, + {{&Description_names[174], 37}, 18}, + {{&Description_names[211], 27}, 165}, + {{&Description_names[238], 19}, 105}, + {{&Description_names[257], 23}, 153}, + {{&Description_names[280], 38}, 159}, + {{&Description_names[318], 35}, 156}, + {{&Description_names[353], 35}, 158}, + {{&Description_names[388], 40}, 157}, + {{&Description_names[428], 29}, 151}, + {{&Description_names[457], 31}, 152}, + {{&Description_names[488], 17}, 74}, + {{&Description_names[505], 37}, 163}, + {{&Description_names[542], 23}, 82}, + {{&Description_names[565], 32}, 51}, + {{&Description_names[597], 39}, 57}, + {{&Description_names[636], 39}, 135}, + {{&Description_names[675], 11}, 175}, + {{&Description_names[686], 4}, 99}, + {{&Description_names[690], 26}, 149}, + {{&Description_names[716], 28}, 3}, + {{&Description_names[744], 16}, 176}, + {{&Description_names[760], 26}, 90}, + {{&Description_names[786], 19}, 148}, + {{&Description_names[805], 24}, 126}, + {{&Description_names[829], 23}, 44}, + {{&Description_names[852], 19}, 20}, + {{&Description_names[871], 28}, 129}, + {{&Description_names[899], 34}, 6}, + {{&Description_names[933], 31}, 5}, + {{&Description_names[964], 45}, 27}, + {{&Description_names[1009], 25}, 26}, + {{&Description_names[1034], 35}, 178}, + {{&Description_names[1069], 30}, 177}, + {{&Description_names[1099], 27}, 179}, + {{&Description_names[1126], 32}, 36}, + {{&Description_names[1158], 33}, 93}, + {{&Description_names[1191], 26}, 76}, + {{&Description_names[1217], 18}, 138}, + {{&Description_names[1235], 26}, 162}, + {{&Description_names[1261], 19}, 144}, + {{&Description_names[1280], 14}, 98}, + {{&Description_names[1294], 21}, 19}, + {{&Description_names[1315], 33}, 11}, + {{&Description_names[1348], 12}, 106}, + {{&Description_names[1360], 25}, 58}, + {{&Description_names[1385], 36}, 136}, + {{&Description_names[1421], 38}, 137}, + {{&Description_names[1459], 45}, 56}, + {{&Description_names[1504], 31}, 10}, + {{&Description_names[1535], 26}, 9}, + {{&Description_names[1561], 20}, 65}, + {{&Description_names[1581], 20}, 66}, + {{&Description_names[1601], 18}, 108}, + {{&Description_names[1619], 20}, 62}, + {{&Description_names[1639], 21}, 61}, + {{&Description_names[1660], 19}, 32}, + {{&Description_names[1679], 34}, 12}, + {{&Description_names[1713], 22}, 142}, + {{&Description_names[1735], 15}, 68}, + {{&Description_names[1750], 20}, 146}, + {{&Description_names[1770], 17}, 23}, + {{&Description_names[1787], 13}, 75}, + {{&Description_names[1800], 19}, 140}, + {{&Description_names[1819], 28}, 86}, + {{&Description_names[1847], 17}, 164}, + {{&Description_names[1864], 23}, 30}, + {{&Description_names[1887], 25}, 182}, + {{&Description_names[1912], 36}, 186}, + {{&Description_names[1948], 38}, 187}, + {{&Description_names[1986], 28}, 184}, + {{&Description_names[2014], 30}, 181}, + {{&Description_names[2044], 24}, 183}, + {{&Description_names[2068], 30}, 180}, + {{&Description_names[2098], 38}, 185}, + {{&Description_names[2136], 22}, 85}, + {{&Description_names[2158], 26}, 101}, + {{&Description_names[2184], 25}, 102}, + {{&Description_names[2209], 19}, 87}, + {{&Description_names[2228], 24}, 83}, + {{&Description_names[2252], 16}, 81}, + {{&Description_names[2268], 22}, 80}, + {{&Description_names[2290], 14}, 107}, + {{&Description_names[2304], 15}, 31}, + {{&Description_names[2319], 12}, 67}, + {{&Description_names[2331], 24}, 2}, + {{&Description_names[2355], 19}, 52}, + {{&Description_names[2374], 22}, 8}, + {{&Description_names[2396], 21}, 59}, + {{&Description_names[2417], 26}, 21}, + {{&Description_names[2443], 19}, 53}, + {{&Description_names[2462], 35}, 13}, + {{&Description_names[2497], 32}, 43}, + {{&Description_names[2529], 22}, 7}, + {{&Description_names[2551], 20}, 60}, + {{&Description_names[2571], 13}, 42}, + {{&Description_names[2584], 25}, 37}, + {{&Description_names[2609], 17}, 147}, + {{&Description_names[2626], 23}, 113}, + {{&Description_names[2649], 18}, 139}, + {{&Description_names[2667], 12}, 171}, + {{&Description_names[2679], 12}, 25}, + {{&Description_names[2691], 13}, 92}, + {{&Description_names[2704], 15}, 1}, + {{&Description_names[2719], 17}, 40}, + {{&Description_names[2736], 17}, 33}, + {{&Description_names[2753], 17}, 34}, + {{&Description_names[2770], 9}, 91}, + {{&Description_names[2779], 23}, 38}, + {{&Description_names[2802], 20}, 84}, + {{&Description_names[2822], 17}, 77}, + {{&Description_names[2839], 21}, 94}, + {{&Description_names[2860], 16}, 41}, + {{&Description_names[2876], 16}, 95}, + {{&Description_names[2892], 15}, 97}, + {{&Description_names[2907], 19}, 155}, + {{&Description_names[2926], 36}, 127}, + {{&Description_names[2962], 34}, 134}, + {{&Description_names[2996], 26}, 72}, + {{&Description_names[3022], 16}, 100}, + {{&Description_names[3038], 16}, 55}, + {{&Description_names[3054], 27}, 45}, + {{&Description_names[3081], 43}, 46}, + {{&Description_names[3124], 30}, 49}, + {{&Description_names[3154], 31}, 48}, + {{&Description_names[3185], 26}, 47}, + {{&Description_names[3211], 37}, 50}, + {{&Description_names[3248], 25}, 161}, + {{&Description_names[3273], 30}, 69}, + {{&Description_names[3303], 35}, 70}, + {{&Description_names[3338], 20}, 22}, + {{&Description_names[3358], 20}, 143}, + {{&Description_names[3378], 24}, 79}, + {{&Description_names[3402], 25}, 131}, + {{&Description_names[3427], 13}, 78}, + {{&Description_names[3440], 24}, 64}, + {{&Description_names[3464], 16}, 141}, + {{&Description_names[3480], 21}, 39}, + {{&Description_names[3501], 17}, 4}, + {{&Description_names[3518], 37}, 115}, + {{&Description_names[3555], 37}, 124}, + {{&Description_names[3592], 39}, 125}, + {{&Description_names[3631], 38}, 120}, + {{&Description_names[3669], 43}, 118}, + {{&Description_names[3712], 30}, 116}, + {{&Description_names[3742], 35}, 117}, + {{&Description_names[3777], 40}, 121}, + {{&Description_names[3817], 31}, 119}, + {{&Description_names[3848], 35}, 122}, + {{&Description_names[3883], 37}, 123}, + {{&Description_names[3920], 33}, 114}, + {{&Description_names[3953], 15}, 160}, + {{&Description_names[3968], 7}, 24}, + {{&Description_names[3975], 26}, 54}, + {{&Description_names[4001], 24}, 63}, + {{&Description_names[4025], 26}, 128}, + {{&Description_names[4051], 25}, 132}, + {{&Description_names[4076], 7}, 0}, + {{&Description_names[4083], 20}, 71}, + {{&Description_names[4103], 29}, 133}, + {{&Description_names[4132], 23}, 166}, + {{&Description_names[4155], 28}, 168}, + {{&Description_names[4183], 33}, 167}, + {{&Description_names[4216], 29}, 173}, + {{&Description_names[4245], 30}, 174}, + {{&Description_names[4275], 26}, 169}, + {{&Description_names[4301], 28}, 170}, + {{&Description_names[4329], 21}, 104}, + {{&Description_names[4350], 27}, 172}, + {{&Description_names[4377], 26}, 145}, + {{&Description_names[4403], 28}, 112}, + {{&Description_names[4431], 18}, 150}, + {{&Description_names[4449], 20}, 73}, + {{&Description_names[4469], 34}, 109}, + {{&Description_names[4503], 29}, 110}, + {{&Description_names[4532], 25}, 154}, + {{&Description_names[4557], 28}, 88}, + {{&Description_names[4585], 22}, 111}, + {{&Description_names[4607], 30}, 35}, + {{&Description_names[4637], 28}, 89}, + {{&Description_names[4665], 17}, 130}, }; static const int Description_entries_by_number[] = { - 162, // 0 -> UNKNOWN - 108, // 1 -> NULL_SERVICE_ID - 90, // 2 -> NULL_ADVERTISEMENT_BYTES - 25, // 3 -> CONNECTIONS_FEATURE_DISABLED - 143, // 4 -> STALE_SDK_VERSION - 34, // 5 -> FEATURE_BLUETOOTH_NOT_SUPPORTED - 33, // 6 -> FEATURE_BLUETOOTH_LE_NOT_SUPPORTED - 98, // 7 -> NULL_BLUETOOTH_MANAGER - 92, // 8 -> NULL_BLUETOOTH_ADAPTER - 55, // 9 -> INVALID_FAST_PAIR_MODEL_ID - 54, // 10 -> INVALID_FAST_ADVERTISEMENT_DATA - 48, // 11 -> INVALID_ADVERTISEMENT_HEADER_DATA - 62, // 12 -> INVALID_REGULAR_ADVERTISEMENT_DATA - 96, // 13 -> NULL_BLUETOOTH_LE_ADVERTISER_COMPAT - 2, // 14 -> ADVERTISE_FAILED_ALREADY_STARTED - 3, // 15 -> ADVERTISE_FAILED_DATA_TOO_LARGE - 4, // 16 -> ADVERTISE_FAILED_FEATURE_UNSUPPORTED - 5, // 17 -> ADVERTISE_FAILED_INTERNAL_ERROR - 6, // 18 -> ADVERTISE_FAILED_TOO_MANY_ADVERTISERS - 47, // 19 -> INTERRUPTED_EXCEPTION - 31, // 20 -> EXECUTION_EXCEPTION - 94, // 21 -> NULL_BLUETOOTH_DEVICE_NAME - 135, // 22 -> SET_SCAN_MODE_FAILED - 66, // 23 -> INVOKE_API_FAILED - 157, // 24 -> TIMEOUT - 106, // 25 -> NULL_NFC_TAG - 36, // 26 -> FEATURE_NFC_NOT_SUPPORTED - 35, // 27 -> FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED - 71, // 30 -> MULTICAST_NOT_SUPPORTED - 88, // 31 -> NSD_NOT_ENABLED - 61, // 32 -> INVALID_PORT_NUMBER - 110, // 33 -> NULL_SERVICE_NAME - 111, // 34 -> NULL_SERVICE_TYPE - 183, // 35 -> WITHOUT_CONNECTED_WIFI_NETWORK - 40, // 36 -> FEATURE_WIFI_AWARE_NOT_SUPPORTED - 101, // 37 -> NULL_CONNECTIVITY_MANAGER - 113, // 38 -> NULL_WIFI_AWARE_MANAGER - 142, // 39 -> STALE_ANDROID_VERSION - 109, // 40 -> NULL_SERVICE_INFO - 117, // 41 -> NULL_WORK_SOURCE - 100, // 42 -> NULL_CALLBACK - 97, // 43 -> NULL_BLUETOOTH_LE_SCANNER_COMPAT - 30, // 44 -> EMPTY_WORK_SOURCE_CACHE - 126, // 45 -> SCAN_FAILED_ALREADY_STARTED - 127, // 46 -> SCAN_FAILED_APPLICATION_REGISTRATION_FAILED - 130, // 47 -> SCAN_FAILED_INTERNAL_ERROR - 129, // 48 -> SCAN_FAILED_FEATURE_UNSUPPORTED - 128, // 49 -> SCAN_FAILED_BLUETOOTH_DISABLED - 131, // 50 -> SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION - 19, // 51 -> BLUETOOTH_SCAN_REJUVENATE_FAILED - 91, // 52 -> NULL_BLE_PERIPHERAL - 95, // 53 -> NULL_BLUETOOTH_GATT - 158, // 54 -> UNEXPECTED_BLUETOOTH_STATE - 125, // 55 -> REMOTE_EXCEPTION - 53, // 56 -> INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT - 20, // 57 -> BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED - 50, // 58 -> INVALID_BLUETOOTH_CHANNEL - 93, // 59 -> NULL_BLUETOOTH_DEVICE - 99, // 60 -> NULL_BLUETOOTH_PROXY - 60, // 61 -> INVALID_PACKET_LENGTH - 59, // 62 -> INVALID_PACKET_BYTES - 159, // 63 -> UNEXPECTED_EOF_EXCEPTION - 140, // 64 -> SOCKET_CLOSED_OR_TIMEOUT - 56, // 65 -> INVALID_IPV4_ADDRESS - 57, // 66 -> INVALID_IPV6_ADDRESS - 89, // 67 -> NULL_ADDRESS - 64, // 68 -> INVALID_VERSION - 133, // 69 -> SET_CONNECTION_PRIORITY_FAILED - 134, // 70 -> SET_CONNECTION_PRIORITY_INTERRUPTED - 163, // 71 -> UNKNOWN_IO_EXCEPTION - 123, // 72 -> READ_CHARACTERISTIC_FAILED - 177, // 73 -> WIFI_HOTSPOT_ENABLED - 16, // 74 -> AWARE_UNAVAILABLE - 67, // 75 -> IN_BLACK_LIST - 42, // 76 -> FEATURE_WIFI_NOT_SUPPORTED - 115, // 77 -> NULL_WIFI_MANAGER - 139, // 78 -> SOCKET_CLOSED - 137, // 79 -> SOCKET_ALREADY_CONNECTED - 86, // 80 -> NFC_TECH_NOT_SUPPORTED - 85, // 81 -> NFC_SERVICE_DIED - 18, // 82 -> BIND_NFC_SERVICE_FAILED - 84, // 83 -> NFC_CREATE_SOCKET_FAILED - 114, // 84 -> NULL_WIFI_AWARE_PEER - 80, // 85 -> NETWORK_ALREADY_JOINED - 69, // 86 -> JOIN_AWARE_NETWORK_CANCELLED - 83, // 87 -> NETWORK_UNAVAILABLE - 181, // 88 -> WITHOUT_ACTIVE_AWARE_NETWORK - 184, // 89 -> WITHOUT_JOINED_AWARE_NETWORK - 27, // 90 -> CONNET_TO_SOCKET_CANCELLED - 112, // 91 -> NULL_SSID - 107, // 92 -> NULL_PASSWORD - 41, // 93 -> FEATURE_WIFI_DIRECT_NOT_SUPPORTED - 116, // 94 -> NULL_WIFI_P2P_MANAGER - 118, // 95 -> P2P_GROUP_FORMED - 0, // 96 -> ACQUIRE_P2P_CHANNEL_FAILED - 119, // 97 -> P2P_UNSUPPORTED - 46, // 98 -> INTERNAL_ERROR - 23, // 99 -> BUSY - 124, // 100 -> REFLECTION_ERROR - 81, // 101 -> NETWORK_ERROR_EHOSTUNREACH - 82, // 102 -> NETWORK_ERROR_ENETUNREACH - 1, // 103 -> ADD_NETWORK_FAILED - 172, // 104 -> UPDATE_NETWORK_FAILED - 8, // 105 -> ALREADY_IN_PROGRESS - 49, // 106 -> INVALID_ARGS - 87, // 107 -> NOT_AUTHORIZED - 58, // 108 -> INVALID_NETWORK_ID - 178, // 109 -> WIFI_MANAGER_ENABLE_NETWORK_FAILED - 179, // 110 -> WIFI_MANAGER_RECONNECT_FAILED - 182, // 111 -> WITHOUT_ACTIVE_NETWORK - 175, // 112 -> WEBRTC_CONNECTION_FLOW_EXIST - 103, // 113 -> NULL_DROID_GUARD_RESULT - 155, // 114 -> TACHYON_SIGNALING_MESSENGER_EXIST - 144, // 115 -> TACHYON_ALREADY_START_RECEIVE_MESSAGE - 149, // 116 -> TACHYON_RECEIVE_MESSAGE_FAILED - 150, // 117 -> TACHYON_RECEIVE_MESSAGE_INTERRUPTED - 148, // 118 -> TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION - 152, // 119 -> TACHYON_RECEIVE_MESSAGE_TIMEOUT - 147, // 120 -> TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION - 151, // 121 -> TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION - 153, // 122 -> TACHYON_SEND_MESSAGE_AUTH_EXCEPTION - 154, // 123 -> TACHYON_SEND_MESSAGE_STATUS_EXCEPTION - 145, // 124 -> TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION - 146, // 125 -> TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION - 29, // 126 -> EMPTY_TACHYON_ICE_SERVER - 121, // 127 -> POTENTIAL_WEBRTC_LIB_LOADING_FAILURE - 160, // 128 -> UNEXPECTED_GATT_DESCRIPTOR - 32, // 129 -> FAIL_TO_RECEIVE_L2CAP_PACKET - 185, // 130 -> WITHOUT_PSM_VALUE - 138, // 131 -> SOCKET_BIND_LISTEN_FAILED - 161, // 132 -> UNEXPECTED_PACKET_CONTENT - 164, // 133 -> UNREGISTER_NSD_MANAGER_FAILED - 122, // 134 -> PUBLISH_EMPTY_ADVERTISEMENT_FAILED - 21, // 135 -> BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE - 51, // 136 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE - 52, // 137 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS - 43, // 138 -> GET_ADDRESS_FAILED - 104, // 139 -> NULL_LOCAL_ADDRESS - 68, // 140 -> IS_LOOPBACK_ADDRESS - 141, // 141 -> SOCKET_NOT_BOUND - 63, // 142 -> INVALID_REMOTE_ADDRESS - 136, // 143 -> SOCKET_ALREADY_BOUND - 45, // 144 -> HOTSPOT_NOT_STARTED - 174, // 145 -> WEBRTC_ALREADY_INITIALIZED - 65, // 146 -> INVALID_WEBRTC_STATE - 102, // 147 -> NULL_DATA_CHANNEL - 28, // 148 -> CREATE_OFFER_FAILED - 24, // 149 -> CLOSE_SERVER_SOCKET_FAILED - 176, // 150 -> WIFI_AWARE_STARTED - 14, // 151 -> AWARE_PUBLISH_SESSION_RAN_OUT - 15, // 152 -> AWARE_SUBSCRIBE_SESSION_RAN_OUT - 9, // 153 -> AWARE_DATA_PATH_RAN_OUT - 180, // 154 -> WIFI_SIGNAL_STRENGTH_POOR - 120, // 155 -> POTENTIAL_SRD_ISSUE - 11, // 156 -> AWARE_L2_MESSAGE_HOST_NETWORK_ERROR - 13, // 157 -> AWARE_L2_MESSAGE_NETWORK_AVAILABLE_ERROR - 12, // 158 -> AWARE_L2_MESSAGE_IP_AVAILABLE_ERROR - 10, // 159 -> AWARE_L2_MESSAGE_CANCELLATION_RECEIVED - 156, // 160 -> TIE_BREAK_LOSER - 132, // 161 -> SERVER_SOCKET_UNAVAILABLE - 44, // 162 -> HOSTED_NETWORK_UNAVAILABLE - 17, // 163 -> AWARE_UPDATE_PUBLISHING_CONFIG_FAILED - 70, // 164 -> L2CAP_UNAVAILABLE - 7, // 165 -> ALREADY_HAS_GATT_CONNECTION - 165, // 166 -> UNSUPPORTED_DEVICE_TYPE - 167, // 167 -> UNSUPPORTED_DEVICE_TYPE_CHROME_OS - 166, // 168 -> UNSUPPORTED_DEVICE_TYPE_AUTO - 170, // 169 -> UNSUPPORTED_DEVICE_TYPE_TV - 171, // 170 -> UNSUPPORTED_DEVICE_TYPE_WEAR - 105, // 171 -> NULL_MESSAGE - 173, // 172 -> USER_RESTRICTION_DISALLOWED - 168, // 173 -> UNSUPPORTED_DEVICE_TYPE_PHONE - 169, // 174 -> UNSUPPORTED_DEVICE_TYPE_TABLET - 22, // 175 -> BROKEN_PIPE - 26, // 176 -> CONNECTION_ABORT - 38, // 177 -> FEATURE_USB_HOST_NOT_SUPPORTED - 37, // 178 -> FEATURE_USB_ACCESSORY_NOT_SUPPORTED - 39, // 179 -> FEATURE_USB_PORTS_NOT_FOUND - 78, // 180 -> MULTIPLEX_SOCKET_UNKNOWN_ERROR - 76, // 181 -> MULTIPLEX_SOCKET_NOT_LISTENING - 72, // 182 -> MULTIPLEX_SOCKET_DISABLED - 77, // 183 -> MULTIPLEX_SOCKET_TIMEOUT - 75, // 184 -> MULTIPLEX_SOCKET_IOEXCEPTION - 79, // 185 -> MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE - 73, // 186 -> MULTIPLEX_SOCKET_EXECUTION_EXCEPTION - 74, // 187 -> MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION + 162, // 0 -> UNKNOWN + 108, // 1 -> NULL_SERVICE_ID + 90, // 2 -> NULL_ADVERTISEMENT_BYTES + 25, // 3 -> CONNECTIONS_FEATURE_DISABLED + 143, // 4 -> STALE_SDK_VERSION + 34, // 5 -> FEATURE_BLUETOOTH_NOT_SUPPORTED + 33, // 6 -> FEATURE_BLUETOOTH_LE_NOT_SUPPORTED + 98, // 7 -> NULL_BLUETOOTH_MANAGER + 92, // 8 -> NULL_BLUETOOTH_ADAPTER + 55, // 9 -> INVALID_FAST_PAIR_MODEL_ID + 54, // 10 -> INVALID_FAST_ADVERTISEMENT_DATA + 48, // 11 -> INVALID_ADVERTISEMENT_HEADER_DATA + 62, // 12 -> INVALID_REGULAR_ADVERTISEMENT_DATA + 96, // 13 -> NULL_BLUETOOTH_LE_ADVERTISER_COMPAT + 2, // 14 -> ADVERTISE_FAILED_ALREADY_STARTED + 3, // 15 -> ADVERTISE_FAILED_DATA_TOO_LARGE + 4, // 16 -> ADVERTISE_FAILED_FEATURE_UNSUPPORTED + 5, // 17 -> ADVERTISE_FAILED_INTERNAL_ERROR + 6, // 18 -> ADVERTISE_FAILED_TOO_MANY_ADVERTISERS + 47, // 19 -> INTERRUPTED_EXCEPTION + 31, // 20 -> EXECUTION_EXCEPTION + 94, // 21 -> NULL_BLUETOOTH_DEVICE_NAME + 135, // 22 -> SET_SCAN_MODE_FAILED + 66, // 23 -> INVOKE_API_FAILED + 157, // 24 -> TIMEOUT + 106, // 25 -> NULL_NFC_TAG + 36, // 26 -> FEATURE_NFC_NOT_SUPPORTED + 35, // 27 -> FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED + 71, // 30 -> MULTICAST_NOT_SUPPORTED + 88, // 31 -> NSD_NOT_ENABLED + 61, // 32 -> INVALID_PORT_NUMBER + 110, // 33 -> NULL_SERVICE_NAME + 111, // 34 -> NULL_SERVICE_TYPE + 183, // 35 -> WITHOUT_CONNECTED_WIFI_NETWORK + 40, // 36 -> FEATURE_WIFI_AWARE_NOT_SUPPORTED + 101, // 37 -> NULL_CONNECTIVITY_MANAGER + 113, // 38 -> NULL_WIFI_AWARE_MANAGER + 142, // 39 -> STALE_ANDROID_VERSION + 109, // 40 -> NULL_SERVICE_INFO + 117, // 41 -> NULL_WORK_SOURCE + 100, // 42 -> NULL_CALLBACK + 97, // 43 -> NULL_BLUETOOTH_LE_SCANNER_COMPAT + 30, // 44 -> EMPTY_WORK_SOURCE_CACHE + 126, // 45 -> SCAN_FAILED_ALREADY_STARTED + 127, // 46 -> SCAN_FAILED_APPLICATION_REGISTRATION_FAILED + 130, // 47 -> SCAN_FAILED_INTERNAL_ERROR + 129, // 48 -> SCAN_FAILED_FEATURE_UNSUPPORTED + 128, // 49 -> SCAN_FAILED_BLUETOOTH_DISABLED + 131, // 50 -> SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION + 19, // 51 -> BLUETOOTH_SCAN_REJUVENATE_FAILED + 91, // 52 -> NULL_BLE_PERIPHERAL + 95, // 53 -> NULL_BLUETOOTH_GATT + 158, // 54 -> UNEXPECTED_BLUETOOTH_STATE + 125, // 55 -> REMOTE_EXCEPTION + 53, // 56 -> INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT + 20, // 57 -> BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED + 50, // 58 -> INVALID_BLUETOOTH_CHANNEL + 93, // 59 -> NULL_BLUETOOTH_DEVICE + 99, // 60 -> NULL_BLUETOOTH_PROXY + 60, // 61 -> INVALID_PACKET_LENGTH + 59, // 62 -> INVALID_PACKET_BYTES + 159, // 63 -> UNEXPECTED_EOF_EXCEPTION + 140, // 64 -> SOCKET_CLOSED_OR_TIMEOUT + 56, // 65 -> INVALID_IPV4_ADDRESS + 57, // 66 -> INVALID_IPV6_ADDRESS + 89, // 67 -> NULL_ADDRESS + 64, // 68 -> INVALID_VERSION + 133, // 69 -> SET_CONNECTION_PRIORITY_FAILED + 134, // 70 -> SET_CONNECTION_PRIORITY_INTERRUPTED + 163, // 71 -> UNKNOWN_IO_EXCEPTION + 123, // 72 -> READ_CHARACTERISTIC_FAILED + 177, // 73 -> WIFI_HOTSPOT_ENABLED + 16, // 74 -> AWARE_UNAVAILABLE + 67, // 75 -> IN_BLACK_LIST + 42, // 76 -> FEATURE_WIFI_NOT_SUPPORTED + 115, // 77 -> NULL_WIFI_MANAGER + 139, // 78 -> SOCKET_CLOSED + 137, // 79 -> SOCKET_ALREADY_CONNECTED + 86, // 80 -> NFC_TECH_NOT_SUPPORTED + 85, // 81 -> NFC_SERVICE_DIED + 18, // 82 -> BIND_NFC_SERVICE_FAILED + 84, // 83 -> NFC_CREATE_SOCKET_FAILED + 114, // 84 -> NULL_WIFI_AWARE_PEER + 80, // 85 -> NETWORK_ALREADY_JOINED + 69, // 86 -> JOIN_AWARE_NETWORK_CANCELLED + 83, // 87 -> NETWORK_UNAVAILABLE + 181, // 88 -> WITHOUT_ACTIVE_AWARE_NETWORK + 184, // 89 -> WITHOUT_JOINED_AWARE_NETWORK + 27, // 90 -> CONNET_TO_SOCKET_CANCELLED + 112, // 91 -> NULL_SSID + 107, // 92 -> NULL_PASSWORD + 41, // 93 -> FEATURE_WIFI_DIRECT_NOT_SUPPORTED + 116, // 94 -> NULL_WIFI_P2P_MANAGER + 118, // 95 -> P2P_GROUP_FORMED + 0, // 96 -> ACQUIRE_P2P_CHANNEL_FAILED + 119, // 97 -> P2P_UNSUPPORTED + 46, // 98 -> INTERNAL_ERROR + 23, // 99 -> BUSY + 124, // 100 -> REFLECTION_ERROR + 81, // 101 -> NETWORK_ERROR_EHOSTUNREACH + 82, // 102 -> NETWORK_ERROR_ENETUNREACH + 1, // 103 -> ADD_NETWORK_FAILED + 172, // 104 -> UPDATE_NETWORK_FAILED + 8, // 105 -> ALREADY_IN_PROGRESS + 49, // 106 -> INVALID_ARGS + 87, // 107 -> NOT_AUTHORIZED + 58, // 108 -> INVALID_NETWORK_ID + 178, // 109 -> WIFI_MANAGER_ENABLE_NETWORK_FAILED + 179, // 110 -> WIFI_MANAGER_RECONNECT_FAILED + 182, // 111 -> WITHOUT_ACTIVE_NETWORK + 175, // 112 -> WEBRTC_CONNECTION_FLOW_EXIST + 103, // 113 -> NULL_DROID_GUARD_RESULT + 155, // 114 -> TACHYON_SIGNALING_MESSENGER_EXIST + 144, // 115 -> TACHYON_ALREADY_START_RECEIVE_MESSAGE + 149, // 116 -> TACHYON_RECEIVE_MESSAGE_FAILED + 150, // 117 -> TACHYON_RECEIVE_MESSAGE_INTERRUPTED + 148, // 118 -> TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION + 152, // 119 -> TACHYON_RECEIVE_MESSAGE_TIMEOUT + 147, // 120 -> TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION + 151, // 121 -> TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION + 153, // 122 -> TACHYON_SEND_MESSAGE_AUTH_EXCEPTION + 154, // 123 -> TACHYON_SEND_MESSAGE_STATUS_EXCEPTION + 145, // 124 -> TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION + 146, // 125 -> TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION + 29, // 126 -> EMPTY_TACHYON_ICE_SERVER + 121, // 127 -> POTENTIAL_WEBRTC_LIB_LOADING_FAILURE + 160, // 128 -> UNEXPECTED_GATT_DESCRIPTOR + 32, // 129 -> FAIL_TO_RECEIVE_L2CAP_PACKET + 185, // 130 -> WITHOUT_PSM_VALUE + 138, // 131 -> SOCKET_BIND_LISTEN_FAILED + 161, // 132 -> UNEXPECTED_PACKET_CONTENT + 164, // 133 -> UNREGISTER_NSD_MANAGER_FAILED + 122, // 134 -> PUBLISH_EMPTY_ADVERTISEMENT_FAILED + 21, // 135 -> BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE + 51, // 136 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE + 52, // 137 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS + 43, // 138 -> GET_ADDRESS_FAILED + 104, // 139 -> NULL_LOCAL_ADDRESS + 68, // 140 -> IS_LOOPBACK_ADDRESS + 141, // 141 -> SOCKET_NOT_BOUND + 63, // 142 -> INVALID_REMOTE_ADDRESS + 136, // 143 -> SOCKET_ALREADY_BOUND + 45, // 144 -> HOTSPOT_NOT_STARTED + 174, // 145 -> WEBRTC_ALREADY_INITIALIZED + 65, // 146 -> INVALID_WEBRTC_STATE + 102, // 147 -> NULL_DATA_CHANNEL + 28, // 148 -> CREATE_OFFER_FAILED + 24, // 149 -> CLOSE_SERVER_SOCKET_FAILED + 176, // 150 -> WIFI_AWARE_STARTED + 14, // 151 -> AWARE_PUBLISH_SESSION_RAN_OUT + 15, // 152 -> AWARE_SUBSCRIBE_SESSION_RAN_OUT + 9, // 153 -> AWARE_DATA_PATH_RAN_OUT + 180, // 154 -> WIFI_SIGNAL_STRENGTH_POOR + 120, // 155 -> POTENTIAL_SRD_ISSUE + 11, // 156 -> AWARE_L2_MESSAGE_HOST_NETWORK_ERROR + 13, // 157 -> AWARE_L2_MESSAGE_NETWORK_AVAILABLE_ERROR + 12, // 158 -> AWARE_L2_MESSAGE_IP_AVAILABLE_ERROR + 10, // 159 -> AWARE_L2_MESSAGE_CANCELLATION_RECEIVED + 156, // 160 -> TIE_BREAK_LOSER + 132, // 161 -> SERVER_SOCKET_UNAVAILABLE + 44, // 162 -> HOSTED_NETWORK_UNAVAILABLE + 17, // 163 -> AWARE_UPDATE_PUBLISHING_CONFIG_FAILED + 70, // 164 -> L2CAP_UNAVAILABLE + 7, // 165 -> ALREADY_HAS_GATT_CONNECTION + 165, // 166 -> UNSUPPORTED_DEVICE_TYPE + 167, // 167 -> UNSUPPORTED_DEVICE_TYPE_CHROME_OS + 166, // 168 -> UNSUPPORTED_DEVICE_TYPE_AUTO + 170, // 169 -> UNSUPPORTED_DEVICE_TYPE_TV + 171, // 170 -> UNSUPPORTED_DEVICE_TYPE_WEAR + 105, // 171 -> NULL_MESSAGE + 173, // 172 -> USER_RESTRICTION_DISALLOWED + 168, // 173 -> UNSUPPORTED_DEVICE_TYPE_PHONE + 169, // 174 -> UNSUPPORTED_DEVICE_TYPE_TABLET + 22, // 175 -> BROKEN_PIPE + 26, // 176 -> CONNECTION_ABORT + 38, // 177 -> FEATURE_USB_HOST_NOT_SUPPORTED + 37, // 178 -> FEATURE_USB_ACCESSORY_NOT_SUPPORTED + 39, // 179 -> FEATURE_USB_PORTS_NOT_FOUND + 78, // 180 -> MULTIPLEX_SOCKET_UNKNOWN_ERROR + 76, // 181 -> MULTIPLEX_SOCKET_NOT_LISTENING + 72, // 182 -> MULTIPLEX_SOCKET_DISABLED + 77, // 183 -> MULTIPLEX_SOCKET_TIMEOUT + 75, // 184 -> MULTIPLEX_SOCKET_IOEXCEPTION + 79, // 185 -> MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE + 73, // 186 -> MULTIPLEX_SOCKET_EXECUTION_EXCEPTION + 74, // 187 -> MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION }; -const std::string& Description_Name( - Description value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Description_entries, - Description_entries_by_number, - 186, Description_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Description_entries, - Description_entries_by_number, - 186, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Description_strings[idx].get(); +const ::std::string& Description_Name(Description value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Description_entries, Description_entries_by_number, 186, + Description_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Description_entries, + Description_entries_by_number, + 186, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Description_strings[idx].get(); } -bool Description_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Description* value) { + +bool Description_Parse(::absl::string_view name, Description* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Description_entries, 186, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // @@protoc_insertion_point(namespace_scope) } // namespace proto } // namespace errorcode } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/errorcode/error_code_enums.pb.h b/compiled_proto/proto/errorcode/error_code_enums.pb.h index 911447bb..f03be843 100644 --- a/compiled_proto/proto/errorcode/error_code_enums.pb.h +++ b/compiled_proto/proto/errorcode/error_code_enums.pb.h @@ -1,85 +1,181 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/errorcode/error_code_enums.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto +#ifndef proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto_2epb_2eh +#define proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE namespace location { namespace nearby { namespace errorcode { namespace proto { +enum AcceptConnectionError : int; +extern const uint32_t AcceptConnectionError_internal_data_[]; +enum CommonError : int; +extern const uint32_t CommonError_internal_data_[]; +enum ConnectError : int; +extern const uint32_t ConnectError_internal_data_[]; +enum Description : int; +extern const uint32_t Description_internal_data_[]; +enum DisconnectError : int; +extern const uint32_t DisconnectError_internal_data_[]; +enum ErrorType : int; +extern const uint32_t ErrorType_internal_data_[]; +enum Event : int; +extern const uint32_t Event_internal_data_[]; +enum ReceivePayloadError : int; +extern const uint32_t ReceivePayloadError_internal_data_[]; +enum RejectConnectionError : int; +extern const uint32_t RejectConnectionError_internal_data_[]; +enum SendPayloadError : int; +extern const uint32_t SendPayloadError_internal_data_[]; +enum StartAdvertisingError : int; +extern const uint32_t StartAdvertisingError_internal_data_[]; +enum StartDiscoveringError : int; +extern const uint32_t StartDiscoveringError_internal_data_[]; +enum StartListeningIncomingConnectionError : int; +extern const uint32_t StartListeningIncomingConnectionError_internal_data_[]; +enum StopAdvertisingError : int; +extern const uint32_t StopAdvertisingError_internal_data_[]; +enum StopDiscoveringError : int; +extern const uint32_t StopDiscoveringError_internal_data_[]; +enum StopListeningIncomingConnectionError : int; +extern const uint32_t StopListeningIncomingConnectionError_internal_data_[]; +enum UpgradeError : int; +extern const uint32_t UpgradeError_internal_data_[]; +} // namespace proto +} // namespace errorcode +} // namespace nearby +} // namespace location +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::AcceptConnectionError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::AcceptConnectionError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::CommonError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::CommonError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::ConnectError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::ConnectError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::Description_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::Description>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::DisconnectError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::DisconnectError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::ErrorType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::ErrorType>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::Event_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::Event>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::ReceivePayloadError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::ReceivePayloadError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::RejectConnectionError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::RejectConnectionError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::SendPayloadError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::SendPayloadError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StartAdvertisingError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StartAdvertisingError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StartDiscoveringError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StartDiscoveringError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StopAdvertisingError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StopAdvertisingError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StopDiscoveringError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StopDiscoveringError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError>; +template <> +internal::EnumTraitsT<::location::nearby::errorcode::proto::UpgradeError_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::errorcode::proto::UpgradeError>; +} // namespace protobuf +} // namespace google +namespace location { +namespace nearby { +namespace errorcode { +namespace proto { enum ErrorType : int { UNKNOWN_TYPE = 0, DEVELOPING = 1, DEVICE = 2, SYSTEM = 3, NETWORK = 4, - OTHERS = 5 + OTHERS = 5, }; -bool ErrorType_IsValid(int value); -constexpr ErrorType ErrorType_MIN = UNKNOWN_TYPE; -constexpr ErrorType ErrorType_MAX = OTHERS; -constexpr int ErrorType_ARRAYSIZE = ErrorType_MAX + 1; -const std::string& ErrorType_Name(ErrorType value); -template -inline const std::string& ErrorType_Name(T enum_t_value) { +extern const uint32_t ErrorType_internal_data_[]; +inline constexpr ErrorType ErrorType_MIN = + static_cast(0); +inline constexpr ErrorType ErrorType_MAX = + static_cast(5); +inline bool ErrorType_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int ErrorType_ARRAYSIZE = 5 + 1; +const ::std::string& ErrorType_Name(ErrorType value); +template +const ::std::string& ErrorType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorType_Name."); - return ErrorType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ErrorType_Name()."); + return ErrorType_Name(static_cast(value)); } bool ErrorType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ErrorType* value); + ::absl::string_view name, ErrorType* PROTOBUF_NONNULL value); enum Event : int { UNKNOWN_EVENT = 0, START_ADVERTISING = 1, @@ -95,23 +191,28 @@ enum Event : int { SEND_PAYLOAD = 11, CANCEL_PAYLOAD = 12, RECEIVE_PAYLOAD = 13, - UPGRADE = 14 + UPGRADE = 14, }; -bool Event_IsValid(int value); -constexpr Event Event_MIN = UNKNOWN_EVENT; -constexpr Event Event_MAX = UPGRADE; -constexpr int Event_ARRAYSIZE = Event_MAX + 1; -const std::string& Event_Name(Event value); -template -inline const std::string& Event_Name(T enum_t_value) { +extern const uint32_t Event_internal_data_[]; +inline constexpr Event Event_MIN = + static_cast(0); +inline constexpr Event Event_MAX = + static_cast(14); +inline bool Event_IsValid(int value) { + return 0 <= value && value <= 14; +} +inline constexpr int Event_ARRAYSIZE = 14 + 1; +const ::std::string& Event_Name(Event value); +template +const ::std::string& Event_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Event_Name."); - return Event_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Event_Name()."); + return Event_Name(static_cast(value)); } bool Event_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Event* value); + ::absl::string_view name, Event* PROTOBUF_NONNULL value); enum CommonError : int { UNKNOWN_ERROR = 0, INVALID_PARAMETER = 1, @@ -119,23 +220,28 @@ enum CommonError : int { UNEXPECTED_MEDIUM_STATE = 3, OUT_OF_RESOURCE = 4, FLOW_CANCELED = 5, - UNEXPECTED_CALL = 6 + UNEXPECTED_CALL = 6, }; -bool CommonError_IsValid(int value); -constexpr CommonError CommonError_MIN = UNKNOWN_ERROR; -constexpr CommonError CommonError_MAX = UNEXPECTED_CALL; -constexpr int CommonError_ARRAYSIZE = CommonError_MAX + 1; -const std::string& CommonError_Name(CommonError value); -template -inline const std::string& CommonError_Name(T enum_t_value) { +extern const uint32_t CommonError_internal_data_[]; +inline constexpr CommonError CommonError_MIN = + static_cast(0); +inline constexpr CommonError CommonError_MAX = + static_cast(6); +inline bool CommonError_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int CommonError_ARRAYSIZE = 6 + 1; +const ::std::string& CommonError_Name(CommonError value); +template +const ::std::string& CommonError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CommonError_Name."); - return CommonError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to CommonError_Name()."); + return CommonError_Name(static_cast(value)); } bool CommonError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CommonError* value); + ::absl::string_view name, CommonError* PROTOBUF_NONNULL value); enum StartAdvertisingError : int { MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED = 31, FAST_ADVERTISEMENT_ALREADY_ADVERTISED = 32, @@ -151,45 +257,55 @@ enum StartAdvertisingError : int { SHOULD_ACCEPT_CONNECTIONS_BEFORE_ADVERTISING_ON_WIFI_LAN = 44, ACQUIRE_WIFI_AWARE_SESSION_FAILED = 45, UNKNOWN_START_ADVERTISING_ERROR = 46, - AWARE_UPDATE_PUBLISHING_FAILED = 47 + AWARE_UPDATE_PUBLISHING_FAILED = 47, }; -bool StartAdvertisingError_IsValid(int value); -constexpr StartAdvertisingError StartAdvertisingError_MIN = MULTIPLE_FAST_ADVERTISEMENT_NOT_ALLOWED; -constexpr StartAdvertisingError StartAdvertisingError_MAX = AWARE_UPDATE_PUBLISHING_FAILED; -constexpr int StartAdvertisingError_ARRAYSIZE = StartAdvertisingError_MAX + 1; -const std::string& StartAdvertisingError_Name(StartAdvertisingError value); -template -inline const std::string& StartAdvertisingError_Name(T enum_t_value) { +extern const uint32_t StartAdvertisingError_internal_data_[]; +inline constexpr StartAdvertisingError StartAdvertisingError_MIN = + static_cast(31); +inline constexpr StartAdvertisingError StartAdvertisingError_MAX = + static_cast(47); +inline bool StartAdvertisingError_IsValid(int value) { + return 0 <= value && value <= 47 && ((280785634459648u >> value) & 1) != 0; +} +inline constexpr int StartAdvertisingError_ARRAYSIZE = 47 + 1; +const ::std::string& StartAdvertisingError_Name(StartAdvertisingError value); +template +const ::std::string& StartAdvertisingError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StartAdvertisingError_Name."); - return StartAdvertisingError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StartAdvertisingError_Name()."); + return StartAdvertisingError_Name(static_cast(value)); } bool StartAdvertisingError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartAdvertisingError* value); + ::absl::string_view name, StartAdvertisingError* PROTOBUF_NONNULL value); enum StopAdvertisingError : int { STOP_ADVERTISING_FAILED = 31, RESTORE_BLUETOOTH_NAME_FAILED = 32, STOP_LEGACY_ADVERTISING_FAILED = 33, STOP_EXTENDED_ADVERTISING_FAILED = 34, - UNKNOWN_STOP_ADVERTISING_ERROR = 35 + UNKNOWN_STOP_ADVERTISING_ERROR = 35, }; -bool StopAdvertisingError_IsValid(int value); -constexpr StopAdvertisingError StopAdvertisingError_MIN = STOP_ADVERTISING_FAILED; -constexpr StopAdvertisingError StopAdvertisingError_MAX = UNKNOWN_STOP_ADVERTISING_ERROR; -constexpr int StopAdvertisingError_ARRAYSIZE = StopAdvertisingError_MAX + 1; -const std::string& StopAdvertisingError_Name(StopAdvertisingError value); -template -inline const std::string& StopAdvertisingError_Name(T enum_t_value) { +extern const uint32_t StopAdvertisingError_internal_data_[]; +inline constexpr StopAdvertisingError StopAdvertisingError_MIN = + static_cast(31); +inline constexpr StopAdvertisingError StopAdvertisingError_MAX = + static_cast(35); +inline bool StopAdvertisingError_IsValid(int value) { + return 31 <= value && value <= 35; +} +inline constexpr int StopAdvertisingError_ARRAYSIZE = 35 + 1; +const ::std::string& StopAdvertisingError_Name(StopAdvertisingError value); +template +const ::std::string& StopAdvertisingError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StopAdvertisingError_Name."); - return StopAdvertisingError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StopAdvertisingError_Name()."); + return StopAdvertisingError_Name(static_cast(value)); } bool StopAdvertisingError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopAdvertisingError* value); + ::absl::string_view name, StopAdvertisingError* PROTOBUF_NONNULL value); enum StartDiscoveringError : int { DUPLICATE_DISCOVERING_REQUESTED = 31, START_LEGACY_DISCOVERING_FAILED = 32, @@ -201,44 +317,54 @@ enum StartDiscoveringError : int { L2CAP_FETCH_ADVERTISEMENT_FAILED = 38, NOT_AVAILABLE_TO_FETCH_ADVERTISEMENT = 39, ACQUIRE_WIFI_AWARE_SESSION_FOR_DISCOVERING_FAILED = 40, - UNKNOWN_START_DISCOVERING_ERROR = 41 + UNKNOWN_START_DISCOVERING_ERROR = 41, }; -bool StartDiscoveringError_IsValid(int value); -constexpr StartDiscoveringError StartDiscoveringError_MIN = DUPLICATE_DISCOVERING_REQUESTED; -constexpr StartDiscoveringError StartDiscoveringError_MAX = UNKNOWN_START_DISCOVERING_ERROR; -constexpr int StartDiscoveringError_ARRAYSIZE = StartDiscoveringError_MAX + 1; -const std::string& StartDiscoveringError_Name(StartDiscoveringError value); -template -inline const std::string& StartDiscoveringError_Name(T enum_t_value) { +extern const uint32_t StartDiscoveringError_internal_data_[]; +inline constexpr StartDiscoveringError StartDiscoveringError_MIN = + static_cast(31); +inline constexpr StartDiscoveringError StartDiscoveringError_MAX = + static_cast(41); +inline bool StartDiscoveringError_IsValid(int value) { + return 31 <= value && value <= 41; +} +inline constexpr int StartDiscoveringError_ARRAYSIZE = 41 + 1; +const ::std::string& StartDiscoveringError_Name(StartDiscoveringError value); +template +const ::std::string& StartDiscoveringError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StartDiscoveringError_Name."); - return StartDiscoveringError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StartDiscoveringError_Name()."); + return StartDiscoveringError_Name(static_cast(value)); } bool StartDiscoveringError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartDiscoveringError* value); + ::absl::string_view name, StartDiscoveringError* PROTOBUF_NONNULL value); enum StopDiscoveringError : int { STOP_DISCOVERING_FAILED = 31, STOP_LEGACY_DISCOVERING_FAILED = 32, STOP_EXTENDED_DISCOVERING_FAILED = 33, - UNKNOWN_STOP_DISCOVERING_ERROR = 34 + UNKNOWN_STOP_DISCOVERING_ERROR = 34, }; -bool StopDiscoveringError_IsValid(int value); -constexpr StopDiscoveringError StopDiscoveringError_MIN = STOP_DISCOVERING_FAILED; -constexpr StopDiscoveringError StopDiscoveringError_MAX = UNKNOWN_STOP_DISCOVERING_ERROR; -constexpr int StopDiscoveringError_ARRAYSIZE = StopDiscoveringError_MAX + 1; -const std::string& StopDiscoveringError_Name(StopDiscoveringError value); -template -inline const std::string& StopDiscoveringError_Name(T enum_t_value) { +extern const uint32_t StopDiscoveringError_internal_data_[]; +inline constexpr StopDiscoveringError StopDiscoveringError_MIN = + static_cast(31); +inline constexpr StopDiscoveringError StopDiscoveringError_MAX = + static_cast(34); +inline bool StopDiscoveringError_IsValid(int value) { + return 31 <= value && value <= 34; +} +inline constexpr int StopDiscoveringError_ARRAYSIZE = 34 + 1; +const ::std::string& StopDiscoveringError_Name(StopDiscoveringError value); +template +const ::std::string& StopDiscoveringError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StopDiscoveringError_Name."); - return StopDiscoveringError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StopDiscoveringError_Name()."); + return StopDiscoveringError_Name(static_cast(value)); } bool StopDiscoveringError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringError* value); + ::absl::string_view name, StopDiscoveringError* PROTOBUF_NONNULL value); enum StartListeningIncomingConnectionError : int { DUPLICATE_ACCEPTING_CONNECTION_REQUESTED = 31, OPEN_GATT_SERVER_FAILED = 32, @@ -249,42 +375,52 @@ enum StartListeningIncomingConnectionError : int { CREATE_SERVER_SOCKET_FAILED = 37, UNKNOWN_START_LISTENING_INCOMING_CONNECTION_ERROR = 38, ACCEPT_SEND_AWARE_L2_MESSAGE_FAILED = 39, - ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED = 40 + ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED = 40, }; -bool StartListeningIncomingConnectionError_IsValid(int value); -constexpr StartListeningIncomingConnectionError StartListeningIncomingConnectionError_MIN = DUPLICATE_ACCEPTING_CONNECTION_REQUESTED; -constexpr StartListeningIncomingConnectionError StartListeningIncomingConnectionError_MAX = ACCEPT_RECEIVE_AWARE_L2_MESSAGE_FAILED; -constexpr int StartListeningIncomingConnectionError_ARRAYSIZE = StartListeningIncomingConnectionError_MAX + 1; -const std::string& StartListeningIncomingConnectionError_Name(StartListeningIncomingConnectionError value); -template -inline const std::string& StartListeningIncomingConnectionError_Name(T enum_t_value) { +extern const uint32_t StartListeningIncomingConnectionError_internal_data_[]; +inline constexpr StartListeningIncomingConnectionError StartListeningIncomingConnectionError_MIN = + static_cast(31); +inline constexpr StartListeningIncomingConnectionError StartListeningIncomingConnectionError_MAX = + static_cast(40); +inline bool StartListeningIncomingConnectionError_IsValid(int value) { + return 31 <= value && value <= 40; +} +inline constexpr int StartListeningIncomingConnectionError_ARRAYSIZE = 40 + 1; +const ::std::string& StartListeningIncomingConnectionError_Name(StartListeningIncomingConnectionError value); +template +const ::std::string& StartListeningIncomingConnectionError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StartListeningIncomingConnectionError_Name."); - return StartListeningIncomingConnectionError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StartListeningIncomingConnectionError_Name()."); + return StartListeningIncomingConnectionError_Name(static_cast(value)); } bool StartListeningIncomingConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StartListeningIncomingConnectionError* value); + ::absl::string_view name, StartListeningIncomingConnectionError* PROTOBUF_NONNULL value); enum StopListeningIncomingConnectionError : int { STOP_ACCEPTING_CONNECTION_FAILED = 31, - UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR = 32 + UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR = 32, }; -bool StopListeningIncomingConnectionError_IsValid(int value); -constexpr StopListeningIncomingConnectionError StopListeningIncomingConnectionError_MIN = STOP_ACCEPTING_CONNECTION_FAILED; -constexpr StopListeningIncomingConnectionError StopListeningIncomingConnectionError_MAX = UNKNOWN_STOP_LISTENING_INCOMING_CONNECTION_ERROR; -constexpr int StopListeningIncomingConnectionError_ARRAYSIZE = StopListeningIncomingConnectionError_MAX + 1; -const std::string& StopListeningIncomingConnectionError_Name(StopListeningIncomingConnectionError value); -template -inline const std::string& StopListeningIncomingConnectionError_Name(T enum_t_value) { +extern const uint32_t StopListeningIncomingConnectionError_internal_data_[]; +inline constexpr StopListeningIncomingConnectionError StopListeningIncomingConnectionError_MIN = + static_cast(31); +inline constexpr StopListeningIncomingConnectionError StopListeningIncomingConnectionError_MAX = + static_cast(32); +inline bool StopListeningIncomingConnectionError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int StopListeningIncomingConnectionError_ARRAYSIZE = 32 + 1; +const ::std::string& StopListeningIncomingConnectionError_Name(StopListeningIncomingConnectionError value); +template +const ::std::string& StopListeningIncomingConnectionError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function StopListeningIncomingConnectionError_Name."); - return StopListeningIncomingConnectionError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to StopListeningIncomingConnectionError_Name()."); + return StopListeningIncomingConnectionError_Name(static_cast(value)); } bool StopListeningIncomingConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopListeningIncomingConnectionError* value); + ::absl::string_view name, StopListeningIncomingConnectionError* PROTOBUF_NONNULL value); enum ConnectError : int { UNEXPECT_TARGET_LOST = 31, ESTABLISH_GATT_CONNECTION_FAILED = 32, @@ -301,137 +437,172 @@ enum ConnectError : int { CONNECT_TO_NETWORK_FAILED = 43, UNKNOWN_CONNECT_ERROR = 44, CONNECT_SEND_AWARE_L2_MESSAGE_FAILED = 45, - CONNECT_READ_AWARE_L2_MESSAGE_FAILED = 46 + CONNECT_READ_AWARE_L2_MESSAGE_FAILED = 46, }; -bool ConnectError_IsValid(int value); -constexpr ConnectError ConnectError_MIN = UNEXPECT_TARGET_LOST; -constexpr ConnectError ConnectError_MAX = CONNECT_READ_AWARE_L2_MESSAGE_FAILED; -constexpr int ConnectError_ARRAYSIZE = ConnectError_MAX + 1; -const std::string& ConnectError_Name(ConnectError value); -template -inline const std::string& ConnectError_Name(T enum_t_value) { +extern const uint32_t ConnectError_internal_data_[]; +inline constexpr ConnectError ConnectError_MIN = + static_cast(31); +inline constexpr ConnectError ConnectError_MAX = + static_cast(46); +inline bool ConnectError_IsValid(int value) { + return 31 <= value && value <= 46; +} +inline constexpr int ConnectError_ARRAYSIZE = 46 + 1; +const ::std::string& ConnectError_Name(ConnectError value); +template +const ::std::string& ConnectError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectError_Name."); - return ConnectError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectError_Name()."); + return ConnectError_Name(static_cast(value)); } bool ConnectError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectError* value); + ::absl::string_view name, ConnectError* PROTOBUF_NONNULL value); enum DisconnectError : int { DISCONNECT_NETWORK_FAILED = 31, - UNKNOWN_DISCONNECT_ERROR = 32 + UNKNOWN_DISCONNECT_ERROR = 32, }; -bool DisconnectError_IsValid(int value); -constexpr DisconnectError DisconnectError_MIN = DISCONNECT_NETWORK_FAILED; -constexpr DisconnectError DisconnectError_MAX = UNKNOWN_DISCONNECT_ERROR; -constexpr int DisconnectError_ARRAYSIZE = DisconnectError_MAX + 1; -const std::string& DisconnectError_Name(DisconnectError value); -template -inline const std::string& DisconnectError_Name(T enum_t_value) { +extern const uint32_t DisconnectError_internal_data_[]; +inline constexpr DisconnectError DisconnectError_MIN = + static_cast(31); +inline constexpr DisconnectError DisconnectError_MAX = + static_cast(32); +inline bool DisconnectError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int DisconnectError_ARRAYSIZE = 32 + 1; +const ::std::string& DisconnectError_Name(DisconnectError value); +template +const ::std::string& DisconnectError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DisconnectError_Name."); - return DisconnectError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DisconnectError_Name()."); + return DisconnectError_Name(static_cast(value)); } bool DisconnectError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DisconnectError* value); + ::absl::string_view name, DisconnectError* PROTOBUF_NONNULL value); enum SendPayloadError : int { UNKNOWN_SEND_PAYLOAD_ERROR = 31, - SEND_PAYLOAD_FAILED = 32 + SEND_PAYLOAD_FAILED = 32, }; -bool SendPayloadError_IsValid(int value); -constexpr SendPayloadError SendPayloadError_MIN = UNKNOWN_SEND_PAYLOAD_ERROR; -constexpr SendPayloadError SendPayloadError_MAX = SEND_PAYLOAD_FAILED; -constexpr int SendPayloadError_ARRAYSIZE = SendPayloadError_MAX + 1; -const std::string& SendPayloadError_Name(SendPayloadError value); -template -inline const std::string& SendPayloadError_Name(T enum_t_value) { +extern const uint32_t SendPayloadError_internal_data_[]; +inline constexpr SendPayloadError SendPayloadError_MIN = + static_cast(31); +inline constexpr SendPayloadError SendPayloadError_MAX = + static_cast(32); +inline bool SendPayloadError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int SendPayloadError_ARRAYSIZE = 32 + 1; +const ::std::string& SendPayloadError_Name(SendPayloadError value); +template +const ::std::string& SendPayloadError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SendPayloadError_Name."); - return SendPayloadError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SendPayloadError_Name()."); + return SendPayloadError_Name(static_cast(value)); } bool SendPayloadError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SendPayloadError* value); + ::absl::string_view name, SendPayloadError* PROTOBUF_NONNULL value); enum ReceivePayloadError : int { UNKNOWN_RECEIVE_PAYLOAD_ERROR = 31, - RECEIVE_PAYLOAD_FAILED = 32 + RECEIVE_PAYLOAD_FAILED = 32, }; -bool ReceivePayloadError_IsValid(int value); -constexpr ReceivePayloadError ReceivePayloadError_MIN = UNKNOWN_RECEIVE_PAYLOAD_ERROR; -constexpr ReceivePayloadError ReceivePayloadError_MAX = RECEIVE_PAYLOAD_FAILED; -constexpr int ReceivePayloadError_ARRAYSIZE = ReceivePayloadError_MAX + 1; -const std::string& ReceivePayloadError_Name(ReceivePayloadError value); -template -inline const std::string& ReceivePayloadError_Name(T enum_t_value) { +extern const uint32_t ReceivePayloadError_internal_data_[]; +inline constexpr ReceivePayloadError ReceivePayloadError_MIN = + static_cast(31); +inline constexpr ReceivePayloadError ReceivePayloadError_MAX = + static_cast(32); +inline bool ReceivePayloadError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int ReceivePayloadError_ARRAYSIZE = 32 + 1; +const ::std::string& ReceivePayloadError_Name(ReceivePayloadError value); +template +const ::std::string& ReceivePayloadError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ReceivePayloadError_Name."); - return ReceivePayloadError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ReceivePayloadError_Name()."); + return ReceivePayloadError_Name(static_cast(value)); } bool ReceivePayloadError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReceivePayloadError* value); + ::absl::string_view name, ReceivePayloadError* PROTOBUF_NONNULL value); enum UpgradeError : int { UNKNOWN_UPGRADE_ERROR = 31, - CREATE_P2P_GROUP_FAILED = 32 + CREATE_P2P_GROUP_FAILED = 32, }; -bool UpgradeError_IsValid(int value); -constexpr UpgradeError UpgradeError_MIN = UNKNOWN_UPGRADE_ERROR; -constexpr UpgradeError UpgradeError_MAX = CREATE_P2P_GROUP_FAILED; -constexpr int UpgradeError_ARRAYSIZE = UpgradeError_MAX + 1; -const std::string& UpgradeError_Name(UpgradeError value); -template -inline const std::string& UpgradeError_Name(T enum_t_value) { +extern const uint32_t UpgradeError_internal_data_[]; +inline constexpr UpgradeError UpgradeError_MIN = + static_cast(31); +inline constexpr UpgradeError UpgradeError_MAX = + static_cast(32); +inline bool UpgradeError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int UpgradeError_ARRAYSIZE = 32 + 1; +const ::std::string& UpgradeError_Name(UpgradeError value); +template +const ::std::string& UpgradeError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function UpgradeError_Name."); - return UpgradeError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to UpgradeError_Name()."); + return UpgradeError_Name(static_cast(value)); } bool UpgradeError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UpgradeError* value); + ::absl::string_view name, UpgradeError* PROTOBUF_NONNULL value); enum AcceptConnectionError : int { UNKNOWN_ACCEPT_CONNECTION_ERROR = 31, - RESPOND_ACCEPT_CONNECTION_FAILED = 32 + RESPOND_ACCEPT_CONNECTION_FAILED = 32, }; -bool AcceptConnectionError_IsValid(int value); -constexpr AcceptConnectionError AcceptConnectionError_MIN = UNKNOWN_ACCEPT_CONNECTION_ERROR; -constexpr AcceptConnectionError AcceptConnectionError_MAX = RESPOND_ACCEPT_CONNECTION_FAILED; -constexpr int AcceptConnectionError_ARRAYSIZE = AcceptConnectionError_MAX + 1; -const std::string& AcceptConnectionError_Name(AcceptConnectionError value); -template -inline const std::string& AcceptConnectionError_Name(T enum_t_value) { +extern const uint32_t AcceptConnectionError_internal_data_[]; +inline constexpr AcceptConnectionError AcceptConnectionError_MIN = + static_cast(31); +inline constexpr AcceptConnectionError AcceptConnectionError_MAX = + static_cast(32); +inline bool AcceptConnectionError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int AcceptConnectionError_ARRAYSIZE = 32 + 1; +const ::std::string& AcceptConnectionError_Name(AcceptConnectionError value); +template +const ::std::string& AcceptConnectionError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AcceptConnectionError_Name."); - return AcceptConnectionError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AcceptConnectionError_Name()."); + return AcceptConnectionError_Name(static_cast(value)); } bool AcceptConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AcceptConnectionError* value); + ::absl::string_view name, AcceptConnectionError* PROTOBUF_NONNULL value); enum RejectConnectionError : int { UNKNOWN_REJECT_CONNECTION_ERROR = 31, - RESPOND_REJECT_CONNECTION_FAILED = 32 + RESPOND_REJECT_CONNECTION_FAILED = 32, }; -bool RejectConnectionError_IsValid(int value); -constexpr RejectConnectionError RejectConnectionError_MIN = UNKNOWN_REJECT_CONNECTION_ERROR; -constexpr RejectConnectionError RejectConnectionError_MAX = RESPOND_REJECT_CONNECTION_FAILED; -constexpr int RejectConnectionError_ARRAYSIZE = RejectConnectionError_MAX + 1; -const std::string& RejectConnectionError_Name(RejectConnectionError value); -template -inline const std::string& RejectConnectionError_Name(T enum_t_value) { +extern const uint32_t RejectConnectionError_internal_data_[]; +inline constexpr RejectConnectionError RejectConnectionError_MIN = + static_cast(31); +inline constexpr RejectConnectionError RejectConnectionError_MAX = + static_cast(32); +inline bool RejectConnectionError_IsValid(int value) { + return 31 <= value && value <= 32; +} +inline constexpr int RejectConnectionError_ARRAYSIZE = 32 + 1; +const ::std::string& RejectConnectionError_Name(RejectConnectionError value); +template +const ::std::string& RejectConnectionError_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RejectConnectionError_Name."); - return RejectConnectionError_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to RejectConnectionError_Name()."); + return RejectConnectionError_Name(static_cast(value)); } bool RejectConnectionError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RejectConnectionError* value); + ::absl::string_view name, RejectConnectionError* PROTOBUF_NONNULL value); enum Description : int { UNKNOWN = 0, NULL_SERVICE_ID = 1, @@ -618,69 +789,99 @@ enum Description : int { MULTIPLEX_SOCKET_IOEXCEPTION = 184, MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE = 185, MULTIPLEX_SOCKET_EXECUTION_EXCEPTION = 186, - MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION = 187 + MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION = 187, }; -bool Description_IsValid(int value); -constexpr Description Description_MIN = UNKNOWN; -constexpr Description Description_MAX = MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION; -constexpr int Description_ARRAYSIZE = Description_MAX + 1; -const std::string& Description_Name(Description value); -template -inline const std::string& Description_Name(T enum_t_value) { +extern const uint32_t Description_internal_data_[]; +inline constexpr Description Description_MIN = + static_cast(0); +inline constexpr Description Description_MAX = + static_cast(187); +inline bool Description_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Description_internal_data_); +} +inline constexpr int Description_ARRAYSIZE = 187 + 1; +const ::std::string& Description_Name(Description value); +template +const ::std::string& Description_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Description_Name."); - return Description_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Description_Name()."); + return Description_Name(static_cast(value)); } bool Description_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Description* value); + ::absl::string_view name, Description* PROTOBUF_NONNULL value); + // =================================================================== + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace proto } // namespace errorcode } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::ErrorType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::Event> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::CommonError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StartAdvertisingError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StopAdvertisingError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StartDiscoveringError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StopDiscoveringError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StartListeningIncomingConnectionError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::ConnectError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::DisconnectError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::SendPayloadError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::ReceivePayloadError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::UpgradeError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::AcceptConnectionError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::RejectConnectionError> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::errorcode::proto::Description> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::ErrorType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::Event> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::CommonError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StartAdvertisingError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StopAdvertisingError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StartDiscoveringError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StopDiscoveringError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StartListeningIncomingConnectionError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::StopListeningIncomingConnectionError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::ConnectError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::DisconnectError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::SendPayloadError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::ReceivePayloadError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::UpgradeError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::AcceptConnectionError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::RejectConnectionError> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::errorcode::proto::Description> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2ferrorcode_2ferror_5fcode_5fenums_2eproto_2epb_2eh diff --git a/compiled_proto/proto/mediums/ble_frames.pb.cc b/compiled_proto/proto/mediums/ble_frames.pb.cc index e52eb70c..c22f743b 100644 --- a/compiled_proto/proto/mediums/ble_frames.pb.cc +++ b/compiled_proto/proto/mediums/ble_frames.pb.cc @@ -1,1323 +1,1483 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/ble_frames.proto +// Protobuf C++ Version: 6.33.3 #include "proto/mediums/ble_frames.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace location { namespace nearby { namespace mediums { -constexpr SocketControlFrame::SocketControlFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : introduction_(nullptr) - , disconnection_(nullptr) - , packet_acknowledgement_(nullptr) - , type_(0) -{} -struct SocketControlFrameDefaultTypeInternal { - constexpr SocketControlFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SocketControlFrameDefaultTypeInternal() {} - union { - SocketControlFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SocketControlFrameDefaultTypeInternal _SocketControlFrame_default_instance_; -constexpr IntroductionFrame::IntroductionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_id_hash_salt_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , socket_version_(0) -{} -struct IntroductionFrameDefaultTypeInternal { - constexpr IntroductionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~IntroductionFrameDefaultTypeInternal() {} - union { - IntroductionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IntroductionFrameDefaultTypeInternal _IntroductionFrame_default_instance_; -constexpr DisconnectionFrame::DisconnectionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct DisconnectionFrameDefaultTypeInternal { - constexpr DisconnectionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DisconnectionFrameDefaultTypeInternal() {} - union { - DisconnectionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; -constexpr PacketAcknowledgementFrame::PacketAcknowledgementFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , received_size_(0){} + +inline constexpr PacketAcknowledgementFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_id_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + received_size_{0} {} + +template +PROTOBUF_CONSTEXPR PacketAcknowledgementFrame::PacketAcknowledgementFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PacketAcknowledgementFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PacketAcknowledgementFrameDefaultTypeInternal { - constexpr PacketAcknowledgementFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PacketAcknowledgementFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PacketAcknowledgementFrameDefaultTypeInternal() {} union { PacketAcknowledgementFrame _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PacketAcknowledgementFrameDefaultTypeInternal _PacketAcknowledgementFrame_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PacketAcknowledgementFrameDefaultTypeInternal _PacketAcknowledgementFrame_default_instance_; + +inline constexpr IntroductionFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_id_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + service_id_hash_salt_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + socket_version_{static_cast< ::location::nearby::mediums::SocketVersion >(0)} {} + +template +PROTOBUF_CONSTEXPR IntroductionFrame::IntroductionFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(IntroductionFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct IntroductionFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR IntroductionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~IntroductionFrameDefaultTypeInternal() {} + union { + IntroductionFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntroductionFrameDefaultTypeInternal _IntroductionFrame_default_instance_; + +inline constexpr DisconnectionFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_id_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR DisconnectionFrame::DisconnectionFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DisconnectionFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DisconnectionFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisconnectionFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DisconnectionFrameDefaultTypeInternal() {} + union { + DisconnectionFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; + +inline constexpr SocketControlFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + introduction_{nullptr}, + disconnection_{nullptr}, + packet_acknowledgement_{nullptr}, + type_{static_cast< ::location::nearby::mediums::SocketControlFrame_ControlFrameType >(0)} {} + +template +PROTOBUF_CONSTEXPR SocketControlFrame::SocketControlFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SocketControlFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SocketControlFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR SocketControlFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SocketControlFrameDefaultTypeInternal() {} + union { + SocketControlFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SocketControlFrameDefaultTypeInternal _SocketControlFrame_default_instance_; } // namespace mediums } // namespace nearby } // namespace location namespace location { namespace nearby { namespace mediums { -bool SocketControlFrame_ControlFrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SocketControlFrame_ControlFrameType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SocketControlFrame_ControlFrameType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SocketControlFrame_ControlFrameType_strings[4] = {}; +static const char SocketControlFrame_ControlFrameType_names[] = { + "DISCONNECTION" + "INTRODUCTION" + "PACKET_ACKNOWLEDGEMENT" + "UNKNOWN_CONTROL_FRAME_TYPE" +}; -static const char SocketControlFrame_ControlFrameType_names[] = - "DISCONNECTION" - "INTRODUCTION" - "PACKET_ACKNOWLEDGEMENT" - "UNKNOWN_CONTROL_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SocketControlFrame_ControlFrameType_entries[] = { - { {SocketControlFrame_ControlFrameType_names + 0, 13}, 2 }, - { {SocketControlFrame_ControlFrameType_names + 13, 12}, 1 }, - { {SocketControlFrame_ControlFrameType_names + 25, 22}, 3 }, - { {SocketControlFrame_ControlFrameType_names + 47, 26}, 0 }, +static const ::google::protobuf::internal::EnumEntry SocketControlFrame_ControlFrameType_entries[] = { + {{&SocketControlFrame_ControlFrameType_names[0], 13}, 2}, + {{&SocketControlFrame_ControlFrameType_names[13], 12}, 1}, + {{&SocketControlFrame_ControlFrameType_names[25], 22}, 3}, + {{&SocketControlFrame_ControlFrameType_names[47], 26}, 0}, }; static const int SocketControlFrame_ControlFrameType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE - 1, // 1 -> INTRODUCTION - 0, // 2 -> DISCONNECTION - 2, // 3 -> PACKET_ACKNOWLEDGEMENT + 3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE + 1, // 1 -> INTRODUCTION + 0, // 2 -> DISCONNECTION + 2, // 3 -> PACKET_ACKNOWLEDGEMENT }; -const std::string& SocketControlFrame_ControlFrameType_Name( - SocketControlFrame_ControlFrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SocketControlFrame_ControlFrameType_entries, - SocketControlFrame_ControlFrameType_entries_by_number, - 4, SocketControlFrame_ControlFrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SocketControlFrame_ControlFrameType_entries, - SocketControlFrame_ControlFrameType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SocketControlFrame_ControlFrameType_strings[idx].get(); +const ::std::string& SocketControlFrame_ControlFrameType_Name(SocketControlFrame_ControlFrameType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SocketControlFrame_ControlFrameType_entries, SocketControlFrame_ControlFrameType_entries_by_number, 4, + SocketControlFrame_ControlFrameType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SocketControlFrame_ControlFrameType_entries, + SocketControlFrame_ControlFrameType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SocketControlFrame_ControlFrameType_strings[idx].get(); } -bool SocketControlFrame_ControlFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SocketControlFrame_ControlFrameType* value) { + +bool SocketControlFrame_ControlFrameType_Parse(::absl::string_view name, SocketControlFrame_ControlFrameType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SocketControlFrame_ControlFrameType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::UNKNOWN_CONTROL_FRAME_TYPE; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::INTRODUCTION; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::DISCONNECTION; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::PACKET_ACKNOWLEDGEMENT; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::ControlFrameType_MIN; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame::ControlFrameType_MAX; -constexpr int SocketControlFrame::ControlFrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool SocketVersion_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SocketVersion_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SocketVersion_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SocketVersion_strings[3] = {}; +static const char SocketVersion_names[] = { + "UNKNOWN_SOCKET_VERSION" + "V1" + "V2" +}; -static const char SocketVersion_names[] = - "UNKNOWN_SOCKET_VERSION" - "V1" - "V2"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SocketVersion_entries[] = { - { {SocketVersion_names + 0, 22}, 0 }, - { {SocketVersion_names + 22, 2}, 1 }, - { {SocketVersion_names + 24, 2}, 2 }, +static const ::google::protobuf::internal::EnumEntry SocketVersion_entries[] = { + {{&SocketVersion_names[0], 22}, 0}, + {{&SocketVersion_names[22], 2}, 1}, + {{&SocketVersion_names[24], 2}, 2}, }; static const int SocketVersion_entries_by_number[] = { - 0, // 0 -> UNKNOWN_SOCKET_VERSION - 1, // 1 -> V1 - 2, // 2 -> V2 + 0, // 0 -> UNKNOWN_SOCKET_VERSION + 1, // 1 -> V1 + 2, // 2 -> V2 }; -const std::string& SocketVersion_Name( - SocketVersion value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SocketVersion_entries, - SocketVersion_entries_by_number, - 3, SocketVersion_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SocketVersion_entries, - SocketVersion_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SocketVersion_strings[idx].get(); +const ::std::string& SocketVersion_Name(SocketVersion value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SocketVersion_entries, SocketVersion_entries_by_number, 3, + SocketVersion_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SocketVersion_entries, + SocketVersion_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SocketVersion_strings[idx].get(); } -bool SocketVersion_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SocketVersion* value) { + +bool SocketVersion_Parse(::absl::string_view name, SocketVersion* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SocketVersion_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class SocketControlFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::mediums::IntroductionFrame& introduction(const SocketControlFrame* msg); - static void set_has_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::mediums::DisconnectionFrame& disconnection(const SocketControlFrame* msg); - static void set_has_disconnection(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::mediums::PacketAcknowledgementFrame& packet_acknowledgement(const SocketControlFrame* msg); - static void set_has_packet_acknowledgement(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._has_bits_); }; -const ::location::nearby::mediums::IntroductionFrame& -SocketControlFrame::_Internal::introduction(const SocketControlFrame* msg) { - return *msg->introduction_; -} -const ::location::nearby::mediums::DisconnectionFrame& -SocketControlFrame::_Internal::disconnection(const SocketControlFrame* msg) { - return *msg->disconnection_; -} -const ::location::nearby::mediums::PacketAcknowledgementFrame& -SocketControlFrame::_Internal::packet_acknowledgement(const SocketControlFrame* msg) { - return *msg->packet_acknowledgement_; -} -SocketControlFrame::SocketControlFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SocketControlFrame::SocketControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SocketControlFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.SocketControlFrame) } -SocketControlFrame::SocketControlFrame(const SocketControlFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_introduction()) { - introduction_ = new ::location::nearby::mediums::IntroductionFrame(*from.introduction_); - } else { - introduction_ = nullptr; - } - if (from._internal_has_disconnection()) { - disconnection_ = new ::location::nearby::mediums::DisconnectionFrame(*from.disconnection_); - } else { - disconnection_ = nullptr; - } - if (from._internal_has_packet_acknowledgement()) { - packet_acknowledgement_ = new ::location::nearby::mediums::PacketAcknowledgementFrame(*from.packet_acknowledgement_); - } else { - packet_acknowledgement_ = nullptr; - } - type_ = from.type_; +PROTOBUF_NDEBUG_INLINE SocketControlFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::SocketControlFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SocketControlFrame::SocketControlFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SocketControlFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SocketControlFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SocketControlFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.introduction_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.introduction_) + : nullptr; + _impl_.disconnection_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_) + : nullptr; + _impl_.packet_acknowledgement_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.packet_acknowledgement_) + : nullptr; + _impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.SocketControlFrame) } +PROTOBUF_NDEBUG_INLINE SocketControlFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SocketControlFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&introduction_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&introduction_)) + sizeof(type_)); +inline void SocketControlFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, introduction_), + 0, + offsetof(Impl_, type_) - + offsetof(Impl_, introduction_) + + sizeof(Impl_::type_)); } - SocketControlFrame::~SocketControlFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.SocketControlFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SocketControlFrame::SharedDtor(MessageLite& self) { + SocketControlFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.introduction_; + delete this_._impl_.disconnection_; + delete this_._impl_.packet_acknowledgement_; + this_._impl_.~Impl_(); } -inline void SocketControlFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete introduction_; - if (this != internal_default_instance()) delete disconnection_; - if (this != internal_default_instance()) delete packet_acknowledgement_; +inline void* PROTOBUF_NONNULL SocketControlFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SocketControlFrame(arena); +} +constexpr auto SocketControlFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SocketControlFrame), + alignof(SocketControlFrame)); +} +constexpr auto SocketControlFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_SocketControlFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SocketControlFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SocketControlFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SocketControlFrame::ByteSizeLong, + &SocketControlFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.SocketControlFrame", + }; } -void SocketControlFrame::ArenaDtor(void* object) { - SocketControlFrame* _this = reinterpret_cast< SocketControlFrame* >(object); - (void)_this; -} -void SocketControlFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SocketControlFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> SocketControlFrame_class_data_ = + SocketControlFrame::InternalGenerateClassData_(); -void SocketControlFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SocketControlFrame::GetClassData() const { + return SocketControlFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> +SocketControlFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SocketControlFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::SocketControlFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.packet_acknowledgement_)}}, + // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 3, 3, + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.type_)}}, + // optional .location.nearby.mediums.IntroductionFrame introduction = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_)}}, + // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.disconnection_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; + {PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.mediums.IntroductionFrame introduction = 2; + {PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; + {PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.disconnection_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; + {PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.packet_acknowledgement_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::IntroductionFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectionFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::PacketAcknowledgementFrame>()}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SocketControlFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.SocketControlFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(introduction_ != nullptr); - introduction_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.introduction_ != nullptr); + _impl_.introduction_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(disconnection_ != nullptr); - disconnection_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.disconnection_ != nullptr); + _impl_.disconnection_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(packet_acknowledgement_ != nullptr); - packet_acknowledgement_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.packet_acknowledgement_ != nullptr); + _impl_.packet_acknowledgement_->Clear(); } } - type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SocketControlFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::SocketControlFrame_ControlFrameType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::mediums::SocketControlFrame_ControlFrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.IntroductionFrame introduction = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_disconnection(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_packet_acknowledgement(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SocketControlFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SocketControlFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SocketControlFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SocketControlFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SocketControlFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.SocketControlFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional .location.nearby.mediums.IntroductionFrame introduction = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::introduction(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.introduction_, this_._impl_.introduction_->GetCachedSize(), target, + stream); } // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::disconnection(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.disconnection_, this_._impl_.disconnection_->GetCachedSize(), target, + stream); } // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::packet_acknowledgement(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.packet_acknowledgement_, this_._impl_.packet_acknowledgement_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.SocketControlFrame) return target; } -size_t SocketControlFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SocketControlFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SocketControlFrame::ByteSizeLong(const MessageLite& base) { + const SocketControlFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SocketControlFrame::ByteSizeLong() const { + const SocketControlFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SocketControlFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .location.nearby.mediums.IntroductionFrame introduction = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *introduction_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.introduction_); } - // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *disconnection_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.disconnection_); } - // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *packet_acknowledgement_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.packet_acknowledgement_); } - // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SocketControlFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SocketControlFrame::MergeFrom(const SocketControlFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.SocketControlFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_introduction()->::location::nearby::mediums::IntroductionFrame::MergeFrom(from._internal_introduction()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_disconnection()->::location::nearby::mediums::DisconnectionFrame::MergeFrom(from._internal_disconnection()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_packet_acknowledgement()->::location::nearby::mediums::PacketAcknowledgementFrame::MergeFrom(from._internal_packet_acknowledgement()); - } - if (cached_has_bits & 0x00000008u) { - type_ = from.type_; - } - _has_bits_[0] |= cached_has_bits; +void SocketControlFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.SocketControlFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.introduction_ != nullptr); + if (_this->_impl_.introduction_ == nullptr) { + _this->_impl_.introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.introduction_); + } else { + _this->_impl_.introduction_->MergeFrom(*from._impl_.introduction_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.disconnection_ != nullptr); + if (_this->_impl_.disconnection_ == nullptr) { + _this->_impl_.disconnection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.disconnection_); + } else { + _this->_impl_.disconnection_->MergeFrom(*from._impl_.disconnection_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.packet_acknowledgement_ != nullptr); + if (_this->_impl_.packet_acknowledgement_ == nullptr) { + _this->_impl_.packet_acknowledgement_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.packet_acknowledgement_); + } else { + _this->_impl_.packet_acknowledgement_->MergeFrom(*from._impl_.packet_acknowledgement_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.type_ = from._impl_.type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SocketControlFrame::CopyFrom(const SocketControlFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SocketControlFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SocketControlFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool SocketControlFrame::IsInitialized() const { - return true; -} -void SocketControlFrame::InternalSwap(SocketControlFrame* other) { - using std::swap; +void SocketControlFrame::InternalSwap(SocketControlFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SocketControlFrame, type_) - + sizeof(SocketControlFrame::type_) - - PROTOBUF_FIELD_OFFSET(SocketControlFrame, introduction_)>( - reinterpret_cast(&introduction_), - reinterpret_cast(&other->introduction_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.type_) + + sizeof(SocketControlFrame::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(SocketControlFrame, _impl_.introduction_)>( + reinterpret_cast(&_impl_.introduction_), + reinterpret_cast(&other->_impl_.introduction_)); } -std::string SocketControlFrame::GetTypeName() const { - return "location.nearby.mediums.SocketControlFrame"; -} - - // =================================================================== class IntroductionFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_socket_version(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_service_id_hash_salt(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._has_bits_); }; -IntroductionFrame::IntroductionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +IntroductionFrame::IntroductionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IntroductionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.IntroductionFrame) } -IntroductionFrame::IntroductionFrame(const IntroductionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id_hash()) { - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id_hash(), - GetArenaForAllocation()); - } - service_id_hash_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id_hash_salt()) { - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id_hash_salt(), - GetArenaForAllocation()); - } - socket_version_ = from.socket_version_; +PROTOBUF_NDEBUG_INLINE IntroductionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::IntroductionFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_id_hash_(arena, from.service_id_hash_), + service_id_hash_salt_(arena, from.service_id_hash_salt_) {} + +IntroductionFrame::IntroductionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const IntroductionFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IntroductionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + IntroductionFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.socket_version_ = from._impl_.socket_version_; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.IntroductionFrame) } +PROTOBUF_NDEBUG_INLINE IntroductionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_id_hash_(arena), + service_id_hash_salt_(arena) {} -inline void IntroductionFrame::SharedCtor() { -service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_id_hash_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -socket_version_ = 0; +inline void IntroductionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.socket_version_ = {}; } - IntroductionFrame::~IntroductionFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.IntroductionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void IntroductionFrame::SharedDtor(MessageLite& self) { + IntroductionFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_id_hash_.Destroy(); + this_._impl_.service_id_hash_salt_.Destroy(); + this_._impl_.~Impl_(); } -inline void IntroductionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_id_hash_salt_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL IntroductionFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) IntroductionFrame(arena); +} +constexpr auto IntroductionFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntroductionFrame), + alignof(IntroductionFrame)); +} +constexpr auto IntroductionFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<42>{ + { + &_IntroductionFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &IntroductionFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &IntroductionFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &IntroductionFrame::ByteSizeLong, + &IntroductionFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.IntroductionFrame", + }; } -void IntroductionFrame::ArenaDtor(void* object) { - IntroductionFrame* _this = reinterpret_cast< IntroductionFrame* >(object); - (void)_this; -} -void IntroductionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void IntroductionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<42> IntroductionFrame_class_data_ = + IntroductionFrame::InternalGenerateClassData_(); -void IntroductionFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +IntroductionFrame::GetClassData() const { + return IntroductionFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +IntroductionFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + IntroductionFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::IntroductionFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bytes service_id_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_)}}, + // optional .location.nearby.mediums.SocketVersion socket_version = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 2, 2, + PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.socket_version_)}}, + // optional string service_id_hash_salt = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_salt_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes service_id_hash = 1; + {PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.mediums.SocketVersion socket_version = 2; + {PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.socket_version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string service_id_hash_salt = 3; + {PROTOBUF_FIELD_OFFSET(IntroductionFrame, _impl_.service_id_hash_salt_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void IntroductionFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IntroductionFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - service_id_hash_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_hash_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - service_id_hash_salt_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.service_id_hash_salt_.ClearNonDefaultToEmpty(); } } - socket_version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.socket_version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* IntroductionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes service_id_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.SocketVersion socket_version = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::SocketVersion_IsValid(val))) { - _internal_set_socket_version(static_cast<::location::nearby::mediums::SocketVersion>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string service_id_hash_salt = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_service_id_hash_salt(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* IntroductionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL IntroductionFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const IntroductionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL IntroductionFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const IntroductionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IntroductionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_service_id_hash(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_id_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional .location.nearby.mediums.SocketVersion socket_version = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_socket_version(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_socket_version(), target); } // optional string service_id_hash_salt = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_service_id_hash_salt(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_service_id_hash_salt(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.IntroductionFrame) return target; } -size_t IntroductionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IntroductionFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t IntroductionFrame::ByteSizeLong(const MessageLite& base) { + const IntroductionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t IntroductionFrame::ByteSizeLong() const { + const IntroductionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IntroductionFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional bytes service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_service_id_hash()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_service_id_hash()); } - // optional string service_id_hash_salt = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id_hash_salt()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_id_hash_salt()); } - // optional .location.nearby.mediums.SocketVersion socket_version = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_socket_version()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_socket_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void IntroductionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void IntroductionFrame::MergeFrom(const IntroductionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IntroductionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id_hash(from._internal_service_id_hash()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_service_id_hash_salt(from._internal_service_id_hash_salt()); - } - if (cached_has_bits & 0x00000004u) { - socket_version_ = from.socket_version_; - } - _has_bits_[0] |= cached_has_bits; +void IntroductionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IntroductionFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_id_hash(from._internal_service_id_hash()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_service_id_hash_salt(from._internal_service_id_hash_salt()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.socket_version_ = from._impl_.socket_version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void IntroductionFrame::CopyFrom(const IntroductionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IntroductionFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IntroductionFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool IntroductionFrame::IsInitialized() const { - return true; -} -void IntroductionFrame::InternalSwap(IntroductionFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void IntroductionFrame::InternalSwap(IntroductionFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_hash_, lhs_arena, - &other->service_id_hash_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_hash_salt_, lhs_arena, - &other->service_id_hash_salt_, rhs_arena - ); - swap(socket_version_, other->socket_version_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_, &other->_impl_.service_id_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_salt_, &other->_impl_.service_id_hash_salt_, arena); + swap(_impl_.socket_version_, other->_impl_.socket_version_); } -std::string IntroductionFrame::GetTypeName() const { - return "location.nearby.mediums.IntroductionFrame"; -} - - // =================================================================== class DisconnectionFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._has_bits_); }; -DisconnectionFrame::DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DisconnectionFrame::DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.DisconnectionFrame) } -DisconnectionFrame::DisconnectionFrame(const DisconnectionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id_hash()) { - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id_hash(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE DisconnectionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::DisconnectionFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_id_hash_(arena, from.service_id_hash_) {} + +DisconnectionFrame::DisconnectionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DisconnectionFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectionFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DisconnectionFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.DisconnectionFrame) } +PROTOBUF_NDEBUG_INLINE DisconnectionFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_id_hash_(arena) {} -inline void DisconnectionFrame::SharedCtor() { -service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void DisconnectionFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - DisconnectionFrame::~DisconnectionFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.DisconnectionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void DisconnectionFrame::SharedDtor(MessageLite& self) { + DisconnectionFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_id_hash_.Destroy(); + this_._impl_.~Impl_(); } -inline void DisconnectionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL DisconnectionFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DisconnectionFrame(arena); +} +constexpr auto DisconnectionFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DisconnectionFrame), + alignof(DisconnectionFrame)); +} +constexpr auto DisconnectionFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_DisconnectionFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisconnectionFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisconnectionFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DisconnectionFrame::ByteSizeLong, + &DisconnectionFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.DisconnectionFrame", + }; } -void DisconnectionFrame::ArenaDtor(void* object) { - DisconnectionFrame* _this = reinterpret_cast< DisconnectionFrame* >(object); - (void)_this; -} -void DisconnectionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DisconnectionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> DisconnectionFrame_class_data_ = + DisconnectionFrame::InternalGenerateClassData_(); -void DisconnectionFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DisconnectionFrame::GetClassData() const { + return DisconnectionFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +DisconnectionFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DisconnectionFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectionFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes service_id_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.service_id_hash_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes service_id_hash = 1; + {PROTOBUF_FIELD_OFFSET(DisconnectionFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DisconnectionFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.DisconnectionFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - service_id_hash_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_hash_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* DisconnectionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes service_id_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DisconnectionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DisconnectionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DisconnectionFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DisconnectionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.DisconnectionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_service_id_hash(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_id_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.DisconnectionFrame) return target; } -size_t DisconnectionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectionFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DisconnectionFrame::ByteSizeLong(const MessageLite& base) { + const DisconnectionFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DisconnectionFrame::ByteSizeLong() const { + const DisconnectionFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectionFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional bytes service_id_hash = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_service_id_hash()); + { + // optional bytes service_id_hash = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_service_id_hash()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DisconnectionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DisconnectionFrame::MergeFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_service_id_hash()) { - _internal_set_service_id_hash(from._internal_service_id_hash()); +void DisconnectionFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectionFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_id_hash(from._internal_service_id_hash()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DisconnectionFrame::CopyFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectionFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectionFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool DisconnectionFrame::IsInitialized() const { - return true; -} -void DisconnectionFrame::InternalSwap(DisconnectionFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void DisconnectionFrame::InternalSwap(DisconnectionFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_hash_, lhs_arena, - &other->service_id_hash_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_, &other->_impl_.service_id_hash_, arena); } -std::string DisconnectionFrame::GetTypeName() const { - return "location.nearby.mediums.DisconnectionFrame"; -} - - // =================================================================== class PacketAcknowledgementFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_received_size(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_._has_bits_); }; -PacketAcknowledgementFrame::PacketAcknowledgementFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PacketAcknowledgementFrame::PacketAcknowledgementFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PacketAcknowledgementFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.PacketAcknowledgementFrame) } -PacketAcknowledgementFrame::PacketAcknowledgementFrame(const PacketAcknowledgementFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id_hash()) { - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id_hash(), - GetArenaForAllocation()); - } - received_size_ = from.received_size_; +PROTOBUF_NDEBUG_INLINE PacketAcknowledgementFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::PacketAcknowledgementFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_id_hash_(arena, from.service_id_hash_) {} + +PacketAcknowledgementFrame::PacketAcknowledgementFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PacketAcknowledgementFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PacketAcknowledgementFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PacketAcknowledgementFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.received_size_ = from._impl_.received_size_; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.PacketAcknowledgementFrame) } +PROTOBUF_NDEBUG_INLINE PacketAcknowledgementFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_id_hash_(arena) {} -inline void PacketAcknowledgementFrame::SharedCtor() { -service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -received_size_ = 0; +inline void PacketAcknowledgementFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.received_size_ = {}; } - PacketAcknowledgementFrame::~PacketAcknowledgementFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.PacketAcknowledgementFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PacketAcknowledgementFrame::SharedDtor(MessageLite& self) { + PacketAcknowledgementFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_id_hash_.Destroy(); + this_._impl_.~Impl_(); } -inline void PacketAcknowledgementFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PacketAcknowledgementFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PacketAcknowledgementFrame(arena); +} +constexpr auto PacketAcknowledgementFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PacketAcknowledgementFrame), + alignof(PacketAcknowledgementFrame)); +} +constexpr auto PacketAcknowledgementFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<51>{ + { + &_PacketAcknowledgementFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PacketAcknowledgementFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PacketAcknowledgementFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PacketAcknowledgementFrame::ByteSizeLong, + &PacketAcknowledgementFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.PacketAcknowledgementFrame", + }; } -void PacketAcknowledgementFrame::ArenaDtor(void* object) { - PacketAcknowledgementFrame* _this = reinterpret_cast< PacketAcknowledgementFrame* >(object); - (void)_this; -} -void PacketAcknowledgementFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PacketAcknowledgementFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<51> PacketAcknowledgementFrame_class_data_ = + PacketAcknowledgementFrame::InternalGenerateClassData_(); -void PacketAcknowledgementFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PacketAcknowledgementFrame::GetClassData() const { + return PacketAcknowledgementFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +PacketAcknowledgementFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PacketAcknowledgementFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::PacketAcknowledgementFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 received_size = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.received_size_)}}, + // optional bytes service_id_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.service_id_hash_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes service_id_hash = 1; + {PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 received_size = 2; + {PROTOBUF_FIELD_OFFSET(PacketAcknowledgementFrame, _impl_.received_size_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void PacketAcknowledgementFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.PacketAcknowledgementFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - service_id_hash_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_hash_.ClearNonDefaultToEmpty(); } - received_size_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.received_size_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PacketAcknowledgementFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes service_id_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 received_size = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_received_size(&has_bits); - received_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PacketAcknowledgementFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PacketAcknowledgementFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PacketAcknowledgementFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PacketAcknowledgementFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PacketAcknowledgementFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.PacketAcknowledgementFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_service_id_hash(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_id_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional int32 received_size = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_received_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_received_size(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.PacketAcknowledgementFrame) return target; } -size_t PacketAcknowledgementFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PacketAcknowledgementFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PacketAcknowledgementFrame::ByteSizeLong(const MessageLite& base) { + const PacketAcknowledgementFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PacketAcknowledgementFrame::ByteSizeLong() const { + const PacketAcknowledgementFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PacketAcknowledgementFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_service_id_hash()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_service_id_hash()); } - // optional int32 received_size = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_received_size()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_received_size()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PacketAcknowledgementFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PacketAcknowledgementFrame::MergeFrom(const PacketAcknowledgementFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PacketAcknowledgementFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id_hash(from._internal_service_id_hash()); - } - if (cached_has_bits & 0x00000002u) { - received_size_ = from.received_size_; - } - _has_bits_[0] |= cached_has_bits; +void PacketAcknowledgementFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PacketAcknowledgementFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_id_hash(from._internal_service_id_hash()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.received_size_ = from._impl_.received_size_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PacketAcknowledgementFrame::CopyFrom(const PacketAcknowledgementFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PacketAcknowledgementFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PacketAcknowledgementFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool PacketAcknowledgementFrame::IsInitialized() const { - return true; -} -void PacketAcknowledgementFrame::InternalSwap(PacketAcknowledgementFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PacketAcknowledgementFrame::InternalSwap(PacketAcknowledgementFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_hash_, lhs_arena, - &other->service_id_hash_, rhs_arena - ); - swap(received_size_, other->received_size_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_, &other->_impl_.service_id_hash_, arena); + swap(_impl_.received_size_, other->_impl_.received_size_); } -std::string PacketAcknowledgementFrame::GetTypeName() const { - return "location.nearby.mediums.PacketAcknowledgementFrame"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::SocketControlFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::SocketControlFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::SocketControlFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::IntroductionFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::IntroductionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::IntroductionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::DisconnectionFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::DisconnectionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::DisconnectionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::PacketAcknowledgementFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::PacketAcknowledgementFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::PacketAcknowledgementFrame >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/mediums/ble_frames.pb.h b/compiled_proto/proto/mediums/ble_frames.pb.h index a57a4e39..5268f498 100644 --- a/compiled_proto/proto/mediums/ble_frames.pb.h +++ b/compiled_proto/proto/mediums/ble_frames.pb.h @@ -1,151 +1,175 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/ble_frames.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fble_5fframes_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fble_5fframes_2eproto +#ifndef proto_2fmediums_2fble_5fframes_2eproto_2epb_2eh +#define proto_2fmediums_2fble_5fframes_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fmediums_2fble_5fframes_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fmediums_2fble_5fframes_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { namespace mediums { +enum SocketControlFrame_ControlFrameType : int; +extern const uint32_t SocketControlFrame_ControlFrameType_internal_data_[]; +enum SocketVersion : int; +extern const uint32_t SocketVersion_internal_data_[]; class DisconnectionFrame; struct DisconnectionFrameDefaultTypeInternal; extern DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> DisconnectionFrame_class_data_; class IntroductionFrame; struct IntroductionFrameDefaultTypeInternal; extern IntroductionFrameDefaultTypeInternal _IntroductionFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<42> IntroductionFrame_class_data_; class PacketAcknowledgementFrame; struct PacketAcknowledgementFrameDefaultTypeInternal; extern PacketAcknowledgementFrameDefaultTypeInternal _PacketAcknowledgementFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<51> PacketAcknowledgementFrame_class_data_; class SocketControlFrame; struct SocketControlFrameDefaultTypeInternal; extern SocketControlFrameDefaultTypeInternal _SocketControlFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> SocketControlFrame_class_data_; } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::mediums::DisconnectionFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::DisconnectionFrame>(Arena*); -template<> ::location::nearby::mediums::IntroductionFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::IntroductionFrame>(Arena*); -template<> ::location::nearby::mediums::PacketAcknowledgementFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::PacketAcknowledgementFrame>(Arena*); -template<> ::location::nearby::mediums::SocketControlFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::SocketControlFrame>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::mediums::SocketControlFrame_ControlFrameType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::SocketControlFrame_ControlFrameType>; +template <> +internal::EnumTraitsT<::location::nearby::mediums::SocketVersion_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::SocketVersion>; +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace mediums { - enum SocketControlFrame_ControlFrameType : int { SocketControlFrame_ControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE = 0, SocketControlFrame_ControlFrameType_INTRODUCTION = 1, SocketControlFrame_ControlFrameType_DISCONNECTION = 2, - SocketControlFrame_ControlFrameType_PACKET_ACKNOWLEDGEMENT = 3 + SocketControlFrame_ControlFrameType_PACKET_ACKNOWLEDGEMENT = 3, }; -bool SocketControlFrame_ControlFrameType_IsValid(int value); -constexpr SocketControlFrame_ControlFrameType SocketControlFrame_ControlFrameType_ControlFrameType_MIN = SocketControlFrame_ControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; -constexpr SocketControlFrame_ControlFrameType SocketControlFrame_ControlFrameType_ControlFrameType_MAX = SocketControlFrame_ControlFrameType_PACKET_ACKNOWLEDGEMENT; -constexpr int SocketControlFrame_ControlFrameType_ControlFrameType_ARRAYSIZE = SocketControlFrame_ControlFrameType_ControlFrameType_MAX + 1; -const std::string& SocketControlFrame_ControlFrameType_Name(SocketControlFrame_ControlFrameType value); -template -inline const std::string& SocketControlFrame_ControlFrameType_Name(T enum_t_value) { +extern const uint32_t SocketControlFrame_ControlFrameType_internal_data_[]; +inline constexpr SocketControlFrame_ControlFrameType SocketControlFrame_ControlFrameType_ControlFrameType_MIN = + static_cast(0); +inline constexpr SocketControlFrame_ControlFrameType SocketControlFrame_ControlFrameType_ControlFrameType_MAX = + static_cast(3); +inline bool SocketControlFrame_ControlFrameType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int SocketControlFrame_ControlFrameType_ControlFrameType_ARRAYSIZE = 3 + 1; +const ::std::string& SocketControlFrame_ControlFrameType_Name(SocketControlFrame_ControlFrameType value); +template +const ::std::string& SocketControlFrame_ControlFrameType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SocketControlFrame_ControlFrameType_Name."); - return SocketControlFrame_ControlFrameType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ControlFrameType_Name()."); + return SocketControlFrame_ControlFrameType_Name(static_cast(value)); } bool SocketControlFrame_ControlFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SocketControlFrame_ControlFrameType* value); + ::absl::string_view name, SocketControlFrame_ControlFrameType* PROTOBUF_NONNULL value); enum SocketVersion : int { UNKNOWN_SOCKET_VERSION = 0, V1 = 1, - V2 = 2 + V2 = 2, }; -bool SocketVersion_IsValid(int value); -constexpr SocketVersion SocketVersion_MIN = UNKNOWN_SOCKET_VERSION; -constexpr SocketVersion SocketVersion_MAX = V2; -constexpr int SocketVersion_ARRAYSIZE = SocketVersion_MAX + 1; -const std::string& SocketVersion_Name(SocketVersion value); -template -inline const std::string& SocketVersion_Name(T enum_t_value) { +extern const uint32_t SocketVersion_internal_data_[]; +inline constexpr SocketVersion SocketVersion_MIN = + static_cast(0); +inline constexpr SocketVersion SocketVersion_MAX = + static_cast(2); +inline bool SocketVersion_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int SocketVersion_ARRAYSIZE = 2 + 1; +const ::std::string& SocketVersion_Name(SocketVersion value); +template +const ::std::string& SocketVersion_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SocketVersion_Name."); - return SocketVersion_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SocketVersion_Name()."); + return SocketVersion_Name(static_cast(value)); } bool SocketVersion_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SocketVersion* value); + ::absl::string_view name, SocketVersion* PROTOBUF_NONNULL value); + // =================================================================== -class SocketControlFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.SocketControlFrame) */ { + +// ------------------------------------------------------------------- + +class PacketAcknowledgementFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.PacketAcknowledgementFrame) */ { public: - inline SocketControlFrame() : SocketControlFrame(nullptr) {} - ~SocketControlFrame() override; - explicit constexpr SocketControlFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PacketAcknowledgementFrame() : PacketAcknowledgementFrame(nullptr) {} + ~PacketAcknowledgementFrame() PROTOBUF_FINAL; - SocketControlFrame(const SocketControlFrame& from); - SocketControlFrame(SocketControlFrame&& from) noexcept - : SocketControlFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PacketAcknowledgementFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PacketAcknowledgementFrame)); } +#endif - inline SocketControlFrame& operator=(const SocketControlFrame& from) { + template + explicit PROTOBUF_CONSTEXPR PacketAcknowledgementFrame(::google::protobuf::internal::ConstantInitialized); + + inline PacketAcknowledgementFrame(const PacketAcknowledgementFrame& from) : PacketAcknowledgementFrame(nullptr, from) {} + inline PacketAcknowledgementFrame(PacketAcknowledgementFrame&& from) noexcept + : PacketAcknowledgementFrame(nullptr, ::std::move(from)) {} + inline PacketAcknowledgementFrame& operator=(const PacketAcknowledgementFrame& from) { CopyFrom(from); return *this; } - inline SocketControlFrame& operator=(SocketControlFrame&& from) noexcept { + inline PacketAcknowledgementFrame& operator=(PacketAcknowledgementFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -153,117 +177,717 @@ class SocketControlFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SocketControlFrame& default_instance() { - return *internal_default_instance(); + static const PacketAcknowledgementFrame& default_instance() { + return *reinterpret_cast( + &_PacketAcknowledgementFrame_default_instance_); } - static inline const SocketControlFrame* internal_default_instance() { - return reinterpret_cast( - &_SocketControlFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SocketControlFrame& a, SocketControlFrame& b) { - a.Swap(&b); - } - inline void Swap(SocketControlFrame* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(PacketAcknowledgementFrame& a, PacketAcknowledgementFrame& b) { a.Swap(&b); } + inline void Swap(PacketAcknowledgementFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SocketControlFrame* other) { + void UnsafeArenaSwap(PacketAcknowledgementFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SocketControlFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PacketAcknowledgementFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SocketControlFrame& from); - void MergeFrom(const SocketControlFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const PacketAcknowledgementFrame& from); + void MergeFrom(const PacketAcknowledgementFrame& from) { PacketAcknowledgementFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SocketControlFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.SocketControlFrame"; - } - protected: - explicit SocketControlFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PacketAcknowledgementFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.PacketAcknowledgementFrame"; } + + explicit PacketAcknowledgementFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PacketAcknowledgementFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PacketAcknowledgementFrame& from); + PacketAcknowledgementFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PacketAcknowledgementFrame&& from) noexcept + : PacketAcknowledgementFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - typedef SocketControlFrame_ControlFrameType ControlFrameType; - static constexpr ControlFrameType UNKNOWN_CONTROL_FRAME_TYPE = - SocketControlFrame_ControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; - static constexpr ControlFrameType INTRODUCTION = - SocketControlFrame_ControlFrameType_INTRODUCTION; - static constexpr ControlFrameType DISCONNECTION = - SocketControlFrame_ControlFrameType_DISCONNECTION; - static constexpr ControlFrameType PACKET_ACKNOWLEDGEMENT = - SocketControlFrame_ControlFrameType_PACKET_ACKNOWLEDGEMENT; + // accessors ------------------------------------------------------- + enum : int { + kServiceIdHashFieldNumber = 1, + kReceivedSizeFieldNumber = 2, + }; + // optional bytes service_id_hash = 1; + bool has_service_id_hash() const; + void clear_service_id_hash() ; + const ::std::string& service_id_hash() const; + template + void set_service_id_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id_hash(); + void set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_id_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id_hash(); + + public: + // optional int32 received_size = 2; + bool has_received_size() const; + void clear_received_size() ; + ::int32_t received_size() const; + void set_received_size(::int32_t value); + + private: + ::int32_t _internal_received_size() const; + void _internal_set_received_size(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.PacketAcknowledgementFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PacketAcknowledgementFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_hash_; + ::int32_t received_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<51> PacketAcknowledgementFrame_class_data_; +// ------------------------------------------------------------------- + +class IntroductionFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.IntroductionFrame) */ { + public: + inline IntroductionFrame() : IntroductionFrame(nullptr) {} + ~IntroductionFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(IntroductionFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(IntroductionFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR IntroductionFrame(::google::protobuf::internal::ConstantInitialized); + + inline IntroductionFrame(const IntroductionFrame& from) : IntroductionFrame(nullptr, from) {} + inline IntroductionFrame(IntroductionFrame&& from) noexcept + : IntroductionFrame(nullptr, ::std::move(from)) {} + inline IntroductionFrame& operator=(const IntroductionFrame& from) { + CopyFrom(from); + return *this; + } + inline IntroductionFrame& operator=(IntroductionFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const IntroductionFrame& default_instance() { + return *reinterpret_cast( + &_IntroductionFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(IntroductionFrame& a, IntroductionFrame& b) { a.Swap(&b); } + inline void Swap(IntroductionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IntroductionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IntroductionFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const IntroductionFrame& from); + void MergeFrom(const IntroductionFrame& from) { IntroductionFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(IntroductionFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.IntroductionFrame"; } + + explicit IntroductionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + IntroductionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const IntroductionFrame& from); + IntroductionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, IntroductionFrame&& from) noexcept + : IntroductionFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kServiceIdHashFieldNumber = 1, + kServiceIdHashSaltFieldNumber = 3, + kSocketVersionFieldNumber = 2, + }; + // optional bytes service_id_hash = 1; + bool has_service_id_hash() const; + void clear_service_id_hash() ; + const ::std::string& service_id_hash() const; + template + void set_service_id_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id_hash(); + void set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_id_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id_hash(); + + public: + // optional string service_id_hash_salt = 3; + bool has_service_id_hash_salt() const; + void clear_service_id_hash_salt() ; + const ::std::string& service_id_hash_salt() const; + template + void set_service_id_hash_salt(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id_hash_salt(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id_hash_salt(); + void set_allocated_service_id_hash_salt(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_id_hash_salt() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash_salt(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id_hash_salt(); + + public: + // optional .location.nearby.mediums.SocketVersion socket_version = 2; + bool has_socket_version() const; + void clear_socket_version() ; + ::location::nearby::mediums::SocketVersion socket_version() const; + void set_socket_version(::location::nearby::mediums::SocketVersion value); + + private: + ::location::nearby::mediums::SocketVersion _internal_socket_version() const; + void _internal_set_socket_version(::location::nearby::mediums::SocketVersion value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.IntroductionFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const IntroductionFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_hash_; + ::google::protobuf::internal::ArenaStringPtr service_id_hash_salt_; + int socket_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<42> IntroductionFrame_class_data_; +// ------------------------------------------------------------------- + +class DisconnectionFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.DisconnectionFrame) */ { + public: + inline DisconnectionFrame() : DisconnectionFrame(nullptr) {} + ~DisconnectionFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisconnectionFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisconnectionFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisconnectionFrame(::google::protobuf::internal::ConstantInitialized); + + inline DisconnectionFrame(const DisconnectionFrame& from) : DisconnectionFrame(nullptr, from) {} + inline DisconnectionFrame(DisconnectionFrame&& from) noexcept + : DisconnectionFrame(nullptr, ::std::move(from)) {} + inline DisconnectionFrame& operator=(const DisconnectionFrame& from) { + CopyFrom(from); + return *this; + } + inline DisconnectionFrame& operator=(DisconnectionFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DisconnectionFrame& default_instance() { + return *reinterpret_cast( + &_DisconnectionFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { a.Swap(&b); } + inline void Swap(DisconnectionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DisconnectionFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisconnectionFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DisconnectionFrame& from); + void MergeFrom(const DisconnectionFrame& from) { DisconnectionFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DisconnectionFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.DisconnectionFrame"; } + + explicit DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DisconnectionFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectionFrame& from); + DisconnectionFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DisconnectionFrame&& from) noexcept + : DisconnectionFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kServiceIdHashFieldNumber = 1, + }; + // optional bytes service_id_hash = 1; + bool has_service_id_hash() const; + void clear_service_id_hash() ; + const ::std::string& service_id_hash() const; + template + void set_service_id_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id_hash(); + void set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_service_id_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id_hash(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.DisconnectionFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DisconnectionFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_hash_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> DisconnectionFrame_class_data_; +// ------------------------------------------------------------------- + +class SocketControlFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.SocketControlFrame) */ { + public: + inline SocketControlFrame() : SocketControlFrame(nullptr) {} + ~SocketControlFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SocketControlFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SocketControlFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SocketControlFrame(::google::protobuf::internal::ConstantInitialized); + + inline SocketControlFrame(const SocketControlFrame& from) : SocketControlFrame(nullptr, from) {} + inline SocketControlFrame(SocketControlFrame&& from) noexcept + : SocketControlFrame(nullptr, ::std::move(from)) {} + inline SocketControlFrame& operator=(const SocketControlFrame& from) { + CopyFrom(from); + return *this; + } + inline SocketControlFrame& operator=(SocketControlFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SocketControlFrame& default_instance() { + return *reinterpret_cast( + &_SocketControlFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SocketControlFrame& a, SocketControlFrame& b) { a.Swap(&b); } + inline void Swap(SocketControlFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SocketControlFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SocketControlFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SocketControlFrame& from); + void MergeFrom(const SocketControlFrame& from) { SocketControlFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SocketControlFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.SocketControlFrame"; } + + explicit SocketControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SocketControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SocketControlFrame& from); + SocketControlFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SocketControlFrame&& from) noexcept + : SocketControlFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using ControlFrameType = SocketControlFrame_ControlFrameType; + static constexpr ControlFrameType UNKNOWN_CONTROL_FRAME_TYPE = SocketControlFrame_ControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; + static constexpr ControlFrameType INTRODUCTION = SocketControlFrame_ControlFrameType_INTRODUCTION; + static constexpr ControlFrameType DISCONNECTION = SocketControlFrame_ControlFrameType_DISCONNECTION; + static constexpr ControlFrameType PACKET_ACKNOWLEDGEMENT = SocketControlFrame_ControlFrameType_PACKET_ACKNOWLEDGEMENT; static inline bool ControlFrameType_IsValid(int value) { return SocketControlFrame_ControlFrameType_IsValid(value); } - static constexpr ControlFrameType ControlFrameType_MIN = - SocketControlFrame_ControlFrameType_ControlFrameType_MIN; - static constexpr ControlFrameType ControlFrameType_MAX = - SocketControlFrame_ControlFrameType_ControlFrameType_MAX; - static constexpr int ControlFrameType_ARRAYSIZE = - SocketControlFrame_ControlFrameType_ControlFrameType_ARRAYSIZE; - template - static inline const std::string& ControlFrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ControlFrameType_Name."); - return SocketControlFrame_ControlFrameType_Name(enum_t_value); + static constexpr ControlFrameType ControlFrameType_MIN = SocketControlFrame_ControlFrameType_ControlFrameType_MIN; + static constexpr ControlFrameType ControlFrameType_MAX = SocketControlFrame_ControlFrameType_ControlFrameType_MAX; + static constexpr int ControlFrameType_ARRAYSIZE = SocketControlFrame_ControlFrameType_ControlFrameType_ARRAYSIZE; + template + static inline const ::std::string& ControlFrameType_Name(T value) { + return SocketControlFrame_ControlFrameType_Name(value); } - static inline bool ControlFrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ControlFrameType* value) { + static inline bool ControlFrameType_Parse( + ::absl::string_view name, ControlFrameType* PROTOBUF_NONNULL value) { return SocketControlFrame_ControlFrameType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kIntroductionFieldNumber = 2, kDisconnectionFieldNumber = 3, @@ -272,884 +896,440 @@ class SocketControlFrame final : }; // optional .location.nearby.mediums.IntroductionFrame introduction = 2; bool has_introduction() const; - private: - bool _internal_has_introduction() const; - public: - void clear_introduction(); + void clear_introduction() ; const ::location::nearby::mediums::IntroductionFrame& introduction() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::IntroductionFrame* release_introduction(); - ::location::nearby::mediums::IntroductionFrame* mutable_introduction(); - void set_allocated_introduction(::location::nearby::mediums::IntroductionFrame* introduction); + [[nodiscard]] ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE release_introduction(); + ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NONNULL mutable_introduction(); + void set_allocated_introduction(::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_introduction(::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE unsafe_arena_release_introduction(); + private: const ::location::nearby::mediums::IntroductionFrame& _internal_introduction() const; - ::location::nearby::mediums::IntroductionFrame* _internal_mutable_introduction(); - public: - void unsafe_arena_set_allocated_introduction( - ::location::nearby::mediums::IntroductionFrame* introduction); - ::location::nearby::mediums::IntroductionFrame* unsafe_arena_release_introduction(); + ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NONNULL _internal_mutable_introduction(); + public: // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; bool has_disconnection() const; - private: - bool _internal_has_disconnection() const; - public: - void clear_disconnection(); + void clear_disconnection() ; const ::location::nearby::mediums::DisconnectionFrame& disconnection() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::DisconnectionFrame* release_disconnection(); - ::location::nearby::mediums::DisconnectionFrame* mutable_disconnection(); - void set_allocated_disconnection(::location::nearby::mediums::DisconnectionFrame* disconnection); + [[nodiscard]] ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE release_disconnection(); + ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NONNULL mutable_disconnection(); + void set_allocated_disconnection(::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_disconnection(::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE unsafe_arena_release_disconnection(); + private: const ::location::nearby::mediums::DisconnectionFrame& _internal_disconnection() const; - ::location::nearby::mediums::DisconnectionFrame* _internal_mutable_disconnection(); - public: - void unsafe_arena_set_allocated_disconnection( - ::location::nearby::mediums::DisconnectionFrame* disconnection); - ::location::nearby::mediums::DisconnectionFrame* unsafe_arena_release_disconnection(); + ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NONNULL _internal_mutable_disconnection(); + public: // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; bool has_packet_acknowledgement() const; - private: - bool _internal_has_packet_acknowledgement() const; - public: - void clear_packet_acknowledgement(); + void clear_packet_acknowledgement() ; const ::location::nearby::mediums::PacketAcknowledgementFrame& packet_acknowledgement() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::PacketAcknowledgementFrame* release_packet_acknowledgement(); - ::location::nearby::mediums::PacketAcknowledgementFrame* mutable_packet_acknowledgement(); - void set_allocated_packet_acknowledgement(::location::nearby::mediums::PacketAcknowledgementFrame* packet_acknowledgement); + [[nodiscard]] ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE release_packet_acknowledgement(); + ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NONNULL mutable_packet_acknowledgement(); + void set_allocated_packet_acknowledgement(::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_packet_acknowledgement(::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE unsafe_arena_release_packet_acknowledgement(); + private: const ::location::nearby::mediums::PacketAcknowledgementFrame& _internal_packet_acknowledgement() const; - ::location::nearby::mediums::PacketAcknowledgementFrame* _internal_mutable_packet_acknowledgement(); - public: - void unsafe_arena_set_allocated_packet_acknowledgement( - ::location::nearby::mediums::PacketAcknowledgementFrame* packet_acknowledgement); - ::location::nearby::mediums::PacketAcknowledgementFrame* unsafe_arena_release_packet_acknowledgement(); + ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NONNULL _internal_mutable_packet_acknowledgement(); + public: // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::location::nearby::mediums::SocketControlFrame_ControlFrameType type() const; void set_type(::location::nearby::mediums::SocketControlFrame_ControlFrameType value); + private: ::location::nearby::mediums::SocketControlFrame_ControlFrameType _internal_type() const; void _internal_set_type(::location::nearby::mediums::SocketControlFrame_ControlFrameType value); - public: + public: // @@protoc_insertion_point(class_scope:location.nearby.mediums.SocketControlFrame) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::mediums::IntroductionFrame* introduction_; - ::location::nearby::mediums::DisconnectionFrame* disconnection_; - ::location::nearby::mediums::PacketAcknowledgementFrame* packet_acknowledgement_; - int type_; - friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class IntroductionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.IntroductionFrame) */ { - public: - inline IntroductionFrame() : IntroductionFrame(nullptr) {} - ~IntroductionFrame() override; - explicit constexpr IntroductionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IntroductionFrame(const IntroductionFrame& from); - IntroductionFrame(IntroductionFrame&& from) noexcept - : IntroductionFrame() { - *this = ::std::move(from); - } - - inline IntroductionFrame& operator=(const IntroductionFrame& from) { - CopyFrom(from); - return *this; - } - inline IntroductionFrame& operator=(IntroductionFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const IntroductionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const IntroductionFrame* internal_default_instance() { - return reinterpret_cast( - &_IntroductionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(IntroductionFrame& a, IntroductionFrame& b) { - a.Swap(&b); - } - inline void Swap(IntroductionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IntroductionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IntroductionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const IntroductionFrame& from); - void MergeFrom(const IntroductionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(IntroductionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.IntroductionFrame"; - } - protected: - explicit IntroductionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceIdHashFieldNumber = 1, - kServiceIdHashSaltFieldNumber = 3, - kSocketVersionFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SocketControlFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE introduction_; + ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE disconnection_; + ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE packet_acknowledgement_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional bytes service_id_hash = 1; - bool has_service_id_hash() const; - private: - bool _internal_has_service_id_hash() const; - public: - void clear_service_id_hash(); - const std::string& service_id_hash() const; - template - void set_service_id_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id_hash(); - PROTOBUF_NODISCARD std::string* release_service_id_hash(); - void set_allocated_service_id_hash(std::string* service_id_hash); - private: - const std::string& _internal_service_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const std::string& value); - std::string* _internal_mutable_service_id_hash(); - public: - - // optional string service_id_hash_salt = 3; - bool has_service_id_hash_salt() const; - private: - bool _internal_has_service_id_hash_salt() const; - public: - void clear_service_id_hash_salt(); - const std::string& service_id_hash_salt() const; - template - void set_service_id_hash_salt(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id_hash_salt(); - PROTOBUF_NODISCARD std::string* release_service_id_hash_salt(); - void set_allocated_service_id_hash_salt(std::string* service_id_hash_salt); - private: - const std::string& _internal_service_id_hash_salt() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash_salt(const std::string& value); - std::string* _internal_mutable_service_id_hash_salt(); - public: - - // optional .location.nearby.mediums.SocketVersion socket_version = 2; - bool has_socket_version() const; - private: - bool _internal_has_socket_version() const; - public: - void clear_socket_version(); - ::location::nearby::mediums::SocketVersion socket_version() const; - void set_socket_version(::location::nearby::mediums::SocketVersion value); - private: - ::location::nearby::mediums::SocketVersion _internal_socket_version() const; - void _internal_set_socket_version(::location::nearby::mediums::SocketVersion value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.IntroductionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_hash_salt_; - int socket_version_; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; }; -// ------------------------------------------------------------------- -class DisconnectionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.DisconnectionFrame) */ { - public: - inline DisconnectionFrame() : DisconnectionFrame(nullptr) {} - ~DisconnectionFrame() override; - explicit constexpr DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); +extern const ::google::protobuf::internal::ClassDataLite<43> SocketControlFrame_class_data_; - DisconnectionFrame(const DisconnectionFrame& from); - DisconnectionFrame(DisconnectionFrame&& from) noexcept - : DisconnectionFrame() { - *this = ::std::move(from); - } - - inline DisconnectionFrame& operator=(const DisconnectionFrame& from) { - CopyFrom(from); - return *this; - } - inline DisconnectionFrame& operator=(DisconnectionFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const DisconnectionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const DisconnectionFrame* internal_default_instance() { - return reinterpret_cast( - &_DisconnectionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { - a.Swap(&b); - } - inline void Swap(DisconnectionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisconnectionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisconnectionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DisconnectionFrame& from); - void MergeFrom(const DisconnectionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DisconnectionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.DisconnectionFrame"; - } - protected: - explicit DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceIdHashFieldNumber = 1, - }; - // optional bytes service_id_hash = 1; - bool has_service_id_hash() const; - private: - bool _internal_has_service_id_hash() const; - public: - void clear_service_id_hash(); - const std::string& service_id_hash() const; - template - void set_service_id_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id_hash(); - PROTOBUF_NODISCARD std::string* release_service_id_hash(); - void set_allocated_service_id_hash(std::string* service_id_hash); - private: - const std::string& _internal_service_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const std::string& value); - std::string* _internal_mutable_service_id_hash(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.DisconnectionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_hash_; - friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class PacketAcknowledgementFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.PacketAcknowledgementFrame) */ { - public: - inline PacketAcknowledgementFrame() : PacketAcknowledgementFrame(nullptr) {} - ~PacketAcknowledgementFrame() override; - explicit constexpr PacketAcknowledgementFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PacketAcknowledgementFrame(const PacketAcknowledgementFrame& from); - PacketAcknowledgementFrame(PacketAcknowledgementFrame&& from) noexcept - : PacketAcknowledgementFrame() { - *this = ::std::move(from); - } - - inline PacketAcknowledgementFrame& operator=(const PacketAcknowledgementFrame& from) { - CopyFrom(from); - return *this; - } - inline PacketAcknowledgementFrame& operator=(PacketAcknowledgementFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PacketAcknowledgementFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PacketAcknowledgementFrame* internal_default_instance() { - return reinterpret_cast( - &_PacketAcknowledgementFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(PacketAcknowledgementFrame& a, PacketAcknowledgementFrame& b) { - a.Swap(&b); - } - inline void Swap(PacketAcknowledgementFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PacketAcknowledgementFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PacketAcknowledgementFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PacketAcknowledgementFrame& from); - void MergeFrom(const PacketAcknowledgementFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PacketAcknowledgementFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.PacketAcknowledgementFrame"; - } - protected: - explicit PacketAcknowledgementFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceIdHashFieldNumber = 1, - kReceivedSizeFieldNumber = 2, - }; - // optional bytes service_id_hash = 1; - bool has_service_id_hash() const; - private: - bool _internal_has_service_id_hash() const; - public: - void clear_service_id_hash(); - const std::string& service_id_hash() const; - template - void set_service_id_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id_hash(); - PROTOBUF_NODISCARD std::string* release_service_id_hash(); - void set_allocated_service_id_hash(std::string* service_id_hash); - private: - const std::string& _internal_service_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash(const std::string& value); - std::string* _internal_mutable_service_id_hash(); - public: - - // optional int32 received_size = 2; - bool has_received_size() const; - private: - bool _internal_has_received_size() const; - public: - void clear_received_size(); - int32_t received_size() const; - void set_received_size(int32_t value); - private: - int32_t _internal_received_size() const; - void _internal_set_received_size(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.PacketAcknowledgementFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_hash_; - int32_t received_size_; - friend struct ::TableStruct_proto_2fmediums_2fble_5fframes_2eproto; -}; // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SocketControlFrame // optional .location.nearby.mediums.SocketControlFrame.ControlFrameType type = 1; -inline bool SocketControlFrame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SocketControlFrame::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SocketControlFrame::has_type() const { - return _internal_has_type(); -} inline void SocketControlFrame::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::mediums::SocketControlFrame_ControlFrameType SocketControlFrame::_internal_type() const { - return static_cast< ::location::nearby::mediums::SocketControlFrame_ControlFrameType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::mediums::SocketControlFrame_ControlFrameType SocketControlFrame::type() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.SocketControlFrame.type) return _internal_type(); } -inline void SocketControlFrame::_internal_set_type(::location::nearby::mediums::SocketControlFrame_ControlFrameType value) { - assert(::location::nearby::mediums::SocketControlFrame_ControlFrameType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - type_ = value; -} inline void SocketControlFrame::set_type(::location::nearby::mediums::SocketControlFrame_ControlFrameType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:location.nearby.mediums.SocketControlFrame.type) } +inline ::location::nearby::mediums::SocketControlFrame_ControlFrameType SocketControlFrame::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::SocketControlFrame_ControlFrameType>(_impl_.type_); +} +inline void SocketControlFrame::_internal_set_type(::location::nearby::mediums::SocketControlFrame_ControlFrameType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::SocketControlFrame_ControlFrameType_internal_data_)); + _impl_.type_ = value; +} // optional .location.nearby.mediums.IntroductionFrame introduction = 2; -inline bool SocketControlFrame::_internal_has_introduction() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || introduction_ != nullptr); +inline bool SocketControlFrame::has_introduction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.introduction_ != nullptr); return value; } -inline bool SocketControlFrame::has_introduction() const { - return _internal_has_introduction(); -} inline void SocketControlFrame::clear_introduction() { - if (introduction_ != nullptr) introduction_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.introduction_ != nullptr) _impl_.introduction_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::mediums::IntroductionFrame& SocketControlFrame::_internal_introduction() const { - const ::location::nearby::mediums::IntroductionFrame* p = introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_IntroductionFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::IntroductionFrame* p = _impl_.introduction_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_IntroductionFrame_default_instance_); } -inline const ::location::nearby::mediums::IntroductionFrame& SocketControlFrame::introduction() const { +inline const ::location::nearby::mediums::IntroductionFrame& SocketControlFrame::introduction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.SocketControlFrame.introduction) return _internal_introduction(); } inline void SocketControlFrame::unsafe_arena_set_allocated_introduction( - ::location::nearby::mediums::IntroductionFrame* introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(introduction_); + ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.introduction_); } - introduction_ = introduction; - if (introduction) { - _has_bits_[0] |= 0x00000001u; + _impl_.introduction_ = reinterpret_cast<::location::nearby::mediums::IntroductionFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.SocketControlFrame.introduction) } -inline ::location::nearby::mediums::IntroductionFrame* SocketControlFrame::release_introduction() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::IntroductionFrame* temp = introduction_; - introduction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE SocketControlFrame::release_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::IntroductionFrame* released = _impl_.introduction_; + _impl_.introduction_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::IntroductionFrame* SocketControlFrame::unsafe_arena_release_introduction() { +inline ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE SocketControlFrame::unsafe_arena_release_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.SocketControlFrame.introduction) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::IntroductionFrame* temp = introduction_; - introduction_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::IntroductionFrame* temp = _impl_.introduction_; + _impl_.introduction_ = nullptr; return temp; } -inline ::location::nearby::mediums::IntroductionFrame* SocketControlFrame::_internal_mutable_introduction() { - _has_bits_[0] |= 0x00000001u; - if (introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::IntroductionFrame>(GetArenaForAllocation()); - introduction_ = p; +inline ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NONNULL SocketControlFrame::_internal_mutable_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.introduction_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::IntroductionFrame>(GetArena()); + _impl_.introduction_ = reinterpret_cast<::location::nearby::mediums::IntroductionFrame*>(p); } - return introduction_; + return _impl_.introduction_; } -inline ::location::nearby::mediums::IntroductionFrame* SocketControlFrame::mutable_introduction() { +inline ::location::nearby::mediums::IntroductionFrame* PROTOBUF_NONNULL SocketControlFrame::mutable_introduction() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::mediums::IntroductionFrame* _msg = _internal_mutable_introduction(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.SocketControlFrame.introduction) return _msg; } -inline void SocketControlFrame::set_allocated_introduction(::location::nearby::mediums::IntroductionFrame* introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SocketControlFrame::set_allocated_introduction(::location::nearby::mediums::IntroductionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete introduction_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.introduction_); } - if (introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::IntroductionFrame>::GetOwningArena(introduction); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, introduction, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - introduction_ = introduction; + + _impl_.introduction_ = reinterpret_cast<::location::nearby::mediums::IntroductionFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.SocketControlFrame.introduction) } // optional .location.nearby.mediums.DisconnectionFrame disconnection = 3; -inline bool SocketControlFrame::_internal_has_disconnection() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || disconnection_ != nullptr); +inline bool SocketControlFrame::has_disconnection() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.disconnection_ != nullptr); return value; } -inline bool SocketControlFrame::has_disconnection() const { - return _internal_has_disconnection(); -} inline void SocketControlFrame::clear_disconnection() { - if (disconnection_ != nullptr) disconnection_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_ != nullptr) _impl_.disconnection_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::location::nearby::mediums::DisconnectionFrame& SocketControlFrame::_internal_disconnection() const { - const ::location::nearby::mediums::DisconnectionFrame* p = disconnection_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_DisconnectionFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::DisconnectionFrame* p = _impl_.disconnection_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_DisconnectionFrame_default_instance_); } -inline const ::location::nearby::mediums::DisconnectionFrame& SocketControlFrame::disconnection() const { +inline const ::location::nearby::mediums::DisconnectionFrame& SocketControlFrame::disconnection() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.SocketControlFrame.disconnection) return _internal_disconnection(); } inline void SocketControlFrame::unsafe_arena_set_allocated_disconnection( - ::location::nearby::mediums::DisconnectionFrame* disconnection) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(disconnection_); + ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_); } - disconnection_ = disconnection; - if (disconnection) { - _has_bits_[0] |= 0x00000002u; + _impl_.disconnection_ = reinterpret_cast<::location::nearby::mediums::DisconnectionFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.SocketControlFrame.disconnection) } -inline ::location::nearby::mediums::DisconnectionFrame* SocketControlFrame::release_disconnection() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::mediums::DisconnectionFrame* temp = disconnection_; - disconnection_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE SocketControlFrame::release_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::mediums::DisconnectionFrame* released = _impl_.disconnection_; + _impl_.disconnection_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::DisconnectionFrame* SocketControlFrame::unsafe_arena_release_disconnection() { +inline ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE SocketControlFrame::unsafe_arena_release_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.SocketControlFrame.disconnection) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::mediums::DisconnectionFrame* temp = disconnection_; - disconnection_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::location::nearby::mediums::DisconnectionFrame* temp = _impl_.disconnection_; + _impl_.disconnection_ = nullptr; return temp; } -inline ::location::nearby::mediums::DisconnectionFrame* SocketControlFrame::_internal_mutable_disconnection() { - _has_bits_[0] |= 0x00000002u; - if (disconnection_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::DisconnectionFrame>(GetArenaForAllocation()); - disconnection_ = p; +inline ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NONNULL SocketControlFrame::_internal_mutable_disconnection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.disconnection_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::DisconnectionFrame>(GetArena()); + _impl_.disconnection_ = reinterpret_cast<::location::nearby::mediums::DisconnectionFrame*>(p); } - return disconnection_; + return _impl_.disconnection_; } -inline ::location::nearby::mediums::DisconnectionFrame* SocketControlFrame::mutable_disconnection() { +inline ::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NONNULL SocketControlFrame::mutable_disconnection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::location::nearby::mediums::DisconnectionFrame* _msg = _internal_mutable_disconnection(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.SocketControlFrame.disconnection) return _msg; } -inline void SocketControlFrame::set_allocated_disconnection(::location::nearby::mediums::DisconnectionFrame* disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SocketControlFrame::set_allocated_disconnection(::location::nearby::mediums::DisconnectionFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete disconnection_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.disconnection_); } - if (disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::DisconnectionFrame>::GetOwningArena(disconnection); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - disconnection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, disconnection, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - disconnection_ = disconnection; + + _impl_.disconnection_ = reinterpret_cast<::location::nearby::mediums::DisconnectionFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.SocketControlFrame.disconnection) } // optional .location.nearby.mediums.PacketAcknowledgementFrame packet_acknowledgement = 4; -inline bool SocketControlFrame::_internal_has_packet_acknowledgement() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || packet_acknowledgement_ != nullptr); +inline bool SocketControlFrame::has_packet_acknowledgement() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.packet_acknowledgement_ != nullptr); return value; } -inline bool SocketControlFrame::has_packet_acknowledgement() const { - return _internal_has_packet_acknowledgement(); -} inline void SocketControlFrame::clear_packet_acknowledgement() { - if (packet_acknowledgement_ != nullptr) packet_acknowledgement_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.packet_acknowledgement_ != nullptr) _impl_.packet_acknowledgement_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::location::nearby::mediums::PacketAcknowledgementFrame& SocketControlFrame::_internal_packet_acknowledgement() const { - const ::location::nearby::mediums::PacketAcknowledgementFrame* p = packet_acknowledgement_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_PacketAcknowledgementFrame_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::PacketAcknowledgementFrame* p = _impl_.packet_acknowledgement_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_PacketAcknowledgementFrame_default_instance_); } -inline const ::location::nearby::mediums::PacketAcknowledgementFrame& SocketControlFrame::packet_acknowledgement() const { +inline const ::location::nearby::mediums::PacketAcknowledgementFrame& SocketControlFrame::packet_acknowledgement() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.SocketControlFrame.packet_acknowledgement) return _internal_packet_acknowledgement(); } inline void SocketControlFrame::unsafe_arena_set_allocated_packet_acknowledgement( - ::location::nearby::mediums::PacketAcknowledgementFrame* packet_acknowledgement) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(packet_acknowledgement_); + ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.packet_acknowledgement_); } - packet_acknowledgement_ = packet_acknowledgement; - if (packet_acknowledgement) { - _has_bits_[0] |= 0x00000004u; + _impl_.packet_acknowledgement_ = reinterpret_cast<::location::nearby::mediums::PacketAcknowledgementFrame*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.SocketControlFrame.packet_acknowledgement) } -inline ::location::nearby::mediums::PacketAcknowledgementFrame* SocketControlFrame::release_packet_acknowledgement() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::mediums::PacketAcknowledgementFrame* temp = packet_acknowledgement_; - packet_acknowledgement_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE SocketControlFrame::release_packet_acknowledgement() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::mediums::PacketAcknowledgementFrame* released = _impl_.packet_acknowledgement_; + _impl_.packet_acknowledgement_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::PacketAcknowledgementFrame* SocketControlFrame::unsafe_arena_release_packet_acknowledgement() { +inline ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE SocketControlFrame::unsafe_arena_release_packet_acknowledgement() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.SocketControlFrame.packet_acknowledgement) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::mediums::PacketAcknowledgementFrame* temp = packet_acknowledgement_; - packet_acknowledgement_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::location::nearby::mediums::PacketAcknowledgementFrame* temp = _impl_.packet_acknowledgement_; + _impl_.packet_acknowledgement_ = nullptr; return temp; } -inline ::location::nearby::mediums::PacketAcknowledgementFrame* SocketControlFrame::_internal_mutable_packet_acknowledgement() { - _has_bits_[0] |= 0x00000004u; - if (packet_acknowledgement_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::PacketAcknowledgementFrame>(GetArenaForAllocation()); - packet_acknowledgement_ = p; +inline ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NONNULL SocketControlFrame::_internal_mutable_packet_acknowledgement() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.packet_acknowledgement_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::PacketAcknowledgementFrame>(GetArena()); + _impl_.packet_acknowledgement_ = reinterpret_cast<::location::nearby::mediums::PacketAcknowledgementFrame*>(p); } - return packet_acknowledgement_; + return _impl_.packet_acknowledgement_; } -inline ::location::nearby::mediums::PacketAcknowledgementFrame* SocketControlFrame::mutable_packet_acknowledgement() { +inline ::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NONNULL SocketControlFrame::mutable_packet_acknowledgement() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::mediums::PacketAcknowledgementFrame* _msg = _internal_mutable_packet_acknowledgement(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.SocketControlFrame.packet_acknowledgement) return _msg; } -inline void SocketControlFrame::set_allocated_packet_acknowledgement(::location::nearby::mediums::PacketAcknowledgementFrame* packet_acknowledgement) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SocketControlFrame::set_allocated_packet_acknowledgement(::location::nearby::mediums::PacketAcknowledgementFrame* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete packet_acknowledgement_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.packet_acknowledgement_); } - if (packet_acknowledgement) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::PacketAcknowledgementFrame>::GetOwningArena(packet_acknowledgement); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - packet_acknowledgement = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, packet_acknowledgement, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - packet_acknowledgement_ = packet_acknowledgement; + + _impl_.packet_acknowledgement_ = reinterpret_cast<::location::nearby::mediums::PacketAcknowledgementFrame*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.SocketControlFrame.packet_acknowledgement) } @@ -1158,169 +1338,172 @@ inline void SocketControlFrame::set_allocated_packet_acknowledgement(::location: // IntroductionFrame // optional bytes service_id_hash = 1; -inline bool IntroductionFrame::_internal_has_service_id_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool IntroductionFrame::has_service_id_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool IntroductionFrame::has_service_id_hash() const { - return _internal_has_service_id_hash(); -} inline void IntroductionFrame::clear_service_id_hash() { - service_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& IntroductionFrame::service_id_hash() const { +inline const ::std::string& IntroductionFrame::service_id_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.IntroductionFrame.service_id_hash) return _internal_service_id_hash(); } -template -inline PROTOBUF_ALWAYS_INLINE -void IntroductionFrame::set_service_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void IntroductionFrame::set_service_id_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.IntroductionFrame.service_id_hash) } -inline std::string* IntroductionFrame::mutable_service_id_hash() { - std::string* _s = _internal_mutable_service_id_hash(); +inline ::std::string* PROTOBUF_NONNULL IntroductionFrame::mutable_service_id_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id_hash(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.IntroductionFrame.service_id_hash) return _s; } -inline const std::string& IntroductionFrame::_internal_service_id_hash() const { - return service_id_hash_.Get(); +inline const ::std::string& IntroductionFrame::_internal_service_id_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_hash_.Get(); } -inline void IntroductionFrame::_internal_set_service_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void IntroductionFrame::_internal_set_service_id_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.Set(value, GetArena()); } -inline std::string* IntroductionFrame::_internal_mutable_service_id_hash() { - _has_bits_[0] |= 0x00000001u; - return service_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL IntroductionFrame::_internal_mutable_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_hash_.Mutable( GetArena()); } -inline std::string* IntroductionFrame::release_service_id_hash() { +inline ::std::string* PROTOBUF_NULLABLE IntroductionFrame::release_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.IntroductionFrame.service_id_hash) - if (!_internal_has_service_id_hash()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void IntroductionFrame::set_allocated_service_id_hash(std::string* service_id_hash) { - if (service_id_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void IntroductionFrame::set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_hash_.IsDefault()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.IntroductionFrame.service_id_hash) } // optional .location.nearby.mediums.SocketVersion socket_version = 2; -inline bool IntroductionFrame::_internal_has_socket_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool IntroductionFrame::has_socket_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool IntroductionFrame::has_socket_version() const { - return _internal_has_socket_version(); -} inline void IntroductionFrame::clear_socket_version() { - socket_version_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::mediums::SocketVersion IntroductionFrame::_internal_socket_version() const { - return static_cast< ::location::nearby::mediums::SocketVersion >(socket_version_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.socket_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::mediums::SocketVersion IntroductionFrame::socket_version() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.IntroductionFrame.socket_version) return _internal_socket_version(); } -inline void IntroductionFrame::_internal_set_socket_version(::location::nearby::mediums::SocketVersion value) { - assert(::location::nearby::mediums::SocketVersion_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - socket_version_ = value; -} inline void IntroductionFrame::set_socket_version(::location::nearby::mediums::SocketVersion value) { _internal_set_socket_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.mediums.IntroductionFrame.socket_version) } +inline ::location::nearby::mediums::SocketVersion IntroductionFrame::_internal_socket_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::SocketVersion>(_impl_.socket_version_); +} +inline void IntroductionFrame::_internal_set_socket_version(::location::nearby::mediums::SocketVersion value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::SocketVersion_internal_data_)); + _impl_.socket_version_ = value; +} // optional string service_id_hash_salt = 3; -inline bool IntroductionFrame::_internal_has_service_id_hash_salt() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool IntroductionFrame::has_service_id_hash_salt() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool IntroductionFrame::has_service_id_hash_salt() const { - return _internal_has_service_id_hash_salt(); -} inline void IntroductionFrame::clear_service_id_hash_salt() { - service_id_hash_salt_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_salt_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& IntroductionFrame::service_id_hash_salt() const { +inline const ::std::string& IntroductionFrame::service_id_hash_salt() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.IntroductionFrame.service_id_hash_salt) return _internal_service_id_hash_salt(); } -template -inline PROTOBUF_ALWAYS_INLINE -void IntroductionFrame::set_service_id_hash_salt(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void IntroductionFrame::set_service_id_hash_salt(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.service_id_hash_salt_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.IntroductionFrame.service_id_hash_salt) } -inline std::string* IntroductionFrame::mutable_service_id_hash_salt() { - std::string* _s = _internal_mutable_service_id_hash_salt(); +inline ::std::string* PROTOBUF_NONNULL IntroductionFrame::mutable_service_id_hash_salt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_service_id_hash_salt(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.IntroductionFrame.service_id_hash_salt) return _s; } -inline const std::string& IntroductionFrame::_internal_service_id_hash_salt() const { - return service_id_hash_salt_.Get(); +inline const ::std::string& IntroductionFrame::_internal_service_id_hash_salt() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_hash_salt_.Get(); } -inline void IntroductionFrame::_internal_set_service_id_hash_salt(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void IntroductionFrame::_internal_set_service_id_hash_salt(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_salt_.Set(value, GetArena()); } -inline std::string* IntroductionFrame::_internal_mutable_service_id_hash_salt() { - _has_bits_[0] |= 0x00000002u; - return service_id_hash_salt_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL IntroductionFrame::_internal_mutable_service_id_hash_salt() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_hash_salt_.Mutable( GetArena()); } -inline std::string* IntroductionFrame::release_service_id_hash_salt() { +inline ::std::string* PROTOBUF_NULLABLE IntroductionFrame::release_service_id_hash_salt() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.IntroductionFrame.service_id_hash_salt) - if (!_internal_has_service_id_hash_salt()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = service_id_hash_salt_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_salt_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.service_id_hash_salt_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_hash_salt_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void IntroductionFrame::set_allocated_service_id_hash_salt(std::string* service_id_hash_salt) { - if (service_id_hash_salt != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void IntroductionFrame::set_allocated_service_id_hash_salt(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - service_id_hash_salt_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id_hash_salt, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_salt_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_hash_salt_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_hash_salt_.IsDefault()) { + _impl_.service_id_hash_salt_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.IntroductionFrame.service_id_hash_salt) } @@ -1329,71 +1512,71 @@ inline void IntroductionFrame::set_allocated_service_id_hash_salt(std::string* s // DisconnectionFrame // optional bytes service_id_hash = 1; -inline bool DisconnectionFrame::_internal_has_service_id_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool DisconnectionFrame::has_service_id_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool DisconnectionFrame::has_service_id_hash() const { - return _internal_has_service_id_hash(); -} inline void DisconnectionFrame::clear_service_id_hash() { - service_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& DisconnectionFrame::service_id_hash() const { +inline const ::std::string& DisconnectionFrame::service_id_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.DisconnectionFrame.service_id_hash) return _internal_service_id_hash(); } -template -inline PROTOBUF_ALWAYS_INLINE -void DisconnectionFrame::set_service_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void DisconnectionFrame::set_service_id_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.DisconnectionFrame.service_id_hash) } -inline std::string* DisconnectionFrame::mutable_service_id_hash() { - std::string* _s = _internal_mutable_service_id_hash(); +inline ::std::string* PROTOBUF_NONNULL DisconnectionFrame::mutable_service_id_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id_hash(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.DisconnectionFrame.service_id_hash) return _s; } -inline const std::string& DisconnectionFrame::_internal_service_id_hash() const { - return service_id_hash_.Get(); +inline const ::std::string& DisconnectionFrame::_internal_service_id_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_hash_.Get(); } -inline void DisconnectionFrame::_internal_set_service_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void DisconnectionFrame::_internal_set_service_id_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.Set(value, GetArena()); } -inline std::string* DisconnectionFrame::_internal_mutable_service_id_hash() { - _has_bits_[0] |= 0x00000001u; - return service_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL DisconnectionFrame::_internal_mutable_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_hash_.Mutable( GetArena()); } -inline std::string* DisconnectionFrame::release_service_id_hash() { +inline ::std::string* PROTOBUF_NULLABLE DisconnectionFrame::release_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.DisconnectionFrame.service_id_hash) - if (!_internal_has_service_id_hash()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void DisconnectionFrame::set_allocated_service_id_hash(std::string* service_id_hash) { - if (service_id_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void DisconnectionFrame::set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_hash_.IsDefault()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.DisconnectionFrame.service_id_hash) } @@ -1402,126 +1585,126 @@ inline void DisconnectionFrame::set_allocated_service_id_hash(std::string* servi // PacketAcknowledgementFrame // optional bytes service_id_hash = 1; -inline bool PacketAcknowledgementFrame::_internal_has_service_id_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PacketAcknowledgementFrame::has_service_id_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PacketAcknowledgementFrame::has_service_id_hash() const { - return _internal_has_service_id_hash(); -} inline void PacketAcknowledgementFrame::clear_service_id_hash() { - service_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& PacketAcknowledgementFrame::service_id_hash() const { +inline const ::std::string& PacketAcknowledgementFrame::service_id_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.PacketAcknowledgementFrame.service_id_hash) return _internal_service_id_hash(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PacketAcknowledgementFrame::set_service_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PacketAcknowledgementFrame::set_service_id_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.PacketAcknowledgementFrame.service_id_hash) } -inline std::string* PacketAcknowledgementFrame::mutable_service_id_hash() { - std::string* _s = _internal_mutable_service_id_hash(); +inline ::std::string* PROTOBUF_NONNULL PacketAcknowledgementFrame::mutable_service_id_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id_hash(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.PacketAcknowledgementFrame.service_id_hash) return _s; } -inline const std::string& PacketAcknowledgementFrame::_internal_service_id_hash() const { - return service_id_hash_.Get(); +inline const ::std::string& PacketAcknowledgementFrame::_internal_service_id_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_hash_.Get(); } -inline void PacketAcknowledgementFrame::_internal_set_service_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PacketAcknowledgementFrame::_internal_set_service_id_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_.Set(value, GetArena()); } -inline std::string* PacketAcknowledgementFrame::_internal_mutable_service_id_hash() { - _has_bits_[0] |= 0x00000001u; - return service_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PacketAcknowledgementFrame::_internal_mutable_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_hash_.Mutable( GetArena()); } -inline std::string* PacketAcknowledgementFrame::release_service_id_hash() { +inline ::std::string* PROTOBUF_NULLABLE PacketAcknowledgementFrame::release_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.PacketAcknowledgementFrame.service_id_hash) - if (!_internal_has_service_id_hash()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PacketAcknowledgementFrame::set_allocated_service_id_hash(std::string* service_id_hash) { - if (service_id_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PacketAcknowledgementFrame::set_allocated_service_id_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_hash_.IsDefault()) { + _impl_.service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.PacketAcknowledgementFrame.service_id_hash) } // optional int32 received_size = 2; -inline bool PacketAcknowledgementFrame::_internal_has_received_size() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool PacketAcknowledgementFrame::has_received_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool PacketAcknowledgementFrame::has_received_size() const { - return _internal_has_received_size(); -} inline void PacketAcknowledgementFrame::clear_received_size() { - received_size_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t PacketAcknowledgementFrame::_internal_received_size() const { - return received_size_; -} -inline int32_t PacketAcknowledgementFrame::received_size() const { +inline ::int32_t PacketAcknowledgementFrame::received_size() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.PacketAcknowledgementFrame.received_size) return _internal_received_size(); } -inline void PacketAcknowledgementFrame::_internal_set_received_size(int32_t value) { - _has_bits_[0] |= 0x00000002u; - received_size_ = value; -} -inline void PacketAcknowledgementFrame::set_received_size(int32_t value) { +inline void PacketAcknowledgementFrame::set_received_size(::int32_t value) { _internal_set_received_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.mediums.PacketAcknowledgementFrame.received_size) } +inline ::int32_t PacketAcknowledgementFrame::_internal_received_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.received_size_; +} +inline void PacketAcknowledgementFrame::_internal_set_received_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_size_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::mediums::SocketControlFrame_ControlFrameType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::mediums::SocketVersion> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::mediums::SocketControlFrame_ControlFrameType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::mediums::SocketVersion> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fble_5fframes_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fmediums_2fble_5fframes_2eproto_2epb_2eh diff --git a/compiled_proto/proto/mediums/multiplex_frames.pb.cc b/compiled_proto/proto/mediums/multiplex_frames.pb.cc index aa39ff0b..74995044 100644 --- a/compiled_proto/proto/mediums/multiplex_frames.pb.cc +++ b/compiled_proto/proto/mediums/multiplex_frames.pb.cc @@ -1,450 +1,497 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/multiplex_frames.proto +// Protobuf C++ Version: 6.33.3 #include "proto/mediums/multiplex_frames.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace location { namespace nearby { namespace mediums { -constexpr MultiplexFrame::MultiplexFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : header_(nullptr) - , frame_type_(0) - , _oneof_case_{}{} -struct MultiplexFrameDefaultTypeInternal { - constexpr MultiplexFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MultiplexFrameDefaultTypeInternal() {} - union { - MultiplexFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MultiplexFrameDefaultTypeInternal _MultiplexFrame_default_instance_; -constexpr MultiplexFrameHeader::MultiplexFrameHeader( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : salted_service_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_id_hash_salt_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +inline constexpr MultiplexFrameHeader::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + salted_service_id_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + service_id_hash_salt_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR MultiplexFrameHeader::MultiplexFrameHeader(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MultiplexFrameHeader_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MultiplexFrameHeaderDefaultTypeInternal { - constexpr MultiplexFrameHeaderDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MultiplexFrameHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexFrameHeaderDefaultTypeInternal() {} union { MultiplexFrameHeader _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MultiplexFrameHeaderDefaultTypeInternal _MultiplexFrameHeader_default_instance_; -constexpr MultiplexControlFrame::MultiplexControlFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : control_frame_type_(0) - , _oneof_case_{}{} -struct MultiplexControlFrameDefaultTypeInternal { - constexpr MultiplexControlFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MultiplexControlFrameDefaultTypeInternal() {} - union { - MultiplexControlFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MultiplexControlFrameDefaultTypeInternal _MultiplexControlFrame_default_instance_; -constexpr ConnectionRequestFrame::ConnectionRequestFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct ConnectionRequestFrameDefaultTypeInternal { - constexpr ConnectionRequestFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionRequestFrameDefaultTypeInternal() {} - union { - ConnectionRequestFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; -constexpr ConnectionResponseFrame::ConnectionResponseFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connection_response_code_(0) -{} -struct ConnectionResponseFrameDefaultTypeInternal { - constexpr ConnectionResponseFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionResponseFrameDefaultTypeInternal() {} - union { - ConnectionResponseFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; -constexpr DisconnectFrame::DisconnectFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct DisconnectFrameDefaultTypeInternal { - constexpr DisconnectFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DisconnectFrameDefaultTypeInternal() {} - union { - DisconnectFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DisconnectFrameDefaultTypeInternal _DisconnectFrame_default_instance_; -constexpr MultiplexDataFrame::MultiplexDataFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexFrameHeaderDefaultTypeInternal _MultiplexFrameHeader_default_instance_; + +inline constexpr MultiplexDataFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR MultiplexDataFrame::MultiplexDataFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MultiplexDataFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MultiplexDataFrameDefaultTypeInternal { - constexpr MultiplexDataFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MultiplexDataFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MultiplexDataFrameDefaultTypeInternal() {} union { MultiplexDataFrame _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MultiplexDataFrameDefaultTypeInternal _MultiplexDataFrame_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexDataFrameDefaultTypeInternal _MultiplexDataFrame_default_instance_; + +inline constexpr DisconnectFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR DisconnectFrame::DisconnectFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DisconnectFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DisconnectFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisconnectFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DisconnectFrameDefaultTypeInternal() {} + union { + DisconnectFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisconnectFrameDefaultTypeInternal _DisconnectFrame_default_instance_; + +inline constexpr ConnectionResponseFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + connection_response_code_{static_cast< ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode >(0)} {} + +template +PROTOBUF_CONSTEXPR ConnectionResponseFrame::ConnectionResponseFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ConnectionResponseFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ConnectionResponseFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConnectionResponseFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConnectionResponseFrameDefaultTypeInternal() {} + union { + ConnectionResponseFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; + +inline constexpr ConnectionRequestFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR ConnectionRequestFrame::ConnectionRequestFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ConnectionRequestFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ConnectionRequestFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConnectionRequestFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConnectionRequestFrameDefaultTypeInternal() {} + union { + ConnectionRequestFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; + +inline constexpr MultiplexControlFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + control_frame_type_{static_cast< ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType >(0)}, + Frame_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR MultiplexControlFrame::MultiplexControlFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MultiplexControlFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MultiplexControlFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR MultiplexControlFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MultiplexControlFrameDefaultTypeInternal() {} + union { + MultiplexControlFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexControlFrameDefaultTypeInternal _MultiplexControlFrame_default_instance_; + +inline constexpr MultiplexFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_{nullptr}, + frame_type_{static_cast< ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType >(0)}, + Frame_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR MultiplexFrame::MultiplexFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MultiplexFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MultiplexFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR MultiplexFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MultiplexFrameDefaultTypeInternal() {} + union { + MultiplexFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultiplexFrameDefaultTypeInternal _MultiplexFrame_default_instance_; } // namespace mediums } // namespace nearby } // namespace location namespace location { namespace nearby { namespace mediums { -bool MultiplexFrame_MultiplexFrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t MultiplexFrame_MultiplexFrameType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + MultiplexFrame_MultiplexFrameType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed MultiplexFrame_MultiplexFrameType_strings[3] = {}; +static const char MultiplexFrame_MultiplexFrameType_names[] = { + "CONTROL_FRAME" + "DATA_FRAME" + "UNKNOWN_FRAME_TYPE" +}; -static const char MultiplexFrame_MultiplexFrameType_names[] = - "CONTROL_FRAME" - "DATA_FRAME" - "UNKNOWN_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry MultiplexFrame_MultiplexFrameType_entries[] = { - { {MultiplexFrame_MultiplexFrameType_names + 0, 13}, 1 }, - { {MultiplexFrame_MultiplexFrameType_names + 13, 10}, 2 }, - { {MultiplexFrame_MultiplexFrameType_names + 23, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry MultiplexFrame_MultiplexFrameType_entries[] = { + {{&MultiplexFrame_MultiplexFrameType_names[0], 13}, 1}, + {{&MultiplexFrame_MultiplexFrameType_names[13], 10}, 2}, + {{&MultiplexFrame_MultiplexFrameType_names[23], 18}, 0}, }; static const int MultiplexFrame_MultiplexFrameType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_FRAME_TYPE - 0, // 1 -> CONTROL_FRAME - 1, // 2 -> DATA_FRAME + 2, // 0 -> UNKNOWN_FRAME_TYPE + 0, // 1 -> CONTROL_FRAME + 1, // 2 -> DATA_FRAME }; -const std::string& MultiplexFrame_MultiplexFrameType_Name( - MultiplexFrame_MultiplexFrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - MultiplexFrame_MultiplexFrameType_entries, - MultiplexFrame_MultiplexFrameType_entries_by_number, - 3, MultiplexFrame_MultiplexFrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - MultiplexFrame_MultiplexFrameType_entries, - MultiplexFrame_MultiplexFrameType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - MultiplexFrame_MultiplexFrameType_strings[idx].get(); +const ::std::string& MultiplexFrame_MultiplexFrameType_Name(MultiplexFrame_MultiplexFrameType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + MultiplexFrame_MultiplexFrameType_entries, MultiplexFrame_MultiplexFrameType_entries_by_number, 3, + MultiplexFrame_MultiplexFrameType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(MultiplexFrame_MultiplexFrameType_entries, + MultiplexFrame_MultiplexFrameType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MultiplexFrame_MultiplexFrameType_strings[idx].get(); } -bool MultiplexFrame_MultiplexFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MultiplexFrame_MultiplexFrameType* value) { + +bool MultiplexFrame_MultiplexFrameType_Parse(::absl::string_view name, MultiplexFrame_MultiplexFrameType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( MultiplexFrame_MultiplexFrameType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame::UNKNOWN_FRAME_TYPE; -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame::CONTROL_FRAME; -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame::DATA_FRAME; -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame::MultiplexFrameType_MIN; -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame::MultiplexFrameType_MAX; -constexpr int MultiplexFrame::MultiplexFrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool MultiplexControlFrame_MultiplexControlFrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t MultiplexControlFrame_MultiplexControlFrameType_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + MultiplexControlFrame_MultiplexControlFrameType_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed MultiplexControlFrame_MultiplexControlFrameType_strings[4] = {}; +static const char MultiplexControlFrame_MultiplexControlFrameType_names[] = { + "CONNECTION_REQUEST" + "CONNECTION_RESPONSE" + "DISCONNECTION" + "UNKNOWN_CONTROL_FRAME_TYPE" +}; -static const char MultiplexControlFrame_MultiplexControlFrameType_names[] = - "CONNECTION_REQUEST" - "CONNECTION_RESPONSE" - "DISCONNECTION" - "UNKNOWN_CONTROL_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry MultiplexControlFrame_MultiplexControlFrameType_entries[] = { - { {MultiplexControlFrame_MultiplexControlFrameType_names + 0, 18}, 1 }, - { {MultiplexControlFrame_MultiplexControlFrameType_names + 18, 19}, 2 }, - { {MultiplexControlFrame_MultiplexControlFrameType_names + 37, 13}, 3 }, - { {MultiplexControlFrame_MultiplexControlFrameType_names + 50, 26}, 0 }, +static const ::google::protobuf::internal::EnumEntry MultiplexControlFrame_MultiplexControlFrameType_entries[] = { + {{&MultiplexControlFrame_MultiplexControlFrameType_names[0], 18}, 1}, + {{&MultiplexControlFrame_MultiplexControlFrameType_names[18], 19}, 2}, + {{&MultiplexControlFrame_MultiplexControlFrameType_names[37], 13}, 3}, + {{&MultiplexControlFrame_MultiplexControlFrameType_names[50], 26}, 0}, }; static const int MultiplexControlFrame_MultiplexControlFrameType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE - 0, // 1 -> CONNECTION_REQUEST - 1, // 2 -> CONNECTION_RESPONSE - 2, // 3 -> DISCONNECTION + 3, // 0 -> UNKNOWN_CONTROL_FRAME_TYPE + 0, // 1 -> CONNECTION_REQUEST + 1, // 2 -> CONNECTION_RESPONSE + 2, // 3 -> DISCONNECTION }; -const std::string& MultiplexControlFrame_MultiplexControlFrameType_Name( - MultiplexControlFrame_MultiplexControlFrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - MultiplexControlFrame_MultiplexControlFrameType_entries, - MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, - 4, MultiplexControlFrame_MultiplexControlFrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - MultiplexControlFrame_MultiplexControlFrameType_entries, - MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - MultiplexControlFrame_MultiplexControlFrameType_strings[idx].get(); +const ::std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(MultiplexControlFrame_MultiplexControlFrameType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + MultiplexControlFrame_MultiplexControlFrameType_entries, MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, 4, + MultiplexControlFrame_MultiplexControlFrameType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(MultiplexControlFrame_MultiplexControlFrameType_entries, + MultiplexControlFrame_MultiplexControlFrameType_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MultiplexControlFrame_MultiplexControlFrameType_strings[idx].get(); } -bool MultiplexControlFrame_MultiplexControlFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MultiplexControlFrame_MultiplexControlFrameType* value) { + +bool MultiplexControlFrame_MultiplexControlFrameType_Parse(::absl::string_view name, MultiplexControlFrame_MultiplexControlFrameType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( MultiplexControlFrame_MultiplexControlFrameType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::UNKNOWN_CONTROL_FRAME_TYPE; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::CONNECTION_REQUEST; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::CONNECTION_RESPONSE; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::DISCONNECTION; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::MultiplexControlFrameType_MIN; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::MultiplexControlFrameType_MAX; -constexpr int MultiplexControlFrame::MultiplexControlFrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionResponseFrame_ConnectionResponseCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionResponseFrame_ConnectionResponseCode_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionResponseFrame_ConnectionResponseCode_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionResponseFrame_ConnectionResponseCode_strings[3] = {}; +static const char ConnectionResponseFrame_ConnectionResponseCode_names[] = { + "CONNECTION_ACCEPTED" + "NOT_LISTENING" + "UNKNOWN_RESPONSE_CODE" +}; -static const char ConnectionResponseFrame_ConnectionResponseCode_names[] = - "CONNECTION_ACCEPTED" - "NOT_LISTENING" - "UNKNOWN_RESPONSE_CODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionResponseFrame_ConnectionResponseCode_entries[] = { - { {ConnectionResponseFrame_ConnectionResponseCode_names + 0, 19}, 1 }, - { {ConnectionResponseFrame_ConnectionResponseCode_names + 19, 13}, 2 }, - { {ConnectionResponseFrame_ConnectionResponseCode_names + 32, 21}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConnectionResponseFrame_ConnectionResponseCode_entries[] = { + {{&ConnectionResponseFrame_ConnectionResponseCode_names[0], 19}, 1}, + {{&ConnectionResponseFrame_ConnectionResponseCode_names[19], 13}, 2}, + {{&ConnectionResponseFrame_ConnectionResponseCode_names[32], 21}, 0}, }; static const int ConnectionResponseFrame_ConnectionResponseCode_entries_by_number[] = { - 2, // 0 -> UNKNOWN_RESPONSE_CODE - 0, // 1 -> CONNECTION_ACCEPTED - 1, // 2 -> NOT_LISTENING + 2, // 0 -> UNKNOWN_RESPONSE_CODE + 0, // 1 -> CONNECTION_ACCEPTED + 1, // 2 -> NOT_LISTENING }; -const std::string& ConnectionResponseFrame_ConnectionResponseCode_Name( - ConnectionResponseFrame_ConnectionResponseCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionResponseFrame_ConnectionResponseCode_entries, - ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, - 3, ConnectionResponseFrame_ConnectionResponseCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionResponseFrame_ConnectionResponseCode_entries, - ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionResponseFrame_ConnectionResponseCode_strings[idx].get(); +const ::std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(ConnectionResponseFrame_ConnectionResponseCode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionResponseFrame_ConnectionResponseCode_entries, ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, 3, + ConnectionResponseFrame_ConnectionResponseCode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionResponseFrame_ConnectionResponseCode_entries, + ConnectionResponseFrame_ConnectionResponseCode_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionResponseFrame_ConnectionResponseCode_strings[idx].get(); } -bool ConnectionResponseFrame_ConnectionResponseCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ConnectionResponseCode* value) { + +bool ConnectionResponseFrame_ConnectionResponseCode_Parse(::absl::string_view name, ConnectionResponseFrame_ConnectionResponseCode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionResponseFrame_ConnectionResponseCode_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::UNKNOWN_RESPONSE_CODE; -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::CONNECTION_ACCEPTED; -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::NOT_LISTENING; -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::ConnectionResponseCode_MIN; -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::ConnectionResponseCode_MAX; -constexpr int ConnectionResponseFrame::ConnectionResponseCode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - // =================================================================== class MultiplexFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::location::nearby::mediums::MultiplexFrameHeader& header(const MultiplexFrame* msg); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_frame_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::mediums::MultiplexControlFrame& control_frame(const MultiplexFrame* msg); - static const ::location::nearby::mediums::MultiplexDataFrame& data_frame(const MultiplexFrame* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::MultiplexFrame, _impl_._oneof_case_); }; -const ::location::nearby::mediums::MultiplexFrameHeader& -MultiplexFrame::_Internal::header(const MultiplexFrame* msg) { - return *msg->header_; -} -const ::location::nearby::mediums::MultiplexControlFrame& -MultiplexFrame::_Internal::control_frame(const MultiplexFrame* msg) { - return *msg->Frame_.control_frame_; -} -const ::location::nearby::mediums::MultiplexDataFrame& -MultiplexFrame::_Internal::data_frame(const MultiplexFrame* msg) { - return *msg->Frame_.data_frame_; -} -void MultiplexFrame::set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* control_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void MultiplexFrame::set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE control_frame) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (control_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::MultiplexControlFrame>::GetOwningArena(control_frame); + ::google::protobuf::Arena* submessage_arena = control_frame->GetArena(); if (message_arena != submessage_arena) { - control_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, control_frame, submessage_arena); + control_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, control_frame, submessage_arena); } set_has_control_frame(); - Frame_.control_frame_ = control_frame; + _impl_.Frame_.control_frame_ = control_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrame.control_frame) } -void MultiplexFrame::set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* data_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void MultiplexFrame::set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE data_frame) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (data_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::MultiplexDataFrame>::GetOwningArena(data_frame); + ::google::protobuf::Arena* submessage_arena = data_frame->GetArena(); if (message_arena != submessage_arena) { - data_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, data_frame, submessage_arena); + data_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, data_frame, submessage_arena); } set_has_data_frame(); - Frame_.data_frame_ = data_frame; + _impl_.Frame_.data_frame_ = data_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrame.data_frame) } -MultiplexFrame::MultiplexFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MultiplexFrame::MultiplexFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexFrame) } -MultiplexFrame::MultiplexFrame(const MultiplexFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_header()) { - header_ = new ::location::nearby::mediums::MultiplexFrameHeader(*from.header_); - } else { - header_ = nullptr; - } - frame_type_ = from.frame_type_; - clear_has_Frame(); - switch (from.Frame_case()) { - case kControlFrame: { - _internal_mutable_control_frame()->::location::nearby::mediums::MultiplexControlFrame::MergeFrom(from._internal_control_frame()); +PROTOBUF_NDEBUG_INLINE MultiplexFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::MultiplexFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + Frame_{}, + _oneof_case_{from._oneof_case_[0]} {} + +MultiplexFrame::MultiplexFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MultiplexFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MultiplexFrame* 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_.header_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + _impl_.frame_type_ = from._impl_.frame_type_; + switch (Frame_case()) { + case FRAME_NOT_SET: break; - } - case kDataFrame: { - _internal_mutable_data_frame()->::location::nearby::mediums::MultiplexDataFrame::MergeFrom(from._internal_data_frame()); - break; - } - case FRAME_NOT_SET: { - break; - } + case kControlFrame: + _impl_.Frame_.control_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.control_frame_); + break; + case kDataFrame: + _impl_.Frame_.data_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.data_frame_); + break; } + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexFrame) } +PROTOBUF_NDEBUG_INLINE MultiplexFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + Frame_{}, + _oneof_case_{} {} -inline void MultiplexFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&header_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&frame_type_) - - reinterpret_cast(&header_)) + sizeof(frame_type_)); -clear_has_Frame(); +inline void MultiplexFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, header_), + 0, + offsetof(Impl_, frame_type_) - + offsetof(Impl_, header_) + + sizeof(Impl_::frame_type_)); } - MultiplexFrame::~MultiplexFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void MultiplexFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete header_; - if (has_Frame()) { - clear_Frame(); +inline void MultiplexFrame::SharedDtor(MessageLite& self) { + MultiplexFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void MultiplexFrame::ArenaDtor(void* object) { - MultiplexFrame* _this = reinterpret_cast< MultiplexFrame* >(object); - (void)_this; -} -void MultiplexFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MultiplexFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.header_; + if (this_.has_Frame()) { + this_.clear_Frame(); + } + this_._impl_.~Impl_(); } void MultiplexFrame::clear_Frame() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.MultiplexFrame) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (Frame_case()) { case kControlFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.control_frame_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.control_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.control_frame_ != nullptr) { + _impl_.Frame_.control_frame_->Clear(); + } } break; } case kDataFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.data_frame_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.data_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.data_frame_ != nullptr) { + _impl_.Frame_.data_frame_->Clear(); + } } break; } @@ -452,678 +499,760 @@ void MultiplexFrame::clear_Frame() { break; } } - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } -void MultiplexFrame::Clear() { +inline void* PROTOBUF_NONNULL MultiplexFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MultiplexFrame(arena); +} +constexpr auto MultiplexFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MultiplexFrame), + alignof(MultiplexFrame)); +} +constexpr auto MultiplexFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<39>{ + { + &_MultiplexFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MultiplexFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MultiplexFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexFrame::ByteSizeLong, + &MultiplexFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.MultiplexFrame", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<39> MultiplexFrame_class_data_ = + MultiplexFrame::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MultiplexFrame::GetClassData() const { + return MultiplexFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 4, 4, 0, 2> +MultiplexFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_._has_bits_), + 0, // no _extensions_ + 4, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + MultiplexFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_)}}, + // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; + {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; + {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_), _Internal::kHasBitsOffset + 1, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; + {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.Frame_.control_frame_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; + {PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.Frame_.data_frame_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrameHeader>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexControlFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexDataFrame>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void MultiplexFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(header_ != nullptr); - header_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); } - frame_type_ = 0; + _impl_.frame_type_ = 0; clear_Frame(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MultiplexFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType_IsValid(val))) { - _internal_set_frame_type(static_cast<::location::nearby::mediums::MultiplexFrame_MultiplexFrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_control_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_data_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MultiplexFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MultiplexFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MultiplexFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MultiplexFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MultiplexFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::header(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); } // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_frame_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_frame_type(), target); } - switch (Frame_case()) { + switch (this_.Frame_case()) { case kControlFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::control_frame(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.Frame_.control_frame_, this_._impl_.Frame_.control_frame_->GetCachedSize(), target, + stream); break; } case kDataFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::data_frame(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.Frame_.data_frame_, this_._impl_.Frame_.data_frame_->GetCachedSize(), target, + stream); break; } - default: ; + default: + break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexFrame) return target; } -size_t MultiplexFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MultiplexFrame::ByteSizeLong(const MessageLite& base) { + const MultiplexFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MultiplexFrame::ByteSizeLong() const { + const MultiplexFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); } - // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_frame_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_frame_type()); } - } - switch (Frame_case()) { + switch (this_.Frame_case()) { // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; case kControlFrame: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.control_frame_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.control_frame_); break; } // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; case kDataFrame: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.data_frame_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.data_frame_); break; } case FRAME_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MultiplexFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MultiplexFrame::MergeFrom(const MultiplexFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_header()->::location::nearby::mediums::MultiplexFrameHeader::MergeFrom(from._internal_header()); - } - if (cached_has_bits & 0x00000002u) { - frame_type_ = from.frame_type_; - } - _has_bits_[0] |= cached_has_bits; +void MultiplexFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - switch (from.Frame_case()) { - case kControlFrame: { - _internal_mutable_control_frame()->::location::nearby::mediums::MultiplexControlFrame::MergeFrom(from._internal_control_frame()); - break; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } } - case kDataFrame: { - _internal_mutable_data_frame()->::location::nearby::mediums::MultiplexDataFrame::MergeFrom(from._internal_data_frame()); - break; - } - case FRAME_NOT_SET: { - break; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.frame_type_ = from._impl_.frame_type_; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_Frame(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kControlFrame: { + if (oneof_needs_init) { + _this->_impl_.Frame_.control_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.control_frame_); + } else { + _this->_impl_.Frame_.control_frame_->MergeFrom(*from._impl_.Frame_.control_frame_); + } + break; + } + case kDataFrame: { + if (oneof_needs_init) { + _this->_impl_.Frame_.data_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.data_frame_); + } else { + _this->_impl_.Frame_.data_frame_->MergeFrom(*from._impl_.Frame_.data_frame_); + } + break; + } + case FRAME_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MultiplexFrame::CopyFrom(const MultiplexFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool MultiplexFrame::IsInitialized() const { - return true; -} -void MultiplexFrame::InternalSwap(MultiplexFrame* other) { - using std::swap; +void MultiplexFrame::InternalSwap(MultiplexFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MultiplexFrame, frame_type_) - + sizeof(MultiplexFrame::frame_type_) - - PROTOBUF_FIELD_OFFSET(MultiplexFrame, header_)>( - reinterpret_cast(&header_), - reinterpret_cast(&other->header_)); - swap(Frame_, other->Frame_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.frame_type_) + + sizeof(MultiplexFrame::_impl_.frame_type_) + - PROTOBUF_FIELD_OFFSET(MultiplexFrame, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); + swap(_impl_.Frame_, other->_impl_.Frame_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string MultiplexFrame::GetTypeName() const { - return "location.nearby.mediums.MultiplexFrame"; -} - - // =================================================================== class MultiplexFrameHeader::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_salted_service_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_service_id_hash_salt(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._has_bits_); }; -MultiplexFrameHeader::MultiplexFrameHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MultiplexFrameHeader::MultiplexFrameHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexFrameHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexFrameHeader) } -MultiplexFrameHeader::MultiplexFrameHeader(const MultiplexFrameHeader& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - salted_service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - salted_service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_salted_service_id_hash()) { - salted_service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_salted_service_id_hash(), - GetArenaForAllocation()); - } - service_id_hash_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id_hash_salt()) { - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id_hash_salt(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE MultiplexFrameHeader::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::MultiplexFrameHeader& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + salted_service_id_hash_(arena, from.salted_service_id_hash_), + service_id_hash_salt_(arena, from.service_id_hash_salt_) {} + +MultiplexFrameHeader::MultiplexFrameHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MultiplexFrameHeader& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexFrameHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MultiplexFrameHeader* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexFrameHeader) } +PROTOBUF_NDEBUG_INLINE MultiplexFrameHeader::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + salted_service_id_hash_(arena), + service_id_hash_salt_(arena) {} -inline void MultiplexFrameHeader::SharedCtor() { -salted_service_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - salted_service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_id_hash_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void MultiplexFrameHeader::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - MultiplexFrameHeader::~MultiplexFrameHeader() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexFrameHeader) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void MultiplexFrameHeader::SharedDtor(MessageLite& self) { + MultiplexFrameHeader& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.salted_service_id_hash_.Destroy(); + this_._impl_.service_id_hash_salt_.Destroy(); + this_._impl_.~Impl_(); } -inline void MultiplexFrameHeader::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - salted_service_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_id_hash_salt_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL MultiplexFrameHeader::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MultiplexFrameHeader(arena); +} +constexpr auto MultiplexFrameHeader::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MultiplexFrameHeader), + alignof(MultiplexFrameHeader)); +} +constexpr auto MultiplexFrameHeader::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<45>{ + { + &_MultiplexFrameHeader_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MultiplexFrameHeader::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MultiplexFrameHeader::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexFrameHeader::ByteSizeLong, + &MultiplexFrameHeader::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.MultiplexFrameHeader", + }; } -void MultiplexFrameHeader::ArenaDtor(void* object) { - MultiplexFrameHeader* _this = reinterpret_cast< MultiplexFrameHeader* >(object); - (void)_this; -} -void MultiplexFrameHeader::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MultiplexFrameHeader::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<45> MultiplexFrameHeader_class_data_ = + MultiplexFrameHeader::InternalGenerateClassData_(); -void MultiplexFrameHeader::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MultiplexFrameHeader::GetClassData() const { + return MultiplexFrameHeader_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +MultiplexFrameHeader::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + MultiplexFrameHeader_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexFrameHeader>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string service_id_hash_salt = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.service_id_hash_salt_)}}, + // optional bytes salted_service_id_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.salted_service_id_hash_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes salted_service_id_hash = 1; + {PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.salted_service_id_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string service_id_hash_salt = 2; + {PROTOBUF_FIELD_OFFSET(MultiplexFrameHeader, _impl_.service_id_hash_salt_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void MultiplexFrameHeader::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexFrameHeader) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - salted_service_id_hash_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.salted_service_id_hash_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - service_id_hash_salt_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.service_id_hash_salt_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MultiplexFrameHeader::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes salted_service_id_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_salted_service_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string service_id_hash_salt = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_service_id_hash_salt(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MultiplexFrameHeader::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MultiplexFrameHeader::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MultiplexFrameHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MultiplexFrameHeader::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MultiplexFrameHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexFrameHeader) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes salted_service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_salted_service_id_hash(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_salted_service_id_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional string service_id_hash_salt = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_service_id_hash_salt(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_service_id_hash_salt(); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexFrameHeader) return target; } -size_t MultiplexFrameHeader::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrameHeader) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MultiplexFrameHeader::ByteSizeLong(const MessageLite& base) { + const MultiplexFrameHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MultiplexFrameHeader::ByteSizeLong() const { + const MultiplexFrameHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexFrameHeader) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes salted_service_id_hash = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_salted_service_id_hash()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_salted_service_id_hash()); } - // optional string service_id_hash_salt = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id_hash_salt()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_id_hash_salt()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MultiplexFrameHeader::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void MultiplexFrameHeader::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrameHeader) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void MultiplexFrameHeader::MergeFrom(const MultiplexFrameHeader& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexFrameHeader) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_salted_service_id_hash(from._internal_salted_service_id_hash()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_salted_service_id_hash(from._internal_salted_service_id_hash()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_service_id_hash_salt(from._internal_service_id_hash_salt()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_service_id_hash_salt(from._internal_service_id_hash_salt()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MultiplexFrameHeader::CopyFrom(const MultiplexFrameHeader& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrameHeader) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexFrameHeader) if (&from == this) return; Clear(); MergeFrom(from); } -bool MultiplexFrameHeader::IsInitialized() const { - return true; -} -void MultiplexFrameHeader::InternalSwap(MultiplexFrameHeader* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void MultiplexFrameHeader::InternalSwap(MultiplexFrameHeader* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &salted_service_id_hash_, lhs_arena, - &other->salted_service_id_hash_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_hash_salt_, lhs_arena, - &other->service_id_hash_salt_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.salted_service_id_hash_, &other->_impl_.salted_service_id_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_hash_salt_, &other->_impl_.service_id_hash_salt_, arena); } -std::string MultiplexFrameHeader::GetTypeName() const { - return "location.nearby.mediums.MultiplexFrameHeader"; -} - - // =================================================================== class MultiplexControlFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_control_frame_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::mediums::ConnectionRequestFrame& connection_request_frame(const MultiplexControlFrame* msg); - static const ::location::nearby::mediums::ConnectionResponseFrame& connection_response_frame(const MultiplexControlFrame* msg); - static const ::location::nearby::mediums::DisconnectFrame& disconnect_frame(const MultiplexControlFrame* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::MultiplexControlFrame, _impl_._oneof_case_); }; -const ::location::nearby::mediums::ConnectionRequestFrame& -MultiplexControlFrame::_Internal::connection_request_frame(const MultiplexControlFrame* msg) { - return *msg->Frame_.connection_request_frame_; -} -const ::location::nearby::mediums::ConnectionResponseFrame& -MultiplexControlFrame::_Internal::connection_response_frame(const MultiplexControlFrame* msg) { - return *msg->Frame_.connection_response_frame_; -} -const ::location::nearby::mediums::DisconnectFrame& -MultiplexControlFrame::_Internal::disconnect_frame(const MultiplexControlFrame* msg) { - return *msg->Frame_.disconnect_frame_; -} -void MultiplexControlFrame::set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* connection_request_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void MultiplexControlFrame::set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE connection_request_frame) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (connection_request_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::ConnectionRequestFrame>::GetOwningArena(connection_request_frame); + ::google::protobuf::Arena* submessage_arena = connection_request_frame->GetArena(); if (message_arena != submessage_arena) { - connection_request_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_request_frame, submessage_arena); + connection_request_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, connection_request_frame, submessage_arena); } set_has_connection_request_frame(); - Frame_.connection_request_frame_ = connection_request_frame; + _impl_.Frame_.connection_request_frame_ = connection_request_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) } -void MultiplexControlFrame::set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* connection_response_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void MultiplexControlFrame::set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE connection_response_frame) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (connection_response_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::ConnectionResponseFrame>::GetOwningArena(connection_response_frame); + ::google::protobuf::Arena* submessage_arena = connection_response_frame->GetArena(); if (message_arena != submessage_arena) { - connection_response_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_response_frame, submessage_arena); + connection_response_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, connection_response_frame, submessage_arena); } set_has_connection_response_frame(); - Frame_.connection_response_frame_ = connection_response_frame; + _impl_.Frame_.connection_response_frame_ = connection_response_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) } -void MultiplexControlFrame::set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* disconnect_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void MultiplexControlFrame::set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE disconnect_frame) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (disconnect_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::DisconnectFrame>::GetOwningArena(disconnect_frame); + ::google::protobuf::Arena* submessage_arena = disconnect_frame->GetArena(); if (message_arena != submessage_arena) { - disconnect_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, disconnect_frame, submessage_arena); + disconnect_frame = ::google::protobuf::internal::GetOwnedMessage(message_arena, disconnect_frame, submessage_arena); } set_has_disconnect_frame(); - Frame_.disconnect_frame_ = disconnect_frame; + _impl_.Frame_.disconnect_frame_ = disconnect_frame; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) } -MultiplexControlFrame::MultiplexControlFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MultiplexControlFrame::MultiplexControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexControlFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexControlFrame) } -MultiplexControlFrame::MultiplexControlFrame(const MultiplexControlFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - control_frame_type_ = from.control_frame_type_; - clear_has_Frame(); - switch (from.Frame_case()) { - case kConnectionRequestFrame: { - _internal_mutable_connection_request_frame()->::location::nearby::mediums::ConnectionRequestFrame::MergeFrom(from._internal_connection_request_frame()); +PROTOBUF_NDEBUG_INLINE MultiplexControlFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::MultiplexControlFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + Frame_{}, + _oneof_case_{from._oneof_case_[0]} {} + +MultiplexControlFrame::MultiplexControlFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MultiplexControlFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexControlFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MultiplexControlFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.control_frame_type_ = from._impl_.control_frame_type_; + switch (Frame_case()) { + case FRAME_NOT_SET: break; - } - case kConnectionResponseFrame: { - _internal_mutable_connection_response_frame()->::location::nearby::mediums::ConnectionResponseFrame::MergeFrom(from._internal_connection_response_frame()); - break; - } - case kDisconnectFrame: { - _internal_mutable_disconnect_frame()->::location::nearby::mediums::DisconnectFrame::MergeFrom(from._internal_disconnect_frame()); - break; - } - case FRAME_NOT_SET: { - break; - } + case kConnectionRequestFrame: + _impl_.Frame_.connection_request_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_request_frame_); + break; + case kConnectionResponseFrame: + _impl_.Frame_.connection_response_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_response_frame_); + break; + case kDisconnectFrame: + _impl_.Frame_.disconnect_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.disconnect_frame_); + break; } + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexControlFrame) } +PROTOBUF_NDEBUG_INLINE MultiplexControlFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + Frame_{}, + _oneof_case_{} {} -inline void MultiplexControlFrame::SharedCtor() { -control_frame_type_ = 0; -clear_has_Frame(); +inline void MultiplexControlFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.control_frame_type_ = {}; } - MultiplexControlFrame::~MultiplexControlFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexControlFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void MultiplexControlFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (has_Frame()) { - clear_Frame(); +inline void MultiplexControlFrame::SharedDtor(MessageLite& self) { + MultiplexControlFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void MultiplexControlFrame::ArenaDtor(void* object) { - MultiplexControlFrame* _this = reinterpret_cast< MultiplexControlFrame* >(object); - (void)_this; -} -void MultiplexControlFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MultiplexControlFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_Frame()) { + this_.clear_Frame(); + } + this_._impl_.~Impl_(); } void MultiplexControlFrame::clear_Frame() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.MultiplexControlFrame) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (Frame_case()) { case kConnectionRequestFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.connection_request_frame_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.connection_request_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.connection_request_frame_ != nullptr) { + _impl_.Frame_.connection_request_frame_->Clear(); + } } break; } case kConnectionResponseFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.connection_response_frame_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.connection_response_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.connection_response_frame_ != nullptr) { + _impl_.Frame_.connection_response_frame_->Clear(); + } } break; } case kDisconnectFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.disconnect_frame_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.disconnect_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.disconnect_frame_ != nullptr) { + _impl_.Frame_.disconnect_frame_->Clear(); + } } break; } @@ -1131,962 +1260,1205 @@ void MultiplexControlFrame::clear_Frame() { break; } } - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } -void MultiplexControlFrame::Clear() { +inline void* PROTOBUF_NONNULL MultiplexControlFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MultiplexControlFrame(arena); +} +constexpr auto MultiplexControlFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MultiplexControlFrame), + alignof(MultiplexControlFrame)); +} +constexpr auto MultiplexControlFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<46>{ + { + &_MultiplexControlFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MultiplexControlFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MultiplexControlFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexControlFrame::ByteSizeLong, + &MultiplexControlFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.MultiplexControlFrame", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<46> MultiplexControlFrame_class_data_ = + MultiplexControlFrame::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MultiplexControlFrame::GetClassData() const { + return MultiplexControlFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 4, 4, 0, 2> +MultiplexControlFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_._has_bits_), + 0, // no _extensions_ + 4, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + MultiplexControlFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexControlFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 3, + PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.control_frame_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; + {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.control_frame_type_), _Internal::kHasBitsOffset + 0, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; + {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.connection_request_frame_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; + {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.connection_response_frame_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; + {PROTOBUF_FIELD_OFFSET(MultiplexControlFrame, _impl_.Frame_.disconnect_frame_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionRequestFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionResponseFrame>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectFrame>()}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void MultiplexControlFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexControlFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - control_frame_type_ = 0; + _impl_.control_frame_type_ = 0; clear_Frame(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MultiplexControlFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType_IsValid(val))) { - _internal_set_control_frame_type(static_cast<::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_request_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_response_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_disconnect_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MultiplexControlFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MultiplexControlFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MultiplexControlFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MultiplexControlFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MultiplexControlFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexControlFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_control_frame_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_control_frame_type(), target); } - switch (Frame_case()) { + switch (this_.Frame_case()) { case kConnectionRequestFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::connection_request_frame(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.Frame_.connection_request_frame_, this_._impl_.Frame_.connection_request_frame_->GetCachedSize(), target, + stream); break; } case kConnectionResponseFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::connection_response_frame(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.Frame_.connection_response_frame_, this_._impl_.Frame_.connection_response_frame_->GetCachedSize(), target, + stream); break; } case kDisconnectFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::disconnect_frame(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.Frame_.disconnect_frame_, this_._impl_.Frame_.disconnect_frame_->GetCachedSize(), target, + stream); break; } - default: ; + default: + break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexControlFrame) return target; } -size_t MultiplexControlFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexControlFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MultiplexControlFrame::ByteSizeLong(const MessageLite& base) { + const MultiplexControlFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MultiplexControlFrame::ByteSizeLong() const { + const MultiplexControlFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexControlFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_control_frame_type()); + { + // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_control_frame_type()); + } } - - switch (Frame_case()) { + switch (this_.Frame_case()) { // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; case kConnectionRequestFrame: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.connection_request_frame_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.connection_request_frame_); break; } // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; case kConnectionResponseFrame: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.connection_response_frame_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.connection_response_frame_); break; } // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; case kDisconnectFrame: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.disconnect_frame_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.disconnect_frame_); break; } case FRAME_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MultiplexControlFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MultiplexControlFrame::MergeFrom(const MultiplexControlFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexControlFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_control_frame_type()) { - _internal_set_control_frame_type(from._internal_control_frame_type()); +void MultiplexControlFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - switch (from.Frame_case()) { - case kConnectionRequestFrame: { - _internal_mutable_connection_request_frame()->::location::nearby::mediums::ConnectionRequestFrame::MergeFrom(from._internal_connection_request_frame()); - break; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexControlFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.control_frame_type_ = from._impl_.control_frame_type_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_Frame(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case kConnectionResponseFrame: { - _internal_mutable_connection_response_frame()->::location::nearby::mediums::ConnectionResponseFrame::MergeFrom(from._internal_connection_response_frame()); - break; - } - case kDisconnectFrame: { - _internal_mutable_disconnect_frame()->::location::nearby::mediums::DisconnectFrame::MergeFrom(from._internal_disconnect_frame()); - break; - } - case FRAME_NOT_SET: { - break; + + switch (oneof_from_case) { + case kConnectionRequestFrame: { + if (oneof_needs_init) { + _this->_impl_.Frame_.connection_request_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_request_frame_); + } else { + _this->_impl_.Frame_.connection_request_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.connection_request_frame_); + } + break; + } + case kConnectionResponseFrame: { + if (oneof_needs_init) { + _this->_impl_.Frame_.connection_response_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.connection_response_frame_); + } else { + _this->_impl_.Frame_.connection_response_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.connection_response_frame_); + } + break; + } + case kDisconnectFrame: { + if (oneof_needs_init) { + _this->_impl_.Frame_.disconnect_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.disconnect_frame_); + } else { + _this->_impl_.Frame_.disconnect_frame_->CheckTypeAndMergeFrom(*from._impl_.Frame_.disconnect_frame_); + } + break; + } + case FRAME_NOT_SET: + break; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MultiplexControlFrame::CopyFrom(const MultiplexControlFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexControlFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexControlFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool MultiplexControlFrame::IsInitialized() const { - return true; -} -void MultiplexControlFrame::InternalSwap(MultiplexControlFrame* other) { - using std::swap; +void MultiplexControlFrame::InternalSwap(MultiplexControlFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(control_frame_type_, other->control_frame_type_); - swap(Frame_, other->Frame_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.control_frame_type_, other->_impl_.control_frame_type_); + swap(_impl_.Frame_, other->_impl_.Frame_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string MultiplexControlFrame::GetTypeName() const { - return "location.nearby.mediums.MultiplexControlFrame"; -} - - // =================================================================== class ConnectionRequestFrame::_Internal { public: }; -ConnectionRequestFrame::ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ConnectionRequestFrame::ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.ConnectionRequestFrame) } -ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.ConnectionRequestFrame) +ConnectionRequestFrame::ConnectionRequestFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionRequestFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionRequestFrame_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 ConnectionRequestFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void ConnectionRequestFrame::SharedCtor() { +inline void ConnectionRequestFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - ConnectionRequestFrame::~ConnectionRequestFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.ConnectionRequestFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionRequestFrame::SharedDtor(MessageLite& self) { + ConnectionRequestFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionRequestFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL ConnectionRequestFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConnectionRequestFrame(arena); +} +constexpr auto ConnectionRequestFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionRequestFrame), + alignof(ConnectionRequestFrame)); +} +constexpr auto ConnectionRequestFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<47>{ + { + &_ConnectionRequestFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConnectionRequestFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionRequestFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionRequestFrame::ByteSizeLong, + &ConnectionRequestFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.ConnectionRequestFrame", + }; } -void ConnectionRequestFrame::ArenaDtor(void* object) { - ConnectionRequestFrame* _this = reinterpret_cast< ConnectionRequestFrame* >(object); - (void)_this; -} -void ConnectionRequestFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionRequestFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<47> ConnectionRequestFrame_class_data_ = + ConnectionRequestFrame::InternalGenerateClassData_(); -void ConnectionRequestFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConnectionRequestFrame::GetClassData() const { + return ConnectionRequestFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +ConnectionRequestFrame::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ConnectionRequestFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionRequestFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ConnectionRequestFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionRequestFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConnectionRequestFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConnectionRequestFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConnectionRequestFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ConnectionRequestFrame) return target; } -size_t ConnectionRequestFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionRequestFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionRequestFrame::ByteSizeLong(const MessageLite& base) { + const ConnectionRequestFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ConnectionRequestFrame::ByteSizeLong() const { + const ConnectionRequestFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionRequestFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionRequestFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void ConnectionRequestFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionRequestFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ConnectionRequestFrame::MergeFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionRequestFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ConnectionRequestFrame::CopyFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionRequestFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionRequestFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionRequestFrame::IsInitialized() const { - return true; -} -void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* other) { - using std::swap; +void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string ConnectionRequestFrame::GetTypeName() const { - return "location.nearby.mediums.ConnectionRequestFrame"; -} - - // =================================================================== class ConnectionResponseFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_connection_response_code(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_); }; -ConnectionResponseFrame::ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ConnectionResponseFrame::ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.ConnectionResponseFrame) } -ConnectionResponseFrame::ConnectionResponseFrame(const ConnectionResponseFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - connection_response_code_ = from.connection_response_code_; - // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.ConnectionResponseFrame) +ConnectionResponseFrame::ConnectionResponseFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionResponseFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ConnectionResponseFrame_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 ConnectionResponseFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void ConnectionResponseFrame::SharedCtor() { -connection_response_code_ = 0; +inline void ConnectionResponseFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.connection_response_code_ = {}; } - ConnectionResponseFrame::~ConnectionResponseFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.ConnectionResponseFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ConnectionResponseFrame::SharedDtor(MessageLite& self) { + ConnectionResponseFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ConnectionResponseFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL ConnectionResponseFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConnectionResponseFrame(arena); +} +constexpr auto ConnectionResponseFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectionResponseFrame), + alignof(ConnectionResponseFrame)); +} +constexpr auto ConnectionResponseFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<48>{ + { + &_ConnectionResponseFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConnectionResponseFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConnectionResponseFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ConnectionResponseFrame::ByteSizeLong, + &ConnectionResponseFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.ConnectionResponseFrame", + }; } -void ConnectionResponseFrame::ArenaDtor(void* object) { - ConnectionResponseFrame* _this = reinterpret_cast< ConnectionResponseFrame* >(object); - (void)_this; -} -void ConnectionResponseFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionResponseFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<48> ConnectionResponseFrame_class_data_ = + ConnectionResponseFrame::InternalGenerateClassData_(); -void ConnectionResponseFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConnectionResponseFrame::GetClassData() const { + return ConnectionResponseFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +ConnectionResponseFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ConnectionResponseFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::ConnectionResponseFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 2, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.connection_response_code_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.connection_response_code_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - connection_response_code_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.connection_response_code_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ConnectionResponseFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode_IsValid(val))) { - _internal_set_connection_response_code(static_cast<::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionResponseFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConnectionResponseFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConnectionResponseFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConnectionResponseFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_connection_response_code(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_connection_response_code(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ConnectionResponseFrame) return target; } -size_t ConnectionResponseFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionResponseFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConnectionResponseFrame::ByteSizeLong(const MessageLite& base) { + const ConnectionResponseFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ConnectionResponseFrame::ByteSizeLong() const { + const ConnectionResponseFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ConnectionResponseFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_response_code()); + { + // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_response_code()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ConnectionResponseFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionResponseFrame::MergeFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionResponseFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_connection_response_code()) { - _internal_set_connection_response_code(from._internal_connection_response_code()); +void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ConnectionResponseFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.connection_response_code_ = from._impl_.connection_response_code_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ConnectionResponseFrame::CopyFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionResponseFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ConnectionResponseFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConnectionResponseFrame::IsInitialized() const { - return true; -} -void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* other) { - using std::swap; +void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(connection_response_code_, other->connection_response_code_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.connection_response_code_, other->_impl_.connection_response_code_); } -std::string ConnectionResponseFrame::GetTypeName() const { - return "location.nearby.mediums.ConnectionResponseFrame"; -} - - // =================================================================== class DisconnectFrame::_Internal { public: }; -DisconnectFrame::DisconnectFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DisconnectFrame::DisconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.DisconnectFrame) } -DisconnectFrame::DisconnectFrame(const DisconnectFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.DisconnectFrame) +DisconnectFrame::DisconnectFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DisconnectFrame_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 DisconnectFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void DisconnectFrame::SharedCtor() { +inline void DisconnectFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - DisconnectFrame::~DisconnectFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.DisconnectFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void DisconnectFrame::SharedDtor(MessageLite& self) { + DisconnectFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void DisconnectFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL DisconnectFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DisconnectFrame(arena); +} +constexpr auto DisconnectFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DisconnectFrame), + alignof(DisconnectFrame)); +} +constexpr auto DisconnectFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<40>{ + { + &_DisconnectFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisconnectFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisconnectFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DisconnectFrame::ByteSizeLong, + &DisconnectFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisconnectFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.DisconnectFrame", + }; } -void DisconnectFrame::ArenaDtor(void* object) { - DisconnectFrame* _this = reinterpret_cast< DisconnectFrame* >(object); - (void)_this; -} -void DisconnectFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DisconnectFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<40> DisconnectFrame_class_data_ = + DisconnectFrame::InternalGenerateClassData_(); -void DisconnectFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DisconnectFrame::GetClassData() const { + return DisconnectFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +DisconnectFrame::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DisconnectFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::DisconnectFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DisconnectFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.DisconnectFrame) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* DisconnectFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DisconnectFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DisconnectFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DisconnectFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DisconnectFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DisconnectFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.DisconnectFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.DisconnectFrame) return target; } -size_t DisconnectFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DisconnectFrame::ByteSizeLong(const MessageLite& base) { + const DisconnectFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DisconnectFrame::ByteSizeLong() const { + const DisconnectFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.DisconnectFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DisconnectFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void DisconnectFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void DisconnectFrame::MergeFrom(const DisconnectFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.DisconnectFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DisconnectFrame::CopyFrom(const DisconnectFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.DisconnectFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool DisconnectFrame::IsInitialized() const { - return true; -} -void DisconnectFrame::InternalSwap(DisconnectFrame* other) { - using std::swap; +void DisconnectFrame::InternalSwap(DisconnectFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string DisconnectFrame::GetTypeName() const { - return "location.nearby.mediums.DisconnectFrame"; -} - - // =================================================================== class MultiplexDataFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._has_bits_); }; -MultiplexDataFrame::MultiplexDataFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MultiplexDataFrame::MultiplexDataFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexDataFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.MultiplexDataFrame) } -MultiplexDataFrame::MultiplexDataFrame(const MultiplexDataFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_data()) { - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE MultiplexDataFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::MultiplexDataFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + data_(arena, from.data_) {} + +MultiplexDataFrame::MultiplexDataFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MultiplexDataFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MultiplexDataFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MultiplexDataFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.MultiplexDataFrame) } +PROTOBUF_NDEBUG_INLINE MultiplexDataFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + data_(arena) {} -inline void MultiplexDataFrame::SharedCtor() { -data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void MultiplexDataFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - MultiplexDataFrame::~MultiplexDataFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.MultiplexDataFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void MultiplexDataFrame::SharedDtor(MessageLite& self) { + MultiplexDataFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.data_.Destroy(); + this_._impl_.~Impl_(); } -inline void MultiplexDataFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL MultiplexDataFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MultiplexDataFrame(arena); +} +constexpr auto MultiplexDataFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MultiplexDataFrame), + alignof(MultiplexDataFrame)); +} +constexpr auto MultiplexDataFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_MultiplexDataFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MultiplexDataFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MultiplexDataFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MultiplexDataFrame::ByteSizeLong, + &MultiplexDataFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.MultiplexDataFrame", + }; } -void MultiplexDataFrame::ArenaDtor(void* object) { - MultiplexDataFrame* _this = reinterpret_cast< MultiplexDataFrame* >(object); - (void)_this; -} -void MultiplexDataFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MultiplexDataFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> MultiplexDataFrame_class_data_ = + MultiplexDataFrame::InternalGenerateClassData_(); -void MultiplexDataFrame::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MultiplexDataFrame::GetClassData() const { + return MultiplexDataFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +MultiplexDataFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + MultiplexDataFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::MultiplexDataFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes data = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_.data_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes data = 1; + {PROTOBUF_FIELD_OFFSET(MultiplexDataFrame, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void MultiplexDataFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.MultiplexDataFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - data_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.data_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* MultiplexDataFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes data = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MultiplexDataFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MultiplexDataFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MultiplexDataFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MultiplexDataFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MultiplexDataFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.MultiplexDataFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes data = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_data(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_data(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.MultiplexDataFrame) return target; } -size_t MultiplexDataFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexDataFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MultiplexDataFrame::ByteSizeLong(const MessageLite& base) { + const MultiplexDataFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MultiplexDataFrame::ByteSizeLong() const { + const MultiplexDataFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.MultiplexDataFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional bytes data = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_data()); + { + // optional bytes data = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_data()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MultiplexDataFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MultiplexDataFrame::MergeFrom(const MultiplexDataFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexDataFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_data()) { - _internal_set_data(from._internal_data()); +void MultiplexDataFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.MultiplexDataFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_data(from._internal_data()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MultiplexDataFrame::CopyFrom(const MultiplexDataFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexDataFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.MultiplexDataFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool MultiplexDataFrame::IsInitialized() const { - return true; -} -void MultiplexDataFrame::InternalSwap(MultiplexDataFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void MultiplexDataFrame::InternalSwap(MultiplexDataFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &data_, lhs_arena, - &other->data_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); } -std::string MultiplexDataFrame::GetTypeName() const { - return "location.nearby.mediums.MultiplexDataFrame"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::MultiplexFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::MultiplexFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::MultiplexFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::MultiplexFrameHeader* Arena::CreateMaybeMessage< ::location::nearby::mediums::MultiplexFrameHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::MultiplexFrameHeader >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::MultiplexControlFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::MultiplexControlFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::MultiplexControlFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::ConnectionRequestFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::ConnectionRequestFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::ConnectionRequestFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::ConnectionResponseFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::ConnectionResponseFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::ConnectionResponseFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::DisconnectFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::DisconnectFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::DisconnectFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::MultiplexDataFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::MultiplexDataFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::MultiplexDataFrame >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/mediums/multiplex_frames.pb.h b/compiled_proto/proto/mediums/multiplex_frames.pb.h index ba90a48e..39e9623a 100644 --- a/compiled_proto/proto/mediums/multiplex_frames.pb.h +++ b/compiled_proto/proto/mediums/multiplex_frames.pb.h @@ -1,432 +1,217 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/multiplex_frames.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fmultiplex_5fframes_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fmultiplex_5fframes_2eproto +#ifndef proto_2fmediums_2fmultiplex_5fframes_2eproto_2epb_2eh +#define proto_2fmediums_2fmultiplex_5fframes_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fmediums_2fmultiplex_5fframes_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { namespace mediums { +enum ConnectionResponseFrame_ConnectionResponseCode : int; +extern const uint32_t ConnectionResponseFrame_ConnectionResponseCode_internal_data_[]; +enum MultiplexControlFrame_MultiplexControlFrameType : int; +extern const uint32_t MultiplexControlFrame_MultiplexControlFrameType_internal_data_[]; +enum MultiplexFrame_MultiplexFrameType : int; +extern const uint32_t MultiplexFrame_MultiplexFrameType_internal_data_[]; class ConnectionRequestFrame; struct ConnectionRequestFrameDefaultTypeInternal; extern ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<47> ConnectionRequestFrame_class_data_; class ConnectionResponseFrame; struct ConnectionResponseFrameDefaultTypeInternal; extern ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<48> ConnectionResponseFrame_class_data_; class DisconnectFrame; struct DisconnectFrameDefaultTypeInternal; extern DisconnectFrameDefaultTypeInternal _DisconnectFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<40> DisconnectFrame_class_data_; class MultiplexControlFrame; struct MultiplexControlFrameDefaultTypeInternal; extern MultiplexControlFrameDefaultTypeInternal _MultiplexControlFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<46> MultiplexControlFrame_class_data_; class MultiplexDataFrame; struct MultiplexDataFrameDefaultTypeInternal; extern MultiplexDataFrameDefaultTypeInternal _MultiplexDataFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> MultiplexDataFrame_class_data_; class MultiplexFrame; struct MultiplexFrameDefaultTypeInternal; extern MultiplexFrameDefaultTypeInternal _MultiplexFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<39> MultiplexFrame_class_data_; class MultiplexFrameHeader; struct MultiplexFrameHeaderDefaultTypeInternal; extern MultiplexFrameHeaderDefaultTypeInternal _MultiplexFrameHeader_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<45> MultiplexFrameHeader_class_data_; } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::mediums::ConnectionRequestFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::ConnectionRequestFrame>(Arena*); -template<> ::location::nearby::mediums::ConnectionResponseFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::ConnectionResponseFrame>(Arena*); -template<> ::location::nearby::mediums::DisconnectFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::DisconnectFrame>(Arena*); -template<> ::location::nearby::mediums::MultiplexControlFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::MultiplexControlFrame>(Arena*); -template<> ::location::nearby::mediums::MultiplexDataFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::MultiplexDataFrame>(Arena*); -template<> ::location::nearby::mediums::MultiplexFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::MultiplexFrame>(Arena*); -template<> ::location::nearby::mediums::MultiplexFrameHeader* Arena::CreateMaybeMessage<::location::nearby::mediums::MultiplexFrameHeader>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode>; +template <> +internal::EnumTraitsT<::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType>; +template <> +internal::EnumTraitsT<::location::nearby::mediums::MultiplexFrame_MultiplexFrameType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::MultiplexFrame_MultiplexFrameType>; +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace mediums { - enum MultiplexFrame_MultiplexFrameType : int { MultiplexFrame_MultiplexFrameType_UNKNOWN_FRAME_TYPE = 0, MultiplexFrame_MultiplexFrameType_CONTROL_FRAME = 1, - MultiplexFrame_MultiplexFrameType_DATA_FRAME = 2 + MultiplexFrame_MultiplexFrameType_DATA_FRAME = 2, }; -bool MultiplexFrame_MultiplexFrameType_IsValid(int value); -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MIN = MultiplexFrame_MultiplexFrameType_UNKNOWN_FRAME_TYPE; -constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MAX = MultiplexFrame_MultiplexFrameType_DATA_FRAME; -constexpr int MultiplexFrame_MultiplexFrameType_MultiplexFrameType_ARRAYSIZE = MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MAX + 1; -const std::string& MultiplexFrame_MultiplexFrameType_Name(MultiplexFrame_MultiplexFrameType value); -template -inline const std::string& MultiplexFrame_MultiplexFrameType_Name(T enum_t_value) { +extern const uint32_t MultiplexFrame_MultiplexFrameType_internal_data_[]; +inline constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MIN = + static_cast(0); +inline constexpr MultiplexFrame_MultiplexFrameType MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MAX = + static_cast(2); +inline bool MultiplexFrame_MultiplexFrameType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int MultiplexFrame_MultiplexFrameType_MultiplexFrameType_ARRAYSIZE = 2 + 1; +const ::std::string& MultiplexFrame_MultiplexFrameType_Name(MultiplexFrame_MultiplexFrameType value); +template +const ::std::string& MultiplexFrame_MultiplexFrameType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MultiplexFrame_MultiplexFrameType_Name."); - return MultiplexFrame_MultiplexFrameType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to MultiplexFrameType_Name()."); + return MultiplexFrame_MultiplexFrameType_Name(static_cast(value)); } bool MultiplexFrame_MultiplexFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MultiplexFrame_MultiplexFrameType* value); + ::absl::string_view name, MultiplexFrame_MultiplexFrameType* PROTOBUF_NONNULL value); enum MultiplexControlFrame_MultiplexControlFrameType : int { MultiplexControlFrame_MultiplexControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE = 0, MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_REQUEST = 1, MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_RESPONSE = 2, - MultiplexControlFrame_MultiplexControlFrameType_DISCONNECTION = 3 + MultiplexControlFrame_MultiplexControlFrameType_DISCONNECTION = 3, }; -bool MultiplexControlFrame_MultiplexControlFrameType_IsValid(int value); -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MIN = MultiplexControlFrame_MultiplexControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; -constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MAX = MultiplexControlFrame_MultiplexControlFrameType_DISCONNECTION; -constexpr int MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_ARRAYSIZE = MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MAX + 1; -const std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(MultiplexControlFrame_MultiplexControlFrameType value); -template -inline const std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(T enum_t_value) { +extern const uint32_t MultiplexControlFrame_MultiplexControlFrameType_internal_data_[]; +inline constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MIN = + static_cast(0); +inline constexpr MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MAX = + static_cast(3); +inline bool MultiplexControlFrame_MultiplexControlFrameType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_ARRAYSIZE = 3 + 1; +const ::std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(MultiplexControlFrame_MultiplexControlFrameType value); +template +const ::std::string& MultiplexControlFrame_MultiplexControlFrameType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MultiplexControlFrame_MultiplexControlFrameType_Name."); - return MultiplexControlFrame_MultiplexControlFrameType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to MultiplexControlFrameType_Name()."); + return MultiplexControlFrame_MultiplexControlFrameType_Name(static_cast(value)); } bool MultiplexControlFrame_MultiplexControlFrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MultiplexControlFrame_MultiplexControlFrameType* value); + ::absl::string_view name, MultiplexControlFrame_MultiplexControlFrameType* PROTOBUF_NONNULL value); enum ConnectionResponseFrame_ConnectionResponseCode : int { ConnectionResponseFrame_ConnectionResponseCode_UNKNOWN_RESPONSE_CODE = 0, ConnectionResponseFrame_ConnectionResponseCode_CONNECTION_ACCEPTED = 1, - ConnectionResponseFrame_ConnectionResponseCode_NOT_LISTENING = 2 + ConnectionResponseFrame_ConnectionResponseCode_NOT_LISTENING = 2, }; -bool ConnectionResponseFrame_ConnectionResponseCode_IsValid(int value); -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MIN = ConnectionResponseFrame_ConnectionResponseCode_UNKNOWN_RESPONSE_CODE; -constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MAX = ConnectionResponseFrame_ConnectionResponseCode_NOT_LISTENING; -constexpr int ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_ARRAYSIZE = ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MAX + 1; -const std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(ConnectionResponseFrame_ConnectionResponseCode value); -template -inline const std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(T enum_t_value) { +extern const uint32_t ConnectionResponseFrame_ConnectionResponseCode_internal_data_[]; +inline constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MIN = + static_cast(0); +inline constexpr ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MAX = + static_cast(2); +inline bool ConnectionResponseFrame_ConnectionResponseCode_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_ARRAYSIZE = 2 + 1; +const ::std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(ConnectionResponseFrame_ConnectionResponseCode value); +template +const ::std::string& ConnectionResponseFrame_ConnectionResponseCode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionResponseFrame_ConnectionResponseCode_Name."); - return ConnectionResponseFrame_ConnectionResponseCode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionResponseCode_Name()."); + return ConnectionResponseFrame_ConnectionResponseCode_Name(static_cast(value)); } bool ConnectionResponseFrame_ConnectionResponseCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ConnectionResponseCode* value); + ::absl::string_view name, ConnectionResponseFrame_ConnectionResponseCode* PROTOBUF_NONNULL value); + // =================================================================== -class MultiplexFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexFrame) */ { - public: - inline MultiplexFrame() : MultiplexFrame(nullptr) {} - ~MultiplexFrame() override; - explicit constexpr MultiplexFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MultiplexFrame(const MultiplexFrame& from); - MultiplexFrame(MultiplexFrame&& from) noexcept - : MultiplexFrame() { - *this = ::std::move(from); - } - - inline MultiplexFrame& operator=(const MultiplexFrame& from) { - CopyFrom(from); - return *this; - } - inline MultiplexFrame& operator=(MultiplexFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const MultiplexFrame& default_instance() { - return *internal_default_instance(); - } - enum FrameCase { - kControlFrame = 3, - kDataFrame = 4, - FRAME_NOT_SET = 0, - }; - - static inline const MultiplexFrame* internal_default_instance() { - return reinterpret_cast( - &_MultiplexFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(MultiplexFrame& a, MultiplexFrame& b) { - a.Swap(&b); - } - inline void Swap(MultiplexFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MultiplexFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MultiplexFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MultiplexFrame& from); - void MergeFrom(const MultiplexFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MultiplexFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.MultiplexFrame"; - } - protected: - explicit MultiplexFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef MultiplexFrame_MultiplexFrameType MultiplexFrameType; - static constexpr MultiplexFrameType UNKNOWN_FRAME_TYPE = - MultiplexFrame_MultiplexFrameType_UNKNOWN_FRAME_TYPE; - static constexpr MultiplexFrameType CONTROL_FRAME = - MultiplexFrame_MultiplexFrameType_CONTROL_FRAME; - static constexpr MultiplexFrameType DATA_FRAME = - MultiplexFrame_MultiplexFrameType_DATA_FRAME; - static inline bool MultiplexFrameType_IsValid(int value) { - return MultiplexFrame_MultiplexFrameType_IsValid(value); - } - static constexpr MultiplexFrameType MultiplexFrameType_MIN = - MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MIN; - static constexpr MultiplexFrameType MultiplexFrameType_MAX = - MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MAX; - static constexpr int MultiplexFrameType_ARRAYSIZE = - MultiplexFrame_MultiplexFrameType_MultiplexFrameType_ARRAYSIZE; - template - static inline const std::string& MultiplexFrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MultiplexFrameType_Name."); - return MultiplexFrame_MultiplexFrameType_Name(enum_t_value); - } - static inline bool MultiplexFrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - MultiplexFrameType* value) { - return MultiplexFrame_MultiplexFrameType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kHeaderFieldNumber = 1, - kFrameTypeFieldNumber = 2, - kControlFrameFieldNumber = 3, - kDataFrameFieldNumber = 4, - }; - // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; - bool has_header() const; - private: - bool _internal_has_header() const; - public: - void clear_header(); - const ::location::nearby::mediums::MultiplexFrameHeader& header() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::MultiplexFrameHeader* release_header(); - ::location::nearby::mediums::MultiplexFrameHeader* mutable_header(); - void set_allocated_header(::location::nearby::mediums::MultiplexFrameHeader* header); - private: - const ::location::nearby::mediums::MultiplexFrameHeader& _internal_header() const; - ::location::nearby::mediums::MultiplexFrameHeader* _internal_mutable_header(); - public: - void unsafe_arena_set_allocated_header( - ::location::nearby::mediums::MultiplexFrameHeader* header); - ::location::nearby::mediums::MultiplexFrameHeader* unsafe_arena_release_header(); - - // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; - bool has_frame_type() const; - private: - bool _internal_has_frame_type() const; - public: - void clear_frame_type(); - ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType frame_type() const; - void set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value); - private: - ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType _internal_frame_type() const; - void _internal_set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value); - public: - - // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; - bool has_control_frame() const; - private: - bool _internal_has_control_frame() const; - public: - void clear_control_frame(); - const ::location::nearby::mediums::MultiplexControlFrame& control_frame() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::MultiplexControlFrame* release_control_frame(); - ::location::nearby::mediums::MultiplexControlFrame* mutable_control_frame(); - void set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* control_frame); - private: - const ::location::nearby::mediums::MultiplexControlFrame& _internal_control_frame() const; - ::location::nearby::mediums::MultiplexControlFrame* _internal_mutable_control_frame(); - public: - void unsafe_arena_set_allocated_control_frame( - ::location::nearby::mediums::MultiplexControlFrame* control_frame); - ::location::nearby::mediums::MultiplexControlFrame* unsafe_arena_release_control_frame(); - - // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; - bool has_data_frame() const; - private: - bool _internal_has_data_frame() const; - public: - void clear_data_frame(); - const ::location::nearby::mediums::MultiplexDataFrame& data_frame() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::MultiplexDataFrame* release_data_frame(); - ::location::nearby::mediums::MultiplexDataFrame* mutable_data_frame(); - void set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* data_frame); - private: - const ::location::nearby::mediums::MultiplexDataFrame& _internal_data_frame() const; - ::location::nearby::mediums::MultiplexDataFrame* _internal_mutable_data_frame(); - public: - void unsafe_arena_set_allocated_data_frame( - ::location::nearby::mediums::MultiplexDataFrame* data_frame); - ::location::nearby::mediums::MultiplexDataFrame* unsafe_arena_release_data_frame(); - - void clear_Frame(); - FrameCase Frame_case() const; - // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexFrame) - private: - class _Internal; - void set_has_control_frame(); - void set_has_data_frame(); - - inline bool has_Frame() const; - inline void clear_has_Frame(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::mediums::MultiplexFrameHeader* header_; - int frame_type_; - union FrameUnion { - constexpr FrameUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::location::nearby::mediums::MultiplexControlFrame* control_frame_; - ::location::nearby::mediums::MultiplexDataFrame* data_frame_; - } Frame_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; -}; // ------------------------------------------------------------------- -class MultiplexFrameHeader final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexFrameHeader) */ { +class MultiplexFrameHeader final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexFrameHeader) */ { public: inline MultiplexFrameHeader() : MultiplexFrameHeader(nullptr) {} - ~MultiplexFrameHeader() override; - explicit constexpr MultiplexFrameHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MultiplexFrameHeader() PROTOBUF_FINAL; - MultiplexFrameHeader(const MultiplexFrameHeader& from); - MultiplexFrameHeader(MultiplexFrameHeader&& from) noexcept - : MultiplexFrameHeader() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MultiplexFrameHeader* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MultiplexFrameHeader)); } +#endif + template + explicit PROTOBUF_CONSTEXPR MultiplexFrameHeader(::google::protobuf::internal::ConstantInitialized); + + inline MultiplexFrameHeader(const MultiplexFrameHeader& from) : MultiplexFrameHeader(nullptr, from) {} + inline MultiplexFrameHeader(MultiplexFrameHeader&& from) noexcept + : MultiplexFrameHeader(nullptr, ::std::move(from)) {} inline MultiplexFrameHeader& operator=(const MultiplexFrameHeader& from) { CopyFrom(from); return *this; } inline MultiplexFrameHeader& operator=(MultiplexFrameHeader&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -434,166 +219,201 @@ class MultiplexFrameHeader final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const MultiplexFrameHeader& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_MultiplexFrameHeader_default_instance_); } - static inline const MultiplexFrameHeader* internal_default_instance() { - return reinterpret_cast( - &_MultiplexFrameHeader_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(MultiplexFrameHeader& a, MultiplexFrameHeader& b) { - a.Swap(&b); - } - inline void Swap(MultiplexFrameHeader* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(MultiplexFrameHeader& a, MultiplexFrameHeader& b) { a.Swap(&b); } + inline void Swap(MultiplexFrameHeader* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MultiplexFrameHeader* other) { + void UnsafeArenaSwap(MultiplexFrameHeader* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MultiplexFrameHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MultiplexFrameHeader* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MultiplexFrameHeader& from); - void MergeFrom(const MultiplexFrameHeader& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const MultiplexFrameHeader& from) { MultiplexFrameHeader::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MultiplexFrameHeader* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.MultiplexFrameHeader"; - } - protected: - explicit MultiplexFrameHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MultiplexFrameHeader* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.MultiplexFrameHeader"; } + + explicit MultiplexFrameHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MultiplexFrameHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexFrameHeader& from); + MultiplexFrameHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MultiplexFrameHeader&& from) noexcept + : MultiplexFrameHeader(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSaltedServiceIdHashFieldNumber = 1, kServiceIdHashSaltFieldNumber = 2, }; // optional bytes salted_service_id_hash = 1; bool has_salted_service_id_hash() const; - private: - bool _internal_has_salted_service_id_hash() const; - public: - void clear_salted_service_id_hash(); - const std::string& salted_service_id_hash() const; - template - void set_salted_service_id_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_salted_service_id_hash(); - PROTOBUF_NODISCARD std::string* release_salted_service_id_hash(); - void set_allocated_salted_service_id_hash(std::string* salted_service_id_hash); - private: - const std::string& _internal_salted_service_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_salted_service_id_hash(const std::string& value); - std::string* _internal_mutable_salted_service_id_hash(); - public: + void clear_salted_service_id_hash() ; + const ::std::string& salted_service_id_hash() const; + template + void set_salted_service_id_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_salted_service_id_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_salted_service_id_hash(); + void set_allocated_salted_service_id_hash(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_salted_service_id_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_salted_service_id_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_salted_service_id_hash(); + + public: // optional string service_id_hash_salt = 2; bool has_service_id_hash_salt() const; - private: - bool _internal_has_service_id_hash_salt() const; - public: - void clear_service_id_hash_salt(); - const std::string& service_id_hash_salt() const; - template - void set_service_id_hash_salt(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id_hash_salt(); - PROTOBUF_NODISCARD std::string* release_service_id_hash_salt(); - void set_allocated_service_id_hash_salt(std::string* service_id_hash_salt); - private: - const std::string& _internal_service_id_hash_salt() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash_salt(const std::string& value); - std::string* _internal_mutable_service_id_hash_salt(); - public: + void clear_service_id_hash_salt() ; + const ::std::string& service_id_hash_salt() const; + template + void set_service_id_hash_salt(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id_hash_salt(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id_hash_salt(); + void set_allocated_service_id_hash_salt(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_service_id_hash_salt() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id_hash_salt(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id_hash_salt(); + + public: // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexFrameHeader) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr salted_service_id_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_hash_salt_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MultiplexFrameHeader& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr salted_service_id_hash_; + ::google::protobuf::internal::ArenaStringPtr service_id_hash_salt_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<45> MultiplexFrameHeader_class_data_; // ------------------------------------------------------------------- -class MultiplexControlFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexControlFrame) */ { +class MultiplexDataFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexDataFrame) */ { public: - inline MultiplexControlFrame() : MultiplexControlFrame(nullptr) {} - ~MultiplexControlFrame() override; - explicit constexpr MultiplexControlFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MultiplexDataFrame() : MultiplexDataFrame(nullptr) {} + ~MultiplexDataFrame() PROTOBUF_FINAL; - MultiplexControlFrame(const MultiplexControlFrame& from); - MultiplexControlFrame(MultiplexControlFrame&& from) noexcept - : MultiplexControlFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MultiplexDataFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MultiplexDataFrame)); } +#endif - inline MultiplexControlFrame& operator=(const MultiplexControlFrame& from) { + template + explicit PROTOBUF_CONSTEXPR MultiplexDataFrame(::google::protobuf::internal::ConstantInitialized); + + inline MultiplexDataFrame(const MultiplexDataFrame& from) : MultiplexDataFrame(nullptr, from) {} + inline MultiplexDataFrame(MultiplexDataFrame&& from) noexcept + : MultiplexDataFrame(nullptr, ::std::move(from)) {} + inline MultiplexDataFrame& operator=(const MultiplexDataFrame& from) { CopyFrom(from); return *this; } - inline MultiplexControlFrame& operator=(MultiplexControlFrame&& from) noexcept { + inline MultiplexDataFrame& operator=(MultiplexDataFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -601,15 +421,725 @@ class MultiplexControlFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const MultiplexDataFrame& default_instance() { + return *reinterpret_cast( + &_MultiplexDataFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(MultiplexDataFrame& a, MultiplexDataFrame& b) { a.Swap(&b); } + inline void Swap(MultiplexDataFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MultiplexDataFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MultiplexDataFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const MultiplexDataFrame& from); + void MergeFrom(const MultiplexDataFrame& from) { MultiplexDataFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MultiplexDataFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.MultiplexDataFrame"; } + + explicit MultiplexDataFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MultiplexDataFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexDataFrame& from); + MultiplexDataFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MultiplexDataFrame&& from) noexcept + : MultiplexDataFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDataFieldNumber = 1, + }; + // optional bytes data = 1; + bool has_data() const; + void clear_data() ; + const ::std::string& data() const; + template + void set_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_data(); + void set_allocated_data(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_data(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexDataFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MultiplexDataFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> MultiplexDataFrame_class_data_; +// ------------------------------------------------------------------- + +class DisconnectFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.DisconnectFrame) */ { + public: + inline DisconnectFrame() : DisconnectFrame(nullptr) {} + ~DisconnectFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisconnectFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisconnectFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisconnectFrame(::google::protobuf::internal::ConstantInitialized); + + inline DisconnectFrame(const DisconnectFrame& from) : DisconnectFrame(nullptr, from) {} + inline DisconnectFrame(DisconnectFrame&& from) noexcept + : DisconnectFrame(nullptr, ::std::move(from)) {} + inline DisconnectFrame& operator=(const DisconnectFrame& from) { + CopyFrom(from); + return *this; + } + inline DisconnectFrame& operator=(DisconnectFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DisconnectFrame& default_instance() { + return *reinterpret_cast( + &_DisconnectFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(DisconnectFrame& a, DisconnectFrame& b) { a.Swap(&b); } + inline void Swap(DisconnectFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DisconnectFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisconnectFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DisconnectFrame& from); + void MergeFrom(const DisconnectFrame& from) { DisconnectFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DisconnectFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.DisconnectFrame"; } + + explicit DisconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DisconnectFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DisconnectFrame& from); + DisconnectFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DisconnectFrame&& from) noexcept + : DisconnectFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:location.nearby.mediums.DisconnectFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DisconnectFrame& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<40> DisconnectFrame_class_data_; +// ------------------------------------------------------------------- + +class ConnectionResponseFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.ConnectionResponseFrame) */ { + public: + inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {} + ~ConnectionResponseFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionResponseFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionResponseFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionResponseFrame(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionResponseFrame(const ConnectionResponseFrame& from) : ConnectionResponseFrame(nullptr, from) {} + inline ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept + : ConnectionResponseFrame(nullptr, ::std::move(from)) {} + inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) { + CopyFrom(from); + return *this; + } + inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionResponseFrame& default_instance() { + return *reinterpret_cast( + &_ConnectionResponseFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) { a.Swap(&b); } + inline void Swap(ConnectionResponseFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionResponseFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionResponseFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionResponseFrame& from); + void MergeFrom(const ConnectionResponseFrame& from) { ConnectionResponseFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionResponseFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.ConnectionResponseFrame"; } + + explicit ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionResponseFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionResponseFrame& from); + ConnectionResponseFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionResponseFrame&& from) noexcept + : ConnectionResponseFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using ConnectionResponseCode = ConnectionResponseFrame_ConnectionResponseCode; + static constexpr ConnectionResponseCode UNKNOWN_RESPONSE_CODE = ConnectionResponseFrame_ConnectionResponseCode_UNKNOWN_RESPONSE_CODE; + static constexpr ConnectionResponseCode CONNECTION_ACCEPTED = ConnectionResponseFrame_ConnectionResponseCode_CONNECTION_ACCEPTED; + static constexpr ConnectionResponseCode NOT_LISTENING = ConnectionResponseFrame_ConnectionResponseCode_NOT_LISTENING; + static inline bool ConnectionResponseCode_IsValid(int value) { + return ConnectionResponseFrame_ConnectionResponseCode_IsValid(value); + } + static constexpr ConnectionResponseCode ConnectionResponseCode_MIN = ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MIN; + static constexpr ConnectionResponseCode ConnectionResponseCode_MAX = ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MAX; + static constexpr int ConnectionResponseCode_ARRAYSIZE = ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_ARRAYSIZE; + template + static inline const ::std::string& ConnectionResponseCode_Name(T value) { + return ConnectionResponseFrame_ConnectionResponseCode_Name(value); + } + static inline bool ConnectionResponseCode_Parse( + ::absl::string_view name, ConnectionResponseCode* PROTOBUF_NONNULL value) { + return ConnectionResponseFrame_ConnectionResponseCode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kConnectionResponseCodeFieldNumber = 1, + }; + // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; + bool has_connection_response_code() const; + void clear_connection_response_code() ; + ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode connection_response_code() const; + void set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value); + + private: + ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode _internal_connection_response_code() const; + void _internal_set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.ConnectionResponseFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionResponseFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int connection_response_code_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<48> ConnectionResponseFrame_class_data_; +// ------------------------------------------------------------------- + +class ConnectionRequestFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.ConnectionRequestFrame) */ { + public: + inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {} + ~ConnectionRequestFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConnectionRequestFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConnectionRequestFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ConnectionRequestFrame(::google::protobuf::internal::ConstantInitialized); + + inline ConnectionRequestFrame(const ConnectionRequestFrame& from) : ConnectionRequestFrame(nullptr, from) {} + inline ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept + : ConnectionRequestFrame(nullptr, ::std::move(from)) {} + inline ConnectionRequestFrame& operator=(const ConnectionRequestFrame& from) { + CopyFrom(from); + return *this; + } + inline ConnectionRequestFrame& operator=(ConnectionRequestFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ConnectionRequestFrame& default_instance() { + return *reinterpret_cast( + &_ConnectionRequestFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) { a.Swap(&b); } + inline void Swap(ConnectionRequestFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConnectionRequestFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionRequestFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ConnectionRequestFrame& from); + void MergeFrom(const ConnectionRequestFrame& from) { ConnectionRequestFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConnectionRequestFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.ConnectionRequestFrame"; } + + explicit ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConnectionRequestFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectionRequestFrame& from); + ConnectionRequestFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConnectionRequestFrame&& from) noexcept + : ConnectionRequestFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:location.nearby.mediums.ConnectionRequestFrame) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConnectionRequestFrame& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<47> ConnectionRequestFrame_class_data_; +// ------------------------------------------------------------------- + +class MultiplexControlFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexControlFrame) */ { + public: + inline MultiplexControlFrame() : MultiplexControlFrame(nullptr) {} + ~MultiplexControlFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MultiplexControlFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MultiplexControlFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR MultiplexControlFrame(::google::protobuf::internal::ConstantInitialized); + + inline MultiplexControlFrame(const MultiplexControlFrame& from) : MultiplexControlFrame(nullptr, from) {} + inline MultiplexControlFrame(MultiplexControlFrame&& from) noexcept + : MultiplexControlFrame(nullptr, ::std::move(from)) {} + inline MultiplexControlFrame& operator=(const MultiplexControlFrame& from) { + CopyFrom(from); + return *this; + } + inline MultiplexControlFrame& operator=(MultiplexControlFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const MultiplexControlFrame& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_MultiplexControlFrame_default_instance_); } enum FrameCase { kConnectionRequestFrame = 2, @@ -617,108 +1147,108 @@ class MultiplexControlFrame final : kDisconnectFrame = 4, FRAME_NOT_SET = 0, }; - - static inline const MultiplexControlFrame* internal_default_instance() { - return reinterpret_cast( - &_MultiplexControlFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(MultiplexControlFrame& a, MultiplexControlFrame& b) { - a.Swap(&b); - } - inline void Swap(MultiplexControlFrame* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(MultiplexControlFrame& a, MultiplexControlFrame& b) { a.Swap(&b); } + inline void Swap(MultiplexControlFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MultiplexControlFrame* other) { + void UnsafeArenaSwap(MultiplexControlFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MultiplexControlFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MultiplexControlFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const MultiplexControlFrame& from); - void MergeFrom(const MultiplexControlFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const MultiplexControlFrame& from) { MultiplexControlFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MultiplexControlFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.MultiplexControlFrame"; - } - protected: - explicit MultiplexControlFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MultiplexControlFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.MultiplexControlFrame"; } + + explicit MultiplexControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MultiplexControlFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexControlFrame& from); + MultiplexControlFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MultiplexControlFrame&& from) noexcept + : MultiplexControlFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrameType; - static constexpr MultiplexControlFrameType UNKNOWN_CONTROL_FRAME_TYPE = - MultiplexControlFrame_MultiplexControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; - static constexpr MultiplexControlFrameType CONNECTION_REQUEST = - MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_REQUEST; - static constexpr MultiplexControlFrameType CONNECTION_RESPONSE = - MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_RESPONSE; - static constexpr MultiplexControlFrameType DISCONNECTION = - MultiplexControlFrame_MultiplexControlFrameType_DISCONNECTION; + using MultiplexControlFrameType = MultiplexControlFrame_MultiplexControlFrameType; + static constexpr MultiplexControlFrameType UNKNOWN_CONTROL_FRAME_TYPE = MultiplexControlFrame_MultiplexControlFrameType_UNKNOWN_CONTROL_FRAME_TYPE; + static constexpr MultiplexControlFrameType CONNECTION_REQUEST = MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_REQUEST; + static constexpr MultiplexControlFrameType CONNECTION_RESPONSE = MultiplexControlFrame_MultiplexControlFrameType_CONNECTION_RESPONSE; + static constexpr MultiplexControlFrameType DISCONNECTION = MultiplexControlFrame_MultiplexControlFrameType_DISCONNECTION; static inline bool MultiplexControlFrameType_IsValid(int value) { return MultiplexControlFrame_MultiplexControlFrameType_IsValid(value); } - static constexpr MultiplexControlFrameType MultiplexControlFrameType_MIN = - MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MIN; - static constexpr MultiplexControlFrameType MultiplexControlFrameType_MAX = - MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MAX; - static constexpr int MultiplexControlFrameType_ARRAYSIZE = - MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_ARRAYSIZE; - template - static inline const std::string& MultiplexControlFrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MultiplexControlFrameType_Name."); - return MultiplexControlFrame_MultiplexControlFrameType_Name(enum_t_value); + static constexpr MultiplexControlFrameType MultiplexControlFrameType_MIN = MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MIN; + static constexpr MultiplexControlFrameType MultiplexControlFrameType_MAX = MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_MAX; + static constexpr int MultiplexControlFrameType_ARRAYSIZE = MultiplexControlFrame_MultiplexControlFrameType_MultiplexControlFrameType_ARRAYSIZE; + template + static inline const ::std::string& MultiplexControlFrameType_Name(T value) { + return MultiplexControlFrame_MultiplexControlFrameType_Name(value); } - static inline bool MultiplexControlFrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - MultiplexControlFrameType* value) { + static inline bool MultiplexControlFrameType_Parse( + ::absl::string_view name, MultiplexControlFrameType* PROTOBUF_NONNULL value) { return MultiplexControlFrame_MultiplexControlFrameType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kControlFrameTypeFieldNumber = 1, kConnectionRequestFrameFieldNumber = 2, @@ -727,71 +1257,72 @@ class MultiplexControlFrame final : }; // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; bool has_control_frame_type() const; - private: - bool _internal_has_control_frame_type() const; - public: - void clear_control_frame_type(); + void clear_control_frame_type() ; ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType control_frame_type() const; void set_control_frame_type(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType value); + private: ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType _internal_control_frame_type() const; void _internal_set_control_frame_type(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType value); - public: + public: // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; bool has_connection_request_frame() const; private: bool _internal_has_connection_request_frame() const; + public: - void clear_connection_request_frame(); + void clear_connection_request_frame() ; const ::location::nearby::mediums::ConnectionRequestFrame& connection_request_frame() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::ConnectionRequestFrame* release_connection_request_frame(); - ::location::nearby::mediums::ConnectionRequestFrame* mutable_connection_request_frame(); - void set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* connection_request_frame); + [[nodiscard]] ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE release_connection_request_frame(); + ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NONNULL mutable_connection_request_frame(); + void set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE unsafe_arena_release_connection_request_frame(); + private: const ::location::nearby::mediums::ConnectionRequestFrame& _internal_connection_request_frame() const; - ::location::nearby::mediums::ConnectionRequestFrame* _internal_mutable_connection_request_frame(); - public: - void unsafe_arena_set_allocated_connection_request_frame( - ::location::nearby::mediums::ConnectionRequestFrame* connection_request_frame); - ::location::nearby::mediums::ConnectionRequestFrame* unsafe_arena_release_connection_request_frame(); + ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NONNULL _internal_mutable_connection_request_frame(); + public: // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; bool has_connection_response_frame() const; private: bool _internal_has_connection_response_frame() const; + public: - void clear_connection_response_frame(); + void clear_connection_response_frame() ; const ::location::nearby::mediums::ConnectionResponseFrame& connection_response_frame() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::ConnectionResponseFrame* release_connection_response_frame(); - ::location::nearby::mediums::ConnectionResponseFrame* mutable_connection_response_frame(); - void set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* connection_response_frame); + [[nodiscard]] ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE release_connection_response_frame(); + ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NONNULL mutable_connection_response_frame(); + void set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE unsafe_arena_release_connection_response_frame(); + private: const ::location::nearby::mediums::ConnectionResponseFrame& _internal_connection_response_frame() const; - ::location::nearby::mediums::ConnectionResponseFrame* _internal_mutable_connection_response_frame(); - public: - void unsafe_arena_set_allocated_connection_response_frame( - ::location::nearby::mediums::ConnectionResponseFrame* connection_response_frame); - ::location::nearby::mediums::ConnectionResponseFrame* unsafe_arena_release_connection_response_frame(); + ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NONNULL _internal_mutable_connection_response_frame(); + public: // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; bool has_disconnect_frame() const; private: bool _internal_has_disconnect_frame() const; + public: - void clear_disconnect_frame(); + void clear_disconnect_frame() ; const ::location::nearby::mediums::DisconnectFrame& disconnect_frame() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::DisconnectFrame* release_disconnect_frame(); - ::location::nearby::mediums::DisconnectFrame* mutable_disconnect_frame(); - void set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* disconnect_frame); + [[nodiscard]] ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE release_disconnect_frame(); + ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NONNULL mutable_disconnect_frame(); + void set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE unsafe_arena_release_disconnect_frame(); + private: const ::location::nearby::mediums::DisconnectFrame& _internal_disconnect_frame() const; - ::location::nearby::mediums::DisconnectFrame* _internal_mutable_disconnect_frame(); - public: - void unsafe_arena_set_allocated_disconnect_frame( - ::location::nearby::mediums::DisconnectFrame* disconnect_frame); - ::location::nearby::mediums::DisconnectFrame* unsafe_arena_release_disconnect_frame(); + ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NONNULL _internal_mutable_disconnect_frame(); + public: void clear_Frame(); FrameCase Frame_case() const; // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexControlFrame) @@ -800,347 +1331,75 @@ class MultiplexControlFrame final : void set_has_connection_request_frame(); void set_has_connection_response_frame(); void set_has_disconnect_frame(); - inline bool has_Frame() const; inline void clear_has_Frame(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 4, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int control_frame_type_; - union FrameUnion { - constexpr FrameUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::location::nearby::mediums::ConnectionRequestFrame* connection_request_frame_; - ::location::nearby::mediums::ConnectionResponseFrame* connection_response_frame_; - ::location::nearby::mediums::DisconnectFrame* disconnect_frame_; - } Frame_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionRequestFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.ConnectionRequestFrame) */ { - public: - inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {} - ~ConnectionRequestFrame() override; - explicit constexpr ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionRequestFrame(const ConnectionRequestFrame& from); - ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept - : ConnectionRequestFrame() { - *this = ::std::move(from); - } - - inline ConnectionRequestFrame& operator=(const ConnectionRequestFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionRequestFrame& operator=(ConnectionRequestFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionRequestFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionRequestFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionRequestFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionRequestFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionRequestFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionRequestFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionRequestFrame& from); - void MergeFrom(const ConnectionRequestFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionRequestFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.ConnectionRequestFrame"; - } - protected: - explicit ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.ConnectionRequestFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionResponseFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.ConnectionResponseFrame) */ { - public: - inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {} - ~ConnectionResponseFrame() override; - explicit constexpr ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionResponseFrame(const ConnectionResponseFrame& from); - ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept - : ConnectionResponseFrame() { - *this = ::std::move(from); - } - - inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionResponseFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionResponseFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionResponseFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionResponseFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionResponseFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionResponseFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionResponseFrame& from); - void MergeFrom(const ConnectionResponseFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionResponseFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.ConnectionResponseFrame"; - } - protected: - explicit ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseCode; - static constexpr ConnectionResponseCode UNKNOWN_RESPONSE_CODE = - ConnectionResponseFrame_ConnectionResponseCode_UNKNOWN_RESPONSE_CODE; - static constexpr ConnectionResponseCode CONNECTION_ACCEPTED = - ConnectionResponseFrame_ConnectionResponseCode_CONNECTION_ACCEPTED; - static constexpr ConnectionResponseCode NOT_LISTENING = - ConnectionResponseFrame_ConnectionResponseCode_NOT_LISTENING; - static inline bool ConnectionResponseCode_IsValid(int value) { - return ConnectionResponseFrame_ConnectionResponseCode_IsValid(value); - } - static constexpr ConnectionResponseCode ConnectionResponseCode_MIN = - ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MIN; - static constexpr ConnectionResponseCode ConnectionResponseCode_MAX = - ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_MAX; - static constexpr int ConnectionResponseCode_ARRAYSIZE = - ConnectionResponseFrame_ConnectionResponseCode_ConnectionResponseCode_ARRAYSIZE; - template - static inline const std::string& ConnectionResponseCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionResponseCode_Name."); - return ConnectionResponseFrame_ConnectionResponseCode_Name(enum_t_value); - } - static inline bool ConnectionResponseCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ConnectionResponseCode* value) { - return ConnectionResponseFrame_ConnectionResponseCode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kConnectionResponseCodeFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MultiplexControlFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int control_frame_type_; + union FrameUnion { + constexpr FrameUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE connection_request_frame_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE connection_response_frame_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE disconnect_frame_; + } Frame_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; - bool has_connection_response_code() const; - private: - bool _internal_has_connection_response_code() const; - public: - void clear_connection_response_code(); - ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode connection_response_code() const; - void set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value); - private: - ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode _internal_connection_response_code() const; - void _internal_set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.ConnectionResponseFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int connection_response_code_; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<46> MultiplexControlFrame_class_data_; // ------------------------------------------------------------------- -class DisconnectFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.DisconnectFrame) */ { +class MultiplexFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexFrame) */ { public: - inline DisconnectFrame() : DisconnectFrame(nullptr) {} - ~DisconnectFrame() override; - explicit constexpr DisconnectFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MultiplexFrame() : MultiplexFrame(nullptr) {} + ~MultiplexFrame() PROTOBUF_FINAL; - DisconnectFrame(const DisconnectFrame& from); - DisconnectFrame(DisconnectFrame&& from) noexcept - : DisconnectFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MultiplexFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MultiplexFrame)); } +#endif - inline DisconnectFrame& operator=(const DisconnectFrame& from) { + template + explicit PROTOBUF_CONSTEXPR MultiplexFrame(::google::protobuf::internal::ConstantInitialized); + + inline MultiplexFrame(const MultiplexFrame& from) : MultiplexFrame(nullptr, from) {} + inline MultiplexFrame(MultiplexFrame&& from) noexcept + : MultiplexFrame(nullptr, ::std::move(from)) {} + inline MultiplexFrame& operator=(const MultiplexFrame& from) { CopyFrom(from); return *this; } - inline DisconnectFrame& operator=(DisconnectFrame&& from) noexcept { + inline MultiplexFrame& operator=(MultiplexFrame&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1148,517 +1407,554 @@ class DisconnectFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const DisconnectFrame& default_instance() { - return *internal_default_instance(); + static const MultiplexFrame& default_instance() { + return *reinterpret_cast( + &_MultiplexFrame_default_instance_); } - static inline const DisconnectFrame* internal_default_instance() { - return reinterpret_cast( - &_DisconnectFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(DisconnectFrame& a, DisconnectFrame& b) { - a.Swap(&b); - } - inline void Swap(DisconnectFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisconnectFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisconnectFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DisconnectFrame& from); - void MergeFrom(const DisconnectFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DisconnectFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.DisconnectFrame"; - } - protected: - explicit DisconnectFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.DisconnectFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class MultiplexDataFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.MultiplexDataFrame) */ { - public: - inline MultiplexDataFrame() : MultiplexDataFrame(nullptr) {} - ~MultiplexDataFrame() override; - explicit constexpr MultiplexDataFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MultiplexDataFrame(const MultiplexDataFrame& from); - MultiplexDataFrame(MultiplexDataFrame&& from) noexcept - : MultiplexDataFrame() { - *this = ::std::move(from); - } - - inline MultiplexDataFrame& operator=(const MultiplexDataFrame& from) { - CopyFrom(from); - return *this; - } - inline MultiplexDataFrame& operator=(MultiplexDataFrame&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const MultiplexDataFrame& default_instance() { - return *internal_default_instance(); - } - static inline const MultiplexDataFrame* internal_default_instance() { - return reinterpret_cast( - &_MultiplexDataFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(MultiplexDataFrame& a, MultiplexDataFrame& b) { - a.Swap(&b); - } - inline void Swap(MultiplexDataFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MultiplexDataFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MultiplexDataFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MultiplexDataFrame& from); - void MergeFrom(const MultiplexDataFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MultiplexDataFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.MultiplexDataFrame"; - } - protected: - explicit MultiplexDataFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, + enum FrameCase { + kControlFrame = 3, + kDataFrame = 4, + FRAME_NOT_SET = 0, }; - // optional bytes data = 1; - bool has_data() const; - private: - bool _internal_has_data() const; - public: - void clear_data(); - const std::string& data() const; - template - void set_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* data); - private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); - std::string* _internal_mutable_data(); - public: + static constexpr int kIndexInFileMessages = 0; + friend void swap(MultiplexFrame& a, MultiplexFrame& b) { a.Swap(&b); } + inline void Swap(MultiplexFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MultiplexFrame* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } - // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexDataFrame) + // implements Message ---------------------------------------------- + + MultiplexFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const MultiplexFrame& from); + void MergeFrom(const MultiplexFrame& from) { MultiplexFrame::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MultiplexFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.MultiplexFrame"; } + + explicit MultiplexFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MultiplexFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MultiplexFrame& from); + MultiplexFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MultiplexFrame&& from) noexcept + : MultiplexFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using MultiplexFrameType = MultiplexFrame_MultiplexFrameType; + static constexpr MultiplexFrameType UNKNOWN_FRAME_TYPE = MultiplexFrame_MultiplexFrameType_UNKNOWN_FRAME_TYPE; + static constexpr MultiplexFrameType CONTROL_FRAME = MultiplexFrame_MultiplexFrameType_CONTROL_FRAME; + static constexpr MultiplexFrameType DATA_FRAME = MultiplexFrame_MultiplexFrameType_DATA_FRAME; + static inline bool MultiplexFrameType_IsValid(int value) { + return MultiplexFrame_MultiplexFrameType_IsValid(value); + } + static constexpr MultiplexFrameType MultiplexFrameType_MIN = MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MIN; + static constexpr MultiplexFrameType MultiplexFrameType_MAX = MultiplexFrame_MultiplexFrameType_MultiplexFrameType_MAX; + static constexpr int MultiplexFrameType_ARRAYSIZE = MultiplexFrame_MultiplexFrameType_MultiplexFrameType_ARRAYSIZE; + template + static inline const ::std::string& MultiplexFrameType_Name(T value) { + return MultiplexFrame_MultiplexFrameType_Name(value); + } + static inline bool MultiplexFrameType_Parse( + ::absl::string_view name, MultiplexFrameType* PROTOBUF_NONNULL value) { + return MultiplexFrame_MultiplexFrameType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kHeaderFieldNumber = 1, + kFrameTypeFieldNumber = 2, + kControlFrameFieldNumber = 3, + kDataFrameFieldNumber = 4, + }; + // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; + bool has_header() const; + void clear_header() ; + const ::location::nearby::mediums::MultiplexFrameHeader& header() const; + [[nodiscard]] ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE release_header(); + ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE unsafe_arena_release_header(); + + private: + const ::location::nearby::mediums::MultiplexFrameHeader& _internal_header() const; + ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; + bool has_frame_type() const; + void clear_frame_type() ; + ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType frame_type() const; + void set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value); + + private: + ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType _internal_frame_type() const; + void _internal_set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value); + + public: + // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; + bool has_control_frame() const; + private: + bool _internal_has_control_frame() const; + + public: + void clear_control_frame() ; + const ::location::nearby::mediums::MultiplexControlFrame& control_frame() const; + [[nodiscard]] ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE release_control_frame(); + ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NONNULL mutable_control_frame(); + void set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE unsafe_arena_release_control_frame(); + + private: + const ::location::nearby::mediums::MultiplexControlFrame& _internal_control_frame() const; + ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NONNULL _internal_mutable_control_frame(); + + public: + // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; + bool has_data_frame() const; + private: + bool _internal_has_data_frame() const; + + public: + void clear_data_frame() ; + const ::location::nearby::mediums::MultiplexDataFrame& data_frame() const; + [[nodiscard]] ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE release_data_frame(); + ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NONNULL mutable_data_frame(); + void set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE unsafe_arena_release_data_frame(); + + private: + const ::location::nearby::mediums::MultiplexDataFrame& _internal_data_frame() const; + ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NONNULL _internal_mutable_data_frame(); + + public: + void clear_Frame(); + FrameCase Frame_case() const; + // @@protoc_insertion_point(class_scope:location.nearby.mediums.MultiplexFrame) private: class _Internal; + void set_has_control_frame(); + void set_has_data_frame(); + inline bool has_Frame() const; + inline void clear_has_Frame(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 4, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MultiplexFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE header_; + int frame_type_; + union FrameUnion { + constexpr FrameUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE control_frame_; + ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE data_frame_; + } Frame_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fmultiplex_5fframes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<39> MultiplexFrame_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // MultiplexFrame // optional .location.nearby.mediums.MultiplexFrameHeader header = 1; -inline bool MultiplexFrame::_internal_has_header() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || header_ != nullptr); +inline bool MultiplexFrame::has_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); return value; } -inline bool MultiplexFrame::has_header() const { - return _internal_has_header(); -} inline void MultiplexFrame::clear_header() { - if (header_ != nullptr) header_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ != nullptr) _impl_.header_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::mediums::MultiplexFrameHeader& MultiplexFrame::_internal_header() const { - const ::location::nearby::mediums::MultiplexFrameHeader* p = header_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_MultiplexFrameHeader_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::MultiplexFrameHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_MultiplexFrameHeader_default_instance_); } -inline const ::location::nearby::mediums::MultiplexFrameHeader& MultiplexFrame::header() const { +inline const ::location::nearby::mediums::MultiplexFrameHeader& MultiplexFrame::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrame.header) return _internal_header(); } inline void MultiplexFrame::unsafe_arena_set_allocated_header( - ::location::nearby::mediums::MultiplexFrameHeader* header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_); + ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } - header_ = header; - if (header) { - _has_bits_[0] |= 0x00000001u; + _impl_.header_ = reinterpret_cast<::location::nearby::mediums::MultiplexFrameHeader*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexFrame.header) } -inline ::location::nearby::mediums::MultiplexFrameHeader* MultiplexFrame::release_header() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::MultiplexFrameHeader* temp = header_; - header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE MultiplexFrame::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::MultiplexFrameHeader* released = _impl_.header_; + _impl_.header_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::MultiplexFrameHeader* MultiplexFrame::unsafe_arena_release_header() { +inline ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE MultiplexFrame::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexFrame.header) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::MultiplexFrameHeader* temp = header_; - header_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::MultiplexFrameHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; return temp; } -inline ::location::nearby::mediums::MultiplexFrameHeader* MultiplexFrame::_internal_mutable_header() { - _has_bits_[0] |= 0x00000001u; - if (header_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::MultiplexFrameHeader>(GetArenaForAllocation()); - header_ = p; +inline ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NONNULL MultiplexFrame::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::MultiplexFrameHeader>(GetArena()); + _impl_.header_ = reinterpret_cast<::location::nearby::mediums::MultiplexFrameHeader*>(p); } - return header_; + return _impl_.header_; } -inline ::location::nearby::mediums::MultiplexFrameHeader* MultiplexFrame::mutable_header() { +inline ::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NONNULL MultiplexFrame::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::mediums::MultiplexFrameHeader* _msg = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexFrame.header) return _msg; } -inline void MultiplexFrame::set_allocated_header(::location::nearby::mediums::MultiplexFrameHeader* header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MultiplexFrame::set_allocated_header(::location::nearby::mediums::MultiplexFrameHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete header_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } - if (header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::MultiplexFrameHeader>::GetOwningArena(header); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, header, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - header_ = header; + + _impl_.header_ = reinterpret_cast<::location::nearby::mediums::MultiplexFrameHeader*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrame.header) } // optional .location.nearby.mediums.MultiplexFrame.MultiplexFrameType frame_type = 2; -inline bool MultiplexFrame::_internal_has_frame_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool MultiplexFrame::has_frame_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool MultiplexFrame::has_frame_type() const { - return _internal_has_frame_type(); -} inline void MultiplexFrame::clear_frame_type() { - frame_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType MultiplexFrame::_internal_frame_type() const { - return static_cast< ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType >(frame_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frame_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType MultiplexFrame::frame_type() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrame.frame_type) return _internal_frame_type(); } -inline void MultiplexFrame::_internal_set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value) { - assert(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - frame_type_ = value; -} inline void MultiplexFrame::set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value) { _internal_set_frame_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.mediums.MultiplexFrame.frame_type) } +inline ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType MultiplexFrame::_internal_frame_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::MultiplexFrame_MultiplexFrameType>(_impl_.frame_type_); +} +inline void MultiplexFrame::_internal_set_frame_type(::location::nearby::mediums::MultiplexFrame_MultiplexFrameType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType_internal_data_)); + _impl_.frame_type_ = value; +} // .location.nearby.mediums.MultiplexControlFrame control_frame = 3; +inline bool MultiplexFrame::has_control_frame() const { + return Frame_case() == kControlFrame; +} inline bool MultiplexFrame::_internal_has_control_frame() const { return Frame_case() == kControlFrame; } -inline bool MultiplexFrame::has_control_frame() const { - return _internal_has_control_frame(); -} inline void MultiplexFrame::set_has_control_frame() { - _oneof_case_[0] = kControlFrame; + _impl_._oneof_case_[0] = kControlFrame; } inline void MultiplexFrame::clear_control_frame() { - if (_internal_has_control_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.control_frame_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kControlFrame) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.control_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.control_frame_ != nullptr) { + _impl_.Frame_.control_frame_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::MultiplexControlFrame* MultiplexFrame::release_control_frame() { +inline ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE MultiplexFrame::release_control_frame() { // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexFrame.control_frame) - if (_internal_has_control_frame()) { + if (Frame_case() == kControlFrame) { clear_has_Frame(); - ::location::nearby::mediums::MultiplexControlFrame* temp = Frame_.control_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.Frame_.control_frame_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.control_frame_ = nullptr; + _impl_.Frame_.control_frame_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::MultiplexControlFrame& MultiplexFrame::_internal_control_frame() const { - return _internal_has_control_frame() - ? *Frame_.control_frame_ - : reinterpret_cast< ::location::nearby::mediums::MultiplexControlFrame&>(::location::nearby::mediums::_MultiplexControlFrame_default_instance_); + return Frame_case() == kControlFrame ? static_cast(*_impl_.Frame_.control_frame_) + : reinterpret_cast(::location::nearby::mediums::_MultiplexControlFrame_default_instance_); } -inline const ::location::nearby::mediums::MultiplexControlFrame& MultiplexFrame::control_frame() const { +inline const ::location::nearby::mediums::MultiplexControlFrame& MultiplexFrame::control_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrame.control_frame) return _internal_control_frame(); } -inline ::location::nearby::mediums::MultiplexControlFrame* MultiplexFrame::unsafe_arena_release_control_frame() { +inline ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE MultiplexFrame::unsafe_arena_release_control_frame() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.MultiplexFrame.control_frame) - if (_internal_has_control_frame()) { + if (Frame_case() == kControlFrame) { clear_has_Frame(); - ::location::nearby::mediums::MultiplexControlFrame* temp = Frame_.control_frame_; - Frame_.control_frame_ = nullptr; + auto* temp = _impl_.Frame_.control_frame_; + _impl_.Frame_.control_frame_ = nullptr; return temp; } else { return nullptr; } } -inline void MultiplexFrame::unsafe_arena_set_allocated_control_frame(::location::nearby::mediums::MultiplexControlFrame* control_frame) { +inline void MultiplexFrame::unsafe_arena_set_allocated_control_frame( + ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (control_frame) { + if (value) { set_has_control_frame(); - Frame_.control_frame_ = control_frame; + _impl_.Frame_.control_frame_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexFrame.control_frame) } -inline ::location::nearby::mediums::MultiplexControlFrame* MultiplexFrame::_internal_mutable_control_frame() { - if (!_internal_has_control_frame()) { +inline ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NONNULL MultiplexFrame::_internal_mutable_control_frame() { + if (Frame_case() != kControlFrame) { clear_Frame(); set_has_control_frame(); - Frame_.control_frame_ = CreateMaybeMessage< ::location::nearby::mediums::MultiplexControlFrame >(GetArenaForAllocation()); + _impl_.Frame_.control_frame_ = + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::MultiplexControlFrame>(GetArena()); } - return Frame_.control_frame_; + return _impl_.Frame_.control_frame_; } -inline ::location::nearby::mediums::MultiplexControlFrame* MultiplexFrame::mutable_control_frame() { +inline ::location::nearby::mediums::MultiplexControlFrame* PROTOBUF_NONNULL MultiplexFrame::mutable_control_frame() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::MultiplexControlFrame* _msg = _internal_mutable_control_frame(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexFrame.control_frame) return _msg; } // .location.nearby.mediums.MultiplexDataFrame data_frame = 4; +inline bool MultiplexFrame::has_data_frame() const { + return Frame_case() == kDataFrame; +} inline bool MultiplexFrame::_internal_has_data_frame() const { return Frame_case() == kDataFrame; } -inline bool MultiplexFrame::has_data_frame() const { - return _internal_has_data_frame(); -} inline void MultiplexFrame::set_has_data_frame() { - _oneof_case_[0] = kDataFrame; + _impl_._oneof_case_[0] = kDataFrame; } inline void MultiplexFrame::clear_data_frame() { - if (_internal_has_data_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.data_frame_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kDataFrame) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.data_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.data_frame_ != nullptr) { + _impl_.Frame_.data_frame_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::MultiplexDataFrame* MultiplexFrame::release_data_frame() { +inline ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE MultiplexFrame::release_data_frame() { // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexFrame.data_frame) - if (_internal_has_data_frame()) { + if (Frame_case() == kDataFrame) { clear_has_Frame(); - ::location::nearby::mediums::MultiplexDataFrame* temp = Frame_.data_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.Frame_.data_frame_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.data_frame_ = nullptr; + _impl_.Frame_.data_frame_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::MultiplexDataFrame& MultiplexFrame::_internal_data_frame() const { - return _internal_has_data_frame() - ? *Frame_.data_frame_ - : reinterpret_cast< ::location::nearby::mediums::MultiplexDataFrame&>(::location::nearby::mediums::_MultiplexDataFrame_default_instance_); + return Frame_case() == kDataFrame ? static_cast(*_impl_.Frame_.data_frame_) + : reinterpret_cast(::location::nearby::mediums::_MultiplexDataFrame_default_instance_); } -inline const ::location::nearby::mediums::MultiplexDataFrame& MultiplexFrame::data_frame() const { +inline const ::location::nearby::mediums::MultiplexDataFrame& MultiplexFrame::data_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrame.data_frame) return _internal_data_frame(); } -inline ::location::nearby::mediums::MultiplexDataFrame* MultiplexFrame::unsafe_arena_release_data_frame() { +inline ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE MultiplexFrame::unsafe_arena_release_data_frame() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.MultiplexFrame.data_frame) - if (_internal_has_data_frame()) { + if (Frame_case() == kDataFrame) { clear_has_Frame(); - ::location::nearby::mediums::MultiplexDataFrame* temp = Frame_.data_frame_; - Frame_.data_frame_ = nullptr; + auto* temp = _impl_.Frame_.data_frame_; + _impl_.Frame_.data_frame_ = nullptr; return temp; } else { return nullptr; } } -inline void MultiplexFrame::unsafe_arena_set_allocated_data_frame(::location::nearby::mediums::MultiplexDataFrame* data_frame) { +inline void MultiplexFrame::unsafe_arena_set_allocated_data_frame( + ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (data_frame) { + if (value) { set_has_data_frame(); - Frame_.data_frame_ = data_frame; + _impl_.Frame_.data_frame_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexFrame.data_frame) } -inline ::location::nearby::mediums::MultiplexDataFrame* MultiplexFrame::_internal_mutable_data_frame() { - if (!_internal_has_data_frame()) { +inline ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NONNULL MultiplexFrame::_internal_mutable_data_frame() { + if (Frame_case() != kDataFrame) { clear_Frame(); set_has_data_frame(); - Frame_.data_frame_ = CreateMaybeMessage< ::location::nearby::mediums::MultiplexDataFrame >(GetArenaForAllocation()); + _impl_.Frame_.data_frame_ = + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::MultiplexDataFrame>(GetArena()); } - return Frame_.data_frame_; + return _impl_.Frame_.data_frame_; } -inline ::location::nearby::mediums::MultiplexDataFrame* MultiplexFrame::mutable_data_frame() { +inline ::location::nearby::mediums::MultiplexDataFrame* PROTOBUF_NONNULL MultiplexFrame::mutable_data_frame() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::MultiplexDataFrame* _msg = _internal_mutable_data_frame(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexFrame.data_frame) return _msg; @@ -1668,150 +1964,150 @@ inline bool MultiplexFrame::has_Frame() const { return Frame_case() != FRAME_NOT_SET; } inline void MultiplexFrame::clear_has_Frame() { - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } inline MultiplexFrame::FrameCase MultiplexFrame::Frame_case() const { - return MultiplexFrame::FrameCase(_oneof_case_[0]); + return MultiplexFrame::FrameCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // MultiplexFrameHeader // optional bytes salted_service_id_hash = 1; -inline bool MultiplexFrameHeader::_internal_has_salted_service_id_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool MultiplexFrameHeader::has_salted_service_id_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool MultiplexFrameHeader::has_salted_service_id_hash() const { - return _internal_has_salted_service_id_hash(); -} inline void MultiplexFrameHeader::clear_salted_service_id_hash() { - salted_service_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.salted_service_id_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& MultiplexFrameHeader::salted_service_id_hash() const { +inline const ::std::string& MultiplexFrameHeader::salted_service_id_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrameHeader.salted_service_id_hash) return _internal_salted_service_id_hash(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MultiplexFrameHeader::set_salted_service_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - salted_service_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MultiplexFrameHeader::set_salted_service_id_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.salted_service_id_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.MultiplexFrameHeader.salted_service_id_hash) } -inline std::string* MultiplexFrameHeader::mutable_salted_service_id_hash() { - std::string* _s = _internal_mutable_salted_service_id_hash(); +inline ::std::string* PROTOBUF_NONNULL MultiplexFrameHeader::mutable_salted_service_id_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_salted_service_id_hash(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexFrameHeader.salted_service_id_hash) return _s; } -inline const std::string& MultiplexFrameHeader::_internal_salted_service_id_hash() const { - return salted_service_id_hash_.Get(); +inline const ::std::string& MultiplexFrameHeader::_internal_salted_service_id_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.salted_service_id_hash_.Get(); } -inline void MultiplexFrameHeader::_internal_set_salted_service_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - salted_service_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MultiplexFrameHeader::_internal_set_salted_service_id_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.salted_service_id_hash_.Set(value, GetArena()); } -inline std::string* MultiplexFrameHeader::_internal_mutable_salted_service_id_hash() { - _has_bits_[0] |= 0x00000001u; - return salted_service_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MultiplexFrameHeader::_internal_mutable_salted_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.salted_service_id_hash_.Mutable( GetArena()); } -inline std::string* MultiplexFrameHeader::release_salted_service_id_hash() { +inline ::std::string* PROTOBUF_NULLABLE MultiplexFrameHeader::release_salted_service_id_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexFrameHeader.salted_service_id_hash) - if (!_internal_has_salted_service_id_hash()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = salted_service_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (salted_service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - salted_service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.salted_service_id_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.salted_service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MultiplexFrameHeader::set_allocated_salted_service_id_hash(std::string* salted_service_id_hash) { - if (salted_service_id_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void MultiplexFrameHeader::set_allocated_salted_service_id_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - salted_service_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), salted_service_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (salted_service_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - salted_service_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.salted_service_id_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.salted_service_id_hash_.IsDefault()) { + _impl_.salted_service_id_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrameHeader.salted_service_id_hash) } // optional string service_id_hash_salt = 2; -inline bool MultiplexFrameHeader::_internal_has_service_id_hash_salt() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool MultiplexFrameHeader::has_service_id_hash_salt() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool MultiplexFrameHeader::has_service_id_hash_salt() const { - return _internal_has_service_id_hash_salt(); -} inline void MultiplexFrameHeader::clear_service_id_hash_salt() { - service_id_hash_salt_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_salt_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& MultiplexFrameHeader::service_id_hash_salt() const { +inline const ::std::string& MultiplexFrameHeader::service_id_hash_salt() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexFrameHeader.service_id_hash_salt) return _internal_service_id_hash_salt(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MultiplexFrameHeader::set_service_id_hash_salt(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MultiplexFrameHeader::set_service_id_hash_salt(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.service_id_hash_salt_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.MultiplexFrameHeader.service_id_hash_salt) } -inline std::string* MultiplexFrameHeader::mutable_service_id_hash_salt() { - std::string* _s = _internal_mutable_service_id_hash_salt(); +inline ::std::string* PROTOBUF_NONNULL MultiplexFrameHeader::mutable_service_id_hash_salt() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_service_id_hash_salt(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexFrameHeader.service_id_hash_salt) return _s; } -inline const std::string& MultiplexFrameHeader::_internal_service_id_hash_salt() const { - return service_id_hash_salt_.Get(); +inline const ::std::string& MultiplexFrameHeader::_internal_service_id_hash_salt() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_hash_salt_.Get(); } -inline void MultiplexFrameHeader::_internal_set_service_id_hash_salt(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - service_id_hash_salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MultiplexFrameHeader::_internal_set_service_id_hash_salt(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_hash_salt_.Set(value, GetArena()); } -inline std::string* MultiplexFrameHeader::_internal_mutable_service_id_hash_salt() { - _has_bits_[0] |= 0x00000002u; - return service_id_hash_salt_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MultiplexFrameHeader::_internal_mutable_service_id_hash_salt() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_hash_salt_.Mutable( GetArena()); } -inline std::string* MultiplexFrameHeader::release_service_id_hash_salt() { +inline ::std::string* PROTOBUF_NULLABLE MultiplexFrameHeader::release_service_id_hash_salt() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexFrameHeader.service_id_hash_salt) - if (!_internal_has_service_id_hash_salt()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = service_id_hash_salt_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_salt_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.service_id_hash_salt_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_hash_salt_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MultiplexFrameHeader::set_allocated_service_id_hash_salt(std::string* service_id_hash_salt) { - if (service_id_hash_salt != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void MultiplexFrameHeader::set_allocated_service_id_hash_salt(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - service_id_hash_salt_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id_hash_salt, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_hash_salt_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_hash_salt_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_hash_salt_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_hash_salt_.IsDefault()) { + _impl_.service_id_hash_salt_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexFrameHeader.service_id_hash_salt) } @@ -1820,251 +2116,284 @@ inline void MultiplexFrameHeader::set_allocated_service_id_hash_salt(std::string // MultiplexControlFrame // optional .location.nearby.mediums.MultiplexControlFrame.MultiplexControlFrameType control_frame_type = 1; -inline bool MultiplexControlFrame::_internal_has_control_frame_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool MultiplexControlFrame::has_control_frame_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool MultiplexControlFrame::has_control_frame_type() const { - return _internal_has_control_frame_type(); -} inline void MultiplexControlFrame::clear_control_frame_type() { - control_frame_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::_internal_control_frame_type() const { - return static_cast< ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType >(control_frame_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.control_frame_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::control_frame_type() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexControlFrame.control_frame_type) return _internal_control_frame_type(); } -inline void MultiplexControlFrame::_internal_set_control_frame_type(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType value) { - assert(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - control_frame_type_ = value; -} inline void MultiplexControlFrame::set_control_frame_type(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType value) { _internal_set_control_frame_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.mediums.MultiplexControlFrame.control_frame_type) } +inline ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType MultiplexControlFrame::_internal_control_frame_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType>(_impl_.control_frame_type_); +} +inline void MultiplexControlFrame::_internal_set_control_frame_type(::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType_internal_data_)); + _impl_.control_frame_type_ = value; +} // .location.nearby.mediums.ConnectionRequestFrame connection_request_frame = 2; +inline bool MultiplexControlFrame::has_connection_request_frame() const { + return Frame_case() == kConnectionRequestFrame; +} inline bool MultiplexControlFrame::_internal_has_connection_request_frame() const { return Frame_case() == kConnectionRequestFrame; } -inline bool MultiplexControlFrame::has_connection_request_frame() const { - return _internal_has_connection_request_frame(); -} inline void MultiplexControlFrame::set_has_connection_request_frame() { - _oneof_case_[0] = kConnectionRequestFrame; + _impl_._oneof_case_[0] = kConnectionRequestFrame; } inline void MultiplexControlFrame::clear_connection_request_frame() { - if (_internal_has_connection_request_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.connection_request_frame_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kConnectionRequestFrame) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.connection_request_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.connection_request_frame_ != nullptr) { + _impl_.Frame_.connection_request_frame_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::ConnectionRequestFrame* MultiplexControlFrame::release_connection_request_frame() { +inline ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE MultiplexControlFrame::release_connection_request_frame() { // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) - if (_internal_has_connection_request_frame()) { + if (Frame_case() == kConnectionRequestFrame) { clear_has_Frame(); - ::location::nearby::mediums::ConnectionRequestFrame* temp = Frame_.connection_request_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::ConnectionRequestFrame*>(_impl_.Frame_.connection_request_frame_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.connection_request_frame_ = nullptr; + _impl_.Frame_.connection_request_frame_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::ConnectionRequestFrame& MultiplexControlFrame::_internal_connection_request_frame() const { - return _internal_has_connection_request_frame() - ? *Frame_.connection_request_frame_ - : reinterpret_cast< ::location::nearby::mediums::ConnectionRequestFrame&>(::location::nearby::mediums::_ConnectionRequestFrame_default_instance_); + return Frame_case() == kConnectionRequestFrame ? static_cast(*reinterpret_cast<::location::nearby::mediums::ConnectionRequestFrame*>(_impl_.Frame_.connection_request_frame_)) + : reinterpret_cast(::location::nearby::mediums::_ConnectionRequestFrame_default_instance_); } -inline const ::location::nearby::mediums::ConnectionRequestFrame& MultiplexControlFrame::connection_request_frame() const { +inline const ::location::nearby::mediums::ConnectionRequestFrame& MultiplexControlFrame::connection_request_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) return _internal_connection_request_frame(); } -inline ::location::nearby::mediums::ConnectionRequestFrame* MultiplexControlFrame::unsafe_arena_release_connection_request_frame() { +inline ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE MultiplexControlFrame::unsafe_arena_release_connection_request_frame() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) - if (_internal_has_connection_request_frame()) { + if (Frame_case() == kConnectionRequestFrame) { clear_has_Frame(); - ::location::nearby::mediums::ConnectionRequestFrame* temp = Frame_.connection_request_frame_; - Frame_.connection_request_frame_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::ConnectionRequestFrame*>(_impl_.Frame_.connection_request_frame_); + _impl_.Frame_.connection_request_frame_ = nullptr; return temp; } else { return nullptr; } } -inline void MultiplexControlFrame::unsafe_arena_set_allocated_connection_request_frame(::location::nearby::mediums::ConnectionRequestFrame* connection_request_frame) { +inline void MultiplexControlFrame::unsafe_arena_set_allocated_connection_request_frame( + ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (connection_request_frame) { + if (value) { set_has_connection_request_frame(); - Frame_.connection_request_frame_ = connection_request_frame; + _impl_.Frame_.connection_request_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) } -inline ::location::nearby::mediums::ConnectionRequestFrame* MultiplexControlFrame::_internal_mutable_connection_request_frame() { - if (!_internal_has_connection_request_frame()) { +inline ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NONNULL MultiplexControlFrame::_internal_mutable_connection_request_frame() { + if (Frame_case() != kConnectionRequestFrame) { clear_Frame(); set_has_connection_request_frame(); - Frame_.connection_request_frame_ = CreateMaybeMessage< ::location::nearby::mediums::ConnectionRequestFrame >(GetArenaForAllocation()); + _impl_.Frame_.connection_request_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::ConnectionRequestFrame>(GetArena())); } - return Frame_.connection_request_frame_; + return reinterpret_cast<::location::nearby::mediums::ConnectionRequestFrame*>(_impl_.Frame_.connection_request_frame_); } -inline ::location::nearby::mediums::ConnectionRequestFrame* MultiplexControlFrame::mutable_connection_request_frame() { +inline ::location::nearby::mediums::ConnectionRequestFrame* PROTOBUF_NONNULL MultiplexControlFrame::mutable_connection_request_frame() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::ConnectionRequestFrame* _msg = _internal_mutable_connection_request_frame(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexControlFrame.connection_request_frame) return _msg; } // .location.nearby.mediums.ConnectionResponseFrame connection_response_frame = 3; +inline bool MultiplexControlFrame::has_connection_response_frame() const { + return Frame_case() == kConnectionResponseFrame; +} inline bool MultiplexControlFrame::_internal_has_connection_response_frame() const { return Frame_case() == kConnectionResponseFrame; } -inline bool MultiplexControlFrame::has_connection_response_frame() const { - return _internal_has_connection_response_frame(); -} inline void MultiplexControlFrame::set_has_connection_response_frame() { - _oneof_case_[0] = kConnectionResponseFrame; + _impl_._oneof_case_[0] = kConnectionResponseFrame; } inline void MultiplexControlFrame::clear_connection_response_frame() { - if (_internal_has_connection_response_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.connection_response_frame_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kConnectionResponseFrame) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.connection_response_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.connection_response_frame_ != nullptr) { + _impl_.Frame_.connection_response_frame_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::ConnectionResponseFrame* MultiplexControlFrame::release_connection_response_frame() { +inline ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE MultiplexControlFrame::release_connection_response_frame() { // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) - if (_internal_has_connection_response_frame()) { + if (Frame_case() == kConnectionResponseFrame) { clear_has_Frame(); - ::location::nearby::mediums::ConnectionResponseFrame* temp = Frame_.connection_response_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::ConnectionResponseFrame*>(_impl_.Frame_.connection_response_frame_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.connection_response_frame_ = nullptr; + _impl_.Frame_.connection_response_frame_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::ConnectionResponseFrame& MultiplexControlFrame::_internal_connection_response_frame() const { - return _internal_has_connection_response_frame() - ? *Frame_.connection_response_frame_ - : reinterpret_cast< ::location::nearby::mediums::ConnectionResponseFrame&>(::location::nearby::mediums::_ConnectionResponseFrame_default_instance_); + return Frame_case() == kConnectionResponseFrame ? static_cast(*reinterpret_cast<::location::nearby::mediums::ConnectionResponseFrame*>(_impl_.Frame_.connection_response_frame_)) + : reinterpret_cast(::location::nearby::mediums::_ConnectionResponseFrame_default_instance_); } -inline const ::location::nearby::mediums::ConnectionResponseFrame& MultiplexControlFrame::connection_response_frame() const { +inline const ::location::nearby::mediums::ConnectionResponseFrame& MultiplexControlFrame::connection_response_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) return _internal_connection_response_frame(); } -inline ::location::nearby::mediums::ConnectionResponseFrame* MultiplexControlFrame::unsafe_arena_release_connection_response_frame() { +inline ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE MultiplexControlFrame::unsafe_arena_release_connection_response_frame() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) - if (_internal_has_connection_response_frame()) { + if (Frame_case() == kConnectionResponseFrame) { clear_has_Frame(); - ::location::nearby::mediums::ConnectionResponseFrame* temp = Frame_.connection_response_frame_; - Frame_.connection_response_frame_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::ConnectionResponseFrame*>(_impl_.Frame_.connection_response_frame_); + _impl_.Frame_.connection_response_frame_ = nullptr; return temp; } else { return nullptr; } } -inline void MultiplexControlFrame::unsafe_arena_set_allocated_connection_response_frame(::location::nearby::mediums::ConnectionResponseFrame* connection_response_frame) { +inline void MultiplexControlFrame::unsafe_arena_set_allocated_connection_response_frame( + ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (connection_response_frame) { + if (value) { set_has_connection_response_frame(); - Frame_.connection_response_frame_ = connection_response_frame; + _impl_.Frame_.connection_response_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) } -inline ::location::nearby::mediums::ConnectionResponseFrame* MultiplexControlFrame::_internal_mutable_connection_response_frame() { - if (!_internal_has_connection_response_frame()) { +inline ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NONNULL MultiplexControlFrame::_internal_mutable_connection_response_frame() { + if (Frame_case() != kConnectionResponseFrame) { clear_Frame(); set_has_connection_response_frame(); - Frame_.connection_response_frame_ = CreateMaybeMessage< ::location::nearby::mediums::ConnectionResponseFrame >(GetArenaForAllocation()); + _impl_.Frame_.connection_response_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::ConnectionResponseFrame>(GetArena())); } - return Frame_.connection_response_frame_; + return reinterpret_cast<::location::nearby::mediums::ConnectionResponseFrame*>(_impl_.Frame_.connection_response_frame_); } -inline ::location::nearby::mediums::ConnectionResponseFrame* MultiplexControlFrame::mutable_connection_response_frame() { +inline ::location::nearby::mediums::ConnectionResponseFrame* PROTOBUF_NONNULL MultiplexControlFrame::mutable_connection_response_frame() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::ConnectionResponseFrame* _msg = _internal_mutable_connection_response_frame(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexControlFrame.connection_response_frame) return _msg; } // .location.nearby.mediums.DisconnectFrame disconnect_frame = 4; +inline bool MultiplexControlFrame::has_disconnect_frame() const { + return Frame_case() == kDisconnectFrame; +} inline bool MultiplexControlFrame::_internal_has_disconnect_frame() const { return Frame_case() == kDisconnectFrame; } -inline bool MultiplexControlFrame::has_disconnect_frame() const { - return _internal_has_disconnect_frame(); -} inline void MultiplexControlFrame::set_has_disconnect_frame() { - _oneof_case_[0] = kDisconnectFrame; + _impl_._oneof_case_[0] = kDisconnectFrame; } inline void MultiplexControlFrame::clear_disconnect_frame() { - if (_internal_has_disconnect_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.disconnect_frame_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kDisconnectFrame) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.disconnect_frame_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.disconnect_frame_ != nullptr) { + _impl_.Frame_.disconnect_frame_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::DisconnectFrame* MultiplexControlFrame::release_disconnect_frame() { +inline ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE MultiplexControlFrame::release_disconnect_frame() { // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) - if (_internal_has_disconnect_frame()) { + if (Frame_case() == kDisconnectFrame) { clear_has_Frame(); - ::location::nearby::mediums::DisconnectFrame* temp = Frame_.disconnect_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::DisconnectFrame*>(_impl_.Frame_.disconnect_frame_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.disconnect_frame_ = nullptr; + _impl_.Frame_.disconnect_frame_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::DisconnectFrame& MultiplexControlFrame::_internal_disconnect_frame() const { - return _internal_has_disconnect_frame() - ? *Frame_.disconnect_frame_ - : reinterpret_cast< ::location::nearby::mediums::DisconnectFrame&>(::location::nearby::mediums::_DisconnectFrame_default_instance_); + return Frame_case() == kDisconnectFrame ? static_cast(*reinterpret_cast<::location::nearby::mediums::DisconnectFrame*>(_impl_.Frame_.disconnect_frame_)) + : reinterpret_cast(::location::nearby::mediums::_DisconnectFrame_default_instance_); } -inline const ::location::nearby::mediums::DisconnectFrame& MultiplexControlFrame::disconnect_frame() const { +inline const ::location::nearby::mediums::DisconnectFrame& MultiplexControlFrame::disconnect_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) return _internal_disconnect_frame(); } -inline ::location::nearby::mediums::DisconnectFrame* MultiplexControlFrame::unsafe_arena_release_disconnect_frame() { +inline ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE MultiplexControlFrame::unsafe_arena_release_disconnect_frame() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) - if (_internal_has_disconnect_frame()) { + if (Frame_case() == kDisconnectFrame) { clear_has_Frame(); - ::location::nearby::mediums::DisconnectFrame* temp = Frame_.disconnect_frame_; - Frame_.disconnect_frame_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::DisconnectFrame*>(_impl_.Frame_.disconnect_frame_); + _impl_.Frame_.disconnect_frame_ = nullptr; return temp; } else { return nullptr; } } -inline void MultiplexControlFrame::unsafe_arena_set_allocated_disconnect_frame(::location::nearby::mediums::DisconnectFrame* disconnect_frame) { +inline void MultiplexControlFrame::unsafe_arena_set_allocated_disconnect_frame( + ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (disconnect_frame) { + if (value) { set_has_disconnect_frame(); - Frame_.disconnect_frame_ = disconnect_frame; + _impl_.Frame_.disconnect_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) } -inline ::location::nearby::mediums::DisconnectFrame* MultiplexControlFrame::_internal_mutable_disconnect_frame() { - if (!_internal_has_disconnect_frame()) { +inline ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NONNULL MultiplexControlFrame::_internal_mutable_disconnect_frame() { + if (Frame_case() != kDisconnectFrame) { clear_Frame(); set_has_disconnect_frame(); - Frame_.disconnect_frame_ = CreateMaybeMessage< ::location::nearby::mediums::DisconnectFrame >(GetArenaForAllocation()); + _impl_.Frame_.disconnect_frame_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::DisconnectFrame>(GetArena())); } - return Frame_.disconnect_frame_; + return reinterpret_cast<::location::nearby::mediums::DisconnectFrame*>(_impl_.Frame_.disconnect_frame_); } -inline ::location::nearby::mediums::DisconnectFrame* MultiplexControlFrame::mutable_disconnect_frame() { +inline ::location::nearby::mediums::DisconnectFrame* PROTOBUF_NONNULL MultiplexControlFrame::mutable_disconnect_frame() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::DisconnectFrame* _msg = _internal_mutable_disconnect_frame(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexControlFrame.disconnect_frame) return _msg; @@ -2074,10 +2403,10 @@ inline bool MultiplexControlFrame::has_Frame() const { return Frame_case() != FRAME_NOT_SET; } inline void MultiplexControlFrame::clear_has_Frame() { - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } inline MultiplexControlFrame::FrameCase MultiplexControlFrame::Frame_case() const { - return MultiplexControlFrame::FrameCase(_oneof_case_[0]); + return MultiplexControlFrame::FrameCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2088,33 +2417,36 @@ inline MultiplexControlFrame::FrameCase MultiplexControlFrame::Frame_case() cons // ConnectionResponseFrame // optional .location.nearby.mediums.ConnectionResponseFrame.ConnectionResponseCode connection_response_code = 1; -inline bool ConnectionResponseFrame::_internal_has_connection_response_code() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool ConnectionResponseFrame::has_connection_response_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool ConnectionResponseFrame::has_connection_response_code() const { - return _internal_has_connection_response_code(); -} inline void ConnectionResponseFrame::clear_connection_response_code() { - connection_response_code_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::_internal_connection_response_code() const { - return static_cast< ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode >(connection_response_code_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_response_code_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::connection_response_code() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.ConnectionResponseFrame.connection_response_code) return _internal_connection_response_code(); } -inline void ConnectionResponseFrame::_internal_set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value) { - assert(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - connection_response_code_ = value; -} inline void ConnectionResponseFrame::set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value) { _internal_set_connection_response_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:location.nearby.mediums.ConnectionResponseFrame.connection_response_code) } +inline ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode ConnectionResponseFrame::_internal_connection_response_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode>(_impl_.connection_response_code_); +} +inline void ConnectionResponseFrame::_internal_set_connection_response_code(::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode_internal_data_)); + _impl_.connection_response_code_ = value; +} // ------------------------------------------------------------------- @@ -2125,105 +2457,99 @@ inline void ConnectionResponseFrame::set_connection_response_code(::location::ne // MultiplexDataFrame // optional bytes data = 1; -inline bool MultiplexDataFrame::_internal_has_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool MultiplexDataFrame::has_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool MultiplexDataFrame::has_data() const { - return _internal_has_data(); -} inline void MultiplexDataFrame::clear_data() { - data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& MultiplexDataFrame::data() const { +inline const ::std::string& MultiplexDataFrame::data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.MultiplexDataFrame.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MultiplexDataFrame::set_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MultiplexDataFrame::set_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.MultiplexDataFrame.data) } -inline std::string* MultiplexDataFrame::mutable_data() { - std::string* _s = _internal_mutable_data(); +inline ::std::string* PROTOBUF_NONNULL MultiplexDataFrame::mutable_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.MultiplexDataFrame.data) return _s; } -inline const std::string& MultiplexDataFrame::_internal_data() const { - return data_.Get(); +inline const ::std::string& MultiplexDataFrame::_internal_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.data_.Get(); } -inline void MultiplexDataFrame::_internal_set_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MultiplexDataFrame::_internal_set_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.Set(value, GetArena()); } -inline std::string* MultiplexDataFrame::_internal_mutable_data() { - _has_bits_[0] |= 0x00000001u; - return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MultiplexDataFrame::_internal_mutable_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.data_.Mutable( GetArena()); } -inline std::string* MultiplexDataFrame::release_data() { +inline ::std::string* PROTOBUF_NULLABLE MultiplexDataFrame::release_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.MultiplexDataFrame.data) - if (!_internal_has_data()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MultiplexDataFrame::set_allocated_data(std::string* data) { - if (data != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void MultiplexDataFrame::set_allocated_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.MultiplexDataFrame.data) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::mediums::MultiplexFrame_MultiplexFrameType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::mediums::MultiplexFrame_MultiplexFrameType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::mediums::MultiplexControlFrame_MultiplexControlFrameType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::mediums::ConnectionResponseFrame_ConnectionResponseCode> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fmultiplex_5fframes_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fmediums_2fmultiplex_5fframes_2eproto_2epb_2eh diff --git a/compiled_proto/proto/mediums/nfc_frames.pb.cc b/compiled_proto/proto/mediums/nfc_frames.pb.cc index 1f7a6795..ced8317c 100644 --- a/compiled_proto/proto/mediums/nfc_frames.pb.cc +++ b/compiled_proto/proto/mediums/nfc_frames.pb.cc @@ -1,696 +1,742 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/nfc_frames.proto +// Protobuf C++ Version: 6.33.3 #include "proto/mediums/nfc_frames.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace location { namespace nearby { namespace mediums { -constexpr AdvertisementData::AdvertisementData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : tag_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , rx_advertisement_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct AdvertisementDataDefaultTypeInternal { - constexpr AdvertisementDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AdvertisementDataDefaultTypeInternal() {} - union { - AdvertisementData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AdvertisementDataDefaultTypeInternal _AdvertisementData_default_instance_; -constexpr AdvertisementRequest::AdvertisementRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} + +inline constexpr AdvertisementRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + service_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR AdvertisementRequest::AdvertisementRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AdvertisementRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AdvertisementRequestDefaultTypeInternal { - constexpr AdvertisementRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AdvertisementRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AdvertisementRequestDefaultTypeInternal() {} union { AdvertisementRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AdvertisementRequestDefaultTypeInternal _AdvertisementRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdvertisementRequestDefaultTypeInternal _AdvertisementRequest_default_instance_; + +inline constexpr AdvertisementData::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + tag_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + rx_advertisement_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR AdvertisementData::AdvertisementData(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AdvertisementData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AdvertisementDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR AdvertisementDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AdvertisementDataDefaultTypeInternal() {} + union { + AdvertisementData _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdvertisementDataDefaultTypeInternal _AdvertisementData_default_instance_; } // namespace mediums } // namespace nearby } // namespace location namespace location { namespace nearby { namespace mediums { - // =================================================================== class AdvertisementData::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_tag(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_rx_advertisement(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_._has_bits_); }; -AdvertisementData::AdvertisementData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AdvertisementData::AdvertisementData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AdvertisementData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.AdvertisementData) } -AdvertisementData::AdvertisementData(const AdvertisementData& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_tag()) { - tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tag(), - GetArenaForAllocation()); - } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_public_key()) { - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), - GetArenaForAllocation()); - } - rx_advertisement_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rx_advertisement_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_rx_advertisement()) { - rx_advertisement_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rx_advertisement(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE AdvertisementData::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::AdvertisementData& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + tag_(arena, from.tag_), + public_key_(arena, from.public_key_), + rx_advertisement_(arena, from.rx_advertisement_) {} + +AdvertisementData::AdvertisementData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const AdvertisementData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AdvertisementData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AdvertisementData* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.AdvertisementData) } +PROTOBUF_NDEBUG_INLINE AdvertisementData::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + tag_(arena), + public_key_(arena), + rx_advertisement_(arena) {} -inline void AdvertisementData::SharedCtor() { -tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -rx_advertisement_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rx_advertisement_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void AdvertisementData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - AdvertisementData::~AdvertisementData() { // @@protoc_insertion_point(destructor:location.nearby.mediums.AdvertisementData) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AdvertisementData::SharedDtor(MessageLite& self) { + AdvertisementData& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.tag_.Destroy(); + this_._impl_.public_key_.Destroy(); + this_._impl_.rx_advertisement_.Destroy(); + this_._impl_.~Impl_(); } -inline void AdvertisementData::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - tag_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - rx_advertisement_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL AdvertisementData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AdvertisementData(arena); +} +constexpr auto AdvertisementData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AdvertisementData), + alignof(AdvertisementData)); +} +constexpr auto AdvertisementData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<42>{ + { + &_AdvertisementData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AdvertisementData::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AdvertisementData::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AdvertisementData::ByteSizeLong, + &AdvertisementData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.AdvertisementData", + }; } -void AdvertisementData::ArenaDtor(void* object) { - AdvertisementData* _this = reinterpret_cast< AdvertisementData* >(object); - (void)_this; -} -void AdvertisementData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AdvertisementData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<42> AdvertisementData_class_data_ = + AdvertisementData::InternalGenerateClassData_(); -void AdvertisementData::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AdvertisementData::GetClassData() const { + return AdvertisementData_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +AdvertisementData::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AdvertisementData_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::AdvertisementData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bytes tag = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.tag_)}}, + // optional bytes public_key = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.public_key_)}}, + // optional bytes rx_advertisement = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.rx_advertisement_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes tag = 1; + {PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.tag_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes public_key = 2; + {PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes rx_advertisement = 3; + {PROTOBUF_FIELD_OFFSET(AdvertisementData, _impl_.rx_advertisement_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AdvertisementData::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.AdvertisementData) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - tag_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.tag_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - public_key_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - rx_advertisement_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.rx_advertisement_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AdvertisementData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes tag = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_tag(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes rx_advertisement = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_rx_advertisement(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AdvertisementData::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AdvertisementData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AdvertisementData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AdvertisementData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AdvertisementData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.AdvertisementData) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes tag = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_tag(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_tag(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional bytes public_key = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_public_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // optional bytes rx_advertisement = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_rx_advertisement(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_rx_advertisement(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.AdvertisementData) return target; } -size_t AdvertisementData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementData) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AdvertisementData::ByteSizeLong(const MessageLite& base) { + const AdvertisementData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AdvertisementData::ByteSizeLong() const { + const AdvertisementData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementData) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional bytes tag = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_tag()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_tag()); } - // optional bytes public_key = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); } - // optional bytes rx_advertisement = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_rx_advertisement()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_rx_advertisement()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AdvertisementData::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void AdvertisementData::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void AdvertisementData::MergeFrom(const AdvertisementData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementData) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_tag(from._internal_tag()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_tag(from._internal_tag()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_public_key(from._internal_public_key()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_public_key(from._internal_public_key()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_rx_advertisement(from._internal_rx_advertisement()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_rx_advertisement(from._internal_rx_advertisement()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AdvertisementData::CopyFrom(const AdvertisementData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementData) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementData) if (&from == this) return; Clear(); MergeFrom(from); } -bool AdvertisementData::IsInitialized() const { - return true; -} -void AdvertisementData::InternalSwap(AdvertisementData* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void AdvertisementData::InternalSwap(AdvertisementData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &tag_, lhs_arena, - &other->tag_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &public_key_, lhs_arena, - &other->public_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &rx_advertisement_, lhs_arena, - &other->rx_advertisement_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tag_, &other->_impl_.tag_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rx_advertisement_, &other->_impl_.rx_advertisement_, arena); } -std::string AdvertisementData::GetTypeName() const { - return "location.nearby.mediums.AdvertisementData"; -} - - // =================================================================== class AdvertisementRequest::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_._has_bits_); }; -AdvertisementRequest::AdvertisementRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AdvertisementRequest::AdvertisementRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AdvertisementRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.AdvertisementRequest) } -AdvertisementRequest::AdvertisementRequest(const AdvertisementRequest& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id()) { - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id(), - GetArenaForAllocation()); - } - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_public_key()) { - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE AdvertisementRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::AdvertisementRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + service_id_(arena, from.service_id_), + endpoint_id_(arena, from.endpoint_id_), + public_key_(arena, from.public_key_) {} + +AdvertisementRequest::AdvertisementRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const AdvertisementRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AdvertisementRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AdvertisementRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.AdvertisementRequest) } +PROTOBUF_NDEBUG_INLINE AdvertisementRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + service_id_(arena), + endpoint_id_(arena), + public_key_(arena) {} -inline void AdvertisementRequest::SharedCtor() { -service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void AdvertisementRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - AdvertisementRequest::~AdvertisementRequest() { // @@protoc_insertion_point(destructor:location.nearby.mediums.AdvertisementRequest) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AdvertisementRequest::SharedDtor(MessageLite& self) { + AdvertisementRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.service_id_.Destroy(); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); } -inline void AdvertisementRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL AdvertisementRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AdvertisementRequest(arena); +} +constexpr auto AdvertisementRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AdvertisementRequest), + alignof(AdvertisementRequest)); +} +constexpr auto AdvertisementRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<45>{ + { + &_AdvertisementRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AdvertisementRequest::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AdvertisementRequest::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AdvertisementRequest::ByteSizeLong, + &AdvertisementRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.AdvertisementRequest", + }; } -void AdvertisementRequest::ArenaDtor(void* object) { - AdvertisementRequest* _this = reinterpret_cast< AdvertisementRequest* >(object); - (void)_this; -} -void AdvertisementRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AdvertisementRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<45> AdvertisementRequest_class_data_ = + AdvertisementRequest::InternalGenerateClassData_(); -void AdvertisementRequest::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AdvertisementRequest::GetClassData() const { + return AdvertisementRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +AdvertisementRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AdvertisementRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::AdvertisementRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string service_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.service_id_)}}, + // optional string endpoint_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.endpoint_id_)}}, + // optional bytes public_key = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string service_id = 1; + {PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.service_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string endpoint_id = 2; + {PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes public_key = 3; + {PROTOBUF_FIELD_OFFSET(AdvertisementRequest, _impl_.public_key_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AdvertisementRequest::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.AdvertisementRequest) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - service_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.service_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - endpoint_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - public_key_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* AdvertisementRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string endpoint_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes public_key = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AdvertisementRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AdvertisementRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AdvertisementRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AdvertisementRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AdvertisementRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.AdvertisementRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_service_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string endpoint_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional bytes public_key = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_public_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.AdvertisementRequest) return target; } -size_t AdvertisementRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementRequest) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AdvertisementRequest::ByteSizeLong(const MessageLite& base) { + const AdvertisementRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AdvertisementRequest::ByteSizeLong() const { + const AdvertisementRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.AdvertisementRequest) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_service_id()); } - // optional string endpoint_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional bytes public_key = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AdvertisementRequest::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void AdvertisementRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void AdvertisementRequest::MergeFrom(const AdvertisementRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.AdvertisementRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id(from._internal_service_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_service_id(from._internal_service_id()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_public_key(from._internal_public_key()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_public_key(from._internal_public_key()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AdvertisementRequest::CopyFrom(const AdvertisementRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.AdvertisementRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool AdvertisementRequest::IsInitialized() const { - return true; -} -void AdvertisementRequest::InternalSwap(AdvertisementRequest* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void AdvertisementRequest::InternalSwap(AdvertisementRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_, lhs_arena, - &other->service_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &public_key_, lhs_arena, - &other->public_key_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_id_, &other->_impl_.service_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); } -std::string AdvertisementRequest::GetTypeName() const { - return "location.nearby.mediums.AdvertisementRequest"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::AdvertisementData* Arena::CreateMaybeMessage< ::location::nearby::mediums::AdvertisementData >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::AdvertisementData >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::AdvertisementRequest* Arena::CreateMaybeMessage< ::location::nearby::mediums::AdvertisementRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::AdvertisementRequest >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/mediums/nfc_frames.pb.h b/compiled_proto/proto/mediums/nfc_frames.pb.h index 94f60fbc..89cde64b 100644 --- a/compiled_proto/proto/mediums/nfc_frames.pb.h +++ b/compiled_proto/proto/mediums/nfc_frames.pb.h @@ -1,54 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/nfc_frames.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_2eproto +#ifndef proto_2fmediums_2fnfc_5fframes_2eproto_2epb_2eh +#define proto_2fmediums_2fnfc_5fframes_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fmediums_2fnfc_5fframes_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { @@ -56,233 +52,54 @@ namespace mediums { class AdvertisementData; struct AdvertisementDataDefaultTypeInternal; extern AdvertisementDataDefaultTypeInternal _AdvertisementData_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<42> AdvertisementData_class_data_; class AdvertisementRequest; struct AdvertisementRequestDefaultTypeInternal; extern AdvertisementRequestDefaultTypeInternal _AdvertisementRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<45> AdvertisementRequest_class_data_; } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::mediums::AdvertisementData* Arena::CreateMaybeMessage<::location::nearby::mediums::AdvertisementData>(Arena*); -template<> ::location::nearby::mediums::AdvertisementRequest* Arena::CreateMaybeMessage<::location::nearby::mediums::AdvertisementRequest>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace mediums { // =================================================================== -class AdvertisementData final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementData) */ { - public: - inline AdvertisementData() : AdvertisementData(nullptr) {} - ~AdvertisementData() override; - explicit constexpr AdvertisementData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AdvertisementData(const AdvertisementData& from); - AdvertisementData(AdvertisementData&& from) noexcept - : AdvertisementData() { - *this = ::std::move(from); - } - - inline AdvertisementData& operator=(const AdvertisementData& from) { - CopyFrom(from); - return *this; - } - inline AdvertisementData& operator=(AdvertisementData&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AdvertisementData& default_instance() { - return *internal_default_instance(); - } - static inline const AdvertisementData* internal_default_instance() { - return reinterpret_cast( - &_AdvertisementData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(AdvertisementData& a, AdvertisementData& b) { - a.Swap(&b); - } - inline void Swap(AdvertisementData* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AdvertisementData* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AdvertisementData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AdvertisementData& from); - void MergeFrom(const AdvertisementData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AdvertisementData* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.AdvertisementData"; - } - protected: - explicit AdvertisementData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTagFieldNumber = 1, - kPublicKeyFieldNumber = 2, - kRxAdvertisementFieldNumber = 3, - }; - // optional bytes tag = 1; - bool has_tag() const; - private: - bool _internal_has_tag() const; - public: - void clear_tag(); - const std::string& tag() const; - template - void set_tag(ArgT0&& arg0, ArgT... args); - std::string* mutable_tag(); - PROTOBUF_NODISCARD std::string* release_tag(); - void set_allocated_tag(std::string* tag); - private: - const std::string& _internal_tag() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value); - std::string* _internal_mutable_tag(); - public: - - // optional bytes public_key = 2; - bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: - - // optional bytes rx_advertisement = 3; - bool has_rx_advertisement() const; - private: - bool _internal_has_rx_advertisement() const; - public: - void clear_rx_advertisement(); - const std::string& rx_advertisement() const; - template - void set_rx_advertisement(ArgT0&& arg0, ArgT... args); - std::string* mutable_rx_advertisement(); - PROTOBUF_NODISCARD std::string* release_rx_advertisement(); - void set_allocated_rx_advertisement(std::string* rx_advertisement); - private: - const std::string& _internal_rx_advertisement() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rx_advertisement(const std::string& value); - std::string* _internal_mutable_rx_advertisement(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.AdvertisementData) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rx_advertisement_; - friend struct ::TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto; -}; // ------------------------------------------------------------------- -class AdvertisementRequest final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementRequest) */ { +class AdvertisementRequest final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementRequest) */ { public: inline AdvertisementRequest() : AdvertisementRequest(nullptr) {} - ~AdvertisementRequest() override; - explicit constexpr AdvertisementRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~AdvertisementRequest() PROTOBUF_FINAL; - AdvertisementRequest(const AdvertisementRequest& from); - AdvertisementRequest(AdvertisementRequest&& from) noexcept - : AdvertisementRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AdvertisementRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AdvertisementRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR AdvertisementRequest(::google::protobuf::internal::ConstantInitialized); + + inline AdvertisementRequest(const AdvertisementRequest& from) : AdvertisementRequest(nullptr, from) {} + inline AdvertisementRequest(AdvertisementRequest&& from) noexcept + : AdvertisementRequest(nullptr, ::std::move(from)) {} inline AdvertisementRequest& operator=(const AdvertisementRequest& from) { CopyFrom(from); return *this; } inline AdvertisementRequest& operator=(AdvertisementRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -290,87 +107,102 @@ class AdvertisementRequest final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const AdvertisementRequest& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_AdvertisementRequest_default_instance_); } - static inline const AdvertisementRequest* internal_default_instance() { - return reinterpret_cast( - &_AdvertisementRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(AdvertisementRequest& a, AdvertisementRequest& b) { - a.Swap(&b); - } - inline void Swap(AdvertisementRequest* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(AdvertisementRequest& a, AdvertisementRequest& b) { a.Swap(&b); } + inline void Swap(AdvertisementRequest* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AdvertisementRequest* other) { + void UnsafeArenaSwap(AdvertisementRequest* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AdvertisementRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AdvertisementRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const AdvertisementRequest& from); - void MergeFrom(const AdvertisementRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const AdvertisementRequest& from) { AdvertisementRequest::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AdvertisementRequest* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.AdvertisementRequest"; - } - protected: - explicit AdvertisementRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AdvertisementRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.AdvertisementRequest"; } + + explicit AdvertisementRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AdvertisementRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AdvertisementRequest& from); + AdvertisementRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AdvertisementRequest&& from) noexcept + : AdvertisementRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kServiceIdFieldNumber = 1, kEndpointIdFieldNumber = 2, @@ -378,287 +210,529 @@ class AdvertisementRequest final : }; // optional string service_id = 1; bool has_service_id() const; - private: - bool _internal_has_service_id() const; - public: - void clear_service_id(); - const std::string& service_id() const; - template - void set_service_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id(); - PROTOBUF_NODISCARD std::string* release_service_id(); - void set_allocated_service_id(std::string* service_id); - private: - const std::string& _internal_service_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const std::string& value); - std::string* _internal_mutable_service_id(); - public: + void clear_service_id() ; + const ::std::string& service_id() const; + template + void set_service_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_service_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_service_id(); + void set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_service_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_service_id(); + + public: // optional string endpoint_id = 2; bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: // optional bytes public_key = 3; bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: // @@protoc_insertion_point(class_scope:location.nearby.mediums.AdvertisementRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AdvertisementRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr service_id_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<45> AdvertisementRequest_class_data_; +// ------------------------------------------------------------------- + +class AdvertisementData final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementData) */ { + public: + inline AdvertisementData() : AdvertisementData(nullptr) {} + ~AdvertisementData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AdvertisementData* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AdvertisementData)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR AdvertisementData(::google::protobuf::internal::ConstantInitialized); + + inline AdvertisementData(const AdvertisementData& from) : AdvertisementData(nullptr, from) {} + inline AdvertisementData(AdvertisementData&& from) noexcept + : AdvertisementData(nullptr, ::std::move(from)) {} + inline AdvertisementData& operator=(const AdvertisementData& from) { + CopyFrom(from); + return *this; + } + inline AdvertisementData& operator=(AdvertisementData&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const AdvertisementData& default_instance() { + return *reinterpret_cast( + &_AdvertisementData_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(AdvertisementData& a, AdvertisementData& b) { a.Swap(&b); } + inline void Swap(AdvertisementData* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdvertisementData* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AdvertisementData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const AdvertisementData& from); + void MergeFrom(const AdvertisementData& from) { AdvertisementData::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AdvertisementData* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.AdvertisementData"; } + + explicit AdvertisementData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AdvertisementData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AdvertisementData& from); + AdvertisementData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AdvertisementData&& from) noexcept + : AdvertisementData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTagFieldNumber = 1, + kPublicKeyFieldNumber = 2, + kRxAdvertisementFieldNumber = 3, + }; + // optional bytes tag = 1; + bool has_tag() const; + void clear_tag() ; + const ::std::string& tag() const; + template + void set_tag(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_tag(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_tag(); + void set_allocated_tag(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_tag() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_tag(); + + public: + // optional bytes public_key = 2; + bool has_public_key() const; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // optional bytes rx_advertisement = 3; + bool has_rx_advertisement() const; + void clear_rx_advertisement() ; + const ::std::string& rx_advertisement() const; + template + void set_rx_advertisement(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_rx_advertisement(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rx_advertisement(); + void set_allocated_rx_advertisement(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_rx_advertisement() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rx_advertisement(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rx_advertisement(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.AdvertisementData) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AdvertisementData& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr tag_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr rx_advertisement_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<42> AdvertisementData_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // AdvertisementData // optional bytes tag = 1; -inline bool AdvertisementData::_internal_has_tag() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AdvertisementData::has_tag() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AdvertisementData::has_tag() const { - return _internal_has_tag(); -} inline void AdvertisementData::clear_tag() { - tag_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tag_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& AdvertisementData::tag() const { +inline const ::std::string& AdvertisementData::tag() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementData.tag) return _internal_tag(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementData::set_tag(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - tag_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementData::set_tag(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.tag_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementData.tag) } -inline std::string* AdvertisementData::mutable_tag() { - std::string* _s = _internal_mutable_tag(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::mutable_tag() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_tag(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementData.tag) return _s; } -inline const std::string& AdvertisementData::_internal_tag() const { - return tag_.Get(); +inline const ::std::string& AdvertisementData::_internal_tag() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.tag_.Get(); } -inline void AdvertisementData::_internal_set_tag(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementData::_internal_set_tag(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tag_.Set(value, GetArena()); } -inline std::string* AdvertisementData::_internal_mutable_tag() { - _has_bits_[0] |= 0x00000001u; - return tag_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::_internal_mutable_tag() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.tag_.Mutable( GetArena()); } -inline std::string* AdvertisementData::release_tag() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementData::release_tag() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementData.tag) - if (!_internal_has_tag()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = tag_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.tag_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.tag_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementData::set_allocated_tag(std::string* tag) { - if (tag != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void AdvertisementData::set_allocated_tag(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - tag_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.tag_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.tag_.IsDefault()) { + _impl_.tag_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementData.tag) } // optional bytes public_key = 2; -inline bool AdvertisementData::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool AdvertisementData::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool AdvertisementData::has_public_key() const { - return _internal_has_public_key(); -} inline void AdvertisementData::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& AdvertisementData::public_key() const { +inline const ::std::string& AdvertisementData::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementData.public_key) return _internal_public_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementData::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementData::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementData.public_key) } -inline std::string* AdvertisementData::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementData.public_key) return _s; } -inline const std::string& AdvertisementData::_internal_public_key() const { - return public_key_.Get(); +inline const ::std::string& AdvertisementData::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); } -inline void AdvertisementData::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementData::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); } -inline std::string* AdvertisementData::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000002u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* AdvertisementData::release_public_key() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementData::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementData.public_key) - if (!_internal_has_public_key()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementData::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void AdvertisementData::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementData.public_key) } // optional bytes rx_advertisement = 3; -inline bool AdvertisementData::_internal_has_rx_advertisement() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool AdvertisementData::has_rx_advertisement() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool AdvertisementData::has_rx_advertisement() const { - return _internal_has_rx_advertisement(); -} inline void AdvertisementData::clear_rx_advertisement() { - rx_advertisement_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rx_advertisement_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& AdvertisementData::rx_advertisement() const { +inline const ::std::string& AdvertisementData::rx_advertisement() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementData.rx_advertisement) return _internal_rx_advertisement(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementData::set_rx_advertisement(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - rx_advertisement_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementData::set_rx_advertisement(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.rx_advertisement_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementData.rx_advertisement) } -inline std::string* AdvertisementData::mutable_rx_advertisement() { - std::string* _s = _internal_mutable_rx_advertisement(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::mutable_rx_advertisement() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_rx_advertisement(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementData.rx_advertisement) return _s; } -inline const std::string& AdvertisementData::_internal_rx_advertisement() const { - return rx_advertisement_.Get(); +inline const ::std::string& AdvertisementData::_internal_rx_advertisement() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rx_advertisement_.Get(); } -inline void AdvertisementData::_internal_set_rx_advertisement(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - rx_advertisement_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementData::_internal_set_rx_advertisement(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rx_advertisement_.Set(value, GetArena()); } -inline std::string* AdvertisementData::_internal_mutable_rx_advertisement() { - _has_bits_[0] |= 0x00000004u; - return rx_advertisement_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementData::_internal_mutable_rx_advertisement() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.rx_advertisement_.Mutable( GetArena()); } -inline std::string* AdvertisementData::release_rx_advertisement() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementData::release_rx_advertisement() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementData.rx_advertisement) - if (!_internal_has_rx_advertisement()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = rx_advertisement_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rx_advertisement_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rx_advertisement_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.rx_advertisement_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rx_advertisement_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementData::set_allocated_rx_advertisement(std::string* rx_advertisement) { - if (rx_advertisement != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void AdvertisementData::set_allocated_rx_advertisement(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - rx_advertisement_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rx_advertisement, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rx_advertisement_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rx_advertisement_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.rx_advertisement_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rx_advertisement_.IsDefault()) { + _impl_.rx_advertisement_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementData.rx_advertisement) } @@ -667,225 +741,224 @@ inline void AdvertisementData::set_allocated_rx_advertisement(std::string* rx_ad // AdvertisementRequest // optional string service_id = 1; -inline bool AdvertisementRequest::_internal_has_service_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool AdvertisementRequest::has_service_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool AdvertisementRequest::has_service_id() const { - return _internal_has_service_id(); -} inline void AdvertisementRequest::clear_service_id() { - service_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& AdvertisementRequest::service_id() const { +inline const ::std::string& AdvertisementRequest::service_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.service_id) return _internal_service_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementRequest::set_service_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementRequest::set_service_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.service_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.service_id) } -inline std::string* AdvertisementRequest::mutable_service_id() { - std::string* _s = _internal_mutable_service_id(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::mutable_service_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_service_id(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.service_id) return _s; } -inline const std::string& AdvertisementRequest::_internal_service_id() const { - return service_id_.Get(); +inline const ::std::string& AdvertisementRequest::_internal_service_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.service_id_.Get(); } -inline void AdvertisementRequest::_internal_set_service_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementRequest::_internal_set_service_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.service_id_.Set(value, GetArena()); } -inline std::string* AdvertisementRequest::_internal_mutable_service_id() { - _has_bits_[0] |= 0x00000001u; - return service_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::_internal_mutable_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.service_id_.Mutable( GetArena()); } -inline std::string* AdvertisementRequest::release_service_id() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementRequest::release_service_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.service_id) - if (!_internal_has_service_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.service_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementRequest::set_allocated_service_id(std::string* service_id) { - if (service_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void AdvertisementRequest::set_allocated_service_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - service_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.service_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.service_id_.IsDefault()) { + _impl_.service_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.service_id) } // optional string endpoint_id = 2; -inline bool AdvertisementRequest::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool AdvertisementRequest::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool AdvertisementRequest::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void AdvertisementRequest::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& AdvertisementRequest::endpoint_id() const { +inline const ::std::string& AdvertisementRequest::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementRequest::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementRequest::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.endpoint_id) } -inline std::string* AdvertisementRequest::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.endpoint_id) return _s; } -inline const std::string& AdvertisementRequest::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& AdvertisementRequest::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void AdvertisementRequest::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementRequest::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* AdvertisementRequest::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000002u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* AdvertisementRequest::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementRequest::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementRequest::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void AdvertisementRequest::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.endpoint_id) } // optional bytes public_key = 3; -inline bool AdvertisementRequest::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool AdvertisementRequest::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool AdvertisementRequest::has_public_key() const { - return _internal_has_public_key(); -} inline void AdvertisementRequest::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& AdvertisementRequest::public_key() const { +inline const ::std::string& AdvertisementRequest::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.public_key) return _internal_public_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AdvertisementRequest::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void AdvertisementRequest::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.public_key) } -inline std::string* AdvertisementRequest::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.public_key) return _s; } -inline const std::string& AdvertisementRequest::_internal_public_key() const { - return public_key_.Get(); +inline const ::std::string& AdvertisementRequest::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); } -inline void AdvertisementRequest::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void AdvertisementRequest::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); } -inline std::string* AdvertisementRequest::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000004u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL AdvertisementRequest::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* AdvertisementRequest::release_public_key() { +inline ::std::string* PROTOBUF_NULLABLE AdvertisementRequest::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.public_key) - if (!_internal_has_public_key()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AdvertisementRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void AdvertisementRequest::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.public_key) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace mediums } // namespace nearby } // namespace location + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fmediums_2fnfc_5fframes_2eproto_2epb_2eh diff --git a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.cc b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.cc index e5652b3a..217ad330 100644 --- a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.cc +++ b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.cc @@ -1,400 +1,491 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/web_rtc_signaling_frames.proto +// Protobuf C++ Version: 6.33.3 #include "proto/mediums/web_rtc_signaling_frames.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace location { namespace nearby { namespace mediums { -constexpr WebRtcSignalingFrame::WebRtcSignalingFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sender_id_(nullptr) - , type_(0) - , _oneof_case_{}{} -struct WebRtcSignalingFrameDefaultTypeInternal { - constexpr WebRtcSignalingFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WebRtcSignalingFrameDefaultTypeInternal() {} - union { - WebRtcSignalingFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WebRtcSignalingFrameDefaultTypeInternal _WebRtcSignalingFrame_default_instance_; -constexpr PeerId::PeerId( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct PeerIdDefaultTypeInternal { - constexpr PeerIdDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PeerIdDefaultTypeInternal() {} - union { - PeerId _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PeerIdDefaultTypeInternal _PeerId_default_instance_; -constexpr SessionDescription::SessionDescription( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +inline constexpr SessionDescription::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR SessionDescription::SessionDescription(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SessionDescription_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SessionDescriptionDefaultTypeInternal { - constexpr SessionDescriptionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SessionDescriptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SessionDescriptionDefaultTypeInternal() {} union { SessionDescription _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionDescriptionDefaultTypeInternal _SessionDescription_default_instance_; -constexpr IceCandidate::IceCandidate( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sdp_mid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sdp_m_line_index_(0){} -struct IceCandidateDefaultTypeInternal { - constexpr IceCandidateDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~IceCandidateDefaultTypeInternal() {} - union { - IceCandidate _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IceCandidateDefaultTypeInternal _IceCandidate_default_instance_; -constexpr IceCandidates::IceCandidates( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ice_candidates_(){} -struct IceCandidatesDefaultTypeInternal { - constexpr IceCandidatesDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~IceCandidatesDefaultTypeInternal() {} - union { - IceCandidates _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IceCandidatesDefaultTypeInternal _IceCandidates_default_instance_; -constexpr Offer::Offer( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_description_(nullptr){} -struct OfferDefaultTypeInternal { - constexpr OfferDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~OfferDefaultTypeInternal() {} - union { - Offer _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_; -constexpr Answer::Answer( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_description_(nullptr){} -struct AnswerDefaultTypeInternal { - constexpr AnswerDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AnswerDefaultTypeInternal() {} - union { - Answer _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_; -constexpr ReadyForSignalingPoke::ReadyForSignalingPoke( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionDescriptionDefaultTypeInternal _SessionDescription_default_instance_; + +inline constexpr ReadyForSignalingPoke::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR ReadyForSignalingPoke::ReadyForSignalingPoke(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ReadyForSignalingPoke_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ReadyForSignalingPokeDefaultTypeInternal { - constexpr ReadyForSignalingPokeDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReadyForSignalingPokeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReadyForSignalingPokeDefaultTypeInternal() {} union { ReadyForSignalingPoke _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ReadyForSignalingPokeDefaultTypeInternal _ReadyForSignalingPoke_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyForSignalingPokeDefaultTypeInternal _ReadyForSignalingPoke_default_instance_; + +inline constexpr PeerId::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR PeerId::PeerId(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PeerId_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PeerIdDefaultTypeInternal { + PROTOBUF_CONSTEXPR PeerIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PeerIdDefaultTypeInternal() {} + union { + PeerId _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerIdDefaultTypeInternal _PeerId_default_instance_; + +inline constexpr IceCandidate::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + sdp_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + sdp_mid_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + sdp_m_line_index_{0} {} + +template +PROTOBUF_CONSTEXPR IceCandidate::IceCandidate(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(IceCandidate_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct IceCandidateDefaultTypeInternal { + PROTOBUF_CONSTEXPR IceCandidateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~IceCandidateDefaultTypeInternal() {} + union { + IceCandidate _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IceCandidateDefaultTypeInternal _IceCandidate_default_instance_; + +inline constexpr Offer::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_description_{nullptr} {} + +template +PROTOBUF_CONSTEXPR Offer::Offer(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Offer_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct OfferDefaultTypeInternal { + PROTOBUF_CONSTEXPR OfferDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OfferDefaultTypeInternal() {} + union { + Offer _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OfferDefaultTypeInternal _Offer_default_instance_; + +inline constexpr IceCandidates::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ice_candidates_{} {} + +template +PROTOBUF_CONSTEXPR IceCandidates::IceCandidates(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(IceCandidates_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct IceCandidatesDefaultTypeInternal { + PROTOBUF_CONSTEXPR IceCandidatesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~IceCandidatesDefaultTypeInternal() {} + union { + IceCandidates _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IceCandidatesDefaultTypeInternal _IceCandidates_default_instance_; + +inline constexpr Answer::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_description_{nullptr} {} + +template +PROTOBUF_CONSTEXPR Answer::Answer(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Answer_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AnswerDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerDefaultTypeInternal() {} + union { + Answer _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerDefaultTypeInternal _Answer_default_instance_; + +inline constexpr WebRtcSignalingFrame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + sender_id_{nullptr}, + type_{static_cast< ::location::nearby::mediums::WebRtcSignalingFrame_FrameType >(0)}, + Frame_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR WebRtcSignalingFrame::WebRtcSignalingFrame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(WebRtcSignalingFrame_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct WebRtcSignalingFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR WebRtcSignalingFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~WebRtcSignalingFrameDefaultTypeInternal() {} + union { + WebRtcSignalingFrame _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebRtcSignalingFrameDefaultTypeInternal _WebRtcSignalingFrame_default_instance_; } // namespace mediums } // namespace nearby } // namespace location namespace location { namespace nearby { namespace mediums { -bool WebRtcSignalingFrame_FrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t WebRtcSignalingFrame_FrameType_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + WebRtcSignalingFrame_FrameType_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed WebRtcSignalingFrame_FrameType_strings[5] = {}; +static const char WebRtcSignalingFrame_FrameType_names[] = { + "ANSWER_TYPE" + "ICE_CANDIDATES_TYPE" + "OFFER_TYPE" + "READY_FOR_SIGNALING_POKE_TYPE" + "UNKNOWN_FRAME_TYPE" +}; -static const char WebRtcSignalingFrame_FrameType_names[] = - "ANSWER_TYPE" - "ICE_CANDIDATES_TYPE" - "OFFER_TYPE" - "READY_FOR_SIGNALING_POKE_TYPE" - "UNKNOWN_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry WebRtcSignalingFrame_FrameType_entries[] = { - { {WebRtcSignalingFrame_FrameType_names + 0, 11}, 2 }, - { {WebRtcSignalingFrame_FrameType_names + 11, 19}, 3 }, - { {WebRtcSignalingFrame_FrameType_names + 30, 10}, 1 }, - { {WebRtcSignalingFrame_FrameType_names + 40, 29}, 4 }, - { {WebRtcSignalingFrame_FrameType_names + 69, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry WebRtcSignalingFrame_FrameType_entries[] = { + {{&WebRtcSignalingFrame_FrameType_names[0], 11}, 2}, + {{&WebRtcSignalingFrame_FrameType_names[11], 19}, 3}, + {{&WebRtcSignalingFrame_FrameType_names[30], 10}, 1}, + {{&WebRtcSignalingFrame_FrameType_names[40], 29}, 4}, + {{&WebRtcSignalingFrame_FrameType_names[69], 18}, 0}, }; static const int WebRtcSignalingFrame_FrameType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_FRAME_TYPE - 2, // 1 -> OFFER_TYPE - 0, // 2 -> ANSWER_TYPE - 1, // 3 -> ICE_CANDIDATES_TYPE - 3, // 4 -> READY_FOR_SIGNALING_POKE_TYPE + 4, // 0 -> UNKNOWN_FRAME_TYPE + 2, // 1 -> OFFER_TYPE + 0, // 2 -> ANSWER_TYPE + 1, // 3 -> ICE_CANDIDATES_TYPE + 3, // 4 -> READY_FOR_SIGNALING_POKE_TYPE }; -const std::string& WebRtcSignalingFrame_FrameType_Name( - WebRtcSignalingFrame_FrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - WebRtcSignalingFrame_FrameType_entries, - WebRtcSignalingFrame_FrameType_entries_by_number, - 5, WebRtcSignalingFrame_FrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - WebRtcSignalingFrame_FrameType_entries, - WebRtcSignalingFrame_FrameType_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - WebRtcSignalingFrame_FrameType_strings[idx].get(); +const ::std::string& WebRtcSignalingFrame_FrameType_Name(WebRtcSignalingFrame_FrameType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + WebRtcSignalingFrame_FrameType_entries, WebRtcSignalingFrame_FrameType_entries_by_number, 5, + WebRtcSignalingFrame_FrameType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(WebRtcSignalingFrame_FrameType_entries, + WebRtcSignalingFrame_FrameType_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : WebRtcSignalingFrame_FrameType_strings[idx].get(); } -bool WebRtcSignalingFrame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebRtcSignalingFrame_FrameType* value) { + +bool WebRtcSignalingFrame_FrameType_Parse(::absl::string_view name, WebRtcSignalingFrame_FrameType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( WebRtcSignalingFrame_FrameType_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::UNKNOWN_FRAME_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::OFFER_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::ANSWER_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::ICE_CANDIDATES_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::READY_FOR_SIGNALING_POKE_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::FrameType_MIN; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::FrameType_MAX; -constexpr int WebRtcSignalingFrame::FrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - // =================================================================== class WebRtcSignalingFrame::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::location::nearby::mediums::PeerId& sender_id(const WebRtcSignalingFrame* msg); - static void set_has_sender_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::mediums::Offer& offer(const WebRtcSignalingFrame* msg); - static const ::location::nearby::mediums::Answer& answer(const WebRtcSignalingFrame* msg); - static const ::location::nearby::mediums::IceCandidates& ice_candidates(const WebRtcSignalingFrame* msg); - static const ::location::nearby::mediums::ReadyForSignalingPoke& ready_for_signaling_poke(const WebRtcSignalingFrame* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::location::nearby::mediums::WebRtcSignalingFrame, _impl_._oneof_case_); }; -const ::location::nearby::mediums::PeerId& -WebRtcSignalingFrame::_Internal::sender_id(const WebRtcSignalingFrame* msg) { - return *msg->sender_id_; -} -const ::location::nearby::mediums::Offer& -WebRtcSignalingFrame::_Internal::offer(const WebRtcSignalingFrame* msg) { - return *msg->Frame_.offer_; -} -const ::location::nearby::mediums::Answer& -WebRtcSignalingFrame::_Internal::answer(const WebRtcSignalingFrame* msg) { - return *msg->Frame_.answer_; -} -const ::location::nearby::mediums::IceCandidates& -WebRtcSignalingFrame::_Internal::ice_candidates(const WebRtcSignalingFrame* msg) { - return *msg->Frame_.ice_candidates_; -} -const ::location::nearby::mediums::ReadyForSignalingPoke& -WebRtcSignalingFrame::_Internal::ready_for_signaling_poke(const WebRtcSignalingFrame* msg) { - return *msg->Frame_.ready_for_signaling_poke_; -} -void WebRtcSignalingFrame::set_allocated_offer(::location::nearby::mediums::Offer* offer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void WebRtcSignalingFrame::set_allocated_offer(::location::nearby::mediums::Offer* PROTOBUF_NULLABLE offer) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (offer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::Offer>::GetOwningArena(offer); + ::google::protobuf::Arena* submessage_arena = offer->GetArena(); if (message_arena != submessage_arena) { - offer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, offer, submessage_arena); + offer = ::google::protobuf::internal::GetOwnedMessage(message_arena, offer, submessage_arena); } set_has_offer(); - Frame_.offer_ = offer; + _impl_.Frame_.offer_ = offer; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.offer) } -void WebRtcSignalingFrame::set_allocated_answer(::location::nearby::mediums::Answer* answer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void WebRtcSignalingFrame::set_allocated_answer(::location::nearby::mediums::Answer* PROTOBUF_NULLABLE answer) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (answer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::Answer>::GetOwningArena(answer); + ::google::protobuf::Arena* submessage_arena = answer->GetArena(); if (message_arena != submessage_arena) { - answer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, answer, submessage_arena); + answer = ::google::protobuf::internal::GetOwnedMessage(message_arena, answer, submessage_arena); } set_has_answer(); - Frame_.answer_ = answer; + _impl_.Frame_.answer_ = answer; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.answer) } -void WebRtcSignalingFrame::set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* ice_candidates) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void WebRtcSignalingFrame::set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE ice_candidates) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (ice_candidates) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::IceCandidates>::GetOwningArena(ice_candidates); + ::google::protobuf::Arena* submessage_arena = ice_candidates->GetArena(); if (message_arena != submessage_arena) { - ice_candidates = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ice_candidates, submessage_arena); + ice_candidates = ::google::protobuf::internal::GetOwnedMessage(message_arena, ice_candidates, submessage_arena); } set_has_ice_candidates(); - Frame_.ice_candidates_ = ice_candidates; + _impl_.Frame_.ice_candidates_ = ice_candidates; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) } -void WebRtcSignalingFrame::set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* ready_for_signaling_poke) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void WebRtcSignalingFrame::set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE ready_for_signaling_poke) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_Frame(); if (ready_for_signaling_poke) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::ReadyForSignalingPoke>::GetOwningArena(ready_for_signaling_poke); + ::google::protobuf::Arena* submessage_arena = ready_for_signaling_poke->GetArena(); if (message_arena != submessage_arena) { - ready_for_signaling_poke = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ready_for_signaling_poke, submessage_arena); + ready_for_signaling_poke = ::google::protobuf::internal::GetOwnedMessage(message_arena, ready_for_signaling_poke, submessage_arena); } set_has_ready_for_signaling_poke(); - Frame_.ready_for_signaling_poke_ = ready_for_signaling_poke; + _impl_.Frame_.ready_for_signaling_poke_ = ready_for_signaling_poke; } // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) } -WebRtcSignalingFrame::WebRtcSignalingFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +WebRtcSignalingFrame::WebRtcSignalingFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WebRtcSignalingFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.WebRtcSignalingFrame) } -WebRtcSignalingFrame::WebRtcSignalingFrame(const WebRtcSignalingFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_sender_id()) { - sender_id_ = new ::location::nearby::mediums::PeerId(*from.sender_id_); - } else { - sender_id_ = nullptr; - } - type_ = from.type_; - clear_has_Frame(); - switch (from.Frame_case()) { - case kOffer: { - _internal_mutable_offer()->::location::nearby::mediums::Offer::MergeFrom(from._internal_offer()); +PROTOBUF_NDEBUG_INLINE WebRtcSignalingFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::WebRtcSignalingFrame& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + Frame_{}, + _oneof_case_{from._oneof_case_[0]} {} + +WebRtcSignalingFrame::WebRtcSignalingFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const WebRtcSignalingFrame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, WebRtcSignalingFrame_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + WebRtcSignalingFrame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.sender_id_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sender_id_) + : nullptr; + _impl_.type_ = from._impl_.type_; + switch (Frame_case()) { + case FRAME_NOT_SET: break; - } - case kAnswer: { - _internal_mutable_answer()->::location::nearby::mediums::Answer::MergeFrom(from._internal_answer()); - break; - } - case kIceCandidates: { - _internal_mutable_ice_candidates()->::location::nearby::mediums::IceCandidates::MergeFrom(from._internal_ice_candidates()); - break; - } - case kReadyForSignalingPoke: { - _internal_mutable_ready_for_signaling_poke()->::location::nearby::mediums::ReadyForSignalingPoke::MergeFrom(from._internal_ready_for_signaling_poke()); - break; - } - case FRAME_NOT_SET: { - break; - } + case kOffer: + _impl_.Frame_.offer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.offer_); + break; + case kAnswer: + _impl_.Frame_.answer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.answer_); + break; + case kIceCandidates: + _impl_.Frame_.ice_candidates_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ice_candidates_); + break; + case kReadyForSignalingPoke: + _impl_.Frame_.ready_for_signaling_poke_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ready_for_signaling_poke_); + break; } + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.WebRtcSignalingFrame) } +PROTOBUF_NDEBUG_INLINE WebRtcSignalingFrame::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + Frame_{}, + _oneof_case_{} {} -inline void WebRtcSignalingFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&sender_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&sender_id_)) + sizeof(type_)); -clear_has_Frame(); +inline void WebRtcSignalingFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, sender_id_), + 0, + offsetof(Impl_, type_) - + offsetof(Impl_, sender_id_) + + sizeof(Impl_::type_)); } - WebRtcSignalingFrame::~WebRtcSignalingFrame() { // @@protoc_insertion_point(destructor:location.nearby.mediums.WebRtcSignalingFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void WebRtcSignalingFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete sender_id_; - if (has_Frame()) { - clear_Frame(); +inline void WebRtcSignalingFrame::SharedDtor(MessageLite& self) { + WebRtcSignalingFrame& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void WebRtcSignalingFrame::ArenaDtor(void* object) { - WebRtcSignalingFrame* _this = reinterpret_cast< WebRtcSignalingFrame* >(object); - (void)_this; -} -void WebRtcSignalingFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WebRtcSignalingFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.sender_id_; + if (this_.has_Frame()) { + this_.clear_Frame(); + } + this_._impl_.~Impl_(); } void WebRtcSignalingFrame::clear_Frame() { // @@protoc_insertion_point(one_of_clear_start:location.nearby.mediums.WebRtcSignalingFrame) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (Frame_case()) { case kOffer: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.offer_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.offer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.offer_ != nullptr) { + _impl_.Frame_.offer_->Clear(); + } } break; } case kAnswer: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.answer_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.answer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.answer_ != nullptr) { + _impl_.Frame_.answer_->Clear(); + } } break; } case kIceCandidates: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.ice_candidates_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.ice_candidates_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.ice_candidates_ != nullptr) { + _impl_.Frame_.ice_candidates_->Clear(); + } } break; } case kReadyForSignalingPoke: { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.ready_for_signaling_poke_; + if (GetArena() == nullptr) { + delete _impl_.Frame_.ready_for_signaling_poke_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.ready_for_signaling_poke_ != nullptr) { + _impl_.Frame_.ready_for_signaling_poke_->Clear(); + } } break; } @@ -402,1791 +493,2214 @@ void WebRtcSignalingFrame::clear_Frame() { break; } } - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } -void WebRtcSignalingFrame::Clear() { +inline void* PROTOBUF_NONNULL WebRtcSignalingFrame::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WebRtcSignalingFrame(arena); +} +constexpr auto WebRtcSignalingFrame::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WebRtcSignalingFrame), + alignof(WebRtcSignalingFrame)); +} +constexpr auto WebRtcSignalingFrame::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<45>{ + { + &_WebRtcSignalingFrame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &WebRtcSignalingFrame::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WebRtcSignalingFrame::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &WebRtcSignalingFrame::ByteSizeLong, + &WebRtcSignalingFrame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.WebRtcSignalingFrame", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<45> WebRtcSignalingFrame_class_data_ = + WebRtcSignalingFrame::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WebRtcSignalingFrame::GetClassData() const { + return WebRtcSignalingFrame_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 6, 6, 0, 2> +WebRtcSignalingFrame::_table_ = { + { + PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_._has_bits_), + 0, // no _extensions_ + 6, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + WebRtcSignalingFrame_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::WebRtcSignalingFrame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 4, + PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.type_)}}, + // optional .location.nearby.mediums.PeerId sender_id = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.PeerId sender_id = 1; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.type_), _Internal::kHasBitsOffset + 1, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // .location.nearby.mediums.Offer offer = 3; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.offer_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.Answer answer = 4; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.answer_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.IceCandidates ice_candidates = 5; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.ice_candidates_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6; + {PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.Frame_.ready_for_signaling_poke_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::PeerId>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::Offer>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::Answer>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidates>()}, + {::_pbi::TcParser::GetTable<::location::nearby::mediums::ReadyForSignalingPoke>()}, + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void WebRtcSignalingFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.WebRtcSignalingFrame) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(sender_id_ != nullptr); - sender_id_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.sender_id_ != nullptr); + _impl_.sender_id_->Clear(); } - type_ = 0; + _impl_.type_ = 0; clear_Frame(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* WebRtcSignalingFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.PeerId sender_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_sender_id(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::mediums::WebRtcSignalingFrame_FrameType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::mediums::WebRtcSignalingFrame_FrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.Offer offer = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_offer(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.Answer answer = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_answer(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.IceCandidates ice_candidates = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_ice_candidates(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_ready_for_signaling_poke(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WebRtcSignalingFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WebRtcSignalingFrame::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WebRtcSignalingFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WebRtcSignalingFrame::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WebRtcSignalingFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.WebRtcSignalingFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.PeerId sender_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::sender_id(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.sender_id_, this_._impl_.sender_id_->GetCachedSize(), target, + stream); } // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); } - switch (Frame_case()) { + switch (this_.Frame_case()) { case kOffer: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::offer(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.Frame_.offer_, this_._impl_.Frame_.offer_->GetCachedSize(), target, + stream); break; } case kAnswer: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::answer(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.Frame_.answer_, this_._impl_.Frame_.answer_->GetCachedSize(), target, + stream); break; } case kIceCandidates: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::ice_candidates(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.Frame_.ice_candidates_, this_._impl_.Frame_.ice_candidates_->GetCachedSize(), target, + stream); break; } case kReadyForSignalingPoke: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::ready_for_signaling_poke(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.Frame_.ready_for_signaling_poke_, this_._impl_.Frame_.ready_for_signaling_poke_->GetCachedSize(), target, + stream); break; } - default: ; + default: + break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.WebRtcSignalingFrame) return target; } -size_t WebRtcSignalingFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.WebRtcSignalingFrame) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WebRtcSignalingFrame::ByteSizeLong(const MessageLite& base) { + const WebRtcSignalingFrame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t WebRtcSignalingFrame::ByteSizeLong() const { + const WebRtcSignalingFrame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.WebRtcSignalingFrame) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.mediums.PeerId sender_id = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *sender_id_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sender_id_); } - // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - } - switch (Frame_case()) { + switch (this_.Frame_case()) { // .location.nearby.mediums.Offer offer = 3; case kOffer: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.offer_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.offer_); break; } // .location.nearby.mediums.Answer answer = 4; case kAnswer: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.answer_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.answer_); break; } // .location.nearby.mediums.IceCandidates ice_candidates = 5; case kIceCandidates: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.ice_candidates_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.ice_candidates_); break; } // .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6; case kReadyForSignalingPoke: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Frame_.ready_for_signaling_poke_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.Frame_.ready_for_signaling_poke_); break; } case FRAME_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void WebRtcSignalingFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void WebRtcSignalingFrame::MergeFrom(const WebRtcSignalingFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.WebRtcSignalingFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_sender_id()->::location::nearby::mediums::PeerId::MergeFrom(from._internal_sender_id()); - } - if (cached_has_bits & 0x00000002u) { - type_ = from.type_; - } - _has_bits_[0] |= cached_has_bits; +void WebRtcSignalingFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - switch (from.Frame_case()) { - case kOffer: { - _internal_mutable_offer()->::location::nearby::mediums::Offer::MergeFrom(from._internal_offer()); - break; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.WebRtcSignalingFrame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.sender_id_ != nullptr); + if (_this->_impl_.sender_id_ == nullptr) { + _this->_impl_.sender_id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sender_id_); + } else { + _this->_impl_.sender_id_->MergeFrom(*from._impl_.sender_id_); + } } - case kAnswer: { - _internal_mutable_answer()->::location::nearby::mediums::Answer::MergeFrom(from._internal_answer()); - break; - } - case kIceCandidates: { - _internal_mutable_ice_candidates()->::location::nearby::mediums::IceCandidates::MergeFrom(from._internal_ice_candidates()); - break; - } - case kReadyForSignalingPoke: { - _internal_mutable_ready_for_signaling_poke()->::location::nearby::mediums::ReadyForSignalingPoke::MergeFrom(from._internal_ready_for_signaling_poke()); - break; - } - case FRAME_NOT_SET: { - break; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.type_ = from._impl_.type_; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_Frame(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kOffer: { + if (oneof_needs_init) { + _this->_impl_.Frame_.offer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.offer_); + } else { + _this->_impl_.Frame_.offer_->CheckTypeAndMergeFrom(*from._impl_.Frame_.offer_); + } + break; + } + case kAnswer: { + if (oneof_needs_init) { + _this->_impl_.Frame_.answer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.answer_); + } else { + _this->_impl_.Frame_.answer_->CheckTypeAndMergeFrom(*from._impl_.Frame_.answer_); + } + break; + } + case kIceCandidates: { + if (oneof_needs_init) { + _this->_impl_.Frame_.ice_candidates_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ice_candidates_); + } else { + _this->_impl_.Frame_.ice_candidates_->CheckTypeAndMergeFrom(*from._impl_.Frame_.ice_candidates_); + } + break; + } + case kReadyForSignalingPoke: { + if (oneof_needs_init) { + _this->_impl_.Frame_.ready_for_signaling_poke_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.Frame_.ready_for_signaling_poke_); + } else { + _this->_impl_.Frame_.ready_for_signaling_poke_->CheckTypeAndMergeFrom(*from._impl_.Frame_.ready_for_signaling_poke_); + } + break; + } + case FRAME_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void WebRtcSignalingFrame::CopyFrom(const WebRtcSignalingFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.WebRtcSignalingFrame) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.WebRtcSignalingFrame) if (&from == this) return; Clear(); MergeFrom(from); } -bool WebRtcSignalingFrame::IsInitialized() const { - return true; -} -void WebRtcSignalingFrame::InternalSwap(WebRtcSignalingFrame* other) { - using std::swap; +void WebRtcSignalingFrame::InternalSwap(WebRtcSignalingFrame* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, type_) - + sizeof(WebRtcSignalingFrame::type_) - - PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, sender_id_)>( - reinterpret_cast(&sender_id_), - reinterpret_cast(&other->sender_id_)); - swap(Frame_, other->Frame_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.type_) + + sizeof(WebRtcSignalingFrame::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(WebRtcSignalingFrame, _impl_.sender_id_)>( + reinterpret_cast(&_impl_.sender_id_), + reinterpret_cast(&other->_impl_.sender_id_)); + swap(_impl_.Frame_, other->_impl_.Frame_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string WebRtcSignalingFrame::GetTypeName() const { - return "location.nearby.mediums.WebRtcSignalingFrame"; -} - - // =================================================================== class PeerId::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PeerId, _impl_._has_bits_); }; -PeerId::PeerId(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PeerId::PeerId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PeerId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.PeerId) } -PeerId::PeerId(const PeerId& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_id()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE PeerId::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::PeerId& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + id_(arena, from.id_) {} + +PeerId::PeerId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PeerId& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PeerId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PeerId* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.PeerId) } +PROTOBUF_NDEBUG_INLINE PeerId::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + id_(arena) {} -inline void PeerId::SharedCtor() { -id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void PeerId::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - PeerId::~PeerId() { // @@protoc_insertion_point(destructor:location.nearby.mediums.PeerId) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PeerId::SharedDtor(MessageLite& self) { + PeerId& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.id_.Destroy(); + this_._impl_.~Impl_(); } -inline void PeerId::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL PeerId::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PeerId(arena); +} +constexpr auto PeerId::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PeerId), + alignof(PeerId)); +} +constexpr auto PeerId::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<31>{ + { + &_PeerId_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PeerId::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PeerId::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PeerId::ByteSizeLong, + &PeerId::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PeerId, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.PeerId", + }; } -void PeerId::ArenaDtor(void* object) { - PeerId* _this = reinterpret_cast< PeerId* >(object); - (void)_this; -} -void PeerId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PeerId::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<31> PeerId_class_data_ = + PeerId::InternalGenerateClassData_(); -void PeerId::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PeerId::GetClassData() const { + return PeerId_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +PeerId::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PeerId, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PeerId_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::PeerId>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(PeerId, _impl_.id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string id = 1; + {PROTOBUF_FIELD_OFFSET(PeerId, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void PeerId::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.PeerId) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.id_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* PeerId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PeerId::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PeerId::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PeerId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PeerId::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PeerId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.PeerId) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.PeerId) return target; } -size_t PeerId::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PeerId) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PeerId::ByteSizeLong(const MessageLite& base) { + const PeerId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PeerId::ByteSizeLong() const { + const PeerId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.PeerId) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional string id = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); + { + // optional string id = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_id()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PeerId::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PeerId::MergeFrom(const PeerId& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PeerId) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_id()) { - _internal_set_id(from._internal_id()); +void PeerId::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.PeerId) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_id(from._internal_id()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PeerId::CopyFrom(const PeerId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PeerId) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.PeerId) if (&from == this) return; Clear(); MergeFrom(from); } -bool PeerId::IsInitialized() const { - return true; -} -void PeerId::InternalSwap(PeerId* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void PeerId::InternalSwap(PeerId* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &id_, lhs_arena, - &other->id_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); } -std::string PeerId::GetTypeName() const { - return "location.nearby.mediums.PeerId"; -} - - // =================================================================== class SessionDescription::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_description(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_._has_bits_); }; -SessionDescription::SessionDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SessionDescription::SessionDescription(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SessionDescription_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.SessionDescription) } -SessionDescription::SessionDescription(const SessionDescription& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE SessionDescription::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::SessionDescription& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + description_(arena, from.description_) {} + +SessionDescription::SessionDescription( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SessionDescription& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SessionDescription_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SessionDescription* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.SessionDescription) } +PROTOBUF_NDEBUG_INLINE SessionDescription::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + description_(arena) {} -inline void SessionDescription::SharedCtor() { -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void SessionDescription::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SessionDescription::~SessionDescription() { // @@protoc_insertion_point(destructor:location.nearby.mediums.SessionDescription) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SessionDescription::SharedDtor(MessageLite& self) { + SessionDescription& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.description_.Destroy(); + this_._impl_.~Impl_(); } -inline void SessionDescription::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SessionDescription::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SessionDescription(arena); +} +constexpr auto SessionDescription::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SessionDescription), + alignof(SessionDescription)); +} +constexpr auto SessionDescription::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_SessionDescription_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SessionDescription::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SessionDescription::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SessionDescription::ByteSizeLong, + &SessionDescription::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.SessionDescription", + }; } -void SessionDescription::ArenaDtor(void* object) { - SessionDescription* _this = reinterpret_cast< SessionDescription* >(object); - (void)_this; -} -void SessionDescription::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SessionDescription::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> SessionDescription_class_data_ = + SessionDescription::InternalGenerateClassData_(); -void SessionDescription::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SessionDescription::GetClassData() const { + return SessionDescription_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SessionDescription::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SessionDescription_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string description = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string description = 1; + {PROTOBUF_FIELD_OFFSET(SessionDescription, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SessionDescription::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.SessionDescription) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - description_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.description_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SessionDescription::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SessionDescription::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SessionDescription::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SessionDescription& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SessionDescription::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SessionDescription& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.SessionDescription) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string description = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_description(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_description(); + target = stream->WriteStringMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.SessionDescription) return target; } -size_t SessionDescription::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SessionDescription) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SessionDescription::ByteSizeLong(const MessageLite& base) { + const SessionDescription& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SessionDescription::ByteSizeLong() const { + const SessionDescription& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.SessionDescription) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional string description = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_description()); + { + // optional string description = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_description()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SessionDescription::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SessionDescription::MergeFrom(const SessionDescription& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.SessionDescription) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_description()) { - _internal_set_description(from._internal_description()); +void SessionDescription::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.SessionDescription) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_description(from._internal_description()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SessionDescription::CopyFrom(const SessionDescription& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SessionDescription) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.SessionDescription) if (&from == this) return; Clear(); MergeFrom(from); } -bool SessionDescription::IsInitialized() const { - return true; -} -void SessionDescription::InternalSwap(SessionDescription* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SessionDescription::InternalSwap(SessionDescription* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); } -std::string SessionDescription::GetTypeName() const { - return "location.nearby.mediums.SessionDescription"; -} - - // =================================================================== class IceCandidate::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_sdp(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_sdp_mid(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_sdp_m_line_index(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_._has_bits_); }; -IceCandidate::IceCandidate(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +IceCandidate::IceCandidate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IceCandidate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.IceCandidate) } -IceCandidate::IceCandidate(const IceCandidate& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_sdp()) { - sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(), - GetArenaForAllocation()); - } - sdp_mid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sdp_mid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_sdp_mid()) { - sdp_mid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp_mid(), - GetArenaForAllocation()); - } - sdp_m_line_index_ = from.sdp_m_line_index_; +PROTOBUF_NDEBUG_INLINE IceCandidate::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::IceCandidate& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + sdp_(arena, from.sdp_), + sdp_mid_(arena, from.sdp_mid_) {} + +IceCandidate::IceCandidate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const IceCandidate& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IceCandidate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + IceCandidate* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.sdp_m_line_index_ = from._impl_.sdp_m_line_index_; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.IceCandidate) } +PROTOBUF_NDEBUG_INLINE IceCandidate::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + sdp_(arena), + sdp_mid_(arena) {} -inline void IceCandidate::SharedCtor() { -sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -sdp_mid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sdp_mid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -sdp_m_line_index_ = 0; +inline void IceCandidate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.sdp_m_line_index_ = {}; } - IceCandidate::~IceCandidate() { // @@protoc_insertion_point(destructor:location.nearby.mediums.IceCandidate) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void IceCandidate::SharedDtor(MessageLite& self) { + IceCandidate& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.sdp_.Destroy(); + this_._impl_.sdp_mid_.Destroy(); + this_._impl_.~Impl_(); } -inline void IceCandidate::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sdp_mid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL IceCandidate::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) IceCandidate(arena); +} +constexpr auto IceCandidate::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IceCandidate), + alignof(IceCandidate)); +} +constexpr auto IceCandidate::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<37>{ + { + &_IceCandidate_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &IceCandidate::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &IceCandidate::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &IceCandidate::ByteSizeLong, + &IceCandidate::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.IceCandidate", + }; } -void IceCandidate::ArenaDtor(void* object) { - IceCandidate* _this = reinterpret_cast< IceCandidate* >(object); - (void)_this; -} -void IceCandidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void IceCandidate::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<37> IceCandidate_class_data_ = + IceCandidate::InternalGenerateClassData_(); -void IceCandidate::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +IceCandidate::GetClassData() const { + return IceCandidate_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +IceCandidate::_table_ = { + { + PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + IceCandidate_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidate>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string sdp = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_)}}, + // optional string sdp_mid = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_mid_)}}, + // optional int32 sdp_m_line_index = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_m_line_index_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string sdp = 1; + {PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string sdp_mid = 2; + {PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_mid_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 sdp_m_line_index = 3; + {PROTOBUF_FIELD_OFFSET(IceCandidate, _impl_.sdp_m_line_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void IceCandidate::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IceCandidate) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - sdp_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.sdp_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - sdp_mid_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.sdp_mid_.ClearNonDefaultToEmpty(); } } - sdp_m_line_index_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.sdp_m_line_index_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* IceCandidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string sdp = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_sdp(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string sdp_mid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_sdp_mid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 sdp_m_line_index = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_sdp_m_line_index(&has_bits); - sdp_m_line_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* IceCandidate::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL IceCandidate::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const IceCandidate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL IceCandidate::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const IceCandidate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IceCandidate) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string sdp = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_sdp(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_sdp(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string sdp_mid = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_sdp_mid(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_sdp_mid(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional int32 sdp_m_line_index = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_sdp_m_line_index(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_sdp_m_line_index(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.IceCandidate) return target; } -size_t IceCandidate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidate) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t IceCandidate::ByteSizeLong(const MessageLite& base) { + const IceCandidate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t IceCandidate::ByteSizeLong() const { + const IceCandidate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidate) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string sdp = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_sdp()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_sdp()); } - // optional string sdp_mid = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_sdp_mid()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_sdp_mid()); } - // optional int32 sdp_m_line_index = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdp_m_line_index()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_sdp_m_line_index()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void IceCandidate::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void IceCandidate::MergeFrom(const IceCandidate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IceCandidate) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_sdp(from._internal_sdp()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_sdp_mid(from._internal_sdp_mid()); - } - if (cached_has_bits & 0x00000004u) { - sdp_m_line_index_ = from.sdp_m_line_index_; - } - _has_bits_[0] |= cached_has_bits; +void IceCandidate::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IceCandidate) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_sdp(from._internal_sdp()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_sdp_mid(from._internal_sdp_mid()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.sdp_m_line_index_ = from._impl_.sdp_m_line_index_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void IceCandidate::CopyFrom(const IceCandidate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidate) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidate) if (&from == this) return; Clear(); MergeFrom(from); } -bool IceCandidate::IsInitialized() const { - return true; -} -void IceCandidate::InternalSwap(IceCandidate* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void IceCandidate::InternalSwap(IceCandidate* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sdp_, lhs_arena, - &other->sdp_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sdp_mid_, lhs_arena, - &other->sdp_mid_, rhs_arena - ); - swap(sdp_m_line_index_, other->sdp_m_line_index_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_, &other->_impl_.sdp_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_mid_, &other->_impl_.sdp_mid_, arena); + swap(_impl_.sdp_m_line_index_, other->_impl_.sdp_m_line_index_); } -std::string IceCandidate::GetTypeName() const { - return "location.nearby.mediums.IceCandidate"; -} - - // =================================================================== class IceCandidates::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._has_bits_); }; -IceCandidates::IceCandidates(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - ice_candidates_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +IceCandidates::IceCandidates(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IceCandidates_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.IceCandidates) } -IceCandidates::IceCandidates(const IceCandidates& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - ice_candidates_(from.ice_candidates_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE IceCandidates::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::IceCandidates& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + ice_candidates_{visibility, arena, from.ice_candidates_} {} + +IceCandidates::IceCandidates( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const IceCandidates& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, IceCandidates_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + IceCandidates* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.IceCandidates) } +PROTOBUF_NDEBUG_INLINE IceCandidates::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + ice_candidates_{visibility, arena} {} -inline void IceCandidates::SharedCtor() { +inline void IceCandidates::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - IceCandidates::~IceCandidates() { // @@protoc_insertion_point(destructor:location.nearby.mediums.IceCandidates) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void IceCandidates::SharedDtor(MessageLite& self) { + IceCandidates& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void IceCandidates::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL IceCandidates::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) IceCandidates(arena); +} +constexpr auto IceCandidates::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_) + + decltype(IceCandidates::_impl_.ice_candidates_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(IceCandidates), alignof(IceCandidates), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&IceCandidates::PlacementNew_, + sizeof(IceCandidates), + alignof(IceCandidates)); + } +} +constexpr auto IceCandidates::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<38>{ + { + &_IceCandidates_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &IceCandidates::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &IceCandidates::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &IceCandidates::ByteSizeLong, + &IceCandidates::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.IceCandidates", + }; } -void IceCandidates::ArenaDtor(void* object) { - IceCandidates* _this = reinterpret_cast< IceCandidates* >(object); - (void)_this; -} -void IceCandidates::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void IceCandidates::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<38> IceCandidates_class_data_ = + IceCandidates::InternalGenerateClassData_(); -void IceCandidates::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +IceCandidates::GetClassData() const { + return IceCandidates_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +IceCandidates::_table_ = { + { + PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + IceCandidates_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidates>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; + {::_pbi::TcParser::FastMtR1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; + {PROTOBUF_FIELD_OFFSET(IceCandidates, _impl_.ice_candidates_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::IceCandidate>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void IceCandidates::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.IceCandidates) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ice_candidates_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.ice_candidates_.Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* IceCandidates::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_ice_candidates(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* IceCandidates::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL IceCandidates::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const IceCandidates& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL IceCandidates::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const IceCandidates& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.IceCandidates) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_ice_candidates_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_ice_candidates(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_ice_candidates_size()); + i < n; i++) { + const auto& repfield = this_._internal_ice_candidates().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.IceCandidates) return target; } -size_t IceCandidates::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidates) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t IceCandidates::ByteSizeLong(const MessageLite& base) { + const IceCandidates& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t IceCandidates::ByteSizeLong() const { + const IceCandidates& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.IceCandidates) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; - total_size += 1UL * this->_internal_ice_candidates_size(); - for (const auto& msg : this->ice_candidates_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_ice_candidates_size(); + for (const auto& msg : this_._internal_ice_candidates()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void IceCandidates::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void IceCandidates::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IceCandidates) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void IceCandidates::MergeFrom(const IceCandidates& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.IceCandidates) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - ice_candidates_.MergeFrom(from.ice_candidates_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_ice_candidates()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_ice_candidates()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void IceCandidates::CopyFrom(const IceCandidates& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidates) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.IceCandidates) if (&from == this) return; Clear(); MergeFrom(from); } -bool IceCandidates::IsInitialized() const { - return true; -} -void IceCandidates::InternalSwap(IceCandidates* other) { - using std::swap; +void IceCandidates::InternalSwap(IceCandidates* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ice_candidates_.InternalSwap(&other->ice_candidates_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.ice_candidates_.InternalSwap(&other->_impl_.ice_candidates_); } -std::string IceCandidates::GetTypeName() const { - return "location.nearby.mediums.IceCandidates"; -} - - // =================================================================== class Offer::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::location::nearby::mediums::SessionDescription& session_description(const Offer* msg); - static void set_has_session_description(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Offer, _impl_._has_bits_); }; -const ::location::nearby::mediums::SessionDescription& -Offer::_Internal::session_description(const Offer* msg) { - return *msg->session_description_; -} -Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Offer::Offer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Offer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.Offer) } -Offer::Offer(const Offer& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_session_description()) { - session_description_ = new ::location::nearby::mediums::SessionDescription(*from.session_description_); - } else { - session_description_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE Offer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::Offer& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +Offer::Offer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Offer& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Offer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Offer* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.session_description_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.Offer) } +PROTOBUF_NDEBUG_INLINE Offer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void Offer::SharedCtor() { -session_description_ = nullptr; +inline void Offer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.session_description_ = {}; } - Offer::~Offer() { // @@protoc_insertion_point(destructor:location.nearby.mediums.Offer) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Offer::SharedDtor(MessageLite& self) { + Offer& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.session_description_; + this_._impl_.~Impl_(); } -inline void Offer::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete session_description_; +inline void* PROTOBUF_NONNULL Offer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Offer(arena); +} +constexpr auto Offer::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Offer), + alignof(Offer)); +} +constexpr auto Offer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<30>{ + { + &_Offer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Offer::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Offer::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Offer::ByteSizeLong, + &Offer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Offer, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.Offer", + }; } -void Offer::ArenaDtor(void* object) { - Offer* _this = reinterpret_cast< Offer* >(object); - (void)_this; -} -void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Offer::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<30> Offer_class_data_ = + Offer::InternalGenerateClassData_(); -void Offer::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Offer::GetClassData() const { + return Offer_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +Offer::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Offer, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + Offer_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::Offer>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.SessionDescription session_description = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Offer, _impl_.session_description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.SessionDescription session_description = 1; + {PROTOBUF_FIELD_OFFSET(Offer, _impl_.session_description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Offer::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.Offer) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(session_description_ != nullptr); - session_description_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.session_description_ != nullptr); + _impl_.session_description_->Clear(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.SessionDescription session_description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_session_description(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Offer::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Offer::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Offer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Offer::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Offer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.Offer) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.SessionDescription session_description = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::session_description(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.session_description_, this_._impl_.session_description_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.Offer) return target; } -size_t Offer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Offer) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Offer::ByteSizeLong(const MessageLite& base) { + const Offer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Offer::ByteSizeLong() const { + const Offer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Offer) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.mediums.SessionDescription session_description = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *session_description_); + { + // optional .location.nearby.mediums.SessionDescription session_description = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.session_description_); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Offer::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Offer::MergeFrom(const Offer& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.Offer) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_session_description()) { - _internal_mutable_session_description()->::location::nearby::mediums::SessionDescription::MergeFrom(from._internal_session_description()); +void Offer::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.Offer) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.session_description_ != nullptr); + if (_this->_impl_.session_description_ == nullptr) { + _this->_impl_.session_description_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_); + } else { + _this->_impl_.session_description_->MergeFrom(*from._impl_.session_description_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Offer::CopyFrom(const Offer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Offer) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Offer) if (&from == this) return; Clear(); MergeFrom(from); } -bool Offer::IsInitialized() const { - return true; -} -void Offer::InternalSwap(Offer* other) { - using std::swap; +void Offer::InternalSwap(Offer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(session_description_, other->session_description_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_description_, other->_impl_.session_description_); } -std::string Offer::GetTypeName() const { - return "location.nearby.mediums.Offer"; -} - - // =================================================================== class Answer::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::location::nearby::mediums::SessionDescription& session_description(const Answer* msg); - static void set_has_session_description(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Answer, _impl_._has_bits_); }; -const ::location::nearby::mediums::SessionDescription& -Answer::_Internal::session_description(const Answer* msg) { - return *msg->session_description_; -} -Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Answer::Answer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Answer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.Answer) } -Answer::Answer(const Answer& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_session_description()) { - session_description_ = new ::location::nearby::mediums::SessionDescription(*from.session_description_); - } else { - session_description_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE Answer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::location::nearby::mediums::Answer& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +Answer::Answer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Answer& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Answer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Answer* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.session_description_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.Answer) } +PROTOBUF_NDEBUG_INLINE Answer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void Answer::SharedCtor() { -session_description_ = nullptr; +inline void Answer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.session_description_ = {}; } - Answer::~Answer() { // @@protoc_insertion_point(destructor:location.nearby.mediums.Answer) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Answer::SharedDtor(MessageLite& self) { + Answer& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.session_description_; + this_._impl_.~Impl_(); } -inline void Answer::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete session_description_; +inline void* PROTOBUF_NONNULL Answer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Answer(arena); +} +constexpr auto Answer::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Answer), + alignof(Answer)); +} +constexpr auto Answer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<31>{ + { + &_Answer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Answer::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Answer::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Answer::ByteSizeLong, + &Answer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Answer, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.Answer", + }; } -void Answer::ArenaDtor(void* object) { - Answer* _this = reinterpret_cast< Answer* >(object); - (void)_this; -} -void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Answer::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<31> Answer_class_data_ = + Answer::InternalGenerateClassData_(); -void Answer::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Answer::GetClassData() const { + return Answer_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +Answer::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Answer, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + Answer_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::Answer>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.mediums.SessionDescription session_description = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Answer, _impl_.session_description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.mediums.SessionDescription session_description = 1; + {PROTOBUF_FIELD_OFFSET(Answer, _impl_.session_description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::location::nearby::mediums::SessionDescription>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Answer::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.Answer) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(session_description_ != nullptr); - session_description_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.session_description_ != nullptr); + _impl_.session_description_->Clear(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.mediums.SessionDescription session_description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_session_description(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Answer::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Answer::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Answer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Answer::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Answer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.Answer) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.mediums.SessionDescription session_description = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::session_description(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.session_description_, this_._impl_.session_description_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.Answer) return target; } -size_t Answer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Answer) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Answer::ByteSizeLong(const MessageLite& base) { + const Answer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Answer::ByteSizeLong() const { + const Answer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.Answer) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.mediums.SessionDescription session_description = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *session_description_); + { + // optional .location.nearby.mediums.SessionDescription session_description = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.session_description_); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Answer::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Answer::MergeFrom(const Answer& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.Answer) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_session_description()) { - _internal_mutable_session_description()->::location::nearby::mediums::SessionDescription::MergeFrom(from._internal_session_description()); +void Answer::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.Answer) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.session_description_ != nullptr); + if (_this->_impl_.session_description_ == nullptr) { + _this->_impl_.session_description_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_description_); + } else { + _this->_impl_.session_description_->MergeFrom(*from._impl_.session_description_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Answer::CopyFrom(const Answer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Answer) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.Answer) if (&from == this) return; Clear(); MergeFrom(from); } -bool Answer::IsInitialized() const { - return true; -} -void Answer::InternalSwap(Answer* other) { - using std::swap; +void Answer::InternalSwap(Answer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(session_description_, other->session_description_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_description_, other->_impl_.session_description_); } -std::string Answer::GetTypeName() const { - return "location.nearby.mediums.Answer"; -} - - // =================================================================== class ReadyForSignalingPoke::_Internal { public: }; -ReadyForSignalingPoke::ReadyForSignalingPoke(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ReadyForSignalingPoke::ReadyForSignalingPoke(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ReadyForSignalingPoke_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:location.nearby.mediums.ReadyForSignalingPoke) } -ReadyForSignalingPoke::ReadyForSignalingPoke(const ReadyForSignalingPoke& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.mediums.ReadyForSignalingPoke) +ReadyForSignalingPoke::ReadyForSignalingPoke( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReadyForSignalingPoke& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ReadyForSignalingPoke_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE ReadyForSignalingPoke::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void ReadyForSignalingPoke::SharedCtor() { +inline void ReadyForSignalingPoke::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - ReadyForSignalingPoke::~ReadyForSignalingPoke() { // @@protoc_insertion_point(destructor:location.nearby.mediums.ReadyForSignalingPoke) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ReadyForSignalingPoke::SharedDtor(MessageLite& self) { + ReadyForSignalingPoke& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void ReadyForSignalingPoke::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL ReadyForSignalingPoke::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ReadyForSignalingPoke(arena); +} +constexpr auto ReadyForSignalingPoke::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ReadyForSignalingPoke), + alignof(ReadyForSignalingPoke)); +} +constexpr auto ReadyForSignalingPoke::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<46>{ + { + &_ReadyForSignalingPoke_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReadyForSignalingPoke::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReadyForSignalingPoke::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ReadyForSignalingPoke::ByteSizeLong, + &ReadyForSignalingPoke::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReadyForSignalingPoke, _impl_._cached_size_), + true, + }, + "location.nearby.mediums.ReadyForSignalingPoke", + }; } -void ReadyForSignalingPoke::ArenaDtor(void* object) { - ReadyForSignalingPoke* _this = reinterpret_cast< ReadyForSignalingPoke* >(object); - (void)_this; -} -void ReadyForSignalingPoke::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ReadyForSignalingPoke::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<46> ReadyForSignalingPoke_class_data_ = + ReadyForSignalingPoke::InternalGenerateClassData_(); -void ReadyForSignalingPoke::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ReadyForSignalingPoke::GetClassData() const { + return ReadyForSignalingPoke_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +ReadyForSignalingPoke::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ReadyForSignalingPoke_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::location::nearby::mediums::ReadyForSignalingPoke>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ReadyForSignalingPoke::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.mediums.ReadyForSignalingPoke) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ReadyForSignalingPoke::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ReadyForSignalingPoke::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ReadyForSignalingPoke::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ReadyForSignalingPoke& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ReadyForSignalingPoke::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ReadyForSignalingPoke& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:location.nearby.mediums.ReadyForSignalingPoke) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:location.nearby.mediums.ReadyForSignalingPoke) return target; } -size_t ReadyForSignalingPoke::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ReadyForSignalingPoke) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ReadyForSignalingPoke::ByteSizeLong(const MessageLite& base) { + const ReadyForSignalingPoke& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ReadyForSignalingPoke::ByteSizeLong() const { + const ReadyForSignalingPoke& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:location.nearby.mediums.ReadyForSignalingPoke) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ReadyForSignalingPoke::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void ReadyForSignalingPoke::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ReadyForSignalingPoke) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void ReadyForSignalingPoke::MergeFrom(const ReadyForSignalingPoke& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.mediums.ReadyForSignalingPoke) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ReadyForSignalingPoke::CopyFrom(const ReadyForSignalingPoke& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ReadyForSignalingPoke) + // @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.mediums.ReadyForSignalingPoke) if (&from == this) return; Clear(); MergeFrom(from); } -bool ReadyForSignalingPoke::IsInitialized() const { - return true; -} -void ReadyForSignalingPoke::InternalSwap(ReadyForSignalingPoke* other) { - using std::swap; +void ReadyForSignalingPoke::InternalSwap(ReadyForSignalingPoke* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string ReadyForSignalingPoke::GetTypeName() const { - return "location.nearby.mediums.ReadyForSignalingPoke"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::WebRtcSignalingFrame* Arena::CreateMaybeMessage< ::location::nearby::mediums::WebRtcSignalingFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::WebRtcSignalingFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::PeerId* Arena::CreateMaybeMessage< ::location::nearby::mediums::PeerId >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::PeerId >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::SessionDescription* Arena::CreateMaybeMessage< ::location::nearby::mediums::SessionDescription >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::SessionDescription >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::IceCandidate* Arena::CreateMaybeMessage< ::location::nearby::mediums::IceCandidate >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::IceCandidate >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::IceCandidates* Arena::CreateMaybeMessage< ::location::nearby::mediums::IceCandidates >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::IceCandidates >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::Offer* Arena::CreateMaybeMessage< ::location::nearby::mediums::Offer >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::Offer >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::Answer* Arena::CreateMaybeMessage< ::location::nearby::mediums::Answer >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::Answer >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::mediums::ReadyForSignalingPoke* Arena::CreateMaybeMessage< ::location::nearby::mediums::ReadyForSignalingPoke >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::mediums::ReadyForSignalingPoke >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h index 3cb8ffb5..2294071e 100644 --- a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h +++ b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h @@ -1,148 +1,162 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/mediums/web_rtc_signaling_frames.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto +#ifndef proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto_2epb_2eh +#define proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace location { namespace nearby { namespace mediums { +enum WebRtcSignalingFrame_FrameType : int; +extern const uint32_t WebRtcSignalingFrame_FrameType_internal_data_[]; class Answer; struct AnswerDefaultTypeInternal; extern AnswerDefaultTypeInternal _Answer_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<31> Answer_class_data_; class IceCandidate; struct IceCandidateDefaultTypeInternal; extern IceCandidateDefaultTypeInternal _IceCandidate_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<37> IceCandidate_class_data_; class IceCandidates; struct IceCandidatesDefaultTypeInternal; extern IceCandidatesDefaultTypeInternal _IceCandidates_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<38> IceCandidates_class_data_; class Offer; struct OfferDefaultTypeInternal; extern OfferDefaultTypeInternal _Offer_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<30> Offer_class_data_; class PeerId; struct PeerIdDefaultTypeInternal; extern PeerIdDefaultTypeInternal _PeerId_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<31> PeerId_class_data_; class ReadyForSignalingPoke; struct ReadyForSignalingPokeDefaultTypeInternal; extern ReadyForSignalingPokeDefaultTypeInternal _ReadyForSignalingPoke_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<46> ReadyForSignalingPoke_class_data_; class SessionDescription; struct SessionDescriptionDefaultTypeInternal; extern SessionDescriptionDefaultTypeInternal _SessionDescription_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> SessionDescription_class_data_; class WebRtcSignalingFrame; struct WebRtcSignalingFrameDefaultTypeInternal; extern WebRtcSignalingFrameDefaultTypeInternal _WebRtcSignalingFrame_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<45> WebRtcSignalingFrame_class_data_; } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::mediums::Answer* Arena::CreateMaybeMessage<::location::nearby::mediums::Answer>(Arena*); -template<> ::location::nearby::mediums::IceCandidate* Arena::CreateMaybeMessage<::location::nearby::mediums::IceCandidate>(Arena*); -template<> ::location::nearby::mediums::IceCandidates* Arena::CreateMaybeMessage<::location::nearby::mediums::IceCandidates>(Arena*); -template<> ::location::nearby::mediums::Offer* Arena::CreateMaybeMessage<::location::nearby::mediums::Offer>(Arena*); -template<> ::location::nearby::mediums::PeerId* Arena::CreateMaybeMessage<::location::nearby::mediums::PeerId>(Arena*); -template<> ::location::nearby::mediums::ReadyForSignalingPoke* Arena::CreateMaybeMessage<::location::nearby::mediums::ReadyForSignalingPoke>(Arena*); -template<> ::location::nearby::mediums::SessionDescription* Arena::CreateMaybeMessage<::location::nearby::mediums::SessionDescription>(Arena*); -template<> ::location::nearby::mediums::WebRtcSignalingFrame* Arena::CreateMaybeMessage<::location::nearby::mediums::WebRtcSignalingFrame>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::mediums::WebRtcSignalingFrame_FrameType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::mediums::WebRtcSignalingFrame_FrameType>; +} // namespace protobuf +} // namespace google + namespace location { namespace nearby { namespace mediums { - enum WebRtcSignalingFrame_FrameType : int { WebRtcSignalingFrame_FrameType_UNKNOWN_FRAME_TYPE = 0, WebRtcSignalingFrame_FrameType_OFFER_TYPE = 1, WebRtcSignalingFrame_FrameType_ANSWER_TYPE = 2, WebRtcSignalingFrame_FrameType_ICE_CANDIDATES_TYPE = 3, - WebRtcSignalingFrame_FrameType_READY_FOR_SIGNALING_POKE_TYPE = 4 + WebRtcSignalingFrame_FrameType_READY_FOR_SIGNALING_POKE_TYPE = 4, }; -bool WebRtcSignalingFrame_FrameType_IsValid(int value); -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame_FrameType_FrameType_MIN = WebRtcSignalingFrame_FrameType_UNKNOWN_FRAME_TYPE; -constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame_FrameType_FrameType_MAX = WebRtcSignalingFrame_FrameType_READY_FOR_SIGNALING_POKE_TYPE; -constexpr int WebRtcSignalingFrame_FrameType_FrameType_ARRAYSIZE = WebRtcSignalingFrame_FrameType_FrameType_MAX + 1; -const std::string& WebRtcSignalingFrame_FrameType_Name(WebRtcSignalingFrame_FrameType value); -template -inline const std::string& WebRtcSignalingFrame_FrameType_Name(T enum_t_value) { +extern const uint32_t WebRtcSignalingFrame_FrameType_internal_data_[]; +inline constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame_FrameType_FrameType_MIN = + static_cast(0); +inline constexpr WebRtcSignalingFrame_FrameType WebRtcSignalingFrame_FrameType_FrameType_MAX = + static_cast(4); +inline bool WebRtcSignalingFrame_FrameType_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int WebRtcSignalingFrame_FrameType_FrameType_ARRAYSIZE = 4 + 1; +const ::std::string& WebRtcSignalingFrame_FrameType_Name(WebRtcSignalingFrame_FrameType value); +template +const ::std::string& WebRtcSignalingFrame_FrameType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function WebRtcSignalingFrame_FrameType_Name."); - return WebRtcSignalingFrame_FrameType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to FrameType_Name()."); + return WebRtcSignalingFrame_FrameType_Name(static_cast(value)); } bool WebRtcSignalingFrame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebRtcSignalingFrame_FrameType* value); + ::absl::string_view name, WebRtcSignalingFrame_FrameType* PROTOBUF_NONNULL value); + // =================================================================== -class WebRtcSignalingFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.WebRtcSignalingFrame) */ { + +// ------------------------------------------------------------------- + +class SessionDescription final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.SessionDescription) */ { public: - inline WebRtcSignalingFrame() : WebRtcSignalingFrame(nullptr) {} - ~WebRtcSignalingFrame() override; - explicit constexpr WebRtcSignalingFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SessionDescription() : SessionDescription(nullptr) {} + ~SessionDescription() PROTOBUF_FINAL; - WebRtcSignalingFrame(const WebRtcSignalingFrame& from); - WebRtcSignalingFrame(WebRtcSignalingFrame&& from) noexcept - : WebRtcSignalingFrame() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SessionDescription* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SessionDescription)); } +#endif - inline WebRtcSignalingFrame& operator=(const WebRtcSignalingFrame& from) { + template + explicit PROTOBUF_CONSTEXPR SessionDescription(::google::protobuf::internal::ConstantInitialized); + + inline SessionDescription(const SessionDescription& from) : SessionDescription(nullptr, from) {} + inline SessionDescription(SessionDescription&& from) noexcept + : SessionDescription(nullptr, ::std::move(from)) {} + inline SessionDescription& operator=(const SessionDescription& from) { CopyFrom(from); return *this; } - inline WebRtcSignalingFrame& operator=(WebRtcSignalingFrame&& from) noexcept { + inline SessionDescription& operator=(SessionDescription&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -150,15 +164,1315 @@ class WebRtcSignalingFrame final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SessionDescription& default_instance() { + return *reinterpret_cast( + &_SessionDescription_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(SessionDescription& a, SessionDescription& b) { a.Swap(&b); } + inline void Swap(SessionDescription* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SessionDescription* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SessionDescription* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SessionDescription& from); + void MergeFrom(const SessionDescription& from) { SessionDescription::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SessionDescription* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.SessionDescription"; } + + explicit SessionDescription(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SessionDescription(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SessionDescription& from); + SessionDescription( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SessionDescription&& from) noexcept + : SessionDescription(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDescriptionFieldNumber = 1, + }; + // optional string description = 1; + bool has_description() const; + void clear_description() ; + const ::std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_description(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); + void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_description() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_description(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.SessionDescription) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SessionDescription& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr description_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> SessionDescription_class_data_; +// ------------------------------------------------------------------- + +class ReadyForSignalingPoke final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.ReadyForSignalingPoke) */ { + public: + inline ReadyForSignalingPoke() : ReadyForSignalingPoke(nullptr) {} + ~ReadyForSignalingPoke() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReadyForSignalingPoke* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReadyForSignalingPoke)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ReadyForSignalingPoke(::google::protobuf::internal::ConstantInitialized); + + inline ReadyForSignalingPoke(const ReadyForSignalingPoke& from) : ReadyForSignalingPoke(nullptr, from) {} + inline ReadyForSignalingPoke(ReadyForSignalingPoke&& from) noexcept + : ReadyForSignalingPoke(nullptr, ::std::move(from)) {} + inline ReadyForSignalingPoke& operator=(const ReadyForSignalingPoke& from) { + CopyFrom(from); + return *this; + } + inline ReadyForSignalingPoke& operator=(ReadyForSignalingPoke&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ReadyForSignalingPoke& default_instance() { + return *reinterpret_cast( + &_ReadyForSignalingPoke_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(ReadyForSignalingPoke& a, ReadyForSignalingPoke& b) { a.Swap(&b); } + inline void Swap(ReadyForSignalingPoke* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReadyForSignalingPoke* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReadyForSignalingPoke* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ReadyForSignalingPoke& from); + void MergeFrom(const ReadyForSignalingPoke& from) { ReadyForSignalingPoke::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ReadyForSignalingPoke* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.ReadyForSignalingPoke"; } + + explicit ReadyForSignalingPoke(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ReadyForSignalingPoke(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReadyForSignalingPoke& from); + ReadyForSignalingPoke( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ReadyForSignalingPoke&& from) noexcept + : ReadyForSignalingPoke(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:location.nearby.mediums.ReadyForSignalingPoke) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ReadyForSignalingPoke& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<46> ReadyForSignalingPoke_class_data_; +// ------------------------------------------------------------------- + +class PeerId final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.PeerId) */ { + public: + inline PeerId() : PeerId(nullptr) {} + ~PeerId() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PeerId* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PeerId)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PeerId(::google::protobuf::internal::ConstantInitialized); + + inline PeerId(const PeerId& from) : PeerId(nullptr, from) {} + inline PeerId(PeerId&& from) noexcept + : PeerId(nullptr, ::std::move(from)) {} + inline PeerId& operator=(const PeerId& from) { + CopyFrom(from); + return *this; + } + inline PeerId& operator=(PeerId&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const PeerId& default_instance() { + return *reinterpret_cast( + &_PeerId_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(PeerId& a, PeerId& b) { a.Swap(&b); } + inline void Swap(PeerId* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PeerId* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PeerId* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const PeerId& from); + void MergeFrom(const PeerId& from) { PeerId::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PeerId* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.PeerId"; } + + explicit PeerId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PeerId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PeerId& from); + PeerId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PeerId&& from) noexcept + : PeerId(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIdFieldNumber = 1, + }; + // optional string id = 1; + bool has_id() const; + void clear_id() ; + const ::std::string& id() const; + template + void set_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_id(); + void set_allocated_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_id(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.PeerId) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PeerId& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<31> PeerId_class_data_; +// ------------------------------------------------------------------- + +class IceCandidate final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.IceCandidate) */ { + public: + inline IceCandidate() : IceCandidate(nullptr) {} + ~IceCandidate() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(IceCandidate* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(IceCandidate)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR IceCandidate(::google::protobuf::internal::ConstantInitialized); + + inline IceCandidate(const IceCandidate& from) : IceCandidate(nullptr, from) {} + inline IceCandidate(IceCandidate&& from) noexcept + : IceCandidate(nullptr, ::std::move(from)) {} + inline IceCandidate& operator=(const IceCandidate& from) { + CopyFrom(from); + return *this; + } + inline IceCandidate& operator=(IceCandidate&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const IceCandidate& default_instance() { + return *reinterpret_cast( + &_IceCandidate_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(IceCandidate& a, IceCandidate& b) { a.Swap(&b); } + inline void Swap(IceCandidate* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IceCandidate* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IceCandidate* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const IceCandidate& from); + void MergeFrom(const IceCandidate& from) { IceCandidate::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(IceCandidate* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.IceCandidate"; } + + explicit IceCandidate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + IceCandidate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const IceCandidate& from); + IceCandidate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, IceCandidate&& from) noexcept + : IceCandidate(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSdpFieldNumber = 1, + kSdpMidFieldNumber = 2, + kSdpMLineIndexFieldNumber = 3, + }; + // optional string sdp = 1; + bool has_sdp() const; + void clear_sdp() ; + const ::std::string& sdp() const; + template + void set_sdp(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_sdp(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sdp(); + void set_allocated_sdp(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_sdp() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sdp(); + + public: + // optional string sdp_mid = 2; + bool has_sdp_mid() const; + void clear_sdp_mid() ; + const ::std::string& sdp_mid() const; + template + void set_sdp_mid(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_sdp_mid(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sdp_mid(); + void set_allocated_sdp_mid(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_sdp_mid() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sdp_mid(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sdp_mid(); + + public: + // optional int32 sdp_m_line_index = 3; + bool has_sdp_m_line_index() const; + void clear_sdp_m_line_index() ; + ::int32_t sdp_m_line_index() const; + void set_sdp_m_line_index(::int32_t value); + + private: + ::int32_t _internal_sdp_m_line_index() const; + void _internal_set_sdp_m_line_index(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.IceCandidate) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const IceCandidate& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sdp_; + ::google::protobuf::internal::ArenaStringPtr sdp_mid_; + ::int32_t sdp_m_line_index_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<37> IceCandidate_class_data_; +// ------------------------------------------------------------------- + +class Offer final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.Offer) */ { + public: + inline Offer() : Offer(nullptr) {} + ~Offer() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Offer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Offer)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Offer(::google::protobuf::internal::ConstantInitialized); + + inline Offer(const Offer& from) : Offer(nullptr, from) {} + inline Offer(Offer&& from) noexcept + : Offer(nullptr, ::std::move(from)) {} + inline Offer& operator=(const Offer& from) { + CopyFrom(from); + return *this; + } + inline Offer& operator=(Offer&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Offer& default_instance() { + return *reinterpret_cast( + &_Offer_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(Offer& a, Offer& b) { a.Swap(&b); } + inline void Swap(Offer* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Offer* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Offer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Offer& from); + void MergeFrom(const Offer& from) { Offer::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Offer* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.Offer"; } + + explicit Offer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Offer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Offer& from); + Offer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Offer&& from) noexcept + : Offer(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionDescriptionFieldNumber = 1, + }; + // optional .location.nearby.mediums.SessionDescription session_description = 1; + bool has_session_description() const; + void clear_session_description() ; + const ::location::nearby::mediums::SessionDescription& session_description() const; + [[nodiscard]] ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE release_session_description(); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL mutable_session_description(); + void set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE unsafe_arena_release_session_description(); + + private: + const ::location::nearby::mediums::SessionDescription& _internal_session_description() const; + ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL _internal_mutable_session_description(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.Offer) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Offer& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE session_description_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<30> Offer_class_data_; +// ------------------------------------------------------------------- + +class IceCandidates final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.IceCandidates) */ { + public: + inline IceCandidates() : IceCandidates(nullptr) {} + ~IceCandidates() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(IceCandidates* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(IceCandidates)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR IceCandidates(::google::protobuf::internal::ConstantInitialized); + + inline IceCandidates(const IceCandidates& from) : IceCandidates(nullptr, from) {} + inline IceCandidates(IceCandidates&& from) noexcept + : IceCandidates(nullptr, ::std::move(from)) {} + inline IceCandidates& operator=(const IceCandidates& from) { + CopyFrom(from); + return *this; + } + inline IceCandidates& operator=(IceCandidates&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const IceCandidates& default_instance() { + return *reinterpret_cast( + &_IceCandidates_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(IceCandidates& a, IceCandidates& b) { a.Swap(&b); } + inline void Swap(IceCandidates* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IceCandidates* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IceCandidates* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const IceCandidates& from); + void MergeFrom(const IceCandidates& from) { IceCandidates::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(IceCandidates* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.IceCandidates"; } + + explicit IceCandidates(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + IceCandidates(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const IceCandidates& from); + IceCandidates( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, IceCandidates&& from) noexcept + : IceCandidates(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIceCandidatesFieldNumber = 1, + }; + // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; + int ice_candidates_size() const; + private: + int _internal_ice_candidates_size() const; + + public: + void clear_ice_candidates() ; + ::location::nearby::mediums::IceCandidate* PROTOBUF_NONNULL mutable_ice_candidates(int index); + ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>* PROTOBUF_NONNULL mutable_ice_candidates(); + + private: + const ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>& _internal_ice_candidates() const; + ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>* PROTOBUF_NONNULL _internal_mutable_ice_candidates(); + public: + const ::location::nearby::mediums::IceCandidate& ice_candidates(int index) const; + ::location::nearby::mediums::IceCandidate* PROTOBUF_NONNULL add_ice_candidates(); + const ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>& ice_candidates() const; + // @@protoc_insertion_point(class_scope:location.nearby.mediums.IceCandidates) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const IceCandidates& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::location::nearby::mediums::IceCandidate > ice_candidates_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<38> IceCandidates_class_data_; +// ------------------------------------------------------------------- + +class Answer final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.Answer) */ { + public: + inline Answer() : Answer(nullptr) {} + ~Answer() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Answer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Answer)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Answer(::google::protobuf::internal::ConstantInitialized); + + inline Answer(const Answer& from) : Answer(nullptr, from) {} + inline Answer(Answer&& from) noexcept + : Answer(nullptr, ::std::move(from)) {} + inline Answer& operator=(const Answer& from) { + CopyFrom(from); + return *this; + } + inline Answer& operator=(Answer&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Answer& default_instance() { + return *reinterpret_cast( + &_Answer_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(Answer& a, Answer& b) { a.Swap(&b); } + inline void Swap(Answer* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Answer* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Answer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Answer& from); + void MergeFrom(const Answer& from) { Answer::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Answer* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.Answer"; } + + explicit Answer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Answer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Answer& from); + Answer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Answer&& from) noexcept + : Answer(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionDescriptionFieldNumber = 1, + }; + // optional .location.nearby.mediums.SessionDescription session_description = 1; + bool has_session_description() const; + void clear_session_description() ; + const ::location::nearby::mediums::SessionDescription& session_description() const; + [[nodiscard]] ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE release_session_description(); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL mutable_session_description(); + void set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE unsafe_arena_release_session_description(); + + private: + const ::location::nearby::mediums::SessionDescription& _internal_session_description() const; + ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL _internal_mutable_session_description(); + + public: + // @@protoc_insertion_point(class_scope:location.nearby.mediums.Answer) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Answer& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE session_description_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<31> Answer_class_data_; +// ------------------------------------------------------------------- + +class WebRtcSignalingFrame final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:location.nearby.mediums.WebRtcSignalingFrame) */ { + public: + inline WebRtcSignalingFrame() : WebRtcSignalingFrame(nullptr) {} + ~WebRtcSignalingFrame() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WebRtcSignalingFrame* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WebRtcSignalingFrame)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR WebRtcSignalingFrame(::google::protobuf::internal::ConstantInitialized); + + inline WebRtcSignalingFrame(const WebRtcSignalingFrame& from) : WebRtcSignalingFrame(nullptr, from) {} + inline WebRtcSignalingFrame(WebRtcSignalingFrame&& from) noexcept + : WebRtcSignalingFrame(nullptr, ::std::move(from)) {} + inline WebRtcSignalingFrame& operator=(const WebRtcSignalingFrame& from) { + CopyFrom(from); + return *this; + } + inline WebRtcSignalingFrame& operator=(WebRtcSignalingFrame&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const WebRtcSignalingFrame& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_WebRtcSignalingFrame_default_instance_); } enum FrameCase { kOffer = 3, @@ -167,110 +1481,109 @@ class WebRtcSignalingFrame final : kReadyForSignalingPoke = 6, FRAME_NOT_SET = 0, }; - - static inline const WebRtcSignalingFrame* internal_default_instance() { - return reinterpret_cast( - &_WebRtcSignalingFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(WebRtcSignalingFrame& a, WebRtcSignalingFrame& b) { - a.Swap(&b); - } - inline void Swap(WebRtcSignalingFrame* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(WebRtcSignalingFrame& a, WebRtcSignalingFrame& b) { a.Swap(&b); } + inline void Swap(WebRtcSignalingFrame* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WebRtcSignalingFrame* other) { + void UnsafeArenaSwap(WebRtcSignalingFrame* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - WebRtcSignalingFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + WebRtcSignalingFrame* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const WebRtcSignalingFrame& from); - void MergeFrom(const WebRtcSignalingFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const WebRtcSignalingFrame& from) { WebRtcSignalingFrame::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WebRtcSignalingFrame* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.WebRtcSignalingFrame"; - } - protected: - explicit WebRtcSignalingFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WebRtcSignalingFrame* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "location.nearby.mediums.WebRtcSignalingFrame"; } + + explicit WebRtcSignalingFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WebRtcSignalingFrame(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WebRtcSignalingFrame& from); + WebRtcSignalingFrame( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WebRtcSignalingFrame&& from) noexcept + : WebRtcSignalingFrame(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef WebRtcSignalingFrame_FrameType FrameType; - static constexpr FrameType UNKNOWN_FRAME_TYPE = - WebRtcSignalingFrame_FrameType_UNKNOWN_FRAME_TYPE; - static constexpr FrameType OFFER_TYPE = - WebRtcSignalingFrame_FrameType_OFFER_TYPE; - static constexpr FrameType ANSWER_TYPE = - WebRtcSignalingFrame_FrameType_ANSWER_TYPE; - static constexpr FrameType ICE_CANDIDATES_TYPE = - WebRtcSignalingFrame_FrameType_ICE_CANDIDATES_TYPE; - static constexpr FrameType READY_FOR_SIGNALING_POKE_TYPE = - WebRtcSignalingFrame_FrameType_READY_FOR_SIGNALING_POKE_TYPE; + using FrameType = WebRtcSignalingFrame_FrameType; + static constexpr FrameType UNKNOWN_FRAME_TYPE = WebRtcSignalingFrame_FrameType_UNKNOWN_FRAME_TYPE; + static constexpr FrameType OFFER_TYPE = WebRtcSignalingFrame_FrameType_OFFER_TYPE; + static constexpr FrameType ANSWER_TYPE = WebRtcSignalingFrame_FrameType_ANSWER_TYPE; + static constexpr FrameType ICE_CANDIDATES_TYPE = WebRtcSignalingFrame_FrameType_ICE_CANDIDATES_TYPE; + static constexpr FrameType READY_FOR_SIGNALING_POKE_TYPE = WebRtcSignalingFrame_FrameType_READY_FOR_SIGNALING_POKE_TYPE; static inline bool FrameType_IsValid(int value) { return WebRtcSignalingFrame_FrameType_IsValid(value); } - static constexpr FrameType FrameType_MIN = - WebRtcSignalingFrame_FrameType_FrameType_MIN; - static constexpr FrameType FrameType_MAX = - WebRtcSignalingFrame_FrameType_FrameType_MAX; - static constexpr int FrameType_ARRAYSIZE = - WebRtcSignalingFrame_FrameType_FrameType_ARRAYSIZE; - template - static inline const std::string& FrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FrameType_Name."); - return WebRtcSignalingFrame_FrameType_Name(enum_t_value); + static constexpr FrameType FrameType_MIN = WebRtcSignalingFrame_FrameType_FrameType_MIN; + static constexpr FrameType FrameType_MAX = WebRtcSignalingFrame_FrameType_FrameType_MAX; + static constexpr int FrameType_ARRAYSIZE = WebRtcSignalingFrame_FrameType_FrameType_ARRAYSIZE; + template + static inline const ::std::string& FrameType_Name(T value) { + return WebRtcSignalingFrame_FrameType_Name(value); } - static inline bool FrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - FrameType* value) { + static inline bool FrameType_Parse( + ::absl::string_view name, FrameType* PROTOBUF_NONNULL value) { return WebRtcSignalingFrame_FrameType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kSenderIdFieldNumber = 1, kTypeFieldNumber = 2, @@ -281,107 +1594,106 @@ class WebRtcSignalingFrame final : }; // optional .location.nearby.mediums.PeerId sender_id = 1; bool has_sender_id() const; - private: - bool _internal_has_sender_id() const; - public: - void clear_sender_id(); + void clear_sender_id() ; const ::location::nearby::mediums::PeerId& sender_id() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::PeerId* release_sender_id(); - ::location::nearby::mediums::PeerId* mutable_sender_id(); - void set_allocated_sender_id(::location::nearby::mediums::PeerId* sender_id); + [[nodiscard]] ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE release_sender_id(); + ::location::nearby::mediums::PeerId* PROTOBUF_NONNULL mutable_sender_id(); + void set_allocated_sender_id(::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_sender_id(::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE unsafe_arena_release_sender_id(); + private: const ::location::nearby::mediums::PeerId& _internal_sender_id() const; - ::location::nearby::mediums::PeerId* _internal_mutable_sender_id(); - public: - void unsafe_arena_set_allocated_sender_id( - ::location::nearby::mediums::PeerId* sender_id); - ::location::nearby::mediums::PeerId* unsafe_arena_release_sender_id(); + ::location::nearby::mediums::PeerId* PROTOBUF_NONNULL _internal_mutable_sender_id(); + public: // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::location::nearby::mediums::WebRtcSignalingFrame_FrameType type() const; void set_type(::location::nearby::mediums::WebRtcSignalingFrame_FrameType value); + private: ::location::nearby::mediums::WebRtcSignalingFrame_FrameType _internal_type() const; void _internal_set_type(::location::nearby::mediums::WebRtcSignalingFrame_FrameType value); - public: + public: // .location.nearby.mediums.Offer offer = 3; bool has_offer() const; private: bool _internal_has_offer() const; + public: - void clear_offer(); + void clear_offer() ; const ::location::nearby::mediums::Offer& offer() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::Offer* release_offer(); - ::location::nearby::mediums::Offer* mutable_offer(); - void set_allocated_offer(::location::nearby::mediums::Offer* offer); + [[nodiscard]] ::location::nearby::mediums::Offer* PROTOBUF_NULLABLE release_offer(); + ::location::nearby::mediums::Offer* PROTOBUF_NONNULL mutable_offer(); + void set_allocated_offer(::location::nearby::mediums::Offer* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_offer(::location::nearby::mediums::Offer* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::Offer* PROTOBUF_NULLABLE unsafe_arena_release_offer(); + private: const ::location::nearby::mediums::Offer& _internal_offer() const; - ::location::nearby::mediums::Offer* _internal_mutable_offer(); - public: - void unsafe_arena_set_allocated_offer( - ::location::nearby::mediums::Offer* offer); - ::location::nearby::mediums::Offer* unsafe_arena_release_offer(); + ::location::nearby::mediums::Offer* PROTOBUF_NONNULL _internal_mutable_offer(); + public: // .location.nearby.mediums.Answer answer = 4; bool has_answer() const; private: bool _internal_has_answer() const; + public: - void clear_answer(); + void clear_answer() ; const ::location::nearby::mediums::Answer& answer() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::Answer* release_answer(); - ::location::nearby::mediums::Answer* mutable_answer(); - void set_allocated_answer(::location::nearby::mediums::Answer* answer); + [[nodiscard]] ::location::nearby::mediums::Answer* PROTOBUF_NULLABLE release_answer(); + ::location::nearby::mediums::Answer* PROTOBUF_NONNULL mutable_answer(); + void set_allocated_answer(::location::nearby::mediums::Answer* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_answer(::location::nearby::mediums::Answer* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::Answer* PROTOBUF_NULLABLE unsafe_arena_release_answer(); + private: const ::location::nearby::mediums::Answer& _internal_answer() const; - ::location::nearby::mediums::Answer* _internal_mutable_answer(); - public: - void unsafe_arena_set_allocated_answer( - ::location::nearby::mediums::Answer* answer); - ::location::nearby::mediums::Answer* unsafe_arena_release_answer(); + ::location::nearby::mediums::Answer* PROTOBUF_NONNULL _internal_mutable_answer(); + public: // .location.nearby.mediums.IceCandidates ice_candidates = 5; bool has_ice_candidates() const; private: bool _internal_has_ice_candidates() const; + public: - void clear_ice_candidates(); + void clear_ice_candidates() ; const ::location::nearby::mediums::IceCandidates& ice_candidates() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::IceCandidates* release_ice_candidates(); - ::location::nearby::mediums::IceCandidates* mutable_ice_candidates(); - void set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* ice_candidates); + [[nodiscard]] ::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE release_ice_candidates(); + ::location::nearby::mediums::IceCandidates* PROTOBUF_NONNULL mutable_ice_candidates(); + void set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE unsafe_arena_release_ice_candidates(); + private: const ::location::nearby::mediums::IceCandidates& _internal_ice_candidates() const; - ::location::nearby::mediums::IceCandidates* _internal_mutable_ice_candidates(); - public: - void unsafe_arena_set_allocated_ice_candidates( - ::location::nearby::mediums::IceCandidates* ice_candidates); - ::location::nearby::mediums::IceCandidates* unsafe_arena_release_ice_candidates(); + ::location::nearby::mediums::IceCandidates* PROTOBUF_NONNULL _internal_mutable_ice_candidates(); + public: // .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6; bool has_ready_for_signaling_poke() const; private: bool _internal_has_ready_for_signaling_poke() const; + public: - void clear_ready_for_signaling_poke(); + void clear_ready_for_signaling_poke() ; const ::location::nearby::mediums::ReadyForSignalingPoke& ready_for_signaling_poke() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::ReadyForSignalingPoke* release_ready_for_signaling_poke(); - ::location::nearby::mediums::ReadyForSignalingPoke* mutable_ready_for_signaling_poke(); - void set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* ready_for_signaling_poke); + [[nodiscard]] ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE release_ready_for_signaling_poke(); + ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NONNULL mutable_ready_for_signaling_poke(); + void set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE value); + ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE unsafe_arena_release_ready_for_signaling_poke(); + private: const ::location::nearby::mediums::ReadyForSignalingPoke& _internal_ready_for_signaling_poke() const; - ::location::nearby::mediums::ReadyForSignalingPoke* _internal_mutable_ready_for_signaling_poke(); - public: - void unsafe_arena_set_allocated_ready_for_signaling_poke( - ::location::nearby::mediums::ReadyForSignalingPoke* ready_for_signaling_poke); - ::location::nearby::mediums::ReadyForSignalingPoke* unsafe_arena_release_ready_for_signaling_poke(); + ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NONNULL _internal_mutable_ready_for_signaling_poke(); + public: void clear_Frame(); FrameCase Frame_case() const; // @@protoc_insertion_point(class_scope:location.nearby.mediums.WebRtcSignalingFrame) @@ -391,1490 +1703,528 @@ class WebRtcSignalingFrame final : void set_has_answer(); void set_has_ice_candidates(); void set_has_ready_for_signaling_poke(); - inline bool has_Frame() const; inline void clear_has_Frame(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 6, + 6, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::mediums::PeerId* sender_id_; - int type_; - union FrameUnion { - constexpr FrameUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::location::nearby::mediums::Offer* offer_; - ::location::nearby::mediums::Answer* answer_; - ::location::nearby::mediums::IceCandidates* ice_candidates_; - ::location::nearby::mediums::ReadyForSignalingPoke* ready_for_signaling_poke_; - } Frame_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class PeerId final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.PeerId) */ { - public: - inline PeerId() : PeerId(nullptr) {} - ~PeerId() override; - explicit constexpr PeerId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PeerId(const PeerId& from); - PeerId(PeerId&& from) noexcept - : PeerId() { - *this = ::std::move(from); - } - - inline PeerId& operator=(const PeerId& from) { - CopyFrom(from); - return *this; - } - inline PeerId& operator=(PeerId&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PeerId& default_instance() { - return *internal_default_instance(); - } - static inline const PeerId* internal_default_instance() { - return reinterpret_cast( - &_PeerId_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(PeerId& a, PeerId& b) { - a.Swap(&b); - } - inline void Swap(PeerId* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PeerId* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PeerId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PeerId& from); - void MergeFrom(const PeerId& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PeerId* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.PeerId"; - } - protected: - explicit PeerId(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WebRtcSignalingFrame& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE sender_id_; + int type_; + union FrameUnion { + constexpr FrameUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE offer_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE answer_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE ice_candidates_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE ready_for_signaling_poke_; + } Frame_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional string id = 1; - bool has_id() const; - private: - bool _internal_has_id() const; - public: - void clear_id(); - const std::string& id() const; - template - void set_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.PeerId) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; }; -// ------------------------------------------------------------------- -class SessionDescription final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.SessionDescription) */ { - public: - inline SessionDescription() : SessionDescription(nullptr) {} - ~SessionDescription() override; - explicit constexpr SessionDescription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); +extern const ::google::protobuf::internal::ClassDataLite<45> WebRtcSignalingFrame_class_data_; - SessionDescription(const SessionDescription& from); - SessionDescription(SessionDescription&& from) noexcept - : SessionDescription() { - *this = ::std::move(from); - } - - inline SessionDescription& operator=(const SessionDescription& from) { - CopyFrom(from); - return *this; - } - inline SessionDescription& operator=(SessionDescription&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SessionDescription& default_instance() { - return *internal_default_instance(); - } - static inline const SessionDescription* internal_default_instance() { - return reinterpret_cast( - &_SessionDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SessionDescription& a, SessionDescription& b) { - a.Swap(&b); - } - inline void Swap(SessionDescription* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SessionDescription* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SessionDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SessionDescription& from); - void MergeFrom(const SessionDescription& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SessionDescription* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.SessionDescription"; - } - protected: - explicit SessionDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDescriptionFieldNumber = 1, - }; - // optional string description = 1; - bool has_description() const; - private: - bool _internal_has_description() const; - public: - void clear_description(); - const std::string& description() const; - template - void set_description(ArgT0&& arg0, ArgT... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* description); - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); - std::string* _internal_mutable_description(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.SessionDescription) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class IceCandidate final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.IceCandidate) */ { - public: - inline IceCandidate() : IceCandidate(nullptr) {} - ~IceCandidate() override; - explicit constexpr IceCandidate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IceCandidate(const IceCandidate& from); - IceCandidate(IceCandidate&& from) noexcept - : IceCandidate() { - *this = ::std::move(from); - } - - inline IceCandidate& operator=(const IceCandidate& from) { - CopyFrom(from); - return *this; - } - inline IceCandidate& operator=(IceCandidate&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const IceCandidate& default_instance() { - return *internal_default_instance(); - } - static inline const IceCandidate* internal_default_instance() { - return reinterpret_cast( - &_IceCandidate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(IceCandidate& a, IceCandidate& b) { - a.Swap(&b); - } - inline void Swap(IceCandidate* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IceCandidate* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IceCandidate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const IceCandidate& from); - void MergeFrom(const IceCandidate& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(IceCandidate* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.IceCandidate"; - } - protected: - explicit IceCandidate(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSdpFieldNumber = 1, - kSdpMidFieldNumber = 2, - kSdpMLineIndexFieldNumber = 3, - }; - // optional string sdp = 1; - bool has_sdp() const; - private: - bool _internal_has_sdp() const; - public: - void clear_sdp(); - const std::string& sdp() const; - template - void set_sdp(ArgT0&& arg0, ArgT... args); - std::string* mutable_sdp(); - PROTOBUF_NODISCARD std::string* release_sdp(); - void set_allocated_sdp(std::string* sdp); - private: - const std::string& _internal_sdp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const std::string& value); - std::string* _internal_mutable_sdp(); - public: - - // optional string sdp_mid = 2; - bool has_sdp_mid() const; - private: - bool _internal_has_sdp_mid() const; - public: - void clear_sdp_mid(); - const std::string& sdp_mid() const; - template - void set_sdp_mid(ArgT0&& arg0, ArgT... args); - std::string* mutable_sdp_mid(); - PROTOBUF_NODISCARD std::string* release_sdp_mid(); - void set_allocated_sdp_mid(std::string* sdp_mid); - private: - const std::string& _internal_sdp_mid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp_mid(const std::string& value); - std::string* _internal_mutable_sdp_mid(); - public: - - // optional int32 sdp_m_line_index = 3; - bool has_sdp_m_line_index() const; - private: - bool _internal_has_sdp_m_line_index() const; - public: - void clear_sdp_m_line_index(); - int32_t sdp_m_line_index() const; - void set_sdp_m_line_index(int32_t value); - private: - int32_t _internal_sdp_m_line_index() const; - void _internal_set_sdp_m_line_index(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.IceCandidate) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_mid_; - int32_t sdp_m_line_index_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class IceCandidates final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.IceCandidates) */ { - public: - inline IceCandidates() : IceCandidates(nullptr) {} - ~IceCandidates() override; - explicit constexpr IceCandidates(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IceCandidates(const IceCandidates& from); - IceCandidates(IceCandidates&& from) noexcept - : IceCandidates() { - *this = ::std::move(from); - } - - inline IceCandidates& operator=(const IceCandidates& from) { - CopyFrom(from); - return *this; - } - inline IceCandidates& operator=(IceCandidates&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const IceCandidates& default_instance() { - return *internal_default_instance(); - } - static inline const IceCandidates* internal_default_instance() { - return reinterpret_cast( - &_IceCandidates_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(IceCandidates& a, IceCandidates& b) { - a.Swap(&b); - } - inline void Swap(IceCandidates* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IceCandidates* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IceCandidates* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const IceCandidates& from); - void MergeFrom(const IceCandidates& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(IceCandidates* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.IceCandidates"; - } - protected: - explicit IceCandidates(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIceCandidatesFieldNumber = 1, - }; - // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; - int ice_candidates_size() const; - private: - int _internal_ice_candidates_size() const; - public: - void clear_ice_candidates(); - ::location::nearby::mediums::IceCandidate* mutable_ice_candidates(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::mediums::IceCandidate >* - mutable_ice_candidates(); - private: - const ::location::nearby::mediums::IceCandidate& _internal_ice_candidates(int index) const; - ::location::nearby::mediums::IceCandidate* _internal_add_ice_candidates(); - public: - const ::location::nearby::mediums::IceCandidate& ice_candidates(int index) const; - ::location::nearby::mediums::IceCandidate* add_ice_candidates(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::mediums::IceCandidate >& - ice_candidates() const; - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.IceCandidates) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::mediums::IceCandidate > ice_candidates_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class Offer final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.Offer) */ { - public: - inline Offer() : Offer(nullptr) {} - ~Offer() override; - explicit constexpr Offer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Offer(const Offer& from); - Offer(Offer&& from) noexcept - : Offer() { - *this = ::std::move(from); - } - - inline Offer& operator=(const Offer& from) { - CopyFrom(from); - return *this; - } - inline Offer& operator=(Offer&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Offer& default_instance() { - return *internal_default_instance(); - } - static inline const Offer* internal_default_instance() { - return reinterpret_cast( - &_Offer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Offer& a, Offer& b) { - a.Swap(&b); - } - inline void Swap(Offer* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Offer* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Offer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Offer& from); - void MergeFrom(const Offer& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Offer* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.Offer"; - } - protected: - explicit Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSessionDescriptionFieldNumber = 1, - }; - // optional .location.nearby.mediums.SessionDescription session_description = 1; - bool has_session_description() const; - private: - bool _internal_has_session_description() const; - public: - void clear_session_description(); - const ::location::nearby::mediums::SessionDescription& session_description() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::SessionDescription* release_session_description(); - ::location::nearby::mediums::SessionDescription* mutable_session_description(); - void set_allocated_session_description(::location::nearby::mediums::SessionDescription* session_description); - private: - const ::location::nearby::mediums::SessionDescription& _internal_session_description() const; - ::location::nearby::mediums::SessionDescription* _internal_mutable_session_description(); - public: - void unsafe_arena_set_allocated_session_description( - ::location::nearby::mediums::SessionDescription* session_description); - ::location::nearby::mediums::SessionDescription* unsafe_arena_release_session_description(); - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.Offer) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::mediums::SessionDescription* session_description_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class Answer final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.Answer) */ { - public: - inline Answer() : Answer(nullptr) {} - ~Answer() override; - explicit constexpr Answer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Answer(const Answer& from); - Answer(Answer&& from) noexcept - : Answer() { - *this = ::std::move(from); - } - - inline Answer& operator=(const Answer& from) { - CopyFrom(from); - return *this; - } - inline Answer& operator=(Answer&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Answer& default_instance() { - return *internal_default_instance(); - } - static inline const Answer* internal_default_instance() { - return reinterpret_cast( - &_Answer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(Answer& a, Answer& b) { - a.Swap(&b); - } - inline void Swap(Answer* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Answer* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Answer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Answer& from); - void MergeFrom(const Answer& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Answer* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.Answer"; - } - protected: - explicit Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSessionDescriptionFieldNumber = 1, - }; - // optional .location.nearby.mediums.SessionDescription session_description = 1; - bool has_session_description() const; - private: - bool _internal_has_session_description() const; - public: - void clear_session_description(); - const ::location::nearby::mediums::SessionDescription& session_description() const; - PROTOBUF_NODISCARD ::location::nearby::mediums::SessionDescription* release_session_description(); - ::location::nearby::mediums::SessionDescription* mutable_session_description(); - void set_allocated_session_description(::location::nearby::mediums::SessionDescription* session_description); - private: - const ::location::nearby::mediums::SessionDescription& _internal_session_description() const; - ::location::nearby::mediums::SessionDescription* _internal_mutable_session_description(); - public: - void unsafe_arena_set_allocated_session_description( - ::location::nearby::mediums::SessionDescription* session_description); - ::location::nearby::mediums::SessionDescription* unsafe_arena_release_session_description(); - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.Answer) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::mediums::SessionDescription* session_description_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; -// ------------------------------------------------------------------- - -class ReadyForSignalingPoke final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.ReadyForSignalingPoke) */ { - public: - inline ReadyForSignalingPoke() : ReadyForSignalingPoke(nullptr) {} - ~ReadyForSignalingPoke() override; - explicit constexpr ReadyForSignalingPoke(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ReadyForSignalingPoke(const ReadyForSignalingPoke& from); - ReadyForSignalingPoke(ReadyForSignalingPoke&& from) noexcept - : ReadyForSignalingPoke() { - *this = ::std::move(from); - } - - inline ReadyForSignalingPoke& operator=(const ReadyForSignalingPoke& from) { - CopyFrom(from); - return *this; - } - inline ReadyForSignalingPoke& operator=(ReadyForSignalingPoke&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ReadyForSignalingPoke& default_instance() { - return *internal_default_instance(); - } - static inline const ReadyForSignalingPoke* internal_default_instance() { - return reinterpret_cast( - &_ReadyForSignalingPoke_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ReadyForSignalingPoke& a, ReadyForSignalingPoke& b) { - a.Swap(&b); - } - inline void Swap(ReadyForSignalingPoke* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReadyForSignalingPoke* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReadyForSignalingPoke* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ReadyForSignalingPoke& from); - void MergeFrom(const ReadyForSignalingPoke& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ReadyForSignalingPoke* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.mediums.ReadyForSignalingPoke"; - } - protected: - explicit ReadyForSignalingPoke(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.mediums.ReadyForSignalingPoke) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto; -}; // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // WebRtcSignalingFrame // optional .location.nearby.mediums.PeerId sender_id = 1; -inline bool WebRtcSignalingFrame::_internal_has_sender_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || sender_id_ != nullptr); +inline bool WebRtcSignalingFrame::has_sender_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.sender_id_ != nullptr); return value; } -inline bool WebRtcSignalingFrame::has_sender_id() const { - return _internal_has_sender_id(); -} inline void WebRtcSignalingFrame::clear_sender_id() { - if (sender_id_ != nullptr) sender_id_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sender_id_ != nullptr) _impl_.sender_id_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::mediums::PeerId& WebRtcSignalingFrame::_internal_sender_id() const { - const ::location::nearby::mediums::PeerId* p = sender_id_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_PeerId_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::PeerId* p = _impl_.sender_id_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_PeerId_default_instance_); } -inline const ::location::nearby::mediums::PeerId& WebRtcSignalingFrame::sender_id() const { +inline const ::location::nearby::mediums::PeerId& WebRtcSignalingFrame::sender_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.sender_id) return _internal_sender_id(); } inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_sender_id( - ::location::nearby::mediums::PeerId* sender_id) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sender_id_); + ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sender_id_); } - sender_id_ = sender_id; - if (sender_id) { - _has_bits_[0] |= 0x00000001u; + _impl_.sender_id_ = reinterpret_cast<::location::nearby::mediums::PeerId*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.sender_id) } -inline ::location::nearby::mediums::PeerId* WebRtcSignalingFrame::release_sender_id() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::PeerId* temp = sender_id_; - sender_id_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE WebRtcSignalingFrame::release_sender_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::PeerId* released = _impl_.sender_id_; + _impl_.sender_id_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::PeerId* WebRtcSignalingFrame::unsafe_arena_release_sender_id() { +inline ::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE WebRtcSignalingFrame::unsafe_arena_release_sender_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.WebRtcSignalingFrame.sender_id) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::PeerId* temp = sender_id_; - sender_id_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::PeerId* temp = _impl_.sender_id_; + _impl_.sender_id_ = nullptr; return temp; } -inline ::location::nearby::mediums::PeerId* WebRtcSignalingFrame::_internal_mutable_sender_id() { - _has_bits_[0] |= 0x00000001u; - if (sender_id_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::PeerId>(GetArenaForAllocation()); - sender_id_ = p; +inline ::location::nearby::mediums::PeerId* PROTOBUF_NONNULL WebRtcSignalingFrame::_internal_mutable_sender_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sender_id_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::PeerId>(GetArena()); + _impl_.sender_id_ = reinterpret_cast<::location::nearby::mediums::PeerId*>(p); } - return sender_id_; + return _impl_.sender_id_; } -inline ::location::nearby::mediums::PeerId* WebRtcSignalingFrame::mutable_sender_id() { +inline ::location::nearby::mediums::PeerId* PROTOBUF_NONNULL WebRtcSignalingFrame::mutable_sender_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::mediums::PeerId* _msg = _internal_mutable_sender_id(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.WebRtcSignalingFrame.sender_id) return _msg; } -inline void WebRtcSignalingFrame::set_allocated_sender_id(::location::nearby::mediums::PeerId* sender_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void WebRtcSignalingFrame::set_allocated_sender_id(::location::nearby::mediums::PeerId* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete sender_id_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sender_id_); } - if (sender_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::PeerId>::GetOwningArena(sender_id); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - sender_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sender_id, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - sender_id_ = sender_id; + + _impl_.sender_id_ = reinterpret_cast<::location::nearby::mediums::PeerId*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.sender_id) } // optional .location.nearby.mediums.WebRtcSignalingFrame.FrameType type = 2; -inline bool WebRtcSignalingFrame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool WebRtcSignalingFrame::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool WebRtcSignalingFrame::has_type() const { - return _internal_has_type(); -} inline void WebRtcSignalingFrame::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::mediums::WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::_internal_type() const { - return static_cast< ::location::nearby::mediums::WebRtcSignalingFrame_FrameType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::mediums::WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::type() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.type) return _internal_type(); } -inline void WebRtcSignalingFrame::_internal_set_type(::location::nearby::mediums::WebRtcSignalingFrame_FrameType value) { - assert(::location::nearby::mediums::WebRtcSignalingFrame_FrameType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - type_ = value; -} inline void WebRtcSignalingFrame::set_type(::location::nearby::mediums::WebRtcSignalingFrame_FrameType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:location.nearby.mediums.WebRtcSignalingFrame.type) } +inline ::location::nearby::mediums::WebRtcSignalingFrame_FrameType WebRtcSignalingFrame::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::mediums::WebRtcSignalingFrame_FrameType>(_impl_.type_); +} +inline void WebRtcSignalingFrame::_internal_set_type(::location::nearby::mediums::WebRtcSignalingFrame_FrameType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::mediums::WebRtcSignalingFrame_FrameType_internal_data_)); + _impl_.type_ = value; +} // .location.nearby.mediums.Offer offer = 3; +inline bool WebRtcSignalingFrame::has_offer() const { + return Frame_case() == kOffer; +} inline bool WebRtcSignalingFrame::_internal_has_offer() const { return Frame_case() == kOffer; } -inline bool WebRtcSignalingFrame::has_offer() const { - return _internal_has_offer(); -} inline void WebRtcSignalingFrame::set_has_offer() { - _oneof_case_[0] = kOffer; + _impl_._oneof_case_[0] = kOffer; } inline void WebRtcSignalingFrame::clear_offer() { - if (_internal_has_offer()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.offer_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kOffer) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.offer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.offer_ != nullptr) { + _impl_.Frame_.offer_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::Offer* WebRtcSignalingFrame::release_offer() { +inline ::location::nearby::mediums::Offer* PROTOBUF_NULLABLE WebRtcSignalingFrame::release_offer() { // @@protoc_insertion_point(field_release:location.nearby.mediums.WebRtcSignalingFrame.offer) - if (_internal_has_offer()) { + if (Frame_case() == kOffer) { clear_has_Frame(); - ::location::nearby::mediums::Offer* temp = Frame_.offer_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::Offer*>(_impl_.Frame_.offer_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.offer_ = nullptr; + _impl_.Frame_.offer_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::Offer& WebRtcSignalingFrame::_internal_offer() const { - return _internal_has_offer() - ? *Frame_.offer_ - : reinterpret_cast< ::location::nearby::mediums::Offer&>(::location::nearby::mediums::_Offer_default_instance_); + return Frame_case() == kOffer ? static_cast(*reinterpret_cast<::location::nearby::mediums::Offer*>(_impl_.Frame_.offer_)) + : reinterpret_cast(::location::nearby::mediums::_Offer_default_instance_); } -inline const ::location::nearby::mediums::Offer& WebRtcSignalingFrame::offer() const { +inline const ::location::nearby::mediums::Offer& WebRtcSignalingFrame::offer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.offer) return _internal_offer(); } -inline ::location::nearby::mediums::Offer* WebRtcSignalingFrame::unsafe_arena_release_offer() { +inline ::location::nearby::mediums::Offer* PROTOBUF_NULLABLE WebRtcSignalingFrame::unsafe_arena_release_offer() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.WebRtcSignalingFrame.offer) - if (_internal_has_offer()) { + if (Frame_case() == kOffer) { clear_has_Frame(); - ::location::nearby::mediums::Offer* temp = Frame_.offer_; - Frame_.offer_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::Offer*>(_impl_.Frame_.offer_); + _impl_.Frame_.offer_ = nullptr; return temp; } else { return nullptr; } } -inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_offer(::location::nearby::mediums::Offer* offer) { +inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_offer( + ::location::nearby::mediums::Offer* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (offer) { + if (value) { set_has_offer(); - Frame_.offer_ = offer; + _impl_.Frame_.offer_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.offer) } -inline ::location::nearby::mediums::Offer* WebRtcSignalingFrame::_internal_mutable_offer() { - if (!_internal_has_offer()) { +inline ::location::nearby::mediums::Offer* PROTOBUF_NONNULL WebRtcSignalingFrame::_internal_mutable_offer() { + if (Frame_case() != kOffer) { clear_Frame(); set_has_offer(); - Frame_.offer_ = CreateMaybeMessage< ::location::nearby::mediums::Offer >(GetArenaForAllocation()); + _impl_.Frame_.offer_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::Offer>(GetArena())); } - return Frame_.offer_; + return reinterpret_cast<::location::nearby::mediums::Offer*>(_impl_.Frame_.offer_); } -inline ::location::nearby::mediums::Offer* WebRtcSignalingFrame::mutable_offer() { +inline ::location::nearby::mediums::Offer* PROTOBUF_NONNULL WebRtcSignalingFrame::mutable_offer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::Offer* _msg = _internal_mutable_offer(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.WebRtcSignalingFrame.offer) return _msg; } // .location.nearby.mediums.Answer answer = 4; +inline bool WebRtcSignalingFrame::has_answer() const { + return Frame_case() == kAnswer; +} inline bool WebRtcSignalingFrame::_internal_has_answer() const { return Frame_case() == kAnswer; } -inline bool WebRtcSignalingFrame::has_answer() const { - return _internal_has_answer(); -} inline void WebRtcSignalingFrame::set_has_answer() { - _oneof_case_[0] = kAnswer; + _impl_._oneof_case_[0] = kAnswer; } inline void WebRtcSignalingFrame::clear_answer() { - if (_internal_has_answer()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.answer_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kAnswer) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.answer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.answer_ != nullptr) { + _impl_.Frame_.answer_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::Answer* WebRtcSignalingFrame::release_answer() { +inline ::location::nearby::mediums::Answer* PROTOBUF_NULLABLE WebRtcSignalingFrame::release_answer() { // @@protoc_insertion_point(field_release:location.nearby.mediums.WebRtcSignalingFrame.answer) - if (_internal_has_answer()) { + if (Frame_case() == kAnswer) { clear_has_Frame(); - ::location::nearby::mediums::Answer* temp = Frame_.answer_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::Answer*>(_impl_.Frame_.answer_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.answer_ = nullptr; + _impl_.Frame_.answer_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::Answer& WebRtcSignalingFrame::_internal_answer() const { - return _internal_has_answer() - ? *Frame_.answer_ - : reinterpret_cast< ::location::nearby::mediums::Answer&>(::location::nearby::mediums::_Answer_default_instance_); + return Frame_case() == kAnswer ? static_cast(*reinterpret_cast<::location::nearby::mediums::Answer*>(_impl_.Frame_.answer_)) + : reinterpret_cast(::location::nearby::mediums::_Answer_default_instance_); } -inline const ::location::nearby::mediums::Answer& WebRtcSignalingFrame::answer() const { +inline const ::location::nearby::mediums::Answer& WebRtcSignalingFrame::answer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.answer) return _internal_answer(); } -inline ::location::nearby::mediums::Answer* WebRtcSignalingFrame::unsafe_arena_release_answer() { +inline ::location::nearby::mediums::Answer* PROTOBUF_NULLABLE WebRtcSignalingFrame::unsafe_arena_release_answer() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.WebRtcSignalingFrame.answer) - if (_internal_has_answer()) { + if (Frame_case() == kAnswer) { clear_has_Frame(); - ::location::nearby::mediums::Answer* temp = Frame_.answer_; - Frame_.answer_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::Answer*>(_impl_.Frame_.answer_); + _impl_.Frame_.answer_ = nullptr; return temp; } else { return nullptr; } } -inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_answer(::location::nearby::mediums::Answer* answer) { +inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_answer( + ::location::nearby::mediums::Answer* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (answer) { + if (value) { set_has_answer(); - Frame_.answer_ = answer; + _impl_.Frame_.answer_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.answer) } -inline ::location::nearby::mediums::Answer* WebRtcSignalingFrame::_internal_mutable_answer() { - if (!_internal_has_answer()) { +inline ::location::nearby::mediums::Answer* PROTOBUF_NONNULL WebRtcSignalingFrame::_internal_mutable_answer() { + if (Frame_case() != kAnswer) { clear_Frame(); set_has_answer(); - Frame_.answer_ = CreateMaybeMessage< ::location::nearby::mediums::Answer >(GetArenaForAllocation()); + _impl_.Frame_.answer_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::Answer>(GetArena())); } - return Frame_.answer_; + return reinterpret_cast<::location::nearby::mediums::Answer*>(_impl_.Frame_.answer_); } -inline ::location::nearby::mediums::Answer* WebRtcSignalingFrame::mutable_answer() { +inline ::location::nearby::mediums::Answer* PROTOBUF_NONNULL WebRtcSignalingFrame::mutable_answer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::Answer* _msg = _internal_mutable_answer(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.WebRtcSignalingFrame.answer) return _msg; } // .location.nearby.mediums.IceCandidates ice_candidates = 5; +inline bool WebRtcSignalingFrame::has_ice_candidates() const { + return Frame_case() == kIceCandidates; +} inline bool WebRtcSignalingFrame::_internal_has_ice_candidates() const { return Frame_case() == kIceCandidates; } -inline bool WebRtcSignalingFrame::has_ice_candidates() const { - return _internal_has_ice_candidates(); -} inline void WebRtcSignalingFrame::set_has_ice_candidates() { - _oneof_case_[0] = kIceCandidates; + _impl_._oneof_case_[0] = kIceCandidates; } inline void WebRtcSignalingFrame::clear_ice_candidates() { - if (_internal_has_ice_candidates()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.ice_candidates_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kIceCandidates) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.ice_candidates_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.ice_candidates_ != nullptr) { + _impl_.Frame_.ice_candidates_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::IceCandidates* WebRtcSignalingFrame::release_ice_candidates() { +inline ::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE WebRtcSignalingFrame::release_ice_candidates() { // @@protoc_insertion_point(field_release:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) - if (_internal_has_ice_candidates()) { + if (Frame_case() == kIceCandidates) { clear_has_Frame(); - ::location::nearby::mediums::IceCandidates* temp = Frame_.ice_candidates_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::IceCandidates*>(_impl_.Frame_.ice_candidates_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.ice_candidates_ = nullptr; + _impl_.Frame_.ice_candidates_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::IceCandidates& WebRtcSignalingFrame::_internal_ice_candidates() const { - return _internal_has_ice_candidates() - ? *Frame_.ice_candidates_ - : reinterpret_cast< ::location::nearby::mediums::IceCandidates&>(::location::nearby::mediums::_IceCandidates_default_instance_); + return Frame_case() == kIceCandidates ? static_cast(*reinterpret_cast<::location::nearby::mediums::IceCandidates*>(_impl_.Frame_.ice_candidates_)) + : reinterpret_cast(::location::nearby::mediums::_IceCandidates_default_instance_); } -inline const ::location::nearby::mediums::IceCandidates& WebRtcSignalingFrame::ice_candidates() const { +inline const ::location::nearby::mediums::IceCandidates& WebRtcSignalingFrame::ice_candidates() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) return _internal_ice_candidates(); } -inline ::location::nearby::mediums::IceCandidates* WebRtcSignalingFrame::unsafe_arena_release_ice_candidates() { +inline ::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE WebRtcSignalingFrame::unsafe_arena_release_ice_candidates() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) - if (_internal_has_ice_candidates()) { + if (Frame_case() == kIceCandidates) { clear_has_Frame(); - ::location::nearby::mediums::IceCandidates* temp = Frame_.ice_candidates_; - Frame_.ice_candidates_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::IceCandidates*>(_impl_.Frame_.ice_candidates_); + _impl_.Frame_.ice_candidates_ = nullptr; return temp; } else { return nullptr; } } -inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_ice_candidates(::location::nearby::mediums::IceCandidates* ice_candidates) { +inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_ice_candidates( + ::location::nearby::mediums::IceCandidates* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (ice_candidates) { + if (value) { set_has_ice_candidates(); - Frame_.ice_candidates_ = ice_candidates; + _impl_.Frame_.ice_candidates_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) } -inline ::location::nearby::mediums::IceCandidates* WebRtcSignalingFrame::_internal_mutable_ice_candidates() { - if (!_internal_has_ice_candidates()) { +inline ::location::nearby::mediums::IceCandidates* PROTOBUF_NONNULL WebRtcSignalingFrame::_internal_mutable_ice_candidates() { + if (Frame_case() != kIceCandidates) { clear_Frame(); set_has_ice_candidates(); - Frame_.ice_candidates_ = CreateMaybeMessage< ::location::nearby::mediums::IceCandidates >(GetArenaForAllocation()); + _impl_.Frame_.ice_candidates_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::IceCandidates>(GetArena())); } - return Frame_.ice_candidates_; + return reinterpret_cast<::location::nearby::mediums::IceCandidates*>(_impl_.Frame_.ice_candidates_); } -inline ::location::nearby::mediums::IceCandidates* WebRtcSignalingFrame::mutable_ice_candidates() { +inline ::location::nearby::mediums::IceCandidates* PROTOBUF_NONNULL WebRtcSignalingFrame::mutable_ice_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::IceCandidates* _msg = _internal_mutable_ice_candidates(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.WebRtcSignalingFrame.ice_candidates) return _msg; } // .location.nearby.mediums.ReadyForSignalingPoke ready_for_signaling_poke = 6; +inline bool WebRtcSignalingFrame::has_ready_for_signaling_poke() const { + return Frame_case() == kReadyForSignalingPoke; +} inline bool WebRtcSignalingFrame::_internal_has_ready_for_signaling_poke() const { return Frame_case() == kReadyForSignalingPoke; } -inline bool WebRtcSignalingFrame::has_ready_for_signaling_poke() const { - return _internal_has_ready_for_signaling_poke(); -} inline void WebRtcSignalingFrame::set_has_ready_for_signaling_poke() { - _oneof_case_[0] = kReadyForSignalingPoke; + _impl_._oneof_case_[0] = kReadyForSignalingPoke; } inline void WebRtcSignalingFrame::clear_ready_for_signaling_poke() { - if (_internal_has_ready_for_signaling_poke()) { - if (GetArenaForAllocation() == nullptr) { - delete Frame_.ready_for_signaling_poke_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (Frame_case() == kReadyForSignalingPoke) { + if (GetArena() == nullptr) { + delete _impl_.Frame_.ready_for_signaling_poke_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.Frame_.ready_for_signaling_poke_ != nullptr) { + _impl_.Frame_.ready_for_signaling_poke_->Clear(); + } } clear_has_Frame(); } } -inline ::location::nearby::mediums::ReadyForSignalingPoke* WebRtcSignalingFrame::release_ready_for_signaling_poke() { +inline ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE WebRtcSignalingFrame::release_ready_for_signaling_poke() { // @@protoc_insertion_point(field_release:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) - if (_internal_has_ready_for_signaling_poke()) { + if (Frame_case() == kReadyForSignalingPoke) { clear_has_Frame(); - ::location::nearby::mediums::ReadyForSignalingPoke* temp = Frame_.ready_for_signaling_poke_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::location::nearby::mediums::ReadyForSignalingPoke*>(_impl_.Frame_.ready_for_signaling_poke_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - Frame_.ready_for_signaling_poke_ = nullptr; + _impl_.Frame_.ready_for_signaling_poke_ = nullptr; return temp; } else { return nullptr; } } inline const ::location::nearby::mediums::ReadyForSignalingPoke& WebRtcSignalingFrame::_internal_ready_for_signaling_poke() const { - return _internal_has_ready_for_signaling_poke() - ? *Frame_.ready_for_signaling_poke_ - : reinterpret_cast< ::location::nearby::mediums::ReadyForSignalingPoke&>(::location::nearby::mediums::_ReadyForSignalingPoke_default_instance_); + return Frame_case() == kReadyForSignalingPoke ? static_cast(*reinterpret_cast<::location::nearby::mediums::ReadyForSignalingPoke*>(_impl_.Frame_.ready_for_signaling_poke_)) + : reinterpret_cast(::location::nearby::mediums::_ReadyForSignalingPoke_default_instance_); } -inline const ::location::nearby::mediums::ReadyForSignalingPoke& WebRtcSignalingFrame::ready_for_signaling_poke() const { +inline const ::location::nearby::mediums::ReadyForSignalingPoke& WebRtcSignalingFrame::ready_for_signaling_poke() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) return _internal_ready_for_signaling_poke(); } -inline ::location::nearby::mediums::ReadyForSignalingPoke* WebRtcSignalingFrame::unsafe_arena_release_ready_for_signaling_poke() { +inline ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE WebRtcSignalingFrame::unsafe_arena_release_ready_for_signaling_poke() { // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) - if (_internal_has_ready_for_signaling_poke()) { + if (Frame_case() == kReadyForSignalingPoke) { clear_has_Frame(); - ::location::nearby::mediums::ReadyForSignalingPoke* temp = Frame_.ready_for_signaling_poke_; - Frame_.ready_for_signaling_poke_ = nullptr; + auto* temp = reinterpret_cast<::location::nearby::mediums::ReadyForSignalingPoke*>(_impl_.Frame_.ready_for_signaling_poke_); + _impl_.Frame_.ready_for_signaling_poke_ = nullptr; return temp; } else { return nullptr; } } -inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_ready_for_signaling_poke(::location::nearby::mediums::ReadyForSignalingPoke* ready_for_signaling_poke) { +inline void WebRtcSignalingFrame::unsafe_arena_set_allocated_ready_for_signaling_poke( + ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_Frame(); - if (ready_for_signaling_poke) { + if (value) { set_has_ready_for_signaling_poke(); - Frame_.ready_for_signaling_poke_ = ready_for_signaling_poke; + _impl_.Frame_.ready_for_signaling_poke_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) } -inline ::location::nearby::mediums::ReadyForSignalingPoke* WebRtcSignalingFrame::_internal_mutable_ready_for_signaling_poke() { - if (!_internal_has_ready_for_signaling_poke()) { +inline ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NONNULL WebRtcSignalingFrame::_internal_mutable_ready_for_signaling_poke() { + if (Frame_case() != kReadyForSignalingPoke) { clear_Frame(); set_has_ready_for_signaling_poke(); - Frame_.ready_for_signaling_poke_ = CreateMaybeMessage< ::location::nearby::mediums::ReadyForSignalingPoke >(GetArenaForAllocation()); + _impl_.Frame_.ready_for_signaling_poke_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::ReadyForSignalingPoke>(GetArena())); } - return Frame_.ready_for_signaling_poke_; + return reinterpret_cast<::location::nearby::mediums::ReadyForSignalingPoke*>(_impl_.Frame_.ready_for_signaling_poke_); } -inline ::location::nearby::mediums::ReadyForSignalingPoke* WebRtcSignalingFrame::mutable_ready_for_signaling_poke() { +inline ::location::nearby::mediums::ReadyForSignalingPoke* PROTOBUF_NONNULL WebRtcSignalingFrame::mutable_ready_for_signaling_poke() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::location::nearby::mediums::ReadyForSignalingPoke* _msg = _internal_mutable_ready_for_signaling_poke(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.WebRtcSignalingFrame.ready_for_signaling_poke) return _msg; @@ -1884,81 +2234,81 @@ inline bool WebRtcSignalingFrame::has_Frame() const { return Frame_case() != FRAME_NOT_SET; } inline void WebRtcSignalingFrame::clear_has_Frame() { - _oneof_case_[0] = FRAME_NOT_SET; + _impl_._oneof_case_[0] = FRAME_NOT_SET; } inline WebRtcSignalingFrame::FrameCase WebRtcSignalingFrame::Frame_case() const { - return WebRtcSignalingFrame::FrameCase(_oneof_case_[0]); + return WebRtcSignalingFrame::FrameCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // PeerId // optional string id = 1; -inline bool PeerId::_internal_has_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool PeerId::has_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool PeerId::has_id() const { - return _internal_has_id(); -} inline void PeerId::clear_id() { - id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& PeerId::id() const { +inline const ::std::string& PeerId::id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.PeerId.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PeerId::set_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void PeerId::set_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.PeerId.id) } -inline std::string* PeerId::mutable_id() { - std::string* _s = _internal_mutable_id(); +inline ::std::string* PROTOBUF_NONNULL PeerId::mutable_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.PeerId.id) return _s; } -inline const std::string& PeerId::_internal_id() const { - return id_.Get(); +inline const ::std::string& PeerId::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_.Get(); } -inline void PeerId::_internal_set_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void PeerId::_internal_set_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_.Set(value, GetArena()); } -inline std::string* PeerId::_internal_mutable_id() { - _has_bits_[0] |= 0x00000001u; - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL PeerId::_internal_mutable_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.id_.Mutable( GetArena()); } -inline std::string* PeerId::release_id() { +inline ::std::string* PROTOBUF_NULLABLE PeerId::release_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.PeerId.id) - if (!_internal_has_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PeerId::set_allocated_id(std::string* id) { - if (id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void PeerId::set_allocated_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.PeerId.id) } @@ -1967,71 +2317,71 @@ inline void PeerId::set_allocated_id(std::string* id) { // SessionDescription // optional string description = 1; -inline bool SessionDescription::_internal_has_description() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SessionDescription::has_description() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SessionDescription::has_description() const { - return _internal_has_description(); -} inline void SessionDescription::clear_description() { - description_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.description_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SessionDescription::description() const { +inline const ::std::string& SessionDescription::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.SessionDescription.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SessionDescription::set_description(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SessionDescription::set_description(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.SessionDescription.description) } -inline std::string* SessionDescription::mutable_description() { - std::string* _s = _internal_mutable_description(); +inline ::std::string* PROTOBUF_NONNULL SessionDescription::mutable_description() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.SessionDescription.description) return _s; } -inline const std::string& SessionDescription::_internal_description() const { - return description_.Get(); +inline const ::std::string& SessionDescription::_internal_description() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.description_.Get(); } -inline void SessionDescription::_internal_set_description(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SessionDescription::_internal_set_description(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.description_.Set(value, GetArena()); } -inline std::string* SessionDescription::_internal_mutable_description() { - _has_bits_[0] |= 0x00000001u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SessionDescription::_internal_mutable_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.description_.Mutable( GetArena()); } -inline std::string* SessionDescription::release_description() { +inline ::std::string* PROTOBUF_NULLABLE SessionDescription::release_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.SessionDescription.description) - if (!_internal_has_description()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (description_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.description_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.description_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SessionDescription::set_allocated_description(std::string* description) { - if (description != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SessionDescription::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (description_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.description_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.SessionDescription.description) } @@ -2040,170 +2390,171 @@ inline void SessionDescription::set_allocated_description(std::string* descripti // IceCandidate // optional string sdp = 1; -inline bool IceCandidate::_internal_has_sdp() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool IceCandidate::has_sdp() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool IceCandidate::has_sdp() const { - return _internal_has_sdp(); -} inline void IceCandidate::clear_sdp() { - sdp_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& IceCandidate::sdp() const { +inline const ::std::string& IceCandidate::sdp() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.IceCandidate.sdp) return _internal_sdp(); } -template -inline PROTOBUF_ALWAYS_INLINE -void IceCandidate::set_sdp(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void IceCandidate::set_sdp(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.sdp_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.IceCandidate.sdp) } -inline std::string* IceCandidate::mutable_sdp() { - std::string* _s = _internal_mutable_sdp(); +inline ::std::string* PROTOBUF_NONNULL IceCandidate::mutable_sdp() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_sdp(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.IceCandidate.sdp) return _s; } -inline const std::string& IceCandidate::_internal_sdp() const { - return sdp_.Get(); +inline const ::std::string& IceCandidate::_internal_sdp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sdp_.Get(); } -inline void IceCandidate::_internal_set_sdp(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void IceCandidate::_internal_set_sdp(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_.Set(value, GetArena()); } -inline std::string* IceCandidate::_internal_mutable_sdp() { - _has_bits_[0] |= 0x00000001u; - return sdp_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL IceCandidate::_internal_mutable_sdp() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.sdp_.Mutable( GetArena()); } -inline std::string* IceCandidate::release_sdp() { +inline ::std::string* PROTOBUF_NULLABLE IceCandidate::release_sdp() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.IceCandidate.sdp) - if (!_internal_has_sdp()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = sdp_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sdp_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.sdp_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sdp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void IceCandidate::set_allocated_sdp(std::string* sdp) { - if (sdp != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void IceCandidate::set_allocated_sdp(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - sdp_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sdp, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sdp_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.sdp_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sdp_.IsDefault()) { + _impl_.sdp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.IceCandidate.sdp) } // optional string sdp_mid = 2; -inline bool IceCandidate::_internal_has_sdp_mid() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool IceCandidate::has_sdp_mid() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool IceCandidate::has_sdp_mid() const { - return _internal_has_sdp_mid(); -} inline void IceCandidate::clear_sdp_mid() { - sdp_mid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_mid_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& IceCandidate::sdp_mid() const { +inline const ::std::string& IceCandidate::sdp_mid() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.IceCandidate.sdp_mid) return _internal_sdp_mid(); } -template -inline PROTOBUF_ALWAYS_INLINE -void IceCandidate::set_sdp_mid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - sdp_mid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void IceCandidate::set_sdp_mid(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.sdp_mid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:location.nearby.mediums.IceCandidate.sdp_mid) } -inline std::string* IceCandidate::mutable_sdp_mid() { - std::string* _s = _internal_mutable_sdp_mid(); +inline ::std::string* PROTOBUF_NONNULL IceCandidate::mutable_sdp_mid() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_sdp_mid(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.IceCandidate.sdp_mid) return _s; } -inline const std::string& IceCandidate::_internal_sdp_mid() const { - return sdp_mid_.Get(); +inline const ::std::string& IceCandidate::_internal_sdp_mid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sdp_mid_.Get(); } -inline void IceCandidate::_internal_set_sdp_mid(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - sdp_mid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void IceCandidate::_internal_set_sdp_mid(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_mid_.Set(value, GetArena()); } -inline std::string* IceCandidate::_internal_mutable_sdp_mid() { - _has_bits_[0] |= 0x00000002u; - return sdp_mid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL IceCandidate::_internal_mutable_sdp_mid() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.sdp_mid_.Mutable( GetArena()); } -inline std::string* IceCandidate::release_sdp_mid() { +inline ::std::string* PROTOBUF_NULLABLE IceCandidate::release_sdp_mid() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.IceCandidate.sdp_mid) - if (!_internal_has_sdp_mid()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = sdp_mid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sdp_mid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sdp_mid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.sdp_mid_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sdp_mid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void IceCandidate::set_allocated_sdp_mid(std::string* sdp_mid) { - if (sdp_mid != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void IceCandidate::set_allocated_sdp_mid(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - sdp_mid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sdp_mid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sdp_mid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sdp_mid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.sdp_mid_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sdp_mid_.IsDefault()) { + _impl_.sdp_mid_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.IceCandidate.sdp_mid) } // optional int32 sdp_m_line_index = 3; -inline bool IceCandidate::_internal_has_sdp_m_line_index() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool IceCandidate::has_sdp_m_line_index() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool IceCandidate::has_sdp_m_line_index() const { - return _internal_has_sdp_m_line_index(); -} inline void IceCandidate::clear_sdp_m_line_index() { - sdp_m_line_index_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_m_line_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t IceCandidate::_internal_sdp_m_line_index() const { - return sdp_m_line_index_; -} -inline int32_t IceCandidate::sdp_m_line_index() const { +inline ::int32_t IceCandidate::sdp_m_line_index() const { // @@protoc_insertion_point(field_get:location.nearby.mediums.IceCandidate.sdp_m_line_index) return _internal_sdp_m_line_index(); } -inline void IceCandidate::_internal_set_sdp_m_line_index(int32_t value) { - _has_bits_[0] |= 0x00000004u; - sdp_m_line_index_ = value; -} -inline void IceCandidate::set_sdp_m_line_index(int32_t value) { +inline void IceCandidate::set_sdp_m_line_index(::int32_t value) { _internal_set_sdp_m_line_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:location.nearby.mediums.IceCandidate.sdp_m_line_index) } +inline ::int32_t IceCandidate::_internal_sdp_m_line_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sdp_m_line_index_; +} +inline void IceCandidate::_internal_set_sdp_m_line_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sdp_m_line_index_ = value; +} // ------------------------------------------------------------------- @@ -2211,42 +2562,58 @@ inline void IceCandidate::set_sdp_m_line_index(int32_t value) { // repeated .location.nearby.mediums.IceCandidate ice_candidates = 1; inline int IceCandidates::_internal_ice_candidates_size() const { - return ice_candidates_.size(); + return _internal_ice_candidates().size(); } inline int IceCandidates::ice_candidates_size() const { return _internal_ice_candidates_size(); } inline void IceCandidates::clear_ice_candidates() { - ice_candidates_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ice_candidates_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::location::nearby::mediums::IceCandidate* IceCandidates::mutable_ice_candidates(int index) { +inline ::location::nearby::mediums::IceCandidate* PROTOBUF_NONNULL IceCandidates::mutable_ice_candidates(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:location.nearby.mediums.IceCandidates.ice_candidates) - return ice_candidates_.Mutable(index); + return _internal_mutable_ice_candidates()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::mediums::IceCandidate >* -IceCandidates::mutable_ice_candidates() { +inline ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>* PROTOBUF_NONNULL IceCandidates::mutable_ice_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:location.nearby.mediums.IceCandidates.ice_candidates) - return &ice_candidates_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_ice_candidates(); } -inline const ::location::nearby::mediums::IceCandidate& IceCandidates::_internal_ice_candidates(int index) const { - return ice_candidates_.Get(index); -} -inline const ::location::nearby::mediums::IceCandidate& IceCandidates::ice_candidates(int index) const { +inline const ::location::nearby::mediums::IceCandidate& IceCandidates::ice_candidates(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.IceCandidates.ice_candidates) - return _internal_ice_candidates(index); + return _internal_ice_candidates().Get(index); } -inline ::location::nearby::mediums::IceCandidate* IceCandidates::_internal_add_ice_candidates() { - return ice_candidates_.Add(); -} -inline ::location::nearby::mediums::IceCandidate* IceCandidates::add_ice_candidates() { - ::location::nearby::mediums::IceCandidate* _add = _internal_add_ice_candidates(); +inline ::location::nearby::mediums::IceCandidate* PROTOBUF_NONNULL IceCandidates::add_ice_candidates() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::location::nearby::mediums::IceCandidate* _add = + _internal_mutable_ice_candidates()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:location.nearby.mediums.IceCandidates.ice_candidates) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::mediums::IceCandidate >& -IceCandidates::ice_candidates() const { +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>& IceCandidates::ice_candidates() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:location.nearby.mediums.IceCandidates.ice_candidates) - return ice_candidates_; + return _internal_ice_candidates(); +} +inline const ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>& +IceCandidates::_internal_ice_candidates() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ice_candidates_; +} +inline ::google::protobuf::RepeatedPtrField<::location::nearby::mediums::IceCandidate>* PROTOBUF_NONNULL +IceCandidates::_internal_mutable_ice_candidates() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.ice_candidates_; } // ------------------------------------------------------------------- @@ -2254,92 +2621,101 @@ IceCandidates::ice_candidates() const { // Offer // optional .location.nearby.mediums.SessionDescription session_description = 1; -inline bool Offer::_internal_has_session_description() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || session_description_ != nullptr); +inline bool Offer::has_session_description() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.session_description_ != nullptr); return value; } -inline bool Offer::has_session_description() const { - return _internal_has_session_description(); -} inline void Offer::clear_session_description() { - if (session_description_ != nullptr) session_description_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.session_description_ != nullptr) _impl_.session_description_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::mediums::SessionDescription& Offer::_internal_session_description() const { - const ::location::nearby::mediums::SessionDescription* p = session_description_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_SessionDescription_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::SessionDescription* p = _impl_.session_description_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_SessionDescription_default_instance_); } -inline const ::location::nearby::mediums::SessionDescription& Offer::session_description() const { +inline const ::location::nearby::mediums::SessionDescription& Offer::session_description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.Offer.session_description) return _internal_session_description(); } inline void Offer::unsafe_arena_set_allocated_session_description( - ::location::nearby::mediums::SessionDescription* session_description) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_description_); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.session_description_); } - session_description_ = session_description; - if (session_description) { - _has_bits_[0] |= 0x00000001u; + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.Offer.session_description) } -inline ::location::nearby::mediums::SessionDescription* Offer::release_session_description() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::SessionDescription* temp = session_description_; - session_description_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE Offer::release_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::SessionDescription* released = _impl_.session_description_; + _impl_.session_description_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::SessionDescription* Offer::unsafe_arena_release_session_description() { +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE Offer::unsafe_arena_release_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.Offer.session_description) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::SessionDescription* temp = session_description_; - session_description_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::SessionDescription* temp = _impl_.session_description_; + _impl_.session_description_ = nullptr; return temp; } -inline ::location::nearby::mediums::SessionDescription* Offer::_internal_mutable_session_description() { - _has_bits_[0] |= 0x00000001u; - if (session_description_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::SessionDescription>(GetArenaForAllocation()); - session_description_ = p; +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL Offer::_internal_mutable_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.session_description_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::SessionDescription>(GetArena()); + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(p); } - return session_description_; + return _impl_.session_description_; } -inline ::location::nearby::mediums::SessionDescription* Offer::mutable_session_description() { +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL Offer::mutable_session_description() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::mediums::SessionDescription* _msg = _internal_mutable_session_description(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.Offer.session_description) return _msg; } -inline void Offer::set_allocated_session_description(::location::nearby::mediums::SessionDescription* session_description) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Offer::set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete session_description_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.session_description_); } - if (session_description) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::SessionDescription>::GetOwningArena(session_description); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - session_description = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, session_description, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - session_description_ = session_description; + + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.Offer.session_description) } @@ -2348,92 +2724,101 @@ inline void Offer::set_allocated_session_description(::location::nearby::mediums // Answer // optional .location.nearby.mediums.SessionDescription session_description = 1; -inline bool Answer::_internal_has_session_description() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || session_description_ != nullptr); +inline bool Answer::has_session_description() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.session_description_ != nullptr); return value; } -inline bool Answer::has_session_description() const { - return _internal_has_session_description(); -} inline void Answer::clear_session_description() { - if (session_description_ != nullptr) session_description_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.session_description_ != nullptr) _impl_.session_description_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::location::nearby::mediums::SessionDescription& Answer::_internal_session_description() const { - const ::location::nearby::mediums::SessionDescription* p = session_description_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::mediums::_SessionDescription_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::location::nearby::mediums::SessionDescription* p = _impl_.session_description_; + return p != nullptr ? *p : reinterpret_cast(::location::nearby::mediums::_SessionDescription_default_instance_); } -inline const ::location::nearby::mediums::SessionDescription& Answer::session_description() const { +inline const ::location::nearby::mediums::SessionDescription& Answer::session_description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:location.nearby.mediums.Answer.session_description) return _internal_session_description(); } inline void Answer::unsafe_arena_set_allocated_session_description( - ::location::nearby::mediums::SessionDescription* session_description) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_description_); + ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.session_description_); } - session_description_ = session_description; - if (session_description) { - _has_bits_[0] |= 0x00000001u; + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.mediums.Answer.session_description) } -inline ::location::nearby::mediums::SessionDescription* Answer::release_session_description() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::SessionDescription* temp = session_description_; - session_description_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE Answer::release_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::SessionDescription* released = _impl_.session_description_; + _impl_.session_description_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::location::nearby::mediums::SessionDescription* Answer::unsafe_arena_release_session_description() { +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE Answer::unsafe_arena_release_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.mediums.Answer.session_description) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::mediums::SessionDescription* temp = session_description_; - session_description_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::location::nearby::mediums::SessionDescription* temp = _impl_.session_description_; + _impl_.session_description_ = nullptr; return temp; } -inline ::location::nearby::mediums::SessionDescription* Answer::_internal_mutable_session_description() { - _has_bits_[0] |= 0x00000001u; - if (session_description_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::mediums::SessionDescription>(GetArenaForAllocation()); - session_description_ = p; +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL Answer::_internal_mutable_session_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.session_description_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::location::nearby::mediums::SessionDescription>(GetArena()); + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(p); } - return session_description_; + return _impl_.session_description_; } -inline ::location::nearby::mediums::SessionDescription* Answer::mutable_session_description() { +inline ::location::nearby::mediums::SessionDescription* PROTOBUF_NONNULL Answer::mutable_session_description() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::location::nearby::mediums::SessionDescription* _msg = _internal_mutable_session_description(); // @@protoc_insertion_point(field_mutable:location.nearby.mediums.Answer.session_description) return _msg; } -inline void Answer::set_allocated_session_description(::location::nearby::mediums::SessionDescription* session_description) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Answer::set_allocated_session_description(::location::nearby::mediums::SessionDescription* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete session_description_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.session_description_); } - if (session_description) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::mediums::SessionDescription>::GetOwningArena(session_description); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - session_description = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, session_description, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - session_description_ = session_description; + + _impl_.session_description_ = reinterpret_cast<::location::nearby::mediums::SessionDescription*>(value); // @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.Answer.session_description) } @@ -2442,36 +2827,26 @@ inline void Answer::set_allocated_session_description(::location::nearby::medium // ReadyForSignalingPoke #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace mediums } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::mediums::WebRtcSignalingFrame_FrameType> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::mediums::WebRtcSignalingFrame_FrameType> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fmediums_2fweb_5frtc_5fsignaling_5fframes_2eproto_2epb_2eh diff --git a/compiled_proto/proto/sharing_enums.pb.cc b/compiled_proto/proto/sharing_enums.pb.cc index 4b1608a6..0dabb5c5 100644 --- a/compiled_proto/proto/sharing_enums.pb.cc +++ b/compiled_proto/proto/sharing_enums.pb.cc @@ -1,17 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/sharing_enums.proto +// Protobuf C++ Version: 6.33.3 #include "proto/sharing_enums.pb.h" #include - -#include -#include -#include +#include +#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" // @@protoc_insertion_point(includes) -#include +// 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 proto { @@ -24,3734 +32,2942 @@ namespace location { namespace nearby { namespace proto { namespace sharing { -bool EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - case 48: - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - case 58: - case 59: - case 60: - case 61: - case 62: - case 63: - case 64: - case 65: - case 66: - case 67: - case 68: - case 69: - case 70: - case 71: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 80: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EventType_internal_data_[] = { + 5308416u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EventType_strings[81] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EventType_strings[81] = {}; +static const char EventType_names[] = { + "ACCEPT_AGREEMENTS" + "ACCEPT_FAST_INITIALIZATION" + "ADD_CONTACT" + "ADD_QUICK_SETTINGS_TILE" + "ADVERTISE_DEVICE_PRESENCE_END" + "ADVERTISE_DEVICE_PRESENCE_START" + "APP_CRASH" + "AUTO_DISMISS_FAST_INITIALIZATION" + "CANCEL_CONNECTION" + "CANCEL_RECEIVING_ATTACHMENTS" + "CANCEL_SENDING_ATTACHMENTS" + "CLOUD_CREATE_SHARING_REQUEST" + "CLOUD_DOWNLOAD_END" + "CLOUD_DOWNLOAD_START" + "CLOUD_REGISTER_RECEIVER" + "CLOUD_SHARING_RPC_RESULT" + "CLOUD_UPLOAD_END" + "CLOUD_UPLOAD_START" + "DECLINE_AGREEMENTS" + "DECRYPT_CERTIFICATE_FAILURE" + "DEFAULT_OPT_IN" + "DESCRIBE_ATTACHMENTS" + "DEVICE_SETTINGS" + "DISCOVER_SHARE_TARGET" + "DISMISS_FAST_INITIALIZATION" + "DISMISS_PRIVACY_NOTIFICATION" + "DISPLAY_PHONE_CONSENT" + "DISPLAY_PRIVACY_NOTIFICATION" + "ENABLE_NEARBY_SHARING" + "ESTABLISH_CONNECTION" + "FAST_INIT_DISCOVER_DEVICE" + "FAST_SHARE_SERVER_RESPONSE" + "HATS_JOINT_EVENT" + "HIGH_QUALITY_MEDIUM_SETUP" + "INSTALL_APK" + "LAUNCH_ACTIVITY" + "LAUNCH_CONSENT" + "LAUNCH_PHONE_CONSENT" + "LAUNCH_SETUP_ACTIVITY" + "OPEN_RECEIVED_ATTACHMENTS" + "PARSING_FAILED_ENDPOINT_ID" + "PREFERENCES_USAGE" + "PROCESS_RECEIVED_ATTACHMENTS_END" + "QR_CODE_LINK_SHOWN" + "QR_CODE_OPENED_IN_WEB_CLIENT" + "RECEIVE_ATTACHMENTS_END" + "RECEIVE_ATTACHMENTS_START" + "RECEIVE_FAST_INITIALIZATION" + "RECEIVE_INTRODUCTION" + "RECEIVE_PREVIEWS" + "REMOVE_CONTACT" + "REMOVE_QUICK_SETTINGS_TILE" + "REQUEST_SETTING_PERMISSIONS" + "RESPOND_TO_INTRODUCTION" + "RPC_CALL_STATUS" + "SCAN_FOR_SHARE_TARGETS_END" + "SCAN_FOR_SHARE_TARGETS_START" + "SEND_ATTACHMENTS_END" + "SEND_ATTACHMENTS_START" + "SEND_DESKTOP_NOTIFICATION" + "SEND_DESKTOP_TRANSFER_EVENT" + "SEND_FAST_INITIALIZATION" + "SEND_INTRODUCTION" + "SEND_START" + "SETUP_WIZARD" + "SET_ACCOUNT" + "SET_DATA_USAGE" + "SET_DEVICE_NAME" + "SET_VISIBILITY" + "SHOW_ALLOW_PERMISSION_AUTO_ACCESS" + "START_QR_CODE_SESSION" + "TAP_FEEDBACK" + "TAP_HELP" + "TAP_PRIVACY_NOTIFICATION" + "TAP_QR_CODE" + "TAP_QUICK_SETTINGS_FILE_SHARE" + "TAP_QUICK_SETTINGS_TILE" + "TOGGLE_SHOW_NOTIFICATION" + "UNKNOWN_EVENT_TYPE" + "VERIFY_APK" + "WAITING_FOR_ACCEPT" +}; -static const char EventType_names[] = - "ACCEPT_AGREEMENTS" - "ACCEPT_FAST_INITIALIZATION" - "ADD_CONTACT" - "ADD_QUICK_SETTINGS_TILE" - "ADVERTISE_DEVICE_PRESENCE_END" - "ADVERTISE_DEVICE_PRESENCE_START" - "APP_CRASH" - "AUTO_DISMISS_FAST_INITIALIZATION" - "CANCEL_CONNECTION" - "CANCEL_RECEIVING_ATTACHMENTS" - "CANCEL_SENDING_ATTACHMENTS" - "CLOUD_CREATE_SHARING_REQUEST" - "CLOUD_DOWNLOAD_END" - "CLOUD_DOWNLOAD_START" - "CLOUD_REGISTER_RECEIVER" - "CLOUD_SHARING_RPC_RESULT" - "CLOUD_UPLOAD_END" - "CLOUD_UPLOAD_START" - "DECLINE_AGREEMENTS" - "DECRYPT_CERTIFICATE_FAILURE" - "DEFAULT_OPT_IN" - "DESCRIBE_ATTACHMENTS" - "DEVICE_SETTINGS" - "DISCOVER_SHARE_TARGET" - "DISMISS_FAST_INITIALIZATION" - "DISMISS_PRIVACY_NOTIFICATION" - "DISPLAY_PHONE_CONSENT" - "DISPLAY_PRIVACY_NOTIFICATION" - "ENABLE_NEARBY_SHARING" - "ESTABLISH_CONNECTION" - "FAST_INIT_DISCOVER_DEVICE" - "FAST_SHARE_SERVER_RESPONSE" - "HATS_JOINT_EVENT" - "HIGH_QUALITY_MEDIUM_SETUP" - "INSTALL_APK" - "LAUNCH_ACTIVITY" - "LAUNCH_CONSENT" - "LAUNCH_PHONE_CONSENT" - "LAUNCH_SETUP_ACTIVITY" - "OPEN_RECEIVED_ATTACHMENTS" - "PARSING_FAILED_ENDPOINT_ID" - "PREFERENCES_USAGE" - "PROCESS_RECEIVED_ATTACHMENTS_END" - "QR_CODE_LINK_SHOWN" - "QR_CODE_OPENED_IN_WEB_CLIENT" - "RECEIVE_ATTACHMENTS_END" - "RECEIVE_ATTACHMENTS_START" - "RECEIVE_FAST_INITIALIZATION" - "RECEIVE_INTRODUCTION" - "RECEIVE_PREVIEWS" - "REMOVE_CONTACT" - "REMOVE_QUICK_SETTINGS_TILE" - "REQUEST_SETTING_PERMISSIONS" - "RESPOND_TO_INTRODUCTION" - "RPC_CALL_STATUS" - "SCAN_FOR_SHARE_TARGETS_END" - "SCAN_FOR_SHARE_TARGETS_START" - "SEND_ATTACHMENTS_END" - "SEND_ATTACHMENTS_START" - "SEND_DESKTOP_NOTIFICATION" - "SEND_DESKTOP_TRANSFER_EVENT" - "SEND_FAST_INITIALIZATION" - "SEND_INTRODUCTION" - "SEND_START" - "SETUP_WIZARD" - "SET_ACCOUNT" - "SET_DATA_USAGE" - "SET_DEVICE_NAME" - "SET_VISIBILITY" - "SHOW_ALLOW_PERMISSION_AUTO_ACCESS" - "START_QR_CODE_SESSION" - "TAP_FEEDBACK" - "TAP_HELP" - "TAP_PRIVACY_NOTIFICATION" - "TAP_QR_CODE" - "TAP_QUICK_SETTINGS_FILE_SHARE" - "TAP_QUICK_SETTINGS_TILE" - "TOGGLE_SHOW_NOTIFICATION" - "UNKNOWN_EVENT_TYPE" - "VERIFY_APK" - "WAITING_FOR_ACCEPT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EventType_entries[] = { - { {EventType_names + 0, 17}, 1 }, - { {EventType_names + 17, 26}, 27 }, - { {EventType_names + 43, 11}, 23 }, - { {EventType_names + 54, 23}, 36 }, - { {EventType_names + 77, 29}, 8 }, - { {EventType_names + 106, 31}, 7 }, - { {EventType_names + 137, 9}, 51 }, - { {EventType_names + 146, 32}, 50 }, - { {EventType_names + 178, 17}, 30 }, - { {EventType_names + 195, 28}, 20 }, - { {EventType_names + 223, 26}, 19 }, - { {EventType_names + 249, 28}, 74 }, - { {EventType_names + 277, 18}, 79 }, - { {EventType_names + 295, 20}, 78 }, - { {EventType_names + 315, 23}, 75 }, - { {EventType_names + 338, 24}, 80 }, - { {EventType_names + 362, 16}, 77 }, - { {EventType_names + 378, 18}, 76 }, - { {EventType_names + 396, 18}, 46 }, - { {EventType_names + 414, 27}, 64 }, - { {EventType_names + 441, 14}, 56 }, - { {EventType_names + 455, 20}, 4 }, - { {EventType_names + 475, 15}, 49 }, - { {EventType_names + 490, 21}, 11 }, - { {EventType_names + 511, 27}, 29 }, - { {EventType_names + 538, 28}, 32 }, - { {EventType_names + 566, 21}, 54 }, - { {EventType_names + 587, 28}, 53 }, - { {EventType_names + 615, 21}, 2 }, - { {EventType_names + 636, 20}, 48 }, - { {EventType_names + 656, 25}, 61 }, - { {EventType_names + 681, 26}, 25 }, - { {EventType_names + 707, 16}, 72 }, - { {EventType_names + 723, 25}, 68 }, - { {EventType_names + 748, 11}, 40 }, - { {EventType_names + 759, 15}, 31 }, - { {EventType_names + 774, 14}, 42 }, - { {EventType_names + 788, 20}, 38 }, - { {EventType_names + 808, 21}, 22 }, - { {EventType_names + 829, 25}, 21 }, - { {EventType_names + 854, 26}, 60 }, - { {EventType_names + 880, 17}, 55 }, - { {EventType_names + 897, 32}, 43 }, - { {EventType_names + 929, 18}, 59 }, - { {EventType_names + 947, 28}, 71 }, - { {EventType_names + 975, 23}, 18 }, - { {EventType_names + 998, 25}, 17 }, - { {EventType_names + 1023, 27}, 10 }, - { {EventType_names + 1050, 20}, 13 }, - { {EventType_names + 1070, 16}, 73 }, - { {EventType_names + 1086, 14}, 24 }, - { {EventType_names + 1100, 26}, 37 }, - { {EventType_names + 1126, 27}, 47 }, - { {EventType_names + 1153, 23}, 14 }, - { {EventType_names + 1176, 15}, 69 }, - { {EventType_names + 1191, 26}, 6 }, - { {EventType_names + 1217, 28}, 5 }, - { {EventType_names + 1245, 20}, 16 }, - { {EventType_names + 1265, 22}, 15 }, - { {EventType_names + 1287, 25}, 62 }, - { {EventType_names + 1312, 27}, 66 }, - { {EventType_names + 1339, 24}, 9 }, - { {EventType_names + 1363, 17}, 12 }, - { {EventType_names + 1380, 10}, 26 }, - { {EventType_names + 1390, 12}, 57 }, - { {EventType_names + 1402, 11}, 63 }, - { {EventType_names + 1413, 14}, 28 }, - { {EventType_names + 1427, 15}, 45 }, - { {EventType_names + 1442, 14}, 3 }, - { {EventType_names + 1456, 33}, 65 }, - { {EventType_names + 1489, 21}, 70 }, - { {EventType_names + 1510, 12}, 35 }, - { {EventType_names + 1522, 8}, 34 }, - { {EventType_names + 1530, 24}, 33 }, - { {EventType_names + 1554, 11}, 58 }, - { {EventType_names + 1565, 29}, 52 }, - { {EventType_names + 1594, 23}, 39 }, - { {EventType_names + 1617, 24}, 44 }, - { {EventType_names + 1641, 18}, 0 }, - { {EventType_names + 1659, 10}, 41 }, - { {EventType_names + 1669, 18}, 67 }, +static const ::google::protobuf::internal::EnumEntry EventType_entries[] = { + {{&EventType_names[0], 17}, 1}, + {{&EventType_names[17], 26}, 27}, + {{&EventType_names[43], 11}, 23}, + {{&EventType_names[54], 23}, 36}, + {{&EventType_names[77], 29}, 8}, + {{&EventType_names[106], 31}, 7}, + {{&EventType_names[137], 9}, 51}, + {{&EventType_names[146], 32}, 50}, + {{&EventType_names[178], 17}, 30}, + {{&EventType_names[195], 28}, 20}, + {{&EventType_names[223], 26}, 19}, + {{&EventType_names[249], 28}, 74}, + {{&EventType_names[277], 18}, 79}, + {{&EventType_names[295], 20}, 78}, + {{&EventType_names[315], 23}, 75}, + {{&EventType_names[338], 24}, 80}, + {{&EventType_names[362], 16}, 77}, + {{&EventType_names[378], 18}, 76}, + {{&EventType_names[396], 18}, 46}, + {{&EventType_names[414], 27}, 64}, + {{&EventType_names[441], 14}, 56}, + {{&EventType_names[455], 20}, 4}, + {{&EventType_names[475], 15}, 49}, + {{&EventType_names[490], 21}, 11}, + {{&EventType_names[511], 27}, 29}, + {{&EventType_names[538], 28}, 32}, + {{&EventType_names[566], 21}, 54}, + {{&EventType_names[587], 28}, 53}, + {{&EventType_names[615], 21}, 2}, + {{&EventType_names[636], 20}, 48}, + {{&EventType_names[656], 25}, 61}, + {{&EventType_names[681], 26}, 25}, + {{&EventType_names[707], 16}, 72}, + {{&EventType_names[723], 25}, 68}, + {{&EventType_names[748], 11}, 40}, + {{&EventType_names[759], 15}, 31}, + {{&EventType_names[774], 14}, 42}, + {{&EventType_names[788], 20}, 38}, + {{&EventType_names[808], 21}, 22}, + {{&EventType_names[829], 25}, 21}, + {{&EventType_names[854], 26}, 60}, + {{&EventType_names[880], 17}, 55}, + {{&EventType_names[897], 32}, 43}, + {{&EventType_names[929], 18}, 59}, + {{&EventType_names[947], 28}, 71}, + {{&EventType_names[975], 23}, 18}, + {{&EventType_names[998], 25}, 17}, + {{&EventType_names[1023], 27}, 10}, + {{&EventType_names[1050], 20}, 13}, + {{&EventType_names[1070], 16}, 73}, + {{&EventType_names[1086], 14}, 24}, + {{&EventType_names[1100], 26}, 37}, + {{&EventType_names[1126], 27}, 47}, + {{&EventType_names[1153], 23}, 14}, + {{&EventType_names[1176], 15}, 69}, + {{&EventType_names[1191], 26}, 6}, + {{&EventType_names[1217], 28}, 5}, + {{&EventType_names[1245], 20}, 16}, + {{&EventType_names[1265], 22}, 15}, + {{&EventType_names[1287], 25}, 62}, + {{&EventType_names[1312], 27}, 66}, + {{&EventType_names[1339], 24}, 9}, + {{&EventType_names[1363], 17}, 12}, + {{&EventType_names[1380], 10}, 26}, + {{&EventType_names[1390], 12}, 57}, + {{&EventType_names[1402], 11}, 63}, + {{&EventType_names[1413], 14}, 28}, + {{&EventType_names[1427], 15}, 45}, + {{&EventType_names[1442], 14}, 3}, + {{&EventType_names[1456], 33}, 65}, + {{&EventType_names[1489], 21}, 70}, + {{&EventType_names[1510], 12}, 35}, + {{&EventType_names[1522], 8}, 34}, + {{&EventType_names[1530], 24}, 33}, + {{&EventType_names[1554], 11}, 58}, + {{&EventType_names[1565], 29}, 52}, + {{&EventType_names[1594], 23}, 39}, + {{&EventType_names[1617], 24}, 44}, + {{&EventType_names[1641], 18}, 0}, + {{&EventType_names[1659], 10}, 41}, + {{&EventType_names[1669], 18}, 67}, }; static const int EventType_entries_by_number[] = { - 78, // 0 -> UNKNOWN_EVENT_TYPE - 0, // 1 -> ACCEPT_AGREEMENTS - 28, // 2 -> ENABLE_NEARBY_SHARING - 68, // 3 -> SET_VISIBILITY - 21, // 4 -> DESCRIBE_ATTACHMENTS - 56, // 5 -> SCAN_FOR_SHARE_TARGETS_START - 55, // 6 -> SCAN_FOR_SHARE_TARGETS_END - 5, // 7 -> ADVERTISE_DEVICE_PRESENCE_START - 4, // 8 -> ADVERTISE_DEVICE_PRESENCE_END - 61, // 9 -> SEND_FAST_INITIALIZATION - 47, // 10 -> RECEIVE_FAST_INITIALIZATION - 23, // 11 -> DISCOVER_SHARE_TARGET - 62, // 12 -> SEND_INTRODUCTION - 48, // 13 -> RECEIVE_INTRODUCTION - 53, // 14 -> RESPOND_TO_INTRODUCTION - 58, // 15 -> SEND_ATTACHMENTS_START - 57, // 16 -> SEND_ATTACHMENTS_END - 46, // 17 -> RECEIVE_ATTACHMENTS_START - 45, // 18 -> RECEIVE_ATTACHMENTS_END - 10, // 19 -> CANCEL_SENDING_ATTACHMENTS - 9, // 20 -> CANCEL_RECEIVING_ATTACHMENTS - 39, // 21 -> OPEN_RECEIVED_ATTACHMENTS - 38, // 22 -> LAUNCH_SETUP_ACTIVITY - 2, // 23 -> ADD_CONTACT - 50, // 24 -> REMOVE_CONTACT - 31, // 25 -> FAST_SHARE_SERVER_RESPONSE - 63, // 26 -> SEND_START - 1, // 27 -> ACCEPT_FAST_INITIALIZATION - 66, // 28 -> SET_DATA_USAGE - 24, // 29 -> DISMISS_FAST_INITIALIZATION - 8, // 30 -> CANCEL_CONNECTION - 35, // 31 -> LAUNCH_ACTIVITY - 25, // 32 -> DISMISS_PRIVACY_NOTIFICATION - 73, // 33 -> TAP_PRIVACY_NOTIFICATION - 72, // 34 -> TAP_HELP - 71, // 35 -> TAP_FEEDBACK - 3, // 36 -> ADD_QUICK_SETTINGS_TILE - 51, // 37 -> REMOVE_QUICK_SETTINGS_TILE - 37, // 38 -> LAUNCH_PHONE_CONSENT - 76, // 39 -> TAP_QUICK_SETTINGS_TILE - 34, // 40 -> INSTALL_APK - 79, // 41 -> VERIFY_APK - 36, // 42 -> LAUNCH_CONSENT - 42, // 43 -> PROCESS_RECEIVED_ATTACHMENTS_END - 77, // 44 -> TOGGLE_SHOW_NOTIFICATION - 67, // 45 -> SET_DEVICE_NAME - 18, // 46 -> DECLINE_AGREEMENTS - 52, // 47 -> REQUEST_SETTING_PERMISSIONS - 29, // 48 -> ESTABLISH_CONNECTION - 22, // 49 -> DEVICE_SETTINGS - 7, // 50 -> AUTO_DISMISS_FAST_INITIALIZATION - 6, // 51 -> APP_CRASH - 75, // 52 -> TAP_QUICK_SETTINGS_FILE_SHARE - 27, // 53 -> DISPLAY_PRIVACY_NOTIFICATION - 26, // 54 -> DISPLAY_PHONE_CONSENT - 41, // 55 -> PREFERENCES_USAGE - 20, // 56 -> DEFAULT_OPT_IN - 64, // 57 -> SETUP_WIZARD - 74, // 58 -> TAP_QR_CODE - 43, // 59 -> QR_CODE_LINK_SHOWN - 40, // 60 -> PARSING_FAILED_ENDPOINT_ID - 30, // 61 -> FAST_INIT_DISCOVER_DEVICE - 59, // 62 -> SEND_DESKTOP_NOTIFICATION - 65, // 63 -> SET_ACCOUNT - 19, // 64 -> DECRYPT_CERTIFICATE_FAILURE - 69, // 65 -> SHOW_ALLOW_PERMISSION_AUTO_ACCESS - 60, // 66 -> SEND_DESKTOP_TRANSFER_EVENT - 80, // 67 -> WAITING_FOR_ACCEPT - 33, // 68 -> HIGH_QUALITY_MEDIUM_SETUP - 54, // 69 -> RPC_CALL_STATUS - 70, // 70 -> START_QR_CODE_SESSION - 44, // 71 -> QR_CODE_OPENED_IN_WEB_CLIENT - 32, // 72 -> HATS_JOINT_EVENT - 49, // 73 -> RECEIVE_PREVIEWS - 11, // 74 -> CLOUD_CREATE_SHARING_REQUEST - 14, // 75 -> CLOUD_REGISTER_RECEIVER - 17, // 76 -> CLOUD_UPLOAD_START - 16, // 77 -> CLOUD_UPLOAD_END - 13, // 78 -> CLOUD_DOWNLOAD_START - 12, // 79 -> CLOUD_DOWNLOAD_END - 15, // 80 -> CLOUD_SHARING_RPC_RESULT + 78, // 0 -> UNKNOWN_EVENT_TYPE + 0, // 1 -> ACCEPT_AGREEMENTS + 28, // 2 -> ENABLE_NEARBY_SHARING + 68, // 3 -> SET_VISIBILITY + 21, // 4 -> DESCRIBE_ATTACHMENTS + 56, // 5 -> SCAN_FOR_SHARE_TARGETS_START + 55, // 6 -> SCAN_FOR_SHARE_TARGETS_END + 5, // 7 -> ADVERTISE_DEVICE_PRESENCE_START + 4, // 8 -> ADVERTISE_DEVICE_PRESENCE_END + 61, // 9 -> SEND_FAST_INITIALIZATION + 47, // 10 -> RECEIVE_FAST_INITIALIZATION + 23, // 11 -> DISCOVER_SHARE_TARGET + 62, // 12 -> SEND_INTRODUCTION + 48, // 13 -> RECEIVE_INTRODUCTION + 53, // 14 -> RESPOND_TO_INTRODUCTION + 58, // 15 -> SEND_ATTACHMENTS_START + 57, // 16 -> SEND_ATTACHMENTS_END + 46, // 17 -> RECEIVE_ATTACHMENTS_START + 45, // 18 -> RECEIVE_ATTACHMENTS_END + 10, // 19 -> CANCEL_SENDING_ATTACHMENTS + 9, // 20 -> CANCEL_RECEIVING_ATTACHMENTS + 39, // 21 -> OPEN_RECEIVED_ATTACHMENTS + 38, // 22 -> LAUNCH_SETUP_ACTIVITY + 2, // 23 -> ADD_CONTACT + 50, // 24 -> REMOVE_CONTACT + 31, // 25 -> FAST_SHARE_SERVER_RESPONSE + 63, // 26 -> SEND_START + 1, // 27 -> ACCEPT_FAST_INITIALIZATION + 66, // 28 -> SET_DATA_USAGE + 24, // 29 -> DISMISS_FAST_INITIALIZATION + 8, // 30 -> CANCEL_CONNECTION + 35, // 31 -> LAUNCH_ACTIVITY + 25, // 32 -> DISMISS_PRIVACY_NOTIFICATION + 73, // 33 -> TAP_PRIVACY_NOTIFICATION + 72, // 34 -> TAP_HELP + 71, // 35 -> TAP_FEEDBACK + 3, // 36 -> ADD_QUICK_SETTINGS_TILE + 51, // 37 -> REMOVE_QUICK_SETTINGS_TILE + 37, // 38 -> LAUNCH_PHONE_CONSENT + 76, // 39 -> TAP_QUICK_SETTINGS_TILE + 34, // 40 -> INSTALL_APK + 79, // 41 -> VERIFY_APK + 36, // 42 -> LAUNCH_CONSENT + 42, // 43 -> PROCESS_RECEIVED_ATTACHMENTS_END + 77, // 44 -> TOGGLE_SHOW_NOTIFICATION + 67, // 45 -> SET_DEVICE_NAME + 18, // 46 -> DECLINE_AGREEMENTS + 52, // 47 -> REQUEST_SETTING_PERMISSIONS + 29, // 48 -> ESTABLISH_CONNECTION + 22, // 49 -> DEVICE_SETTINGS + 7, // 50 -> AUTO_DISMISS_FAST_INITIALIZATION + 6, // 51 -> APP_CRASH + 75, // 52 -> TAP_QUICK_SETTINGS_FILE_SHARE + 27, // 53 -> DISPLAY_PRIVACY_NOTIFICATION + 26, // 54 -> DISPLAY_PHONE_CONSENT + 41, // 55 -> PREFERENCES_USAGE + 20, // 56 -> DEFAULT_OPT_IN + 64, // 57 -> SETUP_WIZARD + 74, // 58 -> TAP_QR_CODE + 43, // 59 -> QR_CODE_LINK_SHOWN + 40, // 60 -> PARSING_FAILED_ENDPOINT_ID + 30, // 61 -> FAST_INIT_DISCOVER_DEVICE + 59, // 62 -> SEND_DESKTOP_NOTIFICATION + 65, // 63 -> SET_ACCOUNT + 19, // 64 -> DECRYPT_CERTIFICATE_FAILURE + 69, // 65 -> SHOW_ALLOW_PERMISSION_AUTO_ACCESS + 60, // 66 -> SEND_DESKTOP_TRANSFER_EVENT + 80, // 67 -> WAITING_FOR_ACCEPT + 33, // 68 -> HIGH_QUALITY_MEDIUM_SETUP + 54, // 69 -> RPC_CALL_STATUS + 70, // 70 -> START_QR_CODE_SESSION + 44, // 71 -> QR_CODE_OPENED_IN_WEB_CLIENT + 32, // 72 -> HATS_JOINT_EVENT + 49, // 73 -> RECEIVE_PREVIEWS + 11, // 74 -> CLOUD_CREATE_SHARING_REQUEST + 14, // 75 -> CLOUD_REGISTER_RECEIVER + 17, // 76 -> CLOUD_UPLOAD_START + 16, // 77 -> CLOUD_UPLOAD_END + 13, // 78 -> CLOUD_DOWNLOAD_START + 12, // 79 -> CLOUD_DOWNLOAD_END + 15, // 80 -> CLOUD_SHARING_RPC_RESULT }; -const std::string& EventType_Name( - EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EventType_entries, - EventType_entries_by_number, - 81, EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EventType_entries, - EventType_entries_by_number, - 81, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EventType_strings[idx].get(); +const ::std::string& EventType_Name(EventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EventType_entries, EventType_entries_by_number, 81, + EventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EventType_entries, + EventType_entries_by_number, + 81, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EventType_strings[idx].get(); } -bool EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value) { + +bool EventType_Parse(::absl::string_view name, EventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EventType_entries, 81, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool EventCategory_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EventCategory_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EventCategory_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EventCategory_strings[5] = {}; +static const char EventCategory_names[] = { + "RECEIVING_EVENT" + "RPC_EVENT" + "SENDING_EVENT" + "SETTINGS_EVENT" + "UNKNOWN_EVENT_CATEGORY" +}; -static const char EventCategory_names[] = - "RECEIVING_EVENT" - "RPC_EVENT" - "SENDING_EVENT" - "SETTINGS_EVENT" - "UNKNOWN_EVENT_CATEGORY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EventCategory_entries[] = { - { {EventCategory_names + 0, 15}, 2 }, - { {EventCategory_names + 15, 9}, 4 }, - { {EventCategory_names + 24, 13}, 1 }, - { {EventCategory_names + 37, 14}, 3 }, - { {EventCategory_names + 51, 22}, 0 }, +static const ::google::protobuf::internal::EnumEntry EventCategory_entries[] = { + {{&EventCategory_names[0], 15}, 2}, + {{&EventCategory_names[15], 9}, 4}, + {{&EventCategory_names[24], 13}, 1}, + {{&EventCategory_names[37], 14}, 3}, + {{&EventCategory_names[51], 22}, 0}, }; static const int EventCategory_entries_by_number[] = { - 4, // 0 -> UNKNOWN_EVENT_CATEGORY - 2, // 1 -> SENDING_EVENT - 0, // 2 -> RECEIVING_EVENT - 3, // 3 -> SETTINGS_EVENT - 1, // 4 -> RPC_EVENT + 4, // 0 -> UNKNOWN_EVENT_CATEGORY + 2, // 1 -> SENDING_EVENT + 0, // 2 -> RECEIVING_EVENT + 3, // 3 -> SETTINGS_EVENT + 1, // 4 -> RPC_EVENT }; -const std::string& EventCategory_Name( - EventCategory value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EventCategory_entries, - EventCategory_entries_by_number, - 5, EventCategory_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EventCategory_entries, - EventCategory_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EventCategory_strings[idx].get(); +const ::std::string& EventCategory_Name(EventCategory value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EventCategory_entries, EventCategory_entries_by_number, 5, + EventCategory_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EventCategory_entries, + EventCategory_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EventCategory_strings[idx].get(); } -bool EventCategory_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventCategory* value) { + +bool EventCategory_Parse(::absl::string_view name, EventCategory* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EventCategory_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool NearbySharingStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t NearbySharingStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + NearbySharingStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NearbySharingStatus_strings[3] = {}; +static const char NearbySharingStatus_names[] = { + "OFF" + "ON" + "UNKNOWN_NEARBY_SHARING_STATUS" +}; -static const char NearbySharingStatus_names[] = - "OFF" - "ON" - "UNKNOWN_NEARBY_SHARING_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NearbySharingStatus_entries[] = { - { {NearbySharingStatus_names + 0, 3}, 2 }, - { {NearbySharingStatus_names + 3, 2}, 1 }, - { {NearbySharingStatus_names + 5, 29}, 0 }, +static const ::google::protobuf::internal::EnumEntry NearbySharingStatus_entries[] = { + {{&NearbySharingStatus_names[0], 3}, 2}, + {{&NearbySharingStatus_names[3], 2}, 1}, + {{&NearbySharingStatus_names[5], 29}, 0}, }; static const int NearbySharingStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_NEARBY_SHARING_STATUS - 1, // 1 -> ON - 0, // 2 -> OFF + 2, // 0 -> UNKNOWN_NEARBY_SHARING_STATUS + 1, // 1 -> ON + 0, // 2 -> OFF }; -const std::string& NearbySharingStatus_Name( - NearbySharingStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - NearbySharingStatus_entries, - NearbySharingStatus_entries_by_number, - 3, NearbySharingStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - NearbySharingStatus_entries, - NearbySharingStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - NearbySharingStatus_strings[idx].get(); +const ::std::string& NearbySharingStatus_Name(NearbySharingStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + NearbySharingStatus_entries, NearbySharingStatus_entries_by_number, 3, + NearbySharingStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(NearbySharingStatus_entries, + NearbySharingStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : NearbySharingStatus_strings[idx].get(); } -bool NearbySharingStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NearbySharingStatus* value) { + +bool NearbySharingStatus_Parse(::absl::string_view name, NearbySharingStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( NearbySharingStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Visibility_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Visibility_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Visibility_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Visibility_strings[6] = {}; +static const char Visibility_names[] = { + "CONTACTS_ONLY" + "EVERYONE" + "HIDDEN" + "SELECTED_CONTACTS_ONLY" + "SELF_SHARE" + "UNKNOWN_VISIBILITY" +}; -static const char Visibility_names[] = - "CONTACTS_ONLY" - "EVERYONE" - "HIDDEN" - "SELECTED_CONTACTS_ONLY" - "SELF_SHARE" - "UNKNOWN_VISIBILITY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Visibility_entries[] = { - { {Visibility_names + 0, 13}, 1 }, - { {Visibility_names + 13, 8}, 2 }, - { {Visibility_names + 21, 6}, 4 }, - { {Visibility_names + 27, 22}, 3 }, - { {Visibility_names + 49, 10}, 5 }, - { {Visibility_names + 59, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry Visibility_entries[] = { + {{&Visibility_names[0], 13}, 1}, + {{&Visibility_names[13], 8}, 2}, + {{&Visibility_names[21], 6}, 4}, + {{&Visibility_names[27], 22}, 3}, + {{&Visibility_names[49], 10}, 5}, + {{&Visibility_names[59], 18}, 0}, }; static const int Visibility_entries_by_number[] = { - 5, // 0 -> UNKNOWN_VISIBILITY - 0, // 1 -> CONTACTS_ONLY - 1, // 2 -> EVERYONE - 3, // 3 -> SELECTED_CONTACTS_ONLY - 2, // 4 -> HIDDEN - 4, // 5 -> SELF_SHARE + 5, // 0 -> UNKNOWN_VISIBILITY + 0, // 1 -> CONTACTS_ONLY + 1, // 2 -> EVERYONE + 3, // 3 -> SELECTED_CONTACTS_ONLY + 2, // 4 -> HIDDEN + 4, // 5 -> SELF_SHARE }; -const std::string& Visibility_Name( - Visibility value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Visibility_entries, - Visibility_entries_by_number, - 6, Visibility_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Visibility_entries, - Visibility_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Visibility_strings[idx].get(); +const ::std::string& Visibility_Name(Visibility value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Visibility_entries, Visibility_entries_by_number, 6, + Visibility_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Visibility_entries, + Visibility_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Visibility_strings[idx].get(); } -bool Visibility_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Visibility* value) { + +bool Visibility_Parse(::absl::string_view name, Visibility* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Visibility_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DataUsage_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DataUsage_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DataUsage_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DataUsage_strings[4] = {}; +static const char DataUsage_names[] = { + "OFFLINE" + "ONLINE" + "UNKNOWN_DATA_USAGE" + "WIFI_ONLY" +}; -static const char DataUsage_names[] = - "OFFLINE" - "ONLINE" - "UNKNOWN_DATA_USAGE" - "WIFI_ONLY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DataUsage_entries[] = { - { {DataUsage_names + 0, 7}, 3 }, - { {DataUsage_names + 7, 6}, 1 }, - { {DataUsage_names + 13, 18}, 0 }, - { {DataUsage_names + 31, 9}, 2 }, +static const ::google::protobuf::internal::EnumEntry DataUsage_entries[] = { + {{&DataUsage_names[0], 7}, 3}, + {{&DataUsage_names[7], 6}, 1}, + {{&DataUsage_names[13], 18}, 0}, + {{&DataUsage_names[31], 9}, 2}, }; static const int DataUsage_entries_by_number[] = { - 2, // 0 -> UNKNOWN_DATA_USAGE - 1, // 1 -> ONLINE - 3, // 2 -> WIFI_ONLY - 0, // 3 -> OFFLINE + 2, // 0 -> UNKNOWN_DATA_USAGE + 1, // 1 -> ONLINE + 3, // 2 -> WIFI_ONLY + 0, // 3 -> OFFLINE }; -const std::string& DataUsage_Name( - DataUsage value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DataUsage_entries, - DataUsage_entries_by_number, - 4, DataUsage_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DataUsage_entries, - DataUsage_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DataUsage_strings[idx].get(); +const ::std::string& DataUsage_Name(DataUsage value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DataUsage_entries, DataUsage_entries_by_number, 4, + DataUsage_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DataUsage_entries, + DataUsage_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DataUsage_strings[idx].get(); } -bool DataUsage_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DataUsage* value) { + +bool DataUsage_Parse(::absl::string_view name, DataUsage* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DataUsage_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool EstablishConnectionStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EstablishConnectionStatus_internal_data_[] = { + 720896u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EstablishConnectionStatus_strings[11] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EstablishConnectionStatus_strings[11] = {}; +static const char EstablishConnectionStatus_names[] = { + "CONNECTION_STATUS_CANCELLATION" + "CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK" + "CONNECTION_STATUS_FAILED_NULL_CONNECTION" + "CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE" + "CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION" + "CONNECTION_STATUS_FAILURE" + "CONNECTION_STATUS_INVALID_ADVERTISEMENT" + "CONNECTION_STATUS_LOST_CONNECTIVITY" + "CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT" + "CONNECTION_STATUS_SUCCESS" + "CONNECTION_STATUS_UNKNOWN" +}; -static const char EstablishConnectionStatus_names[] = - "CONNECTION_STATUS_CANCELLATION" - "CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK" - "CONNECTION_STATUS_FAILED_NULL_CONNECTION" - "CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE" - "CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION" - "CONNECTION_STATUS_FAILURE" - "CONNECTION_STATUS_INVALID_ADVERTISEMENT" - "CONNECTION_STATUS_LOST_CONNECTIVITY" - "CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT" - "CONNECTION_STATUS_SUCCESS" - "CONNECTION_STATUS_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EstablishConnectionStatus_entries[] = { - { {EstablishConnectionStatus_names + 0, 30}, 3 }, - { {EstablishConnectionStatus_names + 30, 52}, 8 }, - { {EstablishConnectionStatus_names + 82, 40}, 7 }, - { {EstablishConnectionStatus_names + 122, 44}, 5 }, - { {EstablishConnectionStatus_names + 166, 43}, 6 }, - { {EstablishConnectionStatus_names + 209, 25}, 2 }, - { {EstablishConnectionStatus_names + 234, 39}, 10 }, - { {EstablishConnectionStatus_names + 273, 35}, 9 }, - { {EstablishConnectionStatus_names + 308, 46}, 4 }, - { {EstablishConnectionStatus_names + 354, 25}, 1 }, - { {EstablishConnectionStatus_names + 379, 25}, 0 }, +static const ::google::protobuf::internal::EnumEntry EstablishConnectionStatus_entries[] = { + {{&EstablishConnectionStatus_names[0], 30}, 3}, + {{&EstablishConnectionStatus_names[30], 52}, 8}, + {{&EstablishConnectionStatus_names[82], 40}, 7}, + {{&EstablishConnectionStatus_names[122], 44}, 5}, + {{&EstablishConnectionStatus_names[166], 43}, 6}, + {{&EstablishConnectionStatus_names[209], 25}, 2}, + {{&EstablishConnectionStatus_names[234], 39}, 10}, + {{&EstablishConnectionStatus_names[273], 35}, 9}, + {{&EstablishConnectionStatus_names[308], 46}, 4}, + {{&EstablishConnectionStatus_names[354], 25}, 1}, + {{&EstablishConnectionStatus_names[379], 25}, 0}, }; static const int EstablishConnectionStatus_entries_by_number[] = { - 10, // 0 -> CONNECTION_STATUS_UNKNOWN - 9, // 1 -> CONNECTION_STATUS_SUCCESS - 5, // 2 -> CONNECTION_STATUS_FAILURE - 0, // 3 -> CONNECTION_STATUS_CANCELLATION - 8, // 4 -> CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT - 3, // 5 -> CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE - 4, // 6 -> CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION - 2, // 7 -> CONNECTION_STATUS_FAILED_NULL_CONNECTION - 1, // 8 -> CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK - 7, // 9 -> CONNECTION_STATUS_LOST_CONNECTIVITY - 6, // 10 -> CONNECTION_STATUS_INVALID_ADVERTISEMENT + 10, // 0 -> CONNECTION_STATUS_UNKNOWN + 9, // 1 -> CONNECTION_STATUS_SUCCESS + 5, // 2 -> CONNECTION_STATUS_FAILURE + 0, // 3 -> CONNECTION_STATUS_CANCELLATION + 8, // 4 -> CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT + 3, // 5 -> CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE + 4, // 6 -> CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION + 2, // 7 -> CONNECTION_STATUS_FAILED_NULL_CONNECTION + 1, // 8 -> CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK + 7, // 9 -> CONNECTION_STATUS_LOST_CONNECTIVITY + 6, // 10 -> CONNECTION_STATUS_INVALID_ADVERTISEMENT }; -const std::string& EstablishConnectionStatus_Name( - EstablishConnectionStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EstablishConnectionStatus_entries, - EstablishConnectionStatus_entries_by_number, - 11, EstablishConnectionStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EstablishConnectionStatus_entries, - EstablishConnectionStatus_entries_by_number, - 11, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EstablishConnectionStatus_strings[idx].get(); +const ::std::string& EstablishConnectionStatus_Name(EstablishConnectionStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EstablishConnectionStatus_entries, EstablishConnectionStatus_entries_by_number, 11, + EstablishConnectionStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EstablishConnectionStatus_entries, + EstablishConnectionStatus_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EstablishConnectionStatus_strings[idx].get(); } -bool EstablishConnectionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EstablishConnectionStatus* value) { + +bool EstablishConnectionStatus_Parse(::absl::string_view name, EstablishConnectionStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EstablishConnectionStatus_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool AttachmentTransmissionStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AttachmentTransmissionStatus_internal_data_[] = { + 2031616u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AttachmentTransmissionStatus_strings[31] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AttachmentTransmissionStatus_strings[31] = {}; +static const char AttachmentTransmissionStatus_names[] = { + "AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT" + "CANCELED_ATTACHMENT_TRANSMISSION_STATUS" + "COMPLETE_ATTACHMENT_TRANSMISSION_STATUS" + "FAILED_ATTACHMENT_TRANSMISSION_STATUS" + "FAILED_DISALLOWED_MEDIUM" + "FAILED_NO_PAYLOAD" + "FAILED_NO_SHARE_TARGET_ENDPOINT" + "FAILED_NO_TRANSFER_UPDATE_CALLBACK" + "FAILED_NULL_CONNECTION" + "FAILED_NULL_CONNECTION_DISCONNECTED" + "FAILED_NULL_CONNECTION_FAILURE" + "FAILED_NULL_CONNECTION_INIT_OUTGOING" + "FAILED_NULL_CONNECTION_LOST_CONNECTIVITY" + "FAILED_PAIRED_KEYHANDSHAKE" + "FAILED_UNKNOWN_REMOTE_RESPONSE" + "FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS" + "FAILED_WRITE_INTRODUCTION" + "LOST_CONNECTIVITY_TRANSMISSION_STATUS" + "MEDIA_UNAVAILABLE_ATTACHMENT" + "NOT_ENOUGH_SPACE_ATTACHMENT" + "NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS" + "NO_ATTACHMENT_FOUND" + "NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS" + "NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS" + "REJECTED_ATTACHMENT" + "REJECTED_ATTACHMENT_TRANSMISSION_STATUS" + "TIMED_OUT_ATTACHMENT" + "TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS" + "UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS" + "UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT" + "UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS" +}; -static const char AttachmentTransmissionStatus_names[] = - "AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT" - "CANCELED_ATTACHMENT_TRANSMISSION_STATUS" - "COMPLETE_ATTACHMENT_TRANSMISSION_STATUS" - "FAILED_ATTACHMENT_TRANSMISSION_STATUS" - "FAILED_DISALLOWED_MEDIUM" - "FAILED_NO_PAYLOAD" - "FAILED_NO_SHARE_TARGET_ENDPOINT" - "FAILED_NO_TRANSFER_UPDATE_CALLBACK" - "FAILED_NULL_CONNECTION" - "FAILED_NULL_CONNECTION_DISCONNECTED" - "FAILED_NULL_CONNECTION_FAILURE" - "FAILED_NULL_CONNECTION_INIT_OUTGOING" - "FAILED_NULL_CONNECTION_LOST_CONNECTIVITY" - "FAILED_PAIRED_KEYHANDSHAKE" - "FAILED_UNKNOWN_REMOTE_RESPONSE" - "FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS" - "FAILED_WRITE_INTRODUCTION" - "LOST_CONNECTIVITY_TRANSMISSION_STATUS" - "MEDIA_UNAVAILABLE_ATTACHMENT" - "NOT_ENOUGH_SPACE_ATTACHMENT" - "NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS" - "NO_ATTACHMENT_FOUND" - "NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS" - "NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS" - "REJECTED_ATTACHMENT" - "REJECTED_ATTACHMENT_TRANSMISSION_STATUS" - "TIMED_OUT_ATTACHMENT" - "TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS" - "UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS" - "UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT" - "UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentTransmissionStatus_entries[] = { - { {AttachmentTransmissionStatus_names + 0, 44}, 6 }, - { {AttachmentTransmissionStatus_names + 44, 39}, 2 }, - { {AttachmentTransmissionStatus_names + 83, 39}, 1 }, - { {AttachmentTransmissionStatus_names + 122, 37}, 3 }, - { {AttachmentTransmissionStatus_names + 159, 24}, 30 }, - { {AttachmentTransmissionStatus_names + 183, 17}, 15 }, - { {AttachmentTransmissionStatus_names + 200, 31}, 12 }, - { {AttachmentTransmissionStatus_names + 231, 34}, 8 }, - { {AttachmentTransmissionStatus_names + 265, 22}, 14 }, - { {AttachmentTransmissionStatus_names + 287, 35}, 19 }, - { {AttachmentTransmissionStatus_names + 322, 30}, 21 }, - { {AttachmentTransmissionStatus_names + 352, 36}, 18 }, - { {AttachmentTransmissionStatus_names + 388, 40}, 20 }, - { {AttachmentTransmissionStatus_names + 428, 26}, 13 }, - { {AttachmentTransmissionStatus_names + 454, 30}, 17 }, - { {AttachmentTransmissionStatus_names + 484, 50}, 26 }, - { {AttachmentTransmissionStatus_names + 534, 25}, 16 }, - { {AttachmentTransmissionStatus_names + 559, 37}, 29 }, - { {AttachmentTransmissionStatus_names + 596, 28}, 9 }, - { {AttachmentTransmissionStatus_names + 624, 27}, 7 }, - { {AttachmentTransmissionStatus_names + 651, 47}, 24 }, - { {AttachmentTransmissionStatus_names + 698, 19}, 11 }, - { {AttachmentTransmissionStatus_names + 717, 73}, 27 }, - { {AttachmentTransmissionStatus_names + 790, 55}, 28 }, - { {AttachmentTransmissionStatus_names + 845, 19}, 4 }, - { {AttachmentTransmissionStatus_names + 864, 39}, 22 }, - { {AttachmentTransmissionStatus_names + 903, 20}, 5 }, - { {AttachmentTransmissionStatus_names + 923, 40}, 23 }, - { {AttachmentTransmissionStatus_names + 963, 38}, 0 }, - { {AttachmentTransmissionStatus_names + 1001, 38}, 10 }, - { {AttachmentTransmissionStatus_names + 1039, 58}, 25 }, +static const ::google::protobuf::internal::EnumEntry AttachmentTransmissionStatus_entries[] = { + {{&AttachmentTransmissionStatus_names[0], 44}, 6}, + {{&AttachmentTransmissionStatus_names[44], 39}, 2}, + {{&AttachmentTransmissionStatus_names[83], 39}, 1}, + {{&AttachmentTransmissionStatus_names[122], 37}, 3}, + {{&AttachmentTransmissionStatus_names[159], 24}, 30}, + {{&AttachmentTransmissionStatus_names[183], 17}, 15}, + {{&AttachmentTransmissionStatus_names[200], 31}, 12}, + {{&AttachmentTransmissionStatus_names[231], 34}, 8}, + {{&AttachmentTransmissionStatus_names[265], 22}, 14}, + {{&AttachmentTransmissionStatus_names[287], 35}, 19}, + {{&AttachmentTransmissionStatus_names[322], 30}, 21}, + {{&AttachmentTransmissionStatus_names[352], 36}, 18}, + {{&AttachmentTransmissionStatus_names[388], 40}, 20}, + {{&AttachmentTransmissionStatus_names[428], 26}, 13}, + {{&AttachmentTransmissionStatus_names[454], 30}, 17}, + {{&AttachmentTransmissionStatus_names[484], 50}, 26}, + {{&AttachmentTransmissionStatus_names[534], 25}, 16}, + {{&AttachmentTransmissionStatus_names[559], 37}, 29}, + {{&AttachmentTransmissionStatus_names[596], 28}, 9}, + {{&AttachmentTransmissionStatus_names[624], 27}, 7}, + {{&AttachmentTransmissionStatus_names[651], 47}, 24}, + {{&AttachmentTransmissionStatus_names[698], 19}, 11}, + {{&AttachmentTransmissionStatus_names[717], 73}, 27}, + {{&AttachmentTransmissionStatus_names[790], 55}, 28}, + {{&AttachmentTransmissionStatus_names[845], 19}, 4}, + {{&AttachmentTransmissionStatus_names[864], 39}, 22}, + {{&AttachmentTransmissionStatus_names[903], 20}, 5}, + {{&AttachmentTransmissionStatus_names[923], 40}, 23}, + {{&AttachmentTransmissionStatus_names[963], 38}, 0}, + {{&AttachmentTransmissionStatus_names[1001], 38}, 10}, + {{&AttachmentTransmissionStatus_names[1039], 58}, 25}, }; static const int AttachmentTransmissionStatus_entries_by_number[] = { - 28, // 0 -> UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS - 2, // 1 -> COMPLETE_ATTACHMENT_TRANSMISSION_STATUS - 1, // 2 -> CANCELED_ATTACHMENT_TRANSMISSION_STATUS - 3, // 3 -> FAILED_ATTACHMENT_TRANSMISSION_STATUS - 24, // 4 -> REJECTED_ATTACHMENT - 26, // 5 -> TIMED_OUT_ATTACHMENT - 0, // 6 -> AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT - 19, // 7 -> NOT_ENOUGH_SPACE_ATTACHMENT - 7, // 8 -> FAILED_NO_TRANSFER_UPDATE_CALLBACK - 18, // 9 -> MEDIA_UNAVAILABLE_ATTACHMENT - 29, // 10 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT - 21, // 11 -> NO_ATTACHMENT_FOUND - 6, // 12 -> FAILED_NO_SHARE_TARGET_ENDPOINT - 13, // 13 -> FAILED_PAIRED_KEYHANDSHAKE - 8, // 14 -> FAILED_NULL_CONNECTION - 5, // 15 -> FAILED_NO_PAYLOAD - 16, // 16 -> FAILED_WRITE_INTRODUCTION - 14, // 17 -> FAILED_UNKNOWN_REMOTE_RESPONSE - 11, // 18 -> FAILED_NULL_CONNECTION_INIT_OUTGOING - 9, // 19 -> FAILED_NULL_CONNECTION_DISCONNECTED - 12, // 20 -> FAILED_NULL_CONNECTION_LOST_CONNECTIVITY - 10, // 21 -> FAILED_NULL_CONNECTION_FAILURE - 25, // 22 -> REJECTED_ATTACHMENT_TRANSMISSION_STATUS - 27, // 23 -> TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS - 20, // 24 -> NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS - 30, // 25 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS - 15, // 26 -> FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS - 22, // 27 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS - 23, // 28 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS - 17, // 29 -> LOST_CONNECTIVITY_TRANSMISSION_STATUS - 4, // 30 -> FAILED_DISALLOWED_MEDIUM + 28, // 0 -> UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS + 2, // 1 -> COMPLETE_ATTACHMENT_TRANSMISSION_STATUS + 1, // 2 -> CANCELED_ATTACHMENT_TRANSMISSION_STATUS + 3, // 3 -> FAILED_ATTACHMENT_TRANSMISSION_STATUS + 24, // 4 -> REJECTED_ATTACHMENT + 26, // 5 -> TIMED_OUT_ATTACHMENT + 0, // 6 -> AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT + 19, // 7 -> NOT_ENOUGH_SPACE_ATTACHMENT + 7, // 8 -> FAILED_NO_TRANSFER_UPDATE_CALLBACK + 18, // 9 -> MEDIA_UNAVAILABLE_ATTACHMENT + 29, // 10 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT + 21, // 11 -> NO_ATTACHMENT_FOUND + 6, // 12 -> FAILED_NO_SHARE_TARGET_ENDPOINT + 13, // 13 -> FAILED_PAIRED_KEYHANDSHAKE + 8, // 14 -> FAILED_NULL_CONNECTION + 5, // 15 -> FAILED_NO_PAYLOAD + 16, // 16 -> FAILED_WRITE_INTRODUCTION + 14, // 17 -> FAILED_UNKNOWN_REMOTE_RESPONSE + 11, // 18 -> FAILED_NULL_CONNECTION_INIT_OUTGOING + 9, // 19 -> FAILED_NULL_CONNECTION_DISCONNECTED + 12, // 20 -> FAILED_NULL_CONNECTION_LOST_CONNECTIVITY + 10, // 21 -> FAILED_NULL_CONNECTION_FAILURE + 25, // 22 -> REJECTED_ATTACHMENT_TRANSMISSION_STATUS + 27, // 23 -> TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS + 20, // 24 -> NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS + 30, // 25 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS + 15, // 26 -> FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS + 22, // 27 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS + 23, // 28 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS + 17, // 29 -> LOST_CONNECTIVITY_TRANSMISSION_STATUS + 4, // 30 -> FAILED_DISALLOWED_MEDIUM }; -const std::string& AttachmentTransmissionStatus_Name( - AttachmentTransmissionStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AttachmentTransmissionStatus_entries, - AttachmentTransmissionStatus_entries_by_number, - 31, AttachmentTransmissionStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AttachmentTransmissionStatus_entries, - AttachmentTransmissionStatus_entries_by_number, - 31, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AttachmentTransmissionStatus_strings[idx].get(); +const ::std::string& AttachmentTransmissionStatus_Name(AttachmentTransmissionStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AttachmentTransmissionStatus_entries, AttachmentTransmissionStatus_entries_by_number, 31, + AttachmentTransmissionStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AttachmentTransmissionStatus_entries, + AttachmentTransmissionStatus_entries_by_number, + 31, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AttachmentTransmissionStatus_strings[idx].get(); } -bool AttachmentTransmissionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentTransmissionStatus* value) { + +bool AttachmentTransmissionStatus_Parse(::absl::string_view name, AttachmentTransmissionStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AttachmentTransmissionStatus_entries, 31, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConnectionLayerStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConnectionLayerStatus_internal_data_[] = { + 1245184u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConnectionLayerStatus_strings[19] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionLayerStatus_strings[19] = {}; +static const char ConnectionLayerStatus_names[] = { + "CONNECTION_LAYER_STATUS_ALREADY_ADVERTISING" + "CONNECTION_LAYER_STATUS_ALREADY_CONNECTED_TO_END_POINT" + "CONNECTION_LAYER_STATUS_ALREADY_DISCOVERING" + "CONNECTION_LAYER_STATUS_ALREADY_HAVE_ACTIVE_STRATEGY" + "CONNECTION_LAYER_STATUS_ALREADY_LISTENING" + "CONNECTION_LAYER_STATUS_BLE_ERROR" + "CONNECTION_LAYER_STATUS_BLUETOOTH_ERROR" + "CONNECTION_LAYER_STATUS_CONNECTION_REJECTED" + "CONNECTION_LAYER_STATUS_END_POINT_IO_ERROR" + "CONNECTION_LAYER_STATUS_END_POINT_UNKNOWN" + "CONNECTION_LAYER_STATUS_ERROR" + "CONNECTION_LAYER_STATUS_NOT_CONNECTED_TO_END_POINT" + "CONNECTION_LAYER_STATUS_OUT_OF_ORDER_API_CALL" + "CONNECTION_LAYER_STATUS_PAYLOAD_UNKNOWN" + "CONNECTION_LAYER_STATUS_RESET" + "CONNECTION_LAYER_STATUS_SUCCESS" + "CONNECTION_LAYER_STATUS_TIMEOUT" + "CONNECTION_LAYER_STATUS_UNKNOWN" + "CONNECTION_LAYER_STATUS_WIFI_LAN_ERROR" +}; -static const char ConnectionLayerStatus_names[] = - "CONNECTION_LAYER_STATUS_ALREADY_ADVERTISING" - "CONNECTION_LAYER_STATUS_ALREADY_CONNECTED_TO_END_POINT" - "CONNECTION_LAYER_STATUS_ALREADY_DISCOVERING" - "CONNECTION_LAYER_STATUS_ALREADY_HAVE_ACTIVE_STRATEGY" - "CONNECTION_LAYER_STATUS_ALREADY_LISTENING" - "CONNECTION_LAYER_STATUS_BLE_ERROR" - "CONNECTION_LAYER_STATUS_BLUETOOTH_ERROR" - "CONNECTION_LAYER_STATUS_CONNECTION_REJECTED" - "CONNECTION_LAYER_STATUS_END_POINT_IO_ERROR" - "CONNECTION_LAYER_STATUS_END_POINT_UNKNOWN" - "CONNECTION_LAYER_STATUS_ERROR" - "CONNECTION_LAYER_STATUS_NOT_CONNECTED_TO_END_POINT" - "CONNECTION_LAYER_STATUS_OUT_OF_ORDER_API_CALL" - "CONNECTION_LAYER_STATUS_PAYLOAD_UNKNOWN" - "CONNECTION_LAYER_STATUS_RESET" - "CONNECTION_LAYER_STATUS_SUCCESS" - "CONNECTION_LAYER_STATUS_TIMEOUT" - "CONNECTION_LAYER_STATUS_UNKNOWN" - "CONNECTION_LAYER_STATUS_WIFI_LAN_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionLayerStatus_entries[] = { - { {ConnectionLayerStatus_names + 0, 43}, 5 }, - { {ConnectionLayerStatus_names + 43, 54}, 11 }, - { {ConnectionLayerStatus_names + 97, 43}, 6 }, - { {ConnectionLayerStatus_names + 140, 52}, 4 }, - { {ConnectionLayerStatus_names + 192, 41}, 7 }, - { {ConnectionLayerStatus_names + 233, 33}, 14 }, - { {ConnectionLayerStatus_names + 266, 39}, 13 }, - { {ConnectionLayerStatus_names + 305, 43}, 10 }, - { {ConnectionLayerStatus_names + 348, 42}, 8 }, - { {ConnectionLayerStatus_names + 390, 41}, 9 }, - { {ConnectionLayerStatus_names + 431, 29}, 2 }, - { {ConnectionLayerStatus_names + 460, 50}, 12 }, - { {ConnectionLayerStatus_names + 510, 45}, 3 }, - { {ConnectionLayerStatus_names + 555, 39}, 16 }, - { {ConnectionLayerStatus_names + 594, 29}, 17 }, - { {ConnectionLayerStatus_names + 623, 31}, 1 }, - { {ConnectionLayerStatus_names + 654, 31}, 18 }, - { {ConnectionLayerStatus_names + 685, 31}, 0 }, - { {ConnectionLayerStatus_names + 716, 38}, 15 }, +static const ::google::protobuf::internal::EnumEntry ConnectionLayerStatus_entries[] = { + {{&ConnectionLayerStatus_names[0], 43}, 5}, + {{&ConnectionLayerStatus_names[43], 54}, 11}, + {{&ConnectionLayerStatus_names[97], 43}, 6}, + {{&ConnectionLayerStatus_names[140], 52}, 4}, + {{&ConnectionLayerStatus_names[192], 41}, 7}, + {{&ConnectionLayerStatus_names[233], 33}, 14}, + {{&ConnectionLayerStatus_names[266], 39}, 13}, + {{&ConnectionLayerStatus_names[305], 43}, 10}, + {{&ConnectionLayerStatus_names[348], 42}, 8}, + {{&ConnectionLayerStatus_names[390], 41}, 9}, + {{&ConnectionLayerStatus_names[431], 29}, 2}, + {{&ConnectionLayerStatus_names[460], 50}, 12}, + {{&ConnectionLayerStatus_names[510], 45}, 3}, + {{&ConnectionLayerStatus_names[555], 39}, 16}, + {{&ConnectionLayerStatus_names[594], 29}, 17}, + {{&ConnectionLayerStatus_names[623], 31}, 1}, + {{&ConnectionLayerStatus_names[654], 31}, 18}, + {{&ConnectionLayerStatus_names[685], 31}, 0}, + {{&ConnectionLayerStatus_names[716], 38}, 15}, }; static const int ConnectionLayerStatus_entries_by_number[] = { - 17, // 0 -> CONNECTION_LAYER_STATUS_UNKNOWN - 15, // 1 -> CONNECTION_LAYER_STATUS_SUCCESS - 10, // 2 -> CONNECTION_LAYER_STATUS_ERROR - 12, // 3 -> CONNECTION_LAYER_STATUS_OUT_OF_ORDER_API_CALL - 3, // 4 -> CONNECTION_LAYER_STATUS_ALREADY_HAVE_ACTIVE_STRATEGY - 0, // 5 -> CONNECTION_LAYER_STATUS_ALREADY_ADVERTISING - 2, // 6 -> CONNECTION_LAYER_STATUS_ALREADY_DISCOVERING - 4, // 7 -> CONNECTION_LAYER_STATUS_ALREADY_LISTENING - 8, // 8 -> CONNECTION_LAYER_STATUS_END_POINT_IO_ERROR - 9, // 9 -> CONNECTION_LAYER_STATUS_END_POINT_UNKNOWN - 7, // 10 -> CONNECTION_LAYER_STATUS_CONNECTION_REJECTED - 1, // 11 -> CONNECTION_LAYER_STATUS_ALREADY_CONNECTED_TO_END_POINT - 11, // 12 -> CONNECTION_LAYER_STATUS_NOT_CONNECTED_TO_END_POINT - 6, // 13 -> CONNECTION_LAYER_STATUS_BLUETOOTH_ERROR - 5, // 14 -> CONNECTION_LAYER_STATUS_BLE_ERROR - 18, // 15 -> CONNECTION_LAYER_STATUS_WIFI_LAN_ERROR - 13, // 16 -> CONNECTION_LAYER_STATUS_PAYLOAD_UNKNOWN - 14, // 17 -> CONNECTION_LAYER_STATUS_RESET - 16, // 18 -> CONNECTION_LAYER_STATUS_TIMEOUT + 17, // 0 -> CONNECTION_LAYER_STATUS_UNKNOWN + 15, // 1 -> CONNECTION_LAYER_STATUS_SUCCESS + 10, // 2 -> CONNECTION_LAYER_STATUS_ERROR + 12, // 3 -> CONNECTION_LAYER_STATUS_OUT_OF_ORDER_API_CALL + 3, // 4 -> CONNECTION_LAYER_STATUS_ALREADY_HAVE_ACTIVE_STRATEGY + 0, // 5 -> CONNECTION_LAYER_STATUS_ALREADY_ADVERTISING + 2, // 6 -> CONNECTION_LAYER_STATUS_ALREADY_DISCOVERING + 4, // 7 -> CONNECTION_LAYER_STATUS_ALREADY_LISTENING + 8, // 8 -> CONNECTION_LAYER_STATUS_END_POINT_IO_ERROR + 9, // 9 -> CONNECTION_LAYER_STATUS_END_POINT_UNKNOWN + 7, // 10 -> CONNECTION_LAYER_STATUS_CONNECTION_REJECTED + 1, // 11 -> CONNECTION_LAYER_STATUS_ALREADY_CONNECTED_TO_END_POINT + 11, // 12 -> CONNECTION_LAYER_STATUS_NOT_CONNECTED_TO_END_POINT + 6, // 13 -> CONNECTION_LAYER_STATUS_BLUETOOTH_ERROR + 5, // 14 -> CONNECTION_LAYER_STATUS_BLE_ERROR + 18, // 15 -> CONNECTION_LAYER_STATUS_WIFI_LAN_ERROR + 13, // 16 -> CONNECTION_LAYER_STATUS_PAYLOAD_UNKNOWN + 14, // 17 -> CONNECTION_LAYER_STATUS_RESET + 16, // 18 -> CONNECTION_LAYER_STATUS_TIMEOUT }; -const std::string& ConnectionLayerStatus_Name( - ConnectionLayerStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionLayerStatus_entries, - ConnectionLayerStatus_entries_by_number, - 19, ConnectionLayerStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionLayerStatus_entries, - ConnectionLayerStatus_entries_by_number, - 19, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionLayerStatus_strings[idx].get(); +const ::std::string& ConnectionLayerStatus_Name(ConnectionLayerStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConnectionLayerStatus_entries, ConnectionLayerStatus_entries_by_number, 19, + ConnectionLayerStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConnectionLayerStatus_entries, + ConnectionLayerStatus_entries_by_number, + 19, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConnectionLayerStatus_strings[idx].get(); } -bool ConnectionLayerStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionLayerStatus* value) { + +bool ConnectionLayerStatus_Parse(::absl::string_view name, ConnectionLayerStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConnectionLayerStatus_entries, 19, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ProcessReceivedAttachmentsStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ProcessReceivedAttachmentsStatus_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ProcessReceivedAttachmentsStatus_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ProcessReceivedAttachmentsStatus_strings[6] = {}; +static const char ProcessReceivedAttachmentsStatus_names[] = { + "PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS" + "PROCESSING_STATUS_FAILED_MOVING_FILES" + "PROCESSING_STATUS_FAILED_RECEIVING_APK" + "PROCESSING_STATUS_FAILED_RECEIVING_TEXT" + "PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS" + "PROCESSING_STATUS_UNKNOWN" +}; -static const char ProcessReceivedAttachmentsStatus_names[] = - "PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS" - "PROCESSING_STATUS_FAILED_MOVING_FILES" - "PROCESSING_STATUS_FAILED_RECEIVING_APK" - "PROCESSING_STATUS_FAILED_RECEIVING_TEXT" - "PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS" - "PROCESSING_STATUS_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ProcessReceivedAttachmentsStatus_entries[] = { - { {ProcessReceivedAttachmentsStatus_names + 0, 49}, 1 }, - { {ProcessReceivedAttachmentsStatus_names + 49, 37}, 2 }, - { {ProcessReceivedAttachmentsStatus_names + 86, 38}, 3 }, - { {ProcessReceivedAttachmentsStatus_names + 124, 39}, 4 }, - { {ProcessReceivedAttachmentsStatus_names + 163, 51}, 5 }, - { {ProcessReceivedAttachmentsStatus_names + 214, 25}, 0 }, +static const ::google::protobuf::internal::EnumEntry ProcessReceivedAttachmentsStatus_entries[] = { + {{&ProcessReceivedAttachmentsStatus_names[0], 49}, 1}, + {{&ProcessReceivedAttachmentsStatus_names[49], 37}, 2}, + {{&ProcessReceivedAttachmentsStatus_names[86], 38}, 3}, + {{&ProcessReceivedAttachmentsStatus_names[124], 39}, 4}, + {{&ProcessReceivedAttachmentsStatus_names[163], 51}, 5}, + {{&ProcessReceivedAttachmentsStatus_names[214], 25}, 0}, }; static const int ProcessReceivedAttachmentsStatus_entries_by_number[] = { - 5, // 0 -> PROCESSING_STATUS_UNKNOWN - 0, // 1 -> PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS - 1, // 2 -> PROCESSING_STATUS_FAILED_MOVING_FILES - 2, // 3 -> PROCESSING_STATUS_FAILED_RECEIVING_APK - 3, // 4 -> PROCESSING_STATUS_FAILED_RECEIVING_TEXT - 4, // 5 -> PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS + 5, // 0 -> PROCESSING_STATUS_UNKNOWN + 0, // 1 -> PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS + 1, // 2 -> PROCESSING_STATUS_FAILED_MOVING_FILES + 2, // 3 -> PROCESSING_STATUS_FAILED_RECEIVING_APK + 3, // 4 -> PROCESSING_STATUS_FAILED_RECEIVING_TEXT + 4, // 5 -> PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS }; -const std::string& ProcessReceivedAttachmentsStatus_Name( - ProcessReceivedAttachmentsStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ProcessReceivedAttachmentsStatus_entries, - ProcessReceivedAttachmentsStatus_entries_by_number, - 6, ProcessReceivedAttachmentsStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ProcessReceivedAttachmentsStatus_entries, - ProcessReceivedAttachmentsStatus_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ProcessReceivedAttachmentsStatus_strings[idx].get(); +const ::std::string& ProcessReceivedAttachmentsStatus_Name(ProcessReceivedAttachmentsStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ProcessReceivedAttachmentsStatus_entries, ProcessReceivedAttachmentsStatus_entries_by_number, 6, + ProcessReceivedAttachmentsStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ProcessReceivedAttachmentsStatus_entries, + ProcessReceivedAttachmentsStatus_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ProcessReceivedAttachmentsStatus_strings[idx].get(); } -bool ProcessReceivedAttachmentsStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcessReceivedAttachmentsStatus* value) { + +bool ProcessReceivedAttachmentsStatus_Parse(::absl::string_view name, ProcessReceivedAttachmentsStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ProcessReceivedAttachmentsStatus_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SessionStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SessionStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SessionStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SessionStatus_strings[3] = {}; +static const char SessionStatus_names[] = { + "FAILED_SESSION_STATUS" + "SUCCEEDED_SESSION_STATUS" + "UNKNOWN_SESSION_STATUS" +}; -static const char SessionStatus_names[] = - "FAILED_SESSION_STATUS" - "SUCCEEDED_SESSION_STATUS" - "UNKNOWN_SESSION_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SessionStatus_entries[] = { - { {SessionStatus_names + 0, 21}, 2 }, - { {SessionStatus_names + 21, 24}, 1 }, - { {SessionStatus_names + 45, 22}, 0 }, +static const ::google::protobuf::internal::EnumEntry SessionStatus_entries[] = { + {{&SessionStatus_names[0], 21}, 2}, + {{&SessionStatus_names[21], 24}, 1}, + {{&SessionStatus_names[45], 22}, 0}, }; static const int SessionStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_SESSION_STATUS - 1, // 1 -> SUCCEEDED_SESSION_STATUS - 0, // 2 -> FAILED_SESSION_STATUS + 2, // 0 -> UNKNOWN_SESSION_STATUS + 1, // 1 -> SUCCEEDED_SESSION_STATUS + 0, // 2 -> FAILED_SESSION_STATUS }; -const std::string& SessionStatus_Name( - SessionStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SessionStatus_entries, - SessionStatus_entries_by_number, - 3, SessionStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SessionStatus_entries, - SessionStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SessionStatus_strings[idx].get(); +const ::std::string& SessionStatus_Name(SessionStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SessionStatus_entries, SessionStatus_entries_by_number, 3, + SessionStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SessionStatus_entries, + SessionStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SessionStatus_strings[idx].get(); } -bool SessionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SessionStatus* value) { + +bool SessionStatus_Parse(::absl::string_view name, SessionStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SessionStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ResponseToIntroduction_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ResponseToIntroduction_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ResponseToIntroduction_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ResponseToIntroduction_strings[4] = {}; +static const char ResponseToIntroduction_names[] = { + "ACCEPT_INTRODUCTION" + "FAIL_INTRODUCTION" + "REJECT_INTRODUCTION" + "UNKNOWN_RESPONSE_TO_INTRODUCTION" +}; -static const char ResponseToIntroduction_names[] = - "ACCEPT_INTRODUCTION" - "FAIL_INTRODUCTION" - "REJECT_INTRODUCTION" - "UNKNOWN_RESPONSE_TO_INTRODUCTION"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ResponseToIntroduction_entries[] = { - { {ResponseToIntroduction_names + 0, 19}, 1 }, - { {ResponseToIntroduction_names + 19, 17}, 3 }, - { {ResponseToIntroduction_names + 36, 19}, 2 }, - { {ResponseToIntroduction_names + 55, 32}, 0 }, +static const ::google::protobuf::internal::EnumEntry ResponseToIntroduction_entries[] = { + {{&ResponseToIntroduction_names[0], 19}, 1}, + {{&ResponseToIntroduction_names[19], 17}, 3}, + {{&ResponseToIntroduction_names[36], 19}, 2}, + {{&ResponseToIntroduction_names[55], 32}, 0}, }; static const int ResponseToIntroduction_entries_by_number[] = { - 3, // 0 -> UNKNOWN_RESPONSE_TO_INTRODUCTION - 0, // 1 -> ACCEPT_INTRODUCTION - 2, // 2 -> REJECT_INTRODUCTION - 1, // 3 -> FAIL_INTRODUCTION + 3, // 0 -> UNKNOWN_RESPONSE_TO_INTRODUCTION + 0, // 1 -> ACCEPT_INTRODUCTION + 2, // 2 -> REJECT_INTRODUCTION + 1, // 3 -> FAIL_INTRODUCTION }; -const std::string& ResponseToIntroduction_Name( - ResponseToIntroduction value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ResponseToIntroduction_entries, - ResponseToIntroduction_entries_by_number, - 4, ResponseToIntroduction_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ResponseToIntroduction_entries, - ResponseToIntroduction_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ResponseToIntroduction_strings[idx].get(); +const ::std::string& ResponseToIntroduction_Name(ResponseToIntroduction value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ResponseToIntroduction_entries, ResponseToIntroduction_entries_by_number, 4, + ResponseToIntroduction_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ResponseToIntroduction_entries, + ResponseToIntroduction_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ResponseToIntroduction_strings[idx].get(); } -bool ResponseToIntroduction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResponseToIntroduction* value) { + +bool ResponseToIntroduction_Parse(::absl::string_view name, ResponseToIntroduction* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ResponseToIntroduction_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceType_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[7] = {}; +static const char DeviceType_names[] = { + "CAR" + "FOLDABLE" + "LAPTOP" + "PHONE" + "TABLET" + "UNKNOWN_DEVICE_TYPE" + "XR" +}; -static const char DeviceType_names[] = - "CAR" - "FOLDABLE" - "LAPTOP" - "PHONE" - "TABLET" - "UNKNOWN_DEVICE_TYPE" - "XR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = { - { {DeviceType_names + 0, 3}, 4 }, - { {DeviceType_names + 3, 8}, 5 }, - { {DeviceType_names + 11, 6}, 3 }, - { {DeviceType_names + 17, 5}, 1 }, - { {DeviceType_names + 22, 6}, 2 }, - { {DeviceType_names + 28, 19}, 0 }, - { {DeviceType_names + 47, 2}, 6 }, +static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { + {{&DeviceType_names[0], 3}, 4}, + {{&DeviceType_names[3], 8}, 5}, + {{&DeviceType_names[11], 6}, 3}, + {{&DeviceType_names[17], 5}, 1}, + {{&DeviceType_names[22], 6}, 2}, + {{&DeviceType_names[28], 19}, 0}, + {{&DeviceType_names[47], 2}, 6}, }; static const int DeviceType_entries_by_number[] = { - 5, // 0 -> UNKNOWN_DEVICE_TYPE - 3, // 1 -> PHONE - 4, // 2 -> TABLET - 2, // 3 -> LAPTOP - 0, // 4 -> CAR - 1, // 5 -> FOLDABLE - 6, // 6 -> XR + 5, // 0 -> UNKNOWN_DEVICE_TYPE + 3, // 1 -> PHONE + 4, // 2 -> TABLET + 2, // 3 -> LAPTOP + 0, // 4 -> CAR + 1, // 5 -> FOLDABLE + 6, // 6 -> XR }; -const std::string& DeviceType_Name( - DeviceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DeviceType_entries, - DeviceType_entries_by_number, - 7, DeviceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DeviceType_entries, - DeviceType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DeviceType_strings[idx].get(); +const ::std::string& DeviceType_Name(DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceType_entries, DeviceType_entries_by_number, 7, + DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, + DeviceType_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); } -bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { + +bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DeviceType_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool OSType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t OSType_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + OSType_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OSType_strings[6] = {}; +static const char OSType_names[] = { + "ANDROID" + "CHROME_OS" + "IOS" + "MACOS" + "UNKNOWN_OS_TYPE" + "WINDOWS" +}; -static const char OSType_names[] = - "ANDROID" - "CHROME_OS" - "IOS" - "MACOS" - "UNKNOWN_OS_TYPE" - "WINDOWS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OSType_entries[] = { - { {OSType_names + 0, 7}, 1 }, - { {OSType_names + 7, 9}, 2 }, - { {OSType_names + 16, 3}, 3 }, - { {OSType_names + 19, 5}, 5 }, - { {OSType_names + 24, 15}, 0 }, - { {OSType_names + 39, 7}, 4 }, +static const ::google::protobuf::internal::EnumEntry OSType_entries[] = { + {{&OSType_names[0], 7}, 1}, + {{&OSType_names[7], 9}, 2}, + {{&OSType_names[16], 3}, 3}, + {{&OSType_names[19], 5}, 5}, + {{&OSType_names[24], 15}, 0}, + {{&OSType_names[39], 7}, 4}, }; static const int OSType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_OS_TYPE - 0, // 1 -> ANDROID - 1, // 2 -> CHROME_OS - 2, // 3 -> IOS - 5, // 4 -> WINDOWS - 3, // 5 -> MACOS + 4, // 0 -> UNKNOWN_OS_TYPE + 0, // 1 -> ANDROID + 1, // 2 -> CHROME_OS + 2, // 3 -> IOS + 5, // 4 -> WINDOWS + 3, // 5 -> MACOS }; -const std::string& OSType_Name( - OSType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OSType_entries, - OSType_entries_by_number, - 6, OSType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OSType_entries, - OSType_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OSType_strings[idx].get(); +const ::std::string& OSType_Name(OSType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + OSType_entries, OSType_entries_by_number, 6, + OSType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(OSType_entries, + OSType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OSType_strings[idx].get(); } -bool OSType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OSType* value) { + +bool OSType_Parse(::absl::string_view name, OSType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( OSType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DeviceRelationship_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DeviceRelationship_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceRelationship_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceRelationship_strings[4] = {}; +static const char DeviceRelationship_names[] = { + "IS_CONTACT" + "IS_SELF" + "IS_STRANGER" + "UNKNOWN_DEVICE_RELATIONSHIP" +}; -static const char DeviceRelationship_names[] = - "IS_CONTACT" - "IS_SELF" - "IS_STRANGER" - "UNKNOWN_DEVICE_RELATIONSHIP"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceRelationship_entries[] = { - { {DeviceRelationship_names + 0, 10}, 2 }, - { {DeviceRelationship_names + 10, 7}, 1 }, - { {DeviceRelationship_names + 17, 11}, 3 }, - { {DeviceRelationship_names + 28, 27}, 0 }, +static const ::google::protobuf::internal::EnumEntry DeviceRelationship_entries[] = { + {{&DeviceRelationship_names[0], 10}, 2}, + {{&DeviceRelationship_names[10], 7}, 1}, + {{&DeviceRelationship_names[17], 11}, 3}, + {{&DeviceRelationship_names[28], 27}, 0}, }; static const int DeviceRelationship_entries_by_number[] = { - 3, // 0 -> UNKNOWN_DEVICE_RELATIONSHIP - 1, // 1 -> IS_SELF - 0, // 2 -> IS_CONTACT - 2, // 3 -> IS_STRANGER + 3, // 0 -> UNKNOWN_DEVICE_RELATIONSHIP + 1, // 1 -> IS_SELF + 0, // 2 -> IS_CONTACT + 2, // 3 -> IS_STRANGER }; -const std::string& DeviceRelationship_Name( - DeviceRelationship value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DeviceRelationship_entries, - DeviceRelationship_entries_by_number, - 4, DeviceRelationship_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DeviceRelationship_entries, - DeviceRelationship_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DeviceRelationship_strings[idx].get(); +const ::std::string& DeviceRelationship_Name(DeviceRelationship value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceRelationship_entries, DeviceRelationship_entries_by_number, 4, + DeviceRelationship_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceRelationship_entries, + DeviceRelationship_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceRelationship_strings[idx].get(); } -bool DeviceRelationship_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceRelationship* value) { + +bool DeviceRelationship_Parse(::absl::string_view name, DeviceRelationship* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DeviceRelationship_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool LogSource_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t LogSource_internal_data_[] = { + 655360u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + LogSource_strings[10] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LogSource_strings[10] = {}; +static const char LogSource_names[] = { + "BETA_TESTER_DEVICES" + "BETO_DOGFOOD_DEVICES" + "DEBUG_DEVICES" + "INTERNAL_DEVICES" + "LAB_DEVICES" + "NEARBY_DOGFOOD_DEVICES" + "NEARBY_MODULE_FOOD_DEVICES" + "NEARBY_TEAMFOOD_DEVICES" + "OEM_DEVICES" + "UNSPECIFIED_SOURCE" +}; -static const char LogSource_names[] = - "BETA_TESTER_DEVICES" - "BETO_DOGFOOD_DEVICES" - "DEBUG_DEVICES" - "INTERNAL_DEVICES" - "LAB_DEVICES" - "NEARBY_DOGFOOD_DEVICES" - "NEARBY_MODULE_FOOD_DEVICES" - "NEARBY_TEAMFOOD_DEVICES" - "OEM_DEVICES" - "UNSPECIFIED_SOURCE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LogSource_entries[] = { - { {LogSource_names + 0, 19}, 3 }, - { {LogSource_names + 19, 20}, 7 }, - { {LogSource_names + 39, 13}, 5 }, - { {LogSource_names + 52, 16}, 2 }, - { {LogSource_names + 68, 11}, 1 }, - { {LogSource_names + 79, 22}, 8 }, - { {LogSource_names + 101, 26}, 6 }, - { {LogSource_names + 127, 23}, 9 }, - { {LogSource_names + 150, 11}, 4 }, - { {LogSource_names + 161, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry LogSource_entries[] = { + {{&LogSource_names[0], 19}, 3}, + {{&LogSource_names[19], 20}, 7}, + {{&LogSource_names[39], 13}, 5}, + {{&LogSource_names[52], 16}, 2}, + {{&LogSource_names[68], 11}, 1}, + {{&LogSource_names[79], 22}, 8}, + {{&LogSource_names[101], 26}, 6}, + {{&LogSource_names[127], 23}, 9}, + {{&LogSource_names[150], 11}, 4}, + {{&LogSource_names[161], 18}, 0}, }; static const int LogSource_entries_by_number[] = { - 9, // 0 -> UNSPECIFIED_SOURCE - 4, // 1 -> LAB_DEVICES - 3, // 2 -> INTERNAL_DEVICES - 0, // 3 -> BETA_TESTER_DEVICES - 8, // 4 -> OEM_DEVICES - 2, // 5 -> DEBUG_DEVICES - 6, // 6 -> NEARBY_MODULE_FOOD_DEVICES - 1, // 7 -> BETO_DOGFOOD_DEVICES - 5, // 8 -> NEARBY_DOGFOOD_DEVICES - 7, // 9 -> NEARBY_TEAMFOOD_DEVICES + 9, // 0 -> UNSPECIFIED_SOURCE + 4, // 1 -> LAB_DEVICES + 3, // 2 -> INTERNAL_DEVICES + 0, // 3 -> BETA_TESTER_DEVICES + 8, // 4 -> OEM_DEVICES + 2, // 5 -> DEBUG_DEVICES + 6, // 6 -> NEARBY_MODULE_FOOD_DEVICES + 1, // 7 -> BETO_DOGFOOD_DEVICES + 5, // 8 -> NEARBY_DOGFOOD_DEVICES + 7, // 9 -> NEARBY_TEAMFOOD_DEVICES }; -const std::string& LogSource_Name( - LogSource value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - LogSource_entries, - LogSource_entries_by_number, - 10, LogSource_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - LogSource_entries, - LogSource_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - LogSource_strings[idx].get(); +const ::std::string& LogSource_Name(LogSource value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + LogSource_entries, LogSource_entries_by_number, 10, + LogSource_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(LogSource_entries, + LogSource_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : LogSource_strings[idx].get(); } -bool LogSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value) { + +bool LogSource_Parse(::absl::string_view name, LogSource* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( LogSource_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ServerActionName_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ServerActionName_internal_data_[] = { + 851968u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ServerActionName_strings[13] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerActionName_strings[13] = {}; +static const char ServerActionName_names[] = { + "CHECK_REACHABILITY" + "DOWNLOAD_CERTIFICATES" + "DOWNLOAD_CERTIFICATES_INFO" + "DOWNLOAD_SENDER_CERTIFICATES" + "LIST_CONTACT_PEOPLE" + "LIST_MY_DEVICES" + "LIST_REACHABLE_PHONE_NUMBERS" + "UNKNOWN_SERVER_ACTION" + "UPDATE_DEVICE_NAME" + "UPLOAD_CERTIFICATES" + "UPLOAD_CONTACTS" + "UPLOAD_CONTACTS_AND_CERTIFICATES" + "UPLOAD_SENDER_CERTIFICATES" +}; -static const char ServerActionName_names[] = - "CHECK_REACHABILITY" - "DOWNLOAD_CERTIFICATES" - "DOWNLOAD_CERTIFICATES_INFO" - "DOWNLOAD_SENDER_CERTIFICATES" - "LIST_CONTACT_PEOPLE" - "LIST_MY_DEVICES" - "LIST_REACHABLE_PHONE_NUMBERS" - "UNKNOWN_SERVER_ACTION" - "UPDATE_DEVICE_NAME" - "UPLOAD_CERTIFICATES" - "UPLOAD_CONTACTS" - "UPLOAD_CONTACTS_AND_CERTIFICATES" - "UPLOAD_SENDER_CERTIFICATES"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerActionName_entries[] = { - { {ServerActionName_names + 0, 18}, 3 }, - { {ServerActionName_names + 18, 21}, 2 }, - { {ServerActionName_names + 39, 26}, 12 }, - { {ServerActionName_names + 65, 28}, 7 }, - { {ServerActionName_names + 93, 19}, 11 }, - { {ServerActionName_names + 112, 15}, 10 }, - { {ServerActionName_names + 127, 28}, 9 }, - { {ServerActionName_names + 155, 21}, 0 }, - { {ServerActionName_names + 176, 18}, 5 }, - { {ServerActionName_names + 194, 19}, 1 }, - { {ServerActionName_names + 213, 15}, 4 }, - { {ServerActionName_names + 228, 32}, 8 }, - { {ServerActionName_names + 260, 26}, 6 }, +static const ::google::protobuf::internal::EnumEntry ServerActionName_entries[] = { + {{&ServerActionName_names[0], 18}, 3}, + {{&ServerActionName_names[18], 21}, 2}, + {{&ServerActionName_names[39], 26}, 12}, + {{&ServerActionName_names[65], 28}, 7}, + {{&ServerActionName_names[93], 19}, 11}, + {{&ServerActionName_names[112], 15}, 10}, + {{&ServerActionName_names[127], 28}, 9}, + {{&ServerActionName_names[155], 21}, 0}, + {{&ServerActionName_names[176], 18}, 5}, + {{&ServerActionName_names[194], 19}, 1}, + {{&ServerActionName_names[213], 15}, 4}, + {{&ServerActionName_names[228], 32}, 8}, + {{&ServerActionName_names[260], 26}, 6}, }; static const int ServerActionName_entries_by_number[] = { - 7, // 0 -> UNKNOWN_SERVER_ACTION - 9, // 1 -> UPLOAD_CERTIFICATES - 1, // 2 -> DOWNLOAD_CERTIFICATES - 0, // 3 -> CHECK_REACHABILITY - 10, // 4 -> UPLOAD_CONTACTS - 8, // 5 -> UPDATE_DEVICE_NAME - 12, // 6 -> UPLOAD_SENDER_CERTIFICATES - 3, // 7 -> DOWNLOAD_SENDER_CERTIFICATES - 11, // 8 -> UPLOAD_CONTACTS_AND_CERTIFICATES - 6, // 9 -> LIST_REACHABLE_PHONE_NUMBERS - 5, // 10 -> LIST_MY_DEVICES - 4, // 11 -> LIST_CONTACT_PEOPLE - 2, // 12 -> DOWNLOAD_CERTIFICATES_INFO + 7, // 0 -> UNKNOWN_SERVER_ACTION + 9, // 1 -> UPLOAD_CERTIFICATES + 1, // 2 -> DOWNLOAD_CERTIFICATES + 0, // 3 -> CHECK_REACHABILITY + 10, // 4 -> UPLOAD_CONTACTS + 8, // 5 -> UPDATE_DEVICE_NAME + 12, // 6 -> UPLOAD_SENDER_CERTIFICATES + 3, // 7 -> DOWNLOAD_SENDER_CERTIFICATES + 11, // 8 -> UPLOAD_CONTACTS_AND_CERTIFICATES + 6, // 9 -> LIST_REACHABLE_PHONE_NUMBERS + 5, // 10 -> LIST_MY_DEVICES + 4, // 11 -> LIST_CONTACT_PEOPLE + 2, // 12 -> DOWNLOAD_CERTIFICATES_INFO }; -const std::string& ServerActionName_Name( - ServerActionName value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ServerActionName_entries, - ServerActionName_entries_by_number, - 13, ServerActionName_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ServerActionName_entries, - ServerActionName_entries_by_number, - 13, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ServerActionName_strings[idx].get(); +const ::std::string& ServerActionName_Name(ServerActionName value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ServerActionName_entries, ServerActionName_entries_by_number, 13, + ServerActionName_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ServerActionName_entries, + ServerActionName_entries_by_number, + 13, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ServerActionName_strings[idx].get(); } -bool ServerActionName_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerActionName* value) { + +bool ServerActionName_Parse(::absl::string_view name, ServerActionName* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ServerActionName_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ServerResponseState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ServerResponseState_internal_data_[] = { + 720896u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ServerResponseState_strings[11] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerResponseState_strings[11] = {}; +static const char ServerResponseState_names[] = { + "SERVER_RESPONSE_GOOGLE_AUTH_FAILURE" + "SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET" + "SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED" + "SERVER_RESPONSE_STATUS_INVALID_ARGUMENT" + "SERVER_RESPONSE_STATUS_OTHER_FAILURE" + "SERVER_RESPONSE_STATUS_PERMISSION_DENIED" + "SERVER_RESPONSE_STATUS_UNAUTHENTICATED" + "SERVER_RESPONSE_STATUS_UNAVAILABLE" + "SERVER_RESPONSE_SUCCESS" + "SERVER_RESPONSE_UNKNOWN_FAILURE" + "UNKNOWN_SERVER_RESPONSE_STATE" +}; -static const char ServerResponseState_names[] = - "SERVER_RESPONSE_GOOGLE_AUTH_FAILURE" - "SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET" - "SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED" - "SERVER_RESPONSE_STATUS_INVALID_ARGUMENT" - "SERVER_RESPONSE_STATUS_OTHER_FAILURE" - "SERVER_RESPONSE_STATUS_PERMISSION_DENIED" - "SERVER_RESPONSE_STATUS_UNAUTHENTICATED" - "SERVER_RESPONSE_STATUS_UNAVAILABLE" - "SERVER_RESPONSE_SUCCESS" - "SERVER_RESPONSE_UNKNOWN_FAILURE" - "UNKNOWN_SERVER_RESPONSE_STATE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerResponseState_entries[] = { - { {ServerResponseState_names + 0, 35}, 8 }, - { {ServerResponseState_names + 35, 41}, 10 }, - { {ServerResponseState_names + 76, 40}, 4 }, - { {ServerResponseState_names + 116, 39}, 9 }, - { {ServerResponseState_names + 155, 36}, 3 }, - { {ServerResponseState_names + 191, 40}, 5 }, - { {ServerResponseState_names + 231, 38}, 7 }, - { {ServerResponseState_names + 269, 34}, 6 }, - { {ServerResponseState_names + 303, 23}, 1 }, - { {ServerResponseState_names + 326, 31}, 2 }, - { {ServerResponseState_names + 357, 29}, 0 }, +static const ::google::protobuf::internal::EnumEntry ServerResponseState_entries[] = { + {{&ServerResponseState_names[0], 35}, 8}, + {{&ServerResponseState_names[35], 41}, 10}, + {{&ServerResponseState_names[76], 40}, 4}, + {{&ServerResponseState_names[116], 39}, 9}, + {{&ServerResponseState_names[155], 36}, 3}, + {{&ServerResponseState_names[191], 40}, 5}, + {{&ServerResponseState_names[231], 38}, 7}, + {{&ServerResponseState_names[269], 34}, 6}, + {{&ServerResponseState_names[303], 23}, 1}, + {{&ServerResponseState_names[326], 31}, 2}, + {{&ServerResponseState_names[357], 29}, 0}, }; static const int ServerResponseState_entries_by_number[] = { - 10, // 0 -> UNKNOWN_SERVER_RESPONSE_STATE - 8, // 1 -> SERVER_RESPONSE_SUCCESS - 9, // 2 -> SERVER_RESPONSE_UNKNOWN_FAILURE - 4, // 3 -> SERVER_RESPONSE_STATUS_OTHER_FAILURE - 2, // 4 -> SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED - 5, // 5 -> SERVER_RESPONSE_STATUS_PERMISSION_DENIED - 7, // 6 -> SERVER_RESPONSE_STATUS_UNAVAILABLE - 6, // 7 -> SERVER_RESPONSE_STATUS_UNAUTHENTICATED - 0, // 8 -> SERVER_RESPONSE_GOOGLE_AUTH_FAILURE - 3, // 9 -> SERVER_RESPONSE_STATUS_INVALID_ARGUMENT - 1, // 10 -> SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET + 10, // 0 -> UNKNOWN_SERVER_RESPONSE_STATE + 8, // 1 -> SERVER_RESPONSE_SUCCESS + 9, // 2 -> SERVER_RESPONSE_UNKNOWN_FAILURE + 4, // 3 -> SERVER_RESPONSE_STATUS_OTHER_FAILURE + 2, // 4 -> SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED + 5, // 5 -> SERVER_RESPONSE_STATUS_PERMISSION_DENIED + 7, // 6 -> SERVER_RESPONSE_STATUS_UNAVAILABLE + 6, // 7 -> SERVER_RESPONSE_STATUS_UNAUTHENTICATED + 0, // 8 -> SERVER_RESPONSE_GOOGLE_AUTH_FAILURE + 3, // 9 -> SERVER_RESPONSE_STATUS_INVALID_ARGUMENT + 1, // 10 -> SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET }; -const std::string& ServerResponseState_Name( - ServerResponseState value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ServerResponseState_entries, - ServerResponseState_entries_by_number, - 11, ServerResponseState_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ServerResponseState_entries, - ServerResponseState_entries_by_number, - 11, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ServerResponseState_strings[idx].get(); +const ::std::string& ServerResponseState_Name(ServerResponseState value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ServerResponseState_entries, ServerResponseState_entries_by_number, 11, + ServerResponseState_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ServerResponseState_entries, + ServerResponseState_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ServerResponseState_strings[idx].get(); } -bool ServerResponseState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerResponseState* value) { + +bool ServerResponseState_Parse(::absl::string_view name, ServerResponseState* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ServerResponseState_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SyncPurpose_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SyncPurpose_internal_data_[] = { + 1310720u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SyncPurpose_strings[20] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SyncPurpose_strings[19] = {}; +static const char SyncPurpose_names[] = { + "SYNC_EXHAUST_SALT" + "SYNC_PURPOSE_ACCOUNT_CHANGE" + "SYNC_PURPOSE_CHECK_DEFAULT_OPT_IN" + "SYNC_PURPOSE_CHIME_NOTIFICATION" + "SYNC_PURPOSE_CONTACT_LIST_CHANGE" + "SYNC_PURPOSE_DAILY_SYNC" + "SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE" + "SYNC_PURPOSE_NEARBY_SHARE_ENABLED" + "SYNC_PURPOSE_ON_DEMAND_SYNC" + "SYNC_PURPOSE_OPT_IN_FIRST_SYNC" + "SYNC_PURPOSE_REGENERATE_CERTIFICATES" + "SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY" + "SYNC_PURPOSE_SHOW_C11N_VIEW" + "SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT" + "SYNC_PURPOSE_SYNC_AT_DISCOVERY" + "SYNC_PURPOSE_SYNC_AT_FAST_INIT" + "SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE" + "SYNC_PURPOSE_UNKNOWN" + "SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE" + "SYNC_QUICKSHARE_IDENTITY_PROVIDER_QUERY" +}; -static const char SyncPurpose_names[] = - "SYNC_EXHAUST_SALT" - "SYNC_PURPOSE_ACCOUNT_CHANGE" - "SYNC_PURPOSE_CHECK_DEFAULT_OPT_IN" - "SYNC_PURPOSE_CHIME_NOTIFICATION" - "SYNC_PURPOSE_CONTACT_LIST_CHANGE" - "SYNC_PURPOSE_DAILY_SYNC" - "SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE" - "SYNC_PURPOSE_NEARBY_SHARE_ENABLED" - "SYNC_PURPOSE_ON_DEMAND_SYNC" - "SYNC_PURPOSE_OPT_IN_FIRST_SYNC" - "SYNC_PURPOSE_REGENERATE_CERTIFICATES" - "SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY" - "SYNC_PURPOSE_SHOW_C11N_VIEW" - "SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT" - "SYNC_PURPOSE_SYNC_AT_DISCOVERY" - "SYNC_PURPOSE_SYNC_AT_FAST_INIT" - "SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE" - "SYNC_PURPOSE_UNKNOWN" - "SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SyncPurpose_entries[] = { - { {SyncPurpose_names + 0, 17}, 18 }, - { {SyncPurpose_names + 17, 27}, 15 }, - { {SyncPurpose_names + 44, 33}, 5 }, - { {SyncPurpose_names + 77, 31}, 2 }, - { {SyncPurpose_names + 108, 32}, 11 }, - { {SyncPurpose_names + 140, 23}, 3 }, - { {SyncPurpose_names + 163, 43}, 17 }, - { {SyncPurpose_names + 206, 33}, 6 }, - { {SyncPurpose_names + 239, 27}, 1 }, - { {SyncPurpose_names + 266, 30}, 4 }, - { {SyncPurpose_names + 296, 36}, 16 }, - { {SyncPurpose_names + 332, 47}, 13 }, - { {SyncPurpose_names + 379, 27}, 12 }, - { {SyncPurpose_names + 406, 34}, 10 }, - { {SyncPurpose_names + 440, 30}, 8 }, - { {SyncPurpose_names + 470, 30}, 7 }, - { {SyncPurpose_names + 500, 45}, 9 }, - { {SyncPurpose_names + 545, 20}, 0 }, - { {SyncPurpose_names + 565, 47}, 14 }, +static const ::google::protobuf::internal::EnumEntry SyncPurpose_entries[] = { + {{&SyncPurpose_names[0], 17}, 18}, + {{&SyncPurpose_names[17], 27}, 15}, + {{&SyncPurpose_names[44], 33}, 5}, + {{&SyncPurpose_names[77], 31}, 2}, + {{&SyncPurpose_names[108], 32}, 11}, + {{&SyncPurpose_names[140], 23}, 3}, + {{&SyncPurpose_names[163], 43}, 17}, + {{&SyncPurpose_names[206], 33}, 6}, + {{&SyncPurpose_names[239], 27}, 1}, + {{&SyncPurpose_names[266], 30}, 4}, + {{&SyncPurpose_names[296], 36}, 16}, + {{&SyncPurpose_names[332], 47}, 13}, + {{&SyncPurpose_names[379], 27}, 12}, + {{&SyncPurpose_names[406], 34}, 10}, + {{&SyncPurpose_names[440], 30}, 8}, + {{&SyncPurpose_names[470], 30}, 7}, + {{&SyncPurpose_names[500], 45}, 9}, + {{&SyncPurpose_names[545], 20}, 0}, + {{&SyncPurpose_names[565], 47}, 14}, + {{&SyncPurpose_names[612], 39}, 19}, }; static const int SyncPurpose_entries_by_number[] = { - 17, // 0 -> SYNC_PURPOSE_UNKNOWN - 8, // 1 -> SYNC_PURPOSE_ON_DEMAND_SYNC - 3, // 2 -> SYNC_PURPOSE_CHIME_NOTIFICATION - 5, // 3 -> SYNC_PURPOSE_DAILY_SYNC - 9, // 4 -> SYNC_PURPOSE_OPT_IN_FIRST_SYNC - 2, // 5 -> SYNC_PURPOSE_CHECK_DEFAULT_OPT_IN - 7, // 6 -> SYNC_PURPOSE_NEARBY_SHARE_ENABLED - 15, // 7 -> SYNC_PURPOSE_SYNC_AT_FAST_INIT - 14, // 8 -> SYNC_PURPOSE_SYNC_AT_DISCOVERY - 16, // 9 -> SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE - 13, // 10 -> SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT - 4, // 11 -> SYNC_PURPOSE_CONTACT_LIST_CHANGE - 12, // 12 -> SYNC_PURPOSE_SHOW_C11N_VIEW - 11, // 13 -> SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY - 18, // 14 -> SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE - 1, // 15 -> SYNC_PURPOSE_ACCOUNT_CHANGE - 10, // 16 -> SYNC_PURPOSE_REGENERATE_CERTIFICATES - 6, // 17 -> SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE - 0, // 18 -> SYNC_EXHAUST_SALT + 17, // 0 -> SYNC_PURPOSE_UNKNOWN + 8, // 1 -> SYNC_PURPOSE_ON_DEMAND_SYNC + 3, // 2 -> SYNC_PURPOSE_CHIME_NOTIFICATION + 5, // 3 -> SYNC_PURPOSE_DAILY_SYNC + 9, // 4 -> SYNC_PURPOSE_OPT_IN_FIRST_SYNC + 2, // 5 -> SYNC_PURPOSE_CHECK_DEFAULT_OPT_IN + 7, // 6 -> SYNC_PURPOSE_NEARBY_SHARE_ENABLED + 15, // 7 -> SYNC_PURPOSE_SYNC_AT_FAST_INIT + 14, // 8 -> SYNC_PURPOSE_SYNC_AT_DISCOVERY + 16, // 9 -> SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE + 13, // 10 -> SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT + 4, // 11 -> SYNC_PURPOSE_CONTACT_LIST_CHANGE + 12, // 12 -> SYNC_PURPOSE_SHOW_C11N_VIEW + 11, // 13 -> SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY + 18, // 14 -> SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE + 1, // 15 -> SYNC_PURPOSE_ACCOUNT_CHANGE + 10, // 16 -> SYNC_PURPOSE_REGENERATE_CERTIFICATES + 6, // 17 -> SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE + 0, // 18 -> SYNC_EXHAUST_SALT + 19, // 19 -> SYNC_QUICKSHARE_IDENTITY_PROVIDER_QUERY }; -const std::string& SyncPurpose_Name( - SyncPurpose value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SyncPurpose_entries, - SyncPurpose_entries_by_number, - 19, SyncPurpose_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SyncPurpose_entries, - SyncPurpose_entries_by_number, - 19, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SyncPurpose_strings[idx].get(); +const ::std::string& SyncPurpose_Name(SyncPurpose value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SyncPurpose_entries, SyncPurpose_entries_by_number, 20, + SyncPurpose_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SyncPurpose_entries, + SyncPurpose_entries_by_number, + 20, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SyncPurpose_strings[idx].get(); } -bool SyncPurpose_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SyncPurpose* value) { + +bool SyncPurpose_Parse(::absl::string_view name, SyncPurpose* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - SyncPurpose_entries, 19, name, &int_value); + bool success = ::google::protobuf::internal::LookUpEnumValue( + SyncPurpose_entries, 20, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ClientRole_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ClientRole_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ClientRole_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ClientRole_strings[3] = {}; +static const char ClientRole_names[] = { + "CLIENT_ROLE_RECEIVER" + "CLIENT_ROLE_SENDER" + "CLIENT_ROLE_UNKNOWN" +}; -static const char ClientRole_names[] = - "CLIENT_ROLE_RECEIVER" - "CLIENT_ROLE_SENDER" - "CLIENT_ROLE_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ClientRole_entries[] = { - { {ClientRole_names + 0, 20}, 2 }, - { {ClientRole_names + 20, 18}, 1 }, - { {ClientRole_names + 38, 19}, 0 }, +static const ::google::protobuf::internal::EnumEntry ClientRole_entries[] = { + {{&ClientRole_names[0], 20}, 2}, + {{&ClientRole_names[20], 18}, 1}, + {{&ClientRole_names[38], 19}, 0}, }; static const int ClientRole_entries_by_number[] = { - 2, // 0 -> CLIENT_ROLE_UNKNOWN - 1, // 1 -> CLIENT_ROLE_SENDER - 0, // 2 -> CLIENT_ROLE_RECEIVER + 2, // 0 -> CLIENT_ROLE_UNKNOWN + 1, // 1 -> CLIENT_ROLE_SENDER + 0, // 2 -> CLIENT_ROLE_RECEIVER }; -const std::string& ClientRole_Name( - ClientRole value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ClientRole_entries, - ClientRole_entries_by_number, - 3, ClientRole_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ClientRole_entries, - ClientRole_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ClientRole_strings[idx].get(); +const ::std::string& ClientRole_Name(ClientRole value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ClientRole_entries, ClientRole_entries_by_number, 3, + ClientRole_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ClientRole_entries, + ClientRole_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ClientRole_strings[idx].get(); } -bool ClientRole_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientRole* value) { + +bool ClientRole_Parse(::absl::string_view name, ClientRole* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ClientRole_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ScanType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ScanType_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ScanType_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ScanType_strings[5] = {}; +static const char ScanType_names[] = { + "BACKGROUND_SCAN" + "DIRECT_SHARE_SCAN" + "FOREGROUND_RETRY_SCAN" + "FOREGROUND_SCAN" + "UNKNOWN_SCAN_TYPE" +}; -static const char ScanType_names[] = - "BACKGROUND_SCAN" - "DIRECT_SHARE_SCAN" - "FOREGROUND_RETRY_SCAN" - "FOREGROUND_SCAN" - "UNKNOWN_SCAN_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ScanType_entries[] = { - { {ScanType_names + 0, 15}, 4 }, - { {ScanType_names + 15, 17}, 3 }, - { {ScanType_names + 32, 21}, 2 }, - { {ScanType_names + 53, 15}, 1 }, - { {ScanType_names + 68, 17}, 0 }, +static const ::google::protobuf::internal::EnumEntry ScanType_entries[] = { + {{&ScanType_names[0], 15}, 4}, + {{&ScanType_names[15], 17}, 3}, + {{&ScanType_names[32], 21}, 2}, + {{&ScanType_names[53], 15}, 1}, + {{&ScanType_names[68], 17}, 0}, }; static const int ScanType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_SCAN_TYPE - 3, // 1 -> FOREGROUND_SCAN - 2, // 2 -> FOREGROUND_RETRY_SCAN - 1, // 3 -> DIRECT_SHARE_SCAN - 0, // 4 -> BACKGROUND_SCAN + 4, // 0 -> UNKNOWN_SCAN_TYPE + 3, // 1 -> FOREGROUND_SCAN + 2, // 2 -> FOREGROUND_RETRY_SCAN + 1, // 3 -> DIRECT_SHARE_SCAN + 0, // 4 -> BACKGROUND_SCAN }; -const std::string& ScanType_Name( - ScanType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ScanType_entries, - ScanType_entries_by_number, - 5, ScanType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ScanType_entries, - ScanType_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ScanType_strings[idx].get(); +const ::std::string& ScanType_Name(ScanType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ScanType_entries, ScanType_entries_by_number, 5, + ScanType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ScanType_entries, + ScanType_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ScanType_strings[idx].get(); } -bool ScanType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ScanType* value) { + +bool ScanType_Parse(::absl::string_view name, ScanType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ScanType_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ParsingFailedType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ParsingFailedType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ParsingFailedType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ParsingFailedType_strings[3] = {}; +static const char ParsingFailedType_names[] = { + "FAILED_CONVERT_SHARE_TARGET" + "FAILED_PARSE_ADVERTISEMENT" + "FAILED_UNKNOWN_TYPE" +}; -static const char ParsingFailedType_names[] = - "FAILED_CONVERT_SHARE_TARGET" - "FAILED_PARSE_ADVERTISEMENT" - "FAILED_UNKNOWN_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ParsingFailedType_entries[] = { - { {ParsingFailedType_names + 0, 27}, 2 }, - { {ParsingFailedType_names + 27, 26}, 1 }, - { {ParsingFailedType_names + 53, 19}, 0 }, +static const ::google::protobuf::internal::EnumEntry ParsingFailedType_entries[] = { + {{&ParsingFailedType_names[0], 27}, 2}, + {{&ParsingFailedType_names[27], 26}, 1}, + {{&ParsingFailedType_names[53], 19}, 0}, }; static const int ParsingFailedType_entries_by_number[] = { - 2, // 0 -> FAILED_UNKNOWN_TYPE - 1, // 1 -> FAILED_PARSE_ADVERTISEMENT - 0, // 2 -> FAILED_CONVERT_SHARE_TARGET + 2, // 0 -> FAILED_UNKNOWN_TYPE + 1, // 1 -> FAILED_PARSE_ADVERTISEMENT + 0, // 2 -> FAILED_CONVERT_SHARE_TARGET }; -const std::string& ParsingFailedType_Name( - ParsingFailedType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ParsingFailedType_entries, - ParsingFailedType_entries_by_number, - 3, ParsingFailedType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ParsingFailedType_entries, - ParsingFailedType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ParsingFailedType_strings[idx].get(); +const ::std::string& ParsingFailedType_Name(ParsingFailedType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ParsingFailedType_entries, ParsingFailedType_entries_by_number, 3, + ParsingFailedType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ParsingFailedType_entries, + ParsingFailedType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ParsingFailedType_strings[idx].get(); } -bool ParsingFailedType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ParsingFailedType* value) { + +bool ParsingFailedType_Parse(::absl::string_view name, ParsingFailedType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ParsingFailedType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool AdvertisingMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AdvertisingMode_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AdvertisingMode_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AdvertisingMode_strings[6] = {}; +static const char AdvertisingMode_names[] = { + "BACKGROUND_ADVERTISING_MODE" + "FOREGROUND_ADVERTISING_MODE" + "MIDGROUND_ADVERTISING_MODE" + "SCREEN_OFF_ADVERTISING_MODE" + "SUSPENDED_ADVERTISING_MODE" + "UNKNOWN_ADVERTISING_MODE" +}; -static const char AdvertisingMode_names[] = - "BACKGROUND_ADVERTISING_MODE" - "FOREGROUND_ADVERTISING_MODE" - "MIDGROUND_ADVERTISING_MODE" - "SCREEN_OFF_ADVERTISING_MODE" - "SUSPENDED_ADVERTISING_MODE" - "UNKNOWN_ADVERTISING_MODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AdvertisingMode_entries[] = { - { {AdvertisingMode_names + 0, 27}, 2 }, - { {AdvertisingMode_names + 27, 27}, 4 }, - { {AdvertisingMode_names + 54, 26}, 3 }, - { {AdvertisingMode_names + 80, 27}, 1 }, - { {AdvertisingMode_names + 107, 26}, 5 }, - { {AdvertisingMode_names + 133, 24}, 0 }, +static const ::google::protobuf::internal::EnumEntry AdvertisingMode_entries[] = { + {{&AdvertisingMode_names[0], 27}, 2}, + {{&AdvertisingMode_names[27], 27}, 4}, + {{&AdvertisingMode_names[54], 26}, 3}, + {{&AdvertisingMode_names[80], 27}, 1}, + {{&AdvertisingMode_names[107], 26}, 5}, + {{&AdvertisingMode_names[133], 24}, 0}, }; static const int AdvertisingMode_entries_by_number[] = { - 5, // 0 -> UNKNOWN_ADVERTISING_MODE - 3, // 1 -> SCREEN_OFF_ADVERTISING_MODE - 0, // 2 -> BACKGROUND_ADVERTISING_MODE - 2, // 3 -> MIDGROUND_ADVERTISING_MODE - 1, // 4 -> FOREGROUND_ADVERTISING_MODE - 4, // 5 -> SUSPENDED_ADVERTISING_MODE + 5, // 0 -> UNKNOWN_ADVERTISING_MODE + 3, // 1 -> SCREEN_OFF_ADVERTISING_MODE + 0, // 2 -> BACKGROUND_ADVERTISING_MODE + 2, // 3 -> MIDGROUND_ADVERTISING_MODE + 1, // 4 -> FOREGROUND_ADVERTISING_MODE + 4, // 5 -> SUSPENDED_ADVERTISING_MODE }; -const std::string& AdvertisingMode_Name( - AdvertisingMode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AdvertisingMode_entries, - AdvertisingMode_entries_by_number, - 6, AdvertisingMode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AdvertisingMode_entries, - AdvertisingMode_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AdvertisingMode_strings[idx].get(); +const ::std::string& AdvertisingMode_Name(AdvertisingMode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AdvertisingMode_entries, AdvertisingMode_entries_by_number, 6, + AdvertisingMode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AdvertisingMode_entries, + AdvertisingMode_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AdvertisingMode_strings[idx].get(); } -bool AdvertisingMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdvertisingMode* value) { + +bool AdvertisingMode_Parse(::absl::string_view name, AdvertisingMode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AdvertisingMode_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DiscoveryMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DiscoveryMode_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DiscoveryMode_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DiscoveryMode_strings[6] = {}; +static const char DiscoveryMode_names[] = { + "BACKGROUND_DISCOVERY_MODE" + "FOREGROUND_DISCOVERY_MODE" + "MIDGROUND_DISCOVERY_MODE" + "SCREEN_OFF_DISCOVERY_MODE" + "SUSPENDED_DISCOVERY_MODE" + "UNKNOWN_DISCOVERY_MODE" +}; -static const char DiscoveryMode_names[] = - "BACKGROUND_DISCOVERY_MODE" - "FOREGROUND_DISCOVERY_MODE" - "MIDGROUND_DISCOVERY_MODE" - "SCREEN_OFF_DISCOVERY_MODE" - "SUSPENDED_DISCOVERY_MODE" - "UNKNOWN_DISCOVERY_MODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DiscoveryMode_entries[] = { - { {DiscoveryMode_names + 0, 25}, 2 }, - { {DiscoveryMode_names + 25, 25}, 4 }, - { {DiscoveryMode_names + 50, 24}, 3 }, - { {DiscoveryMode_names + 74, 25}, 1 }, - { {DiscoveryMode_names + 99, 24}, 5 }, - { {DiscoveryMode_names + 123, 22}, 0 }, +static const ::google::protobuf::internal::EnumEntry DiscoveryMode_entries[] = { + {{&DiscoveryMode_names[0], 25}, 2}, + {{&DiscoveryMode_names[25], 25}, 4}, + {{&DiscoveryMode_names[50], 24}, 3}, + {{&DiscoveryMode_names[74], 25}, 1}, + {{&DiscoveryMode_names[99], 24}, 5}, + {{&DiscoveryMode_names[123], 22}, 0}, }; static const int DiscoveryMode_entries_by_number[] = { - 5, // 0 -> UNKNOWN_DISCOVERY_MODE - 3, // 1 -> SCREEN_OFF_DISCOVERY_MODE - 0, // 2 -> BACKGROUND_DISCOVERY_MODE - 2, // 3 -> MIDGROUND_DISCOVERY_MODE - 1, // 4 -> FOREGROUND_DISCOVERY_MODE - 4, // 5 -> SUSPENDED_DISCOVERY_MODE + 5, // 0 -> UNKNOWN_DISCOVERY_MODE + 3, // 1 -> SCREEN_OFF_DISCOVERY_MODE + 0, // 2 -> BACKGROUND_DISCOVERY_MODE + 2, // 3 -> MIDGROUND_DISCOVERY_MODE + 1, // 4 -> FOREGROUND_DISCOVERY_MODE + 4, // 5 -> SUSPENDED_DISCOVERY_MODE }; -const std::string& DiscoveryMode_Name( - DiscoveryMode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DiscoveryMode_entries, - DiscoveryMode_entries_by_number, - 6, DiscoveryMode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DiscoveryMode_entries, - DiscoveryMode_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DiscoveryMode_strings[idx].get(); +const ::std::string& DiscoveryMode_Name(DiscoveryMode value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DiscoveryMode_entries, DiscoveryMode_entries_by_number, 6, + DiscoveryMode_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DiscoveryMode_entries, + DiscoveryMode_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DiscoveryMode_strings[idx].get(); } -bool DiscoveryMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DiscoveryMode* value) { + +bool DiscoveryMode_Parse(::absl::string_view name, DiscoveryMode* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DiscoveryMode_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ActivityName_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ActivityName_internal_data_[] = { + 851968u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ActivityName_strings[13] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ActivityName_strings[13] = {}; +static const char ActivityName_names[] = { + "CONSENTS_ACTIVITY" + "DEVICE_VISIBILITY_ACTIVITY" + "QUICK_SETTINGS_ACTIVITY" + "RECEIVE_SURFACE_ACTIVITY" + "REMOTE_COPY_SHARE_SHEET_ACTIVITY" + "SETTINGS_ACTIVITY" + "SETTINGS_REVIEW_ACTIVITY" + "SETUP_ACTIVITY" + "SETUP_WIZARD_ACTIVITY" + "SET_DATA_USAGE_DIALOG" + "SET_DEVICE_NAME_DIALOG" + "SHARE_SHEET_ACTIVITY" + "UNKNOWN_ACTIVITY" +}; -static const char ActivityName_names[] = - "CONSENTS_ACTIVITY" - "DEVICE_VISIBILITY_ACTIVITY" - "QUICK_SETTINGS_ACTIVITY" - "RECEIVE_SURFACE_ACTIVITY" - "REMOTE_COPY_SHARE_SHEET_ACTIVITY" - "SETTINGS_ACTIVITY" - "SETTINGS_REVIEW_ACTIVITY" - "SETUP_ACTIVITY" - "SETUP_WIZARD_ACTIVITY" - "SET_DATA_USAGE_DIALOG" - "SET_DEVICE_NAME_DIALOG" - "SHARE_SHEET_ACTIVITY" - "UNKNOWN_ACTIVITY"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ActivityName_entries[] = { - { {ActivityName_names + 0, 17}, 6 }, - { {ActivityName_names + 17, 26}, 5 }, - { {ActivityName_names + 43, 23}, 9 }, - { {ActivityName_names + 66, 24}, 3 }, - { {ActivityName_names + 90, 32}, 10 }, - { {ActivityName_names + 122, 17}, 2 }, - { {ActivityName_names + 139, 24}, 12 }, - { {ActivityName_names + 163, 14}, 4 }, - { {ActivityName_names + 177, 21}, 11 }, - { {ActivityName_names + 198, 21}, 8 }, - { {ActivityName_names + 219, 22}, 7 }, - { {ActivityName_names + 241, 20}, 1 }, - { {ActivityName_names + 261, 16}, 0 }, +static const ::google::protobuf::internal::EnumEntry ActivityName_entries[] = { + {{&ActivityName_names[0], 17}, 6}, + {{&ActivityName_names[17], 26}, 5}, + {{&ActivityName_names[43], 23}, 9}, + {{&ActivityName_names[66], 24}, 3}, + {{&ActivityName_names[90], 32}, 10}, + {{&ActivityName_names[122], 17}, 2}, + {{&ActivityName_names[139], 24}, 12}, + {{&ActivityName_names[163], 14}, 4}, + {{&ActivityName_names[177], 21}, 11}, + {{&ActivityName_names[198], 21}, 8}, + {{&ActivityName_names[219], 22}, 7}, + {{&ActivityName_names[241], 20}, 1}, + {{&ActivityName_names[261], 16}, 0}, }; static const int ActivityName_entries_by_number[] = { - 12, // 0 -> UNKNOWN_ACTIVITY - 11, // 1 -> SHARE_SHEET_ACTIVITY - 5, // 2 -> SETTINGS_ACTIVITY - 3, // 3 -> RECEIVE_SURFACE_ACTIVITY - 7, // 4 -> SETUP_ACTIVITY - 1, // 5 -> DEVICE_VISIBILITY_ACTIVITY - 0, // 6 -> CONSENTS_ACTIVITY - 10, // 7 -> SET_DEVICE_NAME_DIALOG - 9, // 8 -> SET_DATA_USAGE_DIALOG - 2, // 9 -> QUICK_SETTINGS_ACTIVITY - 4, // 10 -> REMOTE_COPY_SHARE_SHEET_ACTIVITY - 8, // 11 -> SETUP_WIZARD_ACTIVITY - 6, // 12 -> SETTINGS_REVIEW_ACTIVITY + 12, // 0 -> UNKNOWN_ACTIVITY + 11, // 1 -> SHARE_SHEET_ACTIVITY + 5, // 2 -> SETTINGS_ACTIVITY + 3, // 3 -> RECEIVE_SURFACE_ACTIVITY + 7, // 4 -> SETUP_ACTIVITY + 1, // 5 -> DEVICE_VISIBILITY_ACTIVITY + 0, // 6 -> CONSENTS_ACTIVITY + 10, // 7 -> SET_DEVICE_NAME_DIALOG + 9, // 8 -> SET_DATA_USAGE_DIALOG + 2, // 9 -> QUICK_SETTINGS_ACTIVITY + 4, // 10 -> REMOTE_COPY_SHARE_SHEET_ACTIVITY + 8, // 11 -> SETUP_WIZARD_ACTIVITY + 6, // 12 -> SETTINGS_REVIEW_ACTIVITY }; -const std::string& ActivityName_Name( - ActivityName value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ActivityName_entries, - ActivityName_entries_by_number, - 13, ActivityName_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ActivityName_entries, - ActivityName_entries_by_number, - 13, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ActivityName_strings[idx].get(); +const ::std::string& ActivityName_Name(ActivityName value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ActivityName_entries, ActivityName_entries_by_number, 13, + ActivityName_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ActivityName_entries, + ActivityName_entries_by_number, + 13, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ActivityName_strings[idx].get(); } -bool ActivityName_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActivityName* value) { + +bool ActivityName_Parse(::absl::string_view name, ActivityName* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ActivityName_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConsentType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConsentType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConsentType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConsentType_strings[3] = {}; +static const char ConsentType_names[] = { + "CONSENT_TYPE_C11N" + "CONSENT_TYPE_DEVICE_CONTACT" + "CONSENT_TYPE_UNKNOWN" +}; -static const char ConsentType_names[] = - "CONSENT_TYPE_C11N" - "CONSENT_TYPE_DEVICE_CONTACT" - "CONSENT_TYPE_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConsentType_entries[] = { - { {ConsentType_names + 0, 17}, 1 }, - { {ConsentType_names + 17, 27}, 2 }, - { {ConsentType_names + 44, 20}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConsentType_entries[] = { + {{&ConsentType_names[0], 17}, 1}, + {{&ConsentType_names[17], 27}, 2}, + {{&ConsentType_names[44], 20}, 0}, }; static const int ConsentType_entries_by_number[] = { - 2, // 0 -> CONSENT_TYPE_UNKNOWN - 0, // 1 -> CONSENT_TYPE_C11N - 1, // 2 -> CONSENT_TYPE_DEVICE_CONTACT + 2, // 0 -> CONSENT_TYPE_UNKNOWN + 0, // 1 -> CONSENT_TYPE_C11N + 1, // 2 -> CONSENT_TYPE_DEVICE_CONTACT }; -const std::string& ConsentType_Name( - ConsentType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConsentType_entries, - ConsentType_entries_by_number, - 3, ConsentType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConsentType_entries, - ConsentType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConsentType_strings[idx].get(); +const ::std::string& ConsentType_Name(ConsentType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConsentType_entries, ConsentType_entries_by_number, 3, + ConsentType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConsentType_entries, + ConsentType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConsentType_strings[idx].get(); } -bool ConsentType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConsentType* value) { + +bool ConsentType_Parse(::absl::string_view name, ConsentType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConsentType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ConsentAcceptanceStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ConsentAcceptanceStatus_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ConsentAcceptanceStatus_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConsentAcceptanceStatus_strings[4] = {}; +static const char ConsentAcceptanceStatus_names[] = { + "CONSENT_ACCEPTED" + "CONSENT_DECLINED" + "CONSENT_UNABLE_TO_ENABLE" + "CONSENT_UNKNOWN_ACCEPT_STATUS" +}; -static const char ConsentAcceptanceStatus_names[] = - "CONSENT_ACCEPTED" - "CONSENT_DECLINED" - "CONSENT_UNABLE_TO_ENABLE" - "CONSENT_UNKNOWN_ACCEPT_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConsentAcceptanceStatus_entries[] = { - { {ConsentAcceptanceStatus_names + 0, 16}, 1 }, - { {ConsentAcceptanceStatus_names + 16, 16}, 2 }, - { {ConsentAcceptanceStatus_names + 32, 24}, 3 }, - { {ConsentAcceptanceStatus_names + 56, 29}, 0 }, +static const ::google::protobuf::internal::EnumEntry ConsentAcceptanceStatus_entries[] = { + {{&ConsentAcceptanceStatus_names[0], 16}, 1}, + {{&ConsentAcceptanceStatus_names[16], 16}, 2}, + {{&ConsentAcceptanceStatus_names[32], 24}, 3}, + {{&ConsentAcceptanceStatus_names[56], 29}, 0}, }; static const int ConsentAcceptanceStatus_entries_by_number[] = { - 3, // 0 -> CONSENT_UNKNOWN_ACCEPT_STATUS - 0, // 1 -> CONSENT_ACCEPTED - 1, // 2 -> CONSENT_DECLINED - 2, // 3 -> CONSENT_UNABLE_TO_ENABLE + 3, // 0 -> CONSENT_UNKNOWN_ACCEPT_STATUS + 0, // 1 -> CONSENT_ACCEPTED + 1, // 2 -> CONSENT_DECLINED + 2, // 3 -> CONSENT_UNABLE_TO_ENABLE }; -const std::string& ConsentAcceptanceStatus_Name( - ConsentAcceptanceStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConsentAcceptanceStatus_entries, - ConsentAcceptanceStatus_entries_by_number, - 4, ConsentAcceptanceStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConsentAcceptanceStatus_entries, - ConsentAcceptanceStatus_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConsentAcceptanceStatus_strings[idx].get(); +const ::std::string& ConsentAcceptanceStatus_Name(ConsentAcceptanceStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ConsentAcceptanceStatus_entries, ConsentAcceptanceStatus_entries_by_number, 4, + ConsentAcceptanceStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ConsentAcceptanceStatus_entries, + ConsentAcceptanceStatus_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConsentAcceptanceStatus_strings[idx].get(); } -bool ConsentAcceptanceStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConsentAcceptanceStatus* value) { + +bool ConsentAcceptanceStatus_Parse(::absl::string_view name, ConsentAcceptanceStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ConsentAcceptanceStatus_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ApkSource_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ApkSource_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ApkSource_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ApkSource_strings[3] = {}; +static const char ApkSource_names[] = { + "APK_FROM_SD_CARD" + "INSTALLED_APP" + "UNKNOWN_APK_SOURCE" +}; -static const char ApkSource_names[] = - "APK_FROM_SD_CARD" - "INSTALLED_APP" - "UNKNOWN_APK_SOURCE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ApkSource_entries[] = { - { {ApkSource_names + 0, 16}, 1 }, - { {ApkSource_names + 16, 13}, 2 }, - { {ApkSource_names + 29, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry ApkSource_entries[] = { + {{&ApkSource_names[0], 16}, 1}, + {{&ApkSource_names[16], 13}, 2}, + {{&ApkSource_names[29], 18}, 0}, }; static const int ApkSource_entries_by_number[] = { - 2, // 0 -> UNKNOWN_APK_SOURCE - 0, // 1 -> APK_FROM_SD_CARD - 1, // 2 -> INSTALLED_APP + 2, // 0 -> UNKNOWN_APK_SOURCE + 0, // 1 -> APK_FROM_SD_CARD + 1, // 2 -> INSTALLED_APP }; -const std::string& ApkSource_Name( - ApkSource value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ApkSource_entries, - ApkSource_entries_by_number, - 3, ApkSource_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ApkSource_entries, - ApkSource_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ApkSource_strings[idx].get(); +const ::std::string& ApkSource_Name(ApkSource value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ApkSource_entries, ApkSource_entries_by_number, 3, + ApkSource_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ApkSource_entries, + ApkSource_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ApkSource_strings[idx].get(); } -bool ApkSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ApkSource* value) { + +bool ApkSource_Parse(::absl::string_view name, ApkSource* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ApkSource_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool InstallAPKStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t InstallAPKStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + InstallAPKStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed InstallAPKStatus_strings[3] = {}; +static const char InstallAPKStatus_names[] = { + "FAIL_INSTALLATION" + "SUCCESS_INSTALLATION" + "UNKNOWN_INSTALL_APK_STATUS" +}; -static const char InstallAPKStatus_names[] = - "FAIL_INSTALLATION" - "SUCCESS_INSTALLATION" - "UNKNOWN_INSTALL_APK_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry InstallAPKStatus_entries[] = { - { {InstallAPKStatus_names + 0, 17}, 1 }, - { {InstallAPKStatus_names + 17, 20}, 2 }, - { {InstallAPKStatus_names + 37, 26}, 0 }, +static const ::google::protobuf::internal::EnumEntry InstallAPKStatus_entries[] = { + {{&InstallAPKStatus_names[0], 17}, 1}, + {{&InstallAPKStatus_names[17], 20}, 2}, + {{&InstallAPKStatus_names[37], 26}, 0}, }; static const int InstallAPKStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_INSTALL_APK_STATUS - 0, // 1 -> FAIL_INSTALLATION - 1, // 2 -> SUCCESS_INSTALLATION + 2, // 0 -> UNKNOWN_INSTALL_APK_STATUS + 0, // 1 -> FAIL_INSTALLATION + 1, // 2 -> SUCCESS_INSTALLATION }; -const std::string& InstallAPKStatus_Name( - InstallAPKStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - InstallAPKStatus_entries, - InstallAPKStatus_entries_by_number, - 3, InstallAPKStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - InstallAPKStatus_entries, - InstallAPKStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - InstallAPKStatus_strings[idx].get(); +const ::std::string& InstallAPKStatus_Name(InstallAPKStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + InstallAPKStatus_entries, InstallAPKStatus_entries_by_number, 3, + InstallAPKStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(InstallAPKStatus_entries, + InstallAPKStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InstallAPKStatus_strings[idx].get(); } -bool InstallAPKStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InstallAPKStatus* value) { + +bool InstallAPKStatus_Parse(::absl::string_view name, InstallAPKStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( InstallAPKStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool VerifyAPKStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t VerifyAPKStatus_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + VerifyAPKStatus_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed VerifyAPKStatus_strings[4] = {}; +static const char VerifyAPKStatus_names[] = { + "ALREADY_INSTALLED" + "INSTALLABLE" + "NOT_INSTALLABLE" + "UNKNOWN_VERIFY_APK_STATUS" +}; -static const char VerifyAPKStatus_names[] = - "ALREADY_INSTALLED" - "INSTALLABLE" - "NOT_INSTALLABLE" - "UNKNOWN_VERIFY_APK_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry VerifyAPKStatus_entries[] = { - { {VerifyAPKStatus_names + 0, 17}, 3 }, - { {VerifyAPKStatus_names + 17, 11}, 2 }, - { {VerifyAPKStatus_names + 28, 15}, 1 }, - { {VerifyAPKStatus_names + 43, 25}, 0 }, +static const ::google::protobuf::internal::EnumEntry VerifyAPKStatus_entries[] = { + {{&VerifyAPKStatus_names[0], 17}, 3}, + {{&VerifyAPKStatus_names[17], 11}, 2}, + {{&VerifyAPKStatus_names[28], 15}, 1}, + {{&VerifyAPKStatus_names[43], 25}, 0}, }; static const int VerifyAPKStatus_entries_by_number[] = { - 3, // 0 -> UNKNOWN_VERIFY_APK_STATUS - 2, // 1 -> NOT_INSTALLABLE - 1, // 2 -> INSTALLABLE - 0, // 3 -> ALREADY_INSTALLED + 3, // 0 -> UNKNOWN_VERIFY_APK_STATUS + 2, // 1 -> NOT_INSTALLABLE + 1, // 2 -> INSTALLABLE + 0, // 3 -> ALREADY_INSTALLED }; -const std::string& VerifyAPKStatus_Name( - VerifyAPKStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - VerifyAPKStatus_entries, - VerifyAPKStatus_entries_by_number, - 4, VerifyAPKStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - VerifyAPKStatus_entries, - VerifyAPKStatus_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - VerifyAPKStatus_strings[idx].get(); +const ::std::string& VerifyAPKStatus_Name(VerifyAPKStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + VerifyAPKStatus_entries, VerifyAPKStatus_entries_by_number, 4, + VerifyAPKStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(VerifyAPKStatus_entries, + VerifyAPKStatus_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : VerifyAPKStatus_strings[idx].get(); } -bool VerifyAPKStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VerifyAPKStatus* value) { + +bool VerifyAPKStatus_Parse(::absl::string_view name, VerifyAPKStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( VerifyAPKStatus_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ShowNotificationStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ShowNotificationStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ShowNotificationStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ShowNotificationStatus_strings[3] = {}; +static const char ShowNotificationStatus_names[] = { + "NOT_SHOW" + "SHOW" + "UNKNOWN_SHOW_NOTIFICATION_STATUS" +}; -static const char ShowNotificationStatus_names[] = - "NOT_SHOW" - "SHOW" - "UNKNOWN_SHOW_NOTIFICATION_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ShowNotificationStatus_entries[] = { - { {ShowNotificationStatus_names + 0, 8}, 2 }, - { {ShowNotificationStatus_names + 8, 4}, 1 }, - { {ShowNotificationStatus_names + 12, 32}, 0 }, +static const ::google::protobuf::internal::EnumEntry ShowNotificationStatus_entries[] = { + {{&ShowNotificationStatus_names[0], 8}, 2}, + {{&ShowNotificationStatus_names[8], 4}, 1}, + {{&ShowNotificationStatus_names[12], 32}, 0}, }; static const int ShowNotificationStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_SHOW_NOTIFICATION_STATUS - 1, // 1 -> SHOW - 0, // 2 -> NOT_SHOW + 2, // 0 -> UNKNOWN_SHOW_NOTIFICATION_STATUS + 1, // 1 -> SHOW + 0, // 2 -> NOT_SHOW }; -const std::string& ShowNotificationStatus_Name( - ShowNotificationStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ShowNotificationStatus_entries, - ShowNotificationStatus_entries_by_number, - 3, ShowNotificationStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ShowNotificationStatus_entries, - ShowNotificationStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ShowNotificationStatus_strings[idx].get(); +const ::std::string& ShowNotificationStatus_Name(ShowNotificationStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ShowNotificationStatus_entries, ShowNotificationStatus_entries_by_number, 3, + ShowNotificationStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ShowNotificationStatus_entries, + ShowNotificationStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ShowNotificationStatus_strings[idx].get(); } -bool ShowNotificationStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ShowNotificationStatus* value) { + +bool ShowNotificationStatus_Parse(::absl::string_view name, ShowNotificationStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ShowNotificationStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PermissionRequestResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PermissionRequestResult_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PermissionRequestResult_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PermissionRequestResult_strings[4] = {}; +static const char PermissionRequestResult_names[] = { + "PERMISSION_GRANTED" + "PERMISSION_REJECTED" + "PERMISSION_UNABLE_TO_GRANT" + "PERMISSION_UNKNOWN_REQUEST_RESULT" +}; -static const char PermissionRequestResult_names[] = - "PERMISSION_GRANTED" - "PERMISSION_REJECTED" - "PERMISSION_UNABLE_TO_GRANT" - "PERMISSION_UNKNOWN_REQUEST_RESULT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PermissionRequestResult_entries[] = { - { {PermissionRequestResult_names + 0, 18}, 1 }, - { {PermissionRequestResult_names + 18, 19}, 2 }, - { {PermissionRequestResult_names + 37, 26}, 3 }, - { {PermissionRequestResult_names + 63, 33}, 0 }, +static const ::google::protobuf::internal::EnumEntry PermissionRequestResult_entries[] = { + {{&PermissionRequestResult_names[0], 18}, 1}, + {{&PermissionRequestResult_names[18], 19}, 2}, + {{&PermissionRequestResult_names[37], 26}, 3}, + {{&PermissionRequestResult_names[63], 33}, 0}, }; static const int PermissionRequestResult_entries_by_number[] = { - 3, // 0 -> PERMISSION_UNKNOWN_REQUEST_RESULT - 0, // 1 -> PERMISSION_GRANTED - 1, // 2 -> PERMISSION_REJECTED - 2, // 3 -> PERMISSION_UNABLE_TO_GRANT + 3, // 0 -> PERMISSION_UNKNOWN_REQUEST_RESULT + 0, // 1 -> PERMISSION_GRANTED + 1, // 2 -> PERMISSION_REJECTED + 2, // 3 -> PERMISSION_UNABLE_TO_GRANT }; -const std::string& PermissionRequestResult_Name( - PermissionRequestResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PermissionRequestResult_entries, - PermissionRequestResult_entries_by_number, - 4, PermissionRequestResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PermissionRequestResult_entries, - PermissionRequestResult_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PermissionRequestResult_strings[idx].get(); +const ::std::string& PermissionRequestResult_Name(PermissionRequestResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PermissionRequestResult_entries, PermissionRequestResult_entries_by_number, 4, + PermissionRequestResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PermissionRequestResult_entries, + PermissionRequestResult_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PermissionRequestResult_strings[idx].get(); } -bool PermissionRequestResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestResult* value) { + +bool PermissionRequestResult_Parse(::absl::string_view name, PermissionRequestResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PermissionRequestResult_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PermissionRequestType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PermissionRequestType_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PermissionRequestType_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PermissionRequestType_strings[6] = {}; +static const char PermissionRequestType_names[] = { + "PERMISSION_AIRPLANE_MODE_OFF" + "PERMISSION_BLUETOOTH" + "PERMISSION_LOCATION" + "PERMISSION_UNKNOWN_TYPE" + "PERMISSION_WIFI" + "PERMISSION_WIFI_HOTSPOT" +}; -static const char PermissionRequestType_names[] = - "PERMISSION_AIRPLANE_MODE_OFF" - "PERMISSION_BLUETOOTH" - "PERMISSION_LOCATION" - "PERMISSION_UNKNOWN_TYPE" - "PERMISSION_WIFI" - "PERMISSION_WIFI_HOTSPOT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PermissionRequestType_entries[] = { - { {PermissionRequestType_names + 0, 28}, 1 }, - { {PermissionRequestType_names + 28, 20}, 3 }, - { {PermissionRequestType_names + 48, 19}, 4 }, - { {PermissionRequestType_names + 67, 23}, 0 }, - { {PermissionRequestType_names + 90, 15}, 2 }, - { {PermissionRequestType_names + 105, 23}, 5 }, +static const ::google::protobuf::internal::EnumEntry PermissionRequestType_entries[] = { + {{&PermissionRequestType_names[0], 28}, 1}, + {{&PermissionRequestType_names[28], 20}, 3}, + {{&PermissionRequestType_names[48], 19}, 4}, + {{&PermissionRequestType_names[67], 23}, 0}, + {{&PermissionRequestType_names[90], 15}, 2}, + {{&PermissionRequestType_names[105], 23}, 5}, }; static const int PermissionRequestType_entries_by_number[] = { - 3, // 0 -> PERMISSION_UNKNOWN_TYPE - 0, // 1 -> PERMISSION_AIRPLANE_MODE_OFF - 4, // 2 -> PERMISSION_WIFI - 1, // 3 -> PERMISSION_BLUETOOTH - 2, // 4 -> PERMISSION_LOCATION - 5, // 5 -> PERMISSION_WIFI_HOTSPOT + 3, // 0 -> PERMISSION_UNKNOWN_TYPE + 0, // 1 -> PERMISSION_AIRPLANE_MODE_OFF + 4, // 2 -> PERMISSION_WIFI + 1, // 3 -> PERMISSION_BLUETOOTH + 2, // 4 -> PERMISSION_LOCATION + 5, // 5 -> PERMISSION_WIFI_HOTSPOT }; -const std::string& PermissionRequestType_Name( - PermissionRequestType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PermissionRequestType_entries, - PermissionRequestType_entries_by_number, - 6, PermissionRequestType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PermissionRequestType_entries, - PermissionRequestType_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PermissionRequestType_strings[idx].get(); +const ::std::string& PermissionRequestType_Name(PermissionRequestType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PermissionRequestType_entries, PermissionRequestType_entries_by_number, 6, + PermissionRequestType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PermissionRequestType_entries, + PermissionRequestType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PermissionRequestType_strings[idx].get(); } -bool PermissionRequestType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestType* value) { + +bool PermissionRequestType_Parse(::absl::string_view name, PermissionRequestType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PermissionRequestType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SharingUseCase_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SharingUseCase_internal_data_[] = { + 589824u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SharingUseCase_strings[9] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SharingUseCase_strings[9] = {}; +static const char SharingUseCase_names[] = { + "USE_CASE_APP_SHARE" + "USE_CASE_NEARBY_SHARE" + "USE_CASE_NEARBY_SHARE_WITH_QR_CODE" + "USE_CASE_QUICK_SETTING_FILE_SHARE" + "USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE" + "USE_CASE_REMOTE_COPY_PASTE" + "USE_CASE_SETUP_WIZARD" + "USE_CASE_UNKNOWN" + "USE_CASE_WIFI_CREDENTIAL" +}; -static const char SharingUseCase_names[] = - "USE_CASE_APP_SHARE" - "USE_CASE_NEARBY_SHARE" - "USE_CASE_NEARBY_SHARE_WITH_QR_CODE" - "USE_CASE_QUICK_SETTING_FILE_SHARE" - "USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE" - "USE_CASE_REMOTE_COPY_PASTE" - "USE_CASE_SETUP_WIZARD" - "USE_CASE_UNKNOWN" - "USE_CASE_WIFI_CREDENTIAL"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingUseCase_entries[] = { - { {SharingUseCase_names + 0, 18}, 4 }, - { {SharingUseCase_names + 18, 21}, 1 }, - { {SharingUseCase_names + 39, 34}, 7 }, - { {SharingUseCase_names + 73, 33}, 5 }, - { {SharingUseCase_names + 106, 40}, 8 }, - { {SharingUseCase_names + 146, 26}, 2 }, - { {SharingUseCase_names + 172, 21}, 6 }, - { {SharingUseCase_names + 193, 16}, 0 }, - { {SharingUseCase_names + 209, 24}, 3 }, +static const ::google::protobuf::internal::EnumEntry SharingUseCase_entries[] = { + {{&SharingUseCase_names[0], 18}, 4}, + {{&SharingUseCase_names[18], 21}, 1}, + {{&SharingUseCase_names[39], 34}, 7}, + {{&SharingUseCase_names[73], 33}, 5}, + {{&SharingUseCase_names[106], 40}, 8}, + {{&SharingUseCase_names[146], 26}, 2}, + {{&SharingUseCase_names[172], 21}, 6}, + {{&SharingUseCase_names[193], 16}, 0}, + {{&SharingUseCase_names[209], 24}, 3}, }; static const int SharingUseCase_entries_by_number[] = { - 7, // 0 -> USE_CASE_UNKNOWN - 1, // 1 -> USE_CASE_NEARBY_SHARE - 5, // 2 -> USE_CASE_REMOTE_COPY_PASTE - 8, // 3 -> USE_CASE_WIFI_CREDENTIAL - 0, // 4 -> USE_CASE_APP_SHARE - 3, // 5 -> USE_CASE_QUICK_SETTING_FILE_SHARE - 6, // 6 -> USE_CASE_SETUP_WIZARD - 2, // 7 -> USE_CASE_NEARBY_SHARE_WITH_QR_CODE - 4, // 8 -> USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE + 7, // 0 -> USE_CASE_UNKNOWN + 1, // 1 -> USE_CASE_NEARBY_SHARE + 5, // 2 -> USE_CASE_REMOTE_COPY_PASTE + 8, // 3 -> USE_CASE_WIFI_CREDENTIAL + 0, // 4 -> USE_CASE_APP_SHARE + 3, // 5 -> USE_CASE_QUICK_SETTING_FILE_SHARE + 6, // 6 -> USE_CASE_SETUP_WIZARD + 2, // 7 -> USE_CASE_NEARBY_SHARE_WITH_QR_CODE + 4, // 8 -> USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE }; -const std::string& SharingUseCase_Name( - SharingUseCase value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SharingUseCase_entries, - SharingUseCase_entries_by_number, - 9, SharingUseCase_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SharingUseCase_entries, - SharingUseCase_entries_by_number, - 9, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SharingUseCase_strings[idx].get(); +const ::std::string& SharingUseCase_Name(SharingUseCase value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SharingUseCase_entries, SharingUseCase_entries_by_number, 9, + SharingUseCase_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SharingUseCase_entries, + SharingUseCase_entries_by_number, + 9, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingUseCase_strings[idx].get(); } -bool SharingUseCase_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingUseCase* value) { + +bool SharingUseCase_Parse(::absl::string_view name, SharingUseCase* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SharingUseCase_entries, 9, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool AppCrashReason_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AppCrashReason_internal_data_[] = { + 65536u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AppCrashReason_strings[1] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AppCrashReason_strings[1] = {}; +static const char AppCrashReason_names[] = { + "APP_CRASH_REASON_UNKNOWN" +}; -static const char AppCrashReason_names[] = - "APP_CRASH_REASON_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AppCrashReason_entries[] = { - { {AppCrashReason_names + 0, 24}, 0 }, +static const ::google::protobuf::internal::EnumEntry AppCrashReason_entries[] = { + {{&AppCrashReason_names[0], 24}, 0}, }; static const int AppCrashReason_entries_by_number[] = { - 0, // 0 -> APP_CRASH_REASON_UNKNOWN + 0, // 0 -> APP_CRASH_REASON_UNKNOWN }; -const std::string& AppCrashReason_Name( - AppCrashReason value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AppCrashReason_entries, - AppCrashReason_entries_by_number, - 1, AppCrashReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AppCrashReason_entries, - AppCrashReason_entries_by_number, - 1, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AppCrashReason_strings[idx].get(); +const ::std::string& AppCrashReason_Name(AppCrashReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AppCrashReason_entries, AppCrashReason_entries_by_number, 1, + AppCrashReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AppCrashReason_entries, + AppCrashReason_entries_by_number, + 1, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AppCrashReason_strings[idx].get(); } -bool AppCrashReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppCrashReason* value) { + +bool AppCrashReason_Parse(::absl::string_view name, AppCrashReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AppCrashReason_entries, 1, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool AttachmentSourceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AttachmentSourceType_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AttachmentSourceType_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AttachmentSourceType_strings[7] = {}; +static const char AttachmentSourceType_names[] = { + "ATTACHMENT_SOURCE_CONTEXT_MENU" + "ATTACHMENT_SOURCE_DRAG_AND_DROP" + "ATTACHMENT_SOURCE_PASTE" + "ATTACHMENT_SOURCE_SELECT_FILES_BUTTON" + "ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON" + "ATTACHMENT_SOURCE_SHARE_ACTIVATION" + "ATTACHMENT_SOURCE_UNKNOWN" +}; -static const char AttachmentSourceType_names[] = - "ATTACHMENT_SOURCE_CONTEXT_MENU" - "ATTACHMENT_SOURCE_DRAG_AND_DROP" - "ATTACHMENT_SOURCE_PASTE" - "ATTACHMENT_SOURCE_SELECT_FILES_BUTTON" - "ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON" - "ATTACHMENT_SOURCE_SHARE_ACTIVATION" - "ATTACHMENT_SOURCE_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentSourceType_entries[] = { - { {AttachmentSourceType_names + 0, 30}, 1 }, - { {AttachmentSourceType_names + 30, 31}, 2 }, - { {AttachmentSourceType_names + 61, 23}, 4 }, - { {AttachmentSourceType_names + 84, 37}, 3 }, - { {AttachmentSourceType_names + 121, 39}, 5 }, - { {AttachmentSourceType_names + 160, 34}, 6 }, - { {AttachmentSourceType_names + 194, 25}, 0 }, +static const ::google::protobuf::internal::EnumEntry AttachmentSourceType_entries[] = { + {{&AttachmentSourceType_names[0], 30}, 1}, + {{&AttachmentSourceType_names[30], 31}, 2}, + {{&AttachmentSourceType_names[61], 23}, 4}, + {{&AttachmentSourceType_names[84], 37}, 3}, + {{&AttachmentSourceType_names[121], 39}, 5}, + {{&AttachmentSourceType_names[160], 34}, 6}, + {{&AttachmentSourceType_names[194], 25}, 0}, }; static const int AttachmentSourceType_entries_by_number[] = { - 6, // 0 -> ATTACHMENT_SOURCE_UNKNOWN - 0, // 1 -> ATTACHMENT_SOURCE_CONTEXT_MENU - 1, // 2 -> ATTACHMENT_SOURCE_DRAG_AND_DROP - 3, // 3 -> ATTACHMENT_SOURCE_SELECT_FILES_BUTTON - 2, // 4 -> ATTACHMENT_SOURCE_PASTE - 4, // 5 -> ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON - 5, // 6 -> ATTACHMENT_SOURCE_SHARE_ACTIVATION + 6, // 0 -> ATTACHMENT_SOURCE_UNKNOWN + 0, // 1 -> ATTACHMENT_SOURCE_CONTEXT_MENU + 1, // 2 -> ATTACHMENT_SOURCE_DRAG_AND_DROP + 3, // 3 -> ATTACHMENT_SOURCE_SELECT_FILES_BUTTON + 2, // 4 -> ATTACHMENT_SOURCE_PASTE + 4, // 5 -> ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON + 5, // 6 -> ATTACHMENT_SOURCE_SHARE_ACTIVATION }; -const std::string& AttachmentSourceType_Name( - AttachmentSourceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AttachmentSourceType_entries, - AttachmentSourceType_entries_by_number, - 7, AttachmentSourceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AttachmentSourceType_entries, - AttachmentSourceType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AttachmentSourceType_strings[idx].get(); +const ::std::string& AttachmentSourceType_Name(AttachmentSourceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AttachmentSourceType_entries, AttachmentSourceType_entries_by_number, 7, + AttachmentSourceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AttachmentSourceType_entries, + AttachmentSourceType_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AttachmentSourceType_strings[idx].get(); } -bool AttachmentSourceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentSourceType* value) { + +bool AttachmentSourceType_Parse(::absl::string_view name, AttachmentSourceType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AttachmentSourceType_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PreferencesAction_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PreferencesAction_internal_data_[] = { + 786432u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PreferencesAction_strings[12] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PreferencesAction_strings[12] = {}; +static const char PreferencesAction_names[] = { + "PREFERENCES_ACTION_ATTEMPT_LOAD" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS" + "PREFERENCES_ACTION_CREATE_PREFERENCES_PATH" + "PREFERENCES_ACTION_LOAD_PREFERENCES" + "PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE" + "PREFERENCES_ACTION_NO_ACTION" + "PREFERENCES_ACTION_RESTORE_FROM_BACKUP" + "PREFERENCES_ACTION_SAVE_PREFERENCESS" + "PREFERENCES_ACTION_UNKNOWN" +}; -static const char PreferencesAction_names[] = - "PREFERENCES_ACTION_ATTEMPT_LOAD" - "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS" - "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED" - "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS" - "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS" - "PREFERENCES_ACTION_CREATE_PREFERENCES_PATH" - "PREFERENCES_ACTION_LOAD_PREFERENCES" - "PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE" - "PREFERENCES_ACTION_NO_ACTION" - "PREFERENCES_ACTION_RESTORE_FROM_BACKUP" - "PREFERENCES_ACTION_SAVE_PREFERENCESS" - "PREFERENCES_ACTION_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PreferencesAction_entries[] = { - { {PreferencesAction_names + 0, 31}, 4 }, - { {PreferencesAction_names + 31, 58}, 11 }, - { {PreferencesAction_names + 89, 57}, 10 }, - { {PreferencesAction_names + 146, 59}, 9 }, - { {PreferencesAction_names + 205, 51}, 8 }, - { {PreferencesAction_names + 256, 42}, 6 }, - { {PreferencesAction_names + 298, 35}, 2 }, - { {PreferencesAction_names + 333, 47}, 7 }, - { {PreferencesAction_names + 380, 28}, 1 }, - { {PreferencesAction_names + 408, 38}, 5 }, - { {PreferencesAction_names + 446, 36}, 3 }, - { {PreferencesAction_names + 482, 26}, 0 }, +static const ::google::protobuf::internal::EnumEntry PreferencesAction_entries[] = { + {{&PreferencesAction_names[0], 31}, 4}, + {{&PreferencesAction_names[31], 58}, 11}, + {{&PreferencesAction_names[89], 57}, 10}, + {{&PreferencesAction_names[146], 59}, 9}, + {{&PreferencesAction_names[205], 51}, 8}, + {{&PreferencesAction_names[256], 42}, 6}, + {{&PreferencesAction_names[298], 35}, 2}, + {{&PreferencesAction_names[333], 47}, 7}, + {{&PreferencesAction_names[380], 28}, 1}, + {{&PreferencesAction_names[408], 38}, 5}, + {{&PreferencesAction_names[446], 36}, 3}, + {{&PreferencesAction_names[482], 26}, 0}, }; static const int PreferencesAction_entries_by_number[] = { - 11, // 0 -> PREFERENCES_ACTION_UNKNOWN - 8, // 1 -> PREFERENCES_ACTION_NO_ACTION - 6, // 2 -> PREFERENCES_ACTION_LOAD_PREFERENCES - 10, // 3 -> PREFERENCES_ACTION_SAVE_PREFERENCESS - 0, // 4 -> PREFERENCES_ACTION_ATTEMPT_LOAD - 9, // 5 -> PREFERENCES_ACTION_RESTORE_FROM_BACKUP - 5, // 6 -> PREFERENCES_ACTION_CREATE_PREFERENCES_PATH - 7, // 7 -> PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE - 4, // 8 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS - 3, // 9 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS - 2, // 10 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED - 1, // 11 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS + 11, // 0 -> PREFERENCES_ACTION_UNKNOWN + 8, // 1 -> PREFERENCES_ACTION_NO_ACTION + 6, // 2 -> PREFERENCES_ACTION_LOAD_PREFERENCES + 10, // 3 -> PREFERENCES_ACTION_SAVE_PREFERENCESS + 0, // 4 -> PREFERENCES_ACTION_ATTEMPT_LOAD + 9, // 5 -> PREFERENCES_ACTION_RESTORE_FROM_BACKUP + 5, // 6 -> PREFERENCES_ACTION_CREATE_PREFERENCES_PATH + 7, // 7 -> PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE + 4, // 8 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS + 3, // 9 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS + 2, // 10 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED + 1, // 11 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS }; -const std::string& PreferencesAction_Name( - PreferencesAction value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PreferencesAction_entries, - PreferencesAction_entries_by_number, - 12, PreferencesAction_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PreferencesAction_entries, - PreferencesAction_entries_by_number, - 12, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PreferencesAction_strings[idx].get(); +const ::std::string& PreferencesAction_Name(PreferencesAction value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PreferencesAction_entries, PreferencesAction_entries_by_number, 12, + PreferencesAction_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PreferencesAction_entries, + PreferencesAction_entries_by_number, + 12, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PreferencesAction_strings[idx].get(); } -bool PreferencesAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesAction* value) { + +bool PreferencesAction_Parse(::absl::string_view name, PreferencesAction* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PreferencesAction_entries, 12, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PreferencesActionStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PreferencesActionStatus_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PreferencesActionStatus_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PreferencesActionStatus_strings[3] = {}; +static const char PreferencesActionStatus_names[] = { + "PREFERENCES_ACTION_STATUS_FAIL" + "PREFERENCES_ACTION_STATUS_SUCCESS" + "PREFERENCES_ACTION_STATUS_UNKNOWN" +}; -static const char PreferencesActionStatus_names[] = - "PREFERENCES_ACTION_STATUS_FAIL" - "PREFERENCES_ACTION_STATUS_SUCCESS" - "PREFERENCES_ACTION_STATUS_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PreferencesActionStatus_entries[] = { - { {PreferencesActionStatus_names + 0, 30}, 2 }, - { {PreferencesActionStatus_names + 30, 33}, 1 }, - { {PreferencesActionStatus_names + 63, 33}, 0 }, +static const ::google::protobuf::internal::EnumEntry PreferencesActionStatus_entries[] = { + {{&PreferencesActionStatus_names[0], 30}, 2}, + {{&PreferencesActionStatus_names[30], 33}, 1}, + {{&PreferencesActionStatus_names[63], 33}, 0}, }; static const int PreferencesActionStatus_entries_by_number[] = { - 2, // 0 -> PREFERENCES_ACTION_STATUS_UNKNOWN - 1, // 1 -> PREFERENCES_ACTION_STATUS_SUCCESS - 0, // 2 -> PREFERENCES_ACTION_STATUS_FAIL + 2, // 0 -> PREFERENCES_ACTION_STATUS_UNKNOWN + 1, // 1 -> PREFERENCES_ACTION_STATUS_SUCCESS + 0, // 2 -> PREFERENCES_ACTION_STATUS_FAIL }; -const std::string& PreferencesActionStatus_Name( - PreferencesActionStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PreferencesActionStatus_entries, - PreferencesActionStatus_entries_by_number, - 3, PreferencesActionStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PreferencesActionStatus_entries, - PreferencesActionStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PreferencesActionStatus_strings[idx].get(); +const ::std::string& PreferencesActionStatus_Name(PreferencesActionStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PreferencesActionStatus_entries, PreferencesActionStatus_entries_by_number, 3, + PreferencesActionStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PreferencesActionStatus_entries, + PreferencesActionStatus_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PreferencesActionStatus_strings[idx].get(); } -bool PreferencesActionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesActionStatus* value) { + +bool PreferencesActionStatus_Parse(::absl::string_view name, PreferencesActionStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PreferencesActionStatus_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool FastInitState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t FastInitState_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + FastInitState_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastInitState_strings[4] = {}; +static const char FastInitState_names[] = { + "FAST_INIT_CLOSE_STATE" + "FAST_INIT_FAR_STATE" + "FAST_INIT_LOST_STATE" + "FAST_INIT_UNKNOWN_STATE" +}; -static const char FastInitState_names[] = - "FAST_INIT_CLOSE_STATE" - "FAST_INIT_FAR_STATE" - "FAST_INIT_LOST_STATE" - "FAST_INIT_UNKNOWN_STATE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastInitState_entries[] = { - { {FastInitState_names + 0, 21}, 1 }, - { {FastInitState_names + 21, 19}, 2 }, - { {FastInitState_names + 40, 20}, 3 }, - { {FastInitState_names + 60, 23}, 0 }, +static const ::google::protobuf::internal::EnumEntry FastInitState_entries[] = { + {{&FastInitState_names[0], 21}, 1}, + {{&FastInitState_names[21], 19}, 2}, + {{&FastInitState_names[40], 20}, 3}, + {{&FastInitState_names[60], 23}, 0}, }; static const int FastInitState_entries_by_number[] = { - 3, // 0 -> FAST_INIT_UNKNOWN_STATE - 0, // 1 -> FAST_INIT_CLOSE_STATE - 1, // 2 -> FAST_INIT_FAR_STATE - 2, // 3 -> FAST_INIT_LOST_STATE + 3, // 0 -> FAST_INIT_UNKNOWN_STATE + 0, // 1 -> FAST_INIT_CLOSE_STATE + 1, // 2 -> FAST_INIT_FAR_STATE + 2, // 3 -> FAST_INIT_LOST_STATE }; -const std::string& FastInitState_Name( - FastInitState value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastInitState_entries, - FastInitState_entries_by_number, - 4, FastInitState_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastInitState_entries, - FastInitState_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastInitState_strings[idx].get(); +const ::std::string& FastInitState_Name(FastInitState value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + FastInitState_entries, FastInitState_entries_by_number, 4, + FastInitState_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(FastInitState_entries, + FastInitState_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FastInitState_strings[idx].get(); } -bool FastInitState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastInitState* value) { + +bool FastInitState_Parse(::absl::string_view name, FastInitState* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( FastInitState_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool FastInitType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t FastInitType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + FastInitType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastInitType_strings[3] = {}; +static const char FastInitType_names[] = { + "FAST_INIT_NOTIFY_TYPE" + "FAST_INIT_SILENT_TYPE" + "FAST_INIT_UNKNOWN_TYPE" +}; -static const char FastInitType_names[] = - "FAST_INIT_NOTIFY_TYPE" - "FAST_INIT_SILENT_TYPE" - "FAST_INIT_UNKNOWN_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastInitType_entries[] = { - { {FastInitType_names + 0, 21}, 1 }, - { {FastInitType_names + 21, 21}, 2 }, - { {FastInitType_names + 42, 22}, 0 }, +static const ::google::protobuf::internal::EnumEntry FastInitType_entries[] = { + {{&FastInitType_names[0], 21}, 1}, + {{&FastInitType_names[21], 21}, 2}, + {{&FastInitType_names[42], 22}, 0}, }; static const int FastInitType_entries_by_number[] = { - 2, // 0 -> FAST_INIT_UNKNOWN_TYPE - 0, // 1 -> FAST_INIT_NOTIFY_TYPE - 1, // 2 -> FAST_INIT_SILENT_TYPE + 2, // 0 -> FAST_INIT_UNKNOWN_TYPE + 0, // 1 -> FAST_INIT_NOTIFY_TYPE + 1, // 2 -> FAST_INIT_SILENT_TYPE }; -const std::string& FastInitType_Name( - FastInitType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastInitType_entries, - FastInitType_entries_by_number, - 3, FastInitType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastInitType_entries, - FastInitType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastInitType_strings[idx].get(); +const ::std::string& FastInitType_Name(FastInitType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + FastInitType_entries, FastInitType_entries_by_number, 3, + FastInitType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(FastInitType_entries, + FastInitType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FastInitType_strings[idx].get(); } -bool FastInitType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastInitType* value) { + +bool FastInitType_Parse(::absl::string_view name, FastInitType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( FastInitType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DesktopNotification_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DesktopNotification_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DesktopNotification_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DesktopNotification_strings[6] = {}; +static const char DesktopNotification_names[] = { + "DESKTOP_NOTIFICATION_ACCEPT" + "DESKTOP_NOTIFICATION_CONNECTING" + "DESKTOP_NOTIFICATION_ERROR" + "DESKTOP_NOTIFICATION_PROGRESS" + "DESKTOP_NOTIFICATION_RECEIVED" + "DESKTOP_NOTIFICATION_UNKNOWN" +}; -static const char DesktopNotification_names[] = - "DESKTOP_NOTIFICATION_ACCEPT" - "DESKTOP_NOTIFICATION_CONNECTING" - "DESKTOP_NOTIFICATION_ERROR" - "DESKTOP_NOTIFICATION_PROGRESS" - "DESKTOP_NOTIFICATION_RECEIVED" - "DESKTOP_NOTIFICATION_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DesktopNotification_entries[] = { - { {DesktopNotification_names + 0, 27}, 3 }, - { {DesktopNotification_names + 27, 31}, 1 }, - { {DesktopNotification_names + 58, 26}, 5 }, - { {DesktopNotification_names + 84, 29}, 2 }, - { {DesktopNotification_names + 113, 29}, 4 }, - { {DesktopNotification_names + 142, 28}, 0 }, +static const ::google::protobuf::internal::EnumEntry DesktopNotification_entries[] = { + {{&DesktopNotification_names[0], 27}, 3}, + {{&DesktopNotification_names[27], 31}, 1}, + {{&DesktopNotification_names[58], 26}, 5}, + {{&DesktopNotification_names[84], 29}, 2}, + {{&DesktopNotification_names[113], 29}, 4}, + {{&DesktopNotification_names[142], 28}, 0}, }; static const int DesktopNotification_entries_by_number[] = { - 5, // 0 -> DESKTOP_NOTIFICATION_UNKNOWN - 1, // 1 -> DESKTOP_NOTIFICATION_CONNECTING - 3, // 2 -> DESKTOP_NOTIFICATION_PROGRESS - 0, // 3 -> DESKTOP_NOTIFICATION_ACCEPT - 4, // 4 -> DESKTOP_NOTIFICATION_RECEIVED - 2, // 5 -> DESKTOP_NOTIFICATION_ERROR + 5, // 0 -> DESKTOP_NOTIFICATION_UNKNOWN + 1, // 1 -> DESKTOP_NOTIFICATION_CONNECTING + 3, // 2 -> DESKTOP_NOTIFICATION_PROGRESS + 0, // 3 -> DESKTOP_NOTIFICATION_ACCEPT + 4, // 4 -> DESKTOP_NOTIFICATION_RECEIVED + 2, // 5 -> DESKTOP_NOTIFICATION_ERROR }; -const std::string& DesktopNotification_Name( - DesktopNotification value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DesktopNotification_entries, - DesktopNotification_entries_by_number, - 6, DesktopNotification_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DesktopNotification_entries, - DesktopNotification_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DesktopNotification_strings[idx].get(); +const ::std::string& DesktopNotification_Name(DesktopNotification value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DesktopNotification_entries, DesktopNotification_entries_by_number, 6, + DesktopNotification_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DesktopNotification_entries, + DesktopNotification_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DesktopNotification_strings[idx].get(); } -bool DesktopNotification_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DesktopNotification* value) { + +bool DesktopNotification_Parse(::absl::string_view name, DesktopNotification* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DesktopNotification_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DesktopTransferEventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DesktopTransferEventType_internal_data_[] = { + 655360u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DesktopTransferEventType_strings[10] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DesktopTransferEventType_strings[10] = {}; +static const char DesktopTransferEventType_names[] = { + "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ACCEPT" + "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ERROR" + "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_PROGRESS" + "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_RECEIVED" + "DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR" + "DESKTOP_TRANSFER_EVENT_SEND_TYPE_PROGRESS" + "DESKTOP_TRANSFER_EVENT_SEND_TYPE_SELECT_A_DEVICE" + "DESKTOP_TRANSFER_EVENT_SEND_TYPE_SENT" + "DESKTOP_TRANSFER_EVENT_SEND_TYPE_START" + "DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN" +}; -static const char DesktopTransferEventType_names[] = - "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ACCEPT" - "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ERROR" - "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_PROGRESS" - "DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_RECEIVED" - "DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR" - "DESKTOP_TRANSFER_EVENT_SEND_TYPE_PROGRESS" - "DESKTOP_TRANSFER_EVENT_SEND_TYPE_SELECT_A_DEVICE" - "DESKTOP_TRANSFER_EVENT_SEND_TYPE_SENT" - "DESKTOP_TRANSFER_EVENT_SEND_TYPE_START" - "DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DesktopTransferEventType_entries[] = { - { {DesktopTransferEventType_names + 0, 42}, 1 }, - { {DesktopTransferEventType_names + 42, 41}, 4 }, - { {DesktopTransferEventType_names + 83, 44}, 2 }, - { {DesktopTransferEventType_names + 127, 44}, 3 }, - { {DesktopTransferEventType_names + 171, 38}, 9 }, - { {DesktopTransferEventType_names + 209, 41}, 7 }, - { {DesktopTransferEventType_names + 250, 48}, 6 }, - { {DesktopTransferEventType_names + 298, 37}, 8 }, - { {DesktopTransferEventType_names + 335, 38}, 5 }, - { {DesktopTransferEventType_names + 373, 35}, 0 }, +static const ::google::protobuf::internal::EnumEntry DesktopTransferEventType_entries[] = { + {{&DesktopTransferEventType_names[0], 42}, 1}, + {{&DesktopTransferEventType_names[42], 41}, 4}, + {{&DesktopTransferEventType_names[83], 44}, 2}, + {{&DesktopTransferEventType_names[127], 44}, 3}, + {{&DesktopTransferEventType_names[171], 38}, 9}, + {{&DesktopTransferEventType_names[209], 41}, 7}, + {{&DesktopTransferEventType_names[250], 48}, 6}, + {{&DesktopTransferEventType_names[298], 37}, 8}, + {{&DesktopTransferEventType_names[335], 38}, 5}, + {{&DesktopTransferEventType_names[373], 35}, 0}, }; static const int DesktopTransferEventType_entries_by_number[] = { - 9, // 0 -> DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN - 0, // 1 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ACCEPT - 2, // 2 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_PROGRESS - 3, // 3 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_RECEIVED - 1, // 4 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ERROR - 8, // 5 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_START - 6, // 6 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_SELECT_A_DEVICE - 5, // 7 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_PROGRESS - 7, // 8 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_SENT - 4, // 9 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR + 9, // 0 -> DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN + 0, // 1 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ACCEPT + 2, // 2 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_PROGRESS + 3, // 3 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_RECEIVED + 1, // 4 -> DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ERROR + 8, // 5 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_START + 6, // 6 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_SELECT_A_DEVICE + 5, // 7 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_PROGRESS + 7, // 8 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_SENT + 4, // 9 -> DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR }; -const std::string& DesktopTransferEventType_Name( - DesktopTransferEventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DesktopTransferEventType_entries, - DesktopTransferEventType_entries_by_number, - 10, DesktopTransferEventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DesktopTransferEventType_entries, - DesktopTransferEventType_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DesktopTransferEventType_strings[idx].get(); +const ::std::string& DesktopTransferEventType_Name(DesktopTransferEventType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DesktopTransferEventType_entries, DesktopTransferEventType_entries_by_number, 10, + DesktopTransferEventType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DesktopTransferEventType_entries, + DesktopTransferEventType_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DesktopTransferEventType_strings[idx].get(); } -bool DesktopTransferEventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DesktopTransferEventType* value) { + +bool DesktopTransferEventType_Parse(::absl::string_view name, DesktopTransferEventType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DesktopTransferEventType_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DecryptCertificateFailureStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DecryptCertificateFailureStatus_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DecryptCertificateFailureStatus_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DecryptCertificateFailureStatus_strings[7] = {}; +static const char DecryptCertificateFailureStatus_names[] = { + "DECRYPT_CERT_BAD_PADDING_FAILURE" + "DECRYPT_CERT_ILLEGAL_BLOCK_SIZE_FAILURE" + "DECRYPT_CERT_INVALID_ALGORITHM_PARAMETER_FAILURE" + "DECRYPT_CERT_INVALID_KEY_FAILURE" + "DECRYPT_CERT_NO_SUCH_ALGORITHM_FAILURE" + "DECRYPT_CERT_NO_SUCH_PADDING_FAILURE" + "DECRYPT_CERT_UNKNOWN_FAILURE" +}; -static const char DecryptCertificateFailureStatus_names[] = - "DECRYPT_CERT_BAD_PADDING_FAILURE" - "DECRYPT_CERT_ILLEGAL_BLOCK_SIZE_FAILURE" - "DECRYPT_CERT_INVALID_ALGORITHM_PARAMETER_FAILURE" - "DECRYPT_CERT_INVALID_KEY_FAILURE" - "DECRYPT_CERT_NO_SUCH_ALGORITHM_FAILURE" - "DECRYPT_CERT_NO_SUCH_PADDING_FAILURE" - "DECRYPT_CERT_UNKNOWN_FAILURE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DecryptCertificateFailureStatus_entries[] = { - { {DecryptCertificateFailureStatus_names + 0, 32}, 6 }, - { {DecryptCertificateFailureStatus_names + 32, 39}, 5 }, - { {DecryptCertificateFailureStatus_names + 71, 48}, 4 }, - { {DecryptCertificateFailureStatus_names + 119, 32}, 3 }, - { {DecryptCertificateFailureStatus_names + 151, 38}, 1 }, - { {DecryptCertificateFailureStatus_names + 189, 36}, 2 }, - { {DecryptCertificateFailureStatus_names + 225, 28}, 0 }, +static const ::google::protobuf::internal::EnumEntry DecryptCertificateFailureStatus_entries[] = { + {{&DecryptCertificateFailureStatus_names[0], 32}, 6}, + {{&DecryptCertificateFailureStatus_names[32], 39}, 5}, + {{&DecryptCertificateFailureStatus_names[71], 48}, 4}, + {{&DecryptCertificateFailureStatus_names[119], 32}, 3}, + {{&DecryptCertificateFailureStatus_names[151], 38}, 1}, + {{&DecryptCertificateFailureStatus_names[189], 36}, 2}, + {{&DecryptCertificateFailureStatus_names[225], 28}, 0}, }; static const int DecryptCertificateFailureStatus_entries_by_number[] = { - 6, // 0 -> DECRYPT_CERT_UNKNOWN_FAILURE - 4, // 1 -> DECRYPT_CERT_NO_SUCH_ALGORITHM_FAILURE - 5, // 2 -> DECRYPT_CERT_NO_SUCH_PADDING_FAILURE - 3, // 3 -> DECRYPT_CERT_INVALID_KEY_FAILURE - 2, // 4 -> DECRYPT_CERT_INVALID_ALGORITHM_PARAMETER_FAILURE - 1, // 5 -> DECRYPT_CERT_ILLEGAL_BLOCK_SIZE_FAILURE - 0, // 6 -> DECRYPT_CERT_BAD_PADDING_FAILURE + 6, // 0 -> DECRYPT_CERT_UNKNOWN_FAILURE + 4, // 1 -> DECRYPT_CERT_NO_SUCH_ALGORITHM_FAILURE + 5, // 2 -> DECRYPT_CERT_NO_SUCH_PADDING_FAILURE + 3, // 3 -> DECRYPT_CERT_INVALID_KEY_FAILURE + 2, // 4 -> DECRYPT_CERT_INVALID_ALGORITHM_PARAMETER_FAILURE + 1, // 5 -> DECRYPT_CERT_ILLEGAL_BLOCK_SIZE_FAILURE + 0, // 6 -> DECRYPT_CERT_BAD_PADDING_FAILURE }; -const std::string& DecryptCertificateFailureStatus_Name( - DecryptCertificateFailureStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DecryptCertificateFailureStatus_entries, - DecryptCertificateFailureStatus_entries_by_number, - 7, DecryptCertificateFailureStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DecryptCertificateFailureStatus_entries, - DecryptCertificateFailureStatus_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DecryptCertificateFailureStatus_strings[idx].get(); +const ::std::string& DecryptCertificateFailureStatus_Name(DecryptCertificateFailureStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DecryptCertificateFailureStatus_entries, DecryptCertificateFailureStatus_entries_by_number, 7, + DecryptCertificateFailureStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DecryptCertificateFailureStatus_entries, + DecryptCertificateFailureStatus_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DecryptCertificateFailureStatus_strings[idx].get(); } -bool DecryptCertificateFailureStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DecryptCertificateFailureStatus* value) { + +bool DecryptCertificateFailureStatus_Parse(::absl::string_view name, DecryptCertificateFailureStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DecryptCertificateFailureStatus_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ContactAccess_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ContactAccess_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ContactAccess_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ContactAccess_strings[5] = {}; +static const char ContactAccess_names[] = { + "CONTACT_ACCESS_NO_CONTACT_UPLOADED" + "CONTACT_ACCESS_ONLY_UPLOAD_GOOGLE_CONTACT" + "CONTACT_ACCESS_UNKNOWN" + "CONTACT_ACCESS_UPLOAD_CONTACT_FOR_DEVICE_CONTACT_CONSENT" + "CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT" +}; -static const char ContactAccess_names[] = - "CONTACT_ACCESS_NO_CONTACT_UPLOADED" - "CONTACT_ACCESS_ONLY_UPLOAD_GOOGLE_CONTACT" - "CONTACT_ACCESS_UNKNOWN" - "CONTACT_ACCESS_UPLOAD_CONTACT_FOR_DEVICE_CONTACT_CONSENT" - "CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ContactAccess_entries[] = { - { {ContactAccess_names + 0, 34}, 1 }, - { {ContactAccess_names + 34, 41}, 2 }, - { {ContactAccess_names + 75, 22}, 0 }, - { {ContactAccess_names + 97, 56}, 3 }, - { {ContactAccess_names + 153, 53}, 4 }, +static const ::google::protobuf::internal::EnumEntry ContactAccess_entries[] = { + {{&ContactAccess_names[0], 34}, 1}, + {{&ContactAccess_names[34], 41}, 2}, + {{&ContactAccess_names[75], 22}, 0}, + {{&ContactAccess_names[97], 56}, 3}, + {{&ContactAccess_names[153], 53}, 4}, }; static const int ContactAccess_entries_by_number[] = { - 2, // 0 -> CONTACT_ACCESS_UNKNOWN - 0, // 1 -> CONTACT_ACCESS_NO_CONTACT_UPLOADED - 1, // 2 -> CONTACT_ACCESS_ONLY_UPLOAD_GOOGLE_CONTACT - 3, // 3 -> CONTACT_ACCESS_UPLOAD_CONTACT_FOR_DEVICE_CONTACT_CONSENT - 4, // 4 -> CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT + 2, // 0 -> CONTACT_ACCESS_UNKNOWN + 0, // 1 -> CONTACT_ACCESS_NO_CONTACT_UPLOADED + 1, // 2 -> CONTACT_ACCESS_ONLY_UPLOAD_GOOGLE_CONTACT + 3, // 3 -> CONTACT_ACCESS_UPLOAD_CONTACT_FOR_DEVICE_CONTACT_CONSENT + 4, // 4 -> CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT }; -const std::string& ContactAccess_Name( - ContactAccess value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ContactAccess_entries, - ContactAccess_entries_by_number, - 5, ContactAccess_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ContactAccess_entries, - ContactAccess_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ContactAccess_strings[idx].get(); +const ::std::string& ContactAccess_Name(ContactAccess value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ContactAccess_entries, ContactAccess_entries_by_number, 5, + ContactAccess_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ContactAccess_entries, + ContactAccess_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContactAccess_strings[idx].get(); } -bool ContactAccess_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ContactAccess* value) { + +bool ContactAccess_Parse(::absl::string_view name, ContactAccess* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ContactAccess_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool IdentityVerification_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t IdentityVerification_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + IdentityVerification_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed IdentityVerification_strings[4] = {}; +static const char IdentityVerification_names[] = { + "IDENTITY_VERIFICATION_NO_PHONE_NUMBER_VERIFIED" + "IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA" + "IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_NOT_LINKED_TO_GAIA" + "IDENTITY_VERIFICATION_UNKNOWN" +}; -static const char IdentityVerification_names[] = - "IDENTITY_VERIFICATION_NO_PHONE_NUMBER_VERIFIED" - "IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA" - "IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_NOT_LINKED_TO_GAIA" - "IDENTITY_VERIFICATION_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry IdentityVerification_entries[] = { - { {IdentityVerification_names + 0, 46}, 1 }, - { {IdentityVerification_names + 46, 61}, 3 }, - { {IdentityVerification_names + 107, 62}, 2 }, - { {IdentityVerification_names + 169, 29}, 0 }, +static const ::google::protobuf::internal::EnumEntry IdentityVerification_entries[] = { + {{&IdentityVerification_names[0], 46}, 1}, + {{&IdentityVerification_names[46], 61}, 3}, + {{&IdentityVerification_names[107], 62}, 2}, + {{&IdentityVerification_names[169], 29}, 0}, }; static const int IdentityVerification_entries_by_number[] = { - 3, // 0 -> IDENTITY_VERIFICATION_UNKNOWN - 0, // 1 -> IDENTITY_VERIFICATION_NO_PHONE_NUMBER_VERIFIED - 2, // 2 -> IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_NOT_LINKED_TO_GAIA - 1, // 3 -> IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA + 3, // 0 -> IDENTITY_VERIFICATION_UNKNOWN + 0, // 1 -> IDENTITY_VERIFICATION_NO_PHONE_NUMBER_VERIFIED + 2, // 2 -> IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_NOT_LINKED_TO_GAIA + 1, // 3 -> IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA }; -const std::string& IdentityVerification_Name( - IdentityVerification value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - IdentityVerification_entries, - IdentityVerification_entries_by_number, - 4, IdentityVerification_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - IdentityVerification_entries, - IdentityVerification_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - IdentityVerification_strings[idx].get(); +const ::std::string& IdentityVerification_Name(IdentityVerification value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + IdentityVerification_entries, IdentityVerification_entries_by_number, 4, + IdentityVerification_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(IdentityVerification_entries, + IdentityVerification_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : IdentityVerification_strings[idx].get(); } -bool IdentityVerification_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IdentityVerification* value) { + +bool IdentityVerification_Parse(::absl::string_view name, IdentityVerification* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( IdentityVerification_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool ButtonStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t ButtonStatus_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + ButtonStatus_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ButtonStatus_strings[4] = {}; +static const char ButtonStatus_names[] = { + "BUTTON_STATUS_CLICK_ACCEPT" + "BUTTON_STATUS_CLICK_REJECT" + "BUTTON_STATUS_IGNORE" + "BUTTON_STATUS_UNKNOWN" +}; -static const char ButtonStatus_names[] = - "BUTTON_STATUS_CLICK_ACCEPT" - "BUTTON_STATUS_CLICK_REJECT" - "BUTTON_STATUS_IGNORE" - "BUTTON_STATUS_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ButtonStatus_entries[] = { - { {ButtonStatus_names + 0, 26}, 1 }, - { {ButtonStatus_names + 26, 26}, 2 }, - { {ButtonStatus_names + 52, 20}, 3 }, - { {ButtonStatus_names + 72, 21}, 0 }, +static const ::google::protobuf::internal::EnumEntry ButtonStatus_entries[] = { + {{&ButtonStatus_names[0], 26}, 1}, + {{&ButtonStatus_names[26], 26}, 2}, + {{&ButtonStatus_names[52], 20}, 3}, + {{&ButtonStatus_names[72], 21}, 0}, }; static const int ButtonStatus_entries_by_number[] = { - 3, // 0 -> BUTTON_STATUS_UNKNOWN - 0, // 1 -> BUTTON_STATUS_CLICK_ACCEPT - 1, // 2 -> BUTTON_STATUS_CLICK_REJECT - 2, // 3 -> BUTTON_STATUS_IGNORE + 3, // 0 -> BUTTON_STATUS_UNKNOWN + 0, // 1 -> BUTTON_STATUS_CLICK_ACCEPT + 1, // 2 -> BUTTON_STATUS_CLICK_REJECT + 2, // 3 -> BUTTON_STATUS_IGNORE }; -const std::string& ButtonStatus_Name( - ButtonStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ButtonStatus_entries, - ButtonStatus_entries_by_number, - 4, ButtonStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ButtonStatus_entries, - ButtonStatus_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ButtonStatus_strings[idx].get(); +const ::std::string& ButtonStatus_Name(ButtonStatus value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + ButtonStatus_entries, ButtonStatus_entries_by_number, 4, + ButtonStatus_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(ButtonStatus_entries, + ButtonStatus_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ButtonStatus_strings[idx].get(); } -bool ButtonStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButtonStatus* value) { + +bool ButtonStatus_Parse(::absl::string_view name, ButtonStatus* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( ButtonStatus_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool CloudCreateSharingResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t CloudCreateSharingResult_internal_data_[] = { + 720896u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + CloudCreateSharingResult_strings[11] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CloudCreateSharingResult_strings[10] = {}; +static const char CloudCreateSharingResult_names[] = { + "CLOUD_CREATE_SHARING_RESULT_ALREADY_EXIST" + "CLOUD_CREATE_SHARING_RESULT_ALREADY_STARTED" + "CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_COUNT" + "CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE" + "CLOUD_CREATE_SHARING_RESULT_INVALID_ARGUMENT" + "CLOUD_CREATE_SHARING_RESULT_NETWORK_ERROR" + "CLOUD_CREATE_SHARING_RESULT_REMOTE_ERROR" + "CLOUD_CREATE_SHARING_RESULT_SIGN_IN_REQUIRE" + "CLOUD_CREATE_SHARING_RESULT_SUCCESS" + "CLOUD_CREATE_SHARING_RESULT_SUCCESS_NO_NOTIFICATION" + "CLOUD_CREATE_SHARING_RESULT_UNKNOWN" +}; -static const char CloudCreateSharingResult_names[] = - "CLOUD_CREATE_SHARING_RESULT_ALREADY_EXIST" - "CLOUD_CREATE_SHARING_RESULT_ALREADY_STARTED" - "CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_COUNT" - "CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE" - "CLOUD_CREATE_SHARING_RESULT_INVALID_ARGUMENT" - "CLOUD_CREATE_SHARING_RESULT_NETWORK_ERROR" - "CLOUD_CREATE_SHARING_RESULT_REMOTE_ERROR" - "CLOUD_CREATE_SHARING_RESULT_SIGN_IN_REQUIRE" - "CLOUD_CREATE_SHARING_RESULT_SUCCESS" - "CLOUD_CREATE_SHARING_RESULT_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CloudCreateSharingResult_entries[] = { - { {CloudCreateSharingResult_names + 0, 41}, 3 }, - { {CloudCreateSharingResult_names + 41, 43}, 4 }, - { {CloudCreateSharingResult_names + 84, 51}, 8 }, - { {CloudCreateSharingResult_names + 135, 50}, 9 }, - { {CloudCreateSharingResult_names + 185, 44}, 6 }, - { {CloudCreateSharingResult_names + 229, 41}, 5 }, - { {CloudCreateSharingResult_names + 270, 40}, 7 }, - { {CloudCreateSharingResult_names + 310, 43}, 2 }, - { {CloudCreateSharingResult_names + 353, 35}, 1 }, - { {CloudCreateSharingResult_names + 388, 35}, 0 }, +static const ::google::protobuf::internal::EnumEntry CloudCreateSharingResult_entries[] = { + {{&CloudCreateSharingResult_names[0], 41}, 3}, + {{&CloudCreateSharingResult_names[41], 43}, 4}, + {{&CloudCreateSharingResult_names[84], 51}, 8}, + {{&CloudCreateSharingResult_names[135], 50}, 9}, + {{&CloudCreateSharingResult_names[185], 44}, 6}, + {{&CloudCreateSharingResult_names[229], 41}, 5}, + {{&CloudCreateSharingResult_names[270], 40}, 7}, + {{&CloudCreateSharingResult_names[310], 43}, 2}, + {{&CloudCreateSharingResult_names[353], 35}, 1}, + {{&CloudCreateSharingResult_names[388], 51}, 10}, + {{&CloudCreateSharingResult_names[439], 35}, 0}, }; static const int CloudCreateSharingResult_entries_by_number[] = { - 9, // 0 -> CLOUD_CREATE_SHARING_RESULT_UNKNOWN - 8, // 1 -> CLOUD_CREATE_SHARING_RESULT_SUCCESS - 7, // 2 -> CLOUD_CREATE_SHARING_RESULT_SIGN_IN_REQUIRE - 0, // 3 -> CLOUD_CREATE_SHARING_RESULT_ALREADY_EXIST - 1, // 4 -> CLOUD_CREATE_SHARING_RESULT_ALREADY_STARTED - 5, // 5 -> CLOUD_CREATE_SHARING_RESULT_NETWORK_ERROR - 4, // 6 -> CLOUD_CREATE_SHARING_RESULT_INVALID_ARGUMENT - 6, // 7 -> CLOUD_CREATE_SHARING_RESULT_REMOTE_ERROR - 2, // 8 -> CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_COUNT - 3, // 9 -> CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE + 10, // 0 -> CLOUD_CREATE_SHARING_RESULT_UNKNOWN + 8, // 1 -> CLOUD_CREATE_SHARING_RESULT_SUCCESS + 7, // 2 -> CLOUD_CREATE_SHARING_RESULT_SIGN_IN_REQUIRE + 0, // 3 -> CLOUD_CREATE_SHARING_RESULT_ALREADY_EXIST + 1, // 4 -> CLOUD_CREATE_SHARING_RESULT_ALREADY_STARTED + 5, // 5 -> CLOUD_CREATE_SHARING_RESULT_NETWORK_ERROR + 4, // 6 -> CLOUD_CREATE_SHARING_RESULT_INVALID_ARGUMENT + 6, // 7 -> CLOUD_CREATE_SHARING_RESULT_REMOTE_ERROR + 2, // 8 -> CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_COUNT + 3, // 9 -> CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE + 9, // 10 -> CLOUD_CREATE_SHARING_RESULT_SUCCESS_NO_NOTIFICATION }; -const std::string& CloudCreateSharingResult_Name( - CloudCreateSharingResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - CloudCreateSharingResult_entries, - CloudCreateSharingResult_entries_by_number, - 10, CloudCreateSharingResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - CloudCreateSharingResult_entries, - CloudCreateSharingResult_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - CloudCreateSharingResult_strings[idx].get(); +const ::std::string& CloudCreateSharingResult_Name(CloudCreateSharingResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + CloudCreateSharingResult_entries, CloudCreateSharingResult_entries_by_number, 11, + CloudCreateSharingResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(CloudCreateSharingResult_entries, + CloudCreateSharingResult_entries_by_number, + 11, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CloudCreateSharingResult_strings[idx].get(); } -bool CloudCreateSharingResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudCreateSharingResult* value) { + +bool CloudCreateSharingResult_Parse(::absl::string_view name, CloudCreateSharingResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - CloudCreateSharingResult_entries, 10, name, &int_value); + bool success = ::google::protobuf::internal::LookUpEnumValue( + CloudCreateSharingResult_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool CloudRegisterReceiverResult_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t CloudRegisterReceiverResult_internal_data_[] = { + 1114112u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + CloudRegisterReceiverResult_strings[17] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CloudRegisterReceiverResult_strings[17] = {}; +static const char CloudRegisterReceiverResult_names[] = { + "CLOUD_REGISTER_RECEIVER_RESULT_ABORTED" + "CLOUD_REGISTER_RECEIVER_RESULT_ALREADY_EXISTS" + "CLOUD_REGISTER_RECEIVER_RESULT_CANCELLED" + "CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS" + "CLOUD_REGISTER_RECEIVER_RESULT_DEADLINE_EXCEEDED" + "CLOUD_REGISTER_RECEIVER_RESULT_FAILED_PRECONDITION" + "CLOUD_REGISTER_RECEIVER_RESULT_INTERNAL" + "CLOUD_REGISTER_RECEIVER_RESULT_INVALID_ARGUMENT" + "CLOUD_REGISTER_RECEIVER_RESULT_NOT_FOUND" + "CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE" + "CLOUD_REGISTER_RECEIVER_RESULT_PERMISSION_DENIED" + "CLOUD_REGISTER_RECEIVER_RESULT_RESOURCE_EXHAUSTED" + "CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS" + "CLOUD_REGISTER_RECEIVER_RESULT_UNAUTHENTICATED" + "CLOUD_REGISTER_RECEIVER_RESULT_UNAVAILABLE" + "CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED" + "CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN" +}; -static const char CloudRegisterReceiverResult_names[] = - "CLOUD_REGISTER_RECEIVER_RESULT_ABORTED" - "CLOUD_REGISTER_RECEIVER_RESULT_ALREADY_EXISTS" - "CLOUD_REGISTER_RECEIVER_RESULT_CANCELLED" - "CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS" - "CLOUD_REGISTER_RECEIVER_RESULT_DEADLINE_EXCEEDED" - "CLOUD_REGISTER_RECEIVER_RESULT_FAILED_PRECONDITION" - "CLOUD_REGISTER_RECEIVER_RESULT_INTERNAL" - "CLOUD_REGISTER_RECEIVER_RESULT_INVALID_ARGUMENT" - "CLOUD_REGISTER_RECEIVER_RESULT_NOT_FOUND" - "CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE" - "CLOUD_REGISTER_RECEIVER_RESULT_PERMISSION_DENIED" - "CLOUD_REGISTER_RECEIVER_RESULT_RESOURCE_EXHAUSTED" - "CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS" - "CLOUD_REGISTER_RECEIVER_RESULT_UNAUTHENTICATED" - "CLOUD_REGISTER_RECEIVER_RESULT_UNAVAILABLE" - "CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED" - "CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CloudRegisterReceiverResult_entries[] = { - { {CloudRegisterReceiverResult_names + 0, 38}, 13 }, - { {CloudRegisterReceiverResult_names + 38, 45}, 9 }, - { {CloudRegisterReceiverResult_names + 83, 40}, 11 }, - { {CloudRegisterReceiverResult_names + 123, 40}, 16 }, - { {CloudRegisterReceiverResult_names + 163, 48}, 3 }, - { {CloudRegisterReceiverResult_names + 211, 50}, 12 }, - { {CloudRegisterReceiverResult_names + 261, 39}, 4 }, - { {CloudRegisterReceiverResult_names + 300, 47}, 2 }, - { {CloudRegisterReceiverResult_names + 347, 40}, 8 }, - { {CloudRegisterReceiverResult_names + 387, 43}, 14 }, - { {CloudRegisterReceiverResult_names + 430, 48}, 7 }, - { {CloudRegisterReceiverResult_names + 478, 49}, 5 }, - { {CloudRegisterReceiverResult_names + 527, 38}, 1 }, - { {CloudRegisterReceiverResult_names + 565, 46}, 10 }, - { {CloudRegisterReceiverResult_names + 611, 42}, 6 }, - { {CloudRegisterReceiverResult_names + 653, 44}, 15 }, - { {CloudRegisterReceiverResult_names + 697, 38}, 0 }, +static const ::google::protobuf::internal::EnumEntry CloudRegisterReceiverResult_entries[] = { + {{&CloudRegisterReceiverResult_names[0], 38}, 13}, + {{&CloudRegisterReceiverResult_names[38], 45}, 9}, + {{&CloudRegisterReceiverResult_names[83], 40}, 11}, + {{&CloudRegisterReceiverResult_names[123], 40}, 16}, + {{&CloudRegisterReceiverResult_names[163], 48}, 3}, + {{&CloudRegisterReceiverResult_names[211], 50}, 12}, + {{&CloudRegisterReceiverResult_names[261], 39}, 4}, + {{&CloudRegisterReceiverResult_names[300], 47}, 2}, + {{&CloudRegisterReceiverResult_names[347], 40}, 8}, + {{&CloudRegisterReceiverResult_names[387], 43}, 14}, + {{&CloudRegisterReceiverResult_names[430], 48}, 7}, + {{&CloudRegisterReceiverResult_names[478], 49}, 5}, + {{&CloudRegisterReceiverResult_names[527], 38}, 1}, + {{&CloudRegisterReceiverResult_names[565], 46}, 10}, + {{&CloudRegisterReceiverResult_names[611], 42}, 6}, + {{&CloudRegisterReceiverResult_names[653], 44}, 15}, + {{&CloudRegisterReceiverResult_names[697], 38}, 0}, }; static const int CloudRegisterReceiverResult_entries_by_number[] = { - 16, // 0 -> CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN - 12, // 1 -> CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS - 7, // 2 -> CLOUD_REGISTER_RECEIVER_RESULT_INVALID_ARGUMENT - 4, // 3 -> CLOUD_REGISTER_RECEIVER_RESULT_DEADLINE_EXCEEDED - 6, // 4 -> CLOUD_REGISTER_RECEIVER_RESULT_INTERNAL - 11, // 5 -> CLOUD_REGISTER_RECEIVER_RESULT_RESOURCE_EXHAUSTED - 14, // 6 -> CLOUD_REGISTER_RECEIVER_RESULT_UNAVAILABLE - 10, // 7 -> CLOUD_REGISTER_RECEIVER_RESULT_PERMISSION_DENIED - 8, // 8 -> CLOUD_REGISTER_RECEIVER_RESULT_NOT_FOUND - 1, // 9 -> CLOUD_REGISTER_RECEIVER_RESULT_ALREADY_EXISTS - 13, // 10 -> CLOUD_REGISTER_RECEIVER_RESULT_UNAUTHENTICATED - 2, // 11 -> CLOUD_REGISTER_RECEIVER_RESULT_CANCELLED - 5, // 12 -> CLOUD_REGISTER_RECEIVER_RESULT_FAILED_PRECONDITION - 0, // 13 -> CLOUD_REGISTER_RECEIVER_RESULT_ABORTED - 9, // 14 -> CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE - 15, // 15 -> CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED - 3, // 16 -> CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS + 16, // 0 -> CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN + 12, // 1 -> CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS + 7, // 2 -> CLOUD_REGISTER_RECEIVER_RESULT_INVALID_ARGUMENT + 4, // 3 -> CLOUD_REGISTER_RECEIVER_RESULT_DEADLINE_EXCEEDED + 6, // 4 -> CLOUD_REGISTER_RECEIVER_RESULT_INTERNAL + 11, // 5 -> CLOUD_REGISTER_RECEIVER_RESULT_RESOURCE_EXHAUSTED + 14, // 6 -> CLOUD_REGISTER_RECEIVER_RESULT_UNAVAILABLE + 10, // 7 -> CLOUD_REGISTER_RECEIVER_RESULT_PERMISSION_DENIED + 8, // 8 -> CLOUD_REGISTER_RECEIVER_RESULT_NOT_FOUND + 1, // 9 -> CLOUD_REGISTER_RECEIVER_RESULT_ALREADY_EXISTS + 13, // 10 -> CLOUD_REGISTER_RECEIVER_RESULT_UNAUTHENTICATED + 2, // 11 -> CLOUD_REGISTER_RECEIVER_RESULT_CANCELLED + 5, // 12 -> CLOUD_REGISTER_RECEIVER_RESULT_FAILED_PRECONDITION + 0, // 13 -> CLOUD_REGISTER_RECEIVER_RESULT_ABORTED + 9, // 14 -> CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE + 15, // 15 -> CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED + 3, // 16 -> CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS }; -const std::string& CloudRegisterReceiverResult_Name( - CloudRegisterReceiverResult value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - CloudRegisterReceiverResult_entries, - CloudRegisterReceiverResult_entries_by_number, - 17, CloudRegisterReceiverResult_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - CloudRegisterReceiverResult_entries, - CloudRegisterReceiverResult_entries_by_number, - 17, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - CloudRegisterReceiverResult_strings[idx].get(); +const ::std::string& CloudRegisterReceiverResult_Name(CloudRegisterReceiverResult value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + CloudRegisterReceiverResult_entries, CloudRegisterReceiverResult_entries_by_number, 17, + CloudRegisterReceiverResult_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(CloudRegisterReceiverResult_entries, + CloudRegisterReceiverResult_entries_by_number, + 17, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CloudRegisterReceiverResult_strings[idx].get(); } -bool CloudRegisterReceiverResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudRegisterReceiverResult* value) { + +bool CloudRegisterReceiverResult_Parse(::absl::string_view name, CloudRegisterReceiverResult* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( CloudRegisterReceiverResult_entries, 17, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool CloudActionType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t CloudActionType_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + CloudActionType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CloudActionType_strings[3] = {}; +static const char CloudActionType_names[] = { + "CLOUD_ACTION_TYPE_NORMAL" + "CLOUD_ACTION_TYPE_RETRY" + "CLOUD_ACTION_TYPE_UNKNOWN" +}; -static const char CloudActionType_names[] = - "CLOUD_ACTION_TYPE_NORMAL" - "CLOUD_ACTION_TYPE_RETRY" - "CLOUD_ACTION_TYPE_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CloudActionType_entries[] = { - { {CloudActionType_names + 0, 24}, 1 }, - { {CloudActionType_names + 24, 23}, 2 }, - { {CloudActionType_names + 47, 25}, 0 }, +static const ::google::protobuf::internal::EnumEntry CloudActionType_entries[] = { + {{&CloudActionType_names[0], 24}, 1}, + {{&CloudActionType_names[24], 23}, 2}, + {{&CloudActionType_names[47], 25}, 0}, }; static const int CloudActionType_entries_by_number[] = { - 2, // 0 -> CLOUD_ACTION_TYPE_UNKNOWN - 0, // 1 -> CLOUD_ACTION_TYPE_NORMAL - 1, // 2 -> CLOUD_ACTION_TYPE_RETRY + 2, // 0 -> CLOUD_ACTION_TYPE_UNKNOWN + 0, // 1 -> CLOUD_ACTION_TYPE_NORMAL + 1, // 2 -> CLOUD_ACTION_TYPE_RETRY }; -const std::string& CloudActionType_Name( - CloudActionType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - CloudActionType_entries, - CloudActionType_entries_by_number, - 3, CloudActionType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - CloudActionType_entries, - CloudActionType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - CloudActionType_strings[idx].get(); +const ::std::string& CloudActionType_Name(CloudActionType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + CloudActionType_entries, CloudActionType_entries_by_number, 3, + CloudActionType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(CloudActionType_entries, + CloudActionType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CloudActionType_strings[idx].get(); } -bool CloudActionType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudActionType* value) { + +bool CloudActionType_Parse(::absl::string_view name, CloudActionType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( CloudActionType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // @@protoc_insertion_point(namespace_scope) } // namespace sharing } // namespace proto } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/proto/sharing_enums.pb.h b/compiled_proto/proto/sharing_enums.pb.h index a46f205f..1b12e88b 100644 --- a/compiled_proto/proto/sharing_enums.pb.h +++ b/compiled_proto/proto/sharing_enums.pb.h @@ -1,62 +1,308 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/sharing_enums.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fsharing_5fenums_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fsharing_5fenums_2eproto +#ifndef proto_2fsharing_5fenums_2eproto_2epb_2eh +#define proto_2fsharing_5fenums_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019005 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_proto_2fsharing_5fenums_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_proto_2fsharing_5fenums_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE namespace location { namespace nearby { namespace proto { namespace sharing { +enum ActivityName : int; +extern const uint32_t ActivityName_internal_data_[]; +enum AdvertisingMode : int; +extern const uint32_t AdvertisingMode_internal_data_[]; +enum ApkSource : int; +extern const uint32_t ApkSource_internal_data_[]; +enum AppCrashReason : int; +extern const uint32_t AppCrashReason_internal_data_[]; +enum AttachmentSourceType : int; +extern const uint32_t AttachmentSourceType_internal_data_[]; +enum AttachmentTransmissionStatus : int; +extern const uint32_t AttachmentTransmissionStatus_internal_data_[]; +enum ButtonStatus : int; +extern const uint32_t ButtonStatus_internal_data_[]; +enum ClientRole : int; +extern const uint32_t ClientRole_internal_data_[]; +enum CloudActionType : int; +extern const uint32_t CloudActionType_internal_data_[]; +enum CloudCreateSharingResult : int; +extern const uint32_t CloudCreateSharingResult_internal_data_[]; +enum CloudRegisterReceiverResult : int; +extern const uint32_t CloudRegisterReceiverResult_internal_data_[]; +enum ConnectionLayerStatus : int; +extern const uint32_t ConnectionLayerStatus_internal_data_[]; +enum ConsentAcceptanceStatus : int; +extern const uint32_t ConsentAcceptanceStatus_internal_data_[]; +enum ConsentType : int; +extern const uint32_t ConsentType_internal_data_[]; +enum ContactAccess : int; +extern const uint32_t ContactAccess_internal_data_[]; +enum DataUsage : int; +extern const uint32_t DataUsage_internal_data_[]; +enum DecryptCertificateFailureStatus : int; +extern const uint32_t DecryptCertificateFailureStatus_internal_data_[]; +enum DesktopNotification : int; +extern const uint32_t DesktopNotification_internal_data_[]; +enum DesktopTransferEventType : int; +extern const uint32_t DesktopTransferEventType_internal_data_[]; +enum DeviceRelationship : int; +extern const uint32_t DeviceRelationship_internal_data_[]; +enum DeviceType : int; +extern const uint32_t DeviceType_internal_data_[]; +enum DiscoveryMode : int; +extern const uint32_t DiscoveryMode_internal_data_[]; +enum EstablishConnectionStatus : int; +extern const uint32_t EstablishConnectionStatus_internal_data_[]; +enum EventCategory : int; +extern const uint32_t EventCategory_internal_data_[]; +enum EventType : int; +extern const uint32_t EventType_internal_data_[]; +enum FastInitState : int; +extern const uint32_t FastInitState_internal_data_[]; +enum FastInitType : int; +extern const uint32_t FastInitType_internal_data_[]; +enum IdentityVerification : int; +extern const uint32_t IdentityVerification_internal_data_[]; +enum InstallAPKStatus : int; +extern const uint32_t InstallAPKStatus_internal_data_[]; +enum LogSource : int; +extern const uint32_t LogSource_internal_data_[]; +enum NearbySharingStatus : int; +extern const uint32_t NearbySharingStatus_internal_data_[]; +enum OSType : int; +extern const uint32_t OSType_internal_data_[]; +enum ParsingFailedType : int; +extern const uint32_t ParsingFailedType_internal_data_[]; +enum PermissionRequestResult : int; +extern const uint32_t PermissionRequestResult_internal_data_[]; +enum PermissionRequestType : int; +extern const uint32_t PermissionRequestType_internal_data_[]; +enum PreferencesAction : int; +extern const uint32_t PreferencesAction_internal_data_[]; +enum PreferencesActionStatus : int; +extern const uint32_t PreferencesActionStatus_internal_data_[]; +enum ProcessReceivedAttachmentsStatus : int; +extern const uint32_t ProcessReceivedAttachmentsStatus_internal_data_[]; +enum ResponseToIntroduction : int; +extern const uint32_t ResponseToIntroduction_internal_data_[]; +enum ScanType : int; +extern const uint32_t ScanType_internal_data_[]; +enum ServerActionName : int; +extern const uint32_t ServerActionName_internal_data_[]; +enum ServerResponseState : int; +extern const uint32_t ServerResponseState_internal_data_[]; +enum SessionStatus : int; +extern const uint32_t SessionStatus_internal_data_[]; +enum SharingUseCase : int; +extern const uint32_t SharingUseCase_internal_data_[]; +enum ShowNotificationStatus : int; +extern const uint32_t ShowNotificationStatus_internal_data_[]; +enum SyncPurpose : int; +extern const uint32_t SyncPurpose_internal_data_[]; +enum VerifyAPKStatus : int; +extern const uint32_t VerifyAPKStatus_internal_data_[]; +enum Visibility : int; +extern const uint32_t Visibility_internal_data_[]; +} // namespace sharing +} // namespace proto +} // namespace nearby +} // namespace location +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ActivityName_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ActivityName>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::AdvertisingMode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::AdvertisingMode>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ApkSource_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ApkSource>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::AppCrashReason_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::AppCrashReason>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::AttachmentSourceType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::AttachmentSourceType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::AttachmentTransmissionStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::AttachmentTransmissionStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ButtonStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ButtonStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ClientRole_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ClientRole>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::CloudActionType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::CloudActionType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::CloudCreateSharingResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::CloudCreateSharingResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::CloudRegisterReceiverResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::CloudRegisterReceiverResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ConnectionLayerStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ConnectionLayerStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ConsentAcceptanceStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ConsentAcceptanceStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ConsentType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ConsentType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ContactAccess_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ContactAccess>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DataUsage_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DataUsage>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DecryptCertificateFailureStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DecryptCertificateFailureStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DesktopNotification_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DesktopNotification>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DesktopTransferEventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DesktopTransferEventType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DeviceRelationship_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DeviceRelationship>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DeviceType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::DiscoveryMode_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::DiscoveryMode>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::EstablishConnectionStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::EstablishConnectionStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::EventCategory_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::EventCategory>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::EventType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::EventType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::FastInitState_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::FastInitState>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::FastInitType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::FastInitType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::IdentityVerification_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::IdentityVerification>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::InstallAPKStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::InstallAPKStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::LogSource_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::LogSource>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::NearbySharingStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::NearbySharingStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::OSType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::OSType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ParsingFailedType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ParsingFailedType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::PermissionRequestResult_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::PermissionRequestResult>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::PermissionRequestType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::PermissionRequestType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::PreferencesAction_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::PreferencesAction>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::PreferencesActionStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::PreferencesActionStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ResponseToIntroduction_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ResponseToIntroduction>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ScanType_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ScanType>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ServerActionName_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ServerActionName>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ServerResponseState_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ServerResponseState>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::SessionStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::SessionStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::SharingUseCase_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::SharingUseCase>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::ShowNotificationStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::ShowNotificationStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::SyncPurpose_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::SyncPurpose>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::VerifyAPKStatus_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::VerifyAPKStatus>; +template <> +internal::EnumTraitsT<::location::nearby::proto::sharing::Visibility_internal_data_> + internal::EnumTraitsImpl::value<::location::nearby::proto::sharing::Visibility>; +} // namespace protobuf +} // namespace google +namespace location { +namespace nearby { +namespace proto { +namespace sharing { enum EventType : int { UNKNOWN_EVENT_TYPE = 0, ACCEPT_AGREEMENTS = 1, @@ -80,7 +326,7 @@ enum EventType : int { CANCEL_SENDING_ATTACHMENTS = 19, CANCEL_RECEIVING_ATTACHMENTS = 20, OPEN_RECEIVED_ATTACHMENTS = 21, - LAUNCH_SETUP_ACTIVITY PROTOBUF_DEPRECATED_ENUM = 22, + LAUNCH_SETUP_ACTIVITY [[deprecated]] = 22, ADD_CONTACT = 23, REMOVE_CONTACT = 24, FAST_SHARE_SERVER_RESPONSE = 25, @@ -138,109 +384,134 @@ enum EventType : int { CLOUD_UPLOAD_END = 77, CLOUD_DOWNLOAD_START = 78, CLOUD_DOWNLOAD_END = 79, - CLOUD_SHARING_RPC_RESULT = 80 + CLOUD_SHARING_RPC_RESULT = 80, }; -bool EventType_IsValid(int value); -constexpr EventType EventType_MIN = UNKNOWN_EVENT_TYPE; -constexpr EventType EventType_MAX = CLOUD_SHARING_RPC_RESULT; -constexpr int EventType_ARRAYSIZE = EventType_MAX + 1; -const std::string& EventType_Name(EventType value); -template -inline const std::string& EventType_Name(T enum_t_value) { +extern const uint32_t EventType_internal_data_[]; +inline constexpr EventType EventType_MIN = + static_cast(0); +inline constexpr EventType EventType_MAX = + static_cast(80); +inline bool EventType_IsValid(int value) { + return 0 <= value && value <= 80; +} +inline constexpr int EventType_ARRAYSIZE = 80 + 1; +const ::std::string& EventType_Name(EventType value); +template +const ::std::string& EventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return EventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventType_Name()."); + return EventType_Name(static_cast(value)); } bool EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value); + ::absl::string_view name, EventType* PROTOBUF_NONNULL value); enum EventCategory : int { UNKNOWN_EVENT_CATEGORY = 0, SENDING_EVENT = 1, RECEIVING_EVENT = 2, SETTINGS_EVENT = 3, - RPC_EVENT = 4 + RPC_EVENT = 4, }; -bool EventCategory_IsValid(int value); -constexpr EventCategory EventCategory_MIN = UNKNOWN_EVENT_CATEGORY; -constexpr EventCategory EventCategory_MAX = RPC_EVENT; -constexpr int EventCategory_ARRAYSIZE = EventCategory_MAX + 1; -const std::string& EventCategory_Name(EventCategory value); -template -inline const std::string& EventCategory_Name(T enum_t_value) { +extern const uint32_t EventCategory_internal_data_[]; +inline constexpr EventCategory EventCategory_MIN = + static_cast(0); +inline constexpr EventCategory EventCategory_MAX = + static_cast(4); +inline bool EventCategory_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int EventCategory_ARRAYSIZE = 4 + 1; +const ::std::string& EventCategory_Name(EventCategory value); +template +const ::std::string& EventCategory_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventCategory_Name."); - return EventCategory_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EventCategory_Name()."); + return EventCategory_Name(static_cast(value)); } bool EventCategory_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventCategory* value); + ::absl::string_view name, EventCategory* PROTOBUF_NONNULL value); enum NearbySharingStatus : int { UNKNOWN_NEARBY_SHARING_STATUS = 0, ON = 1, - OFF = 2 + OFF = 2, }; -bool NearbySharingStatus_IsValid(int value); -constexpr NearbySharingStatus NearbySharingStatus_MIN = UNKNOWN_NEARBY_SHARING_STATUS; -constexpr NearbySharingStatus NearbySharingStatus_MAX = OFF; -constexpr int NearbySharingStatus_ARRAYSIZE = NearbySharingStatus_MAX + 1; -const std::string& NearbySharingStatus_Name(NearbySharingStatus value); -template -inline const std::string& NearbySharingStatus_Name(T enum_t_value) { +extern const uint32_t NearbySharingStatus_internal_data_[]; +inline constexpr NearbySharingStatus NearbySharingStatus_MIN = + static_cast(0); +inline constexpr NearbySharingStatus NearbySharingStatus_MAX = + static_cast(2); +inline bool NearbySharingStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int NearbySharingStatus_ARRAYSIZE = 2 + 1; +const ::std::string& NearbySharingStatus_Name(NearbySharingStatus value); +template +const ::std::string& NearbySharingStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NearbySharingStatus_Name."); - return NearbySharingStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to NearbySharingStatus_Name()."); + return NearbySharingStatus_Name(static_cast(value)); } bool NearbySharingStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NearbySharingStatus* value); + ::absl::string_view name, NearbySharingStatus* PROTOBUF_NONNULL value); enum Visibility : int { UNKNOWN_VISIBILITY = 0, CONTACTS_ONLY = 1, EVERYONE = 2, - SELECTED_CONTACTS_ONLY PROTOBUF_DEPRECATED_ENUM = 3, + SELECTED_CONTACTS_ONLY [[deprecated]] = 3, HIDDEN = 4, - SELF_SHARE = 5 + SELF_SHARE = 5, }; -bool Visibility_IsValid(int value); -constexpr Visibility Visibility_MIN = UNKNOWN_VISIBILITY; -constexpr Visibility Visibility_MAX = SELF_SHARE; -constexpr int Visibility_ARRAYSIZE = Visibility_MAX + 1; -const std::string& Visibility_Name(Visibility value); -template -inline const std::string& Visibility_Name(T enum_t_value) { +extern const uint32_t Visibility_internal_data_[]; +inline constexpr Visibility Visibility_MIN = + static_cast(0); +inline constexpr Visibility Visibility_MAX = + static_cast(5); +inline bool Visibility_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int Visibility_ARRAYSIZE = 5 + 1; +const ::std::string& Visibility_Name(Visibility value); +template +const ::std::string& Visibility_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Visibility_Name."); - return Visibility_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Visibility_Name()."); + return Visibility_Name(static_cast(value)); } bool Visibility_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Visibility* value); + ::absl::string_view name, Visibility* PROTOBUF_NONNULL value); enum DataUsage : int { UNKNOWN_DATA_USAGE = 0, ONLINE = 1, WIFI_ONLY = 2, - OFFLINE = 3 + OFFLINE = 3, }; -bool DataUsage_IsValid(int value); -constexpr DataUsage DataUsage_MIN = UNKNOWN_DATA_USAGE; -constexpr DataUsage DataUsage_MAX = OFFLINE; -constexpr int DataUsage_ARRAYSIZE = DataUsage_MAX + 1; -const std::string& DataUsage_Name(DataUsage value); -template -inline const std::string& DataUsage_Name(T enum_t_value) { +extern const uint32_t DataUsage_internal_data_[]; +inline constexpr DataUsage DataUsage_MIN = + static_cast(0); +inline constexpr DataUsage DataUsage_MAX = + static_cast(3); +inline bool DataUsage_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int DataUsage_ARRAYSIZE = 3 + 1; +const ::std::string& DataUsage_Name(DataUsage value); +template +const ::std::string& DataUsage_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DataUsage_Name."); - return DataUsage_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DataUsage_Name()."); + return DataUsage_Name(static_cast(value)); } bool DataUsage_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DataUsage* value); + ::absl::string_view name, DataUsage* PROTOBUF_NONNULL value); enum EstablishConnectionStatus : int { CONNECTION_STATUS_UNKNOWN = 0, CONNECTION_STATUS_SUCCESS = 1, @@ -252,71 +523,81 @@ enum EstablishConnectionStatus : int { CONNECTION_STATUS_FAILED_NULL_CONNECTION = 7, CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK = 8, CONNECTION_STATUS_LOST_CONNECTIVITY = 9, - CONNECTION_STATUS_INVALID_ADVERTISEMENT = 10 + CONNECTION_STATUS_INVALID_ADVERTISEMENT = 10, }; -bool EstablishConnectionStatus_IsValid(int value); -constexpr EstablishConnectionStatus EstablishConnectionStatus_MIN = CONNECTION_STATUS_UNKNOWN; -constexpr EstablishConnectionStatus EstablishConnectionStatus_MAX = CONNECTION_STATUS_INVALID_ADVERTISEMENT; -constexpr int EstablishConnectionStatus_ARRAYSIZE = EstablishConnectionStatus_MAX + 1; -const std::string& EstablishConnectionStatus_Name(EstablishConnectionStatus value); -template -inline const std::string& EstablishConnectionStatus_Name(T enum_t_value) { +extern const uint32_t EstablishConnectionStatus_internal_data_[]; +inline constexpr EstablishConnectionStatus EstablishConnectionStatus_MIN = + static_cast(0); +inline constexpr EstablishConnectionStatus EstablishConnectionStatus_MAX = + static_cast(10); +inline bool EstablishConnectionStatus_IsValid(int value) { + return 0 <= value && value <= 10; +} +inline constexpr int EstablishConnectionStatus_ARRAYSIZE = 10 + 1; +const ::std::string& EstablishConnectionStatus_Name(EstablishConnectionStatus value); +template +const ::std::string& EstablishConnectionStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EstablishConnectionStatus_Name."); - return EstablishConnectionStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EstablishConnectionStatus_Name()."); + return EstablishConnectionStatus_Name(static_cast(value)); } bool EstablishConnectionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EstablishConnectionStatus* value); + ::absl::string_view name, EstablishConnectionStatus* PROTOBUF_NONNULL value); enum AttachmentTransmissionStatus : int { UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS = 0, COMPLETE_ATTACHMENT_TRANSMISSION_STATUS = 1, CANCELED_ATTACHMENT_TRANSMISSION_STATUS = 2, FAILED_ATTACHMENT_TRANSMISSION_STATUS = 3, - REJECTED_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 4, - TIMED_OUT_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 5, - AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 6, - NOT_ENOUGH_SPACE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 7, - FAILED_NO_TRANSFER_UPDATE_CALLBACK PROTOBUF_DEPRECATED_ENUM = 8, - MEDIA_UNAVAILABLE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 9, - UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 10, - NO_ATTACHMENT_FOUND PROTOBUF_DEPRECATED_ENUM = 11, - FAILED_NO_SHARE_TARGET_ENDPOINT PROTOBUF_DEPRECATED_ENUM = 12, - FAILED_PAIRED_KEYHANDSHAKE PROTOBUF_DEPRECATED_ENUM = 13, - FAILED_NULL_CONNECTION PROTOBUF_DEPRECATED_ENUM = 14, - FAILED_NO_PAYLOAD PROTOBUF_DEPRECATED_ENUM = 15, - FAILED_WRITE_INTRODUCTION PROTOBUF_DEPRECATED_ENUM = 16, - FAILED_UNKNOWN_REMOTE_RESPONSE PROTOBUF_DEPRECATED_ENUM = 17, + REJECTED_ATTACHMENT [[deprecated]] = 4, + TIMED_OUT_ATTACHMENT [[deprecated]] = 5, + AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT [[deprecated]] = 6, + NOT_ENOUGH_SPACE_ATTACHMENT [[deprecated]] = 7, + FAILED_NO_TRANSFER_UPDATE_CALLBACK [[deprecated]] = 8, + MEDIA_UNAVAILABLE_ATTACHMENT [[deprecated]] = 9, + UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT [[deprecated]] = 10, + NO_ATTACHMENT_FOUND [[deprecated]] = 11, + FAILED_NO_SHARE_TARGET_ENDPOINT [[deprecated]] = 12, + FAILED_PAIRED_KEYHANDSHAKE [[deprecated]] = 13, + FAILED_NULL_CONNECTION [[deprecated]] = 14, + FAILED_NO_PAYLOAD [[deprecated]] = 15, + FAILED_WRITE_INTRODUCTION [[deprecated]] = 16, + FAILED_UNKNOWN_REMOTE_RESPONSE [[deprecated]] = 17, FAILED_NULL_CONNECTION_INIT_OUTGOING = 18, FAILED_NULL_CONNECTION_DISCONNECTED = 19, - FAILED_NULL_CONNECTION_LOST_CONNECTIVITY PROTOBUF_DEPRECATED_ENUM = 20, - FAILED_NULL_CONNECTION_FAILURE PROTOBUF_DEPRECATED_ENUM = 21, + FAILED_NULL_CONNECTION_LOST_CONNECTIVITY [[deprecated]] = 20, + FAILED_NULL_CONNECTION_FAILURE [[deprecated]] = 21, REJECTED_ATTACHMENT_TRANSMISSION_STATUS = 22, TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS = 23, NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS = 24, UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS = 25, FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS = 26, - NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS PROTOBUF_DEPRECATED_ENUM = 27, + NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS [[deprecated]] = 27, NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS = 28, LOST_CONNECTIVITY_TRANSMISSION_STATUS = 29, - FAILED_DISALLOWED_MEDIUM = 30 + FAILED_DISALLOWED_MEDIUM = 30, }; -bool AttachmentTransmissionStatus_IsValid(int value); -constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MIN = UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS; -constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MAX = FAILED_DISALLOWED_MEDIUM; -constexpr int AttachmentTransmissionStatus_ARRAYSIZE = AttachmentTransmissionStatus_MAX + 1; -const std::string& AttachmentTransmissionStatus_Name(AttachmentTransmissionStatus value); -template -inline const std::string& AttachmentTransmissionStatus_Name(T enum_t_value) { +extern const uint32_t AttachmentTransmissionStatus_internal_data_[]; +inline constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MIN = + static_cast(0); +inline constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MAX = + static_cast(30); +inline bool AttachmentTransmissionStatus_IsValid(int value) { + return 0 <= value && value <= 30; +} +inline constexpr int AttachmentTransmissionStatus_ARRAYSIZE = 30 + 1; +const ::std::string& AttachmentTransmissionStatus_Name(AttachmentTransmissionStatus value); +template +const ::std::string& AttachmentTransmissionStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AttachmentTransmissionStatus_Name."); - return AttachmentTransmissionStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AttachmentTransmissionStatus_Name()."); + return AttachmentTransmissionStatus_Name(static_cast(value)); } bool AttachmentTransmissionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentTransmissionStatus* value); + ::absl::string_view name, AttachmentTransmissionStatus* PROTOBUF_NONNULL value); enum ConnectionLayerStatus : int { CONNECTION_LAYER_STATUS_UNKNOWN = 0, CONNECTION_LAYER_STATUS_SUCCESS = 1, @@ -336,87 +617,107 @@ enum ConnectionLayerStatus : int { CONNECTION_LAYER_STATUS_WIFI_LAN_ERROR = 15, CONNECTION_LAYER_STATUS_PAYLOAD_UNKNOWN = 16, CONNECTION_LAYER_STATUS_RESET = 17, - CONNECTION_LAYER_STATUS_TIMEOUT = 18 + CONNECTION_LAYER_STATUS_TIMEOUT = 18, }; -bool ConnectionLayerStatus_IsValid(int value); -constexpr ConnectionLayerStatus ConnectionLayerStatus_MIN = CONNECTION_LAYER_STATUS_UNKNOWN; -constexpr ConnectionLayerStatus ConnectionLayerStatus_MAX = CONNECTION_LAYER_STATUS_TIMEOUT; -constexpr int ConnectionLayerStatus_ARRAYSIZE = ConnectionLayerStatus_MAX + 1; -const std::string& ConnectionLayerStatus_Name(ConnectionLayerStatus value); -template -inline const std::string& ConnectionLayerStatus_Name(T enum_t_value) { +extern const uint32_t ConnectionLayerStatus_internal_data_[]; +inline constexpr ConnectionLayerStatus ConnectionLayerStatus_MIN = + static_cast(0); +inline constexpr ConnectionLayerStatus ConnectionLayerStatus_MAX = + static_cast(18); +inline bool ConnectionLayerStatus_IsValid(int value) { + return 0 <= value && value <= 18; +} +inline constexpr int ConnectionLayerStatus_ARRAYSIZE = 18 + 1; +const ::std::string& ConnectionLayerStatus_Name(ConnectionLayerStatus value); +template +const ::std::string& ConnectionLayerStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionLayerStatus_Name."); - return ConnectionLayerStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConnectionLayerStatus_Name()."); + return ConnectionLayerStatus_Name(static_cast(value)); } bool ConnectionLayerStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionLayerStatus* value); + ::absl::string_view name, ConnectionLayerStatus* PROTOBUF_NONNULL value); enum ProcessReceivedAttachmentsStatus : int { PROCESSING_STATUS_UNKNOWN = 0, PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS = 1, PROCESSING_STATUS_FAILED_MOVING_FILES = 2, PROCESSING_STATUS_FAILED_RECEIVING_APK = 3, PROCESSING_STATUS_FAILED_RECEIVING_TEXT = 4, - PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS = 5 + PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS = 5, }; -bool ProcessReceivedAttachmentsStatus_IsValid(int value); -constexpr ProcessReceivedAttachmentsStatus ProcessReceivedAttachmentsStatus_MIN = PROCESSING_STATUS_UNKNOWN; -constexpr ProcessReceivedAttachmentsStatus ProcessReceivedAttachmentsStatus_MAX = PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS; -constexpr int ProcessReceivedAttachmentsStatus_ARRAYSIZE = ProcessReceivedAttachmentsStatus_MAX + 1; -const std::string& ProcessReceivedAttachmentsStatus_Name(ProcessReceivedAttachmentsStatus value); -template -inline const std::string& ProcessReceivedAttachmentsStatus_Name(T enum_t_value) { +extern const uint32_t ProcessReceivedAttachmentsStatus_internal_data_[]; +inline constexpr ProcessReceivedAttachmentsStatus ProcessReceivedAttachmentsStatus_MIN = + static_cast(0); +inline constexpr ProcessReceivedAttachmentsStatus ProcessReceivedAttachmentsStatus_MAX = + static_cast(5); +inline bool ProcessReceivedAttachmentsStatus_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int ProcessReceivedAttachmentsStatus_ARRAYSIZE = 5 + 1; +const ::std::string& ProcessReceivedAttachmentsStatus_Name(ProcessReceivedAttachmentsStatus value); +template +const ::std::string& ProcessReceivedAttachmentsStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ProcessReceivedAttachmentsStatus_Name."); - return ProcessReceivedAttachmentsStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ProcessReceivedAttachmentsStatus_Name()."); + return ProcessReceivedAttachmentsStatus_Name(static_cast(value)); } bool ProcessReceivedAttachmentsStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcessReceivedAttachmentsStatus* value); + ::absl::string_view name, ProcessReceivedAttachmentsStatus* PROTOBUF_NONNULL value); enum SessionStatus : int { UNKNOWN_SESSION_STATUS = 0, SUCCEEDED_SESSION_STATUS = 1, - FAILED_SESSION_STATUS = 2 + FAILED_SESSION_STATUS = 2, }; -bool SessionStatus_IsValid(int value); -constexpr SessionStatus SessionStatus_MIN = UNKNOWN_SESSION_STATUS; -constexpr SessionStatus SessionStatus_MAX = FAILED_SESSION_STATUS; -constexpr int SessionStatus_ARRAYSIZE = SessionStatus_MAX + 1; -const std::string& SessionStatus_Name(SessionStatus value); -template -inline const std::string& SessionStatus_Name(T enum_t_value) { +extern const uint32_t SessionStatus_internal_data_[]; +inline constexpr SessionStatus SessionStatus_MIN = + static_cast(0); +inline constexpr SessionStatus SessionStatus_MAX = + static_cast(2); +inline bool SessionStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int SessionStatus_ARRAYSIZE = 2 + 1; +const ::std::string& SessionStatus_Name(SessionStatus value); +template +const ::std::string& SessionStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SessionStatus_Name."); - return SessionStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SessionStatus_Name()."); + return SessionStatus_Name(static_cast(value)); } bool SessionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SessionStatus* value); + ::absl::string_view name, SessionStatus* PROTOBUF_NONNULL value); enum ResponseToIntroduction : int { UNKNOWN_RESPONSE_TO_INTRODUCTION = 0, ACCEPT_INTRODUCTION = 1, REJECT_INTRODUCTION = 2, - FAIL_INTRODUCTION = 3 + FAIL_INTRODUCTION = 3, }; -bool ResponseToIntroduction_IsValid(int value); -constexpr ResponseToIntroduction ResponseToIntroduction_MIN = UNKNOWN_RESPONSE_TO_INTRODUCTION; -constexpr ResponseToIntroduction ResponseToIntroduction_MAX = FAIL_INTRODUCTION; -constexpr int ResponseToIntroduction_ARRAYSIZE = ResponseToIntroduction_MAX + 1; -const std::string& ResponseToIntroduction_Name(ResponseToIntroduction value); -template -inline const std::string& ResponseToIntroduction_Name(T enum_t_value) { +extern const uint32_t ResponseToIntroduction_internal_data_[]; +inline constexpr ResponseToIntroduction ResponseToIntroduction_MIN = + static_cast(0); +inline constexpr ResponseToIntroduction ResponseToIntroduction_MAX = + static_cast(3); +inline bool ResponseToIntroduction_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ResponseToIntroduction_ARRAYSIZE = 3 + 1; +const ::std::string& ResponseToIntroduction_Name(ResponseToIntroduction value); +template +const ::std::string& ResponseToIntroduction_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ResponseToIntroduction_Name."); - return ResponseToIntroduction_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ResponseToIntroduction_Name()."); + return ResponseToIntroduction_Name(static_cast(value)); } bool ResponseToIntroduction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResponseToIntroduction* value); + ::absl::string_view name, ResponseToIntroduction* PROTOBUF_NONNULL value); enum DeviceType : int { UNKNOWN_DEVICE_TYPE = 0, PHONE = 1, @@ -424,67 +725,82 @@ enum DeviceType : int { LAPTOP = 3, CAR = 4, FOLDABLE = 5, - XR = 6 + XR = 6, }; -bool DeviceType_IsValid(int value); -constexpr DeviceType DeviceType_MIN = UNKNOWN_DEVICE_TYPE; -constexpr DeviceType DeviceType_MAX = XR; -constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; -const std::string& DeviceType_Name(DeviceType value); -template -inline const std::string& DeviceType_Name(T enum_t_value) { +extern const uint32_t DeviceType_internal_data_[]; +inline constexpr DeviceType DeviceType_MIN = + static_cast(0); +inline constexpr DeviceType DeviceType_MAX = + static_cast(6); +inline bool DeviceType_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int DeviceType_ARRAYSIZE = 6 + 1; +const ::std::string& DeviceType_Name(DeviceType value); +template +const ::std::string& DeviceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return DeviceType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return DeviceType_Name(static_cast(value)); } bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value); + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); enum OSType : int { UNKNOWN_OS_TYPE = 0, ANDROID = 1, CHROME_OS = 2, IOS = 3, WINDOWS = 4, - MACOS = 5 + MACOS = 5, }; -bool OSType_IsValid(int value); -constexpr OSType OSType_MIN = UNKNOWN_OS_TYPE; -constexpr OSType OSType_MAX = MACOS; -constexpr int OSType_ARRAYSIZE = OSType_MAX + 1; -const std::string& OSType_Name(OSType value); -template -inline const std::string& OSType_Name(T enum_t_value) { +extern const uint32_t OSType_internal_data_[]; +inline constexpr OSType OSType_MIN = + static_cast(0); +inline constexpr OSType OSType_MAX = + static_cast(5); +inline bool OSType_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int OSType_ARRAYSIZE = 5 + 1; +const ::std::string& OSType_Name(OSType value); +template +const ::std::string& OSType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OSType_Name."); - return OSType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to OSType_Name()."); + return OSType_Name(static_cast(value)); } bool OSType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OSType* value); + ::absl::string_view name, OSType* PROTOBUF_NONNULL value); enum DeviceRelationship : int { UNKNOWN_DEVICE_RELATIONSHIP = 0, IS_SELF = 1, IS_CONTACT = 2, - IS_STRANGER = 3 + IS_STRANGER = 3, }; -bool DeviceRelationship_IsValid(int value); -constexpr DeviceRelationship DeviceRelationship_MIN = UNKNOWN_DEVICE_RELATIONSHIP; -constexpr DeviceRelationship DeviceRelationship_MAX = IS_STRANGER; -constexpr int DeviceRelationship_ARRAYSIZE = DeviceRelationship_MAX + 1; -const std::string& DeviceRelationship_Name(DeviceRelationship value); -template -inline const std::string& DeviceRelationship_Name(T enum_t_value) { +extern const uint32_t DeviceRelationship_internal_data_[]; +inline constexpr DeviceRelationship DeviceRelationship_MIN = + static_cast(0); +inline constexpr DeviceRelationship DeviceRelationship_MAX = + static_cast(3); +inline bool DeviceRelationship_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int DeviceRelationship_ARRAYSIZE = 3 + 1; +const ::std::string& DeviceRelationship_Name(DeviceRelationship value); +template +const ::std::string& DeviceRelationship_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceRelationship_Name."); - return DeviceRelationship_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DeviceRelationship_Name()."); + return DeviceRelationship_Name(static_cast(value)); } bool DeviceRelationship_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceRelationship* value); + ::absl::string_view name, DeviceRelationship* PROTOBUF_NONNULL value); enum LogSource : int { UNSPECIFIED_SOURCE = 0, LAB_DEVICES = 1, @@ -495,23 +811,28 @@ enum LogSource : int { NEARBY_MODULE_FOOD_DEVICES = 6, BETO_DOGFOOD_DEVICES = 7, NEARBY_DOGFOOD_DEVICES = 8, - NEARBY_TEAMFOOD_DEVICES = 9 + NEARBY_TEAMFOOD_DEVICES = 9, }; -bool LogSource_IsValid(int value); -constexpr LogSource LogSource_MIN = UNSPECIFIED_SOURCE; -constexpr LogSource LogSource_MAX = NEARBY_TEAMFOOD_DEVICES; -constexpr int LogSource_ARRAYSIZE = LogSource_MAX + 1; -const std::string& LogSource_Name(LogSource value); -template -inline const std::string& LogSource_Name(T enum_t_value) { +extern const uint32_t LogSource_internal_data_[]; +inline constexpr LogSource LogSource_MIN = + static_cast(0); +inline constexpr LogSource LogSource_MAX = + static_cast(9); +inline bool LogSource_IsValid(int value) { + return 0 <= value && value <= 9; +} +inline constexpr int LogSource_ARRAYSIZE = 9 + 1; +const ::std::string& LogSource_Name(LogSource value); +template +const ::std::string& LogSource_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LogSource_Name."); - return LogSource_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to LogSource_Name()."); + return LogSource_Name(static_cast(value)); } bool LogSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value); + ::absl::string_view name, LogSource* PROTOBUF_NONNULL value); enum ServerActionName : int { UNKNOWN_SERVER_ACTION = 0, UPLOAD_CERTIFICATES = 1, @@ -525,23 +846,28 @@ enum ServerActionName : int { LIST_REACHABLE_PHONE_NUMBERS = 9, LIST_MY_DEVICES = 10, LIST_CONTACT_PEOPLE = 11, - DOWNLOAD_CERTIFICATES_INFO = 12 + DOWNLOAD_CERTIFICATES_INFO = 12, }; -bool ServerActionName_IsValid(int value); -constexpr ServerActionName ServerActionName_MIN = UNKNOWN_SERVER_ACTION; -constexpr ServerActionName ServerActionName_MAX = DOWNLOAD_CERTIFICATES_INFO; -constexpr int ServerActionName_ARRAYSIZE = ServerActionName_MAX + 1; -const std::string& ServerActionName_Name(ServerActionName value); -template -inline const std::string& ServerActionName_Name(T enum_t_value) { +extern const uint32_t ServerActionName_internal_data_[]; +inline constexpr ServerActionName ServerActionName_MIN = + static_cast(0); +inline constexpr ServerActionName ServerActionName_MAX = + static_cast(12); +inline bool ServerActionName_IsValid(int value) { + return 0 <= value && value <= 12; +} +inline constexpr int ServerActionName_ARRAYSIZE = 12 + 1; +const ::std::string& ServerActionName_Name(ServerActionName value); +template +const ::std::string& ServerActionName_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ServerActionName_Name."); - return ServerActionName_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ServerActionName_Name()."); + return ServerActionName_Name(static_cast(value)); } bool ServerActionName_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerActionName* value); + ::absl::string_view name, ServerActionName* PROTOBUF_NONNULL value); enum ServerResponseState : int { UNKNOWN_SERVER_RESPONSE_STATE = 0, SERVER_RESPONSE_SUCCESS = 1, @@ -553,23 +879,28 @@ enum ServerResponseState : int { SERVER_RESPONSE_STATUS_UNAUTHENTICATED = 7, SERVER_RESPONSE_STATUS_INVALID_ARGUMENT = 9, SERVER_RESPONSE_GOOGLE_AUTH_FAILURE = 8, - SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET = 10 + SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET = 10, }; -bool ServerResponseState_IsValid(int value); -constexpr ServerResponseState ServerResponseState_MIN = UNKNOWN_SERVER_RESPONSE_STATE; -constexpr ServerResponseState ServerResponseState_MAX = SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET; -constexpr int ServerResponseState_ARRAYSIZE = ServerResponseState_MAX + 1; -const std::string& ServerResponseState_Name(ServerResponseState value); -template -inline const std::string& ServerResponseState_Name(T enum_t_value) { +extern const uint32_t ServerResponseState_internal_data_[]; +inline constexpr ServerResponseState ServerResponseState_MIN = + static_cast(0); +inline constexpr ServerResponseState ServerResponseState_MAX = + static_cast(10); +inline bool ServerResponseState_IsValid(int value) { + return 0 <= value && value <= 10; +} +inline constexpr int ServerResponseState_ARRAYSIZE = 10 + 1; +const ::std::string& ServerResponseState_Name(ServerResponseState value); +template +const ::std::string& ServerResponseState_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ServerResponseState_Name."); - return ServerResponseState_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ServerResponseState_Name()."); + return ServerResponseState_Name(static_cast(value)); } bool ServerResponseState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerResponseState* value); + ::absl::string_view name, ServerResponseState* PROTOBUF_NONNULL value); enum SyncPurpose : int { SYNC_PURPOSE_UNKNOWN = 0, SYNC_PURPOSE_ON_DEMAND_SYNC = 1, @@ -589,131 +920,162 @@ enum SyncPurpose : int { SYNC_PURPOSE_ACCOUNT_CHANGE = 15, SYNC_PURPOSE_REGENERATE_CERTIFICATES = 16, SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE = 17, - SYNC_EXHAUST_SALT = 18 + SYNC_EXHAUST_SALT = 18, + SYNC_QUICKSHARE_IDENTITY_PROVIDER_QUERY = 19, }; -bool SyncPurpose_IsValid(int value); -constexpr SyncPurpose SyncPurpose_MIN = SYNC_PURPOSE_UNKNOWN; -constexpr SyncPurpose SyncPurpose_MAX = SYNC_EXHAUST_SALT; -constexpr int SyncPurpose_ARRAYSIZE = SyncPurpose_MAX + 1; -const std::string& SyncPurpose_Name(SyncPurpose value); -template -inline const std::string& SyncPurpose_Name(T enum_t_value) { +extern const uint32_t SyncPurpose_internal_data_[]; +inline constexpr SyncPurpose SyncPurpose_MIN = + static_cast(0); +inline constexpr SyncPurpose SyncPurpose_MAX = + static_cast(19); +inline bool SyncPurpose_IsValid(int value) { + return 0 <= value && value <= 19; +} +inline constexpr int SyncPurpose_ARRAYSIZE = 19 + 1; +const ::std::string& SyncPurpose_Name(SyncPurpose value); +template +const ::std::string& SyncPurpose_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SyncPurpose_Name."); - return SyncPurpose_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SyncPurpose_Name()."); + return SyncPurpose_Name(static_cast(value)); } bool SyncPurpose_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SyncPurpose* value); + ::absl::string_view name, SyncPurpose* PROTOBUF_NONNULL value); enum ClientRole : int { CLIENT_ROLE_UNKNOWN = 0, CLIENT_ROLE_SENDER = 1, - CLIENT_ROLE_RECEIVER = 2 + CLIENT_ROLE_RECEIVER = 2, }; -bool ClientRole_IsValid(int value); -constexpr ClientRole ClientRole_MIN = CLIENT_ROLE_UNKNOWN; -constexpr ClientRole ClientRole_MAX = CLIENT_ROLE_RECEIVER; -constexpr int ClientRole_ARRAYSIZE = ClientRole_MAX + 1; -const std::string& ClientRole_Name(ClientRole value); -template -inline const std::string& ClientRole_Name(T enum_t_value) { +extern const uint32_t ClientRole_internal_data_[]; +inline constexpr ClientRole ClientRole_MIN = + static_cast(0); +inline constexpr ClientRole ClientRole_MAX = + static_cast(2); +inline bool ClientRole_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ClientRole_ARRAYSIZE = 2 + 1; +const ::std::string& ClientRole_Name(ClientRole value); +template +const ::std::string& ClientRole_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ClientRole_Name."); - return ClientRole_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ClientRole_Name()."); + return ClientRole_Name(static_cast(value)); } bool ClientRole_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientRole* value); + ::absl::string_view name, ClientRole* PROTOBUF_NONNULL value); enum ScanType : int { UNKNOWN_SCAN_TYPE = 0, FOREGROUND_SCAN = 1, - FOREGROUND_RETRY_SCAN PROTOBUF_DEPRECATED_ENUM = 2, + FOREGROUND_RETRY_SCAN [[deprecated]] = 2, DIRECT_SHARE_SCAN = 3, - BACKGROUND_SCAN = 4 + BACKGROUND_SCAN = 4, }; -bool ScanType_IsValid(int value); -constexpr ScanType ScanType_MIN = UNKNOWN_SCAN_TYPE; -constexpr ScanType ScanType_MAX = BACKGROUND_SCAN; -constexpr int ScanType_ARRAYSIZE = ScanType_MAX + 1; -const std::string& ScanType_Name(ScanType value); -template -inline const std::string& ScanType_Name(T enum_t_value) { +extern const uint32_t ScanType_internal_data_[]; +inline constexpr ScanType ScanType_MIN = + static_cast(0); +inline constexpr ScanType ScanType_MAX = + static_cast(4); +inline bool ScanType_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int ScanType_ARRAYSIZE = 4 + 1; +const ::std::string& ScanType_Name(ScanType value); +template +const ::std::string& ScanType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ScanType_Name."); - return ScanType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ScanType_Name()."); + return ScanType_Name(static_cast(value)); } bool ScanType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ScanType* value); + ::absl::string_view name, ScanType* PROTOBUF_NONNULL value); enum ParsingFailedType : int { FAILED_UNKNOWN_TYPE = 0, FAILED_PARSE_ADVERTISEMENT = 1, - FAILED_CONVERT_SHARE_TARGET = 2 + FAILED_CONVERT_SHARE_TARGET = 2, }; -bool ParsingFailedType_IsValid(int value); -constexpr ParsingFailedType ParsingFailedType_MIN = FAILED_UNKNOWN_TYPE; -constexpr ParsingFailedType ParsingFailedType_MAX = FAILED_CONVERT_SHARE_TARGET; -constexpr int ParsingFailedType_ARRAYSIZE = ParsingFailedType_MAX + 1; -const std::string& ParsingFailedType_Name(ParsingFailedType value); -template -inline const std::string& ParsingFailedType_Name(T enum_t_value) { +extern const uint32_t ParsingFailedType_internal_data_[]; +inline constexpr ParsingFailedType ParsingFailedType_MIN = + static_cast(0); +inline constexpr ParsingFailedType ParsingFailedType_MAX = + static_cast(2); +inline bool ParsingFailedType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ParsingFailedType_ARRAYSIZE = 2 + 1; +const ::std::string& ParsingFailedType_Name(ParsingFailedType value); +template +const ::std::string& ParsingFailedType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ParsingFailedType_Name."); - return ParsingFailedType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ParsingFailedType_Name()."); + return ParsingFailedType_Name(static_cast(value)); } bool ParsingFailedType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ParsingFailedType* value); + ::absl::string_view name, ParsingFailedType* PROTOBUF_NONNULL value); enum AdvertisingMode : int { UNKNOWN_ADVERTISING_MODE = 0, SCREEN_OFF_ADVERTISING_MODE = 1, BACKGROUND_ADVERTISING_MODE = 2, MIDGROUND_ADVERTISING_MODE = 3, FOREGROUND_ADVERTISING_MODE = 4, - SUSPENDED_ADVERTISING_MODE = 5 + SUSPENDED_ADVERTISING_MODE = 5, }; -bool AdvertisingMode_IsValid(int value); -constexpr AdvertisingMode AdvertisingMode_MIN = UNKNOWN_ADVERTISING_MODE; -constexpr AdvertisingMode AdvertisingMode_MAX = SUSPENDED_ADVERTISING_MODE; -constexpr int AdvertisingMode_ARRAYSIZE = AdvertisingMode_MAX + 1; -const std::string& AdvertisingMode_Name(AdvertisingMode value); -template -inline const std::string& AdvertisingMode_Name(T enum_t_value) { +extern const uint32_t AdvertisingMode_internal_data_[]; +inline constexpr AdvertisingMode AdvertisingMode_MIN = + static_cast(0); +inline constexpr AdvertisingMode AdvertisingMode_MAX = + static_cast(5); +inline bool AdvertisingMode_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int AdvertisingMode_ARRAYSIZE = 5 + 1; +const ::std::string& AdvertisingMode_Name(AdvertisingMode value); +template +const ::std::string& AdvertisingMode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AdvertisingMode_Name."); - return AdvertisingMode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AdvertisingMode_Name()."); + return AdvertisingMode_Name(static_cast(value)); } bool AdvertisingMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdvertisingMode* value); + ::absl::string_view name, AdvertisingMode* PROTOBUF_NONNULL value); enum DiscoveryMode : int { UNKNOWN_DISCOVERY_MODE = 0, SCREEN_OFF_DISCOVERY_MODE = 1, BACKGROUND_DISCOVERY_MODE = 2, MIDGROUND_DISCOVERY_MODE = 3, FOREGROUND_DISCOVERY_MODE = 4, - SUSPENDED_DISCOVERY_MODE = 5 + SUSPENDED_DISCOVERY_MODE = 5, }; -bool DiscoveryMode_IsValid(int value); -constexpr DiscoveryMode DiscoveryMode_MIN = UNKNOWN_DISCOVERY_MODE; -constexpr DiscoveryMode DiscoveryMode_MAX = SUSPENDED_DISCOVERY_MODE; -constexpr int DiscoveryMode_ARRAYSIZE = DiscoveryMode_MAX + 1; -const std::string& DiscoveryMode_Name(DiscoveryMode value); -template -inline const std::string& DiscoveryMode_Name(T enum_t_value) { +extern const uint32_t DiscoveryMode_internal_data_[]; +inline constexpr DiscoveryMode DiscoveryMode_MIN = + static_cast(0); +inline constexpr DiscoveryMode DiscoveryMode_MAX = + static_cast(5); +inline bool DiscoveryMode_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int DiscoveryMode_ARRAYSIZE = 5 + 1; +const ::std::string& DiscoveryMode_Name(DiscoveryMode value); +template +const ::std::string& DiscoveryMode_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DiscoveryMode_Name."); - return DiscoveryMode_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DiscoveryMode_Name()."); + return DiscoveryMode_Name(static_cast(value)); } bool DiscoveryMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DiscoveryMode* value); + ::absl::string_view name, DiscoveryMode* PROTOBUF_NONNULL value); enum ActivityName : int { UNKNOWN_ACTIVITY = 0, SHARE_SHEET_ACTIVITY = 1, @@ -727,189 +1089,234 @@ enum ActivityName : int { QUICK_SETTINGS_ACTIVITY = 9, REMOTE_COPY_SHARE_SHEET_ACTIVITY = 10, SETUP_WIZARD_ACTIVITY = 11, - SETTINGS_REVIEW_ACTIVITY = 12 + SETTINGS_REVIEW_ACTIVITY = 12, }; -bool ActivityName_IsValid(int value); -constexpr ActivityName ActivityName_MIN = UNKNOWN_ACTIVITY; -constexpr ActivityName ActivityName_MAX = SETTINGS_REVIEW_ACTIVITY; -constexpr int ActivityName_ARRAYSIZE = ActivityName_MAX + 1; -const std::string& ActivityName_Name(ActivityName value); -template -inline const std::string& ActivityName_Name(T enum_t_value) { +extern const uint32_t ActivityName_internal_data_[]; +inline constexpr ActivityName ActivityName_MIN = + static_cast(0); +inline constexpr ActivityName ActivityName_MAX = + static_cast(12); +inline bool ActivityName_IsValid(int value) { + return 0 <= value && value <= 12; +} +inline constexpr int ActivityName_ARRAYSIZE = 12 + 1; +const ::std::string& ActivityName_Name(ActivityName value); +template +const ::std::string& ActivityName_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ActivityName_Name."); - return ActivityName_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ActivityName_Name()."); + return ActivityName_Name(static_cast(value)); } bool ActivityName_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActivityName* value); + ::absl::string_view name, ActivityName* PROTOBUF_NONNULL value); enum ConsentType : int { CONSENT_TYPE_UNKNOWN = 0, CONSENT_TYPE_C11N = 1, - CONSENT_TYPE_DEVICE_CONTACT = 2 + CONSENT_TYPE_DEVICE_CONTACT = 2, }; -bool ConsentType_IsValid(int value); -constexpr ConsentType ConsentType_MIN = CONSENT_TYPE_UNKNOWN; -constexpr ConsentType ConsentType_MAX = CONSENT_TYPE_DEVICE_CONTACT; -constexpr int ConsentType_ARRAYSIZE = ConsentType_MAX + 1; -const std::string& ConsentType_Name(ConsentType value); -template -inline const std::string& ConsentType_Name(T enum_t_value) { +extern const uint32_t ConsentType_internal_data_[]; +inline constexpr ConsentType ConsentType_MIN = + static_cast(0); +inline constexpr ConsentType ConsentType_MAX = + static_cast(2); +inline bool ConsentType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ConsentType_ARRAYSIZE = 2 + 1; +const ::std::string& ConsentType_Name(ConsentType value); +template +const ::std::string& ConsentType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConsentType_Name."); - return ConsentType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConsentType_Name()."); + return ConsentType_Name(static_cast(value)); } bool ConsentType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConsentType* value); + ::absl::string_view name, ConsentType* PROTOBUF_NONNULL value); enum ConsentAcceptanceStatus : int { CONSENT_UNKNOWN_ACCEPT_STATUS = 0, CONSENT_ACCEPTED = 1, CONSENT_DECLINED = 2, - CONSENT_UNABLE_TO_ENABLE = 3 + CONSENT_UNABLE_TO_ENABLE = 3, }; -bool ConsentAcceptanceStatus_IsValid(int value); -constexpr ConsentAcceptanceStatus ConsentAcceptanceStatus_MIN = CONSENT_UNKNOWN_ACCEPT_STATUS; -constexpr ConsentAcceptanceStatus ConsentAcceptanceStatus_MAX = CONSENT_UNABLE_TO_ENABLE; -constexpr int ConsentAcceptanceStatus_ARRAYSIZE = ConsentAcceptanceStatus_MAX + 1; -const std::string& ConsentAcceptanceStatus_Name(ConsentAcceptanceStatus value); -template -inline const std::string& ConsentAcceptanceStatus_Name(T enum_t_value) { +extern const uint32_t ConsentAcceptanceStatus_internal_data_[]; +inline constexpr ConsentAcceptanceStatus ConsentAcceptanceStatus_MIN = + static_cast(0); +inline constexpr ConsentAcceptanceStatus ConsentAcceptanceStatus_MAX = + static_cast(3); +inline bool ConsentAcceptanceStatus_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ConsentAcceptanceStatus_ARRAYSIZE = 3 + 1; +const ::std::string& ConsentAcceptanceStatus_Name(ConsentAcceptanceStatus value); +template +const ::std::string& ConsentAcceptanceStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConsentAcceptanceStatus_Name."); - return ConsentAcceptanceStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ConsentAcceptanceStatus_Name()."); + return ConsentAcceptanceStatus_Name(static_cast(value)); } bool ConsentAcceptanceStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConsentAcceptanceStatus* value); + ::absl::string_view name, ConsentAcceptanceStatus* PROTOBUF_NONNULL value); enum ApkSource : int { UNKNOWN_APK_SOURCE = 0, APK_FROM_SD_CARD = 1, - INSTALLED_APP = 2 + INSTALLED_APP = 2, }; -bool ApkSource_IsValid(int value); -constexpr ApkSource ApkSource_MIN = UNKNOWN_APK_SOURCE; -constexpr ApkSource ApkSource_MAX = INSTALLED_APP; -constexpr int ApkSource_ARRAYSIZE = ApkSource_MAX + 1; -const std::string& ApkSource_Name(ApkSource value); -template -inline const std::string& ApkSource_Name(T enum_t_value) { +extern const uint32_t ApkSource_internal_data_[]; +inline constexpr ApkSource ApkSource_MIN = + static_cast(0); +inline constexpr ApkSource ApkSource_MAX = + static_cast(2); +inline bool ApkSource_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ApkSource_ARRAYSIZE = 2 + 1; +const ::std::string& ApkSource_Name(ApkSource value); +template +const ::std::string& ApkSource_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ApkSource_Name."); - return ApkSource_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ApkSource_Name()."); + return ApkSource_Name(static_cast(value)); } bool ApkSource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ApkSource* value); + ::absl::string_view name, ApkSource* PROTOBUF_NONNULL value); enum InstallAPKStatus : int { UNKNOWN_INSTALL_APK_STATUS = 0, FAIL_INSTALLATION = 1, - SUCCESS_INSTALLATION = 2 + SUCCESS_INSTALLATION = 2, }; -bool InstallAPKStatus_IsValid(int value); -constexpr InstallAPKStatus InstallAPKStatus_MIN = UNKNOWN_INSTALL_APK_STATUS; -constexpr InstallAPKStatus InstallAPKStatus_MAX = SUCCESS_INSTALLATION; -constexpr int InstallAPKStatus_ARRAYSIZE = InstallAPKStatus_MAX + 1; -const std::string& InstallAPKStatus_Name(InstallAPKStatus value); -template -inline const std::string& InstallAPKStatus_Name(T enum_t_value) { +extern const uint32_t InstallAPKStatus_internal_data_[]; +inline constexpr InstallAPKStatus InstallAPKStatus_MIN = + static_cast(0); +inline constexpr InstallAPKStatus InstallAPKStatus_MAX = + static_cast(2); +inline bool InstallAPKStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int InstallAPKStatus_ARRAYSIZE = 2 + 1; +const ::std::string& InstallAPKStatus_Name(InstallAPKStatus value); +template +const ::std::string& InstallAPKStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function InstallAPKStatus_Name."); - return InstallAPKStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to InstallAPKStatus_Name()."); + return InstallAPKStatus_Name(static_cast(value)); } bool InstallAPKStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InstallAPKStatus* value); + ::absl::string_view name, InstallAPKStatus* PROTOBUF_NONNULL value); enum VerifyAPKStatus : int { UNKNOWN_VERIFY_APK_STATUS = 0, NOT_INSTALLABLE = 1, INSTALLABLE = 2, - ALREADY_INSTALLED = 3 + ALREADY_INSTALLED = 3, }; -bool VerifyAPKStatus_IsValid(int value); -constexpr VerifyAPKStatus VerifyAPKStatus_MIN = UNKNOWN_VERIFY_APK_STATUS; -constexpr VerifyAPKStatus VerifyAPKStatus_MAX = ALREADY_INSTALLED; -constexpr int VerifyAPKStatus_ARRAYSIZE = VerifyAPKStatus_MAX + 1; -const std::string& VerifyAPKStatus_Name(VerifyAPKStatus value); -template -inline const std::string& VerifyAPKStatus_Name(T enum_t_value) { +extern const uint32_t VerifyAPKStatus_internal_data_[]; +inline constexpr VerifyAPKStatus VerifyAPKStatus_MIN = + static_cast(0); +inline constexpr VerifyAPKStatus VerifyAPKStatus_MAX = + static_cast(3); +inline bool VerifyAPKStatus_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int VerifyAPKStatus_ARRAYSIZE = 3 + 1; +const ::std::string& VerifyAPKStatus_Name(VerifyAPKStatus value); +template +const ::std::string& VerifyAPKStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function VerifyAPKStatus_Name."); - return VerifyAPKStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to VerifyAPKStatus_Name()."); + return VerifyAPKStatus_Name(static_cast(value)); } bool VerifyAPKStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VerifyAPKStatus* value); + ::absl::string_view name, VerifyAPKStatus* PROTOBUF_NONNULL value); enum ShowNotificationStatus : int { UNKNOWN_SHOW_NOTIFICATION_STATUS = 0, SHOW = 1, - NOT_SHOW = 2 + NOT_SHOW = 2, }; -bool ShowNotificationStatus_IsValid(int value); -constexpr ShowNotificationStatus ShowNotificationStatus_MIN = UNKNOWN_SHOW_NOTIFICATION_STATUS; -constexpr ShowNotificationStatus ShowNotificationStatus_MAX = NOT_SHOW; -constexpr int ShowNotificationStatus_ARRAYSIZE = ShowNotificationStatus_MAX + 1; -const std::string& ShowNotificationStatus_Name(ShowNotificationStatus value); -template -inline const std::string& ShowNotificationStatus_Name(T enum_t_value) { +extern const uint32_t ShowNotificationStatus_internal_data_[]; +inline constexpr ShowNotificationStatus ShowNotificationStatus_MIN = + static_cast(0); +inline constexpr ShowNotificationStatus ShowNotificationStatus_MAX = + static_cast(2); +inline bool ShowNotificationStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int ShowNotificationStatus_ARRAYSIZE = 2 + 1; +const ::std::string& ShowNotificationStatus_Name(ShowNotificationStatus value); +template +const ::std::string& ShowNotificationStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ShowNotificationStatus_Name."); - return ShowNotificationStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ShowNotificationStatus_Name()."); + return ShowNotificationStatus_Name(static_cast(value)); } bool ShowNotificationStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ShowNotificationStatus* value); + ::absl::string_view name, ShowNotificationStatus* PROTOBUF_NONNULL value); enum PermissionRequestResult : int { PERMISSION_UNKNOWN_REQUEST_RESULT = 0, PERMISSION_GRANTED = 1, PERMISSION_REJECTED = 2, - PERMISSION_UNABLE_TO_GRANT = 3 + PERMISSION_UNABLE_TO_GRANT = 3, }; -bool PermissionRequestResult_IsValid(int value); -constexpr PermissionRequestResult PermissionRequestResult_MIN = PERMISSION_UNKNOWN_REQUEST_RESULT; -constexpr PermissionRequestResult PermissionRequestResult_MAX = PERMISSION_UNABLE_TO_GRANT; -constexpr int PermissionRequestResult_ARRAYSIZE = PermissionRequestResult_MAX + 1; -const std::string& PermissionRequestResult_Name(PermissionRequestResult value); -template -inline const std::string& PermissionRequestResult_Name(T enum_t_value) { +extern const uint32_t PermissionRequestResult_internal_data_[]; +inline constexpr PermissionRequestResult PermissionRequestResult_MIN = + static_cast(0); +inline constexpr PermissionRequestResult PermissionRequestResult_MAX = + static_cast(3); +inline bool PermissionRequestResult_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int PermissionRequestResult_ARRAYSIZE = 3 + 1; +const ::std::string& PermissionRequestResult_Name(PermissionRequestResult value); +template +const ::std::string& PermissionRequestResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PermissionRequestResult_Name."); - return PermissionRequestResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PermissionRequestResult_Name()."); + return PermissionRequestResult_Name(static_cast(value)); } bool PermissionRequestResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestResult* value); + ::absl::string_view name, PermissionRequestResult* PROTOBUF_NONNULL value); enum PermissionRequestType : int { PERMISSION_UNKNOWN_TYPE = 0, PERMISSION_AIRPLANE_MODE_OFF = 1, PERMISSION_WIFI = 2, PERMISSION_BLUETOOTH = 3, PERMISSION_LOCATION = 4, - PERMISSION_WIFI_HOTSPOT = 5 + PERMISSION_WIFI_HOTSPOT = 5, }; -bool PermissionRequestType_IsValid(int value); -constexpr PermissionRequestType PermissionRequestType_MIN = PERMISSION_UNKNOWN_TYPE; -constexpr PermissionRequestType PermissionRequestType_MAX = PERMISSION_WIFI_HOTSPOT; -constexpr int PermissionRequestType_ARRAYSIZE = PermissionRequestType_MAX + 1; -const std::string& PermissionRequestType_Name(PermissionRequestType value); -template -inline const std::string& PermissionRequestType_Name(T enum_t_value) { +extern const uint32_t PermissionRequestType_internal_data_[]; +inline constexpr PermissionRequestType PermissionRequestType_MIN = + static_cast(0); +inline constexpr PermissionRequestType PermissionRequestType_MAX = + static_cast(5); +inline bool PermissionRequestType_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int PermissionRequestType_ARRAYSIZE = 5 + 1; +const ::std::string& PermissionRequestType_Name(PermissionRequestType value); +template +const ::std::string& PermissionRequestType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PermissionRequestType_Name."); - return PermissionRequestType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PermissionRequestType_Name()."); + return PermissionRequestType_Name(static_cast(value)); } bool PermissionRequestType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestType* value); + ::absl::string_view name, PermissionRequestType* PROTOBUF_NONNULL value); enum SharingUseCase : int { USE_CASE_UNKNOWN = 0, USE_CASE_NEARBY_SHARE = 1, @@ -918,42 +1325,52 @@ enum SharingUseCase : int { USE_CASE_APP_SHARE = 4, USE_CASE_QUICK_SETTING_FILE_SHARE = 5, USE_CASE_SETUP_WIZARD = 6, - USE_CASE_NEARBY_SHARE_WITH_QR_CODE PROTOBUF_DEPRECATED_ENUM = 7, - USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE = 8 + USE_CASE_NEARBY_SHARE_WITH_QR_CODE [[deprecated]] = 7, + USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE = 8, }; -bool SharingUseCase_IsValid(int value); -constexpr SharingUseCase SharingUseCase_MIN = USE_CASE_UNKNOWN; -constexpr SharingUseCase SharingUseCase_MAX = USE_CASE_REDIRECTED_FROM_BLUETOOTH_SHARE; -constexpr int SharingUseCase_ARRAYSIZE = SharingUseCase_MAX + 1; -const std::string& SharingUseCase_Name(SharingUseCase value); -template -inline const std::string& SharingUseCase_Name(T enum_t_value) { +extern const uint32_t SharingUseCase_internal_data_[]; +inline constexpr SharingUseCase SharingUseCase_MIN = + static_cast(0); +inline constexpr SharingUseCase SharingUseCase_MAX = + static_cast(8); +inline bool SharingUseCase_IsValid(int value) { + return 0 <= value && value <= 8; +} +inline constexpr int SharingUseCase_ARRAYSIZE = 8 + 1; +const ::std::string& SharingUseCase_Name(SharingUseCase value); +template +const ::std::string& SharingUseCase_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SharingUseCase_Name."); - return SharingUseCase_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SharingUseCase_Name()."); + return SharingUseCase_Name(static_cast(value)); } bool SharingUseCase_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingUseCase* value); + ::absl::string_view name, SharingUseCase* PROTOBUF_NONNULL value); enum AppCrashReason : int { - APP_CRASH_REASON_UNKNOWN = 0 + APP_CRASH_REASON_UNKNOWN = 0, }; -bool AppCrashReason_IsValid(int value); -constexpr AppCrashReason AppCrashReason_MIN = APP_CRASH_REASON_UNKNOWN; -constexpr AppCrashReason AppCrashReason_MAX = APP_CRASH_REASON_UNKNOWN; -constexpr int AppCrashReason_ARRAYSIZE = AppCrashReason_MAX + 1; -const std::string& AppCrashReason_Name(AppCrashReason value); -template -inline const std::string& AppCrashReason_Name(T enum_t_value) { +extern const uint32_t AppCrashReason_internal_data_[]; +inline constexpr AppCrashReason AppCrashReason_MIN = + static_cast(0); +inline constexpr AppCrashReason AppCrashReason_MAX = + static_cast(0); +inline bool AppCrashReason_IsValid(int value) { + return 0 <= value && value <= 0; +} +inline constexpr int AppCrashReason_ARRAYSIZE = 0 + 1; +const ::std::string& AppCrashReason_Name(AppCrashReason value); +template +const ::std::string& AppCrashReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AppCrashReason_Name."); - return AppCrashReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AppCrashReason_Name()."); + return AppCrashReason_Name(static_cast(value)); } bool AppCrashReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppCrashReason* value); + ::absl::string_view name, AppCrashReason* PROTOBUF_NONNULL value); enum AttachmentSourceType : int { ATTACHMENT_SOURCE_UNKNOWN = 0, ATTACHMENT_SOURCE_CONTEXT_MENU = 1, @@ -961,23 +1378,28 @@ enum AttachmentSourceType : int { ATTACHMENT_SOURCE_SELECT_FILES_BUTTON = 3, ATTACHMENT_SOURCE_PASTE = 4, ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON = 5, - ATTACHMENT_SOURCE_SHARE_ACTIVATION = 6 + ATTACHMENT_SOURCE_SHARE_ACTIVATION = 6, }; -bool AttachmentSourceType_IsValid(int value); -constexpr AttachmentSourceType AttachmentSourceType_MIN = ATTACHMENT_SOURCE_UNKNOWN; -constexpr AttachmentSourceType AttachmentSourceType_MAX = ATTACHMENT_SOURCE_SHARE_ACTIVATION; -constexpr int AttachmentSourceType_ARRAYSIZE = AttachmentSourceType_MAX + 1; -const std::string& AttachmentSourceType_Name(AttachmentSourceType value); -template -inline const std::string& AttachmentSourceType_Name(T enum_t_value) { +extern const uint32_t AttachmentSourceType_internal_data_[]; +inline constexpr AttachmentSourceType AttachmentSourceType_MIN = + static_cast(0); +inline constexpr AttachmentSourceType AttachmentSourceType_MAX = + static_cast(6); +inline bool AttachmentSourceType_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int AttachmentSourceType_ARRAYSIZE = 6 + 1; +const ::std::string& AttachmentSourceType_Name(AttachmentSourceType value); +template +const ::std::string& AttachmentSourceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AttachmentSourceType_Name."); - return AttachmentSourceType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AttachmentSourceType_Name()."); + return AttachmentSourceType_Name(static_cast(value)); } bool AttachmentSourceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentSourceType* value); + ::absl::string_view name, AttachmentSourceType* PROTOBUF_NONNULL value); enum PreferencesAction : int { PREFERENCES_ACTION_UNKNOWN = 0, PREFERENCES_ACTION_NO_ACTION = 1, @@ -990,107 +1412,132 @@ enum PreferencesAction : int { PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS = 8, PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS = 9, PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED = 10, - PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS = 11 + PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS = 11, }; -bool PreferencesAction_IsValid(int value); -constexpr PreferencesAction PreferencesAction_MIN = PREFERENCES_ACTION_UNKNOWN; -constexpr PreferencesAction PreferencesAction_MAX = PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS; -constexpr int PreferencesAction_ARRAYSIZE = PreferencesAction_MAX + 1; -const std::string& PreferencesAction_Name(PreferencesAction value); -template -inline const std::string& PreferencesAction_Name(T enum_t_value) { +extern const uint32_t PreferencesAction_internal_data_[]; +inline constexpr PreferencesAction PreferencesAction_MIN = + static_cast(0); +inline constexpr PreferencesAction PreferencesAction_MAX = + static_cast(11); +inline bool PreferencesAction_IsValid(int value) { + return 0 <= value && value <= 11; +} +inline constexpr int PreferencesAction_ARRAYSIZE = 11 + 1; +const ::std::string& PreferencesAction_Name(PreferencesAction value); +template +const ::std::string& PreferencesAction_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PreferencesAction_Name."); - return PreferencesAction_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PreferencesAction_Name()."); + return PreferencesAction_Name(static_cast(value)); } bool PreferencesAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesAction* value); + ::absl::string_view name, PreferencesAction* PROTOBUF_NONNULL value); enum PreferencesActionStatus : int { PREFERENCES_ACTION_STATUS_UNKNOWN = 0, PREFERENCES_ACTION_STATUS_SUCCESS = 1, - PREFERENCES_ACTION_STATUS_FAIL = 2 + PREFERENCES_ACTION_STATUS_FAIL = 2, }; -bool PreferencesActionStatus_IsValid(int value); -constexpr PreferencesActionStatus PreferencesActionStatus_MIN = PREFERENCES_ACTION_STATUS_UNKNOWN; -constexpr PreferencesActionStatus PreferencesActionStatus_MAX = PREFERENCES_ACTION_STATUS_FAIL; -constexpr int PreferencesActionStatus_ARRAYSIZE = PreferencesActionStatus_MAX + 1; -const std::string& PreferencesActionStatus_Name(PreferencesActionStatus value); -template -inline const std::string& PreferencesActionStatus_Name(T enum_t_value) { +extern const uint32_t PreferencesActionStatus_internal_data_[]; +inline constexpr PreferencesActionStatus PreferencesActionStatus_MIN = + static_cast(0); +inline constexpr PreferencesActionStatus PreferencesActionStatus_MAX = + static_cast(2); +inline bool PreferencesActionStatus_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int PreferencesActionStatus_ARRAYSIZE = 2 + 1; +const ::std::string& PreferencesActionStatus_Name(PreferencesActionStatus value); +template +const ::std::string& PreferencesActionStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PreferencesActionStatus_Name."); - return PreferencesActionStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PreferencesActionStatus_Name()."); + return PreferencesActionStatus_Name(static_cast(value)); } bool PreferencesActionStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesActionStatus* value); + ::absl::string_view name, PreferencesActionStatus* PROTOBUF_NONNULL value); enum FastInitState : int { FAST_INIT_UNKNOWN_STATE = 0, FAST_INIT_CLOSE_STATE = 1, FAST_INIT_FAR_STATE = 2, - FAST_INIT_LOST_STATE = 3 + FAST_INIT_LOST_STATE = 3, }; -bool FastInitState_IsValid(int value); -constexpr FastInitState FastInitState_MIN = FAST_INIT_UNKNOWN_STATE; -constexpr FastInitState FastInitState_MAX = FAST_INIT_LOST_STATE; -constexpr int FastInitState_ARRAYSIZE = FastInitState_MAX + 1; -const std::string& FastInitState_Name(FastInitState value); -template -inline const std::string& FastInitState_Name(T enum_t_value) { +extern const uint32_t FastInitState_internal_data_[]; +inline constexpr FastInitState FastInitState_MIN = + static_cast(0); +inline constexpr FastInitState FastInitState_MAX = + static_cast(3); +inline bool FastInitState_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int FastInitState_ARRAYSIZE = 3 + 1; +const ::std::string& FastInitState_Name(FastInitState value); +template +const ::std::string& FastInitState_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastInitState_Name."); - return FastInitState_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to FastInitState_Name()."); + return FastInitState_Name(static_cast(value)); } bool FastInitState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastInitState* value); + ::absl::string_view name, FastInitState* PROTOBUF_NONNULL value); enum FastInitType : int { FAST_INIT_UNKNOWN_TYPE = 0, FAST_INIT_NOTIFY_TYPE = 1, - FAST_INIT_SILENT_TYPE = 2 + FAST_INIT_SILENT_TYPE = 2, }; -bool FastInitType_IsValid(int value); -constexpr FastInitType FastInitType_MIN = FAST_INIT_UNKNOWN_TYPE; -constexpr FastInitType FastInitType_MAX = FAST_INIT_SILENT_TYPE; -constexpr int FastInitType_ARRAYSIZE = FastInitType_MAX + 1; -const std::string& FastInitType_Name(FastInitType value); -template -inline const std::string& FastInitType_Name(T enum_t_value) { +extern const uint32_t FastInitType_internal_data_[]; +inline constexpr FastInitType FastInitType_MIN = + static_cast(0); +inline constexpr FastInitType FastInitType_MAX = + static_cast(2); +inline bool FastInitType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int FastInitType_ARRAYSIZE = 2 + 1; +const ::std::string& FastInitType_Name(FastInitType value); +template +const ::std::string& FastInitType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastInitType_Name."); - return FastInitType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to FastInitType_Name()."); + return FastInitType_Name(static_cast(value)); } bool FastInitType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastInitType* value); + ::absl::string_view name, FastInitType* PROTOBUF_NONNULL value); enum DesktopNotification : int { DESKTOP_NOTIFICATION_UNKNOWN = 0, DESKTOP_NOTIFICATION_CONNECTING = 1, DESKTOP_NOTIFICATION_PROGRESS = 2, DESKTOP_NOTIFICATION_ACCEPT = 3, DESKTOP_NOTIFICATION_RECEIVED = 4, - DESKTOP_NOTIFICATION_ERROR = 5 + DESKTOP_NOTIFICATION_ERROR = 5, }; -bool DesktopNotification_IsValid(int value); -constexpr DesktopNotification DesktopNotification_MIN = DESKTOP_NOTIFICATION_UNKNOWN; -constexpr DesktopNotification DesktopNotification_MAX = DESKTOP_NOTIFICATION_ERROR; -constexpr int DesktopNotification_ARRAYSIZE = DesktopNotification_MAX + 1; -const std::string& DesktopNotification_Name(DesktopNotification value); -template -inline const std::string& DesktopNotification_Name(T enum_t_value) { +extern const uint32_t DesktopNotification_internal_data_[]; +inline constexpr DesktopNotification DesktopNotification_MIN = + static_cast(0); +inline constexpr DesktopNotification DesktopNotification_MAX = + static_cast(5); +inline bool DesktopNotification_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int DesktopNotification_ARRAYSIZE = 5 + 1; +const ::std::string& DesktopNotification_Name(DesktopNotification value); +template +const ::std::string& DesktopNotification_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DesktopNotification_Name."); - return DesktopNotification_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DesktopNotification_Name()."); + return DesktopNotification_Name(static_cast(value)); } bool DesktopNotification_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DesktopNotification* value); + ::absl::string_view name, DesktopNotification* PROTOBUF_NONNULL value); enum DesktopTransferEventType : int { DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN = 0, DESKTOP_TRANSFER_EVENT_RECEIVE_TYPE_ACCEPT = 1, @@ -1101,23 +1548,28 @@ enum DesktopTransferEventType : int { DESKTOP_TRANSFER_EVENT_SEND_TYPE_SELECT_A_DEVICE = 6, DESKTOP_TRANSFER_EVENT_SEND_TYPE_PROGRESS = 7, DESKTOP_TRANSFER_EVENT_SEND_TYPE_SENT = 8, - DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR = 9 + DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR = 9, }; -bool DesktopTransferEventType_IsValid(int value); -constexpr DesktopTransferEventType DesktopTransferEventType_MIN = DESKTOP_TRANSFER_EVENT_TYPE_UNKNOWN; -constexpr DesktopTransferEventType DesktopTransferEventType_MAX = DESKTOP_TRANSFER_EVENT_SEND_TYPE_ERROR; -constexpr int DesktopTransferEventType_ARRAYSIZE = DesktopTransferEventType_MAX + 1; -const std::string& DesktopTransferEventType_Name(DesktopTransferEventType value); -template -inline const std::string& DesktopTransferEventType_Name(T enum_t_value) { +extern const uint32_t DesktopTransferEventType_internal_data_[]; +inline constexpr DesktopTransferEventType DesktopTransferEventType_MIN = + static_cast(0); +inline constexpr DesktopTransferEventType DesktopTransferEventType_MAX = + static_cast(9); +inline bool DesktopTransferEventType_IsValid(int value) { + return 0 <= value && value <= 9; +} +inline constexpr int DesktopTransferEventType_ARRAYSIZE = 9 + 1; +const ::std::string& DesktopTransferEventType_Name(DesktopTransferEventType value); +template +const ::std::string& DesktopTransferEventType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DesktopTransferEventType_Name."); - return DesktopTransferEventType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DesktopTransferEventType_Name()."); + return DesktopTransferEventType_Name(static_cast(value)); } bool DesktopTransferEventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DesktopTransferEventType* value); + ::absl::string_view name, DesktopTransferEventType* PROTOBUF_NONNULL value); enum DecryptCertificateFailureStatus : int { DECRYPT_CERT_UNKNOWN_FAILURE = 0, DECRYPT_CERT_NO_SUCH_ALGORITHM_FAILURE = 1, @@ -1125,87 +1577,107 @@ enum DecryptCertificateFailureStatus : int { DECRYPT_CERT_INVALID_KEY_FAILURE = 3, DECRYPT_CERT_INVALID_ALGORITHM_PARAMETER_FAILURE = 4, DECRYPT_CERT_ILLEGAL_BLOCK_SIZE_FAILURE = 5, - DECRYPT_CERT_BAD_PADDING_FAILURE = 6 + DECRYPT_CERT_BAD_PADDING_FAILURE = 6, }; -bool DecryptCertificateFailureStatus_IsValid(int value); -constexpr DecryptCertificateFailureStatus DecryptCertificateFailureStatus_MIN = DECRYPT_CERT_UNKNOWN_FAILURE; -constexpr DecryptCertificateFailureStatus DecryptCertificateFailureStatus_MAX = DECRYPT_CERT_BAD_PADDING_FAILURE; -constexpr int DecryptCertificateFailureStatus_ARRAYSIZE = DecryptCertificateFailureStatus_MAX + 1; -const std::string& DecryptCertificateFailureStatus_Name(DecryptCertificateFailureStatus value); -template -inline const std::string& DecryptCertificateFailureStatus_Name(T enum_t_value) { +extern const uint32_t DecryptCertificateFailureStatus_internal_data_[]; +inline constexpr DecryptCertificateFailureStatus DecryptCertificateFailureStatus_MIN = + static_cast(0); +inline constexpr DecryptCertificateFailureStatus DecryptCertificateFailureStatus_MAX = + static_cast(6); +inline bool DecryptCertificateFailureStatus_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int DecryptCertificateFailureStatus_ARRAYSIZE = 6 + 1; +const ::std::string& DecryptCertificateFailureStatus_Name(DecryptCertificateFailureStatus value); +template +const ::std::string& DecryptCertificateFailureStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DecryptCertificateFailureStatus_Name."); - return DecryptCertificateFailureStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DecryptCertificateFailureStatus_Name()."); + return DecryptCertificateFailureStatus_Name(static_cast(value)); } bool DecryptCertificateFailureStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DecryptCertificateFailureStatus* value); + ::absl::string_view name, DecryptCertificateFailureStatus* PROTOBUF_NONNULL value); enum ContactAccess : int { CONTACT_ACCESS_UNKNOWN = 0, CONTACT_ACCESS_NO_CONTACT_UPLOADED = 1, CONTACT_ACCESS_ONLY_UPLOAD_GOOGLE_CONTACT = 2, CONTACT_ACCESS_UPLOAD_CONTACT_FOR_DEVICE_CONTACT_CONSENT = 3, - CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT = 4 + CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT = 4, }; -bool ContactAccess_IsValid(int value); -constexpr ContactAccess ContactAccess_MIN = CONTACT_ACCESS_UNKNOWN; -constexpr ContactAccess ContactAccess_MAX = CONTACT_ACCESS_UPLOAD_CONTACT_FOR_QUICK_SHARE_CONSENT; -constexpr int ContactAccess_ARRAYSIZE = ContactAccess_MAX + 1; -const std::string& ContactAccess_Name(ContactAccess value); -template -inline const std::string& ContactAccess_Name(T enum_t_value) { +extern const uint32_t ContactAccess_internal_data_[]; +inline constexpr ContactAccess ContactAccess_MIN = + static_cast(0); +inline constexpr ContactAccess ContactAccess_MAX = + static_cast(4); +inline bool ContactAccess_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int ContactAccess_ARRAYSIZE = 4 + 1; +const ::std::string& ContactAccess_Name(ContactAccess value); +template +const ::std::string& ContactAccess_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ContactAccess_Name."); - return ContactAccess_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ContactAccess_Name()."); + return ContactAccess_Name(static_cast(value)); } bool ContactAccess_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ContactAccess* value); + ::absl::string_view name, ContactAccess* PROTOBUF_NONNULL value); enum IdentityVerification : int { IDENTITY_VERIFICATION_UNKNOWN = 0, IDENTITY_VERIFICATION_NO_PHONE_NUMBER_VERIFIED = 1, IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_NOT_LINKED_TO_GAIA = 2, - IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA = 3 + IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA = 3, }; -bool IdentityVerification_IsValid(int value); -constexpr IdentityVerification IdentityVerification_MIN = IDENTITY_VERIFICATION_UNKNOWN; -constexpr IdentityVerification IdentityVerification_MAX = IDENTITY_VERIFICATION_PHONE_NUMBER_VERIFIED_LINKED_TO_QS_GAIA; -constexpr int IdentityVerification_ARRAYSIZE = IdentityVerification_MAX + 1; -const std::string& IdentityVerification_Name(IdentityVerification value); -template -inline const std::string& IdentityVerification_Name(T enum_t_value) { +extern const uint32_t IdentityVerification_internal_data_[]; +inline constexpr IdentityVerification IdentityVerification_MIN = + static_cast(0); +inline constexpr IdentityVerification IdentityVerification_MAX = + static_cast(3); +inline bool IdentityVerification_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int IdentityVerification_ARRAYSIZE = 3 + 1; +const ::std::string& IdentityVerification_Name(IdentityVerification value); +template +const ::std::string& IdentityVerification_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function IdentityVerification_Name."); - return IdentityVerification_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to IdentityVerification_Name()."); + return IdentityVerification_Name(static_cast(value)); } bool IdentityVerification_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IdentityVerification* value); + ::absl::string_view name, IdentityVerification* PROTOBUF_NONNULL value); enum ButtonStatus : int { BUTTON_STATUS_UNKNOWN = 0, BUTTON_STATUS_CLICK_ACCEPT = 1, BUTTON_STATUS_CLICK_REJECT = 2, - BUTTON_STATUS_IGNORE = 3 + BUTTON_STATUS_IGNORE = 3, }; -bool ButtonStatus_IsValid(int value); -constexpr ButtonStatus ButtonStatus_MIN = BUTTON_STATUS_UNKNOWN; -constexpr ButtonStatus ButtonStatus_MAX = BUTTON_STATUS_IGNORE; -constexpr int ButtonStatus_ARRAYSIZE = ButtonStatus_MAX + 1; -const std::string& ButtonStatus_Name(ButtonStatus value); -template -inline const std::string& ButtonStatus_Name(T enum_t_value) { +extern const uint32_t ButtonStatus_internal_data_[]; +inline constexpr ButtonStatus ButtonStatus_MIN = + static_cast(0); +inline constexpr ButtonStatus ButtonStatus_MAX = + static_cast(3); +inline bool ButtonStatus_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ButtonStatus_ARRAYSIZE = 3 + 1; +const ::std::string& ButtonStatus_Name(ButtonStatus value); +template +const ::std::string& ButtonStatus_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ButtonStatus_Name."); - return ButtonStatus_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ButtonStatus_Name()."); + return ButtonStatus_Name(static_cast(value)); } bool ButtonStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButtonStatus* value); + ::absl::string_view name, ButtonStatus* PROTOBUF_NONNULL value); enum CloudCreateSharingResult : int { CLOUD_CREATE_SHARING_RESULT_UNKNOWN = 0, CLOUD_CREATE_SHARING_RESULT_SUCCESS = 1, @@ -1216,23 +1688,29 @@ enum CloudCreateSharingResult : int { CLOUD_CREATE_SHARING_RESULT_INVALID_ARGUMENT = 6, CLOUD_CREATE_SHARING_RESULT_REMOTE_ERROR = 7, CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_COUNT = 8, - CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE = 9 + CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE = 9, + CLOUD_CREATE_SHARING_RESULT_SUCCESS_NO_NOTIFICATION = 10, }; -bool CloudCreateSharingResult_IsValid(int value); -constexpr CloudCreateSharingResult CloudCreateSharingResult_MIN = CLOUD_CREATE_SHARING_RESULT_UNKNOWN; -constexpr CloudCreateSharingResult CloudCreateSharingResult_MAX = CLOUD_CREATE_SHARING_RESULT_FILE_LIMIT_EXCEED_SIZE; -constexpr int CloudCreateSharingResult_ARRAYSIZE = CloudCreateSharingResult_MAX + 1; -const std::string& CloudCreateSharingResult_Name(CloudCreateSharingResult value); -template -inline const std::string& CloudCreateSharingResult_Name(T enum_t_value) { +extern const uint32_t CloudCreateSharingResult_internal_data_[]; +inline constexpr CloudCreateSharingResult CloudCreateSharingResult_MIN = + static_cast(0); +inline constexpr CloudCreateSharingResult CloudCreateSharingResult_MAX = + static_cast(10); +inline bool CloudCreateSharingResult_IsValid(int value) { + return 0 <= value && value <= 10; +} +inline constexpr int CloudCreateSharingResult_ARRAYSIZE = 10 + 1; +const ::std::string& CloudCreateSharingResult_Name(CloudCreateSharingResult value); +template +const ::std::string& CloudCreateSharingResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CloudCreateSharingResult_Name."); - return CloudCreateSharingResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to CloudCreateSharingResult_Name()."); + return CloudCreateSharingResult_Name(static_cast(value)); } bool CloudCreateSharingResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudCreateSharingResult* value); + ::absl::string_view name, CloudCreateSharingResult* PROTOBUF_NONNULL value); enum CloudRegisterReceiverResult : int { CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN = 0, CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS = 1, @@ -1250,120 +1728,186 @@ enum CloudRegisterReceiverResult : int { CLOUD_REGISTER_RECEIVER_RESULT_ABORTED = 13, CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE = 14, CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED = 15, - CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS = 16 + CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS = 16, }; -bool CloudRegisterReceiverResult_IsValid(int value); -constexpr CloudRegisterReceiverResult CloudRegisterReceiverResult_MIN = CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN; -constexpr CloudRegisterReceiverResult CloudRegisterReceiverResult_MAX = CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS; -constexpr int CloudRegisterReceiverResult_ARRAYSIZE = CloudRegisterReceiverResult_MAX + 1; -const std::string& CloudRegisterReceiverResult_Name(CloudRegisterReceiverResult value); -template -inline const std::string& CloudRegisterReceiverResult_Name(T enum_t_value) { +extern const uint32_t CloudRegisterReceiverResult_internal_data_[]; +inline constexpr CloudRegisterReceiverResult CloudRegisterReceiverResult_MIN = + static_cast(0); +inline constexpr CloudRegisterReceiverResult CloudRegisterReceiverResult_MAX = + static_cast(16); +inline bool CloudRegisterReceiverResult_IsValid(int value) { + return 0 <= value && value <= 16; +} +inline constexpr int CloudRegisterReceiverResult_ARRAYSIZE = 16 + 1; +const ::std::string& CloudRegisterReceiverResult_Name(CloudRegisterReceiverResult value); +template +const ::std::string& CloudRegisterReceiverResult_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CloudRegisterReceiverResult_Name."); - return CloudRegisterReceiverResult_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to CloudRegisterReceiverResult_Name()."); + return CloudRegisterReceiverResult_Name(static_cast(value)); } bool CloudRegisterReceiverResult_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudRegisterReceiverResult* value); + ::absl::string_view name, CloudRegisterReceiverResult* PROTOBUF_NONNULL value); enum CloudActionType : int { CLOUD_ACTION_TYPE_UNKNOWN = 0, CLOUD_ACTION_TYPE_NORMAL = 1, - CLOUD_ACTION_TYPE_RETRY = 2 + CLOUD_ACTION_TYPE_RETRY = 2, }; -bool CloudActionType_IsValid(int value); -constexpr CloudActionType CloudActionType_MIN = CLOUD_ACTION_TYPE_UNKNOWN; -constexpr CloudActionType CloudActionType_MAX = CLOUD_ACTION_TYPE_RETRY; -constexpr int CloudActionType_ARRAYSIZE = CloudActionType_MAX + 1; -const std::string& CloudActionType_Name(CloudActionType value); -template -inline const std::string& CloudActionType_Name(T enum_t_value) { +extern const uint32_t CloudActionType_internal_data_[]; +inline constexpr CloudActionType CloudActionType_MIN = + static_cast(0); +inline constexpr CloudActionType CloudActionType_MAX = + static_cast(2); +inline bool CloudActionType_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int CloudActionType_ARRAYSIZE = 2 + 1; +const ::std::string& CloudActionType_Name(CloudActionType value); +template +const ::std::string& CloudActionType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CloudActionType_Name."); - return CloudActionType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to CloudActionType_Name()."); + return CloudActionType_Name(static_cast(value)); } bool CloudActionType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CloudActionType* value); + ::absl::string_view name, CloudActionType* PROTOBUF_NONNULL value); + // =================================================================== + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace sharing } // namespace proto } // namespace nearby } // namespace location -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::location::nearby::proto::sharing::EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::EventCategory> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::NearbySharingStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::Visibility> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DataUsage> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::EstablishConnectionStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::AttachmentTransmissionStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConnectionLayerStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::SessionStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ResponseToIntroduction> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DeviceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::OSType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DeviceRelationship> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::LogSource> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ServerActionName> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ServerResponseState> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::SyncPurpose> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ClientRole> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ScanType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ParsingFailedType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::AdvertisingMode> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DiscoveryMode> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ActivityName> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentAcceptanceStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ApkSource> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::InstallAPKStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::VerifyAPKStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ShowNotificationStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::PermissionRequestResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::PermissionRequestType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::SharingUseCase> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::AppCrashReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::AttachmentSourceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::PreferencesAction> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::PreferencesActionStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::FastInitState> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::FastInitType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DesktopNotification> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DesktopTransferEventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::DecryptCertificateFailureStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ContactAccess> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::IdentityVerification> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::ButtonStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::CloudCreateSharingResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::CloudRegisterReceiverResult> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::proto::sharing::CloudActionType> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::location::nearby::proto::sharing::EventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::EventCategory> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::NearbySharingStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::Visibility> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DataUsage> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::EstablishConnectionStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::AttachmentTransmissionStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ConnectionLayerStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::SessionStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ResponseToIntroduction> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::OSType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DeviceRelationship> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::LogSource> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ServerActionName> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ServerResponseState> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::SyncPurpose> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ClientRole> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ScanType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ParsingFailedType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::AdvertisingMode> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DiscoveryMode> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ActivityName> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ConsentType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ConsentAcceptanceStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ApkSource> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::InstallAPKStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::VerifyAPKStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ShowNotificationStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::PermissionRequestResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::PermissionRequestType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::SharingUseCase> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::AppCrashReason> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::AttachmentSourceType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::PreferencesAction> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::PreferencesActionStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::FastInitState> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::FastInitType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DesktopNotification> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DesktopTransferEventType> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::DecryptCertificateFailureStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ContactAccess> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::IdentityVerification> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::ButtonStatus> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::CloudCreateSharingResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::CloudRegisterReceiverResult> : std::true_type {}; +template <> +struct is_proto_enum<::location::nearby::proto::sharing::CloudActionType> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fsharing_5fenums_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fsharing_5fenums_2eproto_2epb_2eh diff --git a/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.cc b/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.cc index 8d7986ed..61e5b2df 100644 --- a/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.cc +++ b/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.cc @@ -1,1458 +1,2644 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: sharing/proto/analytics/nearby_sharing_log.proto +// Protobuf C++ Version: 6.33.3 #include "sharing/proto/analytics/nearby_sharing_log.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace nearby { namespace sharing { namespace analytics { namespace proto { -constexpr SharingLog_AppInfo::SharingLog_AppInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : app_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , app_language_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , update_track_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct SharingLog_AppInfoDefaultTypeInternal { - constexpr SharingLog_AppInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AppInfoDefaultTypeInternal() {} - union { - SharingLog_AppInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AppInfoDefaultTypeInternal _SharingLog_AppInfo_default_instance_; -constexpr SharingLog_DeviceSettings::SharingLog_DeviceSettings( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : visibility_(0) - , data_usage_(0) +inline constexpr SharingLog_WifiCredentialsAttachment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + batch_id_{::int64_t{0}}, + security_type_{0}, + source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {} - , device_name_size_(0) - , is_show_notification_enabled_(false) - , is_bt_enabled_(false) - , is_location_enabled_(false) - , is_wifi_enabled_(false) - , first_successful_transfer_date_(0) - , previous_successful_transfer_date_(0) - , lifetime_transfer_count_(0) - , contact_access_(0) - - , identity_verification_(0) -{} -struct SharingLog_DeviceSettingsDefaultTypeInternal { - constexpr SharingLog_DeviceSettingsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DeviceSettingsDefaultTypeInternal() {} - union { - SharingLog_DeviceSettings _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DeviceSettingsDefaultTypeInternal _SharingLog_DeviceSettings_default_instance_; -constexpr SharingLog_PreferencesUsage::SharingLog_PreferencesUsage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : action_(0) - - , action_status_(0) - - , prev_sub_action_(0) - - , next_sub_action_(0) -{} -struct SharingLog_PreferencesUsageDefaultTypeInternal { - constexpr SharingLog_PreferencesUsageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_PreferencesUsageDefaultTypeInternal() {} - union { - SharingLog_PreferencesUsage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_PreferencesUsageDefaultTypeInternal _SharingLog_PreferencesUsage_default_instance_; -constexpr SharingLog_UnknownEvent::SharingLog_UnknownEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_UnknownEventDefaultTypeInternal { - constexpr SharingLog_UnknownEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_UnknownEventDefaultTypeInternal() {} - union { - SharingLog_UnknownEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_UnknownEventDefaultTypeInternal _SharingLog_UnknownEvent_default_instance_; -constexpr SharingLog_EstablishConnection::SharingLog_EstablishConnection( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , share_target_info_(nullptr) - , qr_code_receiver_connect_latency_(nullptr) - , session_id_(int64_t{0}) - , status_(0) - - , transfer_position_(0) - , duration_millis_(int64_t{0}) - , concurrent_connections_(0) - , qr_code_flow_(false) - , is_incoming_connection_(false){} -struct SharingLog_EstablishConnectionDefaultTypeInternal { - constexpr SharingLog_EstablishConnectionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_EstablishConnectionDefaultTypeInternal() {} - union { - SharingLog_EstablishConnection _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_EstablishConnectionDefaultTypeInternal _SharingLog_EstablishConnection_default_instance_; -constexpr SharingLog_AcceptAgreements::SharingLog_AcceptAgreements( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_AcceptAgreementsDefaultTypeInternal { - constexpr SharingLog_AcceptAgreementsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AcceptAgreementsDefaultTypeInternal() {} - union { - SharingLog_AcceptAgreements _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AcceptAgreementsDefaultTypeInternal _SharingLog_AcceptAgreements_default_instance_; -constexpr SharingLog_DeclineAgreements::SharingLog_DeclineAgreements( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DeclineAgreementsDefaultTypeInternal { - constexpr SharingLog_DeclineAgreementsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DeclineAgreementsDefaultTypeInternal() {} - union { - SharingLog_DeclineAgreements _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DeclineAgreementsDefaultTypeInternal _SharingLog_DeclineAgreements_default_instance_; -constexpr SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_(0) - - , has_opted_in_(false){} -struct SharingLog_EnableNearbySharingDefaultTypeInternal { - constexpr SharingLog_EnableNearbySharingDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_EnableNearbySharingDefaultTypeInternal() {} - union { - SharingLog_EnableNearbySharing _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_EnableNearbySharingDefaultTypeInternal _SharingLog_EnableNearbySharing_default_instance_; -constexpr SharingLog_SetAccount::SharingLog_SetAccount( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : activity_name_(0) -{} -struct SharingLog_SetAccountDefaultTypeInternal { - constexpr SharingLog_SetAccountDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SetAccountDefaultTypeInternal() {} - union { - SharingLog_SetAccount _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SetAccountDefaultTypeInternal _SharingLog_SetAccount_default_instance_; -constexpr SharingLog_SetVisibility::SharingLog_SetVisibility( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : visibility_(0) - - , source_visibility_(0) - - , duration_millis_(int64_t{0}) - , source_activity_name_(0) -{} -struct SharingLog_SetVisibilityDefaultTypeInternal { - constexpr SharingLog_SetVisibilityDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SetVisibilityDefaultTypeInternal() {} - union { - SharingLog_SetVisibility _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SetVisibilityDefaultTypeInternal _SharingLog_SetVisibility_default_instance_; -constexpr SharingLog_SetDataUsage::SharingLog_SetDataUsage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : original_preference_(0) - - , preference_(0) -{} -struct SharingLog_SetDataUsageDefaultTypeInternal { - constexpr SharingLog_SetDataUsageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SetDataUsageDefaultTypeInternal() {} - union { - SharingLog_SetDataUsage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SetDataUsageDefaultTypeInternal _SharingLog_SetDataUsage_default_instance_; -constexpr SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , session_id_(int64_t{0}) - , status_(0) - - , scan_type_(0) - - , flow_id_(int64_t{0}) - , use_qr_code_(false){} -struct SharingLog_ScanForShareTargetsStartDefaultTypeInternal { - constexpr SharingLog_ScanForShareTargetsStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ScanForShareTargetsStartDefaultTypeInternal() {} - union { - SharingLog_ScanForShareTargetsStart _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ScanForShareTargetsStartDefaultTypeInternal _SharingLog_ScanForShareTargetsStart_default_instance_; -constexpr SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_id_(int64_t{0}){} -struct SharingLog_ScanForShareTargetsEndDefaultTypeInternal { - constexpr SharingLog_ScanForShareTargetsEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ScanForShareTargetsEndDefaultTypeInternal() {} - union { - SharingLog_ScanForShareTargetsEnd _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ScanForShareTargetsEndDefaultTypeInternal _SharingLog_ScanForShareTargetsEnd_default_instance_; -constexpr SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , session_id_(int64_t{0}) - , visibility_(0) - - , status_(0) - - , data_usage_(0) - - , device_name_size_(0) - , advertising_mode_(0) - - , qr_code_flow_(false){} -struct SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal { - constexpr SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() {} - union { - SharingLog_AdvertiseDevicePresenceStart _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceStart_default_instance_; -constexpr SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_id_(int64_t{0}){} -struct SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal { - constexpr SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() {} - union { - SharingLog_AdvertiseDevicePresenceEnd _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceEnd_default_instance_; -constexpr SharingLog_SendFastInitialization::SharingLog_SendFastInitialization( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_SendFastInitializationDefaultTypeInternal { - constexpr SharingLog_SendFastInitializationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendFastInitializationDefaultTypeInternal() {} - union { - SharingLog_SendFastInitialization _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendFastInitializationDefaultTypeInternal _SharingLog_SendFastInitialization_default_instance_; -constexpr SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : time_elapse_since_screen_unlock_millis_(int64_t{0}) - , notifications_enabled_(false) - , notifications_filtered_(false){} -struct SharingLog_ReceiveFastInitializationDefaultTypeInternal { - constexpr SharingLog_ReceiveFastInitializationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ReceiveFastInitializationDefaultTypeInternal() {} - union { - SharingLog_ReceiveFastInitialization _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ReceiveFastInitializationDefaultTypeInternal _SharingLog_ReceiveFastInitialization_default_instance_; -constexpr SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DismissFastInitializationDefaultTypeInternal { - constexpr SharingLog_DismissFastInitializationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DismissFastInitializationDefaultTypeInternal() {} - union { - SharingLog_DismissFastInitialization _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DismissFastInitializationDefaultTypeInternal _SharingLog_DismissFastInitialization_default_instance_; -constexpr SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_AutoDismissFastInitializationDefaultTypeInternal { - constexpr SharingLog_AutoDismissFastInitializationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AutoDismissFastInitializationDefaultTypeInternal() {} - union { - SharingLog_AutoDismissFastInitialization _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AutoDismissFastInitializationDefaultTypeInternal _SharingLog_AutoDismissFastInitialization_default_instance_; -constexpr SharingLog_EventMetadata::SharingLog_EventMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : cloud_sharing_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , cloud_receiver_session_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , external_provider_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , external_provider_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , use_case_(0) - - , initial_opt_in_(false) - , opt_in_(false) - , initial_enable_status_(false) - , flow_id_(int64_t{0}) - , session_id_(int64_t{0}) - , vendor_id_(0){} -struct SharingLog_EventMetadataDefaultTypeInternal { - constexpr SharingLog_EventMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_EventMetadataDefaultTypeInternal() {} - union { - SharingLog_EventMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_EventMetadataDefaultTypeInternal _SharingLog_EventMetadata_default_instance_; -constexpr SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , cloud_receiver_session_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , share_target_info_(nullptr) - , duration_since_scanning_(nullptr) - , session_id_(int64_t{0}) - , flow_id_(int64_t{0}) - , scan_type_(0) - - , latency_since_activity_start_millis_(int64_t{-1}){} -struct SharingLog_DiscoverShareTargetDefaultTypeInternal { - constexpr SharingLog_DiscoverShareTargetDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DiscoverShareTargetDefaultTypeInternal() {} - union { - SharingLog_DiscoverShareTarget _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DiscoverShareTargetDefaultTypeInternal _SharingLog_DiscoverShareTarget_default_instance_; -constexpr SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , duration_since_scanning_(nullptr) - , duration_since_last_sync_(nullptr) - , session_id_(int64_t{0}) - , flow_id_(int64_t{0}) - , scan_type_(0) - - , parsing_failed_type_(0) - - , discovery_mode_(0) - - , latency_since_activity_start_millis_(int64_t{-1}){} -struct SharingLog_ParsingFailedEndpointIdDefaultTypeInternal { - constexpr SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() {} - union { - SharingLog_ParsingFailedEndpointId _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ParsingFailedEndpointIdDefaultTypeInternal _SharingLog_ParsingFailedEndpointId_default_instance_; -constexpr SharingLog_DescribeAttachments::SharingLog_DescribeAttachments( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , download_duration_(nullptr){} -struct SharingLog_DescribeAttachmentsDefaultTypeInternal { - constexpr SharingLog_DescribeAttachmentsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DescribeAttachmentsDefaultTypeInternal() {} - union { - SharingLog_DescribeAttachments _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DescribeAttachmentsDefaultTypeInternal _SharingLog_DescribeAttachments_default_instance_; -constexpr SharingLog_SendIntroduction::SharingLog_SendIntroduction( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : share_target_info_(nullptr) - , session_id_(int64_t{0}) - , transfer_position_(0) - , concurrent_connections_(0){} -struct SharingLog_SendIntroductionDefaultTypeInternal { - constexpr SharingLog_SendIntroductionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendIntroductionDefaultTypeInternal() {} - union { - SharingLog_SendIntroduction _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendIntroductionDefaultTypeInternal _SharingLog_SendIntroduction_default_instance_; -constexpr SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , share_target_info_(nullptr) - , session_id_(int64_t{0}){} -struct SharingLog_ReceiveIntroductionDefaultTypeInternal { - constexpr SharingLog_ReceiveIntroductionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ReceiveIntroductionDefaultTypeInternal() {} - union { - SharingLog_ReceiveIntroduction _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ReceiveIntroductionDefaultTypeInternal _SharingLog_ReceiveIntroduction_default_instance_; -constexpr SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_id_(int64_t{0}) - , action_(0) - - , qr_code_flow_(false){} -struct SharingLog_RespondToIntroductionDefaultTypeInternal { - constexpr SharingLog_RespondToIntroductionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_RespondToIntroductionDefaultTypeInternal() {} - union { - SharingLog_RespondToIntroduction _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_RespondToIntroductionDefaultTypeInternal _SharingLog_RespondToIntroduction_default_instance_; -constexpr SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , share_target_info_(nullptr) - , session_id_(int64_t{0}) - , transfer_position_(0) - , concurrent_connections_(0) - , qr_code_flow_(false) - , advanced_protection_enabled_(false) - , advanced_protection_mismatch_(false){} -struct SharingLog_SendAttachmentsStartDefaultTypeInternal { - constexpr SharingLog_SendAttachmentsStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendAttachmentsStartDefaultTypeInternal() {} - union { - SharingLog_SendAttachmentsStart _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendAttachmentsStartDefaultTypeInternal _SharingLog_SendAttachmentsStart_default_instance_; -constexpr SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachments_info_(nullptr) - , share_target_info_(nullptr) - , session_id_(int64_t{0}) - , sent_bytes_(int64_t{0}) - , status_(0) - - , transfer_position_(0) - , duration_millis_(int64_t{0}) - , concurrent_connections_(0) - , connection_layer_status_(0) - - , first_successful_transfer_date_(0) - , previous_successful_transfer_date_(0) - , lifetime_transfer_count_(0) - , connection_medium_(0) - , data_usage_(0) - - , is_mutual_contact_(false){} -struct SharingLog_SendAttachmentsEndDefaultTypeInternal { - constexpr SharingLog_SendAttachmentsEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendAttachmentsEndDefaultTypeInternal() {} - union { - SharingLog_SendAttachmentsEnd _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendAttachmentsEndDefaultTypeInternal _SharingLog_SendAttachmentsEnd_default_instance_; -constexpr SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , share_target_info_(nullptr) - , session_id_(int64_t{0}){} -struct SharingLog_ReceiveAttachmentsStartDefaultTypeInternal { - constexpr SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() {} - union { - SharingLog_ReceiveAttachmentsStart _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ReceiveAttachmentsStartDefaultTypeInternal _SharingLog_ReceiveAttachmentsStart_default_instance_; -constexpr SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , share_target_info_(nullptr) - , session_id_(int64_t{0}) - , received_bytes_(int64_t{0}) - , status_(0) - - , first_successful_transfer_date_(0) - , previous_successful_transfer_date_(0) - , lifetime_transfer_count_(0) - , connection_medium_(0) - , data_usage_(0) -{} -struct SharingLog_ReceiveAttachmentsEndDefaultTypeInternal { - constexpr SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() {} - union { - SharingLog_ReceiveAttachmentsEnd _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ReceiveAttachmentsEndDefaultTypeInternal _SharingLog_ReceiveAttachmentsEnd_default_instance_; -constexpr SharingLog_CancelConnection::SharingLog_CancelConnection( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_id_(int64_t{0}) - , transfer_position_(0) - , concurrent_connections_(0){} -struct SharingLog_CancelConnectionDefaultTypeInternal { - constexpr SharingLog_CancelConnectionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CancelConnectionDefaultTypeInternal() {} - union { - SharingLog_CancelConnection _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CancelConnectionDefaultTypeInternal _SharingLog_CancelConnection_default_instance_; -constexpr SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_CancelSendingAttachmentsDefaultTypeInternal { - constexpr SharingLog_CancelSendingAttachmentsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CancelSendingAttachmentsDefaultTypeInternal() {} - union { - SharingLog_CancelSendingAttachments _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CancelSendingAttachmentsDefaultTypeInternal _SharingLog_CancelSendingAttachments_default_instance_; -constexpr SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_CancelReceivingAttachmentsDefaultTypeInternal { - constexpr SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() {} - union { - SharingLog_CancelReceivingAttachments _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CancelReceivingAttachmentsDefaultTypeInternal _SharingLog_CancelReceivingAttachments_default_instance_; -constexpr SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : session_id_(int64_t{0}) - , status_(0) -{} -struct SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal { - constexpr SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() {} - union { - SharingLog_ProcessReceivedAttachmentsEnd _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal _SharingLog_ProcessReceivedAttachmentsEnd_default_instance_; -constexpr SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , session_id_(int64_t{0}){} -struct SharingLog_OpenReceivedAttachmentsDefaultTypeInternal { - constexpr SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() {} - union { - SharingLog_OpenReceivedAttachments _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_OpenReceivedAttachmentsDefaultTypeInternal _SharingLog_OpenReceivedAttachments_default_instance_; -constexpr SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_LaunchSetupActivityDefaultTypeInternal { - constexpr SharingLog_LaunchSetupActivityDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_LaunchSetupActivityDefaultTypeInternal() {} - union { - SharingLog_LaunchSetupActivity _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_LaunchSetupActivityDefaultTypeInternal _SharingLog_LaunchSetupActivity_default_instance_; -constexpr SharingLog_AddContact::SharingLog_AddContact( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : was_phone_added_(false) - , was_email_added_(false){} -struct SharingLog_AddContactDefaultTypeInternal { - constexpr SharingLog_AddContactDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AddContactDefaultTypeInternal() {} - union { - SharingLog_AddContact _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AddContactDefaultTypeInternal _SharingLog_AddContact_default_instance_; -constexpr SharingLog_RemoveContact::SharingLog_RemoveContact( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : was_phone_removed_(false) - , was_email_removed_(false){} -struct SharingLog_RemoveContactDefaultTypeInternal { - constexpr SharingLog_RemoveContactDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_RemoveContactDefaultTypeInternal() {} - union { - SharingLog_RemoveContact _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_RemoveContactDefaultTypeInternal _SharingLog_RemoveContact_default_instance_; -constexpr SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_(0) - - , name_(0) - - , latency_millis_(int64_t{0}) - , purpose_(0) - - , requester_(0) - - , device_type_(0) -{} -struct SharingLog_FastShareServerResponseDefaultTypeInternal { - constexpr SharingLog_FastShareServerResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_FastShareServerResponseDefaultTypeInternal() {} - union { - SharingLog_FastShareServerResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_FastShareServerResponseDefaultTypeInternal _SharingLog_FastShareServerResponse_default_instance_; -constexpr SharingLog_SendStart::SharingLog_SendStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : share_target_info_(nullptr) - , session_id_(int64_t{0}) - , transfer_position_(0) - , concurrent_connections_(0){} -struct SharingLog_SendStartDefaultTypeInternal { - constexpr SharingLog_SendStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendStartDefaultTypeInternal() {} - union { - SharingLog_SendStart _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendStartDefaultTypeInternal _SharingLog_SendStart_default_instance_; -constexpr SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_AcceptFastInitializationDefaultTypeInternal { - constexpr SharingLog_AcceptFastInitializationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AcceptFastInitializationDefaultTypeInternal() {} - union { - SharingLog_AcceptFastInitialization _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AcceptFastInitializationDefaultTypeInternal _SharingLog_AcceptFastInitialization_default_instance_; -constexpr SharingLog_LaunchActivity::SharingLog_LaunchActivity( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : referrer_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , duration_millis_(int64_t{0}) - , activity_name_(0) - - , previous_transfer_in_progress_(false) - , has_opted_in_(false) - , is_finishing_(false) - , source_activity_name_(0) -{} -struct SharingLog_LaunchActivityDefaultTypeInternal { - constexpr SharingLog_LaunchActivityDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_LaunchActivityDefaultTypeInternal() {} - union { - SharingLog_LaunchActivity _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_LaunchActivityDefaultTypeInternal _SharingLog_LaunchActivity_default_instance_; -constexpr SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DismissPrivacyNotificationDefaultTypeInternal { - constexpr SharingLog_DismissPrivacyNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DismissPrivacyNotificationDefaultTypeInternal() {} - union { - SharingLog_DismissPrivacyNotification _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DismissPrivacyNotificationDefaultTypeInternal _SharingLog_DismissPrivacyNotification_default_instance_; -constexpr SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapPrivacyNotificationDefaultTypeInternal { - constexpr SharingLog_TapPrivacyNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapPrivacyNotificationDefaultTypeInternal() {} - union { - SharingLog_TapPrivacyNotification _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapPrivacyNotificationDefaultTypeInternal _SharingLog_TapPrivacyNotification_default_instance_; -constexpr SharingLog_TapHelp::SharingLog_TapHelp( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapHelpDefaultTypeInternal { - constexpr SharingLog_TapHelpDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapHelpDefaultTypeInternal() {} - union { - SharingLog_TapHelp _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapHelpDefaultTypeInternal _SharingLog_TapHelp_default_instance_; -constexpr SharingLog_TapFeedback::SharingLog_TapFeedback( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapFeedbackDefaultTypeInternal { - constexpr SharingLog_TapFeedbackDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapFeedbackDefaultTypeInternal() {} - union { - SharingLog_TapFeedback _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapFeedbackDefaultTypeInternal _SharingLog_TapFeedback_default_instance_; -constexpr SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_AddQuickSettingsTileDefaultTypeInternal { - constexpr SharingLog_AddQuickSettingsTileDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AddQuickSettingsTileDefaultTypeInternal() {} - union { - SharingLog_AddQuickSettingsTile _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AddQuickSettingsTileDefaultTypeInternal _SharingLog_AddQuickSettingsTile_default_instance_; -constexpr SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_RemoveQuickSettingsTileDefaultTypeInternal { - constexpr SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() {} - union { - SharingLog_RemoveQuickSettingsTile _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_RemoveQuickSettingsTileDefaultTypeInternal _SharingLog_RemoveQuickSettingsTile_default_instance_; -constexpr SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_LaunchPhoneConsentDefaultTypeInternal { - constexpr SharingLog_LaunchPhoneConsentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_LaunchPhoneConsentDefaultTypeInternal() {} - union { - SharingLog_LaunchPhoneConsent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_LaunchPhoneConsentDefaultTypeInternal _SharingLog_LaunchPhoneConsent_default_instance_; -constexpr SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DisplayPhoneConsentDefaultTypeInternal { - constexpr SharingLog_DisplayPhoneConsentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DisplayPhoneConsentDefaultTypeInternal() {} - union { - SharingLog_DisplayPhoneConsent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DisplayPhoneConsentDefaultTypeInternal _SharingLog_DisplayPhoneConsent_default_instance_; -constexpr SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapQuickSettingsTileDefaultTypeInternal { - constexpr SharingLog_TapQuickSettingsTileDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapQuickSettingsTileDefaultTypeInternal() {} - union { - SharingLog_TapQuickSettingsTile _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapQuickSettingsTileDefaultTypeInternal _SharingLog_TapQuickSettingsTile_default_instance_; -constexpr SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapQuickSettingsFileShareDefaultTypeInternal { - constexpr SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() {} - union { - SharingLog_TapQuickSettingsFileShare _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapQuickSettingsFileShareDefaultTypeInternal _SharingLog_TapQuickSettingsFileShare_default_instance_; -constexpr SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DisplayPrivacyNotificationDefaultTypeInternal { - constexpr SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() {} - union { - SharingLog_DisplayPrivacyNotification _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DisplayPrivacyNotificationDefaultTypeInternal _SharingLog_DisplayPrivacyNotification_default_instance_; -constexpr SharingLog_DefaultOptIn::SharingLog_DefaultOptIn( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_DefaultOptInDefaultTypeInternal { - constexpr SharingLog_DefaultOptInDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DefaultOptInDefaultTypeInternal() {} - union { - SharingLog_DefaultOptIn _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DefaultOptInDefaultTypeInternal _SharingLog_DefaultOptIn_default_instance_; -constexpr SharingLog_SetDeviceName::SharingLog_SetDeviceName( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : device_name_size_(0){} -struct SharingLog_SetDeviceNameDefaultTypeInternal { - constexpr SharingLog_SetDeviceNameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SetDeviceNameDefaultTypeInternal() {} - union { - SharingLog_SetDeviceName _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SetDeviceNameDefaultTypeInternal _SharingLog_SetDeviceName_default_instance_; -constexpr SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : permission_type_(0) - - , permission_request_result_(0) -{} -struct SharingLog_RequestSettingPermissionsDefaultTypeInternal { - constexpr SharingLog_RequestSettingPermissionsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_RequestSettingPermissionsDefaultTypeInternal() {} - union { - SharingLog_RequestSettingPermissions _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_RequestSettingPermissionsDefaultTypeInternal _SharingLog_RequestSettingPermissions_default_instance_; -constexpr SharingLog_LaunchConsent::SharingLog_LaunchConsent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : consent_type_(0) - - , status_(0) -{} -struct SharingLog_LaunchConsentDefaultTypeInternal { - constexpr SharingLog_LaunchConsentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_LaunchConsentDefaultTypeInternal() {} - union { - SharingLog_LaunchConsent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_LaunchConsentDefaultTypeInternal _SharingLog_LaunchConsent_default_instance_; -constexpr SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_() - , _status_cached_byte_size_(0) - , source_() - , _source_cached_byte_size_(0){} -struct SharingLog_InstallAPKStatusDefaultTypeInternal { - constexpr SharingLog_InstallAPKStatusDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_InstallAPKStatusDefaultTypeInternal() {} - union { - SharingLog_InstallAPKStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_InstallAPKStatusDefaultTypeInternal _SharingLog_InstallAPKStatus_default_instance_; -constexpr SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_() - , _status_cached_byte_size_(0) - , source_() - , _source_cached_byte_size_(0){} -struct SharingLog_VerifyAPKStatusDefaultTypeInternal { - constexpr SharingLog_VerifyAPKStatusDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_VerifyAPKStatusDefaultTypeInternal() {} - union { - SharingLog_VerifyAPKStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_VerifyAPKStatusDefaultTypeInternal _SharingLog_VerifyAPKStatus_default_instance_; -constexpr SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : previous_status_(0) - - , current_status_(0) -{} -struct SharingLog_ToggleShowNotificationDefaultTypeInternal { - constexpr SharingLog_ToggleShowNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ToggleShowNotificationDefaultTypeInternal() {} - union { - SharingLog_ToggleShowNotification _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ToggleShowNotificationDefaultTypeInternal _SharingLog_ToggleShowNotification_default_instance_; -constexpr SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_(0) -{} -struct SharingLog_DecryptCertificateFailureDefaultTypeInternal { - constexpr SharingLog_DecryptCertificateFailureDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_DecryptCertificateFailureDefaultTypeInternal() {} - union { - SharingLog_DecryptCertificateFailure _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_DecryptCertificateFailureDefaultTypeInternal _SharingLog_DecryptCertificateFailure_default_instance_; -constexpr SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : activity_name_(0) - - , allowed_auto_access_(false) - , is_wifi_missing_(false) - , is_bt_missing_(false){} -struct SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal { - constexpr SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() {} - union { - SharingLog_ShowAllowPermissionAutoAccess _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal _SharingLog_ShowAllowPermissionAutoAccess_default_instance_; -constexpr SharingLog_TapQrCode::SharingLog_TapQrCode( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_TapQrCodeDefaultTypeInternal { - constexpr SharingLog_TapQrCodeDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TapQrCodeDefaultTypeInternal() {} - union { - SharingLog_TapQrCode _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TapQrCodeDefaultTypeInternal _SharingLog_TapQrCode_default_instance_; -constexpr SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct SharingLog_QrCodeLinkShownDefaultTypeInternal { - constexpr SharingLog_QrCodeLinkShownDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_QrCodeLinkShownDefaultTypeInternal() {} - union { - SharingLog_QrCodeLinkShown _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_QrCodeLinkShownDefaultTypeInternal _SharingLog_QrCodeLinkShown_default_instance_; -constexpr SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : fast_init_type_(0) - - , fast_init_state_(0) -{} -struct SharingLog_FastInitDiscoverDeviceDefaultTypeInternal { - constexpr SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() {} - union { - SharingLog_FastInitDiscoverDevice _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_FastInitDiscoverDeviceDefaultTypeInternal _SharingLog_FastInitDiscoverDevice_default_instance_; -constexpr SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : device_type_(0) - - , os_type_(0) - - , device_relationship_(0) - - , has_matching_qr_code_(false) - , is_external_(false){} -struct SharingLog_ShareTargetInfoDefaultTypeInternal { - constexpr SharingLog_ShareTargetInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ShareTargetInfoDefaultTypeInternal() {} - union { - SharingLog_ShareTargetInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ShareTargetInfoDefaultTypeInternal _SharingLog_ShareTargetInfo_default_instance_; -constexpr SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : text_attachment_() - , file_attachment_() - , wifi_credentials_attachment_() - , app_attachment_() - , stream_attachment_() - , required_app_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct SharingLog_AttachmentsInfoDefaultTypeInternal { - constexpr SharingLog_AttachmentsInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AttachmentsInfoDefaultTypeInternal() {} - union { - SharingLog_AttachmentsInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AttachmentsInfoDefaultTypeInternal _SharingLog_AttachmentsInfo_default_instance_; -constexpr SharingLog_TextAttachment::SharingLog_TextAttachment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : size_bytes_(int64_t{0}) - , type_(0) - - , source_type_(0) - - , batch_id_(int64_t{0}){} -struct SharingLog_TextAttachmentDefaultTypeInternal { - constexpr SharingLog_TextAttachmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_TextAttachmentDefaultTypeInternal() {} - union { - SharingLog_TextAttachment _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_TextAttachmentDefaultTypeInternal _SharingLog_TextAttachment_default_instance_; -constexpr SharingLog_FileAttachment::SharingLog_FileAttachment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : size_bytes_(int64_t{0}) - , type_(0) - - , source_type_(0) - - , offset_bytes_(int64_t{0}) - , batch_id_(int64_t{0}){} -struct SharingLog_FileAttachmentDefaultTypeInternal { - constexpr SharingLog_FileAttachmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_FileAttachmentDefaultTypeInternal() {} - union { - SharingLog_FileAttachment _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_FileAttachmentDefaultTypeInternal _SharingLog_FileAttachment_default_instance_; -constexpr SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : batch_id_(int64_t{0}) - , security_type_(0) - , source_type_(0) -{} +template +PROTOBUF_CONSTEXPR SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_WifiCredentialsAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLog_WifiCredentialsAttachmentDefaultTypeInternal { - constexpr SharingLog_WifiCredentialsAttachmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLog_WifiCredentialsAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLog_WifiCredentialsAttachmentDefaultTypeInternal() {} union { SharingLog_WifiCredentialsAttachment _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_WifiCredentialsAttachmentDefaultTypeInternal _SharingLog_WifiCredentialsAttachment_default_instance_; -constexpr SharingLog_AppAttachment::SharingLog_AppAttachment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : package_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , size_(int64_t{0}) - , batch_id_(int64_t{0}) - , source_type_(0) -{} -struct SharingLog_AppAttachmentDefaultTypeInternal { - constexpr SharingLog_AppAttachmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AppAttachmentDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_WifiCredentialsAttachmentDefaultTypeInternal _SharingLog_WifiCredentialsAttachment_default_instance_; + +inline constexpr SharingLog_VerifyAPKStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + status_{}, + _status_cached_byte_size_{0}, + source_{}, + _source_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_VerifyAPKStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_VerifyAPKStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_VerifyAPKStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_VerifyAPKStatusDefaultTypeInternal() {} union { - SharingLog_AppAttachment _instance; + SharingLog_VerifyAPKStatus _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AppAttachmentDefaultTypeInternal _SharingLog_AppAttachment_default_instance_; -constexpr SharingLog_StreamAttachment::SharingLog_StreamAttachment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : package_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , batch_id_(int64_t{0}) - , source_type_(0) -{} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_VerifyAPKStatusDefaultTypeInternal _SharingLog_VerifyAPKStatus_default_instance_; + +inline constexpr SharingLog_UnknownEvent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_UnknownEvent::SharingLog_UnknownEvent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_UnknownEvent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_UnknownEventDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_UnknownEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_UnknownEventDefaultTypeInternal() {} + union { + SharingLog_UnknownEvent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_UnknownEventDefaultTypeInternal _SharingLog_UnknownEvent_default_instance_; + +inline constexpr SharingLog_ToggleShowNotification::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + previous_status_{static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(0)}, + current_status_{static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ToggleShowNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ToggleShowNotificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ToggleShowNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ToggleShowNotificationDefaultTypeInternal() {} + union { + SharingLog_ToggleShowNotification _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ToggleShowNotificationDefaultTypeInternal _SharingLog_ToggleShowNotification_default_instance_; + +inline constexpr SharingLog_TextAttachment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + size_bytes_{::int64_t{0}}, + type_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type >(0)}, + source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)}, + batch_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TextAttachment::SharingLog_TextAttachment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TextAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TextAttachmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TextAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TextAttachmentDefaultTypeInternal() {} + union { + SharingLog_TextAttachment _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TextAttachmentDefaultTypeInternal _SharingLog_TextAttachment_default_instance_; + +inline constexpr SharingLog_TapQuickSettingsTile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapQuickSettingsTileDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapQuickSettingsTileDefaultTypeInternal() {} + union { + SharingLog_TapQuickSettingsTile _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQuickSettingsTileDefaultTypeInternal _SharingLog_TapQuickSettingsTile_default_instance_; + +inline constexpr SharingLog_TapQuickSettingsFileShare::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapQuickSettingsFileShare_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapQuickSettingsFileShareDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapQuickSettingsFileShareDefaultTypeInternal() {} + union { + SharingLog_TapQuickSettingsFileShare _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQuickSettingsFileShareDefaultTypeInternal _SharingLog_TapQuickSettingsFileShare_default_instance_; + +inline constexpr SharingLog_TapQrCode::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapQrCode::SharingLog_TapQrCode(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapQrCode_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapQrCodeDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapQrCodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapQrCodeDefaultTypeInternal() {} + union { + SharingLog_TapQrCode _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapQrCodeDefaultTypeInternal _SharingLog_TapQrCode_default_instance_; + +inline constexpr SharingLog_TapPrivacyNotification::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapPrivacyNotificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapPrivacyNotificationDefaultTypeInternal() {} + union { + SharingLog_TapPrivacyNotification _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapPrivacyNotificationDefaultTypeInternal _SharingLog_TapPrivacyNotification_default_instance_; + +inline constexpr SharingLog_TapHelp::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapHelp::SharingLog_TapHelp(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapHelp_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapHelpDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapHelpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapHelpDefaultTypeInternal() {} + union { + SharingLog_TapHelp _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapHelpDefaultTypeInternal _SharingLog_TapHelp_default_instance_; + +inline constexpr SharingLog_TapFeedback::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_TapFeedback::SharingLog_TapFeedback(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_TapFeedback_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_TapFeedbackDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_TapFeedbackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_TapFeedbackDefaultTypeInternal() {} + union { + SharingLog_TapFeedback _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_TapFeedbackDefaultTypeInternal _SharingLog_TapFeedback_default_instance_; + +inline constexpr SharingLog_StreamAttachment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + package_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + batch_id_{::int64_t{0}}, + source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_StreamAttachment::SharingLog_StreamAttachment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_StreamAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLog_StreamAttachmentDefaultTypeInternal { - constexpr SharingLog_StreamAttachmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLog_StreamAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLog_StreamAttachmentDefaultTypeInternal() {} union { SharingLog_StreamAttachment _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_StreamAttachmentDefaultTypeInternal _SharingLog_StreamAttachment_default_instance_; -constexpr SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : status_(0) - , transferred_bytes_(int64_t{0}) - , duration_millis_(int64_t{0}) - , _oneof_case_{}{} -struct SharingLog_CloudAttachmentInfoDefaultTypeInternal { - constexpr SharingLog_CloudAttachmentInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudAttachmentInfoDefaultTypeInternal() {} - union { - SharingLog_CloudAttachmentInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudAttachmentInfoDefaultTypeInternal _SharingLog_CloudAttachmentInfo_default_instance_; -constexpr SharingLog_AppCrash::SharingLog_AppCrash( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : crash_reason_(0) -{} -struct SharingLog_AppCrashDefaultTypeInternal { - constexpr SharingLog_AppCrashDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_AppCrashDefaultTypeInternal() {} - union { - SharingLog_AppCrash _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_AppCrashDefaultTypeInternal _SharingLog_AppCrash_default_instance_; -constexpr SharingLog_SetupWizard::SharingLog_SetupWizard( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : visibility_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_StreamAttachmentDefaultTypeInternal _SharingLog_StreamAttachment_default_instance_; - , previous_visibility_(0) -{} -struct SharingLog_SetupWizardDefaultTypeInternal { - constexpr SharingLog_SetupWizardDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SetupWizardDefaultTypeInternal() {} - union { - SharingLog_SetupWizard _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SetupWizardDefaultTypeInternal _SharingLog_SetupWizard_default_instance_; -constexpr SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : event_(0) -{} -struct SharingLog_SendDesktopNotificationDefaultTypeInternal { - constexpr SharingLog_SendDesktopNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendDesktopNotificationDefaultTypeInternal() {} - union { - SharingLog_SendDesktopNotification _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendDesktopNotificationDefaultTypeInternal _SharingLog_SendDesktopNotification_default_instance_; -constexpr SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : event_(0) -{} -struct SharingLog_SendDesktopTransferEventDefaultTypeInternal { - constexpr SharingLog_SendDesktopTransferEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_SendDesktopTransferEventDefaultTypeInternal() {} - union { - SharingLog_SendDesktopTransferEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_SendDesktopTransferEventDefaultTypeInternal _SharingLog_SendDesktopTransferEvent_default_instance_; -constexpr SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : button_status_(0) -{} -struct SharingLog_ShowWaitingForAcceptDefaultTypeInternal { - constexpr SharingLog_ShowWaitingForAcceptDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_ShowWaitingForAcceptDefaultTypeInternal() {} - union { - SharingLog_ShowWaitingForAccept _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ShowWaitingForAcceptDefaultTypeInternal _SharingLog_ShowWaitingForAccept_default_instance_; -constexpr SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : share_target_info_(nullptr) - , session_id_(int64_t{0}) - , duration_millis_(int64_t{0}) - , is_timeout_(false) - , original_quality_(0) - , connection_medium_(0) - , connection_mode_(0) - , instant_connection_result_(0){} -struct SharingLog_HighQualityMediumSetupDefaultTypeInternal { - constexpr SharingLog_HighQualityMediumSetupDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_HighQualityMediumSetupDefaultTypeInternal() {} - union { - SharingLog_HighQualityMediumSetup _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_HighQualityMediumSetupDefaultTypeInternal _SharingLog_HighQualityMediumSetup_default_instance_; -constexpr SharingLog_RpcCallStatus::SharingLog_RpcCallStatus( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : rpc_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , direction_(0) +inline constexpr SharingLog_StartQrCodeSession::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} - , error_code_(0) - , latency_millis_(int64_t{0}){} -struct SharingLog_RpcCallStatusDefaultTypeInternal { - constexpr SharingLog_RpcCallStatusDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_RpcCallStatusDefaultTypeInternal() {} - union { - SharingLog_RpcCallStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_RpcCallStatusDefaultTypeInternal _SharingLog_RpcCallStatus_default_instance_; -constexpr SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +template +PROTOBUF_CONSTEXPR SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_StartQrCodeSession_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLog_StartQrCodeSessionDefaultTypeInternal { - constexpr SharingLog_StartQrCodeSessionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLog_StartQrCodeSessionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLog_StartQrCodeSessionDefaultTypeInternal() {} union { SharingLog_StartQrCodeSession _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_StartQrCodeSessionDefaultTypeInternal _SharingLog_StartQrCodeSession_default_instance_; -constexpr SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : client_platform_(0) - , is_retry_(false){} -struct SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal { - constexpr SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_StartQrCodeSessionDefaultTypeInternal _SharingLog_StartQrCodeSession_default_instance_; + +inline constexpr SharingLog_ShowWaitingForAccept::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + button_status_{static_cast< ::location::nearby::proto::sharing::ButtonStatus >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ShowWaitingForAccept_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ShowWaitingForAcceptDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ShowWaitingForAcceptDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ShowWaitingForAcceptDefaultTypeInternal() {} union { - SharingLog_QrCodeOpenedInWebClient _instance; + SharingLog_ShowWaitingForAccept _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal _SharingLog_QrCodeOpenedInWebClient_default_instance_; -constexpr SharingLog_HatsJointEvent::SharingLog_HatsJointEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : hats_session_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , flow_id_(int64_t{0}){} -struct SharingLog_HatsJointEventDefaultTypeInternal { - constexpr SharingLog_HatsJointEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_HatsJointEventDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShowWaitingForAcceptDefaultTypeInternal _SharingLog_ShowWaitingForAccept_default_instance_; + +inline constexpr SharingLog_ShowAllowPermissionAutoAccess::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)}, + allowed_auto_access_{false}, + is_wifi_missing_{false}, + is_bt_missing_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ShowAllowPermissionAutoAccess_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal() {} union { - SharingLog_HatsJointEvent _instance; + SharingLog_ShowAllowPermissionAutoAccess _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_HatsJointEventDefaultTypeInternal _SharingLog_HatsJointEvent_default_instance_; -constexpr SharingLog_ReceivePreviews::SharingLog_ReceivePreviews( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : num_previews_(0){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal _SharingLog_ShowAllowPermissionAutoAccess_default_instance_; + +inline constexpr SharingLog_ShareTargetInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + device_type_{static_cast< ::location::nearby::proto::sharing::DeviceType >(0)}, + os_type_{static_cast< ::location::nearby::proto::sharing::OSType >(0)}, + device_relationship_{static_cast< ::location::nearby::proto::sharing::DeviceRelationship >(0)}, + has_matching_qr_code_{false}, + is_external_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ShareTargetInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ShareTargetInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ShareTargetInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ShareTargetInfoDefaultTypeInternal() {} + union { + SharingLog_ShareTargetInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ShareTargetInfoDefaultTypeInternal _SharingLog_ShareTargetInfo_default_instance_; + +inline constexpr SharingLog_SetupWizard::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)}, + previous_visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SetupWizard::SharingLog_SetupWizard(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SetupWizard_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SetupWizardDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SetupWizardDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SetupWizardDefaultTypeInternal() {} + union { + SharingLog_SetupWizard _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetupWizardDefaultTypeInternal _SharingLog_SetupWizard_default_instance_; + +inline constexpr SharingLog_SetVisibility::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)}, + source_visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)}, + duration_millis_{::int64_t{0}}, + source_activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SetVisibility::SharingLog_SetVisibility(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SetVisibility_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SetVisibilityDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SetVisibilityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SetVisibilityDefaultTypeInternal() {} + union { + SharingLog_SetVisibility _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetVisibilityDefaultTypeInternal _SharingLog_SetVisibility_default_instance_; + +inline constexpr SharingLog_SetDeviceName::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + device_name_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SetDeviceName::SharingLog_SetDeviceName(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SetDeviceName_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SetDeviceNameDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SetDeviceNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SetDeviceNameDefaultTypeInternal() {} + union { + SharingLog_SetDeviceName _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetDeviceNameDefaultTypeInternal _SharingLog_SetDeviceName_default_instance_; + +inline constexpr SharingLog_SetDataUsage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + original_preference_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)}, + preference_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SetDataUsage::SharingLog_SetDataUsage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SetDataUsage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SetDataUsageDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SetDataUsageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SetDataUsageDefaultTypeInternal() {} + union { + SharingLog_SetDataUsage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetDataUsageDefaultTypeInternal _SharingLog_SetDataUsage_default_instance_; + +inline constexpr SharingLog_SetAccount::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SetAccount::SharingLog_SetAccount(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SetAccount_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SetAccountDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SetAccountDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SetAccountDefaultTypeInternal() {} + union { + SharingLog_SetAccount _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SetAccountDefaultTypeInternal _SharingLog_SetAccount_default_instance_; + +inline constexpr SharingLog_SendFastInitialization::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendFastInitializationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendFastInitializationDefaultTypeInternal() {} + union { + SharingLog_SendFastInitialization _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendFastInitializationDefaultTypeInternal _SharingLog_SendFastInitialization_default_instance_; + +inline constexpr SharingLog_SendDesktopTransferEvent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + event_{static_cast< ::location::nearby::proto::sharing::DesktopTransferEventType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendDesktopTransferEvent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendDesktopTransferEventDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendDesktopTransferEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendDesktopTransferEventDefaultTypeInternal() {} + union { + SharingLog_SendDesktopTransferEvent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendDesktopTransferEventDefaultTypeInternal _SharingLog_SendDesktopTransferEvent_default_instance_; + +inline constexpr SharingLog_SendDesktopNotification::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + event_{static_cast< ::location::nearby::proto::sharing::DesktopNotification >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendDesktopNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendDesktopNotificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendDesktopNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendDesktopNotificationDefaultTypeInternal() {} + union { + SharingLog_SendDesktopNotification _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendDesktopNotificationDefaultTypeInternal _SharingLog_SendDesktopNotification_default_instance_; + +inline constexpr SharingLog_ScanForShareTargetsStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + session_id_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::SessionStatus >(0)}, + scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)}, + flow_id_{::int64_t{0}}, + use_qr_code_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ScanForShareTargetsStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ScanForShareTargetsStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ScanForShareTargetsStartDefaultTypeInternal() {} + union { + SharingLog_ScanForShareTargetsStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ScanForShareTargetsStartDefaultTypeInternal _SharingLog_ScanForShareTargetsStart_default_instance_; + +inline constexpr SharingLog_ScanForShareTargetsEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ScanForShareTargetsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ScanForShareTargetsEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ScanForShareTargetsEndDefaultTypeInternal() {} + union { + SharingLog_ScanForShareTargetsEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ScanForShareTargetsEndDefaultTypeInternal _SharingLog_ScanForShareTargetsEnd_default_instance_; + +inline constexpr SharingLog_RpcCallStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + rpc_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + direction_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection >(0)}, + error_code_{0}, + latency_millis_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_RpcCallStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_RpcCallStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_RpcCallStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_RpcCallStatusDefaultTypeInternal() {} + union { + SharingLog_RpcCallStatus _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RpcCallStatusDefaultTypeInternal _SharingLog_RpcCallStatus_default_instance_; + +inline constexpr SharingLog_RespondToIntroduction::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_id_{::int64_t{0}}, + action_{static_cast< ::location::nearby::proto::sharing::ResponseToIntroduction >(0)}, + qr_code_flow_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_RespondToIntroduction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_RespondToIntroductionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_RespondToIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_RespondToIntroductionDefaultTypeInternal() {} + union { + SharingLog_RespondToIntroduction _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RespondToIntroductionDefaultTypeInternal _SharingLog_RespondToIntroduction_default_instance_; + +inline constexpr SharingLog_RequestSettingPermissions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + permission_type_{static_cast< ::location::nearby::proto::sharing::PermissionRequestType >(0)}, + permission_request_result_{static_cast< ::location::nearby::proto::sharing::PermissionRequestResult >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_RequestSettingPermissions_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_RequestSettingPermissionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_RequestSettingPermissionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_RequestSettingPermissionsDefaultTypeInternal() {} + union { + SharingLog_RequestSettingPermissions _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RequestSettingPermissionsDefaultTypeInternal _SharingLog_RequestSettingPermissions_default_instance_; + +inline constexpr SharingLog_RemoveQuickSettingsTile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_RemoveQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_RemoveQuickSettingsTileDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_RemoveQuickSettingsTileDefaultTypeInternal() {} + union { + SharingLog_RemoveQuickSettingsTile _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RemoveQuickSettingsTileDefaultTypeInternal _SharingLog_RemoveQuickSettingsTile_default_instance_; + +inline constexpr SharingLog_RemoveContact::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + was_phone_removed_{false}, + was_email_removed_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_RemoveContact::SharingLog_RemoveContact(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_RemoveContact_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_RemoveContactDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_RemoveContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_RemoveContactDefaultTypeInternal() {} + union { + SharingLog_RemoveContact _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_RemoveContactDefaultTypeInternal _SharingLog_RemoveContact_default_instance_; + +inline constexpr SharingLog_ReceivePreviews::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + num_previews_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ReceivePreviews_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLog_ReceivePreviewsDefaultTypeInternal { - constexpr SharingLog_ReceivePreviewsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLog_ReceivePreviewsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLog_ReceivePreviewsDefaultTypeInternal() {} union { SharingLog_ReceivePreviews _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_ReceivePreviewsDefaultTypeInternal _SharingLog_ReceivePreviews_default_instance_; -constexpr SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , result_(0) -{} -struct SharingLog_CloudCreateSharingRequestDefaultTypeInternal { - constexpr SharingLog_CloudCreateSharingRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudCreateSharingRequestDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceivePreviewsDefaultTypeInternal _SharingLog_ReceivePreviews_default_instance_; + +inline constexpr SharingLog_ReceiveFastInitialization::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + time_elapse_since_screen_unlock_millis_{::int64_t{0}}, + notifications_enabled_{false}, + notifications_filtered_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ReceiveFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ReceiveFastInitializationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ReceiveFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ReceiveFastInitializationDefaultTypeInternal() {} union { - SharingLog_CloudCreateSharingRequest _instance; + SharingLog_ReceiveFastInitialization _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudCreateSharingRequestDefaultTypeInternal _SharingLog_CloudCreateSharingRequest_default_instance_; -constexpr SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : result_(0) -{} -struct SharingLog_CloudRegisterReceiverDefaultTypeInternal { - constexpr SharingLog_CloudRegisterReceiverDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudRegisterReceiverDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveFastInitializationDefaultTypeInternal _SharingLog_ReceiveFastInitialization_default_instance_; + +inline constexpr SharingLog_QrCodeOpenedInWebClient::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + client_platform_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform >(0)}, + is_retry_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_QrCodeOpenedInWebClient_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal() {} union { - SharingLog_CloudRegisterReceiver _instance; + SharingLog_QrCodeOpenedInWebClient _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudRegisterReceiverDefaultTypeInternal _SharingLog_CloudRegisterReceiver_default_instance_; -constexpr SharingLog_CloudUploadStart::SharingLog_CloudUploadStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , action_type_(0) -{} -struct SharingLog_CloudUploadStartDefaultTypeInternal { - constexpr SharingLog_CloudUploadStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudUploadStartDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal _SharingLog_QrCodeOpenedInWebClient_default_instance_; + +inline constexpr SharingLog_QrCodeLinkShown::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_QrCodeLinkShown_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_QrCodeLinkShownDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_QrCodeLinkShownDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_QrCodeLinkShownDefaultTypeInternal() {} union { - SharingLog_CloudUploadStart _instance; + SharingLog_QrCodeLinkShown _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudUploadStartDefaultTypeInternal _SharingLog_CloudUploadStart_default_instance_; -constexpr SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : upload_infos_() - , action_type_(0) -{} -struct SharingLog_CloudUploadEndDefaultTypeInternal { - constexpr SharingLog_CloudUploadEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudUploadEndDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_QrCodeLinkShownDefaultTypeInternal _SharingLog_QrCodeLinkShown_default_instance_; + +inline constexpr SharingLog_ProcessReceivedAttachmentsEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_id_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal() {} union { - SharingLog_CloudUploadEnd _instance; + SharingLog_ProcessReceivedAttachmentsEnd _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudUploadEndDefaultTypeInternal _SharingLog_CloudUploadEnd_default_instance_; -constexpr SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachments_info_(nullptr) - , action_type_(0) -{} -struct SharingLog_CloudDownloadStartDefaultTypeInternal { - constexpr SharingLog_CloudDownloadStartDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudDownloadStartDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal _SharingLog_ProcessReceivedAttachmentsEnd_default_instance_; + +inline constexpr SharingLog_PreferencesUsage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)}, + action_status_{static_cast< ::location::nearby::proto::sharing::PreferencesActionStatus >(0)}, + prev_sub_action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)}, + next_sub_action_{static_cast< ::location::nearby::proto::sharing::PreferencesAction >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_PreferencesUsage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_PreferencesUsageDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_PreferencesUsageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_PreferencesUsageDefaultTypeInternal() {} union { - SharingLog_CloudDownloadStart _instance; + SharingLog_PreferencesUsage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudDownloadStartDefaultTypeInternal _SharingLog_CloudDownloadStart_default_instance_; -constexpr SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : download_infos_() - , action_type_(0) -{} -struct SharingLog_CloudDownloadEndDefaultTypeInternal { - constexpr SharingLog_CloudDownloadEndDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SharingLog_CloudDownloadEndDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_PreferencesUsageDefaultTypeInternal _SharingLog_PreferencesUsage_default_instance_; + +inline constexpr SharingLog_LaunchSetupActivity::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_LaunchSetupActivity_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_LaunchSetupActivityDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_LaunchSetupActivityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_LaunchSetupActivityDefaultTypeInternal() {} union { - SharingLog_CloudDownloadEnd _instance; + SharingLog_LaunchSetupActivity _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudDownloadEndDefaultTypeInternal _SharingLog_CloudDownloadEnd_default_instance_; -constexpr SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : rpc_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , cloud_sharing_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , latency_millis_(int64_t{0}) - , status_code_(0){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchSetupActivityDefaultTypeInternal _SharingLog_LaunchSetupActivity_default_instance_; + +inline constexpr SharingLog_LaunchPhoneConsent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_LaunchPhoneConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_LaunchPhoneConsentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_LaunchPhoneConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_LaunchPhoneConsentDefaultTypeInternal() {} + union { + SharingLog_LaunchPhoneConsent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchPhoneConsentDefaultTypeInternal _SharingLog_LaunchPhoneConsent_default_instance_; + +inline constexpr SharingLog_LaunchConsent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + consent_type_{static_cast< ::location::nearby::proto::sharing::ConsentType >(0)}, + status_{static_cast< ::location::nearby::proto::sharing::ConsentAcceptanceStatus >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_LaunchConsent::SharingLog_LaunchConsent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_LaunchConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_LaunchConsentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_LaunchConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_LaunchConsentDefaultTypeInternal() {} + union { + SharingLog_LaunchConsent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchConsentDefaultTypeInternal _SharingLog_LaunchConsent_default_instance_; + +inline constexpr SharingLog_LaunchActivity::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + duration_millis_{::int64_t{0}}, + activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)}, + previous_transfer_in_progress_{false}, + has_opted_in_{false}, + is_finishing_{false}, + source_activity_name_{static_cast< ::location::nearby::proto::sharing::ActivityName >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_LaunchActivity::SharingLog_LaunchActivity(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_LaunchActivity_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_LaunchActivityDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_LaunchActivityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_LaunchActivityDefaultTypeInternal() {} + union { + SharingLog_LaunchActivity _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_LaunchActivityDefaultTypeInternal _SharingLog_LaunchActivity_default_instance_; + +inline constexpr SharingLog_InstallAPKStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + status_{}, + _status_cached_byte_size_{0}, + source_{}, + _source_cached_byte_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_InstallAPKStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_InstallAPKStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_InstallAPKStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_InstallAPKStatusDefaultTypeInternal() {} + union { + SharingLog_InstallAPKStatus _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_InstallAPKStatusDefaultTypeInternal _SharingLog_InstallAPKStatus_default_instance_; + +inline constexpr SharingLog_HatsJointEvent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + hats_session_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + flow_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_HatsJointEvent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_HatsJointEventDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_HatsJointEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_HatsJointEventDefaultTypeInternal() {} + union { + SharingLog_HatsJointEvent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_HatsJointEventDefaultTypeInternal _SharingLog_HatsJointEvent_default_instance_; + +inline constexpr SharingLog_FileAttachment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + size_bytes_{::int64_t{0}}, + type_{static_cast< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type >(0)}, + source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)}, + offset_bytes_{::int64_t{0}}, + batch_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_FileAttachment::SharingLog_FileAttachment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_FileAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_FileAttachmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_FileAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_FileAttachmentDefaultTypeInternal() {} + union { + SharingLog_FileAttachment _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FileAttachmentDefaultTypeInternal _SharingLog_FileAttachment_default_instance_; + +inline constexpr SharingLog_FastShareServerResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + status_{static_cast< ::location::nearby::proto::sharing::ServerResponseState >(0)}, + name_{static_cast< ::location::nearby::proto::sharing::ServerActionName >(0)}, + latency_millis_{::int64_t{0}}, + purpose_{static_cast< ::location::nearby::proto::sharing::SyncPurpose >(0)}, + requester_{static_cast< ::location::nearby::proto::sharing::ClientRole >(0)}, + device_type_{static_cast< ::location::nearby::proto::sharing::DeviceType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_FastShareServerResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_FastShareServerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_FastShareServerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_FastShareServerResponseDefaultTypeInternal() {} + union { + SharingLog_FastShareServerResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FastShareServerResponseDefaultTypeInternal _SharingLog_FastShareServerResponse_default_instance_; + +inline constexpr SharingLog_FastInitDiscoverDevice::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + fast_init_type_{static_cast< ::location::nearby::proto::sharing::FastInitType >(0)}, + fast_init_state_{static_cast< ::location::nearby::proto::sharing::FastInitState >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_FastInitDiscoverDevice_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_FastInitDiscoverDeviceDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_FastInitDiscoverDeviceDefaultTypeInternal() {} + union { + SharingLog_FastInitDiscoverDevice _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_FastInitDiscoverDeviceDefaultTypeInternal _SharingLog_FastInitDiscoverDevice_default_instance_; + +inline constexpr SharingLog_EventMetadata::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + cloud_sharing_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + cloud_receiver_session_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + external_provider_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + external_provider_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + use_case_{static_cast< ::location::nearby::proto::sharing::SharingUseCase >(0)}, + initial_opt_in_{false}, + opt_in_{false}, + initial_enable_status_{false}, + is_direct_share_{false}, + flow_id_{::int64_t{0}}, + session_id_{::int64_t{0}}, + vendor_id_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_EventMetadata::SharingLog_EventMetadata(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_EventMetadata_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_EventMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_EventMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_EventMetadataDefaultTypeInternal() {} + union { + SharingLog_EventMetadata _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EventMetadataDefaultTypeInternal _SharingLog_EventMetadata_default_instance_; + +inline constexpr SharingLog_EnableNearbySharing::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + status_{static_cast< ::location::nearby::proto::sharing::NearbySharingStatus >(0)}, + has_opted_in_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_EnableNearbySharing_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_EnableNearbySharingDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_EnableNearbySharingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_EnableNearbySharingDefaultTypeInternal() {} + union { + SharingLog_EnableNearbySharing _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EnableNearbySharingDefaultTypeInternal _SharingLog_EnableNearbySharing_default_instance_; + +inline constexpr SharingLog_DisplayPrivacyNotification::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DisplayPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DisplayPrivacyNotificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DisplayPrivacyNotificationDefaultTypeInternal() {} + union { + SharingLog_DisplayPrivacyNotification _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DisplayPrivacyNotificationDefaultTypeInternal _SharingLog_DisplayPrivacyNotification_default_instance_; + +inline constexpr SharingLog_DisplayPhoneConsent::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DisplayPhoneConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DisplayPhoneConsentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DisplayPhoneConsentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DisplayPhoneConsentDefaultTypeInternal() {} + union { + SharingLog_DisplayPhoneConsent _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DisplayPhoneConsentDefaultTypeInternal _SharingLog_DisplayPhoneConsent_default_instance_; + +inline constexpr SharingLog_DismissPrivacyNotification::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DismissPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DismissPrivacyNotificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DismissPrivacyNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DismissPrivacyNotificationDefaultTypeInternal() {} + union { + SharingLog_DismissPrivacyNotification _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DismissPrivacyNotificationDefaultTypeInternal _SharingLog_DismissPrivacyNotification_default_instance_; + +inline constexpr SharingLog_DismissFastInitialization::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DismissFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DismissFastInitializationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DismissFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DismissFastInitializationDefaultTypeInternal() {} + union { + SharingLog_DismissFastInitialization _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DismissFastInitializationDefaultTypeInternal _SharingLog_DismissFastInitialization_default_instance_; + +inline constexpr SharingLog_DeviceSettings::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)}, + data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)}, + device_name_size_{0}, + is_show_notification_enabled_{false}, + is_bt_enabled_{false}, + is_location_enabled_{false}, + is_wifi_enabled_{false}, + first_successful_transfer_date_{0}, + previous_successful_transfer_date_{0}, + lifetime_transfer_count_{0}, + contact_access_{static_cast< ::location::nearby::proto::sharing::ContactAccess >(0)}, + identity_verification_{static_cast< ::location::nearby::proto::sharing::IdentityVerification >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DeviceSettings::SharingLog_DeviceSettings(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DeviceSettings_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DeviceSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DeviceSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DeviceSettingsDefaultTypeInternal() {} + union { + SharingLog_DeviceSettings _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DeviceSettingsDefaultTypeInternal _SharingLog_DeviceSettings_default_instance_; + +inline constexpr SharingLog_DefaultOptIn::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DefaultOptIn_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DefaultOptInDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DefaultOptInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DefaultOptInDefaultTypeInternal() {} + union { + SharingLog_DefaultOptIn _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DefaultOptInDefaultTypeInternal _SharingLog_DefaultOptIn_default_instance_; + +inline constexpr SharingLog_DecryptCertificateFailure::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + status_{static_cast< ::location::nearby::proto::sharing::DecryptCertificateFailureStatus >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DecryptCertificateFailure_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DecryptCertificateFailureDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DecryptCertificateFailureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DecryptCertificateFailureDefaultTypeInternal() {} + union { + SharingLog_DecryptCertificateFailure _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DecryptCertificateFailureDefaultTypeInternal _SharingLog_DecryptCertificateFailure_default_instance_; + +inline constexpr SharingLog_DeclineAgreements::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DeclineAgreements_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DeclineAgreementsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DeclineAgreementsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DeclineAgreementsDefaultTypeInternal() {} + union { + SharingLog_DeclineAgreements _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DeclineAgreementsDefaultTypeInternal _SharingLog_DeclineAgreements_default_instance_; + +inline constexpr SharingLog_CloudSharingRpcResult::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + rpc_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + cloud_sharing_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + latency_millis_{::int64_t{0}}, + status_code_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudSharingRpcResult_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLog_CloudSharingRpcResultDefaultTypeInternal { - constexpr SharingLog_CloudSharingRpcResultDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLog_CloudSharingRpcResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLog_CloudSharingRpcResultDefaultTypeInternal() {} union { SharingLog_CloudSharingRpcResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLog_CloudSharingRpcResultDefaultTypeInternal _SharingLog_CloudSharingRpcResult_default_instance_; -constexpr SharingLog::SharingLog( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , files_migration_phase_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , app_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , unknown_event_(nullptr) - , accept_agreements_(nullptr) - , enable_nearby_sharing_(nullptr) - , set_visibility_(nullptr) - , describe_attachments_(nullptr) - , scan_for_share_targets_start_(nullptr) - , scan_for_share_targets_end_(nullptr) - , advertise_device_presence_start_(nullptr) - , advertise_device_presence_end_(nullptr) - , send_initialization_(nullptr) - , receive_initialization_(nullptr) - , discover_share_target_(nullptr) - , send_introduction_(nullptr) - , receive_introduction_(nullptr) - , respond_introduction_(nullptr) - , send_attachments_start_(nullptr) - , send_attachments_end_(nullptr) - , receive_attachments_start_(nullptr) - , receive_attachments_end_(nullptr) - , cancel_sending_attachments_(nullptr) - , cancel_receiving_attachments_(nullptr) - , open_received_attachments_(nullptr) - , launch_activity_(nullptr) - , add_contact_(nullptr) - , remove_contact_(nullptr) - , fast_share_server_response_(nullptr) - , send_start_(nullptr) - , accept_fast_initialization_(nullptr) - , set_data_usage_(nullptr) - , dismiss_fast_initialization_(nullptr) - , cancel_connection_(nullptr) - , dismiss_privacy_notification_(nullptr) - , tap_privacy_notification_(nullptr) - , tap_help_(nullptr) - , tap_feedback_(nullptr) - , add_quick_settings_tile_(nullptr) - , remove_quick_settings_tile_(nullptr) - , launch_phone_consent_(nullptr) - , tap_quick_settings_tile_(nullptr) - , install_apk_status_(nullptr) - , verify_apk_status_(nullptr) - , launch_consent_(nullptr) - , process_received_attachments_end_(nullptr) - , toggle_show_notification_(nullptr) - , set_device_name_(nullptr) - , decline_agreements_(nullptr) - , request_setting_permissions_(nullptr) - , device_settings_(nullptr) - , establish_connection_(nullptr) - , auto_dismiss_fast_initialization_(nullptr) - , event_metadata_(nullptr) - , app_crash_(nullptr) - , tap_quick_settings_file_share_(nullptr) - , app_info_(nullptr) - , display_privacy_notification_(nullptr) - , display_phone_consent_(nullptr) - , preferences_usage_(nullptr) - , default_opt_in_(nullptr) - , setup_wizard_(nullptr) - , tap_qr_code_(nullptr) - , qr_code_link_shown_(nullptr) - , parsing_failed_endpoint_id_(nullptr) - , fast_init_discover_device_(nullptr) - , send_desktop_notification_(nullptr) - , send_desktop_transfer_event_(nullptr) - , set_account_(nullptr) - , decrypt_certificate_failure_(nullptr) - , show_allow_permission_auto_access_(nullptr) - , show_waiting_for_accept_(nullptr) - , high_quality_medium_setup_(nullptr) - , rpc_call_status_(nullptr) - , start_qr_code_session_(nullptr) - , qr_code_opened_in_web_client_(nullptr) - , hats_joint_event_(nullptr) - , receive_previews_(nullptr) - , cloud_create_sharing_request_(nullptr) - , cloud_register_receiver_(nullptr) - , cloud_upload_start_(nullptr) - , cloud_upload_end_(nullptr) - , cloud_download_start_(nullptr) - , cloud_download_end_(nullptr) - , cloud_sharing_rpc_result_(nullptr) - , event_type_(0) - , log_source_(0) +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudSharingRpcResultDefaultTypeInternal _SharingLog_CloudSharingRpcResult_default_instance_; - , event_category_(0) -{} +inline constexpr SharingLog_CloudRegisterReceiver::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + result_{static_cast< ::location::nearby::proto::sharing::CloudRegisterReceiverResult >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudRegisterReceiver_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudRegisterReceiverDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudRegisterReceiverDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudRegisterReceiverDefaultTypeInternal() {} + union { + SharingLog_CloudRegisterReceiver _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudRegisterReceiverDefaultTypeInternal _SharingLog_CloudRegisterReceiver_default_instance_; + +inline constexpr SharingLog_CancelSendingAttachments::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CancelSendingAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CancelSendingAttachmentsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CancelSendingAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CancelSendingAttachmentsDefaultTypeInternal() {} + union { + SharingLog_CancelSendingAttachments _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelSendingAttachmentsDefaultTypeInternal _SharingLog_CancelSendingAttachments_default_instance_; + +inline constexpr SharingLog_CancelReceivingAttachments::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CancelReceivingAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CancelReceivingAttachmentsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CancelReceivingAttachmentsDefaultTypeInternal() {} + union { + SharingLog_CancelReceivingAttachments _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelReceivingAttachmentsDefaultTypeInternal _SharingLog_CancelReceivingAttachments_default_instance_; + +inline constexpr SharingLog_CancelConnection::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_id_{::int64_t{0}}, + transfer_position_{0}, + concurrent_connections_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CancelConnection::SharingLog_CancelConnection(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CancelConnection_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CancelConnectionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CancelConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CancelConnectionDefaultTypeInternal() {} + union { + SharingLog_CancelConnection _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CancelConnectionDefaultTypeInternal _SharingLog_CancelConnection_default_instance_; + +inline constexpr SharingLog_AutoDismissFastInitialization::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AutoDismissFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AutoDismissFastInitializationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AutoDismissFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AutoDismissFastInitializationDefaultTypeInternal() {} + union { + SharingLog_AutoDismissFastInitialization _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AutoDismissFastInitializationDefaultTypeInternal _SharingLog_AutoDismissFastInitialization_default_instance_; + +inline constexpr SharingLog_AppInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + app_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + app_language_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + update_track_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR SharingLog_AppInfo::SharingLog_AppInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AppInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AppInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AppInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AppInfoDefaultTypeInternal() {} + union { + SharingLog_AppInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppInfoDefaultTypeInternal _SharingLog_AppInfo_default_instance_; + +inline constexpr SharingLog_AppCrash::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + crash_reason_{static_cast< ::location::nearby::proto::sharing::AppCrashReason >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AppCrash::SharingLog_AppCrash(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AppCrash_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AppCrashDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AppCrashDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AppCrashDefaultTypeInternal() {} + union { + SharingLog_AppCrash _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppCrashDefaultTypeInternal _SharingLog_AppCrash_default_instance_; + +inline constexpr SharingLog_AppAttachment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + package_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + size_{::int64_t{0}}, + batch_id_{::int64_t{0}}, + source_type_{static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AppAttachment::SharingLog_AppAttachment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AppAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AppAttachmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AppAttachmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AppAttachmentDefaultTypeInternal() {} + union { + SharingLog_AppAttachment _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AppAttachmentDefaultTypeInternal _SharingLog_AppAttachment_default_instance_; + +inline constexpr SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + session_id_{::int64_t{0}}, + visibility_{static_cast< ::location::nearby::proto::sharing::Visibility >(0)}, + status_{static_cast< ::location::nearby::proto::sharing::SessionStatus >(0)}, + data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)}, + device_name_size_{0}, + advertising_mode_{static_cast< ::location::nearby::proto::sharing::AdvertisingMode >(0)}, + qr_code_flow_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AdvertiseDevicePresenceStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal() {} + union { + SharingLog_AdvertiseDevicePresenceStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceStart_default_instance_; + +inline constexpr SharingLog_AdvertiseDevicePresenceEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + session_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AdvertiseDevicePresenceEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal() {} + union { + SharingLog_AdvertiseDevicePresenceEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceEnd_default_instance_; + +inline constexpr SharingLog_AddQuickSettingsTile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AddQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AddQuickSettingsTileDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AddQuickSettingsTileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AddQuickSettingsTileDefaultTypeInternal() {} + union { + SharingLog_AddQuickSettingsTile _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AddQuickSettingsTileDefaultTypeInternal _SharingLog_AddQuickSettingsTile_default_instance_; + +inline constexpr SharingLog_AddContact::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + was_phone_added_{false}, + was_email_added_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AddContact::SharingLog_AddContact(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AddContact_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AddContactDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AddContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AddContactDefaultTypeInternal() {} + union { + SharingLog_AddContact _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AddContactDefaultTypeInternal _SharingLog_AddContact_default_instance_; + +inline constexpr SharingLog_AcceptFastInitialization::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AcceptFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AcceptFastInitializationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AcceptFastInitializationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AcceptFastInitializationDefaultTypeInternal() {} + union { + SharingLog_AcceptFastInitialization _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AcceptFastInitializationDefaultTypeInternal _SharingLog_AcceptFastInitialization_default_instance_; + +inline constexpr SharingLog_AcceptAgreements::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AcceptAgreements_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AcceptAgreementsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AcceptAgreementsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AcceptAgreementsDefaultTypeInternal() {} + union { + SharingLog_AcceptAgreements _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AcceptAgreementsDefaultTypeInternal _SharingLog_AcceptAgreements_default_instance_; + +inline constexpr SharingLog_SendStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + transfer_position_{0}, + concurrent_connections_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendStart::SharingLog_SendStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendStartDefaultTypeInternal() {} + union { + SharingLog_SendStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendStartDefaultTypeInternal _SharingLog_SendStart_default_instance_; + +inline constexpr SharingLog_SendIntroduction::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + transfer_position_{0}, + concurrent_connections_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendIntroduction::SharingLog_SendIntroduction(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendIntroduction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendIntroductionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendIntroductionDefaultTypeInternal() {} + union { + SharingLog_SendIntroduction _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendIntroductionDefaultTypeInternal _SharingLog_SendIntroduction_default_instance_; + +inline constexpr SharingLog_ReceiveIntroduction::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + share_target_info_{nullptr}, + session_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ReceiveIntroduction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ReceiveIntroductionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ReceiveIntroductionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ReceiveIntroductionDefaultTypeInternal() {} + union { + SharingLog_ReceiveIntroduction _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveIntroductionDefaultTypeInternal _SharingLog_ReceiveIntroduction_default_instance_; + +inline constexpr SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + received_bytes_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)}, + first_successful_transfer_date_{0}, + previous_successful_transfer_date_{0}, + lifetime_transfer_count_{0}, + connection_medium_{0}, + data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ReceiveAttachmentsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ReceiveAttachmentsEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ReceiveAttachmentsEndDefaultTypeInternal() {} + union { + SharingLog_ReceiveAttachmentsEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveAttachmentsEndDefaultTypeInternal _SharingLog_ReceiveAttachmentsEnd_default_instance_; + +inline constexpr SharingLog_ParsingFailedEndpointId::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + endpoint_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + duration_since_scanning_{nullptr}, + duration_since_last_sync_{nullptr}, + session_id_{::int64_t{0}}, + flow_id_{::int64_t{0}}, + scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)}, + parsing_failed_type_{static_cast< ::location::nearby::proto::sharing::ParsingFailedType >(0)}, + discovery_mode_{static_cast< ::location::nearby::proto::sharing::DiscoveryMode >(0)}, + latency_since_activity_start_millis_{::int64_t{-1}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ParsingFailedEndpointId_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ParsingFailedEndpointIdDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ParsingFailedEndpointIdDefaultTypeInternal() {} + union { + SharingLog_ParsingFailedEndpointId _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ParsingFailedEndpointIdDefaultTypeInternal _SharingLog_ParsingFailedEndpointId_default_instance_; + +inline constexpr SharingLog_HighQualityMediumSetup::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + duration_millis_{::int64_t{0}}, + is_timeout_{false}, + original_quality_{0}, + connection_medium_{0}, + connection_mode_{0}, + instant_connection_result_{0} {} + +template +PROTOBUF_CONSTEXPR SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_HighQualityMediumSetup_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_HighQualityMediumSetupDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_HighQualityMediumSetupDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_HighQualityMediumSetupDefaultTypeInternal() {} + union { + SharingLog_HighQualityMediumSetup _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_HighQualityMediumSetupDefaultTypeInternal _SharingLog_HighQualityMediumSetup_default_instance_; + +inline constexpr SharingLog_EstablishConnection::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + share_target_info_{nullptr}, + qr_code_receiver_connect_latency_{nullptr}, + session_id_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::EstablishConnectionStatus >(0)}, + transfer_position_{0}, + duration_millis_{::int64_t{0}}, + concurrent_connections_{0}, + qr_code_flow_{false}, + is_incoming_connection_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_EstablishConnection::SharingLog_EstablishConnection(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_EstablishConnection_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_EstablishConnectionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_EstablishConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_EstablishConnectionDefaultTypeInternal() {} + union { + SharingLog_EstablishConnection _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_EstablishConnectionDefaultTypeInternal _SharingLog_EstablishConnection_default_instance_; + +inline constexpr SharingLog_DiscoverShareTarget::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + cloud_receiver_session_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + share_target_info_{nullptr}, + duration_since_scanning_{nullptr}, + session_id_{::int64_t{0}}, + flow_id_{::int64_t{0}}, + scan_type_{static_cast< ::location::nearby::proto::sharing::ScanType >(0)}, + latency_since_activity_start_millis_{::int64_t{-1}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DiscoverShareTarget_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DiscoverShareTargetDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DiscoverShareTargetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DiscoverShareTargetDefaultTypeInternal() {} + union { + SharingLog_DiscoverShareTarget _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DiscoverShareTargetDefaultTypeInternal _SharingLog_DiscoverShareTarget_default_instance_; + +inline constexpr SharingLog_CloudAttachmentInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + transferred_bytes_{::int64_t{0}}, + duration_millis_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)}, + CloudAttachment_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudAttachmentInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudAttachmentInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudAttachmentInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudAttachmentInfoDefaultTypeInternal() {} + union { + SharingLog_CloudAttachmentInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudAttachmentInfoDefaultTypeInternal _SharingLog_CloudAttachmentInfo_default_instance_; + +inline constexpr SharingLog_AttachmentsInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + text_attachment_{}, + file_attachment_{}, + wifi_credentials_attachment_{}, + app_attachment_{}, + stream_attachment_{}, + required_app_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_AttachmentsInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_AttachmentsInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_AttachmentsInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_AttachmentsInfoDefaultTypeInternal() {} + union { + SharingLog_AttachmentsInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_AttachmentsInfoDefaultTypeInternal _SharingLog_AttachmentsInfo_default_instance_; + +inline constexpr SharingLog_SendAttachmentsStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + transfer_position_{0}, + concurrent_connections_{0}, + qr_code_flow_{false}, + advanced_protection_enabled_{false}, + advanced_protection_mismatch_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendAttachmentsStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendAttachmentsStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendAttachmentsStartDefaultTypeInternal() {} + union { + SharingLog_SendAttachmentsStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendAttachmentsStartDefaultTypeInternal _SharingLog_SendAttachmentsStart_default_instance_; + +inline constexpr SharingLog_SendAttachmentsEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + referrer_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + attachments_info_{nullptr}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}}, + sent_bytes_{::int64_t{0}}, + status_{static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(0)}, + transfer_position_{0}, + duration_millis_{::int64_t{0}}, + concurrent_connections_{0}, + connection_layer_status_{static_cast< ::location::nearby::proto::sharing::ConnectionLayerStatus >(0)}, + first_successful_transfer_date_{0}, + previous_successful_transfer_date_{0}, + lifetime_transfer_count_{0}, + connection_medium_{0}, + data_usage_{static_cast< ::location::nearby::proto::sharing::DataUsage >(0)}, + is_mutual_contact_{false} {} + +template +PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_SendAttachmentsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_SendAttachmentsEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_SendAttachmentsEndDefaultTypeInternal() {} + union { + SharingLog_SendAttachmentsEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_SendAttachmentsEndDefaultTypeInternal _SharingLog_SendAttachmentsEnd_default_instance_; + +inline constexpr SharingLog_ReceiveAttachmentsStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + share_target_info_{nullptr}, + session_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_ReceiveAttachmentsStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_ReceiveAttachmentsStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_ReceiveAttachmentsStartDefaultTypeInternal() {} + union { + SharingLog_ReceiveAttachmentsStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_ReceiveAttachmentsStartDefaultTypeInternal _SharingLog_ReceiveAttachmentsStart_default_instance_; + +inline constexpr SharingLog_OpenReceivedAttachments::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + session_id_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_OpenReceivedAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_OpenReceivedAttachmentsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_OpenReceivedAttachmentsDefaultTypeInternal() {} + union { + SharingLog_OpenReceivedAttachments _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_OpenReceivedAttachmentsDefaultTypeInternal _SharingLog_OpenReceivedAttachments_default_instance_; + +inline constexpr SharingLog_DescribeAttachments::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + download_duration_{nullptr} {} + +template +PROTOBUF_CONSTEXPR SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_DescribeAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_DescribeAttachmentsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_DescribeAttachmentsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_DescribeAttachmentsDefaultTypeInternal() {} + union { + SharingLog_DescribeAttachments _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_DescribeAttachmentsDefaultTypeInternal _SharingLog_DescribeAttachments_default_instance_; + +inline constexpr SharingLog_CloudUploadStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudUploadStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudUploadStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudUploadStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudUploadStartDefaultTypeInternal() {} + union { + SharingLog_CloudUploadStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudUploadStartDefaultTypeInternal _SharingLog_CloudUploadStart_default_instance_; + +inline constexpr SharingLog_CloudUploadEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + upload_infos_{}, + action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudUploadEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudUploadEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudUploadEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudUploadEndDefaultTypeInternal() {} + union { + SharingLog_CloudUploadEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudUploadEndDefaultTypeInternal _SharingLog_CloudUploadEnd_default_instance_; + +inline constexpr SharingLog_CloudDownloadStart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudDownloadStart_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudDownloadStartDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudDownloadStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudDownloadStartDefaultTypeInternal() {} + union { + SharingLog_CloudDownloadStart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudDownloadStartDefaultTypeInternal _SharingLog_CloudDownloadStart_default_instance_; + +inline constexpr SharingLog_CloudDownloadEnd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + download_infos_{}, + action_type_{static_cast< ::location::nearby::proto::sharing::CloudActionType >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudDownloadEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudDownloadEndDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudDownloadEndDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudDownloadEndDefaultTypeInternal() {} + union { + SharingLog_CloudDownloadEnd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudDownloadEndDefaultTypeInternal _SharingLog_CloudDownloadEnd_default_instance_; + +inline constexpr SharingLog_CloudCreateSharingRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attachments_info_{nullptr}, + attachment_download_latency_millis_{::int64_t{0}}, + preview_thumbnail_latency_millis_{::int64_t{0}}, + rpc_latency_millis_{::int64_t{0}}, + result_{static_cast< ::location::nearby::proto::sharing::CloudCreateSharingResult >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_CloudCreateSharingRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SharingLog_CloudCreateSharingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharingLog_CloudCreateSharingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SharingLog_CloudCreateSharingRequestDefaultTypeInternal() {} + union { + SharingLog_CloudCreateSharingRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLog_CloudCreateSharingRequestDefaultTypeInternal _SharingLog_CloudCreateSharingRequest_default_instance_; + +inline constexpr SharingLog::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + unknown_event_{nullptr}, + accept_agreements_{nullptr}, + enable_nearby_sharing_{nullptr}, + set_visibility_{nullptr}, + describe_attachments_{nullptr}, + scan_for_share_targets_start_{nullptr}, + scan_for_share_targets_end_{nullptr}, + advertise_device_presence_start_{nullptr}, + advertise_device_presence_end_{nullptr}, + send_initialization_{nullptr}, + receive_initialization_{nullptr}, + discover_share_target_{nullptr}, + send_introduction_{nullptr}, + receive_introduction_{nullptr}, + respond_introduction_{nullptr}, + send_attachments_start_{nullptr}, + send_attachments_end_{nullptr}, + receive_attachments_start_{nullptr}, + receive_attachments_end_{nullptr}, + cancel_sending_attachments_{nullptr}, + cancel_receiving_attachments_{nullptr}, + open_received_attachments_{nullptr}, + launch_activity_{nullptr}, + add_contact_{nullptr}, + remove_contact_{nullptr}, + fast_share_server_response_{nullptr}, + send_start_{nullptr}, + accept_fast_initialization_{nullptr}, + set_data_usage_{nullptr}, + event_type_{static_cast< ::location::nearby::proto::sharing::EventType >(0)}, + log_source_{static_cast< ::location::nearby::proto::sharing::LogSource >(0)}, + version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + files_migration_phase_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + app_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + dismiss_fast_initialization_{nullptr}, + cancel_connection_{nullptr}, + dismiss_privacy_notification_{nullptr}, + tap_privacy_notification_{nullptr}, + tap_help_{nullptr}, + tap_feedback_{nullptr}, + add_quick_settings_tile_{nullptr}, + remove_quick_settings_tile_{nullptr}, + launch_phone_consent_{nullptr}, + tap_quick_settings_tile_{nullptr}, + install_apk_status_{nullptr}, + verify_apk_status_{nullptr}, + launch_consent_{nullptr}, + process_received_attachments_end_{nullptr}, + toggle_show_notification_{nullptr}, + set_device_name_{nullptr}, + decline_agreements_{nullptr}, + request_setting_permissions_{nullptr}, + device_settings_{nullptr}, + establish_connection_{nullptr}, + auto_dismiss_fast_initialization_{nullptr}, + event_metadata_{nullptr}, + app_crash_{nullptr}, + tap_quick_settings_file_share_{nullptr}, + app_info_{nullptr}, + display_privacy_notification_{nullptr}, + display_phone_consent_{nullptr}, + preferences_usage_{nullptr}, + default_opt_in_{nullptr}, + setup_wizard_{nullptr}, + tap_qr_code_{nullptr}, + qr_code_link_shown_{nullptr}, + parsing_failed_endpoint_id_{nullptr}, + fast_init_discover_device_{nullptr}, + send_desktop_notification_{nullptr}, + send_desktop_transfer_event_{nullptr}, + set_account_{nullptr}, + decrypt_certificate_failure_{nullptr}, + show_allow_permission_auto_access_{nullptr}, + show_waiting_for_accept_{nullptr}, + high_quality_medium_setup_{nullptr}, + rpc_call_status_{nullptr}, + start_qr_code_session_{nullptr}, + qr_code_opened_in_web_client_{nullptr}, + hats_joint_event_{nullptr}, + receive_previews_{nullptr}, + cloud_create_sharing_request_{nullptr}, + cloud_register_receiver_{nullptr}, + cloud_upload_start_{nullptr}, + cloud_upload_end_{nullptr}, + cloud_download_start_{nullptr}, + cloud_download_end_{nullptr}, + cloud_sharing_rpc_result_{nullptr}, + event_category_{static_cast< ::location::nearby::proto::sharing::EventCategory >(0)} {} + +template +PROTOBUF_CONSTEXPR SharingLog::SharingLog(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SharingLog_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SharingLogDefaultTypeInternal { - constexpr SharingLogDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SharingLogDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SharingLogDefaultTypeInternal() {} union { SharingLog _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SharingLogDefaultTypeInternal _SharingLog_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharingLogDefaultTypeInternal _SharingLog_default_instance_; } // namespace proto } // namespace analytics } // namespace sharing @@ -1461,19401 +2647,21992 @@ namespace nearby { namespace sharing { namespace analytics { namespace proto { -bool SharingLog_TextAttachment_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SharingLog_TextAttachment_Type_internal_data_[] = { + 262144u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SharingLog_TextAttachment_Type_strings[4] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SharingLog_TextAttachment_Type_strings[4] = {}; +static const char SharingLog_TextAttachment_Type_names[] = { + "ADDRESS" + "PHONE_NUMBER" + "UNKNOWN_TEXT_TYPE" + "URL" +}; -static const char SharingLog_TextAttachment_Type_names[] = - "ADDRESS" - "PHONE_NUMBER" - "UNKNOWN_TEXT_TYPE" - "URL"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingLog_TextAttachment_Type_entries[] = { - { {SharingLog_TextAttachment_Type_names + 0, 7}, 2 }, - { {SharingLog_TextAttachment_Type_names + 7, 12}, 3 }, - { {SharingLog_TextAttachment_Type_names + 19, 17}, 0 }, - { {SharingLog_TextAttachment_Type_names + 36, 3}, 1 }, +static const ::google::protobuf::internal::EnumEntry SharingLog_TextAttachment_Type_entries[] = { + {{&SharingLog_TextAttachment_Type_names[0], 7}, 2}, + {{&SharingLog_TextAttachment_Type_names[7], 12}, 3}, + {{&SharingLog_TextAttachment_Type_names[19], 17}, 0}, + {{&SharingLog_TextAttachment_Type_names[36], 3}, 1}, }; static const int SharingLog_TextAttachment_Type_entries_by_number[] = { - 2, // 0 -> UNKNOWN_TEXT_TYPE - 3, // 1 -> URL - 0, // 2 -> ADDRESS - 1, // 3 -> PHONE_NUMBER + 2, // 0 -> UNKNOWN_TEXT_TYPE + 3, // 1 -> URL + 0, // 2 -> ADDRESS + 1, // 3 -> PHONE_NUMBER }; -const std::string& SharingLog_TextAttachment_Type_Name( - SharingLog_TextAttachment_Type value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SharingLog_TextAttachment_Type_entries, - SharingLog_TextAttachment_Type_entries_by_number, - 4, SharingLog_TextAttachment_Type_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SharingLog_TextAttachment_Type_entries, - SharingLog_TextAttachment_Type_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SharingLog_TextAttachment_Type_strings[idx].get(); +const ::std::string& SharingLog_TextAttachment_Type_Name(SharingLog_TextAttachment_Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SharingLog_TextAttachment_Type_entries, SharingLog_TextAttachment_Type_entries_by_number, 4, + SharingLog_TextAttachment_Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_TextAttachment_Type_entries, + SharingLog_TextAttachment_Type_entries_by_number, + 4, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_TextAttachment_Type_strings[idx].get(); } -bool SharingLog_TextAttachment_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_TextAttachment_Type* value) { + +bool SharingLog_TextAttachment_Type_Parse(::absl::string_view name, SharingLog_TextAttachment_Type* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SharingLog_TextAttachment_Type_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::UNKNOWN_TEXT_TYPE; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::URL; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::ADDRESS; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::PHONE_NUMBER; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::Type_MIN; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment::Type_MAX; -constexpr int SharingLog_TextAttachment::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool SharingLog_FileAttachment_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SharingLog_FileAttachment_Type_internal_data_[] = { + 458752u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SharingLog_FileAttachment_Type_strings[7] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SharingLog_FileAttachment_Type_strings[7] = {}; +static const char SharingLog_FileAttachment_Type_names[] = { + "ANDROID_APP" + "AUDIO" + "CONTACT_CARD" + "DOCUMENT" + "IMAGE" + "UNKNOWN_FILE_TYPE" + "VIDEO" +}; -static const char SharingLog_FileAttachment_Type_names[] = - "ANDROID_APP" - "AUDIO" - "CONTACT_CARD" - "DOCUMENT" - "IMAGE" - "UNKNOWN_FILE_TYPE" - "VIDEO"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingLog_FileAttachment_Type_entries[] = { - { {SharingLog_FileAttachment_Type_names + 0, 11}, 3 }, - { {SharingLog_FileAttachment_Type_names + 11, 5}, 4 }, - { {SharingLog_FileAttachment_Type_names + 16, 12}, 6 }, - { {SharingLog_FileAttachment_Type_names + 28, 8}, 5 }, - { {SharingLog_FileAttachment_Type_names + 36, 5}, 1 }, - { {SharingLog_FileAttachment_Type_names + 41, 17}, 0 }, - { {SharingLog_FileAttachment_Type_names + 58, 5}, 2 }, +static const ::google::protobuf::internal::EnumEntry SharingLog_FileAttachment_Type_entries[] = { + {{&SharingLog_FileAttachment_Type_names[0], 11}, 3}, + {{&SharingLog_FileAttachment_Type_names[11], 5}, 4}, + {{&SharingLog_FileAttachment_Type_names[16], 12}, 6}, + {{&SharingLog_FileAttachment_Type_names[28], 8}, 5}, + {{&SharingLog_FileAttachment_Type_names[36], 5}, 1}, + {{&SharingLog_FileAttachment_Type_names[41], 17}, 0}, + {{&SharingLog_FileAttachment_Type_names[58], 5}, 2}, }; static const int SharingLog_FileAttachment_Type_entries_by_number[] = { - 5, // 0 -> UNKNOWN_FILE_TYPE - 4, // 1 -> IMAGE - 6, // 2 -> VIDEO - 0, // 3 -> ANDROID_APP - 1, // 4 -> AUDIO - 3, // 5 -> DOCUMENT - 2, // 6 -> CONTACT_CARD + 5, // 0 -> UNKNOWN_FILE_TYPE + 4, // 1 -> IMAGE + 6, // 2 -> VIDEO + 0, // 3 -> ANDROID_APP + 1, // 4 -> AUDIO + 3, // 5 -> DOCUMENT + 2, // 6 -> CONTACT_CARD }; -const std::string& SharingLog_FileAttachment_Type_Name( - SharingLog_FileAttachment_Type value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SharingLog_FileAttachment_Type_entries, - SharingLog_FileAttachment_Type_entries_by_number, - 7, SharingLog_FileAttachment_Type_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SharingLog_FileAttachment_Type_entries, - SharingLog_FileAttachment_Type_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SharingLog_FileAttachment_Type_strings[idx].get(); +const ::std::string& SharingLog_FileAttachment_Type_Name(SharingLog_FileAttachment_Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SharingLog_FileAttachment_Type_entries, SharingLog_FileAttachment_Type_entries_by_number, 7, + SharingLog_FileAttachment_Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_FileAttachment_Type_entries, + SharingLog_FileAttachment_Type_entries_by_number, + 7, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_FileAttachment_Type_strings[idx].get(); } -bool SharingLog_FileAttachment_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_FileAttachment_Type* value) { + +bool SharingLog_FileAttachment_Type_Parse(::absl::string_view name, SharingLog_FileAttachment_Type* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SharingLog_FileAttachment_Type_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::UNKNOWN_FILE_TYPE; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::IMAGE; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::VIDEO; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::ANDROID_APP; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::AUDIO; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::DOCUMENT; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::CONTACT_CARD; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::Type_MIN; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment::Type_MAX; -constexpr int SharingLog_FileAttachment::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool SharingLog_RpcCallStatus_RpcDirection_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SharingLog_RpcCallStatus_RpcDirection_internal_data_[] = { + 196608u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SharingLog_RpcCallStatus_RpcDirection_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SharingLog_RpcCallStatus_RpcDirection_strings[3] = {}; +static const char SharingLog_RpcCallStatus_RpcDirection_names[] = { + "INCOMING" + "OUTGOING" + "UNKNOWN_RPC_DIRECTION" +}; -static const char SharingLog_RpcCallStatus_RpcDirection_names[] = - "INCOMING" - "OUTGOING" - "UNKNOWN_RPC_DIRECTION"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingLog_RpcCallStatus_RpcDirection_entries[] = { - { {SharingLog_RpcCallStatus_RpcDirection_names + 0, 8}, 1 }, - { {SharingLog_RpcCallStatus_RpcDirection_names + 8, 8}, 2 }, - { {SharingLog_RpcCallStatus_RpcDirection_names + 16, 21}, 0 }, +static const ::google::protobuf::internal::EnumEntry SharingLog_RpcCallStatus_RpcDirection_entries[] = { + {{&SharingLog_RpcCallStatus_RpcDirection_names[0], 8}, 1}, + {{&SharingLog_RpcCallStatus_RpcDirection_names[8], 8}, 2}, + {{&SharingLog_RpcCallStatus_RpcDirection_names[16], 21}, 0}, }; static const int SharingLog_RpcCallStatus_RpcDirection_entries_by_number[] = { - 2, // 0 -> UNKNOWN_RPC_DIRECTION - 0, // 1 -> INCOMING - 1, // 2 -> OUTGOING + 2, // 0 -> UNKNOWN_RPC_DIRECTION + 0, // 1 -> INCOMING + 1, // 2 -> OUTGOING }; -const std::string& SharingLog_RpcCallStatus_RpcDirection_Name( - SharingLog_RpcCallStatus_RpcDirection value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SharingLog_RpcCallStatus_RpcDirection_entries, - SharingLog_RpcCallStatus_RpcDirection_entries_by_number, - 3, SharingLog_RpcCallStatus_RpcDirection_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SharingLog_RpcCallStatus_RpcDirection_entries, - SharingLog_RpcCallStatus_RpcDirection_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SharingLog_RpcCallStatus_RpcDirection_strings[idx].get(); +const ::std::string& SharingLog_RpcCallStatus_RpcDirection_Name(SharingLog_RpcCallStatus_RpcDirection value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SharingLog_RpcCallStatus_RpcDirection_entries, SharingLog_RpcCallStatus_RpcDirection_entries_by_number, 3, + SharingLog_RpcCallStatus_RpcDirection_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_RpcCallStatus_RpcDirection_entries, + SharingLog_RpcCallStatus_RpcDirection_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_RpcCallStatus_RpcDirection_strings[idx].get(); } -bool SharingLog_RpcCallStatus_RpcDirection_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_RpcCallStatus_RpcDirection* value) { + +bool SharingLog_RpcCallStatus_RpcDirection_Parse(::absl::string_view name, SharingLog_RpcCallStatus_RpcDirection* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SharingLog_RpcCallStatus_RpcDirection_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::UNKNOWN_RPC_DIRECTION; -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::INCOMING; -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::OUTGOING; -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::RpcDirection_MIN; -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::RpcDirection_MAX; -constexpr int SharingLog_RpcCallStatus::RpcDirection_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[6] = {}; +static const char SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[] = { + "ANDROID" + "CHROME_OS" + "GENERIC" + "IOS" + "UNKNOWN_CLIENT_PLATFORM" + "WINDOWS" +}; -static const char SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[] = - "ANDROID" - "CHROME_OS" - "GENERIC" - "IOS" - "UNKNOWN_CLIENT_PLATFORM" - "WINDOWS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries[] = { - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 0, 7}, 2 }, - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 7, 9}, 4 }, - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 16, 7}, 1 }, - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 23, 3}, 3 }, - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 26, 23}, 0 }, - { {SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names + 49, 7}, 5 }, +static const ::google::protobuf::internal::EnumEntry SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries[] = { + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[0], 7}, 2}, + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[7], 9}, 4}, + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[16], 7}, 1}, + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[23], 3}, 3}, + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[26], 23}, 0}, + {{&SharingLog_QrCodeOpenedInWebClient_ClientPlatform_names[49], 7}, 5}, }; static const int SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number[] = { - 4, // 0 -> UNKNOWN_CLIENT_PLATFORM - 2, // 1 -> GENERIC - 0, // 2 -> ANDROID - 3, // 3 -> IOS - 1, // 4 -> CHROME_OS - 5, // 5 -> WINDOWS + 4, // 0 -> UNKNOWN_CLIENT_PLATFORM + 2, // 1 -> GENERIC + 0, // 2 -> ANDROID + 3, // 3 -> IOS + 1, // 4 -> CHROME_OS + 5, // 5 -> WINDOWS }; -const std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name( - SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number, - 6, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[idx].get(); +const ::std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number, 6, + SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, + SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SharingLog_QrCodeOpenedInWebClient_ClientPlatform_strings[idx].get(); } -bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_QrCodeOpenedInWebClient_ClientPlatform* value) { + +bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse(::absl::string_view name, SharingLog_QrCodeOpenedInWebClient_ClientPlatform* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SharingLog_QrCodeOpenedInWebClient_ClientPlatform_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::UNKNOWN_CLIENT_PLATFORM; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::GENERIC; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::ANDROID; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::IOS; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::CHROME_OS; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::WINDOWS; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::ClientPlatform_MIN; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::ClientPlatform_MAX; -constexpr int SharingLog_QrCodeOpenedInWebClient::ClientPlatform_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - // =================================================================== class SharingLog_AppInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_app_version(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_app_language(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_update_track(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_._has_bits_); }; -SharingLog_AppInfo::SharingLog_AppInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AppInfo::SharingLog_AppInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppInfo) } -SharingLog_AppInfo::SharingLog_AppInfo(const SharingLog_AppInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_app_version()) { - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version(), - GetArenaForAllocation()); - } - app_language_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_language_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_app_language()) { - app_language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_language(), - GetArenaForAllocation()); - } - update_track_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - update_track_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_update_track()) { - update_track_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_update_track(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE SharingLog_AppInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + app_version_(arena, from.app_version_), + app_language_(arena, from.app_language_), + update_track_(arena, from.update_track_) {} + +SharingLog_AppInfo::SharingLog_AppInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_AppInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_AppInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AppInfo) } +PROTOBUF_NDEBUG_INLINE SharingLog_AppInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + app_version_(arena), + app_language_(arena), + update_track_(arena) {} -inline void SharingLog_AppInfo::SharedCtor() { -app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -app_language_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_language_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -update_track_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - update_track_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void SharingLog_AppInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AppInfo::~SharingLog_AppInfo() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AppInfo::SharedDtor(MessageLite& self) { + SharingLog_AppInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.app_version_.Destroy(); + this_._impl_.app_language_.Destroy(); + this_._impl_.update_track_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_AppInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - app_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_language_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - update_track_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_AppInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AppInfo(arena); +} +constexpr auto SharingLog_AppInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AppInfo), + alignof(SharingLog_AppInfo)); +} +constexpr auto SharingLog_AppInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<50>{ + { + &_SharingLog_AppInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AppInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AppInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AppInfo::ByteSizeLong, + &SharingLog_AppInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AppInfo", + }; } -void SharingLog_AppInfo::ArenaDtor(void* object) { - SharingLog_AppInfo* _this = reinterpret_cast< SharingLog_AppInfo* >(object); - (void)_this; -} -void SharingLog_AppInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AppInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<50> SharingLog_AppInfo_class_data_ = + SharingLog_AppInfo::InternalGenerateClassData_(); -void SharingLog_AppInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AppInfo::GetClassData() const { + return SharingLog_AppInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +SharingLog_AppInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AppInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string app_version = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_version_)}}, + // optional string app_language = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_language_)}}, + // optional string update_track = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.update_track_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string app_version = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_version_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string app_language = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.app_language_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string update_track = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppInfo, _impl_.update_track_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AppInfo::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - app_version_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.app_version_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - app_language_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.app_language_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - update_track_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.update_track_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AppInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string app_version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_app_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string app_language = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_app_language(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string update_track = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_update_track(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AppInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AppInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AppInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AppInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AppInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string app_version = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_app_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_app_version(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional string app_language = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_app_language(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_app_language(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional string update_track = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_update_track(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_update_track(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AppInfo) return target; } -size_t SharingLog_AppInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AppInfo::ByteSizeLong(const MessageLite& base) { + const SharingLog_AppInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AppInfo::ByteSizeLong() const { + const SharingLog_AppInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string app_version = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_app_version()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_app_version()); } - // optional string app_language = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_app_language()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_app_language()); } - // optional string update_track = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_update_track()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_update_track()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AppInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_AppInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_AppInfo::MergeFrom(const SharingLog_AppInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_app_version(from._internal_app_version()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_app_version(from._internal_app_version()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_app_language(from._internal_app_language()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_app_language(from._internal_app_language()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_update_track(from._internal_update_track()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_update_track(from._internal_update_track()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AppInfo::CopyFrom(const SharingLog_AppInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AppInfo::IsInitialized() const { - return true; -} -void SharingLog_AppInfo::InternalSwap(SharingLog_AppInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_AppInfo::InternalSwap(SharingLog_AppInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &app_version_, lhs_arena, - &other->app_version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &app_language_, lhs_arena, - &other->app_language_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &update_track_, lhs_arena, - &other->update_track_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_version_, &other->_impl_.app_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_language_, &other->_impl_.app_language_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.update_track_, &other->_impl_.update_track_, arena); } -std::string SharingLog_AppInfo::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AppInfo"; -} - - // =================================================================== class SharingLog_DeviceSettings::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_data_usage(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_name_size(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_is_show_notification_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_is_bt_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_is_location_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_is_wifi_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_first_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_previous_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_lifetime_transfer_count(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_contact_access(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_identity_verification(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._has_bits_); }; -SharingLog_DeviceSettings::SharingLog_DeviceSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DeviceSettings::SharingLog_DeviceSettings(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DeviceSettings_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) } -SharingLog_DeviceSettings::SharingLog_DeviceSettings(const SharingLog_DeviceSettings& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&visibility_, &from.visibility_, - static_cast(reinterpret_cast(&identity_verification_) - - reinterpret_cast(&visibility_)) + sizeof(identity_verification_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) +SharingLog_DeviceSettings::SharingLog_DeviceSettings( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeviceSettings& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DeviceSettings_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DeviceSettings::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DeviceSettings::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&visibility_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&identity_verification_) - - reinterpret_cast(&visibility_)) + sizeof(identity_verification_)); +inline void SharingLog_DeviceSettings::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, visibility_), + 0, + offsetof(Impl_, identity_verification_) - + offsetof(Impl_, visibility_) + + sizeof(Impl_::identity_verification_)); } - SharingLog_DeviceSettings::~SharingLog_DeviceSettings() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DeviceSettings::SharedDtor(MessageLite& self) { + SharingLog_DeviceSettings& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DeviceSettings::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DeviceSettings::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DeviceSettings(arena); +} +constexpr auto SharingLog_DeviceSettings::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DeviceSettings), + alignof(SharingLog_DeviceSettings)); +} +constexpr auto SharingLog_DeviceSettings::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_DeviceSettings_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DeviceSettings::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DeviceSettings::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DeviceSettings::ByteSizeLong, + &SharingLog_DeviceSettings::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DeviceSettings", + }; } -void SharingLog_DeviceSettings::ArenaDtor(void* object) { - SharingLog_DeviceSettings* _this = reinterpret_cast< SharingLog_DeviceSettings* >(object); - (void)_this; -} -void SharingLog_DeviceSettings::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DeviceSettings::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_DeviceSettings_class_data_ = + SharingLog_DeviceSettings::InternalGenerateClassData_(); -void SharingLog_DeviceSettings::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DeviceSettings::GetClassData() const { + return SharingLog_DeviceSettings_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 4, 0, 2> +SharingLog_DeviceSettings::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_._has_bits_), + 0, // no _extensions_ + 12, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_DeviceSettings_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_)}}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.data_usage_)}}, + // optional int32 device_name_size = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.device_name_size_)}}, + // optional bool is_show_notification_enabled = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_show_notification_enabled_)}}, + // optional bool is_bt_enabled = 5; + {::_pbi::TcParser::FastV8S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_bt_enabled_)}}, + // optional bool is_location_enabled = 6; + {::_pbi::TcParser::FastV8S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_location_enabled_)}}, + // optional bool is_wifi_enabled = 7; + {::_pbi::TcParser::FastV8S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_wifi_enabled_)}}, + // optional int32 first_successful_transfer_date = 8; + {::_pbi::TcParser::FastV32S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.first_successful_transfer_date_)}}, + // optional int32 previous_successful_transfer_date = 9; + {::_pbi::TcParser::FastV32S1, + {72, 8, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.previous_successful_transfer_date_)}}, + // optional int32 lifetime_transfer_count = 10; + {::_pbi::TcParser::FastV32S1, + {80, 9, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.lifetime_transfer_count_)}}, + // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; + {::_pbi::TcParser::FastEr0S1, + {88, 10, 4, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.contact_access_)}}, + // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; + {::_pbi::TcParser::FastEr0S1, + {96, 11, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.identity_verification_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.data_usage_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int32 device_name_size = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.device_name_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bool is_show_notification_enabled = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_show_notification_enabled_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_bt_enabled = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_bt_enabled_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_location_enabled = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_location_enabled_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_wifi_enabled = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.is_wifi_enabled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional int32 first_successful_transfer_date = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 previous_successful_transfer_date = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 lifetime_transfer_count = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.contact_access_), _Internal::kHasBitsOffset + 10, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; + {PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.identity_verification_), _Internal::kHasBitsOffset + 11, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + {0, 3}, + {0, 4}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DeviceSettings::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - ::memset(&visibility_, 0, static_cast( - reinterpret_cast(&first_successful_transfer_date_) - - reinterpret_cast(&visibility_)) + sizeof(first_successful_transfer_date_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + ::memset(&_impl_.visibility_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.first_successful_transfer_date_) - + reinterpret_cast(&_impl_.visibility_)) + sizeof(_impl_.first_successful_transfer_date_)); } - if (cached_has_bits & 0x00000f00u) { - ::memset(&previous_successful_transfer_date_, 0, static_cast( - reinterpret_cast(&identity_verification_) - - reinterpret_cast(&previous_successful_transfer_date_)) + sizeof(identity_verification_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + ::memset(&_impl_.previous_successful_transfer_date_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.identity_verification_) - + reinterpret_cast(&_impl_.previous_successful_transfer_date_)) + sizeof(_impl_.identity_verification_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DeviceSettings::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.Visibility visibility = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_data_usage(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 device_name_size = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_device_name_size(&has_bits); - device_name_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_show_notification_enabled = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_is_show_notification_enabled(&has_bits); - is_show_notification_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_bt_enabled = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_is_bt_enabled(&has_bits); - is_bt_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_location_enabled = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_is_location_enabled(&has_bits); - is_location_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_wifi_enabled = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_is_wifi_enabled(&has_bits); - is_wifi_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 first_successful_transfer_date = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_first_successful_transfer_date(&has_bits); - first_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 previous_successful_transfer_date = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_previous_successful_transfer_date(&has_bits); - previous_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 lifetime_transfer_count = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_lifetime_transfer_count(&has_bits); - lifetime_transfer_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ContactAccess_IsValid(val))) { - _internal_set_contact_access(static_cast<::location::nearby::proto::sharing::ContactAccess>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::IdentityVerification_IsValid(val))) { - _internal_set_identity_verification(static_cast<::location::nearby::proto::sharing::IdentityVerification>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DeviceSettings::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DeviceSettings::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DeviceSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DeviceSettings::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DeviceSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_visibility(), target); } // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_data_usage(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_data_usage(), target); } // optional int32 device_name_size = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_device_name_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_device_name_size(), target); } // optional bool is_show_notification_enabled = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_show_notification_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_show_notification_enabled(), target); } // optional bool is_bt_enabled = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_bt_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_bt_enabled(), target); } // optional bool is_location_enabled = 6; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_location_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_location_enabled(), target); } // optional bool is_wifi_enabled = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_wifi_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_is_wifi_enabled(), target); } // optional int32 first_successful_transfer_date = 8; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_first_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_first_successful_transfer_date(), target); } // optional int32 previous_successful_transfer_date = 9; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_previous_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_previous_successful_transfer_date(), target); } // optional int32 lifetime_transfer_count = 10; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_lifetime_transfer_count(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( + stream, this_._internal_lifetime_transfer_count(), target); } // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_contact_access(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 11, this_._internal_contact_access(), target); } // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 12, this->_internal_identity_verification(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 12, this_._internal_identity_verification(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) return target; } -size_t SharingLog_DeviceSettings::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DeviceSettings::ByteSizeLong(const MessageLite& base) { + const SharingLog_DeviceSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DeviceSettings::ByteSizeLong() const { + const SharingLog_DeviceSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000078U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x00000087U)) { // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_visibility()); } - // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_usage()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage()); } - // optional int32 device_name_size = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_name_size()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_device_name_size()); } - - // optional bool is_show_notification_enabled = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional bool is_bt_enabled = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 1; - } - - // optional bool is_location_enabled = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional bool is_wifi_enabled = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; - } - // optional int32 first_successful_transfer_date = 8; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_first_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_first_successful_transfer_date()); } - } - if (cached_has_bits & 0x00000f00u) { + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { // optional int32 previous_successful_transfer_date = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_previous_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_previous_successful_transfer_date()); } - // optional int32 lifetime_transfer_count = 10; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_lifetime_transfer_count()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_lifetime_transfer_count()); } - // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_contact_access()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_contact_access()); } - // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_identity_verification()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_identity_verification()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DeviceSettings::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_DeviceSettings::MergeFrom(const SharingLog_DeviceSettings& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - visibility_ = from.visibility_; - } - if (cached_has_bits & 0x00000002u) { - data_usage_ = from.data_usage_; - } - if (cached_has_bits & 0x00000004u) { - device_name_size_ = from.device_name_size_; - } - if (cached_has_bits & 0x00000008u) { - is_show_notification_enabled_ = from.is_show_notification_enabled_; - } - if (cached_has_bits & 0x00000010u) { - is_bt_enabled_ = from.is_bt_enabled_; - } - if (cached_has_bits & 0x00000020u) { - is_location_enabled_ = from.is_location_enabled_; - } - if (cached_has_bits & 0x00000040u) { - is_wifi_enabled_ = from.is_wifi_enabled_; - } - if (cached_has_bits & 0x00000080u) { - first_successful_transfer_date_ = from.first_successful_transfer_date_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_DeviceSettings::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - previous_successful_transfer_date_ = from.previous_successful_transfer_date_; + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.visibility_ = from._impl_.visibility_; } - if (cached_has_bits & 0x00000200u) { - lifetime_transfer_count_ = from.lifetime_transfer_count_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.data_usage_ = from._impl_.data_usage_; } - if (cached_has_bits & 0x00000400u) { - contact_access_ = from.contact_access_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.device_name_size_ = from._impl_.device_name_size_; } - if (cached_has_bits & 0x00000800u) { - identity_verification_ = from.identity_verification_; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.is_show_notification_enabled_ = from._impl_.is_show_notification_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.is_bt_enabled_ = from._impl_.is_bt_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.is_location_enabled_ = from._impl_.is_location_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.is_wifi_enabled_ = from._impl_.is_wifi_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_; + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.contact_access_ = from._impl_.contact_access_; + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.identity_verification_ = from._impl_.identity_verification_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DeviceSettings::CopyFrom(const SharingLog_DeviceSettings& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DeviceSettings::IsInitialized() const { - return true; -} -void SharingLog_DeviceSettings::InternalSwap(SharingLog_DeviceSettings* other) { - using std::swap; +void SharingLog_DeviceSettings::InternalSwap(SharingLog_DeviceSettings* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, identity_verification_) - + sizeof(SharingLog_DeviceSettings::identity_verification_) - - PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, visibility_)>( - reinterpret_cast(&visibility_), - reinterpret_cast(&other->visibility_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.identity_verification_) + + sizeof(SharingLog_DeviceSettings::_impl_.identity_verification_) + - PROTOBUF_FIELD_OFFSET(SharingLog_DeviceSettings, _impl_.visibility_)>( + reinterpret_cast(&_impl_.visibility_), + reinterpret_cast(&other->_impl_.visibility_)); } -std::string SharingLog_DeviceSettings::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DeviceSettings"; -} - - // =================================================================== class SharingLog_PreferencesUsage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_action(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_action_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_prev_sub_action(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_next_sub_action(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._has_bits_); }; -SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_PreferencesUsage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) } -SharingLog_PreferencesUsage::SharingLog_PreferencesUsage(const SharingLog_PreferencesUsage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&action_, &from.action_, - static_cast(reinterpret_cast(&next_sub_action_) - - reinterpret_cast(&action_)) + sizeof(next_sub_action_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) +SharingLog_PreferencesUsage::SharingLog_PreferencesUsage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_PreferencesUsage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_PreferencesUsage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_PreferencesUsage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_PreferencesUsage::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&next_sub_action_) - - reinterpret_cast(&action_)) + sizeof(next_sub_action_)); +inline void SharingLog_PreferencesUsage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, action_), + 0, + offsetof(Impl_, next_sub_action_) - + offsetof(Impl_, action_) + + sizeof(Impl_::next_sub_action_)); } - SharingLog_PreferencesUsage::~SharingLog_PreferencesUsage() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_PreferencesUsage::SharedDtor(MessageLite& self) { + SharingLog_PreferencesUsage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_PreferencesUsage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_PreferencesUsage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_PreferencesUsage(arena); +} +constexpr auto SharingLog_PreferencesUsage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_PreferencesUsage), + alignof(SharingLog_PreferencesUsage)); +} +constexpr auto SharingLog_PreferencesUsage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_PreferencesUsage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_PreferencesUsage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_PreferencesUsage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_PreferencesUsage::ByteSizeLong, + &SharingLog_PreferencesUsage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.PreferencesUsage", + }; } -void SharingLog_PreferencesUsage::ArenaDtor(void* object) { - SharingLog_PreferencesUsage* _this = reinterpret_cast< SharingLog_PreferencesUsage* >(object); - (void)_this; -} -void SharingLog_PreferencesUsage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_PreferencesUsage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_PreferencesUsage_class_data_ = + SharingLog_PreferencesUsage::InternalGenerateClassData_(); -void SharingLog_PreferencesUsage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_PreferencesUsage::GetClassData() const { + return SharingLog_PreferencesUsage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> +SharingLog_PreferencesUsage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_PreferencesUsage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 3, 11, + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.next_sub_action_)}}, + // optional .location.nearby.proto.sharing.PreferencesAction action = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 11, + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_)}}, + // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_status_)}}, + // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 2, 11, + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.prev_sub_action_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.PreferencesAction action = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.prev_sub_action_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.next_sub_action_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 11}, + {0, 2}, + {0, 11}, + {0, 11}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_PreferencesUsage::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&action_, 0, static_cast( - reinterpret_cast(&next_sub_action_) - - reinterpret_cast(&action_)) + sizeof(next_sub_action_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.action_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.next_sub_action_) - + reinterpret_cast(&_impl_.action_)) + sizeof(_impl_.next_sub_action_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_PreferencesUsage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.PreferencesAction action = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PreferencesAction_IsValid(val))) { - _internal_set_action(static_cast<::location::nearby::proto::sharing::PreferencesAction>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PreferencesActionStatus_IsValid(val))) { - _internal_set_action_status(static_cast<::location::nearby::proto::sharing::PreferencesActionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PreferencesAction_IsValid(val))) { - _internal_set_prev_sub_action(static_cast<::location::nearby::proto::sharing::PreferencesAction>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PreferencesAction_IsValid(val))) { - _internal_set_next_sub_action(static_cast<::location::nearby::proto::sharing::PreferencesAction>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_PreferencesUsage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_PreferencesUsage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_PreferencesUsage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_PreferencesUsage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_PreferencesUsage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.PreferencesAction action = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_action(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_action(), target); } // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_action_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_action_status(), target); } // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_prev_sub_action(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_prev_sub_action(), target); } // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_next_sub_action(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_next_sub_action(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) return target; } -size_t SharingLog_PreferencesUsage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_PreferencesUsage::ByteSizeLong(const MessageLite& base) { + const SharingLog_PreferencesUsage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_PreferencesUsage::ByteSizeLong() const { + const SharingLog_PreferencesUsage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .location.nearby.proto.sharing.PreferencesAction action = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_action()); } - // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_action_status()); } - // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prev_sub_action()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_prev_sub_action()); } - // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_next_sub_action()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_next_sub_action()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_PreferencesUsage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_PreferencesUsage::MergeFrom(const SharingLog_PreferencesUsage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - action_ = from.action_; - } - if (cached_has_bits & 0x00000002u) { - action_status_ = from.action_status_; - } - if (cached_has_bits & 0x00000004u) { - prev_sub_action_ = from.prev_sub_action_; - } - if (cached_has_bits & 0x00000008u) { - next_sub_action_ = from.next_sub_action_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_PreferencesUsage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.action_ = from._impl_.action_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_status_ = from._impl_.action_status_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.prev_sub_action_ = from._impl_.prev_sub_action_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.next_sub_action_ = from._impl_.next_sub_action_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_PreferencesUsage::CopyFrom(const SharingLog_PreferencesUsage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_PreferencesUsage::IsInitialized() const { - return true; -} -void SharingLog_PreferencesUsage::InternalSwap(SharingLog_PreferencesUsage* other) { - using std::swap; +void SharingLog_PreferencesUsage::InternalSwap(SharingLog_PreferencesUsage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, next_sub_action_) - + sizeof(SharingLog_PreferencesUsage::next_sub_action_) - - PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, action_)>( - reinterpret_cast(&action_), - reinterpret_cast(&other->action_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.next_sub_action_) + + sizeof(SharingLog_PreferencesUsage::_impl_.next_sub_action_) + - PROTOBUF_FIELD_OFFSET(SharingLog_PreferencesUsage, _impl_.action_)>( + reinterpret_cast(&_impl_.action_), + reinterpret_cast(&other->_impl_.action_)); } -std::string SharingLog_PreferencesUsage::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.PreferencesUsage"; -} - - // =================================================================== class SharingLog_UnknownEvent::_Internal { public: }; -SharingLog_UnknownEvent::SharingLog_UnknownEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_UnknownEvent::SharingLog_UnknownEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_UnknownEvent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) } -SharingLog_UnknownEvent::SharingLog_UnknownEvent(const SharingLog_UnknownEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) +SharingLog_UnknownEvent::SharingLog_UnknownEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_UnknownEvent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_UnknownEvent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_UnknownEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_UnknownEvent::SharedCtor() { +inline void SharingLog_UnknownEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_UnknownEvent::~SharingLog_UnknownEvent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_UnknownEvent::SharedDtor(MessageLite& self) { + SharingLog_UnknownEvent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_UnknownEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_UnknownEvent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_UnknownEvent(arena); +} +constexpr auto SharingLog_UnknownEvent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_UnknownEvent), + alignof(SharingLog_UnknownEvent)); +} +constexpr auto SharingLog_UnknownEvent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<55>{ + { + &_SharingLog_UnknownEvent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_UnknownEvent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_UnknownEvent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_UnknownEvent::ByteSizeLong, + &SharingLog_UnknownEvent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_UnknownEvent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.UnknownEvent", + }; } -void SharingLog_UnknownEvent::ArenaDtor(void* object) { - SharingLog_UnknownEvent* _this = reinterpret_cast< SharingLog_UnknownEvent* >(object); - (void)_this; -} -void SharingLog_UnknownEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_UnknownEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> SharingLog_UnknownEvent_class_data_ = + SharingLog_UnknownEvent::InternalGenerateClassData_(); -void SharingLog_UnknownEvent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_UnknownEvent::GetClassData() const { + return SharingLog_UnknownEvent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_UnknownEvent::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_UnknownEvent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_UnknownEvent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_UnknownEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_UnknownEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_UnknownEvent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_UnknownEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_UnknownEvent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_UnknownEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) return target; } -size_t SharingLog_UnknownEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_UnknownEvent::ByteSizeLong(const MessageLite& base) { + const SharingLog_UnknownEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_UnknownEvent::ByteSizeLong() const { + const SharingLog_UnknownEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_UnknownEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_UnknownEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_UnknownEvent::MergeFrom(const SharingLog_UnknownEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_UnknownEvent::CopyFrom(const SharingLog_UnknownEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_UnknownEvent::IsInitialized() const { - return true; -} -void SharingLog_UnknownEvent::InternalSwap(SharingLog_UnknownEvent* other) { - using std::swap; +void SharingLog_UnknownEvent::InternalSwap(SharingLog_UnknownEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_UnknownEvent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.UnknownEvent"; -} - - // =================================================================== class SharingLog_EstablishConnection::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_EstablishConnection* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_qr_code_flow(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_is_incoming_connection(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::PROTOBUF_NAMESPACE_ID::Duration& qr_code_receiver_connect_latency(const SharingLog_EstablishConnection* msg); - static void set_has_qr_code_receiver_connect_latency(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_EstablishConnection::_Internal::share_target_info(const SharingLog_EstablishConnection* msg) { - return *msg->share_target_info_; -} -const ::PROTOBUF_NAMESPACE_ID::Duration& -SharingLog_EstablishConnection::_Internal::qr_code_receiver_connect_latency(const SharingLog_EstablishConnection* msg) { - return *msg->qr_code_receiver_connect_latency_; -} void SharingLog_EstablishConnection::clear_qr_code_receiver_connect_latency() { - if (qr_code_receiver_connect_latency_ != nullptr) qr_code_receiver_connect_latency_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_receiver_connect_latency_ != nullptr) _impl_.qr_code_receiver_connect_latency_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -SharingLog_EstablishConnection::SharingLog_EstablishConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_EstablishConnection::SharingLog_EstablishConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EstablishConnection_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) } -SharingLog_EstablishConnection::SharingLog_EstablishConnection(const SharingLog_EstablishConnection& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - if (from._internal_has_qr_code_receiver_connect_latency()) { - qr_code_receiver_connect_latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.qr_code_receiver_connect_latency_); - } else { - qr_code_receiver_connect_latency_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&is_incoming_connection_) - - reinterpret_cast(&session_id_)) + sizeof(is_incoming_connection_)); +PROTOBUF_NDEBUG_INLINE SharingLog_EstablishConnection::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_EstablishConnection::SharingLog_EstablishConnection( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_EstablishConnection& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EstablishConnection_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_EstablishConnection* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + _impl_.qr_code_receiver_connect_latency_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_receiver_connect_latency_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, is_incoming_connection_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::is_incoming_connection_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) } +PROTOBUF_NDEBUG_INLINE SharingLog_EstablishConnection::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_EstablishConnection::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_incoming_connection_) - - reinterpret_cast(&share_target_info_)) + sizeof(is_incoming_connection_)); +inline void SharingLog_EstablishConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, is_incoming_connection_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::is_incoming_connection_)); } - SharingLog_EstablishConnection::~SharingLog_EstablishConnection() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_EstablishConnection::SharedDtor(MessageLite& self) { + SharingLog_EstablishConnection& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + delete this_._impl_.share_target_info_; + delete this_._impl_.qr_code_receiver_connect_latency_; + this_._impl_.~Impl_(); } -inline void SharingLog_EstablishConnection::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete share_target_info_; - if (this != internal_default_instance()) delete qr_code_receiver_connect_latency_; +inline void* PROTOBUF_NONNULL SharingLog_EstablishConnection::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_EstablishConnection(arena); +} +constexpr auto SharingLog_EstablishConnection::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_EstablishConnection), + alignof(SharingLog_EstablishConnection)); +} +constexpr auto SharingLog_EstablishConnection::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_EstablishConnection_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_EstablishConnection::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_EstablishConnection::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_EstablishConnection::ByteSizeLong, + &SharingLog_EstablishConnection::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.EstablishConnection", + }; } -void SharingLog_EstablishConnection::ArenaDtor(void* object) { - SharingLog_EstablishConnection* _this = reinterpret_cast< SharingLog_EstablishConnection* >(object); - (void)_this; -} -void SharingLog_EstablishConnection::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_EstablishConnection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EstablishConnection_class_data_ = + SharingLog_EstablishConnection::InternalGenerateClassData_(); -void SharingLog_EstablishConnection::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_EstablishConnection::GetClassData() const { + return SharingLog_EstablishConnection_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 3, 0, 2> +SharingLog_EstablishConnection::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_EstablishConnection_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 4, 10, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.status_)}}, + // optional int64 session_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.session_id_)}}, + // optional int32 transfer_position = 3; + {::_pbi::TcParser::FastV32S1, + {24, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.transfer_position_)}}, + // optional int32 concurrent_connections = 4; + {::_pbi::TcParser::FastV32S1, + {32, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.concurrent_connections_)}}, + // optional int64 duration_millis = 5; + {::_pbi::TcParser::FastV64S1, + {40, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.duration_millis_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_)}}, + // optional string referrer_name = 7; + {::_pbi::TcParser::FastBS1, + {58, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.referrer_name_)}}, + // optional bool qr_code_flow = 8 [deprecated = true]; + {::_pbi::TcParser::FastV8S1, + {64, 8, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_flow_)}}, + // optional bool is_incoming_connection = 9; + {::_pbi::TcParser::FastV8S1, + {72, 9, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_)}}, + // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; + {::_pbi::TcParser::FastMtS1, + {82, 2, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_receiver_connect_latency_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.status_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 session_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.session_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 transfer_position = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.transfer_position_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int64 duration_millis = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.duration_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string referrer_name = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool qr_code_flow = 8 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_incoming_connection = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.qr_code_receiver_connect_latency_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + {0, 10}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_EstablishConnection::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(qr_code_receiver_connect_latency_ != nullptr); - qr_code_receiver_connect_latency_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.qr_code_receiver_connect_latency_ != nullptr); + _impl_.qr_code_receiver_connect_latency_->Clear(); } } - if (cached_has_bits & 0x000000f8u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.concurrent_connections_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_)); } - if (cached_has_bits & 0x00000300u) { - ::memset(&qr_code_flow_, 0, static_cast( - reinterpret_cast(&is_incoming_connection_) - - reinterpret_cast(&qr_code_flow_)) + sizeof(is_incoming_connection_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.qr_code_flow_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_incoming_connection_) - + reinterpret_cast(&_impl_.qr_code_flow_)) + sizeof(_impl_.is_incoming_connection_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_EstablishConnection::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::EstablishConnectionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::EstablishConnectionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 session_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool qr_code_flow = 8 [deprecated = true]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_qr_code_flow(&has_bits); - qr_code_flow_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_incoming_connection = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_is_incoming_connection(&has_bits); - is_incoming_connection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_qr_code_receiver_connect_latency(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_EstablishConnection::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_EstablishConnection::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_EstablishConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_EstablishConnection::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_EstablishConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); } // optional int64 session_id = 2; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_session_id(), target); } // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_concurrent_connections(), target); } // optional int64 duration_millis = 5; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( + stream, this_._internal_duration_millis(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional string referrer_name = 7; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(7, _s, target); } // optional bool qr_code_flow = 8 [deprecated = true]; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_qr_code_flow(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_qr_code_flow(), target); } // optional bool is_incoming_connection = 9; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_is_incoming_connection(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_is_incoming_connection(), target); } // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::qr_code_receiver_connect_latency(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.qr_code_receiver_connect_latency_, this_._impl_.qr_code_receiver_connect_latency_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) return target; } -size_t SharingLog_EstablishConnection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_EstablishConnection::ByteSizeLong(const MessageLite& base) { + const SharingLog_EstablishConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_EstablishConnection::ByteSizeLong() const { + const SharingLog_EstablishConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000300U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string referrer_name = 7; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *qr_code_receiver_connect_latency_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_receiver_connect_latency_); } - // optional int64 session_id = 2; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int64 duration_millis = 5; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - } - if (cached_has_bits & 0x00000300u) { - // optional bool qr_code_flow = 8 [deprecated = true]; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - // optional bool is_incoming_connection = 9; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_EstablishConnection::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_EstablishConnection::MergeFrom(const SharingLog_EstablishConnection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_qr_code_receiver_connect_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_qr_code_receiver_connect_latency()); - } - if (cached_has_bits & 0x00000008u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000010u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000020u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000040u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000080u) { - concurrent_connections_ = from.concurrent_connections_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_EstablishConnection::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - qr_code_flow_ = from.qr_code_flow_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); } - if (cached_has_bits & 0x00000200u) { - is_incoming_connection_ = from.is_incoming_connection_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.qr_code_receiver_connect_latency_ != nullptr); + if (_this->_impl_.qr_code_receiver_connect_latency_ == nullptr) { + _this->_impl_.qr_code_receiver_connect_latency_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_receiver_connect_latency_); + } else { + _this->_impl_.qr_code_receiver_connect_latency_->MergeFrom(*from._impl_.qr_code_receiver_connect_latency_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.is_incoming_connection_ = from._impl_.is_incoming_connection_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_EstablishConnection::CopyFrom(const SharingLog_EstablishConnection& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_EstablishConnection::IsInitialized() const { - return true; -} -void SharingLog_EstablishConnection::InternalSwap(SharingLog_EstablishConnection* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_EstablishConnection::InternalSwap(SharingLog_EstablishConnection* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, is_incoming_connection_) - + sizeof(SharingLog_EstablishConnection::is_incoming_connection_) - - PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.is_incoming_connection_) + + sizeof(SharingLog_EstablishConnection::_impl_.is_incoming_connection_) + - PROTOBUF_FIELD_OFFSET(SharingLog_EstablishConnection, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_EstablishConnection::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.EstablishConnection"; -} - - // =================================================================== class SharingLog_AcceptAgreements::_Internal { public: }; -SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AcceptAgreements_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) } -SharingLog_AcceptAgreements::SharingLog_AcceptAgreements(const SharingLog_AcceptAgreements& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) +SharingLog_AcceptAgreements::SharingLog_AcceptAgreements( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptAgreements& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AcceptAgreements_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AcceptAgreements::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AcceptAgreements::SharedCtor() { +inline void SharingLog_AcceptAgreements::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AcceptAgreements::~SharingLog_AcceptAgreements() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AcceptAgreements::SharedDtor(MessageLite& self) { + SharingLog_AcceptAgreements& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AcceptAgreements::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AcceptAgreements::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AcceptAgreements(arena); +} +constexpr auto SharingLog_AcceptAgreements::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AcceptAgreements), + alignof(SharingLog_AcceptAgreements)); +} +constexpr auto SharingLog_AcceptAgreements::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_AcceptAgreements_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AcceptAgreements::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AcceptAgreements::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AcceptAgreements::ByteSizeLong, + &SharingLog_AcceptAgreements::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AcceptAgreements, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AcceptAgreements", + }; } -void SharingLog_AcceptAgreements::ArenaDtor(void* object) { - SharingLog_AcceptAgreements* _this = reinterpret_cast< SharingLog_AcceptAgreements* >(object); - (void)_this; -} -void SharingLog_AcceptAgreements::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AcceptAgreements::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_AcceptAgreements_class_data_ = + SharingLog_AcceptAgreements::InternalGenerateClassData_(); -void SharingLog_AcceptAgreements::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AcceptAgreements::GetClassData() const { + return SharingLog_AcceptAgreements_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_AcceptAgreements::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AcceptAgreements_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AcceptAgreements::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AcceptAgreements::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AcceptAgreements::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptAgreements::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AcceptAgreements& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptAgreements::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AcceptAgreements& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) return target; } -size_t SharingLog_AcceptAgreements::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AcceptAgreements::ByteSizeLong(const MessageLite& base) { + const SharingLog_AcceptAgreements& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AcceptAgreements::ByteSizeLong() const { + const SharingLog_AcceptAgreements& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AcceptAgreements::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_AcceptAgreements::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_AcceptAgreements::MergeFrom(const SharingLog_AcceptAgreements& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AcceptAgreements::CopyFrom(const SharingLog_AcceptAgreements& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AcceptAgreements::IsInitialized() const { - return true; -} -void SharingLog_AcceptAgreements::InternalSwap(SharingLog_AcceptAgreements* other) { - using std::swap; +void SharingLog_AcceptAgreements::InternalSwap(SharingLog_AcceptAgreements* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_AcceptAgreements::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AcceptAgreements"; -} - - // =================================================================== class SharingLog_DeclineAgreements::_Internal { public: }; -SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DeclineAgreements_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) } -SharingLog_DeclineAgreements::SharingLog_DeclineAgreements(const SharingLog_DeclineAgreements& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) +SharingLog_DeclineAgreements::SharingLog_DeclineAgreements( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeclineAgreements& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DeclineAgreements_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DeclineAgreements::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DeclineAgreements::SharedCtor() { +inline void SharingLog_DeclineAgreements::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DeclineAgreements::~SharingLog_DeclineAgreements() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DeclineAgreements::SharedDtor(MessageLite& self) { + SharingLog_DeclineAgreements& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DeclineAgreements::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DeclineAgreements::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DeclineAgreements(arena); +} +constexpr auto SharingLog_DeclineAgreements::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DeclineAgreements), + alignof(SharingLog_DeclineAgreements)); +} +constexpr auto SharingLog_DeclineAgreements::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<60>{ + { + &_SharingLog_DeclineAgreements_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DeclineAgreements::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DeclineAgreements::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DeclineAgreements::ByteSizeLong, + &SharingLog_DeclineAgreements::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DeclineAgreements, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DeclineAgreements", + }; } -void SharingLog_DeclineAgreements::ArenaDtor(void* object) { - SharingLog_DeclineAgreements* _this = reinterpret_cast< SharingLog_DeclineAgreements* >(object); - (void)_this; -} -void SharingLog_DeclineAgreements::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DeclineAgreements::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<60> SharingLog_DeclineAgreements_class_data_ = + SharingLog_DeclineAgreements::InternalGenerateClassData_(); -void SharingLog_DeclineAgreements::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DeclineAgreements::GetClassData() const { + return SharingLog_DeclineAgreements_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DeclineAgreements::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DeclineAgreements_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DeclineAgreements::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DeclineAgreements::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DeclineAgreements::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DeclineAgreements::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DeclineAgreements& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DeclineAgreements::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DeclineAgreements& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) return target; } -size_t SharingLog_DeclineAgreements::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DeclineAgreements::ByteSizeLong(const MessageLite& base) { + const SharingLog_DeclineAgreements& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DeclineAgreements::ByteSizeLong() const { + const SharingLog_DeclineAgreements& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DeclineAgreements::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DeclineAgreements::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DeclineAgreements::MergeFrom(const SharingLog_DeclineAgreements& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DeclineAgreements::CopyFrom(const SharingLog_DeclineAgreements& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DeclineAgreements::IsInitialized() const { - return true; -} -void SharingLog_DeclineAgreements::InternalSwap(SharingLog_DeclineAgreements* other) { - using std::swap; +void SharingLog_DeclineAgreements::InternalSwap(SharingLog_DeclineAgreements* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DeclineAgreements::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DeclineAgreements"; -} - - // =================================================================== class SharingLog_EnableNearbySharing::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_has_opted_in(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._has_bits_); }; -SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EnableNearbySharing_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) } -SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing(const SharingLog_EnableNearbySharing& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&has_opted_in_) - - reinterpret_cast(&status_)) + sizeof(has_opted_in_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) +SharingLog_EnableNearbySharing::SharingLog_EnableNearbySharing( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_EnableNearbySharing& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EnableNearbySharing_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_EnableNearbySharing::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_EnableNearbySharing::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&status_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&has_opted_in_) - - reinterpret_cast(&status_)) + sizeof(has_opted_in_)); +inline void SharingLog_EnableNearbySharing::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, status_), + 0, + offsetof(Impl_, has_opted_in_) - + offsetof(Impl_, status_) + + sizeof(Impl_::has_opted_in_)); } - SharingLog_EnableNearbySharing::~SharingLog_EnableNearbySharing() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_EnableNearbySharing::SharedDtor(MessageLite& self) { + SharingLog_EnableNearbySharing& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_EnableNearbySharing::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_EnableNearbySharing::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_EnableNearbySharing(arena); +} +constexpr auto SharingLog_EnableNearbySharing::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_EnableNearbySharing), + alignof(SharingLog_EnableNearbySharing)); +} +constexpr auto SharingLog_EnableNearbySharing::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_EnableNearbySharing_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_EnableNearbySharing::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_EnableNearbySharing::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_EnableNearbySharing::ByteSizeLong, + &SharingLog_EnableNearbySharing::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing", + }; } -void SharingLog_EnableNearbySharing::ArenaDtor(void* object) { - SharingLog_EnableNearbySharing* _this = reinterpret_cast< SharingLog_EnableNearbySharing* >(object); - (void)_this; -} -void SharingLog_EnableNearbySharing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_EnableNearbySharing::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EnableNearbySharing_class_data_ = + SharingLog_EnableNearbySharing::InternalGenerateClassData_(); -void SharingLog_EnableNearbySharing::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_EnableNearbySharing::GetClassData() const { + return SharingLog_EnableNearbySharing_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +SharingLog_EnableNearbySharing::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_EnableNearbySharing_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool has_opted_in = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.has_opted_in_)}}, + // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool has_opted_in = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.has_opted_in_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_EnableNearbySharing::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&status_, 0, static_cast( - reinterpret_cast(&has_opted_in_) - - reinterpret_cast(&status_)) + sizeof(has_opted_in_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.has_opted_in_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.has_opted_in_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_EnableNearbySharing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::NearbySharingStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::NearbySharingStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool has_opted_in = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_has_opted_in(&has_bits); - has_opted_in_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_EnableNearbySharing::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_EnableNearbySharing::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_EnableNearbySharing& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_EnableNearbySharing::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_EnableNearbySharing& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); } // optional bool has_opted_in = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_has_opted_in(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_has_opted_in(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) return target; } -size_t SharingLog_EnableNearbySharing::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_EnableNearbySharing::ByteSizeLong(const MessageLite& base) { + const SharingLog_EnableNearbySharing& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_EnableNearbySharing::ByteSizeLong() const { + const SharingLog_EnableNearbySharing& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000002U & cached_has_bits) * 2; + { // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - - // optional bool has_opted_in = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_EnableNearbySharing::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_EnableNearbySharing::MergeFrom(const SharingLog_EnableNearbySharing& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000002u) { - has_opted_in_ = from.has_opted_in_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_EnableNearbySharing::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.has_opted_in_ = from._impl_.has_opted_in_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_EnableNearbySharing::CopyFrom(const SharingLog_EnableNearbySharing& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_EnableNearbySharing::IsInitialized() const { - return true; -} -void SharingLog_EnableNearbySharing::InternalSwap(SharingLog_EnableNearbySharing* other) { - using std::swap; +void SharingLog_EnableNearbySharing::InternalSwap(SharingLog_EnableNearbySharing* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, has_opted_in_) - + sizeof(SharingLog_EnableNearbySharing::has_opted_in_) - - PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, status_)>( - reinterpret_cast(&status_), - reinterpret_cast(&other->status_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.has_opted_in_) + + sizeof(SharingLog_EnableNearbySharing::_impl_.has_opted_in_) + - PROTOBUF_FIELD_OFFSET(SharingLog_EnableNearbySharing, _impl_.status_)>( + reinterpret_cast(&_impl_.status_), + reinterpret_cast(&other->_impl_.status_)); } -std::string SharingLog_EnableNearbySharing::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing"; -} - - // =================================================================== class SharingLog_SetAccount::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_activity_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_._has_bits_); }; -SharingLog_SetAccount::SharingLog_SetAccount(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SetAccount::SharingLog_SetAccount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetAccount_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetAccount) } -SharingLog_SetAccount::SharingLog_SetAccount(const SharingLog_SetAccount& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - activity_name_ = from.activity_name_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SetAccount) +SharingLog_SetAccount::SharingLog_SetAccount( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetAccount& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetAccount_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SetAccount::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SetAccount::SharedCtor() { -activity_name_ = 0; +inline void SharingLog_SetAccount::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.activity_name_ = {}; } - SharingLog_SetAccount::~SharingLog_SetAccount() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetAccount) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SetAccount::SharedDtor(MessageLite& self) { + SharingLog_SetAccount& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SetAccount::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SetAccount::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SetAccount(arena); +} +constexpr auto SharingLog_SetAccount::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetAccount), + alignof(SharingLog_SetAccount)); +} +constexpr auto SharingLog_SetAccount::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<53>{ + { + &_SharingLog_SetAccount_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SetAccount::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SetAccount::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SetAccount::ByteSizeLong, + &SharingLog_SetAccount::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SetAccount", + }; } -void SharingLog_SetAccount::ArenaDtor(void* object) { - SharingLog_SetAccount* _this = reinterpret_cast< SharingLog_SetAccount* >(object); - (void)_this; -} -void SharingLog_SetAccount::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SetAccount::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<53> SharingLog_SetAccount_class_data_ = + SharingLog_SetAccount::InternalGenerateClassData_(); -void SharingLog_SetAccount::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SetAccount::GetClassData() const { + return SharingLog_SetAccount_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_SetAccount::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SetAccount_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetAccount>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_.activity_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetAccount, _impl_.activity_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 12}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SetAccount::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - activity_name_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.activity_name_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SetAccount::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ActivityName_IsValid(val))) { - _internal_set_activity_name(static_cast<::location::nearby::proto::sharing::ActivityName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SetAccount::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SetAccount::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SetAccount& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SetAccount::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SetAccount& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_activity_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_activity_name(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetAccount) return target; } -size_t SharingLog_SetAccount::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SetAccount::ByteSizeLong(const MessageLite& base) { + const SharingLog_SetAccount& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SetAccount::ByteSizeLong() const { + const SharingLog_SetAccount& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_activity_name()); + { + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SetAccount::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SetAccount::MergeFrom(const SharingLog_SetAccount& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_activity_name()) { - _internal_set_activity_name(from._internal_activity_name()); +void SharingLog_SetAccount::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.activity_name_ = from._impl_.activity_name_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SetAccount::CopyFrom(const SharingLog_SetAccount& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetAccount) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SetAccount::IsInitialized() const { - return true; -} -void SharingLog_SetAccount::InternalSwap(SharingLog_SetAccount* other) { - using std::swap; +void SharingLog_SetAccount::InternalSwap(SharingLog_SetAccount* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(activity_name_, other->activity_name_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.activity_name_, other->_impl_.activity_name_); } -std::string SharingLog_SetAccount::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SetAccount"; -} - - // =================================================================== class SharingLog_SetVisibility::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_source_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_source_activity_name(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._has_bits_); }; -SharingLog_SetVisibility::SharingLog_SetVisibility(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SetVisibility::SharingLog_SetVisibility(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetVisibility_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetVisibility) } -SharingLog_SetVisibility::SharingLog_SetVisibility(const SharingLog_SetVisibility& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&visibility_, &from.visibility_, - static_cast(reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&visibility_)) + sizeof(source_activity_name_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SetVisibility) +SharingLog_SetVisibility::SharingLog_SetVisibility( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetVisibility& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetVisibility_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SetVisibility::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SetVisibility::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&visibility_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&visibility_)) + sizeof(source_activity_name_)); +inline void SharingLog_SetVisibility::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, visibility_), + 0, + offsetof(Impl_, source_activity_name_) - + offsetof(Impl_, visibility_) + + sizeof(Impl_::source_activity_name_)); } - SharingLog_SetVisibility::~SharingLog_SetVisibility() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetVisibility) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SetVisibility::SharedDtor(MessageLite& self) { + SharingLog_SetVisibility& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SetVisibility::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SetVisibility::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SetVisibility(arena); +} +constexpr auto SharingLog_SetVisibility::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetVisibility), + alignof(SharingLog_SetVisibility)); +} +constexpr auto SharingLog_SetVisibility::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_SetVisibility_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SetVisibility::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SetVisibility::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SetVisibility::ByteSizeLong, + &SharingLog_SetVisibility::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SetVisibility", + }; } -void SharingLog_SetVisibility::ArenaDtor(void* object) { - SharingLog_SetVisibility* _this = reinterpret_cast< SharingLog_SetVisibility* >(object); - (void)_this; -} -void SharingLog_SetVisibility::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SetVisibility::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetVisibility_class_data_ = + SharingLog_SetVisibility::InternalGenerateClassData_(); -void SharingLog_SetVisibility::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SetVisibility::GetClassData() const { + return SharingLog_SetVisibility_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 3, 0, 2> +SharingLog_SetVisibility::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SetVisibility_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 3, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_activity_name_)}}, + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_)}}, + // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_visibility_)}}, + // optional int64 duration_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.duration_millis_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_visibility_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 duration_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_activity_name_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + {0, 5}, + {0, 12}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SetVisibility::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&visibility_, 0, static_cast( - reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&visibility_)) + sizeof(source_activity_name_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.visibility_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.source_activity_name_) - + reinterpret_cast(&_impl_.visibility_)) + sizeof(_impl_.source_activity_name_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SetVisibility::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.Visibility visibility = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_source_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ActivityName_IsValid(val))) { - _internal_set_source_activity_name(static_cast<::location::nearby::proto::sharing::ActivityName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SetVisibility::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SetVisibility::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SetVisibility& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SetVisibility::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SetVisibility& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_visibility(), target); } // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_source_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_source_visibility(), target); } // optional int64 duration_millis = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_duration_millis(), target); } // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_source_activity_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_source_activity_name(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetVisibility) return target; } -size_t SharingLog_SetVisibility::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SetVisibility::ByteSizeLong(const MessageLite& base) { + const SharingLog_SetVisibility& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SetVisibility::ByteSizeLong() const { + const SharingLog_SetVisibility& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_visibility()); } - // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_visibility()); } - // optional int64 duration_millis = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_activity_name()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_activity_name()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SetVisibility::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SetVisibility::MergeFrom(const SharingLog_SetVisibility& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - visibility_ = from.visibility_; - } - if (cached_has_bits & 0x00000002u) { - source_visibility_ = from.source_visibility_; - } - if (cached_has_bits & 0x00000004u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000008u) { - source_activity_name_ = from.source_activity_name_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SetVisibility::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.visibility_ = from._impl_.visibility_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.source_visibility_ = from._impl_.source_visibility_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.source_activity_name_ = from._impl_.source_activity_name_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SetVisibility::CopyFrom(const SharingLog_SetVisibility& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetVisibility) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SetVisibility::IsInitialized() const { - return true; -} -void SharingLog_SetVisibility::InternalSwap(SharingLog_SetVisibility* other) { - using std::swap; +void SharingLog_SetVisibility::InternalSwap(SharingLog_SetVisibility* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, source_activity_name_) - + sizeof(SharingLog_SetVisibility::source_activity_name_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, visibility_)>( - reinterpret_cast(&visibility_), - reinterpret_cast(&other->visibility_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.source_activity_name_) + + sizeof(SharingLog_SetVisibility::_impl_.source_activity_name_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SetVisibility, _impl_.visibility_)>( + reinterpret_cast(&_impl_.visibility_), + reinterpret_cast(&other->_impl_.visibility_)); } -std::string SharingLog_SetVisibility::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SetVisibility"; -} - - // =================================================================== class SharingLog_SetDataUsage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_original_preference(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_preference(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._has_bits_); }; -SharingLog_SetDataUsage::SharingLog_SetDataUsage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SetDataUsage::SharingLog_SetDataUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetDataUsage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) } -SharingLog_SetDataUsage::SharingLog_SetDataUsage(const SharingLog_SetDataUsage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&original_preference_, &from.original_preference_, - static_cast(reinterpret_cast(&preference_) - - reinterpret_cast(&original_preference_)) + sizeof(preference_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) +SharingLog_SetDataUsage::SharingLog_SetDataUsage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDataUsage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetDataUsage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SetDataUsage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SetDataUsage::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&original_preference_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&preference_) - - reinterpret_cast(&original_preference_)) + sizeof(preference_)); +inline void SharingLog_SetDataUsage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, original_preference_), + 0, + offsetof(Impl_, preference_) - + offsetof(Impl_, original_preference_) + + sizeof(Impl_::preference_)); } - SharingLog_SetDataUsage::~SharingLog_SetDataUsage() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SetDataUsage::SharedDtor(MessageLite& self) { + SharingLog_SetDataUsage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SetDataUsage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SetDataUsage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SetDataUsage(arena); +} +constexpr auto SharingLog_SetDataUsage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetDataUsage), + alignof(SharingLog_SetDataUsage)); +} +constexpr auto SharingLog_SetDataUsage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<55>{ + { + &_SharingLog_SetDataUsage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SetDataUsage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SetDataUsage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SetDataUsage::ByteSizeLong, + &SharingLog_SetDataUsage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SetDataUsage", + }; } -void SharingLog_SetDataUsage::ArenaDtor(void* object) { - SharingLog_SetDataUsage* _this = reinterpret_cast< SharingLog_SetDataUsage* >(object); - (void)_this; -} -void SharingLog_SetDataUsage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SetDataUsage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> SharingLog_SetDataUsage_class_data_ = + SharingLog_SetDataUsage::InternalGenerateClassData_(); -void SharingLog_SetDataUsage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SetDataUsage::GetClassData() const { + return SharingLog_SetDataUsage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_SetDataUsage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SetDataUsage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.DataUsage preference = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.preference_)}}, + // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DataUsage preference = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.preference_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 3}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SetDataUsage::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&original_preference_, 0, static_cast( - reinterpret_cast(&preference_) - - reinterpret_cast(&original_preference_)) + sizeof(preference_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.original_preference_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.preference_) - + reinterpret_cast(&_impl_.original_preference_)) + sizeof(_impl_.preference_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SetDataUsage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_original_preference(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DataUsage preference = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_preference(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SetDataUsage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SetDataUsage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SetDataUsage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SetDataUsage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SetDataUsage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_original_preference(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_original_preference(), target); } // optional .location.nearby.proto.sharing.DataUsage preference = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_preference(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_preference(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) return target; } -size_t SharingLog_SetDataUsage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SetDataUsage::ByteSizeLong(const MessageLite& base) { + const SharingLog_SetDataUsage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SetDataUsage::ByteSizeLong() const { + const SharingLog_SetDataUsage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_original_preference()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_original_preference()); } - // optional .location.nearby.proto.sharing.DataUsage preference = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_preference()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_preference()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SetDataUsage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SetDataUsage::MergeFrom(const SharingLog_SetDataUsage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - original_preference_ = from.original_preference_; - } - if (cached_has_bits & 0x00000002u) { - preference_ = from.preference_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SetDataUsage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.original_preference_ = from._impl_.original_preference_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.preference_ = from._impl_.preference_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SetDataUsage::CopyFrom(const SharingLog_SetDataUsage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SetDataUsage::IsInitialized() const { - return true; -} -void SharingLog_SetDataUsage::InternalSwap(SharingLog_SetDataUsage* other) { - using std::swap; +void SharingLog_SetDataUsage::InternalSwap(SharingLog_SetDataUsage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, preference_) - + sizeof(SharingLog_SetDataUsage::preference_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, original_preference_)>( - reinterpret_cast(&original_preference_), - reinterpret_cast(&other->original_preference_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.preference_) + + sizeof(SharingLog_SetDataUsage::_impl_.preference_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SetDataUsage, _impl_.original_preference_)>( + reinterpret_cast(&_impl_.original_preference_), + reinterpret_cast(&other->_impl_.original_preference_)); } -std::string SharingLog_SetDataUsage::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SetDataUsage"; -} - - // =================================================================== class SharingLog_ScanForShareTargetsStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_scan_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_use_qr_code(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._has_bits_); }; -SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) } -SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart(const SharingLog_ScanForShareTargetsStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&use_qr_code_) - - reinterpret_cast(&session_id_)) + sizeof(use_qr_code_)); +PROTOBUF_NDEBUG_INLINE SharingLog_ScanForShareTargetsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_ScanForShareTargetsStart::SharingLog_ScanForShareTargetsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_ScanForShareTargetsStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_ScanForShareTargetsStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, use_qr_code_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::use_qr_code_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_ScanForShareTargetsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_ScanForShareTargetsStart::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&session_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&use_qr_code_) - - reinterpret_cast(&session_id_)) + sizeof(use_qr_code_)); +inline void SharingLog_ScanForShareTargetsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, use_qr_code_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::use_qr_code_)); } - SharingLog_ScanForShareTargetsStart::~SharingLog_ScanForShareTargetsStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ScanForShareTargetsStart::SharedDtor(MessageLite& self) { + SharingLog_ScanForShareTargetsStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_ScanForShareTargetsStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ScanForShareTargetsStart(arena); +} +constexpr auto SharingLog_ScanForShareTargetsStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ScanForShareTargetsStart), + alignof(SharingLog_ScanForShareTargetsStart)); +} +constexpr auto SharingLog_ScanForShareTargetsStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<67>{ + { + &_SharingLog_ScanForShareTargetsStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ScanForShareTargetsStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ScanForShareTargetsStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ScanForShareTargetsStart::ByteSizeLong, + &SharingLog_ScanForShareTargetsStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart", + }; } -void SharingLog_ScanForShareTargetsStart::ArenaDtor(void* object) { - SharingLog_ScanForShareTargetsStart* _this = reinterpret_cast< SharingLog_ScanForShareTargetsStart* >(object); - (void)_this; -} -void SharingLog_ScanForShareTargetsStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ScanForShareTargetsStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<67> SharingLog_ScanForShareTargetsStart_class_data_ = + SharingLog_ScanForShareTargetsStart::InternalGenerateClassData_(); -void SharingLog_ScanForShareTargetsStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ScanForShareTargetsStart::GetClassData() const { + return SharingLog_ScanForShareTargetsStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 2, 0, 2> +SharingLog_ScanForShareTargetsStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ScanForShareTargetsStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_)}}, + // optional .location.nearby.proto.sharing.SessionStatus status = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 2, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.status_)}}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 3, 4, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.scan_type_)}}, + // optional int64 flow_id = 4; + {::_pbi::TcParser::FastV64S1, + {32, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.flow_id_)}}, + // optional string referrer_name = 5; + {::_pbi::TcParser::FastBS1, + {42, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.referrer_name_)}}, + // optional bool use_qr_code = 6; + {::_pbi::TcParser::FastV8S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.SessionStatus status = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.scan_type_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 flow_id = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.flow_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string referrer_name = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool use_qr_code = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 2}, + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ScanForShareTargetsStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000003eu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&use_qr_code_) - - reinterpret_cast(&session_id_)) + sizeof(use_qr_code_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.use_qr_code_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.use_qr_code_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ScanForShareTargetsStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.SessionStatus status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::SessionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::SessionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ScanType scan_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ScanType_IsValid(val))) { - _internal_set_scan_type(static_cast<::location::nearby::proto::sharing::ScanType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 flow_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool use_qr_code = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_use_qr_code(&has_bits); - use_qr_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ScanForShareTargetsStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ScanForShareTargetsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ScanForShareTargetsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .location.nearby.proto.sharing.SessionStatus status = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_status(), target); } // optional .location.nearby.proto.sharing.ScanType scan_type = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_scan_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_scan_type(), target); } // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_flow_id(), target); } // optional string referrer_name = 5; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional bool use_qr_code = 6; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_use_qr_code(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_use_qr_code(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) return target; } -size_t SharingLog_ScanForShareTargetsStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ScanForShareTargetsStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_ScanForShareTargetsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ScanForShareTargetsStart::ByteSizeLong() const { + const SharingLog_ScanForShareTargetsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000020U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional string referrer_name = 5; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional .location.nearby.proto.sharing.SessionStatus status = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional .location.nearby.proto.sharing.ScanType scan_type = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_scan_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type()); } - // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - - // optional bool use_qr_code = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ScanForShareTargetsStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ScanForShareTargetsStart::MergeFrom(const SharingLog_ScanForShareTargetsStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000004u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000008u) { - scan_type_ = from.scan_type_; - } - if (cached_has_bits & 0x00000010u) { - flow_id_ = from.flow_id_; - } - if (cached_has_bits & 0x00000020u) { - use_qr_code_ = from.use_qr_code_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ScanForShareTargetsStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.scan_type_ = from._impl_.scan_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.use_qr_code_ = from._impl_.use_qr_code_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ScanForShareTargetsStart::CopyFrom(const SharingLog_ScanForShareTargetsStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ScanForShareTargetsStart::IsInitialized() const { - return true; -} -void SharingLog_ScanForShareTargetsStart::InternalSwap(SharingLog_ScanForShareTargetsStart* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_ScanForShareTargetsStart::InternalSwap(SharingLog_ScanForShareTargetsStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, use_qr_code_) - + sizeof(SharingLog_ScanForShareTargetsStart::use_qr_code_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, session_id_)>( - reinterpret_cast(&session_id_), - reinterpret_cast(&other->session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.use_qr_code_) + + sizeof(SharingLog_ScanForShareTargetsStart::_impl_.use_qr_code_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsStart, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); } -std::string SharingLog_ScanForShareTargetsStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart"; -} - - // =================================================================== class SharingLog_ScanForShareTargetsEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_._has_bits_); }; -SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) } -SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd(const SharingLog_ScanForShareTargetsEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - session_id_ = from.session_id_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) +SharingLog_ScanForShareTargetsEnd::SharingLog_ScanForShareTargetsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ScanForShareTargetsEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ScanForShareTargetsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ScanForShareTargetsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ScanForShareTargetsEnd::SharedCtor() { -session_id_ = int64_t{0}; +inline void SharingLog_ScanForShareTargetsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.session_id_ = {}; } - SharingLog_ScanForShareTargetsEnd::~SharingLog_ScanForShareTargetsEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ScanForShareTargetsEnd::SharedDtor(MessageLite& self) { + SharingLog_ScanForShareTargetsEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ScanForShareTargetsEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ScanForShareTargetsEnd(arena); +} +constexpr auto SharingLog_ScanForShareTargetsEnd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ScanForShareTargetsEnd), + alignof(SharingLog_ScanForShareTargetsEnd)); +} +constexpr auto SharingLog_ScanForShareTargetsEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_ScanForShareTargetsEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ScanForShareTargetsEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ScanForShareTargetsEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ScanForShareTargetsEnd::ByteSizeLong, + &SharingLog_ScanForShareTargetsEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd", + }; } -void SharingLog_ScanForShareTargetsEnd::ArenaDtor(void* object) { - SharingLog_ScanForShareTargetsEnd* _this = reinterpret_cast< SharingLog_ScanForShareTargetsEnd* >(object); - (void)_this; -} -void SharingLog_ScanForShareTargetsEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ScanForShareTargetsEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ScanForShareTargetsEnd_class_data_ = + SharingLog_ScanForShareTargetsEnd::InternalGenerateClassData_(); -void SharingLog_ScanForShareTargetsEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ScanForShareTargetsEnd::GetClassData() const { + return SharingLog_ScanForShareTargetsEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SharingLog_ScanForShareTargetsEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_ScanForShareTargetsEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_.session_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ScanForShareTargetsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ScanForShareTargetsEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - session_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.session_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ScanForShareTargetsEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ScanForShareTargetsEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ScanForShareTargetsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ScanForShareTargetsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) return target; } -size_t SharingLog_ScanForShareTargetsEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ScanForShareTargetsEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_ScanForShareTargetsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ScanForShareTargetsEnd::ByteSizeLong() const { + const SharingLog_ScanForShareTargetsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int64 session_id = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + { + // optional int64 session_id = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ScanForShareTargetsEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ScanForShareTargetsEnd::MergeFrom(const SharingLog_ScanForShareTargetsEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_session_id()) { - _internal_set_session_id(from._internal_session_id()); +void SharingLog_ScanForShareTargetsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ScanForShareTargetsEnd::CopyFrom(const SharingLog_ScanForShareTargetsEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ScanForShareTargetsEnd::IsInitialized() const { - return true; -} -void SharingLog_ScanForShareTargetsEnd::InternalSwap(SharingLog_ScanForShareTargetsEnd* other) { - using std::swap; +void SharingLog_ScanForShareTargetsEnd::InternalSwap(SharingLog_ScanForShareTargetsEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(session_id_, other->session_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_id_, other->_impl_.session_id_); } -std::string SharingLog_ScanForShareTargetsEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd"; -} - - // =================================================================== class SharingLog_AdvertiseDevicePresenceStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_data_usage(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_device_name_size(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_advertising_mode(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_qr_code_flow(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._has_bits_); }; -SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) } -SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart(const SharingLog_AdvertiseDevicePresenceStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); +PROTOBUF_NDEBUG_INLINE SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_AdvertiseDevicePresenceStart::SharingLog_AdvertiseDevicePresenceStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_AdvertiseDevicePresenceStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_AdvertiseDevicePresenceStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, qr_code_flow_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::qr_code_flow_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_AdvertiseDevicePresenceStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_AdvertiseDevicePresenceStart::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&session_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); +inline void SharingLog_AdvertiseDevicePresenceStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, qr_code_flow_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::qr_code_flow_)); } - SharingLog_AdvertiseDevicePresenceStart::~SharingLog_AdvertiseDevicePresenceStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AdvertiseDevicePresenceStart::SharedDtor(MessageLite& self) { + SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_AdvertiseDevicePresenceStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AdvertiseDevicePresenceStart(arena); +} +constexpr auto SharingLog_AdvertiseDevicePresenceStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AdvertiseDevicePresenceStart), + alignof(SharingLog_AdvertiseDevicePresenceStart)); +} +constexpr auto SharingLog_AdvertiseDevicePresenceStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<71>{ + { + &_SharingLog_AdvertiseDevicePresenceStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AdvertiseDevicePresenceStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AdvertiseDevicePresenceStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong, + &SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart", + }; } -void SharingLog_AdvertiseDevicePresenceStart::ArenaDtor(void* object) { - SharingLog_AdvertiseDevicePresenceStart* _this = reinterpret_cast< SharingLog_AdvertiseDevicePresenceStart* >(object); - (void)_this; -} -void SharingLog_AdvertiseDevicePresenceStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AdvertiseDevicePresenceStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<71> SharingLog_AdvertiseDevicePresenceStart_class_data_ = + SharingLog_AdvertiseDevicePresenceStart::InternalGenerateClassData_(); -void SharingLog_AdvertiseDevicePresenceStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AdvertiseDevicePresenceStart::GetClassData() const { + return SharingLog_AdvertiseDevicePresenceStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 4, 0, 2> +SharingLog_AdvertiseDevicePresenceStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_AdvertiseDevicePresenceStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool qr_code_flow = 8; + {::_pbi::TcParser::FastV8S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_)}}, + // optional int64 session_id = 1 [deprecated = true]; + {::_pbi::TcParser::FastV64S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_)}}, + // optional .location.nearby.proto.sharing.Visibility visibility = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 2, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.visibility_)}}, + // optional .location.nearby.proto.sharing.SessionStatus status = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 3, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.status_)}}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 4, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.data_usage_)}}, + // optional int32 device_name_size = 5 [deprecated = true]; + {::_pbi::TcParser::FastV32S1, + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.device_name_size_)}}, + // optional string referrer_name = 6; + {::_pbi::TcParser::FastBS1, + {50, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.referrer_name_)}}, + // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; + {::_pbi::TcParser::FastEr0S1, + {56, 6, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.advertising_mode_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.Visibility visibility = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.visibility_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.SessionStatus status = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.status_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.data_usage_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int32 device_name_size = 5 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.device_name_size_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string referrer_name = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.advertising_mode_), _Internal::kHasBitsOffset + 6, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool qr_code_flow = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 5}, + {0, 2}, + {0, 3}, + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AdvertiseDevicePresenceStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x000000feu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.qr_code_flow_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.qr_code_flow_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AdvertiseDevicePresenceStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1 [deprecated = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.Visibility visibility = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.SessionStatus status = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::SessionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::SessionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_data_usage(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 device_name_size = 5 [deprecated = true]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_device_name_size(&has_bits); - device_name_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AdvertisingMode_IsValid(val))) { - _internal_set_advertising_mode(static_cast<::location::nearby::proto::sharing::AdvertisingMode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool qr_code_flow = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_qr_code_flow(&has_bits); - qr_code_flow_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AdvertiseDevicePresenceStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1 [deprecated = true]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .location.nearby.proto.sharing.Visibility visibility = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_visibility(), target); } // optional .location.nearby.proto.sharing.SessionStatus status = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_status(), target); } // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_data_usage(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_data_usage(), target); } // optional int32 device_name_size = 5 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_device_name_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_device_name_size(), target); } // optional string referrer_name = 6; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 6, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(6, _s, target); } // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_advertising_mode(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_advertising_mode(), target); } // optional bool qr_code_flow = 8; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_qr_code_flow(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_qr_code_flow(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) return target; } -size_t SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_AdvertiseDevicePresenceStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AdvertiseDevicePresenceStart::ByteSizeLong() const { + const SharingLog_AdvertiseDevicePresenceStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000080U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { // optional string referrer_name = 6; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional int64 session_id = 1 [deprecated = true]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional .location.nearby.proto.sharing.Visibility visibility = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_visibility()); } - // optional .location.nearby.proto.sharing.SessionStatus status = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_usage()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage()); } - // optional int32 device_name_size = 5 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_name_size()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_device_name_size()); } - // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_advertising_mode()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_advertising_mode()); } - - // optional bool qr_code_flow = 8; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AdvertiseDevicePresenceStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AdvertiseDevicePresenceStart::MergeFrom(const SharingLog_AdvertiseDevicePresenceStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000004u) { - visibility_ = from.visibility_; - } - if (cached_has_bits & 0x00000008u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000010u) { - data_usage_ = from.data_usage_; - } - if (cached_has_bits & 0x00000020u) { - device_name_size_ = from.device_name_size_; - } - if (cached_has_bits & 0x00000040u) { - advertising_mode_ = from.advertising_mode_; - } - if (cached_has_bits & 0x00000080u) { - qr_code_flow_ = from.qr_code_flow_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_AdvertiseDevicePresenceStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.visibility_ = from._impl_.visibility_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.data_usage_ = from._impl_.data_usage_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.device_name_size_ = from._impl_.device_name_size_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.advertising_mode_ = from._impl_.advertising_mode_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AdvertiseDevicePresenceStart::CopyFrom(const SharingLog_AdvertiseDevicePresenceStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AdvertiseDevicePresenceStart::IsInitialized() const { - return true; -} -void SharingLog_AdvertiseDevicePresenceStart::InternalSwap(SharingLog_AdvertiseDevicePresenceStart* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_AdvertiseDevicePresenceStart::InternalSwap(SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, qr_code_flow_) - + sizeof(SharingLog_AdvertiseDevicePresenceStart::qr_code_flow_) - - PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, session_id_)>( - reinterpret_cast(&session_id_), - reinterpret_cast(&other->session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.qr_code_flow_) + + sizeof(SharingLog_AdvertiseDevicePresenceStart::_impl_.qr_code_flow_) + - PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceStart, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); } -std::string SharingLog_AdvertiseDevicePresenceStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart"; -} - - // =================================================================== class SharingLog_AdvertiseDevicePresenceEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_._has_bits_); }; -SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) } -SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd(const SharingLog_AdvertiseDevicePresenceEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - session_id_ = from.session_id_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) +SharingLog_AdvertiseDevicePresenceEnd::SharingLog_AdvertiseDevicePresenceEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AdvertiseDevicePresenceEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AdvertiseDevicePresenceEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AdvertiseDevicePresenceEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AdvertiseDevicePresenceEnd::SharedCtor() { -session_id_ = int64_t{0}; +inline void SharingLog_AdvertiseDevicePresenceEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.session_id_ = {}; } - SharingLog_AdvertiseDevicePresenceEnd::~SharingLog_AdvertiseDevicePresenceEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AdvertiseDevicePresenceEnd::SharedDtor(MessageLite& self) { + SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AdvertiseDevicePresenceEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AdvertiseDevicePresenceEnd(arena); +} +constexpr auto SharingLog_AdvertiseDevicePresenceEnd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AdvertiseDevicePresenceEnd), + alignof(SharingLog_AdvertiseDevicePresenceEnd)); +} +constexpr auto SharingLog_AdvertiseDevicePresenceEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<69>{ + { + &_SharingLog_AdvertiseDevicePresenceEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AdvertiseDevicePresenceEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AdvertiseDevicePresenceEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong, + &SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd", + }; } -void SharingLog_AdvertiseDevicePresenceEnd::ArenaDtor(void* object) { - SharingLog_AdvertiseDevicePresenceEnd* _this = reinterpret_cast< SharingLog_AdvertiseDevicePresenceEnd* >(object); - (void)_this; -} -void SharingLog_AdvertiseDevicePresenceEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AdvertiseDevicePresenceEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<69> SharingLog_AdvertiseDevicePresenceEnd_class_data_ = + SharingLog_AdvertiseDevicePresenceEnd::InternalGenerateClassData_(); -void SharingLog_AdvertiseDevicePresenceEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AdvertiseDevicePresenceEnd::GetClassData() const { + return SharingLog_AdvertiseDevicePresenceEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SharingLog_AdvertiseDevicePresenceEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AdvertiseDevicePresenceEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 session_id = 1 [deprecated = true]; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_.session_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_AdvertiseDevicePresenceEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AdvertiseDevicePresenceEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - session_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.session_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AdvertiseDevicePresenceEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1 [deprecated = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AdvertiseDevicePresenceEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1 [deprecated = true]; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) return target; } -size_t SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_AdvertiseDevicePresenceEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AdvertiseDevicePresenceEnd::ByteSizeLong() const { + const SharingLog_AdvertiseDevicePresenceEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int64 session_id = 1 [deprecated = true]; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + { + // optional int64 session_id = 1 [deprecated = true]; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AdvertiseDevicePresenceEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AdvertiseDevicePresenceEnd::MergeFrom(const SharingLog_AdvertiseDevicePresenceEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_session_id()) { - _internal_set_session_id(from._internal_session_id()); +void SharingLog_AdvertiseDevicePresenceEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AdvertiseDevicePresenceEnd::CopyFrom(const SharingLog_AdvertiseDevicePresenceEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AdvertiseDevicePresenceEnd::IsInitialized() const { - return true; -} -void SharingLog_AdvertiseDevicePresenceEnd::InternalSwap(SharingLog_AdvertiseDevicePresenceEnd* other) { - using std::swap; +void SharingLog_AdvertiseDevicePresenceEnd::InternalSwap(SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(session_id_, other->session_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_id_, other->_impl_.session_id_); } -std::string SharingLog_AdvertiseDevicePresenceEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd"; -} - - // =================================================================== class SharingLog_SendFastInitialization::_Internal { public: }; -SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendFastInitialization_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) } -SharingLog_SendFastInitialization::SharingLog_SendFastInitialization(const SharingLog_SendFastInitialization& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) +SharingLog_SendFastInitialization::SharingLog_SendFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendFastInitialization& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SendFastInitialization::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendFastInitialization::SharedCtor() { +inline void SharingLog_SendFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_SendFastInitialization::~SharingLog_SendFastInitialization() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendFastInitialization::SharedDtor(MessageLite& self) { + SharingLog_SendFastInitialization& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SendFastInitialization::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SendFastInitialization::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendFastInitialization(arena); +} +constexpr auto SharingLog_SendFastInitialization::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendFastInitialization), + alignof(SharingLog_SendFastInitialization)); +} +constexpr auto SharingLog_SendFastInitialization::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_SendFastInitialization_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendFastInitialization::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendFastInitialization::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendFastInitialization::ByteSizeLong, + &SharingLog_SendFastInitialization::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendFastInitialization, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendFastInitialization", + }; } -void SharingLog_SendFastInitialization::ArenaDtor(void* object) { - SharingLog_SendFastInitialization* _this = reinterpret_cast< SharingLog_SendFastInitialization* >(object); - (void)_this; -} -void SharingLog_SendFastInitialization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendFastInitialization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_SendFastInitialization_class_data_ = + SharingLog_SendFastInitialization::InternalGenerateClassData_(); -void SharingLog_SendFastInitialization::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendFastInitialization::GetClassData() const { + return SharingLog_SendFastInitialization_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_SendFastInitialization::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_SendFastInitialization_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendFastInitialization::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendFastInitialization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendFastInitialization::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendFastInitialization::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendFastInitialization::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) return target; } -size_t SharingLog_SendFastInitialization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendFastInitialization::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendFastInitialization::ByteSizeLong() const { + const SharingLog_SendFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendFastInitialization::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_SendFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_SendFastInitialization::MergeFrom(const SharingLog_SendFastInitialization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendFastInitialization::CopyFrom(const SharingLog_SendFastInitialization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendFastInitialization::IsInitialized() const { - return true; -} -void SharingLog_SendFastInitialization::InternalSwap(SharingLog_SendFastInitialization* other) { - using std::swap; +void SharingLog_SendFastInitialization::InternalSwap(SharingLog_SendFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_SendFastInitialization::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendFastInitialization"; -} - - // =================================================================== class SharingLog_ReceiveFastInitialization::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_time_elapse_since_screen_unlock_millis(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_notifications_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_notifications_filtered(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_._has_bits_); }; -SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveFastInitialization_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) } -SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization(const SharingLog_ReceiveFastInitialization& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&time_elapse_since_screen_unlock_millis_, &from.time_elapse_since_screen_unlock_millis_, - static_cast(reinterpret_cast(¬ifications_filtered_) - - reinterpret_cast(&time_elapse_since_screen_unlock_millis_)) + sizeof(notifications_filtered_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) +SharingLog_ReceiveFastInitialization::SharingLog_ReceiveFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveFastInitialization& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveFastInitialization::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ReceiveFastInitialization::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&time_elapse_since_screen_unlock_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(¬ifications_filtered_) - - reinterpret_cast(&time_elapse_since_screen_unlock_millis_)) + sizeof(notifications_filtered_)); +inline void SharingLog_ReceiveFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, time_elapse_since_screen_unlock_millis_), + 0, + offsetof(Impl_, notifications_filtered_) - + offsetof(Impl_, time_elapse_since_screen_unlock_millis_) + + sizeof(Impl_::notifications_filtered_)); } - SharingLog_ReceiveFastInitialization::~SharingLog_ReceiveFastInitialization() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ReceiveFastInitialization::SharedDtor(MessageLite& self) { + SharingLog_ReceiveFastInitialization& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ReceiveFastInitialization::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ReceiveFastInitialization::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ReceiveFastInitialization(arena); +} +constexpr auto SharingLog_ReceiveFastInitialization::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceiveFastInitialization), + alignof(SharingLog_ReceiveFastInitialization)); +} +constexpr auto SharingLog_ReceiveFastInitialization::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_ReceiveFastInitialization_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ReceiveFastInitialization::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ReceiveFastInitialization::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ReceiveFastInitialization::ByteSizeLong, + &SharingLog_ReceiveFastInitialization::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization", + }; } -void SharingLog_ReceiveFastInitialization::ArenaDtor(void* object) { - SharingLog_ReceiveFastInitialization* _this = reinterpret_cast< SharingLog_ReceiveFastInitialization* >(object); - (void)_this; -} -void SharingLog_ReceiveFastInitialization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ReceiveFastInitialization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_ReceiveFastInitialization_class_data_ = + SharingLog_ReceiveFastInitialization::InternalGenerateClassData_(); -void SharingLog_ReceiveFastInitialization::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ReceiveFastInitialization::GetClassData() const { + return SharingLog_ReceiveFastInitialization_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +SharingLog_ReceiveFastInitialization::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_ReceiveFastInitialization_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 time_elapse_since_screen_unlock_millis = 1; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_)}}, + // optional bool notifications_enabled = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_enabled_)}}, + // optional bool notifications_filtered = 3; + {::_pbi::TcParser::FastV8S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 time_elapse_since_screen_unlock_millis = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional bool notifications_enabled = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_enabled_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool notifications_filtered = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ReceiveFastInitialization::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&time_elapse_since_screen_unlock_millis_, 0, static_cast( - reinterpret_cast(¬ifications_filtered_) - - reinterpret_cast(&time_elapse_since_screen_unlock_millis_)) + sizeof(notifications_filtered_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.time_elapse_since_screen_unlock_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.notifications_filtered_) - + reinterpret_cast(&_impl_.time_elapse_since_screen_unlock_millis_)) + sizeof(_impl_.notifications_filtered_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ReceiveFastInitialization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 time_elapse_since_screen_unlock_millis = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_time_elapse_since_screen_unlock_millis(&has_bits); - time_elapse_since_screen_unlock_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool notifications_enabled = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_notifications_enabled(&has_bits); - notifications_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool notifications_filtered = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_notifications_filtered(&has_bits); - notifications_filtered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ReceiveFastInitialization::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveFastInitialization::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ReceiveFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveFastInitialization::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ReceiveFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 time_elapse_since_screen_unlock_millis = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_time_elapse_since_screen_unlock_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_time_elapse_since_screen_unlock_millis(), target); } // optional bool notifications_enabled = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_notifications_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_notifications_enabled(), target); } // optional bool notifications_filtered = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_notifications_filtered(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_notifications_filtered(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) return target; } -size_t SharingLog_ReceiveFastInitialization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ReceiveFastInitialization::ByteSizeLong(const MessageLite& base) { + const SharingLog_ReceiveFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ReceiveFastInitialization::ByteSizeLong() const { + const SharingLog_ReceiveFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000006U & cached_has_bits) * 2; + { // optional int64 time_elapse_since_screen_unlock_millis = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time_elapse_since_screen_unlock_millis()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_time_elapse_since_screen_unlock_millis()); } - - // optional bool notifications_enabled = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional bool notifications_filtered = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ReceiveFastInitialization::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ReceiveFastInitialization::MergeFrom(const SharingLog_ReceiveFastInitialization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - time_elapse_since_screen_unlock_millis_ = from.time_elapse_since_screen_unlock_millis_; - } - if (cached_has_bits & 0x00000002u) { - notifications_enabled_ = from.notifications_enabled_; - } - if (cached_has_bits & 0x00000004u) { - notifications_filtered_ = from.notifications_filtered_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ReceiveFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.time_elapse_since_screen_unlock_millis_ = from._impl_.time_elapse_since_screen_unlock_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.notifications_enabled_ = from._impl_.notifications_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.notifications_filtered_ = from._impl_.notifications_filtered_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ReceiveFastInitialization::CopyFrom(const SharingLog_ReceiveFastInitialization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ReceiveFastInitialization::IsInitialized() const { - return true; -} -void SharingLog_ReceiveFastInitialization::InternalSwap(SharingLog_ReceiveFastInitialization* other) { - using std::swap; +void SharingLog_ReceiveFastInitialization::InternalSwap(SharingLog_ReceiveFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, notifications_filtered_) - + sizeof(SharingLog_ReceiveFastInitialization::notifications_filtered_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, time_elapse_since_screen_unlock_millis_)>( - reinterpret_cast(&time_elapse_since_screen_unlock_millis_), - reinterpret_cast(&other->time_elapse_since_screen_unlock_millis_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.notifications_filtered_) + + sizeof(SharingLog_ReceiveFastInitialization::_impl_.notifications_filtered_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveFastInitialization, _impl_.time_elapse_since_screen_unlock_millis_)>( + reinterpret_cast(&_impl_.time_elapse_since_screen_unlock_millis_), + reinterpret_cast(&other->_impl_.time_elapse_since_screen_unlock_millis_)); } -std::string SharingLog_ReceiveFastInitialization::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization"; -} - - // =================================================================== class SharingLog_DismissFastInitialization::_Internal { public: }; -SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DismissFastInitialization_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) } -SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization(const SharingLog_DismissFastInitialization& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) +SharingLog_DismissFastInitialization::SharingLog_DismissFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissFastInitialization& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DismissFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DismissFastInitialization::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DismissFastInitialization::SharedCtor() { +inline void SharingLog_DismissFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DismissFastInitialization::~SharingLog_DismissFastInitialization() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DismissFastInitialization::SharedDtor(MessageLite& self) { + SharingLog_DismissFastInitialization& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DismissFastInitialization::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DismissFastInitialization::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DismissFastInitialization(arena); +} +constexpr auto SharingLog_DismissFastInitialization::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DismissFastInitialization), + alignof(SharingLog_DismissFastInitialization)); +} +constexpr auto SharingLog_DismissFastInitialization::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_DismissFastInitialization_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DismissFastInitialization::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DismissFastInitialization::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DismissFastInitialization::ByteSizeLong, + &SharingLog_DismissFastInitialization::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DismissFastInitialization, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization", + }; } -void SharingLog_DismissFastInitialization::ArenaDtor(void* object) { - SharingLog_DismissFastInitialization* _this = reinterpret_cast< SharingLog_DismissFastInitialization* >(object); - (void)_this; -} -void SharingLog_DismissFastInitialization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DismissFastInitialization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DismissFastInitialization_class_data_ = + SharingLog_DismissFastInitialization::InternalGenerateClassData_(); -void SharingLog_DismissFastInitialization::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DismissFastInitialization::GetClassData() const { + return SharingLog_DismissFastInitialization_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DismissFastInitialization::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DismissFastInitialization_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DismissFastInitialization::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DismissFastInitialization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DismissFastInitialization::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DismissFastInitialization::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DismissFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DismissFastInitialization::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DismissFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) return target; } -size_t SharingLog_DismissFastInitialization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DismissFastInitialization::ByteSizeLong(const MessageLite& base) { + const SharingLog_DismissFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DismissFastInitialization::ByteSizeLong() const { + const SharingLog_DismissFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DismissFastInitialization::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DismissFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DismissFastInitialization::MergeFrom(const SharingLog_DismissFastInitialization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DismissFastInitialization::CopyFrom(const SharingLog_DismissFastInitialization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DismissFastInitialization::IsInitialized() const { - return true; -} -void SharingLog_DismissFastInitialization::InternalSwap(SharingLog_DismissFastInitialization* other) { - using std::swap; +void SharingLog_DismissFastInitialization::InternalSwap(SharingLog_DismissFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DismissFastInitialization::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization"; -} - - // =================================================================== class SharingLog_AutoDismissFastInitialization::_Internal { public: }; -SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AutoDismissFastInitialization_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) } -SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization(const SharingLog_AutoDismissFastInitialization& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) +SharingLog_AutoDismissFastInitialization::SharingLog_AutoDismissFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AutoDismissFastInitialization& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AutoDismissFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AutoDismissFastInitialization::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AutoDismissFastInitialization::SharedCtor() { +inline void SharingLog_AutoDismissFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AutoDismissFastInitialization::~SharingLog_AutoDismissFastInitialization() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AutoDismissFastInitialization::SharedDtor(MessageLite& self) { + SharingLog_AutoDismissFastInitialization& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AutoDismissFastInitialization::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AutoDismissFastInitialization::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AutoDismissFastInitialization(arena); +} +constexpr auto SharingLog_AutoDismissFastInitialization::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AutoDismissFastInitialization), + alignof(SharingLog_AutoDismissFastInitialization)); +} +constexpr auto SharingLog_AutoDismissFastInitialization::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<72>{ + { + &_SharingLog_AutoDismissFastInitialization_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AutoDismissFastInitialization::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AutoDismissFastInitialization::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AutoDismissFastInitialization::ByteSizeLong, + &SharingLog_AutoDismissFastInitialization::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AutoDismissFastInitialization, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization", + }; } -void SharingLog_AutoDismissFastInitialization::ArenaDtor(void* object) { - SharingLog_AutoDismissFastInitialization* _this = reinterpret_cast< SharingLog_AutoDismissFastInitialization* >(object); - (void)_this; -} -void SharingLog_AutoDismissFastInitialization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AutoDismissFastInitialization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<72> SharingLog_AutoDismissFastInitialization_class_data_ = + SharingLog_AutoDismissFastInitialization::InternalGenerateClassData_(); -void SharingLog_AutoDismissFastInitialization::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AutoDismissFastInitialization::GetClassData() const { + return SharingLog_AutoDismissFastInitialization_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_AutoDismissFastInitialization::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AutoDismissFastInitialization_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AutoDismissFastInitialization::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AutoDismissFastInitialization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AutoDismissFastInitialization::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AutoDismissFastInitialization::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AutoDismissFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AutoDismissFastInitialization::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AutoDismissFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) return target; } -size_t SharingLog_AutoDismissFastInitialization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AutoDismissFastInitialization::ByteSizeLong(const MessageLite& base) { + const SharingLog_AutoDismissFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AutoDismissFastInitialization::ByteSizeLong() const { + const SharingLog_AutoDismissFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AutoDismissFastInitialization::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_AutoDismissFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_AutoDismissFastInitialization::MergeFrom(const SharingLog_AutoDismissFastInitialization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AutoDismissFastInitialization::CopyFrom(const SharingLog_AutoDismissFastInitialization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AutoDismissFastInitialization::IsInitialized() const { - return true; -} -void SharingLog_AutoDismissFastInitialization::InternalSwap(SharingLog_AutoDismissFastInitialization* other) { - using std::swap; +void SharingLog_AutoDismissFastInitialization::InternalSwap(SharingLog_AutoDismissFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_AutoDismissFastInitialization::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization"; -} - - // =================================================================== class SharingLog_EventMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_use_case(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_initial_opt_in(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_opt_in(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_initial_enable_status(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_vendor_id(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_cloud_sharing_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_cloud_receiver_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_external_provider_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_external_provider_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._has_bits_); }; -SharingLog_EventMetadata::SharingLog_EventMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_EventMetadata::SharingLog_EventMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EventMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata) } -SharingLog_EventMetadata::SharingLog_EventMetadata(const SharingLog_EventMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cloud_sharing_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_cloud_sharing_id()) { - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cloud_sharing_id(), - GetArenaForAllocation()); - } - cloud_receiver_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_cloud_receiver_session_id()) { - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cloud_receiver_session_id(), - GetArenaForAllocation()); - } - external_provider_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - external_provider_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_external_provider_name()) { - external_provider_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_external_provider_name(), - GetArenaForAllocation()); - } - external_provider_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - external_provider_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_external_provider_id()) { - external_provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_external_provider_id(), - GetArenaForAllocation()); - } - ::memcpy(&use_case_, &from.use_case_, - static_cast(reinterpret_cast(&vendor_id_) - - reinterpret_cast(&use_case_)) + sizeof(vendor_id_)); +PROTOBUF_NDEBUG_INLINE SharingLog_EventMetadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + cloud_sharing_id_(arena, from.cloud_sharing_id_), + cloud_receiver_session_id_(arena, from.cloud_receiver_session_id_), + external_provider_name_(arena, from.external_provider_name_), + external_provider_id_(arena, from.external_provider_id_) {} + +SharingLog_EventMetadata::SharingLog_EventMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_EventMetadata& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_EventMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_EventMetadata* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, use_case_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, use_case_), + offsetof(Impl_, vendor_id_) - + offsetof(Impl_, use_case_) + + sizeof(Impl_::vendor_id_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata) } +PROTOBUF_NDEBUG_INLINE SharingLog_EventMetadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + cloud_sharing_id_(arena), + cloud_receiver_session_id_(arena), + external_provider_name_(arena), + external_provider_id_(arena) {} -inline void SharingLog_EventMetadata::SharedCtor() { -cloud_sharing_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -cloud_receiver_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -external_provider_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - external_provider_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -external_provider_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - external_provider_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&use_case_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&vendor_id_) - - reinterpret_cast(&use_case_)) + sizeof(vendor_id_)); +inline void SharingLog_EventMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, use_case_), + 0, + offsetof(Impl_, vendor_id_) - + offsetof(Impl_, use_case_) + + sizeof(Impl_::vendor_id_)); } - SharingLog_EventMetadata::~SharingLog_EventMetadata() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_EventMetadata::SharedDtor(MessageLite& self) { + SharingLog_EventMetadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.cloud_sharing_id_.Destroy(); + this_._impl_.cloud_receiver_session_id_.Destroy(); + this_._impl_.external_provider_name_.Destroy(); + this_._impl_.external_provider_id_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_EventMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - cloud_sharing_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - cloud_receiver_session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - external_provider_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - external_provider_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_EventMetadata::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_EventMetadata(arena); +} +constexpr auto SharingLog_EventMetadata::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_EventMetadata), + alignof(SharingLog_EventMetadata)); +} +constexpr auto SharingLog_EventMetadata::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_EventMetadata_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_EventMetadata::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_EventMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_EventMetadata::ByteSizeLong, + &SharingLog_EventMetadata::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.EventMetadata", + }; } -void SharingLog_EventMetadata::ArenaDtor(void* object) { - SharingLog_EventMetadata* _this = reinterpret_cast< SharingLog_EventMetadata* >(object); - (void)_this; -} -void SharingLog_EventMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_EventMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_EventMetadata_class_data_ = + SharingLog_EventMetadata::InternalGenerateClassData_(); -void SharingLog_EventMetadata::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_EventMetadata::GetClassData() const { + return SharingLog_EventMetadata_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 1, 0, 2> +SharingLog_EventMetadata::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_._has_bits_), + 0, // no _extensions_ + 12, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_EventMetadata_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 4, 8, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_)}}, + // optional bool initial_opt_in = 2 [deprecated = true]; + {::_pbi::TcParser::FastV8S1, + {16, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_opt_in_)}}, + // optional bool opt_in = 3 [deprecated = true]; + {::_pbi::TcParser::FastV8S1, + {24, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.opt_in_)}}, + // optional bool initial_enable_status = 4 [deprecated = true]; + {::_pbi::TcParser::FastV8S1, + {32, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_enable_status_)}}, + // optional int64 flow_id = 5; + {::_pbi::TcParser::FastV64S1, + {40, 9, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.flow_id_)}}, + // optional int64 session_id = 6; + {::_pbi::TcParser::FastV64S1, + {48, 10, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.session_id_)}}, + // optional int32 vendor_id = 7; + {::_pbi::TcParser::FastV32S1, + {56, 11, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_)}}, + // optional string cloud_sharing_id = 8; + {::_pbi::TcParser::FastBS1, + {66, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_sharing_id_)}}, + // optional string cloud_receiver_session_id = 9; + {::_pbi::TcParser::FastBS1, + {74, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_receiver_session_id_)}}, + // optional string external_provider_name = 10; + {::_pbi::TcParser::FastBS1, + {82, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_name_)}}, + // optional string external_provider_id = 11; + {::_pbi::TcParser::FastBS1, + {90, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_id_)}}, + // optional bool is_direct_share = 12; + {::_pbi::TcParser::FastV8S1, + {96, 8, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.is_direct_share_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool initial_opt_in = 2 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_opt_in_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool opt_in = 3 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.opt_in_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool initial_enable_status = 4 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.initial_enable_status_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional int64 flow_id = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.flow_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 session_id = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.session_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 vendor_id = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string cloud_sharing_id = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_sharing_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string cloud_receiver_session_id = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.cloud_receiver_session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string external_provider_name = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string external_provider_id = 11; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.external_provider_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool is_direct_share = 12; + {PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.is_direct_share_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 8}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_EventMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - cloud_sharing_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.cloud_sharing_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - cloud_receiver_session_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.cloud_receiver_session_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - external_provider_name_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.external_provider_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - external_provider_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.external_provider_id_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x000000f0u) { - ::memset(&use_case_, 0, static_cast( - reinterpret_cast(&initial_enable_status_) - - reinterpret_cast(&use_case_)) + sizeof(initial_enable_status_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.use_case_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.initial_enable_status_) - + reinterpret_cast(&_impl_.use_case_)) + sizeof(_impl_.initial_enable_status_)); } - if (cached_has_bits & 0x00000700u) { - ::memset(&flow_id_, 0, static_cast( - reinterpret_cast(&vendor_id_) - - reinterpret_cast(&flow_id_)) + sizeof(vendor_id_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + ::memset(&_impl_.is_direct_share_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.vendor_id_) - + reinterpret_cast(&_impl_.is_direct_share_)) + sizeof(_impl_.vendor_id_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_EventMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::SharingUseCase_IsValid(val))) { - _internal_set_use_case(static_cast<::location::nearby::proto::sharing::SharingUseCase>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool initial_opt_in = 2 [deprecated = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_initial_opt_in(&has_bits); - initial_opt_in_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool opt_in = 3 [deprecated = true]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_opt_in(&has_bits); - opt_in_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool initial_enable_status = 4 [deprecated = true]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_initial_enable_status(&has_bits); - initial_enable_status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 flow_id = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 vendor_id = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_vendor_id(&has_bits); - vendor_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string cloud_sharing_id = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_cloud_sharing_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string cloud_receiver_session_id = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_cloud_receiver_session_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string external_provider_name = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_external_provider_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string external_provider_id = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - auto str = _internal_mutable_external_provider_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_EventMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_EventMetadata::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_EventMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_EventMetadata::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_EventMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_use_case(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_use_case(), target); } // optional bool initial_opt_in = 2 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_initial_opt_in(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_initial_opt_in(), target); } // optional bool opt_in = 3 [deprecated = true]; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_opt_in(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_opt_in(), target); } // optional bool initial_enable_status = 4 [deprecated = true]; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_initial_enable_status(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_initial_enable_status(), target); } // optional int64 flow_id = 5; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( + stream, this_._internal_flow_id(), target); } // optional int64 session_id = 6; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( + stream, this_._internal_session_id(), target); } // optional int32 vendor_id = 7; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_vendor_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_vendor_id(), target); } // optional string cloud_sharing_id = 8; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 8, this->_internal_cloud_sharing_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_cloud_sharing_id(); + target = stream->WriteStringMaybeAliased(8, _s, target); } // optional string cloud_receiver_session_id = 9; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 9, this->_internal_cloud_receiver_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_cloud_receiver_session_id(); + target = stream->WriteStringMaybeAliased(9, _s, target); } // optional string external_provider_name = 10; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 10, this->_internal_external_provider_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_external_provider_name(); + target = stream->WriteStringMaybeAliased(10, _s, target); } // optional string external_provider_id = 11; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteStringMaybeAliased( - 11, this->_internal_external_provider_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_external_provider_id(); + target = stream->WriteStringMaybeAliased(11, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + // optional bool is_direct_share = 12; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 12, this_._internal_is_direct_share(), target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.EventMetadata) return target; } -size_t SharingLog_EventMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_EventMetadata::ByteSizeLong(const MessageLite& base) { + const SharingLog_EventMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_EventMetadata::ByteSizeLong() const { + const SharingLog_EventMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x000001e0U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional string cloud_sharing_id = 8; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cloud_sharing_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cloud_sharing_id()); } - // optional string cloud_receiver_session_id = 9; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cloud_receiver_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cloud_receiver_session_id()); } - // optional string external_provider_name = 10; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_external_provider_name()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_external_provider_name()); } - // optional string external_provider_id = 11; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_external_provider_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_external_provider_id()); } - // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_use_case()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_use_case()); } - - // optional bool initial_opt_in = 2 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional bool opt_in = 3 [deprecated = true]; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; - } - - // optional bool initial_enable_status = 4 [deprecated = true]; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - } - if (cached_has_bits & 0x00000700u) { + if (BatchCheckHasBit(cached_has_bits, 0x00000e00U)) { // optional int64 flow_id = 5; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - // optional int64 session_id = 6; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int32 vendor_id = 7; - if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_vendor_id()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vendor_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_EventMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_EventMetadata::MergeFrom(const SharingLog_EventMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_cloud_sharing_id(from._internal_cloud_sharing_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_external_provider_name(from._internal_external_provider_name()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_external_provider_id(from._internal_external_provider_id()); - } - if (cached_has_bits & 0x00000010u) { - use_case_ = from.use_case_; - } - if (cached_has_bits & 0x00000020u) { - initial_opt_in_ = from.initial_opt_in_; - } - if (cached_has_bits & 0x00000040u) { - opt_in_ = from.opt_in_; - } - if (cached_has_bits & 0x00000080u) { - initial_enable_status_ = from.initial_enable_status_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_EventMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { - flow_id_ = from.flow_id_; + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_cloud_sharing_id(from._internal_cloud_sharing_id()); } - if (cached_has_bits & 0x00000200u) { - session_id_ = from.session_id_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id()); } - if (cached_has_bits & 0x00000400u) { - vendor_id_ = from.vendor_id_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_external_provider_name(from._internal_external_provider_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_external_provider_id(from._internal_external_provider_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.use_case_ = from._impl_.use_case_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.initial_opt_in_ = from._impl_.initial_opt_in_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.opt_in_ = from._impl_.opt_in_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.initial_enable_status_ = from._impl_.initial_enable_status_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.is_direct_share_ = from._impl_.is_direct_share_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.vendor_id_ = from._impl_.vendor_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_EventMetadata::CopyFrom(const SharingLog_EventMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.EventMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_EventMetadata::IsInitialized() const { - return true; -} -void SharingLog_EventMetadata::InternalSwap(SharingLog_EventMetadata* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_EventMetadata::InternalSwap(SharingLog_EventMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &cloud_sharing_id_, lhs_arena, - &other->cloud_sharing_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &cloud_receiver_session_id_, lhs_arena, - &other->cloud_receiver_session_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &external_provider_name_, lhs_arena, - &other->external_provider_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &external_provider_id_, lhs_arena, - &other->external_provider_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, vendor_id_) - + sizeof(SharingLog_EventMetadata::vendor_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, use_case_)>( - reinterpret_cast(&use_case_), - reinterpret_cast(&other->use_case_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_sharing_id_, &other->_impl_.cloud_sharing_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_receiver_session_id_, &other->_impl_.cloud_receiver_session_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.external_provider_name_, &other->_impl_.external_provider_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.external_provider_id_, &other->_impl_.external_provider_id_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.vendor_id_) + + sizeof(SharingLog_EventMetadata::_impl_.vendor_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_EventMetadata, _impl_.use_case_)>( + reinterpret_cast(&_impl_.use_case_), + reinterpret_cast(&other->_impl_.use_case_)); } -std::string SharingLog_EventMetadata::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.EventMetadata"; -} - - // =================================================================== class SharingLog_DiscoverShareTarget::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_DiscoverShareTarget* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_scanning(const SharingLog_DiscoverShareTarget* msg); - static void set_has_duration_since_scanning(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_latency_since_activity_start_millis(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_scan_type(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_cloud_receiver_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_DiscoverShareTarget::_Internal::share_target_info(const SharingLog_DiscoverShareTarget* msg) { - return *msg->share_target_info_; -} -const ::PROTOBUF_NAMESPACE_ID::Duration& -SharingLog_DiscoverShareTarget::_Internal::duration_since_scanning(const SharingLog_DiscoverShareTarget* msg) { - return *msg->duration_since_scanning_; -} void SharingLog_DiscoverShareTarget::clear_duration_since_scanning() { - if (duration_since_scanning_ != nullptr) duration_since_scanning_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_scanning_ != nullptr) _impl_.duration_since_scanning_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DiscoverShareTarget_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) } -SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget(const SharingLog_DiscoverShareTarget& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - cloud_receiver_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_cloud_receiver_session_id()) { - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cloud_receiver_session_id(), - GetArenaForAllocation()); - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - if (from._internal_has_duration_since_scanning()) { - duration_since_scanning_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.duration_since_scanning_); - } else { - duration_since_scanning_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&latency_since_activity_start_millis_) - - reinterpret_cast(&session_id_)) + sizeof(latency_since_activity_start_millis_)); +PROTOBUF_NDEBUG_INLINE SharingLog_DiscoverShareTarget::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_), + cloud_receiver_session_id_(arena, from.cloud_receiver_session_id_) {} + +SharingLog_DiscoverShareTarget::SharingLog_DiscoverShareTarget( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_DiscoverShareTarget& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DiscoverShareTarget_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_DiscoverShareTarget* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + _impl_.duration_since_scanning_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, latency_since_activity_start_millis_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::latency_since_activity_start_millis_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) } +PROTOBUF_NDEBUG_INLINE SharingLog_DiscoverShareTarget::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena), + cloud_receiver_session_id_(arena), + latency_since_activity_start_millis_{::int64_t{-1}} {} -inline void SharingLog_DiscoverShareTarget::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -cloud_receiver_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&scan_type_) - - reinterpret_cast(&share_target_info_)) + sizeof(scan_type_)); -latency_since_activity_start_millis_ = int64_t{-1}; +inline void SharingLog_DiscoverShareTarget::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, scan_type_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::scan_type_)); } - SharingLog_DiscoverShareTarget::~SharingLog_DiscoverShareTarget() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DiscoverShareTarget::SharedDtor(MessageLite& self) { + SharingLog_DiscoverShareTarget& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + this_._impl_.cloud_receiver_session_id_.Destroy(); + delete this_._impl_.share_target_info_; + delete this_._impl_.duration_since_scanning_; + this_._impl_.~Impl_(); } -inline void SharingLog_DiscoverShareTarget::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - cloud_receiver_session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete share_target_info_; - if (this != internal_default_instance()) delete duration_since_scanning_; +inline void* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DiscoverShareTarget(arena); +} +constexpr auto SharingLog_DiscoverShareTarget::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_DiscoverShareTarget), + alignof(SharingLog_DiscoverShareTarget)); +} +constexpr auto SharingLog_DiscoverShareTarget::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_DiscoverShareTarget_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DiscoverShareTarget::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DiscoverShareTarget::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DiscoverShareTarget::ByteSizeLong, + &SharingLog_DiscoverShareTarget::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget", + }; } -void SharingLog_DiscoverShareTarget::ArenaDtor(void* object) { - SharingLog_DiscoverShareTarget* _this = reinterpret_cast< SharingLog_DiscoverShareTarget* >(object); - (void)_this; -} -void SharingLog_DiscoverShareTarget::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DiscoverShareTarget::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DiscoverShareTarget_class_data_ = + SharingLog_DiscoverShareTarget::InternalGenerateClassData_(); -void SharingLog_DiscoverShareTarget::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DiscoverShareTarget::GetClassData() const { + return SharingLog_DiscoverShareTarget_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 3, 0, 2> +SharingLog_DiscoverShareTarget::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_DiscoverShareTarget_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string cloud_receiver_session_id = 8; + {::_pbi::TcParser::FastBS1, + {66, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.cloud_receiver_session_id_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_)}}, + // optional .google.protobuf.Duration duration_since_scanning = 2; + {::_pbi::TcParser::FastMtS1, + {18, 3, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.duration_since_scanning_)}}, + // optional int64 session_id = 3; + {::_pbi::TcParser::FastV64S1, + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.session_id_)}}, + // optional int64 flow_id = 4; + {::_pbi::TcParser::FastV64S1, + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.flow_id_)}}, + // optional string referrer_name = 5; + {::_pbi::TcParser::FastBS1, + {42, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.referrer_name_)}}, + // optional int64 latency_since_activity_start_millis = 6 [default = -1]; + {::_pbi::TcParser::FastV64S1, + {48, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_)}}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 7; + {::_pbi::TcParser::FastEr0S1, + {56, 6, 4, + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.scan_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.Duration duration_since_scanning = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.duration_since_scanning_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 session_id = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.session_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 flow_id = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.flow_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string referrer_name = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 latency_since_activity_start_millis = 6 [default = -1]; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.scan_type_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string cloud_receiver_session_id = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.cloud_receiver_session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DiscoverShareTarget::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - cloud_receiver_session_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.cloud_receiver_session_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(duration_since_scanning_ != nullptr); - duration_since_scanning_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.duration_since_scanning_ != nullptr); + _impl_.duration_since_scanning_->Clear(); } } - if (cached_has_bits & 0x000000f0u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&scan_type_) - - reinterpret_cast(&session_id_)) + sizeof(scan_type_)); - latency_since_activity_start_millis_ = int64_t{-1}; + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.scan_type_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.scan_type_)); + _impl_.latency_since_activity_start_millis_ = ::int64_t{-1}; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DiscoverShareTarget::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Duration duration_since_scanning = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_duration_since_scanning(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 flow_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_latency_since_activity_start_millis(&has_bits); - latency_since_activity_start_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ScanType_IsValid(val))) { - _internal_set_scan_type(static_cast<::location::nearby::proto::sharing::ScanType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string cloud_receiver_session_id = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_cloud_receiver_session_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DiscoverShareTarget::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DiscoverShareTarget& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DiscoverShareTarget& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional .google.protobuf.Duration duration_since_scanning = 2; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::duration_since_scanning(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.duration_since_scanning_, this_._impl_.duration_since_scanning_->GetCachedSize(), target, + stream); } // optional int64 session_id = 3; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_session_id(), target); } // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_flow_id(), target); } // optional string referrer_name = 5; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_latency_since_activity_start_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( + stream, this_._internal_latency_since_activity_start_millis(), target); } // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_scan_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_scan_type(), target); } // optional string cloud_receiver_session_id = 8; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 8, this->_internal_cloud_receiver_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_cloud_receiver_session_id(); + target = stream->WriteStringMaybeAliased(8, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) return target; } -size_t SharingLog_DiscoverShareTarget::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DiscoverShareTarget::ByteSizeLong(const MessageLite& base) { + const SharingLog_DiscoverShareTarget& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DiscoverShareTarget::ByteSizeLong() const { + const SharingLog_DiscoverShareTarget& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string referrer_name = 5; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional string cloud_receiver_session_id = 8; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cloud_receiver_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cloud_receiver_session_id()); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional .google.protobuf.Duration duration_since_scanning = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *duration_since_scanning_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_scanning_); } - // optional int64 session_id = 3; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_scan_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type()); } - // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_since_activity_start_millis()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_since_activity_start_millis()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DiscoverShareTarget::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_DiscoverShareTarget::MergeFrom(const SharingLog_DiscoverShareTarget& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_duration_since_scanning()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration_since_scanning()); - } - if (cached_has_bits & 0x00000010u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000020u) { - flow_id_ = from.flow_id_; - } - if (cached_has_bits & 0x00000040u) { - scan_type_ = from.scan_type_; - } - if (cached_has_bits & 0x00000080u) { - latency_since_activity_start_millis_ = from.latency_since_activity_start_millis_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_DiscoverShareTarget::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_cloud_receiver_session_id(from._internal_cloud_receiver_session_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.duration_since_scanning_ != nullptr); + if (_this->_impl_.duration_since_scanning_ == nullptr) { + _this->_impl_.duration_since_scanning_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_); + } else { + _this->_impl_.duration_since_scanning_->MergeFrom(*from._impl_.duration_since_scanning_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.scan_type_ = from._impl_.scan_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.latency_since_activity_start_millis_ = from._impl_.latency_since_activity_start_millis_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DiscoverShareTarget::CopyFrom(const SharingLog_DiscoverShareTarget& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DiscoverShareTarget::IsInitialized() const { - return true; -} -void SharingLog_DiscoverShareTarget::InternalSwap(SharingLog_DiscoverShareTarget* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_DiscoverShareTarget::InternalSwap(SharingLog_DiscoverShareTarget* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &cloud_receiver_session_id_, lhs_arena, - &other->cloud_receiver_session_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, scan_type_) - + sizeof(SharingLog_DiscoverShareTarget::scan_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); - swap(latency_since_activity_start_millis_, other->latency_since_activity_start_millis_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_receiver_session_id_, &other->_impl_.cloud_receiver_session_id_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.latency_since_activity_start_millis_) + + sizeof(SharingLog_DiscoverShareTarget::_impl_.latency_since_activity_start_millis_) + - PROTOBUF_FIELD_OFFSET(SharingLog_DiscoverShareTarget, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_DiscoverShareTarget::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget"; -} - - // =================================================================== class SharingLog_ParsingFailedEndpointId::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_scanning(const SharingLog_ParsingFailedEndpointId* msg); - static void set_has_duration_since_scanning(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_latency_since_activity_start_millis(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_scan_type(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_last_sync(const SharingLog_ParsingFailedEndpointId* msg); - static void set_has_duration_since_last_sync(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_parsing_failed_type(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_discovery_mode(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._has_bits_); }; -const ::PROTOBUF_NAMESPACE_ID::Duration& -SharingLog_ParsingFailedEndpointId::_Internal::duration_since_scanning(const SharingLog_ParsingFailedEndpointId* msg) { - return *msg->duration_since_scanning_; -} -const ::PROTOBUF_NAMESPACE_ID::Duration& -SharingLog_ParsingFailedEndpointId::_Internal::duration_since_last_sync(const SharingLog_ParsingFailedEndpointId* msg) { - return *msg->duration_since_last_sync_; -} void SharingLog_ParsingFailedEndpointId::clear_duration_since_scanning() { - if (duration_since_scanning_ != nullptr) duration_since_scanning_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_scanning_ != nullptr) _impl_.duration_since_scanning_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } void SharingLog_ParsingFailedEndpointId::clear_duration_since_last_sync() { - if (duration_since_last_sync_ != nullptr) duration_since_last_sync_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_last_sync_ != nullptr) _impl_.duration_since_last_sync_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ParsingFailedEndpointId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) } -SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId(const SharingLog_ParsingFailedEndpointId& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - if (from._internal_has_duration_since_scanning()) { - duration_since_scanning_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.duration_since_scanning_); - } else { - duration_since_scanning_ = nullptr; - } - if (from._internal_has_duration_since_last_sync()) { - duration_since_last_sync_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.duration_since_last_sync_); - } else { - duration_since_last_sync_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&latency_since_activity_start_millis_) - - reinterpret_cast(&session_id_)) + sizeof(latency_since_activity_start_millis_)); +PROTOBUF_NDEBUG_INLINE SharingLog_ParsingFailedEndpointId::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + endpoint_id_(arena, from.endpoint_id_), + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_ParsingFailedEndpointId::SharingLog_ParsingFailedEndpointId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_ParsingFailedEndpointId& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ParsingFailedEndpointId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_ParsingFailedEndpointId* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.duration_since_scanning_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_) + : nullptr; + _impl_.duration_since_last_sync_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_last_sync_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, latency_since_activity_start_millis_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::latency_since_activity_start_millis_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) } +PROTOBUF_NDEBUG_INLINE SharingLog_ParsingFailedEndpointId::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + endpoint_id_(arena), + referrer_name_(arena), + latency_since_activity_start_millis_{::int64_t{-1}} {} -inline void SharingLog_ParsingFailedEndpointId::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_since_scanning_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&discovery_mode_) - - reinterpret_cast(&duration_since_scanning_)) + sizeof(discovery_mode_)); -latency_since_activity_start_millis_ = int64_t{-1}; +inline void SharingLog_ParsingFailedEndpointId::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, duration_since_scanning_), + 0, + offsetof(Impl_, discovery_mode_) - + offsetof(Impl_, duration_since_scanning_) + + sizeof(Impl_::discovery_mode_)); } - SharingLog_ParsingFailedEndpointId::~SharingLog_ParsingFailedEndpointId() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ParsingFailedEndpointId::SharedDtor(MessageLite& self) { + SharingLog_ParsingFailedEndpointId& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.endpoint_id_.Destroy(); + this_._impl_.referrer_name_.Destroy(); + delete this_._impl_.duration_since_scanning_; + delete this_._impl_.duration_since_last_sync_; + this_._impl_.~Impl_(); } -inline void SharingLog_ParsingFailedEndpointId::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete duration_since_scanning_; - if (this != internal_default_instance()) delete duration_since_last_sync_; +inline void* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ParsingFailedEndpointId(arena); +} +constexpr auto SharingLog_ParsingFailedEndpointId::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ParsingFailedEndpointId), + alignof(SharingLog_ParsingFailedEndpointId)); +} +constexpr auto SharingLog_ParsingFailedEndpointId::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_ParsingFailedEndpointId_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ParsingFailedEndpointId::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ParsingFailedEndpointId::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ParsingFailedEndpointId::ByteSizeLong, + &SharingLog_ParsingFailedEndpointId::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId", + }; } -void SharingLog_ParsingFailedEndpointId::ArenaDtor(void* object) { - SharingLog_ParsingFailedEndpointId* _this = reinterpret_cast< SharingLog_ParsingFailedEndpointId* >(object); - (void)_this; -} -void SharingLog_ParsingFailedEndpointId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ParsingFailedEndpointId::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ParsingFailedEndpointId_class_data_ = + SharingLog_ParsingFailedEndpointId::InternalGenerateClassData_(); -void SharingLog_ParsingFailedEndpointId::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ParsingFailedEndpointId::GetClassData() const { + return SharingLog_ParsingFailedEndpointId_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 5, 0, 2> +SharingLog_ParsingFailedEndpointId::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ParsingFailedEndpointId_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string endpoint_id = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.endpoint_id_)}}, + // optional .google.protobuf.Duration duration_since_scanning = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_)}}, + // optional int64 session_id = 3; + {::_pbi::TcParser::FastV64S1, + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.session_id_)}}, + // optional int64 flow_id = 4; + {::_pbi::TcParser::FastV64S1, + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.flow_id_)}}, + // optional string referrer_name = 5; + {::_pbi::TcParser::FastBS1, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.referrer_name_)}}, + // optional int64 latency_since_activity_start_millis = 6 [default = -1]; + {::_pbi::TcParser::FastV64S1, + {48, 9, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_)}}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 7; + {::_pbi::TcParser::FastEr0S1, + {56, 6, 4, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.scan_type_)}}, + // optional .google.protobuf.Duration duration_since_last_sync = 8; + {::_pbi::TcParser::FastMtS1, + {66, 3, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_last_sync_)}}, + // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; + {::_pbi::TcParser::FastEr0S1, + {72, 7, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.parsing_failed_type_)}}, + // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; + {::_pbi::TcParser::FastEr0S1, + {80, 8, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.discovery_mode_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string endpoint_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.endpoint_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .google.protobuf.Duration duration_since_scanning = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 session_id = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.session_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 flow_id = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.flow_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string referrer_name = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.referrer_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 latency_since_activity_start_millis = 6 [default = -1]; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.ScanType scan_type = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.scan_type_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .google.protobuf.Duration duration_since_last_sync = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_last_sync_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.parsing_failed_type_), _Internal::kHasBitsOffset + 7, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.discovery_mode_), _Internal::kHasBitsOffset + 8, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + {0, 4}, + {0, 2}, + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ParsingFailedEndpointId::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.endpoint_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - referrer_name_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(duration_since_scanning_ != nullptr); - duration_since_scanning_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.duration_since_scanning_ != nullptr); + _impl_.duration_since_scanning_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(duration_since_last_sync_ != nullptr); - duration_since_last_sync_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.duration_since_last_sync_ != nullptr); + _impl_.duration_since_last_sync_->Clear(); } } - if (cached_has_bits & 0x000000f0u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&parsing_failed_type_) - - reinterpret_cast(&session_id_)) + sizeof(parsing_failed_type_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.parsing_failed_type_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.parsing_failed_type_)); } - if (cached_has_bits & 0x00000300u) { - discovery_mode_ = 0; - latency_since_activity_start_millis_ = int64_t{-1}; + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + _impl_.discovery_mode_ = 0; + _impl_.latency_since_activity_start_millis_ = ::int64_t{-1}; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ParsingFailedEndpointId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Duration duration_since_scanning = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_duration_since_scanning(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 flow_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_latency_since_activity_start_millis(&has_bits); - latency_since_activity_start_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ScanType_IsValid(val))) { - _internal_set_scan_type(static_cast<::location::nearby::proto::sharing::ScanType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Duration duration_since_last_sync = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_duration_since_last_sync(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ParsingFailedType_IsValid(val))) { - _internal_set_parsing_failed_type(static_cast<::location::nearby::proto::sharing::ParsingFailedType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DiscoveryMode_IsValid(val))) { - _internal_set_discovery_mode(static_cast<::location::nearby::proto::sharing::DiscoveryMode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ParsingFailedEndpointId::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ParsingFailedEndpointId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ParsingFailedEndpointId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_endpoint_id(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional .google.protobuf.Duration duration_since_scanning = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::duration_since_scanning(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.duration_since_scanning_, this_._impl_.duration_since_scanning_->GetCachedSize(), target, + stream); } // optional int64 session_id = 3; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_session_id(), target); } // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_flow_id(), target); } // optional string referrer_name = 5; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_latency_since_activity_start_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( + stream, this_._internal_latency_since_activity_start_millis(), target); } // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_scan_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_scan_type(), target); } // optional .google.protobuf.Duration duration_since_last_sync = 8; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::duration_since_last_sync(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.duration_since_last_sync_, this_._impl_.duration_since_last_sync_->GetCachedSize(), target, + stream); } // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 9, this->_internal_parsing_failed_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 9, this_._internal_parsing_failed_type(), target); } // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_discovery_mode(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_discovery_mode(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) return target; } -size_t SharingLog_ParsingFailedEndpointId::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ParsingFailedEndpointId::ByteSizeLong(const MessageLite& base) { + const SharingLog_ParsingFailedEndpointId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ParsingFailedEndpointId::ByteSizeLong() const { + const SharingLog_ParsingFailedEndpointId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endpoint_id()); } - // optional string referrer_name = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional .google.protobuf.Duration duration_since_scanning = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *duration_since_scanning_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_scanning_); } - // optional .google.protobuf.Duration duration_since_last_sync = 8; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *duration_since_last_sync_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.duration_since_last_sync_); } - // optional int64 session_id = 3; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int64 flow_id = 4; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_scan_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_scan_type()); } - // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_parsing_failed_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_parsing_failed_type()); } - } - if (cached_has_bits & 0x00000300u) { + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_discovery_mode()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_discovery_mode()); } - // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_since_activity_start_millis()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_since_activity_start_millis()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ParsingFailedEndpointId::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ParsingFailedEndpointId::MergeFrom(const SharingLog_ParsingFailedEndpointId& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_duration_since_scanning()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration_since_scanning()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_duration_since_last_sync()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration_since_last_sync()); - } - if (cached_has_bits & 0x00000010u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000020u) { - flow_id_ = from.flow_id_; - } - if (cached_has_bits & 0x00000040u) { - scan_type_ = from.scan_type_; - } - if (cached_has_bits & 0x00000080u) { - parsing_failed_type_ = from.parsing_failed_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ParsingFailedEndpointId::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - discovery_mode_ = from.discovery_mode_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_endpoint_id(from._internal_endpoint_id()); } - if (cached_has_bits & 0x00000200u) { - latency_since_activity_start_millis_ = from.latency_since_activity_start_millis_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.duration_since_scanning_ != nullptr); + if (_this->_impl_.duration_since_scanning_ == nullptr) { + _this->_impl_.duration_since_scanning_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_scanning_); + } else { + _this->_impl_.duration_since_scanning_->MergeFrom(*from._impl_.duration_since_scanning_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.duration_since_last_sync_ != nullptr); + if (_this->_impl_.duration_since_last_sync_ == nullptr) { + _this->_impl_.duration_since_last_sync_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.duration_since_last_sync_); + } else { + _this->_impl_.duration_since_last_sync_->MergeFrom(*from._impl_.duration_since_last_sync_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.scan_type_ = from._impl_.scan_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.parsing_failed_type_ = from._impl_.parsing_failed_type_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.discovery_mode_ = from._impl_.discovery_mode_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.latency_since_activity_start_millis_ = from._impl_.latency_since_activity_start_millis_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ParsingFailedEndpointId::CopyFrom(const SharingLog_ParsingFailedEndpointId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ParsingFailedEndpointId::IsInitialized() const { - return true; -} -void SharingLog_ParsingFailedEndpointId::InternalSwap(SharingLog_ParsingFailedEndpointId* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_ParsingFailedEndpointId::InternalSwap(SharingLog_ParsingFailedEndpointId* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, discovery_mode_) - + sizeof(SharingLog_ParsingFailedEndpointId::discovery_mode_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, duration_since_scanning_)>( - reinterpret_cast(&duration_since_scanning_), - reinterpret_cast(&other->duration_since_scanning_)); - swap(latency_since_activity_start_millis_, other->latency_since_activity_start_millis_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endpoint_id_, &other->_impl_.endpoint_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.latency_since_activity_start_millis_) + + sizeof(SharingLog_ParsingFailedEndpointId::_impl_.latency_since_activity_start_millis_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ParsingFailedEndpointId, _impl_.duration_since_scanning_)>( + reinterpret_cast(&_impl_.duration_since_scanning_), + reinterpret_cast(&other->_impl_.duration_since_scanning_)); } -std::string SharingLog_ParsingFailedEndpointId::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId"; -} - - // =================================================================== class SharingLog_DescribeAttachments::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_DescribeAttachments* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::PROTOBUF_NAMESPACE_ID::Duration& download_duration(const SharingLog_DescribeAttachments* msg); - static void set_has_download_duration(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_DescribeAttachments::_Internal::attachments_info(const SharingLog_DescribeAttachments* msg) { - return *msg->attachments_info_; -} -const ::PROTOBUF_NAMESPACE_ID::Duration& -SharingLog_DescribeAttachments::_Internal::download_duration(const SharingLog_DescribeAttachments* msg) { - return *msg->download_duration_; -} void SharingLog_DescribeAttachments::clear_download_duration() { - if (download_duration_ != nullptr) download_duration_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.download_duration_ != nullptr) _impl_.download_duration_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DescribeAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) } -SharingLog_DescribeAttachments::SharingLog_DescribeAttachments(const SharingLog_DescribeAttachments& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - if (from._internal_has_download_duration()) { - download_duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.download_duration_); - } else { - download_duration_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE SharingLog_DescribeAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_DescribeAttachments::SharingLog_DescribeAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_DescribeAttachments& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DescribeAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_DescribeAttachments* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.download_duration_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_duration_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) } +PROTOBUF_NDEBUG_INLINE SharingLog_DescribeAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DescribeAttachments::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&download_duration_) - - reinterpret_cast(&attachments_info_)) + sizeof(download_duration_)); +inline void SharingLog_DescribeAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, download_duration_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::download_duration_)); } - SharingLog_DescribeAttachments::~SharingLog_DescribeAttachments() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DescribeAttachments::SharedDtor(MessageLite& self) { + SharingLog_DescribeAttachments& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + delete this_._impl_.download_duration_; + this_._impl_.~Impl_(); } -inline void SharingLog_DescribeAttachments::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; - if (this != internal_default_instance()) delete download_duration_; +inline void* PROTOBUF_NONNULL SharingLog_DescribeAttachments::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DescribeAttachments(arena); +} +constexpr auto SharingLog_DescribeAttachments::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DescribeAttachments), + alignof(SharingLog_DescribeAttachments)); +} +constexpr auto SharingLog_DescribeAttachments::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_DescribeAttachments_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DescribeAttachments::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DescribeAttachments::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DescribeAttachments::ByteSizeLong, + &SharingLog_DescribeAttachments::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DescribeAttachments", + }; } -void SharingLog_DescribeAttachments::ArenaDtor(void* object) { - SharingLog_DescribeAttachments* _this = reinterpret_cast< SharingLog_DescribeAttachments* >(object); - (void)_this; -} -void SharingLog_DescribeAttachments::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DescribeAttachments::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DescribeAttachments_class_data_ = + SharingLog_DescribeAttachments::InternalGenerateClassData_(); -void SharingLog_DescribeAttachments::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DescribeAttachments::GetClassData() const { + return SharingLog_DescribeAttachments_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_DescribeAttachments::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_DescribeAttachments_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .google.protobuf.Duration download_duration = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.download_duration_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.Duration download_duration = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.download_duration_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DescribeAttachments::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(download_duration_ != nullptr); - download_duration_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.download_duration_ != nullptr); + _impl_.download_duration_->Clear(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DescribeAttachments::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Duration download_duration = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_download_duration(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DescribeAttachments::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DescribeAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DescribeAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional .google.protobuf.Duration download_duration = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::download_duration(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.download_duration_, this_._impl_.download_duration_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) return target; } -size_t SharingLog_DescribeAttachments::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DescribeAttachments::ByteSizeLong(const MessageLite& base) { + const SharingLog_DescribeAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DescribeAttachments::ByteSizeLong() const { + const SharingLog_DescribeAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .google.protobuf.Duration download_duration = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *download_duration_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.download_duration_); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DescribeAttachments::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DescribeAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DescribeAttachments::MergeFrom(const SharingLog_DescribeAttachments& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_download_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_download_duration()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.download_duration_ != nullptr); + if (_this->_impl_.download_duration_ == nullptr) { + _this->_impl_.download_duration_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_duration_); + } else { + _this->_impl_.download_duration_->MergeFrom(*from._impl_.download_duration_); + } } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DescribeAttachments::CopyFrom(const SharingLog_DescribeAttachments& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DescribeAttachments::IsInitialized() const { - return true; -} -void SharingLog_DescribeAttachments::InternalSwap(SharingLog_DescribeAttachments* other) { - using std::swap; +void SharingLog_DescribeAttachments::InternalSwap(SharingLog_DescribeAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, download_duration_) - + sizeof(SharingLog_DescribeAttachments::download_duration_) - - PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.download_duration_) + + sizeof(SharingLog_DescribeAttachments::_impl_.download_duration_) + - PROTOBUF_FIELD_OFFSET(SharingLog_DescribeAttachments, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_DescribeAttachments::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DescribeAttachments"; -} - - // =================================================================== class SharingLog_SendIntroduction::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_SendIntroduction* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_SendIntroduction::_Internal::share_target_info(const SharingLog_SendIntroduction* msg) { - return *msg->share_target_info_; -} -SharingLog_SendIntroduction::SharingLog_SendIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendIntroduction::SharingLog_SendIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) } -SharingLog_SendIntroduction::SharingLog_SendIntroduction(const SharingLog_SendIntroduction& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); +PROTOBUF_NDEBUG_INLINE SharingLog_SendIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_SendIntroduction::SharingLog_SendIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_SendIntroduction& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_SendIntroduction* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, concurrent_connections_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::concurrent_connections_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) } +PROTOBUF_NDEBUG_INLINE SharingLog_SendIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendIntroduction::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&share_target_info_)) + sizeof(concurrent_connections_)); +inline void SharingLog_SendIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, concurrent_connections_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::concurrent_connections_)); } - SharingLog_SendIntroduction::~SharingLog_SendIntroduction() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendIntroduction::SharedDtor(MessageLite& self) { + SharingLog_SendIntroduction& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_SendIntroduction::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_SendIntroduction::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendIntroduction(arena); +} +constexpr auto SharingLog_SendIntroduction::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendIntroduction), + alignof(SharingLog_SendIntroduction)); +} +constexpr auto SharingLog_SendIntroduction::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_SendIntroduction_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendIntroduction::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendIntroduction::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendIntroduction::ByteSizeLong, + &SharingLog_SendIntroduction::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendIntroduction", + }; } -void SharingLog_SendIntroduction::ArenaDtor(void* object) { - SharingLog_SendIntroduction* _this = reinterpret_cast< SharingLog_SendIntroduction* >(object); - (void)_this; -} -void SharingLog_SendIntroduction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendIntroduction::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_SendIntroduction_class_data_ = + SharingLog_SendIntroduction::InternalGenerateClassData_(); -void SharingLog_SendIntroduction::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendIntroduction::GetClassData() const { + return SharingLog_SendIntroduction_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SharingLog_SendIntroduction::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendIntroduction_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 concurrent_connections = 4; + {::_pbi::TcParser::FastV32S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.concurrent_connections_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_)}}, + // optional int64 session_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.session_id_)}}, + // optional int32 transfer_position = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.transfer_position_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 session_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 transfer_position = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.transfer_position_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendIntroduction::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } - if (cached_has_bits & 0x0000000eu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.concurrent_connections_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendIntroduction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendIntroduction::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendIntroduction::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendIntroduction::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional int64 session_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_session_id(), target); } // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_concurrent_connections(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) return target; } -size_t SharingLog_SendIntroduction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendIntroduction::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendIntroduction::ByteSizeLong() const { + const SharingLog_SendIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendIntroduction::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendIntroduction::MergeFrom(const SharingLog_SendIntroduction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000004u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000008u) { - concurrent_connections_ = from.concurrent_connections_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SendIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendIntroduction::CopyFrom(const SharingLog_SendIntroduction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendIntroduction::IsInitialized() const { - return true; -} -void SharingLog_SendIntroduction::InternalSwap(SharingLog_SendIntroduction* other) { - using std::swap; +void SharingLog_SendIntroduction::InternalSwap(SharingLog_SendIntroduction* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, concurrent_connections_) - + sizeof(SharingLog_SendIntroduction::concurrent_connections_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.concurrent_connections_) + + sizeof(SharingLog_SendIntroduction::_impl_.concurrent_connections_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SendIntroduction, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_SendIntroduction::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendIntroduction"; -} - - // =================================================================== class SharingLog_ReceiveIntroduction::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_ReceiveIntroduction* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_ReceiveIntroduction::_Internal::share_target_info(const SharingLog_ReceiveIntroduction* msg) { - return *msg->share_target_info_; -} -SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) } -SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction(const SharingLog_ReceiveIntroduction& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - session_id_ = from.session_id_; +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_ReceiveIntroduction::SharingLog_ReceiveIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_ReceiveIntroduction& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_ReceiveIntroduction* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + _impl_.session_id_ = from._impl_.session_id_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) } +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_ReceiveIntroduction::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&session_id_) - - reinterpret_cast(&share_target_info_)) + sizeof(session_id_)); +inline void SharingLog_ReceiveIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, session_id_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::session_id_)); } - SharingLog_ReceiveIntroduction::~SharingLog_ReceiveIntroduction() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ReceiveIntroduction::SharedDtor(MessageLite& self) { + SharingLog_ReceiveIntroduction& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_ReceiveIntroduction::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ReceiveIntroduction(arena); +} +constexpr auto SharingLog_ReceiveIntroduction::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ReceiveIntroduction), + alignof(SharingLog_ReceiveIntroduction)); +} +constexpr auto SharingLog_ReceiveIntroduction::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_ReceiveIntroduction_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ReceiveIntroduction::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ReceiveIntroduction::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ReceiveIntroduction::ByteSizeLong, + &SharingLog_ReceiveIntroduction::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction", + }; } -void SharingLog_ReceiveIntroduction::ArenaDtor(void* object) { - SharingLog_ReceiveIntroduction* _this = reinterpret_cast< SharingLog_ReceiveIntroduction* >(object); - (void)_this; -} -void SharingLog_ReceiveIntroduction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ReceiveIntroduction::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_ReceiveIntroduction_class_data_ = + SharingLog_ReceiveIntroduction::InternalGenerateClassData_(); -void SharingLog_ReceiveIntroduction::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ReceiveIntroduction::GetClassData() const { + return SharingLog_ReceiveIntroduction_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +SharingLog_ReceiveIntroduction::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ReceiveIntroduction_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_)}}, + // optional string referrer_name = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.referrer_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string referrer_name = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ReceiveIntroduction::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } } - session_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.session_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ReceiveIntroduction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ReceiveIntroduction::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ReceiveIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ReceiveIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional string referrer_name = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) return target; } -size_t SharingLog_ReceiveIntroduction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ReceiveIntroduction::ByteSizeLong(const MessageLite& base) { + const SharingLog_ReceiveIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ReceiveIntroduction::ByteSizeLong() const { + const SharingLog_ReceiveIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string referrer_name = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ReceiveIntroduction::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ReceiveIntroduction::MergeFrom(const SharingLog_ReceiveIntroduction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000004u) { - session_id_ = from.session_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ReceiveIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ReceiveIntroduction::CopyFrom(const SharingLog_ReceiveIntroduction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ReceiveIntroduction::IsInitialized() const { - return true; -} -void SharingLog_ReceiveIntroduction::InternalSwap(SharingLog_ReceiveIntroduction* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_ReceiveIntroduction::InternalSwap(SharingLog_ReceiveIntroduction* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, session_id_) - + sizeof(SharingLog_ReceiveIntroduction::session_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.session_id_) + + sizeof(SharingLog_ReceiveIntroduction::_impl_.session_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveIntroduction, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_ReceiveIntroduction::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction"; -} - - // =================================================================== class SharingLog_RespondToIntroduction::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_action(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_qr_code_flow(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._has_bits_); }; -SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RespondToIntroduction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) } -SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction(const SharingLog_RespondToIntroduction& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) +SharingLog_RespondToIntroduction::SharingLog_RespondToIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RespondToIntroduction& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RespondToIntroduction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_RespondToIntroduction::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_RespondToIntroduction::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&session_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); +inline void SharingLog_RespondToIntroduction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, qr_code_flow_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::qr_code_flow_)); } - SharingLog_RespondToIntroduction::~SharingLog_RespondToIntroduction() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_RespondToIntroduction::SharedDtor(MessageLite& self) { + SharingLog_RespondToIntroduction& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_RespondToIntroduction::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_RespondToIntroduction::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_RespondToIntroduction(arena); +} +constexpr auto SharingLog_RespondToIntroduction::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RespondToIntroduction), + alignof(SharingLog_RespondToIntroduction)); +} +constexpr auto SharingLog_RespondToIntroduction::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<64>{ + { + &_SharingLog_RespondToIntroduction_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_RespondToIntroduction::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_RespondToIntroduction::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_RespondToIntroduction::ByteSizeLong, + &SharingLog_RespondToIntroduction::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction", + }; } -void SharingLog_RespondToIntroduction::ArenaDtor(void* object) { - SharingLog_RespondToIntroduction* _this = reinterpret_cast< SharingLog_RespondToIntroduction* >(object); - (void)_this; -} -void SharingLog_RespondToIntroduction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_RespondToIntroduction::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> SharingLog_RespondToIntroduction_class_data_ = + SharingLog_RespondToIntroduction::InternalGenerateClassData_(); -void SharingLog_RespondToIntroduction::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_RespondToIntroduction::GetClassData() const { + return SharingLog_RespondToIntroduction_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +SharingLog_RespondToIntroduction::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_RespondToIntroduction_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.action_)}}, + // optional int64 session_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_)}}, + // optional bool qr_code_flow = 3; + {::_pbi::TcParser::FastV8S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.action_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 session_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional bool qr_code_flow = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_RespondToIntroduction::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&qr_code_flow_) - - reinterpret_cast(&session_id_)) + sizeof(qr_code_flow_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.qr_code_flow_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.qr_code_flow_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_RespondToIntroduction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ResponseToIntroduction_IsValid(val))) { - _internal_set_action(static_cast<::location::nearby::proto::sharing::ResponseToIntroduction>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 session_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool qr_code_flow = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_qr_code_flow(&has_bits); - qr_code_flow_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_RespondToIntroduction::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_RespondToIntroduction::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_RespondToIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_RespondToIntroduction::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_RespondToIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_action(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_action(), target); } // optional int64 session_id = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_session_id(), target); } // optional bool qr_code_flow = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_qr_code_flow(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_qr_code_flow(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) return target; } -size_t SharingLog_RespondToIntroduction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_RespondToIntroduction::ByteSizeLong(const MessageLite& base) { + const SharingLog_RespondToIntroduction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_RespondToIntroduction::ByteSizeLong() const { + const SharingLog_RespondToIntroduction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000004U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional int64 session_id = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_action()); } - - // optional bool qr_code_flow = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_RespondToIntroduction::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_RespondToIntroduction::MergeFrom(const SharingLog_RespondToIntroduction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000002u) { - action_ = from.action_; - } - if (cached_has_bits & 0x00000004u) { - qr_code_flow_ = from.qr_code_flow_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_RespondToIntroduction::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_ = from._impl_.action_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_RespondToIntroduction::CopyFrom(const SharingLog_RespondToIntroduction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_RespondToIntroduction::IsInitialized() const { - return true; -} -void SharingLog_RespondToIntroduction::InternalSwap(SharingLog_RespondToIntroduction* other) { - using std::swap; +void SharingLog_RespondToIntroduction::InternalSwap(SharingLog_RespondToIntroduction* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, qr_code_flow_) - + sizeof(SharingLog_RespondToIntroduction::qr_code_flow_) - - PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, session_id_)>( - reinterpret_cast(&session_id_), - reinterpret_cast(&other->session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.qr_code_flow_) + + sizeof(SharingLog_RespondToIntroduction::_impl_.qr_code_flow_) + - PROTOBUF_FIELD_OFFSET(SharingLog_RespondToIntroduction, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); } -std::string SharingLog_RespondToIntroduction::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction"; -} - - // =================================================================== class SharingLog_SendAttachmentsStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_SendAttachmentsStart* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_qr_code_flow(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_SendAttachmentsStart* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_advanced_protection_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_advanced_protection_mismatch(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_SendAttachmentsStart::_Internal::attachments_info(const SharingLog_SendAttachmentsStart* msg) { - return *msg->attachments_info_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_SendAttachmentsStart::_Internal::share_target_info(const SharingLog_SendAttachmentsStart* msg) { - return *msg->share_target_info_; -} -SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) } -SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart(const SharingLog_SendAttachmentsStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&advanced_protection_mismatch_) - - reinterpret_cast(&session_id_)) + sizeof(advanced_protection_mismatch_)); +PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_SendAttachmentsStart::SharingLog_SendAttachmentsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_SendAttachmentsStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_SendAttachmentsStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, advanced_protection_mismatch_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::advanced_protection_mismatch_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendAttachmentsStart::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&advanced_protection_mismatch_) - - reinterpret_cast(&attachments_info_)) + sizeof(advanced_protection_mismatch_)); +inline void SharingLog_SendAttachmentsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, advanced_protection_mismatch_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::advanced_protection_mismatch_)); } - SharingLog_SendAttachmentsStart::~SharingLog_SendAttachmentsStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendAttachmentsStart::SharedDtor(MessageLite& self) { + SharingLog_SendAttachmentsStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_SendAttachmentsStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendAttachmentsStart(arena); +} +constexpr auto SharingLog_SendAttachmentsStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendAttachmentsStart), + alignof(SharingLog_SendAttachmentsStart)); +} +constexpr auto SharingLog_SendAttachmentsStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<63>{ + { + &_SharingLog_SendAttachmentsStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendAttachmentsStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendAttachmentsStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendAttachmentsStart::ByteSizeLong, + &SharingLog_SendAttachmentsStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart", + }; } -void SharingLog_SendAttachmentsStart::ArenaDtor(void* object) { - SharingLog_SendAttachmentsStart* _this = reinterpret_cast< SharingLog_SendAttachmentsStart* >(object); - (void)_this; -} -void SharingLog_SendAttachmentsStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendAttachmentsStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> SharingLog_SendAttachmentsStart_class_data_ = + SharingLog_SendAttachmentsStart::InternalGenerateClassData_(); -void SharingLog_SendAttachmentsStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendAttachmentsStart::GetClassData() const { + return SharingLog_SendAttachmentsStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 2, 0, 2> +SharingLog_SendAttachmentsStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendAttachmentsStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool advanced_protection_mismatch = 8; + {::_pbi::TcParser::FastV8S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_)}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.session_id_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_)}}, + // optional int32 transfer_position = 3; + {::_pbi::TcParser::FastV32S1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.transfer_position_)}}, + // optional int32 concurrent_connections = 4; + {::_pbi::TcParser::FastV32S1, + {32, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.concurrent_connections_)}}, + // optional bool qr_code_flow = 5 [deprecated = true]; + {::_pbi::TcParser::FastV8S1, + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.qr_code_flow_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.share_target_info_)}}, + // optional bool advanced_protection_enabled = 7; + {::_pbi::TcParser::FastV8S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_enabled_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 transfer_position = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.transfer_position_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bool qr_code_flow = 5 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.qr_code_flow_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bool advanced_protection_enabled = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_enabled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool advanced_protection_mismatch = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendAttachmentsStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } } - if (cached_has_bits & 0x000000fcu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&advanced_protection_mismatch_) - - reinterpret_cast(&session_id_)) + sizeof(advanced_protection_mismatch_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.advanced_protection_mismatch_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.advanced_protection_mismatch_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendAttachmentsStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool qr_code_flow = 5 [deprecated = true]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_qr_code_flow(&has_bits); - qr_code_flow_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool advanced_protection_enabled = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_advanced_protection_enabled(&has_bits); - advanced_protection_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool advanced_protection_mismatch = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_advanced_protection_mismatch(&has_bits); - advanced_protection_mismatch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendAttachmentsStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendAttachmentsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendAttachmentsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_concurrent_connections(), target); } // optional bool qr_code_flow = 5 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_qr_code_flow(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_qr_code_flow(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional bool advanced_protection_enabled = 7; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_advanced_protection_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_advanced_protection_enabled(), target); } // optional bool advanced_protection_mismatch = 8; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_advanced_protection_mismatch(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_advanced_protection_mismatch(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) return target; } -size_t SharingLog_SendAttachmentsStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendAttachmentsStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendAttachmentsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendAttachmentsStart::ByteSizeLong() const { + const SharingLog_SendAttachmentsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x000000e0U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int32 transfer_position = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int32 concurrent_connections = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - - // optional bool qr_code_flow = 5 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional bool advanced_protection_enabled = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; - } - - // optional bool advanced_protection_mismatch = 8; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendAttachmentsStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendAttachmentsStart::MergeFrom(const SharingLog_SendAttachmentsStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000004u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000008u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000010u) { - concurrent_connections_ = from.concurrent_connections_; - } - if (cached_has_bits & 0x00000020u) { - qr_code_flow_ = from.qr_code_flow_; - } - if (cached_has_bits & 0x00000040u) { - advanced_protection_enabled_ = from.advanced_protection_enabled_; - } - if (cached_has_bits & 0x00000080u) { - advanced_protection_mismatch_ = from.advanced_protection_mismatch_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SendAttachmentsStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.qr_code_flow_ = from._impl_.qr_code_flow_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.advanced_protection_enabled_ = from._impl_.advanced_protection_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.advanced_protection_mismatch_ = from._impl_.advanced_protection_mismatch_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendAttachmentsStart::CopyFrom(const SharingLog_SendAttachmentsStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendAttachmentsStart::IsInitialized() const { - return true; -} -void SharingLog_SendAttachmentsStart::InternalSwap(SharingLog_SendAttachmentsStart* other) { - using std::swap; +void SharingLog_SendAttachmentsStart::InternalSwap(SharingLog_SendAttachmentsStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, advanced_protection_mismatch_) - + sizeof(SharingLog_SendAttachmentsStart::advanced_protection_mismatch_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.advanced_protection_mismatch_) + + sizeof(SharingLog_SendAttachmentsStart::_impl_.advanced_protection_mismatch_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsStart, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_SendAttachmentsStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart"; -} - - // =================================================================== class SharingLog_SendAttachmentsEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_sent_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_SendAttachmentsEnd* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_SendAttachmentsEnd* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_connection_layer_status(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_first_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_previous_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_lifetime_transfer_count(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_connection_medium(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_data_usage(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_is_mutual_contact(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_SendAttachmentsEnd::_Internal::attachments_info(const SharingLog_SendAttachmentsEnd* msg) { - return *msg->attachments_info_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_SendAttachmentsEnd::_Internal::share_target_info(const SharingLog_SendAttachmentsEnd* msg) { - return *msg->share_target_info_; -} -SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) } -SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd(const SharingLog_SendAttachmentsEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&is_mutual_contact_) - - reinterpret_cast(&session_id_)) + sizeof(is_mutual_contact_)); +PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_SendAttachmentsEnd::SharingLog_SendAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_SendAttachmentsEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendAttachmentsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_SendAttachmentsEnd* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, is_mutual_contact_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::is_mutual_contact_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) } +PROTOBUF_NDEBUG_INLINE SharingLog_SendAttachmentsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_SendAttachmentsEnd::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_mutual_contact_) - - reinterpret_cast(&attachments_info_)) + sizeof(is_mutual_contact_)); +inline void SharingLog_SendAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, is_mutual_contact_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::is_mutual_contact_)); } - SharingLog_SendAttachmentsEnd::~SharingLog_SendAttachmentsEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendAttachmentsEnd::SharedDtor(MessageLite& self) { + SharingLog_SendAttachmentsEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + delete this_._impl_.attachments_info_; + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_SendAttachmentsEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete attachments_info_; - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendAttachmentsEnd(arena); +} +constexpr auto SharingLog_SendAttachmentsEnd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_SendAttachmentsEnd), + alignof(SharingLog_SendAttachmentsEnd)); +} +constexpr auto SharingLog_SendAttachmentsEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<61>{ + { + &_SharingLog_SendAttachmentsEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendAttachmentsEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendAttachmentsEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendAttachmentsEnd::ByteSizeLong, + &SharingLog_SendAttachmentsEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd", + }; } -void SharingLog_SendAttachmentsEnd::ArenaDtor(void* object) { - SharingLog_SendAttachmentsEnd* _this = reinterpret_cast< SharingLog_SendAttachmentsEnd* >(object); - (void)_this; -} -void SharingLog_SendAttachmentsEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendAttachmentsEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> SharingLog_SendAttachmentsEnd_class_data_ = + SharingLog_SendAttachmentsEnd::InternalGenerateClassData_(); -void SharingLog_SendAttachmentsEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendAttachmentsEnd::GetClassData() const { + return SharingLog_SendAttachmentsEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 16, 5, 0, 2> +SharingLog_SendAttachmentsEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_._has_bits_), + 0, // no _extensions_ + 16, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294901760, // skipmap + offsetof(decltype(_table_), field_entries), + 16, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendAttachmentsEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool is_mutual_contact = 16; + {::_pbi::TcParser::FastV8S2, + {384, 15, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_)}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.session_id_)}}, + // optional int64 sent_bytes = 2; + {::_pbi::TcParser::FastV64S1, + {16, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.sent_bytes_)}}, + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 5, 30, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.status_)}}, + // optional int32 transfer_position = 4; + {::_pbi::TcParser::FastV32S1, + {32, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.transfer_position_)}}, + // optional int32 concurrent_connections = 5; + {::_pbi::TcParser::FastV32S1, + {40, 8, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.concurrent_connections_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_)}}, + // optional int64 duration_millis = 7; + {::_pbi::TcParser::FastV64S1, + {56, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.duration_millis_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; + {::_pbi::TcParser::FastMtS1, + {66, 2, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.share_target_info_)}}, + // optional string referrer_name = 9; + {::_pbi::TcParser::FastBS1, + {74, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.referrer_name_)}}, + // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; + {::_pbi::TcParser::FastEr0S1, + {80, 9, 18, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_layer_status_)}}, + // optional int32 first_successful_transfer_date = 11; + {::_pbi::TcParser::FastV32S1, + {88, 10, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.first_successful_transfer_date_)}}, + // optional int32 previous_successful_transfer_date = 12; + {::_pbi::TcParser::FastV32S1, + {96, 11, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.previous_successful_transfer_date_)}}, + // optional int32 lifetime_transfer_count = 13; + {::_pbi::TcParser::FastV32S1, + {104, 12, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.lifetime_transfer_count_)}}, + // optional int32 connection_medium = 14; + {::_pbi::TcParser::FastV32S1, + {112, 13, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_medium_)}}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; + {::_pbi::TcParser::FastEr0S1, + {120, 14, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.data_usage_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 sent_bytes = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.sent_bytes_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int32 transfer_position = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.transfer_position_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 duration_millis = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.duration_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.share_target_info_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string referrer_name = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_layer_status_), _Internal::kHasBitsOffset + 9, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int32 first_successful_transfer_date = 11; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 previous_successful_transfer_date = 12; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 lifetime_transfer_count = 13; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 connection_medium = 14; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.connection_medium_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.data_usage_), _Internal::kHasBitsOffset + 14, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool is_mutual_contact = 16; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + {0, 30}, + {0, 18}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendAttachmentsEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } } - if (cached_has_bits & 0x000000f8u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&duration_millis_) - - reinterpret_cast(&session_id_)) + sizeof(duration_millis_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.duration_millis_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.duration_millis_)); } - if (cached_has_bits & 0x0000ff00u) { - ::memset(&concurrent_connections_, 0, static_cast( - reinterpret_cast(&is_mutual_contact_) - - reinterpret_cast(&concurrent_connections_)) + sizeof(is_mutual_contact_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + ::memset(&_impl_.concurrent_connections_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_mutual_contact_) - + reinterpret_cast(&_impl_.concurrent_connections_)) + sizeof(_impl_.is_mutual_contact_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendAttachmentsEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 sent_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_sent_bytes(&has_bits); - sent_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ConnectionLayerStatus_IsValid(val))) { - _internal_set_connection_layer_status(static_cast<::location::nearby::proto::sharing::ConnectionLayerStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 first_successful_transfer_date = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_first_successful_transfer_date(&has_bits); - first_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 previous_successful_transfer_date = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - _Internal::set_has_previous_successful_transfer_date(&has_bits); - previous_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 lifetime_transfer_count = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - _Internal::set_has_lifetime_transfer_count(&has_bits); - lifetime_transfer_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connection_medium = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_connection_medium(&has_bits); - connection_medium_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_data_usage(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool is_mutual_contact = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { - _Internal::set_has_is_mutual_contact(&has_bits); - is_mutual_contact_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendAttachmentsEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional int64 sent_bytes = 2; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_sent_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_sent_bytes(), target); } // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_status(), target); } // optional int32 transfer_position = 4; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 5; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_concurrent_connections(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional int64 duration_millis = 7; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( + stream, this_._internal_duration_millis(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional string referrer_name = 9; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 9, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(9, _s, target); } // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 10, this->_internal_connection_layer_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_connection_layer_status(), target); } // optional int32 first_successful_transfer_date = 11; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_first_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_first_successful_transfer_date(), target); } // optional int32 previous_successful_transfer_date = 12; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_previous_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>( + stream, this_._internal_previous_successful_transfer_date(), target); } // optional int32 lifetime_transfer_count = 13; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_lifetime_transfer_count(), target); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( + stream, this_._internal_lifetime_transfer_count(), target); } // optional int32 connection_medium = 14; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_connection_medium(), target); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( + stream, this_._internal_connection_medium(), target); } // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - if (cached_has_bits & 0x00004000u) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 15, this->_internal_data_usage(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 15, this_._internal_data_usage(), target); } // optional bool is_mutual_contact = 16; - if (cached_has_bits & 0x00008000u) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_mutual_contact(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 16, this_._internal_is_mutual_contact(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) return target; } -size_t SharingLog_SendAttachmentsEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendAttachmentsEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendAttachmentsEnd::ByteSizeLong() const { + const SharingLog_SendAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00008000U & cached_has_bits) * 3; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string referrer_name = 9; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int64 sent_bytes = 2; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_sent_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_sent_bytes()); } - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional int32 transfer_position = 4; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int64 duration_millis = 7; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - } - if (cached_has_bits & 0x0000ff00u) { + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { // optional int32 concurrent_connections = 5; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_layer_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_connection_layer_status()); } - // optional int32 first_successful_transfer_date = 11; - if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_first_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_first_successful_transfer_date()); } - // optional int32 previous_successful_transfer_date = 12; - if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_previous_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_previous_successful_transfer_date()); } - // optional int32 lifetime_transfer_count = 13; - if (cached_has_bits & 0x00001000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_lifetime_transfer_count()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_lifetime_transfer_count()); } - // optional int32 connection_medium = 14; - if (cached_has_bits & 0x00002000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connection_medium()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connection_medium()); } - // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - if (cached_has_bits & 0x00004000u) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_usage()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage()); } - - // optional bool is_mutual_contact = 16; - if (cached_has_bits & 0x00008000u) { - total_size += 2 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendAttachmentsEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendAttachmentsEnd::MergeFrom(const SharingLog_SendAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000008u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000010u) { - sent_bytes_ = from.sent_bytes_; - } - if (cached_has_bits & 0x00000020u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000040u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000080u) { - duration_millis_ = from.duration_millis_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SendAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - concurrent_connections_ = from.concurrent_connections_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); } - if (cached_has_bits & 0x00000200u) { - connection_layer_status_ = from.connection_layer_status_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } } - if (cached_has_bits & 0x00000400u) { - first_successful_transfer_date_ = from.first_successful_transfer_date_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } } - if (cached_has_bits & 0x00000800u) { - previous_successful_transfer_date_ = from.previous_successful_transfer_date_; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; } - if (cached_has_bits & 0x00001000u) { - lifetime_transfer_count_ = from.lifetime_transfer_count_; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.sent_bytes_ = from._impl_.sent_bytes_; } - if (cached_has_bits & 0x00002000u) { - connection_medium_ = from.connection_medium_; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.status_ = from._impl_.status_; } - if (cached_has_bits & 0x00004000u) { - data_usage_ = from.data_usage_; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; } - if (cached_has_bits & 0x00008000u) { - is_mutual_contact_ = from.is_mutual_contact_; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.connection_layer_status_ = from._impl_.connection_layer_status_; + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_; + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_; + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_; + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _this->_impl_.connection_medium_ = from._impl_.connection_medium_; + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + _this->_impl_.data_usage_ = from._impl_.data_usage_; + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + _this->_impl_.is_mutual_contact_ = from._impl_.is_mutual_contact_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendAttachmentsEnd::CopyFrom(const SharingLog_SendAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendAttachmentsEnd::IsInitialized() const { - return true; -} -void SharingLog_SendAttachmentsEnd::InternalSwap(SharingLog_SendAttachmentsEnd* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_SendAttachmentsEnd::InternalSwap(SharingLog_SendAttachmentsEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, is_mutual_contact_) - + sizeof(SharingLog_SendAttachmentsEnd::is_mutual_contact_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.is_mutual_contact_) + + sizeof(SharingLog_SendAttachmentsEnd::_impl_.is_mutual_contact_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SendAttachmentsEnd, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_SendAttachmentsEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd"; -} - - // =================================================================== class SharingLog_ReceiveAttachmentsStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_ReceiveAttachmentsStart* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_ReceiveAttachmentsStart* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_ReceiveAttachmentsStart::_Internal::attachments_info(const SharingLog_ReceiveAttachmentsStart* msg) { - return *msg->attachments_info_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_ReceiveAttachmentsStart::_Internal::share_target_info(const SharingLog_ReceiveAttachmentsStart* msg) { - return *msg->share_target_info_; -} -SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) } -SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart(const SharingLog_ReceiveAttachmentsStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - session_id_ = from.session_id_; +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_ReceiveAttachmentsStart::SharingLog_ReceiveAttachmentsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_ReceiveAttachmentsStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_ReceiveAttachmentsStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + _impl_.session_id_ = from._impl_.session_id_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ReceiveAttachmentsStart::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&session_id_) - - reinterpret_cast(&attachments_info_)) + sizeof(session_id_)); +inline void SharingLog_ReceiveAttachmentsStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, session_id_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::session_id_)); } - SharingLog_ReceiveAttachmentsStart::~SharingLog_ReceiveAttachmentsStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ReceiveAttachmentsStart::SharedDtor(MessageLite& self) { + SharingLog_ReceiveAttachmentsStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_ReceiveAttachmentsStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ReceiveAttachmentsStart(arena); +} +constexpr auto SharingLog_ReceiveAttachmentsStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceiveAttachmentsStart), + alignof(SharingLog_ReceiveAttachmentsStart)); +} +constexpr auto SharingLog_ReceiveAttachmentsStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_ReceiveAttachmentsStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ReceiveAttachmentsStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ReceiveAttachmentsStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ReceiveAttachmentsStart::ByteSizeLong, + &SharingLog_ReceiveAttachmentsStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart", + }; } -void SharingLog_ReceiveAttachmentsStart::ArenaDtor(void* object) { - SharingLog_ReceiveAttachmentsStart* _this = reinterpret_cast< SharingLog_ReceiveAttachmentsStart* >(object); - (void)_this; -} -void SharingLog_ReceiveAttachmentsStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ReceiveAttachmentsStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ReceiveAttachmentsStart_class_data_ = + SharingLog_ReceiveAttachmentsStart::InternalGenerateClassData_(); -void SharingLog_ReceiveAttachmentsStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ReceiveAttachmentsStart::GetClassData() const { + return SharingLog_ReceiveAttachmentsStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 2, 0, 2> +SharingLog_ReceiveAttachmentsStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ReceiveAttachmentsStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.share_target_info_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ReceiveAttachmentsStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } } - session_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.session_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ReceiveAttachmentsStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ReceiveAttachmentsStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ReceiveAttachmentsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ReceiveAttachmentsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) return target; } -size_t SharingLog_ReceiveAttachmentsStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ReceiveAttachmentsStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_ReceiveAttachmentsStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ReceiveAttachmentsStart::ByteSizeLong() const { + const SharingLog_ReceiveAttachmentsStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ReceiveAttachmentsStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ReceiveAttachmentsStart::MergeFrom(const SharingLog_ReceiveAttachmentsStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000004u) { - session_id_ = from.session_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ReceiveAttachmentsStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ReceiveAttachmentsStart::CopyFrom(const SharingLog_ReceiveAttachmentsStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ReceiveAttachmentsStart::IsInitialized() const { - return true; -} -void SharingLog_ReceiveAttachmentsStart::InternalSwap(SharingLog_ReceiveAttachmentsStart* other) { - using std::swap; +void SharingLog_ReceiveAttachmentsStart::InternalSwap(SharingLog_ReceiveAttachmentsStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, session_id_) - + sizeof(SharingLog_ReceiveAttachmentsStart::session_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.session_id_) + + sizeof(SharingLog_ReceiveAttachmentsStart::_impl_.session_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsStart, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_ReceiveAttachmentsStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart"; -} - - // =================================================================== class SharingLog_ReceiveAttachmentsEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_received_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_ReceiveAttachmentsEnd* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_first_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_previous_successful_transfer_date(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_lifetime_transfer_count(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_connection_medium(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_data_usage(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_ReceiveAttachmentsEnd::_Internal::share_target_info(const SharingLog_ReceiveAttachmentsEnd* msg) { - return *msg->share_target_info_; -} -SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) } -SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd(const SharingLog_ReceiveAttachmentsEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&data_usage_) - - reinterpret_cast(&session_id_)) + sizeof(data_usage_)); +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_ReceiveAttachmentsEnd::SharingLog_ReceiveAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_ReceiveAttachmentsEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceiveAttachmentsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_ReceiveAttachmentsEnd* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, data_usage_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::data_usage_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) } +PROTOBUF_NDEBUG_INLINE SharingLog_ReceiveAttachmentsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_ReceiveAttachmentsEnd::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&data_usage_) - - reinterpret_cast(&share_target_info_)) + sizeof(data_usage_)); +inline void SharingLog_ReceiveAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, data_usage_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::data_usage_)); } - SharingLog_ReceiveAttachmentsEnd::~SharingLog_ReceiveAttachmentsEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ReceiveAttachmentsEnd::SharedDtor(MessageLite& self) { + SharingLog_ReceiveAttachmentsEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_ReceiveAttachmentsEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ReceiveAttachmentsEnd(arena); +} +constexpr auto SharingLog_ReceiveAttachmentsEnd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_ReceiveAttachmentsEnd), + alignof(SharingLog_ReceiveAttachmentsEnd)); +} +constexpr auto SharingLog_ReceiveAttachmentsEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<64>{ + { + &_SharingLog_ReceiveAttachmentsEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ReceiveAttachmentsEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ReceiveAttachmentsEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ReceiveAttachmentsEnd::ByteSizeLong, + &SharingLog_ReceiveAttachmentsEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd", + }; } -void SharingLog_ReceiveAttachmentsEnd::ArenaDtor(void* object) { - SharingLog_ReceiveAttachmentsEnd* _this = reinterpret_cast< SharingLog_ReceiveAttachmentsEnd* >(object); - (void)_this; -} -void SharingLog_ReceiveAttachmentsEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ReceiveAttachmentsEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> SharingLog_ReceiveAttachmentsEnd_class_data_ = + SharingLog_ReceiveAttachmentsEnd::InternalGenerateClassData_(); -void SharingLog_ReceiveAttachmentsEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ReceiveAttachmentsEnd::GetClassData() const { + return SharingLog_ReceiveAttachmentsEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 3, 0, 2> +SharingLog_ReceiveAttachmentsEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_._has_bits_), + 0, // no _extensions_ + 15, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294942464, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ReceiveAttachmentsEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.session_id_)}}, + // optional int64 received_bytes = 2; + {::_pbi::TcParser::FastV64S1, + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.received_bytes_)}}, + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 4, 30, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.status_)}}, + // optional string referrer_name = 4; + {::_pbi::TcParser::FastBS1, + {34, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.referrer_name_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; + {::_pbi::TcParser::FastMtS1, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_)}}, + // optional int32 first_successful_transfer_date = 6; + {::_pbi::TcParser::FastV32S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.first_successful_transfer_date_)}}, + // optional int32 previous_successful_transfer_date = 7; + {::_pbi::TcParser::FastV32S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.previous_successful_transfer_date_)}}, + // optional int32 lifetime_transfer_count = 8; + {::_pbi::TcParser::FastV32S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.lifetime_transfer_count_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional int32 connection_medium = 14; + {::_pbi::TcParser::FastV32S1, + {112, 8, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.connection_medium_)}}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; + {::_pbi::TcParser::FastEr0S1, + {120, 9, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 received_bytes = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.received_bytes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string referrer_name = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 first_successful_transfer_date = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.first_successful_transfer_date_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 previous_successful_transfer_date = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.previous_successful_transfer_date_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 lifetime_transfer_count = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.lifetime_transfer_count_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 connection_medium = 14; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.connection_medium_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_), _Internal::kHasBitsOffset + 9, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + {0, 30}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ReceiveAttachmentsEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } } - if (cached_has_bits & 0x000000fcu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&lifetime_transfer_count_) - - reinterpret_cast(&session_id_)) + sizeof(lifetime_transfer_count_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.lifetime_transfer_count_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.lifetime_transfer_count_)); } - if (cached_has_bits & 0x00000300u) { - ::memset(&connection_medium_, 0, static_cast( - reinterpret_cast(&data_usage_) - - reinterpret_cast(&connection_medium_)) + sizeof(data_usage_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.connection_medium_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.data_usage_) - + reinterpret_cast(&_impl_.connection_medium_)) + sizeof(_impl_.data_usage_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ReceiveAttachmentsEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 received_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_received_bytes(&has_bits); - received_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string referrer_name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 first_successful_transfer_date = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_first_successful_transfer_date(&has_bits); - first_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 previous_successful_transfer_date = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_previous_successful_transfer_date(&has_bits); - previous_successful_transfer_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 lifetime_transfer_count = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_lifetime_transfer_count(&has_bits); - lifetime_transfer_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connection_medium = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_connection_medium(&has_bits); - connection_medium_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DataUsage_IsValid(val))) { - _internal_set_data_usage(static_cast<::location::nearby::proto::sharing::DataUsage>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ReceiveAttachmentsEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ReceiveAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ReceiveAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional int64 received_bytes = 2; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_received_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_received_bytes(), target); } // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_status(), target); } // optional string referrer_name = 4; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(4, _s, target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional int32 first_successful_transfer_date = 6; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_first_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_first_successful_transfer_date(), target); } // optional int32 previous_successful_transfer_date = 7; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_previous_successful_transfer_date(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_previous_successful_transfer_date(), target); } // optional int32 lifetime_transfer_count = 8; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_lifetime_transfer_count(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_lifetime_transfer_count(), target); } // optional int32 connection_medium = 14; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_connection_medium(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( + stream, this_._internal_connection_medium(), target); } // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 15, this->_internal_data_usage(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 15, this_._internal_data_usage(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) return target; } -size_t SharingLog_ReceiveAttachmentsEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ReceiveAttachmentsEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_ReceiveAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ReceiveAttachmentsEnd::ByteSizeLong() const { + const SharingLog_ReceiveAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional string referrer_name = 4; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int64 received_bytes = 2; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_received_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_received_bytes()); } - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional int32 first_successful_transfer_date = 6; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_first_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_first_successful_transfer_date()); } - // optional int32 previous_successful_transfer_date = 7; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_previous_successful_transfer_date()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_previous_successful_transfer_date()); } - // optional int32 lifetime_transfer_count = 8; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_lifetime_transfer_count()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_lifetime_transfer_count()); } - } - if (cached_has_bits & 0x00000300u) { + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { // optional int32 connection_medium = 14; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connection_medium()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connection_medium()); } - // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_usage()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_data_usage()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ReceiveAttachmentsEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ReceiveAttachmentsEnd::MergeFrom(const SharingLog_ReceiveAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000004u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000008u) { - received_bytes_ = from.received_bytes_; - } - if (cached_has_bits & 0x00000010u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000020u) { - first_successful_transfer_date_ = from.first_successful_transfer_date_; - } - if (cached_has_bits & 0x00000040u) { - previous_successful_transfer_date_ = from.previous_successful_transfer_date_; - } - if (cached_has_bits & 0x00000080u) { - lifetime_transfer_count_ = from.lifetime_transfer_count_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ReceiveAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - connection_medium_ = from.connection_medium_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); } - if (cached_has_bits & 0x00000200u) { - data_usage_ = from.data_usage_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.received_bytes_ = from._impl_.received_bytes_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.first_successful_transfer_date_ = from._impl_.first_successful_transfer_date_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.previous_successful_transfer_date_ = from._impl_.previous_successful_transfer_date_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.lifetime_transfer_count_ = from._impl_.lifetime_transfer_count_; } - _has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.connection_medium_ = from._impl_.connection_medium_; + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.data_usage_ = from._impl_.data_usage_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ReceiveAttachmentsEnd::CopyFrom(const SharingLog_ReceiveAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ReceiveAttachmentsEnd::IsInitialized() const { - return true; -} -void SharingLog_ReceiveAttachmentsEnd::InternalSwap(SharingLog_ReceiveAttachmentsEnd* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_ReceiveAttachmentsEnd::InternalSwap(SharingLog_ReceiveAttachmentsEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, data_usage_) - + sizeof(SharingLog_ReceiveAttachmentsEnd::data_usage_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.data_usage_) + + sizeof(SharingLog_ReceiveAttachmentsEnd::_impl_.data_usage_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ReceiveAttachmentsEnd, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_ReceiveAttachmentsEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd"; -} - - // =================================================================== class SharingLog_CancelConnection::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_._has_bits_); }; -SharingLog_CancelConnection::SharingLog_CancelConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CancelConnection::SharingLog_CancelConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelConnection_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelConnection) } -SharingLog_CancelConnection::SharingLog_CancelConnection(const SharingLog_CancelConnection& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CancelConnection) +SharingLog_CancelConnection::SharingLog_CancelConnection( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelConnection& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelConnection_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_CancelConnection::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CancelConnection::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&session_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); +inline void SharingLog_CancelConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, concurrent_connections_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::concurrent_connections_)); } - SharingLog_CancelConnection::~SharingLog_CancelConnection() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CancelConnection::SharedDtor(MessageLite& self) { + SharingLog_CancelConnection& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CancelConnection::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CancelConnection::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CancelConnection(arena); +} +constexpr auto SharingLog_CancelConnection::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelConnection), + alignof(SharingLog_CancelConnection)); +} +constexpr auto SharingLog_CancelConnection::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_CancelConnection_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CancelConnection::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CancelConnection::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CancelConnection::ByteSizeLong, + &SharingLog_CancelConnection::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CancelConnection", + }; } -void SharingLog_CancelConnection::ArenaDtor(void* object) { - SharingLog_CancelConnection* _this = reinterpret_cast< SharingLog_CancelConnection* >(object); - (void)_this; -} -void SharingLog_CancelConnection::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CancelConnection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CancelConnection_class_data_ = + SharingLog_CancelConnection::InternalGenerateClassData_(); -void SharingLog_CancelConnection::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CancelConnection::GetClassData() const { + return SharingLog_CancelConnection_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +SharingLog_CancelConnection::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_CancelConnection_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_)}}, + // optional int32 transfer_position = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.transfer_position_)}}, + // optional int32 concurrent_connections = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.concurrent_connections_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 transfer_position = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.transfer_position_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CancelConnection::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.concurrent_connections_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CancelConnection::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CancelConnection::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelConnection::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CancelConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelConnection::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CancelConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional int32 transfer_position = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_concurrent_connections(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CancelConnection) return target; } -size_t SharingLog_CancelConnection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CancelConnection::ByteSizeLong(const MessageLite& base) { + const SharingLog_CancelConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CancelConnection::ByteSizeLong() const { + const SharingLog_CancelConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional int64 session_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int32 transfer_position = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int32 concurrent_connections = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CancelConnection::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CancelConnection::MergeFrom(const SharingLog_CancelConnection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000002u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000004u) { - concurrent_connections_ = from.concurrent_connections_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CancelConnection::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CancelConnection::CopyFrom(const SharingLog_CancelConnection& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelConnection) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CancelConnection::IsInitialized() const { - return true; -} -void SharingLog_CancelConnection::InternalSwap(SharingLog_CancelConnection* other) { - using std::swap; +void SharingLog_CancelConnection::InternalSwap(SharingLog_CancelConnection* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, concurrent_connections_) - + sizeof(SharingLog_CancelConnection::concurrent_connections_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, session_id_)>( - reinterpret_cast(&session_id_), - reinterpret_cast(&other->session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.concurrent_connections_) + + sizeof(SharingLog_CancelConnection::_impl_.concurrent_connections_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CancelConnection, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); } -std::string SharingLog_CancelConnection::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CancelConnection"; -} - - // =================================================================== class SharingLog_CancelSendingAttachments::_Internal { public: }; -SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelSendingAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) } -SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments(const SharingLog_CancelSendingAttachments& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) +SharingLog_CancelSendingAttachments::SharingLog_CancelSendingAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelSendingAttachments& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelSendingAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_CancelSendingAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CancelSendingAttachments::SharedCtor() { +inline void SharingLog_CancelSendingAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_CancelSendingAttachments::~SharingLog_CancelSendingAttachments() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CancelSendingAttachments::SharedDtor(MessageLite& self) { + SharingLog_CancelSendingAttachments& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CancelSendingAttachments::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CancelSendingAttachments::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CancelSendingAttachments(arena); +} +constexpr auto SharingLog_CancelSendingAttachments::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelSendingAttachments), + alignof(SharingLog_CancelSendingAttachments)); +} +constexpr auto SharingLog_CancelSendingAttachments::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<67>{ + { + &_SharingLog_CancelSendingAttachments_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CancelSendingAttachments::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CancelSendingAttachments::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CancelSendingAttachments::ByteSizeLong, + &SharingLog_CancelSendingAttachments::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CancelSendingAttachments, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments", + }; } -void SharingLog_CancelSendingAttachments::ArenaDtor(void* object) { - SharingLog_CancelSendingAttachments* _this = reinterpret_cast< SharingLog_CancelSendingAttachments* >(object); - (void)_this; -} -void SharingLog_CancelSendingAttachments::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CancelSendingAttachments::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<67> SharingLog_CancelSendingAttachments_class_data_ = + SharingLog_CancelSendingAttachments::InternalGenerateClassData_(); -void SharingLog_CancelSendingAttachments::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CancelSendingAttachments::GetClassData() const { + return SharingLog_CancelSendingAttachments_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_CancelSendingAttachments::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_CancelSendingAttachments_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CancelSendingAttachments::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CancelSendingAttachments::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CancelSendingAttachments::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelSendingAttachments::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CancelSendingAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelSendingAttachments::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CancelSendingAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) return target; } -size_t SharingLog_CancelSendingAttachments::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CancelSendingAttachments::ByteSizeLong(const MessageLite& base) { + const SharingLog_CancelSendingAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CancelSendingAttachments::ByteSizeLong() const { + const SharingLog_CancelSendingAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CancelSendingAttachments::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_CancelSendingAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_CancelSendingAttachments::MergeFrom(const SharingLog_CancelSendingAttachments& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CancelSendingAttachments::CopyFrom(const SharingLog_CancelSendingAttachments& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CancelSendingAttachments::IsInitialized() const { - return true; -} -void SharingLog_CancelSendingAttachments::InternalSwap(SharingLog_CancelSendingAttachments* other) { - using std::swap; +void SharingLog_CancelSendingAttachments::InternalSwap(SharingLog_CancelSendingAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_CancelSendingAttachments::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments"; -} - - // =================================================================== class SharingLog_CancelReceivingAttachments::_Internal { public: }; -SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelReceivingAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) } -SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments(const SharingLog_CancelReceivingAttachments& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) +SharingLog_CancelReceivingAttachments::SharingLog_CancelReceivingAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelReceivingAttachments& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CancelReceivingAttachments_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_CancelReceivingAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CancelReceivingAttachments::SharedCtor() { +inline void SharingLog_CancelReceivingAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_CancelReceivingAttachments::~SharingLog_CancelReceivingAttachments() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CancelReceivingAttachments::SharedDtor(MessageLite& self) { + SharingLog_CancelReceivingAttachments& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CancelReceivingAttachments::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CancelReceivingAttachments::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CancelReceivingAttachments(arena); +} +constexpr auto SharingLog_CancelReceivingAttachments::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CancelReceivingAttachments), + alignof(SharingLog_CancelReceivingAttachments)); +} +constexpr auto SharingLog_CancelReceivingAttachments::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<69>{ + { + &_SharingLog_CancelReceivingAttachments_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CancelReceivingAttachments::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CancelReceivingAttachments::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CancelReceivingAttachments::ByteSizeLong, + &SharingLog_CancelReceivingAttachments::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CancelReceivingAttachments, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments", + }; } -void SharingLog_CancelReceivingAttachments::ArenaDtor(void* object) { - SharingLog_CancelReceivingAttachments* _this = reinterpret_cast< SharingLog_CancelReceivingAttachments* >(object); - (void)_this; -} -void SharingLog_CancelReceivingAttachments::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CancelReceivingAttachments::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<69> SharingLog_CancelReceivingAttachments_class_data_ = + SharingLog_CancelReceivingAttachments::InternalGenerateClassData_(); -void SharingLog_CancelReceivingAttachments::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CancelReceivingAttachments::GetClassData() const { + return SharingLog_CancelReceivingAttachments_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_CancelReceivingAttachments::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_CancelReceivingAttachments_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CancelReceivingAttachments::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CancelReceivingAttachments::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CancelReceivingAttachments::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelReceivingAttachments::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CancelReceivingAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CancelReceivingAttachments::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CancelReceivingAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) return target; } -size_t SharingLog_CancelReceivingAttachments::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CancelReceivingAttachments::ByteSizeLong(const MessageLite& base) { + const SharingLog_CancelReceivingAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CancelReceivingAttachments::ByteSizeLong() const { + const SharingLog_CancelReceivingAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CancelReceivingAttachments::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_CancelReceivingAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_CancelReceivingAttachments::MergeFrom(const SharingLog_CancelReceivingAttachments& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CancelReceivingAttachments::CopyFrom(const SharingLog_CancelReceivingAttachments& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CancelReceivingAttachments::IsInitialized() const { - return true; -} -void SharingLog_CancelReceivingAttachments::InternalSwap(SharingLog_CancelReceivingAttachments* other) { - using std::swap; +void SharingLog_CancelReceivingAttachments::InternalSwap(SharingLog_CancelReceivingAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_CancelReceivingAttachments::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments"; -} - - // =================================================================== class SharingLog_ProcessReceivedAttachmentsEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._has_bits_); }; -SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) } -SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd(const SharingLog_ProcessReceivedAttachmentsEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&session_id_)) + sizeof(status_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) +SharingLog_ProcessReceivedAttachmentsEnd::SharingLog_ProcessReceivedAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ProcessReceivedAttachmentsEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ProcessReceivedAttachmentsEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&session_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&session_id_)) + sizeof(status_)); +inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, status_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::status_)); } - SharingLog_ProcessReceivedAttachmentsEnd::~SharingLog_ProcessReceivedAttachmentsEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedDtor(MessageLite& self) { + SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ProcessReceivedAttachmentsEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ProcessReceivedAttachmentsEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ProcessReceivedAttachmentsEnd(arena); +} +constexpr auto SharingLog_ProcessReceivedAttachmentsEnd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ProcessReceivedAttachmentsEnd), + alignof(SharingLog_ProcessReceivedAttachmentsEnd)); +} +constexpr auto SharingLog_ProcessReceivedAttachmentsEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<72>{ + { + &_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ProcessReceivedAttachmentsEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ProcessReceivedAttachmentsEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong, + &SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd", + }; } -void SharingLog_ProcessReceivedAttachmentsEnd::ArenaDtor(void* object) { - SharingLog_ProcessReceivedAttachmentsEnd* _this = reinterpret_cast< SharingLog_ProcessReceivedAttachmentsEnd* >(object); - (void)_this; -} -void SharingLog_ProcessReceivedAttachmentsEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ProcessReceivedAttachmentsEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ProcessReceivedAttachmentsEnd_class_data_ = + SharingLog_ProcessReceivedAttachmentsEnd::InternalGenerateClassData_(); -void SharingLog_ProcessReceivedAttachmentsEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ProcessReceivedAttachmentsEnd::GetClassData() const { + return SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +SharingLog_ProcessReceivedAttachmentsEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ProcessReceivedAttachmentsEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_)}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ProcessReceivedAttachmentsEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&session_id_)) + sizeof(status_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.status_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ProcessReceivedAttachmentsEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ProcessReceivedAttachmentsEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ProcessReceivedAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_status(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) return target; } -size_t SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_ProcessReceivedAttachmentsEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ProcessReceivedAttachmentsEnd::ByteSizeLong() const { + const SharingLog_ProcessReceivedAttachmentsEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional int64 session_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ProcessReceivedAttachmentsEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ProcessReceivedAttachmentsEnd::MergeFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000002u) { - status_ = from.status_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ProcessReceivedAttachmentsEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.status_ = from._impl_.status_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ProcessReceivedAttachmentsEnd::CopyFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ProcessReceivedAttachmentsEnd::IsInitialized() const { - return true; -} -void SharingLog_ProcessReceivedAttachmentsEnd::InternalSwap(SharingLog_ProcessReceivedAttachmentsEnd* other) { - using std::swap; +void SharingLog_ProcessReceivedAttachmentsEnd::InternalSwap(SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, status_) - + sizeof(SharingLog_ProcessReceivedAttachmentsEnd::status_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, session_id_)>( - reinterpret_cast(&session_id_), - reinterpret_cast(&other->session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.status_) + + sizeof(SharingLog_ProcessReceivedAttachmentsEnd::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ProcessReceivedAttachmentsEnd, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); } -std::string SharingLog_ProcessReceivedAttachmentsEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd"; -} - - // =================================================================== class SharingLog_OpenReceivedAttachments::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_OpenReceivedAttachments* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_OpenReceivedAttachments::_Internal::attachments_info(const SharingLog_OpenReceivedAttachments* msg) { - return *msg->attachments_info_; -} -SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_OpenReceivedAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) } -SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments(const SharingLog_OpenReceivedAttachments& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - session_id_ = from.session_id_; +PROTOBUF_NDEBUG_INLINE SharingLog_OpenReceivedAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_OpenReceivedAttachments::SharingLog_OpenReceivedAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_OpenReceivedAttachments& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_OpenReceivedAttachments_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_OpenReceivedAttachments* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.session_id_ = from._impl_.session_id_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) } +PROTOBUF_NDEBUG_INLINE SharingLog_OpenReceivedAttachments::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_OpenReceivedAttachments::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&session_id_) - - reinterpret_cast(&attachments_info_)) + sizeof(session_id_)); +inline void SharingLog_OpenReceivedAttachments::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, session_id_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::session_id_)); } - SharingLog_OpenReceivedAttachments::~SharingLog_OpenReceivedAttachments() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_OpenReceivedAttachments::SharedDtor(MessageLite& self) { + SharingLog_OpenReceivedAttachments& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_OpenReceivedAttachments::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; +inline void* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_OpenReceivedAttachments(arena); +} +constexpr auto SharingLog_OpenReceivedAttachments::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_OpenReceivedAttachments), + alignof(SharingLog_OpenReceivedAttachments)); +} +constexpr auto SharingLog_OpenReceivedAttachments::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_OpenReceivedAttachments_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_OpenReceivedAttachments::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_OpenReceivedAttachments::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_OpenReceivedAttachments::ByteSizeLong, + &SharingLog_OpenReceivedAttachments::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments", + }; } -void SharingLog_OpenReceivedAttachments::ArenaDtor(void* object) { - SharingLog_OpenReceivedAttachments* _this = reinterpret_cast< SharingLog_OpenReceivedAttachments* >(object); - (void)_this; -} -void SharingLog_OpenReceivedAttachments::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_OpenReceivedAttachments::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_OpenReceivedAttachments_class_data_ = + SharingLog_OpenReceivedAttachments::InternalGenerateClassData_(); -void SharingLog_OpenReceivedAttachments::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_OpenReceivedAttachments::GetClassData() const { + return SharingLog_OpenReceivedAttachments_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +SharingLog_OpenReceivedAttachments::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_._has_bits_), + 0, // no _extensions_ + 4, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967283, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_OpenReceivedAttachments_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 session_id = 4; + {::_pbi::TcParser::FastV64S1, + {32, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.session_id_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 session_id = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_OpenReceivedAttachments::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - session_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.session_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_OpenReceivedAttachments::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_OpenReceivedAttachments::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_OpenReceivedAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_OpenReceivedAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional int64 session_id = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_session_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) return target; } -size_t SharingLog_OpenReceivedAttachments::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_OpenReceivedAttachments::ByteSizeLong(const MessageLite& base) { + const SharingLog_OpenReceivedAttachments& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_OpenReceivedAttachments::ByteSizeLong() const { + const SharingLog_OpenReceivedAttachments& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional int64 session_id = 4; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_OpenReceivedAttachments::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_OpenReceivedAttachments::MergeFrom(const SharingLog_OpenReceivedAttachments& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_OpenReceivedAttachments::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_OpenReceivedAttachments::CopyFrom(const SharingLog_OpenReceivedAttachments& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_OpenReceivedAttachments::IsInitialized() const { - return true; -} -void SharingLog_OpenReceivedAttachments::InternalSwap(SharingLog_OpenReceivedAttachments* other) { - using std::swap; +void SharingLog_OpenReceivedAttachments::InternalSwap(SharingLog_OpenReceivedAttachments* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, session_id_) - + sizeof(SharingLog_OpenReceivedAttachments::session_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.session_id_) + + sizeof(SharingLog_OpenReceivedAttachments::_impl_.session_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_OpenReceivedAttachments, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_OpenReceivedAttachments::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments"; -} - - // =================================================================== class SharingLog_LaunchSetupActivity::_Internal { public: }; -SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchSetupActivity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) } -SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity(const SharingLog_LaunchSetupActivity& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) +SharingLog_LaunchSetupActivity::SharingLog_LaunchSetupActivity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchSetupActivity& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchSetupActivity_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_LaunchSetupActivity::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_LaunchSetupActivity::SharedCtor() { +inline void SharingLog_LaunchSetupActivity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_LaunchSetupActivity::~SharingLog_LaunchSetupActivity() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_LaunchSetupActivity::SharedDtor(MessageLite& self) { + SharingLog_LaunchSetupActivity& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_LaunchSetupActivity::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_LaunchSetupActivity::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_LaunchSetupActivity(arena); +} +constexpr auto SharingLog_LaunchSetupActivity::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchSetupActivity), + alignof(SharingLog_LaunchSetupActivity)); +} +constexpr auto SharingLog_LaunchSetupActivity::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_LaunchSetupActivity_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_LaunchSetupActivity::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_LaunchSetupActivity::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_LaunchSetupActivity::ByteSizeLong, + &SharingLog_LaunchSetupActivity::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchSetupActivity, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity", + }; } -void SharingLog_LaunchSetupActivity::ArenaDtor(void* object) { - SharingLog_LaunchSetupActivity* _this = reinterpret_cast< SharingLog_LaunchSetupActivity* >(object); - (void)_this; -} -void SharingLog_LaunchSetupActivity::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_LaunchSetupActivity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_LaunchSetupActivity_class_data_ = + SharingLog_LaunchSetupActivity::InternalGenerateClassData_(); -void SharingLog_LaunchSetupActivity::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_LaunchSetupActivity::GetClassData() const { + return SharingLog_LaunchSetupActivity_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_LaunchSetupActivity::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_LaunchSetupActivity_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_LaunchSetupActivity::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_LaunchSetupActivity::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_LaunchSetupActivity::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchSetupActivity::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_LaunchSetupActivity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchSetupActivity::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_LaunchSetupActivity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) return target; } -size_t SharingLog_LaunchSetupActivity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_LaunchSetupActivity::ByteSizeLong(const MessageLite& base) { + const SharingLog_LaunchSetupActivity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_LaunchSetupActivity::ByteSizeLong() const { + const SharingLog_LaunchSetupActivity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_LaunchSetupActivity::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_LaunchSetupActivity::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_LaunchSetupActivity::MergeFrom(const SharingLog_LaunchSetupActivity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_LaunchSetupActivity::CopyFrom(const SharingLog_LaunchSetupActivity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_LaunchSetupActivity::IsInitialized() const { - return true; -} -void SharingLog_LaunchSetupActivity::InternalSwap(SharingLog_LaunchSetupActivity* other) { - using std::swap; +void SharingLog_LaunchSetupActivity::InternalSwap(SharingLog_LaunchSetupActivity* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_LaunchSetupActivity::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity"; -} - - // =================================================================== class SharingLog_AddContact::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_was_phone_added(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_was_email_added(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._has_bits_); }; -SharingLog_AddContact::SharingLog_AddContact(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AddContact::SharingLog_AddContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AddContact_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AddContact) } -SharingLog_AddContact::SharingLog_AddContact(const SharingLog_AddContact& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&was_phone_added_, &from.was_phone_added_, - static_cast(reinterpret_cast(&was_email_added_) - - reinterpret_cast(&was_phone_added_)) + sizeof(was_email_added_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AddContact) +SharingLog_AddContact::SharingLog_AddContact( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddContact& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AddContact_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AddContact::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AddContact::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&was_phone_added_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&was_email_added_) - - reinterpret_cast(&was_phone_added_)) + sizeof(was_email_added_)); +inline void SharingLog_AddContact::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, was_phone_added_), + 0, + offsetof(Impl_, was_email_added_) - + offsetof(Impl_, was_phone_added_) + + sizeof(Impl_::was_email_added_)); } - SharingLog_AddContact::~SharingLog_AddContact() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AddContact) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AddContact::SharedDtor(MessageLite& self) { + SharingLog_AddContact& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AddContact::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AddContact::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AddContact(arena); +} +constexpr auto SharingLog_AddContact::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AddContact), + alignof(SharingLog_AddContact)); +} +constexpr auto SharingLog_AddContact::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<53>{ + { + &_SharingLog_AddContact_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AddContact::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AddContact::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AddContact::ByteSizeLong, + &SharingLog_AddContact::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AddContact", + }; } -void SharingLog_AddContact::ArenaDtor(void* object) { - SharingLog_AddContact* _this = reinterpret_cast< SharingLog_AddContact* >(object); - (void)_this; -} -void SharingLog_AddContact::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AddContact::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<53> SharingLog_AddContact_class_data_ = + SharingLog_AddContact::InternalGenerateClassData_(); -void SharingLog_AddContact::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AddContact::GetClassData() const { + return SharingLog_AddContact_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SharingLog_AddContact::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AddContact_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddContact>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool was_email_added = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_email_added_)}}, + // optional bool was_phone_added = 1; + {::_pbi::TcParser::FastV8S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool was_phone_added = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool was_email_added = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_email_added_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AddContact::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AddContact) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&was_phone_added_, 0, static_cast( - reinterpret_cast(&was_email_added_) - - reinterpret_cast(&was_phone_added_)) + sizeof(was_email_added_)); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(&_impl_.was_phone_added_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.was_email_added_) - + reinterpret_cast(&_impl_.was_phone_added_)) + sizeof(_impl_.was_email_added_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AddContact::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool was_phone_added = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_was_phone_added(&has_bits); - was_phone_added_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool was_email_added = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_was_email_added(&has_bits); - was_email_added_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AddContact::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AddContact::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AddContact& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AddContact::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AddContact& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AddContact) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool was_phone_added = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_was_phone_added(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_was_phone_added(), target); } // optional bool was_email_added = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_was_email_added(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_was_email_added(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AddContact) return target; } -size_t SharingLog_AddContact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddContact) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AddContact::ByteSizeLong(const MessageLite& base) { + const SharingLog_AddContact& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AddContact::ByteSizeLong() const { + const SharingLog_AddContact& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddContact) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bool was_phone_added = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } - - // optional bool was_email_added = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 2; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AddContact::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AddContact::MergeFrom(const SharingLog_AddContact& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - was_phone_added_ = from.was_phone_added_; - } - if (cached_has_bits & 0x00000002u) { - was_email_added_ = from.was_email_added_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_AddContact::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.was_phone_added_ = from._impl_.was_phone_added_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.was_email_added_ = from._impl_.was_email_added_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AddContact::CopyFrom(const SharingLog_AddContact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddContact) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AddContact::IsInitialized() const { - return true; -} -void SharingLog_AddContact::InternalSwap(SharingLog_AddContact* other) { - using std::swap; +void SharingLog_AddContact::InternalSwap(SharingLog_AddContact* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, was_email_added_) - + sizeof(SharingLog_AddContact::was_email_added_) - - PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, was_phone_added_)>( - reinterpret_cast(&was_phone_added_), - reinterpret_cast(&other->was_phone_added_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_email_added_) + + sizeof(SharingLog_AddContact::_impl_.was_email_added_) + - PROTOBUF_FIELD_OFFSET(SharingLog_AddContact, _impl_.was_phone_added_)>( + reinterpret_cast(&_impl_.was_phone_added_), + reinterpret_cast(&other->_impl_.was_phone_added_)); } -std::string SharingLog_AddContact::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AddContact"; -} - - // =================================================================== class SharingLog_RemoveContact::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_was_phone_removed(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_was_email_removed(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._has_bits_); }; -SharingLog_RemoveContact::SharingLog_RemoveContact(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_RemoveContact::SharingLog_RemoveContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RemoveContact_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveContact) } -SharingLog_RemoveContact::SharingLog_RemoveContact(const SharingLog_RemoveContact& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&was_phone_removed_, &from.was_phone_removed_, - static_cast(reinterpret_cast(&was_email_removed_) - - reinterpret_cast(&was_phone_removed_)) + sizeof(was_email_removed_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveContact) +SharingLog_RemoveContact::SharingLog_RemoveContact( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveContact& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RemoveContact_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_RemoveContact::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_RemoveContact::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&was_phone_removed_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&was_email_removed_) - - reinterpret_cast(&was_phone_removed_)) + sizeof(was_email_removed_)); +inline void SharingLog_RemoveContact::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, was_phone_removed_), + 0, + offsetof(Impl_, was_email_removed_) - + offsetof(Impl_, was_phone_removed_) + + sizeof(Impl_::was_email_removed_)); } - SharingLog_RemoveContact::~SharingLog_RemoveContact() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RemoveContact) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_RemoveContact::SharedDtor(MessageLite& self) { + SharingLog_RemoveContact& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_RemoveContact::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_RemoveContact::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_RemoveContact(arena); +} +constexpr auto SharingLog_RemoveContact::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RemoveContact), + alignof(SharingLog_RemoveContact)); +} +constexpr auto SharingLog_RemoveContact::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_RemoveContact_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_RemoveContact::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_RemoveContact::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_RemoveContact::ByteSizeLong, + &SharingLog_RemoveContact::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.RemoveContact", + }; } -void SharingLog_RemoveContact::ArenaDtor(void* object) { - SharingLog_RemoveContact* _this = reinterpret_cast< SharingLog_RemoveContact* >(object); - (void)_this; -} -void SharingLog_RemoveContact::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_RemoveContact::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RemoveContact_class_data_ = + SharingLog_RemoveContact::InternalGenerateClassData_(); -void SharingLog_RemoveContact::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_RemoveContact::GetClassData() const { + return SharingLog_RemoveContact_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SharingLog_RemoveContact::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_RemoveContact_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool was_email_removed = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_email_removed_)}}, + // optional bool was_phone_removed = 1; + {::_pbi::TcParser::FastV8S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bool was_phone_removed = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool was_email_removed = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_email_removed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_RemoveContact::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&was_phone_removed_, 0, static_cast( - reinterpret_cast(&was_email_removed_) - - reinterpret_cast(&was_phone_removed_)) + sizeof(was_email_removed_)); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(&_impl_.was_phone_removed_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.was_email_removed_) - + reinterpret_cast(&_impl_.was_phone_removed_)) + sizeof(_impl_.was_email_removed_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_RemoveContact::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool was_phone_removed = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_was_phone_removed(&has_bits); - was_phone_removed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool was_email_removed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_was_email_removed(&has_bits); - was_email_removed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_RemoveContact::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveContact::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_RemoveContact& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveContact::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_RemoveContact& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool was_phone_removed = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_was_phone_removed(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_was_phone_removed(), target); } // optional bool was_email_removed = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_was_email_removed(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_was_email_removed(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.RemoveContact) return target; } -size_t SharingLog_RemoveContact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_RemoveContact::ByteSizeLong(const MessageLite& base) { + const SharingLog_RemoveContact& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_RemoveContact::ByteSizeLong() const { + const SharingLog_RemoveContact& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bool was_phone_removed = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } - - // optional bool was_email_removed = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 2; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_RemoveContact::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_RemoveContact::MergeFrom(const SharingLog_RemoveContact& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - was_phone_removed_ = from.was_phone_removed_; - } - if (cached_has_bits & 0x00000002u) { - was_email_removed_ = from.was_email_removed_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_RemoveContact::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.was_phone_removed_ = from._impl_.was_phone_removed_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.was_email_removed_ = from._impl_.was_email_removed_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_RemoveContact::CopyFrom(const SharingLog_RemoveContact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveContact) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_RemoveContact::IsInitialized() const { - return true; -} -void SharingLog_RemoveContact::InternalSwap(SharingLog_RemoveContact* other) { - using std::swap; +void SharingLog_RemoveContact::InternalSwap(SharingLog_RemoveContact* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, was_email_removed_) - + sizeof(SharingLog_RemoveContact::was_email_removed_) - - PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, was_phone_removed_)>( - reinterpret_cast(&was_phone_removed_), - reinterpret_cast(&other->was_phone_removed_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_email_removed_) + + sizeof(SharingLog_RemoveContact::_impl_.was_email_removed_) + - PROTOBUF_FIELD_OFFSET(SharingLog_RemoveContact, _impl_.was_phone_removed_)>( + reinterpret_cast(&_impl_.was_phone_removed_), + reinterpret_cast(&other->_impl_.was_phone_removed_)); } -std::string SharingLog_RemoveContact::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.RemoveContact"; -} - - // =================================================================== class SharingLog_FastShareServerResponse::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_purpose(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_requester(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._has_bits_); }; -SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FastShareServerResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) } -SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse(const SharingLog_FastShareServerResponse& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&status_)) + sizeof(device_type_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) +SharingLog_FastShareServerResponse::SharingLog_FastShareServerResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastShareServerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FastShareServerResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_FastShareServerResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_FastShareServerResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&status_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&status_)) + sizeof(device_type_)); +inline void SharingLog_FastShareServerResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, status_), + 0, + offsetof(Impl_, device_type_) - + offsetof(Impl_, status_) + + sizeof(Impl_::device_type_)); } - SharingLog_FastShareServerResponse::~SharingLog_FastShareServerResponse() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_FastShareServerResponse::SharedDtor(MessageLite& self) { + SharingLog_FastShareServerResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_FastShareServerResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_FastShareServerResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_FastShareServerResponse(arena); +} +constexpr auto SharingLog_FastShareServerResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FastShareServerResponse), + alignof(SharingLog_FastShareServerResponse)); +} +constexpr auto SharingLog_FastShareServerResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_FastShareServerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_FastShareServerResponse::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_FastShareServerResponse::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_FastShareServerResponse::ByteSizeLong, + &SharingLog_FastShareServerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse", + }; } -void SharingLog_FastShareServerResponse::ArenaDtor(void* object) { - SharingLog_FastShareServerResponse* _this = reinterpret_cast< SharingLog_FastShareServerResponse* >(object); - (void)_this; -} -void SharingLog_FastShareServerResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_FastShareServerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_FastShareServerResponse_class_data_ = + SharingLog_FastShareServerResponse::InternalGenerateClassData_(); -void SharingLog_FastShareServerResponse::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_FastShareServerResponse::GetClassData() const { + return SharingLog_FastShareServerResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 5, 0, 2> +SharingLog_FastShareServerResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_FastShareServerResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.ServerResponseState status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 10, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_)}}, + // optional .location.nearby.proto.sharing.ServerActionName name = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.name_)}}, + // optional int64 latency_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.latency_millis_)}}, + // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 3, 19, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.purpose_)}}, + // optional .location.nearby.proto.sharing.ClientRole requester = 5; + {::_pbi::TcParser::FastEr0S1, + {40, 4, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.requester_)}}, + // optional .location.nearby.proto.sharing.DeviceType device_type = 6; + {::_pbi::TcParser::FastEr0S1, + {48, 5, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.device_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ServerResponseState status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.ServerActionName name = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.name_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 latency_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.purpose_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.ClientRole requester = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.requester_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DeviceType device_type = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.device_type_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 10}, + {0, 12}, + {0, 19}, + {0, 2}, + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_FastShareServerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - ::memset(&status_, 0, static_cast( - reinterpret_cast(&device_type_) - - reinterpret_cast(&status_)) + sizeof(device_type_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.device_type_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.device_type_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_FastShareServerResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ServerResponseState status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ServerResponseState_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::ServerResponseState>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ServerActionName name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ServerActionName_IsValid(val))) { - _internal_set_name(static_cast<::location::nearby::proto::sharing::ServerActionName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 latency_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_latency_millis(&has_bits); - latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::SyncPurpose_IsValid(val))) { - _internal_set_purpose(static_cast<::location::nearby::proto::sharing::SyncPurpose>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ClientRole requester = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ClientRole_IsValid(val))) { - _internal_set_requester(static_cast<::location::nearby::proto::sharing::ClientRole>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DeviceType device_type = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::sharing::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_FastShareServerResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_FastShareServerResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_FastShareServerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_FastShareServerResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_FastShareServerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ServerResponseState status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); } // optional .location.nearby.proto.sharing.ServerActionName name = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_name(), target); } // optional int64 latency_millis = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_latency_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_latency_millis(), target); } // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_purpose(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_purpose(), target); } // optional .location.nearby.proto.sharing.ClientRole requester = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_requester(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_requester(), target); } // optional .location.nearby.proto.sharing.DeviceType device_type = 6; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_device_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) return target; } -size_t SharingLog_FastShareServerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_FastShareServerResponse::ByteSizeLong(const MessageLite& base) { + const SharingLog_FastShareServerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_FastShareServerResponse::ByteSizeLong() const { + const SharingLog_FastShareServerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { // optional .location.nearby.proto.sharing.ServerResponseState status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - // optional .location.nearby.proto.sharing.ServerActionName name = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_name()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_name()); } - // optional int64 latency_millis = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_millis()); } - // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_purpose()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_purpose()); } - // optional .location.nearby.proto.sharing.ClientRole requester = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_requester()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_requester()); } - // optional .location.nearby.proto.sharing.DeviceType device_type = 6; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_FastShareServerResponse::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_FastShareServerResponse::MergeFrom(const SharingLog_FastShareServerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000002u) { - name_ = from.name_; - } - if (cached_has_bits & 0x00000004u) { - latency_millis_ = from.latency_millis_; - } - if (cached_has_bits & 0x00000008u) { - purpose_ = from.purpose_; - } - if (cached_has_bits & 0x00000010u) { - requester_ = from.requester_; - } - if (cached_has_bits & 0x00000020u) { - device_type_ = from.device_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_FastShareServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.status_ = from._impl_.status_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.name_ = from._impl_.name_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.latency_millis_ = from._impl_.latency_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.purpose_ = from._impl_.purpose_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.requester_ = from._impl_.requester_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_FastShareServerResponse::CopyFrom(const SharingLog_FastShareServerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_FastShareServerResponse::IsInitialized() const { - return true; -} -void SharingLog_FastShareServerResponse::InternalSwap(SharingLog_FastShareServerResponse* other) { - using std::swap; +void SharingLog_FastShareServerResponse::InternalSwap(SharingLog_FastShareServerResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, device_type_) - + sizeof(SharingLog_FastShareServerResponse::device_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, status_)>( - reinterpret_cast(&status_), - reinterpret_cast(&other->status_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.device_type_) + + sizeof(SharingLog_FastShareServerResponse::_impl_.device_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_FastShareServerResponse, _impl_.status_)>( + reinterpret_cast(&_impl_.status_), + reinterpret_cast(&other->_impl_.status_)); } -std::string SharingLog_FastShareServerResponse::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse"; -} - - // =================================================================== class SharingLog_SendStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_transfer_position(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_concurrent_connections(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_SendStart* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_SendStart::_Internal::share_target_info(const SharingLog_SendStart* msg) { - return *msg->share_target_info_; -} -SharingLog_SendStart::SharingLog_SendStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendStart::SharingLog_SendStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendStart) } -SharingLog_SendStart::SharingLog_SendStart(const SharingLog_SendStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); +PROTOBUF_NDEBUG_INLINE SharingLog_SendStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_SendStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_SendStart::SharingLog_SendStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_SendStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_SendStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, concurrent_connections_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::concurrent_connections_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_SendStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendStart::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&share_target_info_)) + sizeof(concurrent_connections_)); +inline void SharingLog_SendStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, concurrent_connections_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::concurrent_connections_)); } - SharingLog_SendStart::~SharingLog_SendStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendStart::SharedDtor(MessageLite& self) { + SharingLog_SendStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_SendStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_SendStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendStart(arena); +} +constexpr auto SharingLog_SendStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendStart), + alignof(SharingLog_SendStart)); +} +constexpr auto SharingLog_SendStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<52>{ + { + &_SharingLog_SendStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendStart::ByteSizeLong, + &SharingLog_SendStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendStart", + }; } -void SharingLog_SendStart::ArenaDtor(void* object) { - SharingLog_SendStart* _this = reinterpret_cast< SharingLog_SendStart* >(object); - (void)_this; -} -void SharingLog_SendStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<52> SharingLog_SendStart_class_data_ = + SharingLog_SendStart::InternalGenerateClassData_(); -void SharingLog_SendStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendStart::GetClassData() const { + return SharingLog_SendStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SharingLog_SendStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; + {::_pbi::TcParser::FastMtS1, + {34, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_)}}, + // optional int64 session_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.session_id_)}}, + // optional int32 transfer_position = 2; + {::_pbi::TcParser::FastV32S1, + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.transfer_position_)}}, + // optional int32 concurrent_connections = 3; + {::_pbi::TcParser::FastV32S1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.concurrent_connections_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 session_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int32 transfer_position = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.transfer_position_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 concurrent_connections = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.concurrent_connections_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } - if (cached_has_bits & 0x0000000eu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&concurrent_connections_) - - reinterpret_cast(&session_id_)) + sizeof(concurrent_connections_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.concurrent_connections_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.concurrent_connections_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 session_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 transfer_position = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_transfer_position(&has_bits); - transfer_position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 concurrent_connections = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_concurrent_connections(&has_bits); - concurrent_connections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 session_id = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_session_id(), target); } // optional int32 transfer_position = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_transfer_position(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_transfer_position(), target); } // optional int32 concurrent_connections = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_concurrent_connections(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_concurrent_connections(), target); } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendStart) return target; } -size_t SharingLog_SendStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendStart::ByteSizeLong() const { + const SharingLog_SendStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int32 transfer_position = 2; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_transfer_position()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_transfer_position()); } - // optional int32 concurrent_connections = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_concurrent_connections()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_concurrent_connections()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendStart::MergeFrom(const SharingLog_SendStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000004u) { - transfer_position_ = from.transfer_position_; - } - if (cached_has_bits & 0x00000008u) { - concurrent_connections_ = from.concurrent_connections_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SendStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.transfer_position_ = from._impl_.transfer_position_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.concurrent_connections_ = from._impl_.concurrent_connections_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendStart::CopyFrom(const SharingLog_SendStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendStart::IsInitialized() const { - return true; -} -void SharingLog_SendStart::InternalSwap(SharingLog_SendStart* other) { - using std::swap; +void SharingLog_SendStart::InternalSwap(SharingLog_SendStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, concurrent_connections_) - + sizeof(SharingLog_SendStart::concurrent_connections_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.concurrent_connections_) + + sizeof(SharingLog_SendStart::_impl_.concurrent_connections_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SendStart, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_SendStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendStart"; -} - - // =================================================================== class SharingLog_AcceptFastInitialization::_Internal { public: }; -SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AcceptFastInitialization_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) } -SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization(const SharingLog_AcceptFastInitialization& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) +SharingLog_AcceptFastInitialization::SharingLog_AcceptFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptFastInitialization& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AcceptFastInitialization_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AcceptFastInitialization::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AcceptFastInitialization::SharedCtor() { +inline void SharingLog_AcceptFastInitialization::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AcceptFastInitialization::~SharingLog_AcceptFastInitialization() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AcceptFastInitialization::SharedDtor(MessageLite& self) { + SharingLog_AcceptFastInitialization& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AcceptFastInitialization::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AcceptFastInitialization::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AcceptFastInitialization(arena); +} +constexpr auto SharingLog_AcceptFastInitialization::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AcceptFastInitialization), + alignof(SharingLog_AcceptFastInitialization)); +} +constexpr auto SharingLog_AcceptFastInitialization::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<67>{ + { + &_SharingLog_AcceptFastInitialization_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AcceptFastInitialization::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AcceptFastInitialization::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AcceptFastInitialization::ByteSizeLong, + &SharingLog_AcceptFastInitialization::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AcceptFastInitialization, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization", + }; } -void SharingLog_AcceptFastInitialization::ArenaDtor(void* object) { - SharingLog_AcceptFastInitialization* _this = reinterpret_cast< SharingLog_AcceptFastInitialization* >(object); - (void)_this; -} -void SharingLog_AcceptFastInitialization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AcceptFastInitialization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<67> SharingLog_AcceptFastInitialization_class_data_ = + SharingLog_AcceptFastInitialization::InternalGenerateClassData_(); -void SharingLog_AcceptFastInitialization::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AcceptFastInitialization::GetClassData() const { + return SharingLog_AcceptFastInitialization_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_AcceptFastInitialization::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AcceptFastInitialization_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AcceptFastInitialization::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AcceptFastInitialization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AcceptFastInitialization::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptFastInitialization::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AcceptFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AcceptFastInitialization::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AcceptFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) return target; } -size_t SharingLog_AcceptFastInitialization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AcceptFastInitialization::ByteSizeLong(const MessageLite& base) { + const SharingLog_AcceptFastInitialization& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AcceptFastInitialization::ByteSizeLong() const { + const SharingLog_AcceptFastInitialization& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AcceptFastInitialization::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_AcceptFastInitialization::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_AcceptFastInitialization::MergeFrom(const SharingLog_AcceptFastInitialization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AcceptFastInitialization::CopyFrom(const SharingLog_AcceptFastInitialization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AcceptFastInitialization::IsInitialized() const { - return true; -} -void SharingLog_AcceptFastInitialization::InternalSwap(SharingLog_AcceptFastInitialization* other) { - using std::swap; +void SharingLog_AcceptFastInitialization::InternalSwap(SharingLog_AcceptFastInitialization* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_AcceptFastInitialization::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization"; -} - - // =================================================================== class SharingLog_LaunchActivity::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_activity_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_referrer_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_previous_transfer_in_progress(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_has_opted_in(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_source_activity_name(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_is_finishing(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._has_bits_); }; -SharingLog_LaunchActivity::SharingLog_LaunchActivity(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_LaunchActivity::SharingLog_LaunchActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchActivity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) } -SharingLog_LaunchActivity::SharingLog_LaunchActivity(const SharingLog_LaunchActivity& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_referrer_name()) { - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_referrer_name(), - GetArenaForAllocation()); - } - ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&duration_millis_)) + sizeof(source_activity_name_)); +PROTOBUF_NDEBUG_INLINE SharingLog_LaunchActivity::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + referrer_name_(arena, from.referrer_name_) {} + +SharingLog_LaunchActivity::SharingLog_LaunchActivity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_LaunchActivity& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchActivity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_LaunchActivity* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, duration_millis_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, duration_millis_), + offsetof(Impl_, source_activity_name_) - + offsetof(Impl_, duration_millis_) + + sizeof(Impl_::source_activity_name_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) } +PROTOBUF_NDEBUG_INLINE SharingLog_LaunchActivity::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + referrer_name_(arena) {} -inline void SharingLog_LaunchActivity::SharedCtor() { -referrer_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&duration_millis_)) + sizeof(source_activity_name_)); +inline void SharingLog_LaunchActivity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, duration_millis_), + 0, + offsetof(Impl_, source_activity_name_) - + offsetof(Impl_, duration_millis_) + + sizeof(Impl_::source_activity_name_)); } - SharingLog_LaunchActivity::~SharingLog_LaunchActivity() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_LaunchActivity::SharedDtor(MessageLite& self) { + SharingLog_LaunchActivity& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.referrer_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_LaunchActivity::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - referrer_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_LaunchActivity::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_LaunchActivity(arena); +} +constexpr auto SharingLog_LaunchActivity::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_LaunchActivity), + alignof(SharingLog_LaunchActivity)); +} +constexpr auto SharingLog_LaunchActivity::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_LaunchActivity_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_LaunchActivity::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_LaunchActivity::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_LaunchActivity::ByteSizeLong, + &SharingLog_LaunchActivity::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.LaunchActivity", + }; } -void SharingLog_LaunchActivity::ArenaDtor(void* object) { - SharingLog_LaunchActivity* _this = reinterpret_cast< SharingLog_LaunchActivity* >(object); - (void)_this; -} -void SharingLog_LaunchActivity::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_LaunchActivity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_LaunchActivity_class_data_ = + SharingLog_LaunchActivity::InternalGenerateClassData_(); -void SharingLog_LaunchActivity::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_LaunchActivity::GetClassData() const { + return SharingLog_LaunchActivity_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 2, 0, 2> +SharingLog_LaunchActivity::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_LaunchActivity_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 2, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.activity_name_)}}, + // optional int64 duration_millis = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_)}}, + // optional string referrer_name = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.referrer_name_)}}, + // optional bool previous_transfer_in_progress = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.previous_transfer_in_progress_)}}, + // optional bool has_opted_in = 5; + {::_pbi::TcParser::FastV8S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.has_opted_in_)}}, + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; + {::_pbi::TcParser::FastEr0S1, + {48, 6, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_)}}, + // optional bool is_finishing = 7; + {::_pbi::TcParser::FastV8S1, + {56, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.is_finishing_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.activity_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 duration_millis = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string referrer_name = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.referrer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool previous_transfer_in_progress = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.previous_transfer_in_progress_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool has_opted_in = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.has_opted_in_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool is_finishing = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.is_finishing_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 12}, + {0, 12}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_LaunchActivity::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - referrer_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.referrer_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000007eu) { - ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&source_activity_name_) - - reinterpret_cast(&duration_millis_)) + sizeof(source_activity_name_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000007eU)) { + ::memset(&_impl_.duration_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.source_activity_name_) - + reinterpret_cast(&_impl_.duration_millis_)) + sizeof(_impl_.source_activity_name_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_LaunchActivity::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ActivityName_IsValid(val))) { - _internal_set_activity_name(static_cast<::location::nearby::proto::sharing::ActivityName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string referrer_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_referrer_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool previous_transfer_in_progress = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_previous_transfer_in_progress(&has_bits); - previous_transfer_in_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool has_opted_in = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_has_opted_in(&has_bits); - has_opted_in_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ActivityName_IsValid(val))) { - _internal_set_source_activity_name(static_cast<::location::nearby::proto::sharing::ActivityName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool is_finishing = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_is_finishing(&has_bits); - is_finishing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_LaunchActivity::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchActivity::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_LaunchActivity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchActivity::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_LaunchActivity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_activity_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_activity_name(), target); } // optional int64 duration_millis = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_duration_millis(), target); } // optional string referrer_name = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_referrer_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_referrer_name(); + target = stream->WriteStringMaybeAliased(3, _s, target); } // optional bool previous_transfer_in_progress = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_previous_transfer_in_progress(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_previous_transfer_in_progress(), target); } // optional bool has_opted_in = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_has_opted_in(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_has_opted_in(), target); } // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_source_activity_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_source_activity_name(), target); } // optional bool is_finishing = 7; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_finishing(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_is_finishing(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) return target; } -size_t SharingLog_LaunchActivity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_LaunchActivity::ByteSizeLong(const MessageLite& base) { + const SharingLog_LaunchActivity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_LaunchActivity::ByteSizeLong() const { + const SharingLog_LaunchActivity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000038U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x00000047U)) { // optional string referrer_name = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_referrer_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_referrer_name()); } - // optional int64 duration_millis = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_activity_name()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name()); } - - // optional bool previous_transfer_in_progress = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional bool has_opted_in = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 1; - } - - // optional bool is_finishing = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_activity_name()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_activity_name()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_LaunchActivity::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_LaunchActivity::MergeFrom(const SharingLog_LaunchActivity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_referrer_name(from._internal_referrer_name()); - } - if (cached_has_bits & 0x00000002u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000004u) { - activity_name_ = from.activity_name_; - } - if (cached_has_bits & 0x00000008u) { - previous_transfer_in_progress_ = from.previous_transfer_in_progress_; - } - if (cached_has_bits & 0x00000010u) { - has_opted_in_ = from.has_opted_in_; - } - if (cached_has_bits & 0x00000020u) { - is_finishing_ = from.is_finishing_; - } - if (cached_has_bits & 0x00000040u) { - source_activity_name_ = from.source_activity_name_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_LaunchActivity::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_referrer_name(from._internal_referrer_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.activity_name_ = from._impl_.activity_name_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.previous_transfer_in_progress_ = from._impl_.previous_transfer_in_progress_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.has_opted_in_ = from._impl_.has_opted_in_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.is_finishing_ = from._impl_.is_finishing_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.source_activity_name_ = from._impl_.source_activity_name_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_LaunchActivity::CopyFrom(const SharingLog_LaunchActivity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_LaunchActivity::IsInitialized() const { - return true; -} -void SharingLog_LaunchActivity::InternalSwap(SharingLog_LaunchActivity* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_LaunchActivity::InternalSwap(SharingLog_LaunchActivity* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &referrer_name_, lhs_arena, - &other->referrer_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, source_activity_name_) - + sizeof(SharingLog_LaunchActivity::source_activity_name_) - - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, duration_millis_)>( - reinterpret_cast(&duration_millis_), - reinterpret_cast(&other->duration_millis_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_name_, &other->_impl_.referrer_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.source_activity_name_) + + sizeof(SharingLog_LaunchActivity::_impl_.source_activity_name_) + - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchActivity, _impl_.duration_millis_)>( + reinterpret_cast(&_impl_.duration_millis_), + reinterpret_cast(&other->_impl_.duration_millis_)); } -std::string SharingLog_LaunchActivity::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.LaunchActivity"; -} - - // =================================================================== class SharingLog_DismissPrivacyNotification::_Internal { public: }; -SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DismissPrivacyNotification_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) } -SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification(const SharingLog_DismissPrivacyNotification& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) +SharingLog_DismissPrivacyNotification::SharingLog_DismissPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissPrivacyNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DismissPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DismissPrivacyNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DismissPrivacyNotification::SharedCtor() { +inline void SharingLog_DismissPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DismissPrivacyNotification::~SharingLog_DismissPrivacyNotification() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DismissPrivacyNotification::SharedDtor(MessageLite& self) { + SharingLog_DismissPrivacyNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DismissPrivacyNotification::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DismissPrivacyNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DismissPrivacyNotification(arena); +} +constexpr auto SharingLog_DismissPrivacyNotification::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DismissPrivacyNotification), + alignof(SharingLog_DismissPrivacyNotification)); +} +constexpr auto SharingLog_DismissPrivacyNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<69>{ + { + &_SharingLog_DismissPrivacyNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DismissPrivacyNotification::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DismissPrivacyNotification::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DismissPrivacyNotification::ByteSizeLong, + &SharingLog_DismissPrivacyNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DismissPrivacyNotification, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification", + }; } -void SharingLog_DismissPrivacyNotification::ArenaDtor(void* object) { - SharingLog_DismissPrivacyNotification* _this = reinterpret_cast< SharingLog_DismissPrivacyNotification* >(object); - (void)_this; -} -void SharingLog_DismissPrivacyNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DismissPrivacyNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DismissPrivacyNotification_class_data_ = + SharingLog_DismissPrivacyNotification::InternalGenerateClassData_(); -void SharingLog_DismissPrivacyNotification::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DismissPrivacyNotification::GetClassData() const { + return SharingLog_DismissPrivacyNotification_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DismissPrivacyNotification::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DismissPrivacyNotification_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DismissPrivacyNotification::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DismissPrivacyNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DismissPrivacyNotification::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DismissPrivacyNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DismissPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DismissPrivacyNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DismissPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) return target; } -size_t SharingLog_DismissPrivacyNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DismissPrivacyNotification::ByteSizeLong(const MessageLite& base) { + const SharingLog_DismissPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DismissPrivacyNotification::ByteSizeLong() const { + const SharingLog_DismissPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DismissPrivacyNotification::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DismissPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DismissPrivacyNotification::MergeFrom(const SharingLog_DismissPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DismissPrivacyNotification::CopyFrom(const SharingLog_DismissPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DismissPrivacyNotification::IsInitialized() const { - return true; -} -void SharingLog_DismissPrivacyNotification::InternalSwap(SharingLog_DismissPrivacyNotification* other) { - using std::swap; +void SharingLog_DismissPrivacyNotification::InternalSwap(SharingLog_DismissPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DismissPrivacyNotification::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification"; -} - - // =================================================================== class SharingLog_TapPrivacyNotification::_Internal { public: }; -SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapPrivacyNotification_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) } -SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification(const SharingLog_TapPrivacyNotification& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) +SharingLog_TapPrivacyNotification::SharingLog_TapPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapPrivacyNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapPrivacyNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapPrivacyNotification::SharedCtor() { +inline void SharingLog_TapPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapPrivacyNotification::~SharingLog_TapPrivacyNotification() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapPrivacyNotification::SharedDtor(MessageLite& self) { + SharingLog_TapPrivacyNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapPrivacyNotification::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapPrivacyNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapPrivacyNotification(arena); +} +constexpr auto SharingLog_TapPrivacyNotification::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapPrivacyNotification), + alignof(SharingLog_TapPrivacyNotification)); +} +constexpr auto SharingLog_TapPrivacyNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_TapPrivacyNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapPrivacyNotification::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapPrivacyNotification::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapPrivacyNotification::ByteSizeLong, + &SharingLog_TapPrivacyNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapPrivacyNotification, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification", + }; } -void SharingLog_TapPrivacyNotification::ArenaDtor(void* object) { - SharingLog_TapPrivacyNotification* _this = reinterpret_cast< SharingLog_TapPrivacyNotification* >(object); - (void)_this; -} -void SharingLog_TapPrivacyNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapPrivacyNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_TapPrivacyNotification_class_data_ = + SharingLog_TapPrivacyNotification::InternalGenerateClassData_(); -void SharingLog_TapPrivacyNotification::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapPrivacyNotification::GetClassData() const { + return SharingLog_TapPrivacyNotification_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapPrivacyNotification::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapPrivacyNotification_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapPrivacyNotification::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapPrivacyNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapPrivacyNotification::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapPrivacyNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapPrivacyNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) return target; } -size_t SharingLog_TapPrivacyNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapPrivacyNotification::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapPrivacyNotification::ByteSizeLong() const { + const SharingLog_TapPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapPrivacyNotification::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapPrivacyNotification::MergeFrom(const SharingLog_TapPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapPrivacyNotification::CopyFrom(const SharingLog_TapPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapPrivacyNotification::IsInitialized() const { - return true; -} -void SharingLog_TapPrivacyNotification::InternalSwap(SharingLog_TapPrivacyNotification* other) { - using std::swap; +void SharingLog_TapPrivacyNotification::InternalSwap(SharingLog_TapPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapPrivacyNotification::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification"; -} - - // =================================================================== class SharingLog_TapHelp::_Internal { public: }; -SharingLog_TapHelp::SharingLog_TapHelp(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapHelp::SharingLog_TapHelp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapHelp_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapHelp) } -SharingLog_TapHelp::SharingLog_TapHelp(const SharingLog_TapHelp& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapHelp) +SharingLog_TapHelp::SharingLog_TapHelp( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapHelp& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapHelp_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapHelp::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapHelp::SharedCtor() { +inline void SharingLog_TapHelp::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapHelp::~SharingLog_TapHelp() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapHelp) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapHelp::SharedDtor(MessageLite& self) { + SharingLog_TapHelp& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapHelp::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapHelp::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapHelp(arena); +} +constexpr auto SharingLog_TapHelp::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapHelp), + alignof(SharingLog_TapHelp)); +} +constexpr auto SharingLog_TapHelp::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<50>{ + { + &_SharingLog_TapHelp_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapHelp::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapHelp::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapHelp::ByteSizeLong, + &SharingLog_TapHelp::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapHelp, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapHelp", + }; } -void SharingLog_TapHelp::ArenaDtor(void* object) { - SharingLog_TapHelp* _this = reinterpret_cast< SharingLog_TapHelp* >(object); - (void)_this; -} -void SharingLog_TapHelp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapHelp::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<50> SharingLog_TapHelp_class_data_ = + SharingLog_TapHelp::InternalGenerateClassData_(); -void SharingLog_TapHelp::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapHelp::GetClassData() const { + return SharingLog_TapHelp_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapHelp::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapHelp_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapHelp>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapHelp::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapHelp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapHelp::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapHelp::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapHelp& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapHelp::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapHelp& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapHelp) return target; } -size_t SharingLog_TapHelp::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapHelp::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapHelp& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapHelp::ByteSizeLong() const { + const SharingLog_TapHelp& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapHelp::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapHelp::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapHelp::MergeFrom(const SharingLog_TapHelp& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapHelp::CopyFrom(const SharingLog_TapHelp& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapHelp) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapHelp::IsInitialized() const { - return true; -} -void SharingLog_TapHelp::InternalSwap(SharingLog_TapHelp* other) { - using std::swap; +void SharingLog_TapHelp::InternalSwap(SharingLog_TapHelp* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapHelp::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapHelp"; -} - - // =================================================================== class SharingLog_TapFeedback::_Internal { public: }; -SharingLog_TapFeedback::SharingLog_TapFeedback(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapFeedback::SharingLog_TapFeedback(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapFeedback_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapFeedback) } -SharingLog_TapFeedback::SharingLog_TapFeedback(const SharingLog_TapFeedback& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapFeedback) +SharingLog_TapFeedback::SharingLog_TapFeedback( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapFeedback& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapFeedback_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapFeedback::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapFeedback::SharedCtor() { +inline void SharingLog_TapFeedback::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapFeedback::~SharingLog_TapFeedback() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapFeedback::SharedDtor(MessageLite& self) { + SharingLog_TapFeedback& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapFeedback::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapFeedback::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapFeedback(arena); +} +constexpr auto SharingLog_TapFeedback::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapFeedback), + alignof(SharingLog_TapFeedback)); +} +constexpr auto SharingLog_TapFeedback::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<54>{ + { + &_SharingLog_TapFeedback_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapFeedback::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapFeedback::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapFeedback::ByteSizeLong, + &SharingLog_TapFeedback::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapFeedback, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapFeedback", + }; } -void SharingLog_TapFeedback::ArenaDtor(void* object) { - SharingLog_TapFeedback* _this = reinterpret_cast< SharingLog_TapFeedback* >(object); - (void)_this; -} -void SharingLog_TapFeedback::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapFeedback::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<54> SharingLog_TapFeedback_class_data_ = + SharingLog_TapFeedback::InternalGenerateClassData_(); -void SharingLog_TapFeedback::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapFeedback::GetClassData() const { + return SharingLog_TapFeedback_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapFeedback::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapFeedback_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapFeedback::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapFeedback::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapFeedback::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapFeedback::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapFeedback& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapFeedback::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapFeedback& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapFeedback) return target; } -size_t SharingLog_TapFeedback::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapFeedback::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapFeedback& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapFeedback::ByteSizeLong() const { + const SharingLog_TapFeedback& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapFeedback::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapFeedback::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapFeedback::MergeFrom(const SharingLog_TapFeedback& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapFeedback::CopyFrom(const SharingLog_TapFeedback& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapFeedback) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapFeedback::IsInitialized() const { - return true; -} -void SharingLog_TapFeedback::InternalSwap(SharingLog_TapFeedback* other) { - using std::swap; +void SharingLog_TapFeedback::InternalSwap(SharingLog_TapFeedback* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapFeedback::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapFeedback"; -} - - // =================================================================== class SharingLog_AddQuickSettingsTile::_Internal { public: }; -SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AddQuickSettingsTile_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) } -SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile(const SharingLog_AddQuickSettingsTile& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) +SharingLog_AddQuickSettingsTile::SharingLog_AddQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddQuickSettingsTile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AddQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AddQuickSettingsTile::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AddQuickSettingsTile::SharedCtor() { +inline void SharingLog_AddQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AddQuickSettingsTile::~SharingLog_AddQuickSettingsTile() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AddQuickSettingsTile::SharedDtor(MessageLite& self) { + SharingLog_AddQuickSettingsTile& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AddQuickSettingsTile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AddQuickSettingsTile::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AddQuickSettingsTile(arena); +} +constexpr auto SharingLog_AddQuickSettingsTile::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AddQuickSettingsTile), + alignof(SharingLog_AddQuickSettingsTile)); +} +constexpr auto SharingLog_AddQuickSettingsTile::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<63>{ + { + &_SharingLog_AddQuickSettingsTile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AddQuickSettingsTile::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AddQuickSettingsTile::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AddQuickSettingsTile::ByteSizeLong, + &SharingLog_AddQuickSettingsTile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AddQuickSettingsTile, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile", + }; } -void SharingLog_AddQuickSettingsTile::ArenaDtor(void* object) { - SharingLog_AddQuickSettingsTile* _this = reinterpret_cast< SharingLog_AddQuickSettingsTile* >(object); - (void)_this; -} -void SharingLog_AddQuickSettingsTile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AddQuickSettingsTile::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> SharingLog_AddQuickSettingsTile_class_data_ = + SharingLog_AddQuickSettingsTile::InternalGenerateClassData_(); -void SharingLog_AddQuickSettingsTile::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AddQuickSettingsTile::GetClassData() const { + return SharingLog_AddQuickSettingsTile_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_AddQuickSettingsTile::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_AddQuickSettingsTile_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AddQuickSettingsTile::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AddQuickSettingsTile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AddQuickSettingsTile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AddQuickSettingsTile::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AddQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AddQuickSettingsTile::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AddQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) return target; } -size_t SharingLog_AddQuickSettingsTile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AddQuickSettingsTile::ByteSizeLong(const MessageLite& base) { + const SharingLog_AddQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AddQuickSettingsTile::ByteSizeLong() const { + const SharingLog_AddQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AddQuickSettingsTile::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_AddQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_AddQuickSettingsTile::MergeFrom(const SharingLog_AddQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AddQuickSettingsTile::CopyFrom(const SharingLog_AddQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AddQuickSettingsTile::IsInitialized() const { - return true; -} -void SharingLog_AddQuickSettingsTile::InternalSwap(SharingLog_AddQuickSettingsTile* other) { - using std::swap; +void SharingLog_AddQuickSettingsTile::InternalSwap(SharingLog_AddQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_AddQuickSettingsTile::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile"; -} - - // =================================================================== class SharingLog_RemoveQuickSettingsTile::_Internal { public: }; -SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RemoveQuickSettingsTile_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) } -SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile(const SharingLog_RemoveQuickSettingsTile& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) +SharingLog_RemoveQuickSettingsTile::SharingLog_RemoveQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveQuickSettingsTile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RemoveQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_RemoveQuickSettingsTile::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_RemoveQuickSettingsTile::SharedCtor() { +inline void SharingLog_RemoveQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_RemoveQuickSettingsTile::~SharingLog_RemoveQuickSettingsTile() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_RemoveQuickSettingsTile::SharedDtor(MessageLite& self) { + SharingLog_RemoveQuickSettingsTile& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_RemoveQuickSettingsTile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_RemoveQuickSettingsTile::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_RemoveQuickSettingsTile(arena); +} +constexpr auto SharingLog_RemoveQuickSettingsTile::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RemoveQuickSettingsTile), + alignof(SharingLog_RemoveQuickSettingsTile)); +} +constexpr auto SharingLog_RemoveQuickSettingsTile::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_RemoveQuickSettingsTile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_RemoveQuickSettingsTile::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_RemoveQuickSettingsTile::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_RemoveQuickSettingsTile::ByteSizeLong, + &SharingLog_RemoveQuickSettingsTile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_RemoveQuickSettingsTile, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile", + }; } -void SharingLog_RemoveQuickSettingsTile::ArenaDtor(void* object) { - SharingLog_RemoveQuickSettingsTile* _this = reinterpret_cast< SharingLog_RemoveQuickSettingsTile* >(object); - (void)_this; -} -void SharingLog_RemoveQuickSettingsTile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_RemoveQuickSettingsTile::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_RemoveQuickSettingsTile_class_data_ = + SharingLog_RemoveQuickSettingsTile::InternalGenerateClassData_(); -void SharingLog_RemoveQuickSettingsTile::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_RemoveQuickSettingsTile::GetClassData() const { + return SharingLog_RemoveQuickSettingsTile_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_RemoveQuickSettingsTile::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_RemoveQuickSettingsTile_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_RemoveQuickSettingsTile::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_RemoveQuickSettingsTile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_RemoveQuickSettingsTile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveQuickSettingsTile::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_RemoveQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_RemoveQuickSettingsTile::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_RemoveQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) return target; } -size_t SharingLog_RemoveQuickSettingsTile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_RemoveQuickSettingsTile::ByteSizeLong(const MessageLite& base) { + const SharingLog_RemoveQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_RemoveQuickSettingsTile::ByteSizeLong() const { + const SharingLog_RemoveQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_RemoveQuickSettingsTile::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_RemoveQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_RemoveQuickSettingsTile::MergeFrom(const SharingLog_RemoveQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_RemoveQuickSettingsTile::CopyFrom(const SharingLog_RemoveQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_RemoveQuickSettingsTile::IsInitialized() const { - return true; -} -void SharingLog_RemoveQuickSettingsTile::InternalSwap(SharingLog_RemoveQuickSettingsTile* other) { - using std::swap; +void SharingLog_RemoveQuickSettingsTile::InternalSwap(SharingLog_RemoveQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_RemoveQuickSettingsTile::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile"; -} - - // =================================================================== class SharingLog_LaunchPhoneConsent::_Internal { public: }; -SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchPhoneConsent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) } -SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent(const SharingLog_LaunchPhoneConsent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) +SharingLog_LaunchPhoneConsent::SharingLog_LaunchPhoneConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchPhoneConsent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchPhoneConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_LaunchPhoneConsent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_LaunchPhoneConsent::SharedCtor() { +inline void SharingLog_LaunchPhoneConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_LaunchPhoneConsent::~SharingLog_LaunchPhoneConsent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_LaunchPhoneConsent::SharedDtor(MessageLite& self) { + SharingLog_LaunchPhoneConsent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_LaunchPhoneConsent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_LaunchPhoneConsent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_LaunchPhoneConsent(arena); +} +constexpr auto SharingLog_LaunchPhoneConsent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchPhoneConsent), + alignof(SharingLog_LaunchPhoneConsent)); +} +constexpr auto SharingLog_LaunchPhoneConsent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<61>{ + { + &_SharingLog_LaunchPhoneConsent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_LaunchPhoneConsent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_LaunchPhoneConsent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_LaunchPhoneConsent::ByteSizeLong, + &SharingLog_LaunchPhoneConsent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchPhoneConsent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent", + }; } -void SharingLog_LaunchPhoneConsent::ArenaDtor(void* object) { - SharingLog_LaunchPhoneConsent* _this = reinterpret_cast< SharingLog_LaunchPhoneConsent* >(object); - (void)_this; -} -void SharingLog_LaunchPhoneConsent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_LaunchPhoneConsent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> SharingLog_LaunchPhoneConsent_class_data_ = + SharingLog_LaunchPhoneConsent::InternalGenerateClassData_(); -void SharingLog_LaunchPhoneConsent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_LaunchPhoneConsent::GetClassData() const { + return SharingLog_LaunchPhoneConsent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_LaunchPhoneConsent::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_LaunchPhoneConsent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_LaunchPhoneConsent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_LaunchPhoneConsent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_LaunchPhoneConsent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchPhoneConsent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_LaunchPhoneConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchPhoneConsent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_LaunchPhoneConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) return target; } -size_t SharingLog_LaunchPhoneConsent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_LaunchPhoneConsent::ByteSizeLong(const MessageLite& base) { + const SharingLog_LaunchPhoneConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_LaunchPhoneConsent::ByteSizeLong() const { + const SharingLog_LaunchPhoneConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_LaunchPhoneConsent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_LaunchPhoneConsent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_LaunchPhoneConsent::MergeFrom(const SharingLog_LaunchPhoneConsent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_LaunchPhoneConsent::CopyFrom(const SharingLog_LaunchPhoneConsent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_LaunchPhoneConsent::IsInitialized() const { - return true; -} -void SharingLog_LaunchPhoneConsent::InternalSwap(SharingLog_LaunchPhoneConsent* other) { - using std::swap; +void SharingLog_LaunchPhoneConsent::InternalSwap(SharingLog_LaunchPhoneConsent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_LaunchPhoneConsent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent"; -} - - // =================================================================== class SharingLog_DisplayPhoneConsent::_Internal { public: }; -SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DisplayPhoneConsent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) } -SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent(const SharingLog_DisplayPhoneConsent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) +SharingLog_DisplayPhoneConsent::SharingLog_DisplayPhoneConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPhoneConsent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DisplayPhoneConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DisplayPhoneConsent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DisplayPhoneConsent::SharedCtor() { +inline void SharingLog_DisplayPhoneConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DisplayPhoneConsent::~SharingLog_DisplayPhoneConsent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DisplayPhoneConsent::SharedDtor(MessageLite& self) { + SharingLog_DisplayPhoneConsent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DisplayPhoneConsent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DisplayPhoneConsent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DisplayPhoneConsent(arena); +} +constexpr auto SharingLog_DisplayPhoneConsent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DisplayPhoneConsent), + alignof(SharingLog_DisplayPhoneConsent)); +} +constexpr auto SharingLog_DisplayPhoneConsent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_DisplayPhoneConsent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DisplayPhoneConsent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DisplayPhoneConsent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DisplayPhoneConsent::ByteSizeLong, + &SharingLog_DisplayPhoneConsent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DisplayPhoneConsent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent", + }; } -void SharingLog_DisplayPhoneConsent::ArenaDtor(void* object) { - SharingLog_DisplayPhoneConsent* _this = reinterpret_cast< SharingLog_DisplayPhoneConsent* >(object); - (void)_this; -} -void SharingLog_DisplayPhoneConsent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DisplayPhoneConsent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DisplayPhoneConsent_class_data_ = + SharingLog_DisplayPhoneConsent::InternalGenerateClassData_(); -void SharingLog_DisplayPhoneConsent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DisplayPhoneConsent::GetClassData() const { + return SharingLog_DisplayPhoneConsent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DisplayPhoneConsent::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DisplayPhoneConsent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DisplayPhoneConsent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DisplayPhoneConsent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DisplayPhoneConsent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPhoneConsent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DisplayPhoneConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPhoneConsent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DisplayPhoneConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) return target; } -size_t SharingLog_DisplayPhoneConsent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DisplayPhoneConsent::ByteSizeLong(const MessageLite& base) { + const SharingLog_DisplayPhoneConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DisplayPhoneConsent::ByteSizeLong() const { + const SharingLog_DisplayPhoneConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DisplayPhoneConsent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DisplayPhoneConsent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DisplayPhoneConsent::MergeFrom(const SharingLog_DisplayPhoneConsent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DisplayPhoneConsent::CopyFrom(const SharingLog_DisplayPhoneConsent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DisplayPhoneConsent::IsInitialized() const { - return true; -} -void SharingLog_DisplayPhoneConsent::InternalSwap(SharingLog_DisplayPhoneConsent* other) { - using std::swap; +void SharingLog_DisplayPhoneConsent::InternalSwap(SharingLog_DisplayPhoneConsent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DisplayPhoneConsent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent"; -} - - // =================================================================== class SharingLog_TapQuickSettingsTile::_Internal { public: }; -SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsTile_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) } -SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile(const SharingLog_TapQuickSettingsTile& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) +SharingLog_TapQuickSettingsTile::SharingLog_TapQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsTile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsTile_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapQuickSettingsTile::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapQuickSettingsTile::SharedCtor() { +inline void SharingLog_TapQuickSettingsTile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapQuickSettingsTile::~SharingLog_TapQuickSettingsTile() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapQuickSettingsTile::SharedDtor(MessageLite& self) { + SharingLog_TapQuickSettingsTile& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapQuickSettingsTile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapQuickSettingsTile::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapQuickSettingsTile(arena); +} +constexpr auto SharingLog_TapQuickSettingsTile::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQuickSettingsTile), + alignof(SharingLog_TapQuickSettingsTile)); +} +constexpr auto SharingLog_TapQuickSettingsTile::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<63>{ + { + &_SharingLog_TapQuickSettingsTile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapQuickSettingsTile::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapQuickSettingsTile::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapQuickSettingsTile::ByteSizeLong, + &SharingLog_TapQuickSettingsTile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapQuickSettingsTile, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile", + }; } -void SharingLog_TapQuickSettingsTile::ArenaDtor(void* object) { - SharingLog_TapQuickSettingsTile* _this = reinterpret_cast< SharingLog_TapQuickSettingsTile* >(object); - (void)_this; -} -void SharingLog_TapQuickSettingsTile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapQuickSettingsTile::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> SharingLog_TapQuickSettingsTile_class_data_ = + SharingLog_TapQuickSettingsTile::InternalGenerateClassData_(); -void SharingLog_TapQuickSettingsTile::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapQuickSettingsTile::GetClassData() const { + return SharingLog_TapQuickSettingsTile_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapQuickSettingsTile::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapQuickSettingsTile_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapQuickSettingsTile::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapQuickSettingsTile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapQuickSettingsTile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsTile::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsTile::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) return target; } -size_t SharingLog_TapQuickSettingsTile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapQuickSettingsTile::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapQuickSettingsTile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapQuickSettingsTile::ByteSizeLong() const { + const SharingLog_TapQuickSettingsTile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapQuickSettingsTile::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapQuickSettingsTile::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapQuickSettingsTile::MergeFrom(const SharingLog_TapQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapQuickSettingsTile::CopyFrom(const SharingLog_TapQuickSettingsTile& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapQuickSettingsTile::IsInitialized() const { - return true; -} -void SharingLog_TapQuickSettingsTile::InternalSwap(SharingLog_TapQuickSettingsTile* other) { - using std::swap; +void SharingLog_TapQuickSettingsTile::InternalSwap(SharingLog_TapQuickSettingsTile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapQuickSettingsTile::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile"; -} - - // =================================================================== class SharingLog_TapQuickSettingsFileShare::_Internal { public: }; -SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsFileShare_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) } -SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare(const SharingLog_TapQuickSettingsFileShare& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) +SharingLog_TapQuickSettingsFileShare::SharingLog_TapQuickSettingsFileShare( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsFileShare& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQuickSettingsFileShare_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapQuickSettingsFileShare::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapQuickSettingsFileShare::SharedCtor() { +inline void SharingLog_TapQuickSettingsFileShare::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapQuickSettingsFileShare::~SharingLog_TapQuickSettingsFileShare() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapQuickSettingsFileShare::SharedDtor(MessageLite& self) { + SharingLog_TapQuickSettingsFileShare& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapQuickSettingsFileShare::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapQuickSettingsFileShare::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapQuickSettingsFileShare(arena); +} +constexpr auto SharingLog_TapQuickSettingsFileShare::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQuickSettingsFileShare), + alignof(SharingLog_TapQuickSettingsFileShare)); +} +constexpr auto SharingLog_TapQuickSettingsFileShare::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_TapQuickSettingsFileShare_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapQuickSettingsFileShare::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapQuickSettingsFileShare::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapQuickSettingsFileShare::ByteSizeLong, + &SharingLog_TapQuickSettingsFileShare::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapQuickSettingsFileShare, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare", + }; } -void SharingLog_TapQuickSettingsFileShare::ArenaDtor(void* object) { - SharingLog_TapQuickSettingsFileShare* _this = reinterpret_cast< SharingLog_TapQuickSettingsFileShare* >(object); - (void)_this; -} -void SharingLog_TapQuickSettingsFileShare::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapQuickSettingsFileShare::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_TapQuickSettingsFileShare_class_data_ = + SharingLog_TapQuickSettingsFileShare::InternalGenerateClassData_(); -void SharingLog_TapQuickSettingsFileShare::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapQuickSettingsFileShare::GetClassData() const { + return SharingLog_TapQuickSettingsFileShare_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapQuickSettingsFileShare::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapQuickSettingsFileShare_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapQuickSettingsFileShare::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapQuickSettingsFileShare::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapQuickSettingsFileShare::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsFileShare::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapQuickSettingsFileShare& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQuickSettingsFileShare::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapQuickSettingsFileShare& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) return target; } -size_t SharingLog_TapQuickSettingsFileShare::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapQuickSettingsFileShare::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapQuickSettingsFileShare& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapQuickSettingsFileShare::ByteSizeLong() const { + const SharingLog_TapQuickSettingsFileShare& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapQuickSettingsFileShare::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapQuickSettingsFileShare::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapQuickSettingsFileShare::MergeFrom(const SharingLog_TapQuickSettingsFileShare& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapQuickSettingsFileShare::CopyFrom(const SharingLog_TapQuickSettingsFileShare& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapQuickSettingsFileShare::IsInitialized() const { - return true; -} -void SharingLog_TapQuickSettingsFileShare::InternalSwap(SharingLog_TapQuickSettingsFileShare* other) { - using std::swap; +void SharingLog_TapQuickSettingsFileShare::InternalSwap(SharingLog_TapQuickSettingsFileShare* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapQuickSettingsFileShare::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare"; -} - - // =================================================================== class SharingLog_DisplayPrivacyNotification::_Internal { public: }; -SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DisplayPrivacyNotification_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) } -SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification(const SharingLog_DisplayPrivacyNotification& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) +SharingLog_DisplayPrivacyNotification::SharingLog_DisplayPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPrivacyNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DisplayPrivacyNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DisplayPrivacyNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DisplayPrivacyNotification::SharedCtor() { +inline void SharingLog_DisplayPrivacyNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DisplayPrivacyNotification::~SharingLog_DisplayPrivacyNotification() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DisplayPrivacyNotification::SharedDtor(MessageLite& self) { + SharingLog_DisplayPrivacyNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DisplayPrivacyNotification::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DisplayPrivacyNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DisplayPrivacyNotification(arena); +} +constexpr auto SharingLog_DisplayPrivacyNotification::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DisplayPrivacyNotification), + alignof(SharingLog_DisplayPrivacyNotification)); +} +constexpr auto SharingLog_DisplayPrivacyNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<69>{ + { + &_SharingLog_DisplayPrivacyNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DisplayPrivacyNotification::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DisplayPrivacyNotification::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DisplayPrivacyNotification::ByteSizeLong, + &SharingLog_DisplayPrivacyNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DisplayPrivacyNotification, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification", + }; } -void SharingLog_DisplayPrivacyNotification::ArenaDtor(void* object) { - SharingLog_DisplayPrivacyNotification* _this = reinterpret_cast< SharingLog_DisplayPrivacyNotification* >(object); - (void)_this; -} -void SharingLog_DisplayPrivacyNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DisplayPrivacyNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DisplayPrivacyNotification_class_data_ = + SharingLog_DisplayPrivacyNotification::InternalGenerateClassData_(); -void SharingLog_DisplayPrivacyNotification::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DisplayPrivacyNotification::GetClassData() const { + return SharingLog_DisplayPrivacyNotification_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DisplayPrivacyNotification::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DisplayPrivacyNotification_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DisplayPrivacyNotification::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DisplayPrivacyNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DisplayPrivacyNotification::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPrivacyNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DisplayPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DisplayPrivacyNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DisplayPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) return target; } -size_t SharingLog_DisplayPrivacyNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DisplayPrivacyNotification::ByteSizeLong(const MessageLite& base) { + const SharingLog_DisplayPrivacyNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DisplayPrivacyNotification::ByteSizeLong() const { + const SharingLog_DisplayPrivacyNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DisplayPrivacyNotification::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DisplayPrivacyNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DisplayPrivacyNotification::MergeFrom(const SharingLog_DisplayPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DisplayPrivacyNotification::CopyFrom(const SharingLog_DisplayPrivacyNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DisplayPrivacyNotification::IsInitialized() const { - return true; -} -void SharingLog_DisplayPrivacyNotification::InternalSwap(SharingLog_DisplayPrivacyNotification* other) { - using std::swap; +void SharingLog_DisplayPrivacyNotification::InternalSwap(SharingLog_DisplayPrivacyNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DisplayPrivacyNotification::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification"; -} - - // =================================================================== class SharingLog_DefaultOptIn::_Internal { public: }; -SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DefaultOptIn_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) } -SharingLog_DefaultOptIn::SharingLog_DefaultOptIn(const SharingLog_DefaultOptIn& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) +SharingLog_DefaultOptIn::SharingLog_DefaultOptIn( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DefaultOptIn& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DefaultOptIn_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DefaultOptIn::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DefaultOptIn::SharedCtor() { +inline void SharingLog_DefaultOptIn::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_DefaultOptIn::~SharingLog_DefaultOptIn() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DefaultOptIn::SharedDtor(MessageLite& self) { + SharingLog_DefaultOptIn& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DefaultOptIn::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DefaultOptIn::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DefaultOptIn(arena); +} +constexpr auto SharingLog_DefaultOptIn::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DefaultOptIn), + alignof(SharingLog_DefaultOptIn)); +} +constexpr auto SharingLog_DefaultOptIn::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<55>{ + { + &_SharingLog_DefaultOptIn_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DefaultOptIn::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DefaultOptIn::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DefaultOptIn::ByteSizeLong, + &SharingLog_DefaultOptIn::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DefaultOptIn, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DefaultOptIn", + }; } -void SharingLog_DefaultOptIn::ArenaDtor(void* object) { - SharingLog_DefaultOptIn* _this = reinterpret_cast< SharingLog_DefaultOptIn* >(object); - (void)_this; -} -void SharingLog_DefaultOptIn::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DefaultOptIn::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<55> SharingLog_DefaultOptIn_class_data_ = + SharingLog_DefaultOptIn::InternalGenerateClassData_(); -void SharingLog_DefaultOptIn::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DefaultOptIn::GetClassData() const { + return SharingLog_DefaultOptIn_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_DefaultOptIn::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_DefaultOptIn_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DefaultOptIn::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DefaultOptIn::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DefaultOptIn::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DefaultOptIn::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DefaultOptIn& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DefaultOptIn::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DefaultOptIn& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) return target; } -size_t SharingLog_DefaultOptIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DefaultOptIn::ByteSizeLong(const MessageLite& base) { + const SharingLog_DefaultOptIn& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DefaultOptIn::ByteSizeLong() const { + const SharingLog_DefaultOptIn& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DefaultOptIn::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_DefaultOptIn::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_DefaultOptIn::MergeFrom(const SharingLog_DefaultOptIn& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DefaultOptIn::CopyFrom(const SharingLog_DefaultOptIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DefaultOptIn::IsInitialized() const { - return true; -} -void SharingLog_DefaultOptIn::InternalSwap(SharingLog_DefaultOptIn* other) { - using std::swap; +void SharingLog_DefaultOptIn::InternalSwap(SharingLog_DefaultOptIn* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_DefaultOptIn::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DefaultOptIn"; -} - - // =================================================================== class SharingLog_SetDeviceName::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_device_name_size(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_._has_bits_); }; -SharingLog_SetDeviceName::SharingLog_SetDeviceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SetDeviceName::SharingLog_SetDeviceName(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetDeviceName_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) } -SharingLog_SetDeviceName::SharingLog_SetDeviceName(const SharingLog_SetDeviceName& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - device_name_size_ = from.device_name_size_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) +SharingLog_SetDeviceName::SharingLog_SetDeviceName( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDeviceName& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetDeviceName_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SetDeviceName::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SetDeviceName::SharedCtor() { -device_name_size_ = 0; +inline void SharingLog_SetDeviceName::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.device_name_size_ = {}; } - SharingLog_SetDeviceName::~SharingLog_SetDeviceName() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SetDeviceName::SharedDtor(MessageLite& self) { + SharingLog_SetDeviceName& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SetDeviceName::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SetDeviceName::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SetDeviceName(arena); +} +constexpr auto SharingLog_SetDeviceName::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetDeviceName), + alignof(SharingLog_SetDeviceName)); +} +constexpr auto SharingLog_SetDeviceName::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_SetDeviceName_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SetDeviceName::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SetDeviceName::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SetDeviceName::ByteSizeLong, + &SharingLog_SetDeviceName::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SetDeviceName", + }; } -void SharingLog_SetDeviceName::ArenaDtor(void* object) { - SharingLog_SetDeviceName* _this = reinterpret_cast< SharingLog_SetDeviceName* >(object); - (void)_this; -} -void SharingLog_SetDeviceName::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SetDeviceName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetDeviceName_class_data_ = + SharingLog_SetDeviceName::InternalGenerateClassData_(); -void SharingLog_SetDeviceName::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SetDeviceName::GetClassData() const { + return SharingLog_SetDeviceName_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SharingLog_SetDeviceName::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_SetDeviceName_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 device_name_size = 1; + {::_pbi::TcParser::FastV32S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_.device_name_size_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 device_name_size = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetDeviceName, _impl_.device_name_size_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SetDeviceName::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - device_name_size_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.device_name_size_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SetDeviceName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 device_name_size = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_device_name_size(&has_bits); - device_name_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SetDeviceName::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SetDeviceName::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SetDeviceName& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SetDeviceName::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SetDeviceName& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 device_name_size = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_device_name_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_device_name_size(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) return target; } -size_t SharingLog_SetDeviceName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SetDeviceName::ByteSizeLong(const MessageLite& base) { + const SharingLog_SetDeviceName& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SetDeviceName::ByteSizeLong() const { + const SharingLog_SetDeviceName& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 device_name_size = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_name_size()); + { + // optional int32 device_name_size = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_device_name_size()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SetDeviceName::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SetDeviceName::MergeFrom(const SharingLog_SetDeviceName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_device_name_size()) { - _internal_set_device_name_size(from._internal_device_name_size()); +void SharingLog_SetDeviceName::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.device_name_size_ = from._impl_.device_name_size_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SetDeviceName::CopyFrom(const SharingLog_SetDeviceName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SetDeviceName::IsInitialized() const { - return true; -} -void SharingLog_SetDeviceName::InternalSwap(SharingLog_SetDeviceName* other) { - using std::swap; +void SharingLog_SetDeviceName::InternalSwap(SharingLog_SetDeviceName* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(device_name_size_, other->device_name_size_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.device_name_size_, other->_impl_.device_name_size_); } -std::string SharingLog_SetDeviceName::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SetDeviceName"; -} - - // =================================================================== class SharingLog_RequestSettingPermissions::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_permission_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_permission_request_result(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._has_bits_); }; -SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RequestSettingPermissions_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) } -SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions(const SharingLog_RequestSettingPermissions& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&permission_type_, &from.permission_type_, - static_cast(reinterpret_cast(&permission_request_result_) - - reinterpret_cast(&permission_type_)) + sizeof(permission_request_result_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) +SharingLog_RequestSettingPermissions::SharingLog_RequestSettingPermissions( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RequestSettingPermissions& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RequestSettingPermissions_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_RequestSettingPermissions::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_RequestSettingPermissions::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&permission_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&permission_request_result_) - - reinterpret_cast(&permission_type_)) + sizeof(permission_request_result_)); +inline void SharingLog_RequestSettingPermissions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, permission_type_), + 0, + offsetof(Impl_, permission_request_result_) - + offsetof(Impl_, permission_type_) + + sizeof(Impl_::permission_request_result_)); } - SharingLog_RequestSettingPermissions::~SharingLog_RequestSettingPermissions() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_RequestSettingPermissions::SharedDtor(MessageLite& self) { + SharingLog_RequestSettingPermissions& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_RequestSettingPermissions::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_RequestSettingPermissions::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_RequestSettingPermissions(arena); +} +constexpr auto SharingLog_RequestSettingPermissions::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_RequestSettingPermissions), + alignof(SharingLog_RequestSettingPermissions)); +} +constexpr auto SharingLog_RequestSettingPermissions::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_RequestSettingPermissions_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_RequestSettingPermissions::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_RequestSettingPermissions::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_RequestSettingPermissions::ByteSizeLong, + &SharingLog_RequestSettingPermissions::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions", + }; } -void SharingLog_RequestSettingPermissions::ArenaDtor(void* object) { - SharingLog_RequestSettingPermissions* _this = reinterpret_cast< SharingLog_RequestSettingPermissions* >(object); - (void)_this; -} -void SharingLog_RequestSettingPermissions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_RequestSettingPermissions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_RequestSettingPermissions_class_data_ = + SharingLog_RequestSettingPermissions::InternalGenerateClassData_(); -void SharingLog_RequestSettingPermissions::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_RequestSettingPermissions::GetClassData() const { + return SharingLog_RequestSettingPermissions_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_RequestSettingPermissions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_RequestSettingPermissions_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_)}}, + // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_RequestSettingPermissions::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&permission_type_, 0, static_cast( - reinterpret_cast(&permission_request_result_) - - reinterpret_cast(&permission_type_)) + sizeof(permission_request_result_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.permission_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.permission_request_result_) - + reinterpret_cast(&_impl_.permission_type_)) + sizeof(_impl_.permission_request_result_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_RequestSettingPermissions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PermissionRequestType_IsValid(val))) { - _internal_set_permission_type(static_cast<::location::nearby::proto::sharing::PermissionRequestType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::PermissionRequestResult_IsValid(val))) { - _internal_set_permission_request_result(static_cast<::location::nearby::proto::sharing::PermissionRequestResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_RequestSettingPermissions::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_RequestSettingPermissions::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_RequestSettingPermissions& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_RequestSettingPermissions::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_RequestSettingPermissions& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_permission_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_permission_type(), target); } // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_permission_request_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_permission_request_result(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) return target; } -size_t SharingLog_RequestSettingPermissions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_RequestSettingPermissions::ByteSizeLong(const MessageLite& base) { + const SharingLog_RequestSettingPermissions& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_RequestSettingPermissions::ByteSizeLong() const { + const SharingLog_RequestSettingPermissions& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_permission_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_permission_type()); } - // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_permission_request_result()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_permission_request_result()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_RequestSettingPermissions::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_RequestSettingPermissions::MergeFrom(const SharingLog_RequestSettingPermissions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - permission_type_ = from.permission_type_; - } - if (cached_has_bits & 0x00000002u) { - permission_request_result_ = from.permission_request_result_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_RequestSettingPermissions::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.permission_type_ = from._impl_.permission_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.permission_request_result_ = from._impl_.permission_request_result_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_RequestSettingPermissions::CopyFrom(const SharingLog_RequestSettingPermissions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_RequestSettingPermissions::IsInitialized() const { - return true; -} -void SharingLog_RequestSettingPermissions::InternalSwap(SharingLog_RequestSettingPermissions* other) { - using std::swap; +void SharingLog_RequestSettingPermissions::InternalSwap(SharingLog_RequestSettingPermissions* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, permission_request_result_) - + sizeof(SharingLog_RequestSettingPermissions::permission_request_result_) - - PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, permission_type_)>( - reinterpret_cast(&permission_type_), - reinterpret_cast(&other->permission_type_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_request_result_) + + sizeof(SharingLog_RequestSettingPermissions::_impl_.permission_request_result_) + - PROTOBUF_FIELD_OFFSET(SharingLog_RequestSettingPermissions, _impl_.permission_type_)>( + reinterpret_cast(&_impl_.permission_type_), + reinterpret_cast(&other->_impl_.permission_type_)); } -std::string SharingLog_RequestSettingPermissions::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions"; -} - - // =================================================================== class SharingLog_LaunchConsent::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_consent_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._has_bits_); }; -SharingLog_LaunchConsent::SharingLog_LaunchConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_LaunchConsent::SharingLog_LaunchConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchConsent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) } -SharingLog_LaunchConsent::SharingLog_LaunchConsent(const SharingLog_LaunchConsent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&consent_type_, &from.consent_type_, - static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&consent_type_)) + sizeof(status_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) +SharingLog_LaunchConsent::SharingLog_LaunchConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchConsent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_LaunchConsent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_LaunchConsent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_LaunchConsent::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&consent_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&consent_type_)) + sizeof(status_)); +inline void SharingLog_LaunchConsent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, consent_type_), + 0, + offsetof(Impl_, status_) - + offsetof(Impl_, consent_type_) + + sizeof(Impl_::status_)); } - SharingLog_LaunchConsent::~SharingLog_LaunchConsent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_LaunchConsent::SharedDtor(MessageLite& self) { + SharingLog_LaunchConsent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_LaunchConsent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_LaunchConsent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_LaunchConsent(arena); +} +constexpr auto SharingLog_LaunchConsent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_LaunchConsent), + alignof(SharingLog_LaunchConsent)); +} +constexpr auto SharingLog_LaunchConsent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_LaunchConsent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_LaunchConsent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_LaunchConsent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_LaunchConsent::ByteSizeLong, + &SharingLog_LaunchConsent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.LaunchConsent", + }; } -void SharingLog_LaunchConsent::ArenaDtor(void* object) { - SharingLog_LaunchConsent* _this = reinterpret_cast< SharingLog_LaunchConsent* >(object); - (void)_this; -} -void SharingLog_LaunchConsent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_LaunchConsent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_LaunchConsent_class_data_ = + SharingLog_LaunchConsent::InternalGenerateClassData_(); -void SharingLog_LaunchConsent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_LaunchConsent::GetClassData() const { + return SharingLog_LaunchConsent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_LaunchConsent::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_LaunchConsent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.status_)}}, + // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 2}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_LaunchConsent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&consent_type_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&consent_type_)) + sizeof(status_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.consent_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.consent_type_)) + sizeof(_impl_.status_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_LaunchConsent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ConsentType_IsValid(val))) { - _internal_set_consent_type(static_cast<::location::nearby::proto::sharing::ConsentType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ConsentAcceptanceStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::ConsentAcceptanceStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_LaunchConsent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchConsent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_LaunchConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_LaunchConsent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_LaunchConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_consent_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_consent_type(), target); } // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_status(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) return target; } -size_t SharingLog_LaunchConsent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_LaunchConsent::ByteSizeLong(const MessageLite& base) { + const SharingLog_LaunchConsent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_LaunchConsent::ByteSizeLong() const { + const SharingLog_LaunchConsent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_consent_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_consent_type()); } - // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_LaunchConsent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_LaunchConsent::MergeFrom(const SharingLog_LaunchConsent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - consent_type_ = from.consent_type_; - } - if (cached_has_bits & 0x00000002u) { - status_ = from.status_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_LaunchConsent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.consent_type_ = from._impl_.consent_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.status_ = from._impl_.status_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_LaunchConsent::CopyFrom(const SharingLog_LaunchConsent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_LaunchConsent::IsInitialized() const { - return true; -} -void SharingLog_LaunchConsent::InternalSwap(SharingLog_LaunchConsent* other) { - using std::swap; +void SharingLog_LaunchConsent::InternalSwap(SharingLog_LaunchConsent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, status_) - + sizeof(SharingLog_LaunchConsent::status_) - - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, consent_type_)>( - reinterpret_cast(&consent_type_), - reinterpret_cast(&other->consent_type_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.status_) + + sizeof(SharingLog_LaunchConsent::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(SharingLog_LaunchConsent, _impl_.consent_type_)>( + reinterpret_cast(&_impl_.consent_type_), + reinterpret_cast(&other->_impl_.consent_type_)); } -std::string SharingLog_LaunchConsent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.LaunchConsent"; -} - - // =================================================================== class SharingLog_InstallAPKStatus::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._has_bits_); }; -SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - status_(arena), - source_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_InstallAPKStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) } -SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus(const SharingLog_InstallAPKStatus& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - status_(from.status_), - source_(from.source_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE SharingLog_InstallAPKStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + status_{visibility, arena, from.status_}, + _status_cached_byte_size_{0}, + source_{visibility, arena, from.source_}, + _source_cached_byte_size_{0} {} + +SharingLog_InstallAPKStatus::SharingLog_InstallAPKStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_InstallAPKStatus& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_InstallAPKStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_InstallAPKStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) } +PROTOBUF_NDEBUG_INLINE SharingLog_InstallAPKStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + status_{visibility, arena}, + _status_cached_byte_size_{0}, + source_{visibility, arena}, + _source_cached_byte_size_{0} {} -inline void SharingLog_InstallAPKStatus::SharedCtor() { +inline void SharingLog_InstallAPKStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_InstallAPKStatus::~SharingLog_InstallAPKStatus() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_InstallAPKStatus::SharedDtor(MessageLite& self) { + SharingLog_InstallAPKStatus& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_InstallAPKStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_InstallAPKStatus(arena); +} +constexpr auto SharingLog_InstallAPKStatus::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_) + + decltype(SharingLog_InstallAPKStatus::_impl_.status_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_) + + decltype(SharingLog_InstallAPKStatus::_impl_.source_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SharingLog_InstallAPKStatus), alignof(SharingLog_InstallAPKStatus), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SharingLog_InstallAPKStatus::PlacementNew_, + sizeof(SharingLog_InstallAPKStatus), + alignof(SharingLog_InstallAPKStatus)); + } +} +constexpr auto SharingLog_InstallAPKStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_InstallAPKStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_InstallAPKStatus::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_InstallAPKStatus::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_InstallAPKStatus::ByteSizeLong, + &SharingLog_InstallAPKStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus", + }; } -void SharingLog_InstallAPKStatus::ArenaDtor(void* object) { - SharingLog_InstallAPKStatus* _this = reinterpret_cast< SharingLog_InstallAPKStatus* >(object); - (void)_this; -} -void SharingLog_InstallAPKStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_InstallAPKStatus::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_InstallAPKStatus_class_data_ = + SharingLog_InstallAPKStatus::InternalGenerateClassData_(); -void SharingLog_InstallAPKStatus::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_InstallAPKStatus::GetClassData() const { + return SharingLog_InstallAPKStatus_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_InstallAPKStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_InstallAPKStatus_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {18, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_)}}, + // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {10, 0, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_InstallAPKStatus, _impl_.source_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + }}, + {{ + {0, 2}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_InstallAPKStatus::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - status_.Clear(); - source_.Clear(); - _internal_metadata_.Clear(); -} - -const char* SharingLog_InstallAPKStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_status(), ptr, ctx, ::location::nearby::proto::sharing::InstallAPKStatus_IsValid, &_internal_metadata_, 1); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::InstallAPKStatus_IsValid(val))) { - _internal_add_status(static_cast<::location::nearby::proto::sharing::InstallAPKStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_source(), ptr, ctx, ::location::nearby::proto::sharing::ApkSource_IsValid, &_internal_metadata_, 2); - CHK_(ptr); - } else if (static_cast(tag) == 16) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ApkSource_IsValid(val))) { - _internal_add_source(static_cast<::location::nearby::proto::sharing::ApkSource>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.status_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.source_.Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* SharingLog_InstallAPKStatus::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_InstallAPKStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_InstallAPKStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; - { - int byte_size = _status_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 1, status_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._status_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, this_._internal_status(), byte_size, target); + } } } // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - { - int byte_size = _source_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 2, source_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + ::size_t byte_size = this_._impl_._source_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 2, this_._internal_source(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) return target; } -size_t SharingLog_InstallAPKStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_InstallAPKStatus::ByteSizeLong(const MessageLite& base) { + const SharingLog_InstallAPKStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_InstallAPKStatus::ByteSizeLong() const { + const SharingLog_InstallAPKStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_status_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_status(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_status(), 1, this_._impl_._status_cached_byte_size_); } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_source(), 1, this_._impl_._source_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _status_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_source_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_source(static_cast(i))); - } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _source_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_InstallAPKStatus::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_InstallAPKStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_InstallAPKStatus::MergeFrom(const SharingLog_InstallAPKStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - status_.MergeFrom(from.status_); - source_.MergeFrom(from.source_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_status()->MergeFrom(from._internal_status()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_source()->MergeFrom(from._internal_source()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_InstallAPKStatus::CopyFrom(const SharingLog_InstallAPKStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_InstallAPKStatus::IsInitialized() const { - return true; -} -void SharingLog_InstallAPKStatus::InternalSwap(SharingLog_InstallAPKStatus* other) { - using std::swap; +void SharingLog_InstallAPKStatus::InternalSwap(SharingLog_InstallAPKStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - status_.InternalSwap(&other->status_); - source_.InternalSwap(&other->source_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.status_.InternalSwap(&other->_impl_.status_); + _impl_.source_.InternalSwap(&other->_impl_.source_); } -std::string SharingLog_InstallAPKStatus::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus"; -} - - // =================================================================== class SharingLog_VerifyAPKStatus::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._has_bits_); }; -SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - status_(arena), - source_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_VerifyAPKStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) } -SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus(const SharingLog_VerifyAPKStatus& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - status_(from.status_), - source_(from.source_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); +PROTOBUF_NDEBUG_INLINE SharingLog_VerifyAPKStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + status_{visibility, arena, from.status_}, + _status_cached_byte_size_{0}, + source_{visibility, arena, from.source_}, + _source_cached_byte_size_{0} {} + +SharingLog_VerifyAPKStatus::SharingLog_VerifyAPKStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_VerifyAPKStatus& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_VerifyAPKStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_VerifyAPKStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) } +PROTOBUF_NDEBUG_INLINE SharingLog_VerifyAPKStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + status_{visibility, arena}, + _status_cached_byte_size_{0}, + source_{visibility, arena}, + _source_cached_byte_size_{0} {} -inline void SharingLog_VerifyAPKStatus::SharedCtor() { +inline void SharingLog_VerifyAPKStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_VerifyAPKStatus::~SharingLog_VerifyAPKStatus() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_VerifyAPKStatus::SharedDtor(MessageLite& self) { + SharingLog_VerifyAPKStatus& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_VerifyAPKStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_VerifyAPKStatus(arena); +} +constexpr auto SharingLog_VerifyAPKStatus::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_) + + decltype(SharingLog_VerifyAPKStatus::_impl_.status_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_) + + decltype(SharingLog_VerifyAPKStatus::_impl_.source_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SharingLog_VerifyAPKStatus), alignof(SharingLog_VerifyAPKStatus), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SharingLog_VerifyAPKStatus::PlacementNew_, + sizeof(SharingLog_VerifyAPKStatus), + alignof(SharingLog_VerifyAPKStatus)); + } +} +constexpr auto SharingLog_VerifyAPKStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<58>{ + { + &_SharingLog_VerifyAPKStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_VerifyAPKStatus::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_VerifyAPKStatus::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_VerifyAPKStatus::ByteSizeLong, + &SharingLog_VerifyAPKStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus", + }; } -void SharingLog_VerifyAPKStatus::ArenaDtor(void* object) { - SharingLog_VerifyAPKStatus* _this = reinterpret_cast< SharingLog_VerifyAPKStatus* >(object); - (void)_this; -} -void SharingLog_VerifyAPKStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_VerifyAPKStatus::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> SharingLog_VerifyAPKStatus_class_data_ = + SharingLog_VerifyAPKStatus::InternalGenerateClassData_(); -void SharingLog_VerifyAPKStatus::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_VerifyAPKStatus::GetClassData() const { + return SharingLog_VerifyAPKStatus_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_VerifyAPKStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_VerifyAPKStatus_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {18, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_)}}, + // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; + {::_pbi::TcParser::FastEr0P1, + {10, 0, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog_VerifyAPKStatus, _impl_.source_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)}, + }}, + {{ + {0, 3}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_VerifyAPKStatus::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - status_.Clear(); - source_.Clear(); - _internal_metadata_.Clear(); -} - -const char* SharingLog_VerifyAPKStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_status(), ptr, ctx, ::location::nearby::proto::sharing::VerifyAPKStatus_IsValid, &_internal_metadata_, 1); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::VerifyAPKStatus_IsValid(val))) { - _internal_add_status(static_cast<::location::nearby::proto::sharing::VerifyAPKStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_source(), ptr, ctx, ::location::nearby::proto::sharing::ApkSource_IsValid, &_internal_metadata_, 2); - CHK_(ptr); - } else if (static_cast(tag) == 16) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ApkSource_IsValid(val))) { - _internal_add_source(static_cast<::location::nearby::proto::sharing::ApkSource>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.status_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.source_.Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* SharingLog_VerifyAPKStatus::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_VerifyAPKStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_VerifyAPKStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; - { - int byte_size = _status_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 1, status_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._status_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, this_._internal_status(), byte_size, target); + } } } // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - { - int byte_size = _source_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 2, source_, byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + ::size_t byte_size = this_._impl_._source_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 2, this_._internal_source(), byte_size, target); + } } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) return target; } -size_t SharingLog_VerifyAPKStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_VerifyAPKStatus::ByteSizeLong(const MessageLite& base) { + const SharingLog_VerifyAPKStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_VerifyAPKStatus::ByteSizeLong() const { + const SharingLog_VerifyAPKStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_status_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_status(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_status(), 1, this_._impl_._status_cached_byte_size_); } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_source(), 1, this_._impl_._source_cached_byte_size_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _status_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; } - - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_source_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_source(static_cast(i))); - } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _source_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_VerifyAPKStatus::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_VerifyAPKStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_VerifyAPKStatus::MergeFrom(const SharingLog_VerifyAPKStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - status_.MergeFrom(from.status_); - source_.MergeFrom(from.source_); - _internal_metadata_.MergeFrom(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_status()->MergeFrom(from._internal_status()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_source()->MergeFrom(from._internal_source()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_VerifyAPKStatus::CopyFrom(const SharingLog_VerifyAPKStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_VerifyAPKStatus::IsInitialized() const { - return true; -} -void SharingLog_VerifyAPKStatus::InternalSwap(SharingLog_VerifyAPKStatus* other) { - using std::swap; +void SharingLog_VerifyAPKStatus::InternalSwap(SharingLog_VerifyAPKStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - status_.InternalSwap(&other->status_); - source_.InternalSwap(&other->source_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.status_.InternalSwap(&other->_impl_.status_); + _impl_.source_.InternalSwap(&other->_impl_.source_); } -std::string SharingLog_VerifyAPKStatus::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus"; -} - - // =================================================================== class SharingLog_ToggleShowNotification::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_previous_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_current_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._has_bits_); }; -SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ToggleShowNotification_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) } -SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification(const SharingLog_ToggleShowNotification& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&previous_status_, &from.previous_status_, - static_cast(reinterpret_cast(¤t_status_) - - reinterpret_cast(&previous_status_)) + sizeof(current_status_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) +SharingLog_ToggleShowNotification::SharingLog_ToggleShowNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ToggleShowNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ToggleShowNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ToggleShowNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ToggleShowNotification::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&previous_status_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(¤t_status_) - - reinterpret_cast(&previous_status_)) + sizeof(current_status_)); +inline void SharingLog_ToggleShowNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, previous_status_), + 0, + offsetof(Impl_, current_status_) - + offsetof(Impl_, previous_status_) + + sizeof(Impl_::current_status_)); } - SharingLog_ToggleShowNotification::~SharingLog_ToggleShowNotification() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ToggleShowNotification::SharedDtor(MessageLite& self) { + SharingLog_ToggleShowNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ToggleShowNotification::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ToggleShowNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ToggleShowNotification(arena); +} +constexpr auto SharingLog_ToggleShowNotification::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ToggleShowNotification), + alignof(SharingLog_ToggleShowNotification)); +} +constexpr auto SharingLog_ToggleShowNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_ToggleShowNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ToggleShowNotification::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ToggleShowNotification::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ToggleShowNotification::ByteSizeLong, + &SharingLog_ToggleShowNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification", + }; } -void SharingLog_ToggleShowNotification::ArenaDtor(void* object) { - SharingLog_ToggleShowNotification* _this = reinterpret_cast< SharingLog_ToggleShowNotification* >(object); - (void)_this; -} -void SharingLog_ToggleShowNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ToggleShowNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ToggleShowNotification_class_data_ = + SharingLog_ToggleShowNotification::InternalGenerateClassData_(); -void SharingLog_ToggleShowNotification::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ToggleShowNotification::GetClassData() const { + return SharingLog_ToggleShowNotification_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_ToggleShowNotification::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ToggleShowNotification_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.current_status_)}}, + // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.current_status_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 2}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ToggleShowNotification::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&previous_status_, 0, static_cast( - reinterpret_cast(¤t_status_) - - reinterpret_cast(&previous_status_)) + sizeof(current_status_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.previous_status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.current_status_) - + reinterpret_cast(&_impl_.previous_status_)) + sizeof(_impl_.current_status_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ToggleShowNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ShowNotificationStatus_IsValid(val))) { - _internal_set_previous_status(static_cast<::location::nearby::proto::sharing::ShowNotificationStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ShowNotificationStatus_IsValid(val))) { - _internal_set_current_status(static_cast<::location::nearby::proto::sharing::ShowNotificationStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ToggleShowNotification::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ToggleShowNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ToggleShowNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ToggleShowNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ToggleShowNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_previous_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_previous_status(), target); } // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_current_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_current_status(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) return target; } -size_t SharingLog_ToggleShowNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ToggleShowNotification::ByteSizeLong(const MessageLite& base) { + const SharingLog_ToggleShowNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ToggleShowNotification::ByteSizeLong() const { + const SharingLog_ToggleShowNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_previous_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_previous_status()); } - // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_current_status()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_current_status()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ToggleShowNotification::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ToggleShowNotification::MergeFrom(const SharingLog_ToggleShowNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - previous_status_ = from.previous_status_; - } - if (cached_has_bits & 0x00000002u) { - current_status_ = from.current_status_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ToggleShowNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.previous_status_ = from._impl_.previous_status_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.current_status_ = from._impl_.current_status_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ToggleShowNotification::CopyFrom(const SharingLog_ToggleShowNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ToggleShowNotification::IsInitialized() const { - return true; -} -void SharingLog_ToggleShowNotification::InternalSwap(SharingLog_ToggleShowNotification* other) { - using std::swap; +void SharingLog_ToggleShowNotification::InternalSwap(SharingLog_ToggleShowNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, current_status_) - + sizeof(SharingLog_ToggleShowNotification::current_status_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, previous_status_)>( - reinterpret_cast(&previous_status_), - reinterpret_cast(&other->previous_status_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.current_status_) + + sizeof(SharingLog_ToggleShowNotification::_impl_.current_status_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ToggleShowNotification, _impl_.previous_status_)>( + reinterpret_cast(&_impl_.previous_status_), + reinterpret_cast(&other->_impl_.previous_status_)); } -std::string SharingLog_ToggleShowNotification::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification"; -} - - // =================================================================== class SharingLog_DecryptCertificateFailure::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_._has_bits_); }; -SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DecryptCertificateFailure_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) } -SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure(const SharingLog_DecryptCertificateFailure& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - status_ = from.status_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) +SharingLog_DecryptCertificateFailure::SharingLog_DecryptCertificateFailure( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DecryptCertificateFailure& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_DecryptCertificateFailure_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_DecryptCertificateFailure::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_DecryptCertificateFailure::SharedCtor() { -status_ = 0; +inline void SharingLog_DecryptCertificateFailure::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.status_ = {}; } - SharingLog_DecryptCertificateFailure::~SharingLog_DecryptCertificateFailure() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_DecryptCertificateFailure::SharedDtor(MessageLite& self) { + SharingLog_DecryptCertificateFailure& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_DecryptCertificateFailure::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_DecryptCertificateFailure::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_DecryptCertificateFailure(arena); +} +constexpr auto SharingLog_DecryptCertificateFailure::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_DecryptCertificateFailure), + alignof(SharingLog_DecryptCertificateFailure)); +} +constexpr auto SharingLog_DecryptCertificateFailure::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_DecryptCertificateFailure_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_DecryptCertificateFailure::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_DecryptCertificateFailure::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_DecryptCertificateFailure::ByteSizeLong, + &SharingLog_DecryptCertificateFailure::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure", + }; } -void SharingLog_DecryptCertificateFailure::ArenaDtor(void* object) { - SharingLog_DecryptCertificateFailure* _this = reinterpret_cast< SharingLog_DecryptCertificateFailure* >(object); - (void)_this; -} -void SharingLog_DecryptCertificateFailure::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_DecryptCertificateFailure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DecryptCertificateFailure_class_data_ = + SharingLog_DecryptCertificateFailure::InternalGenerateClassData_(); -void SharingLog_DecryptCertificateFailure::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_DecryptCertificateFailure::GetClassData() const { + return SharingLog_DecryptCertificateFailure_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_DecryptCertificateFailure::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_DecryptCertificateFailure_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_DecryptCertificateFailure, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_DecryptCertificateFailure::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - status_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.status_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_DecryptCertificateFailure::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DecryptCertificateFailureStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::DecryptCertificateFailureStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_DecryptCertificateFailure::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_DecryptCertificateFailure::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_DecryptCertificateFailure& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_DecryptCertificateFailure::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_DecryptCertificateFailure& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) return target; } -size_t SharingLog_DecryptCertificateFailure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_DecryptCertificateFailure::ByteSizeLong(const MessageLite& base) { + const SharingLog_DecryptCertificateFailure& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_DecryptCertificateFailure::ByteSizeLong() const { + const SharingLog_DecryptCertificateFailure& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + { + // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_DecryptCertificateFailure::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_DecryptCertificateFailure::MergeFrom(const SharingLog_DecryptCertificateFailure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_status()) { - _internal_set_status(from._internal_status()); +void SharingLog_DecryptCertificateFailure::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.status_ = from._impl_.status_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_DecryptCertificateFailure::CopyFrom(const SharingLog_DecryptCertificateFailure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_DecryptCertificateFailure::IsInitialized() const { - return true; -} -void SharingLog_DecryptCertificateFailure::InternalSwap(SharingLog_DecryptCertificateFailure* other) { - using std::swap; +void SharingLog_DecryptCertificateFailure::InternalSwap(SharingLog_DecryptCertificateFailure* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(status_, other->status_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.status_, other->_impl_.status_); } -std::string SharingLog_DecryptCertificateFailure::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure"; -} - - // =================================================================== class SharingLog_ShowAllowPermissionAutoAccess::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_activity_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_allowed_auto_access(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_is_wifi_missing(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_is_bt_missing(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._has_bits_); }; -SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShowAllowPermissionAutoAccess_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) } -SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess(const SharingLog_ShowAllowPermissionAutoAccess& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&activity_name_, &from.activity_name_, - static_cast(reinterpret_cast(&is_bt_missing_) - - reinterpret_cast(&activity_name_)) + sizeof(is_bt_missing_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) +SharingLog_ShowAllowPermissionAutoAccess::SharingLog_ShowAllowPermissionAutoAccess( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowAllowPermissionAutoAccess& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShowAllowPermissionAutoAccess_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ShowAllowPermissionAutoAccess::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ShowAllowPermissionAutoAccess::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&activity_name_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_bt_missing_) - - reinterpret_cast(&activity_name_)) + sizeof(is_bt_missing_)); +inline void SharingLog_ShowAllowPermissionAutoAccess::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, activity_name_), + 0, + offsetof(Impl_, is_bt_missing_) - + offsetof(Impl_, activity_name_) + + sizeof(Impl_::is_bt_missing_)); } - SharingLog_ShowAllowPermissionAutoAccess::~SharingLog_ShowAllowPermissionAutoAccess() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ShowAllowPermissionAutoAccess::SharedDtor(MessageLite& self) { + SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ShowAllowPermissionAutoAccess::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ShowAllowPermissionAutoAccess::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ShowAllowPermissionAutoAccess(arena); +} +constexpr auto SharingLog_ShowAllowPermissionAutoAccess::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShowAllowPermissionAutoAccess), + alignof(SharingLog_ShowAllowPermissionAutoAccess)); +} +constexpr auto SharingLog_ShowAllowPermissionAutoAccess::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<72>{ + { + &_SharingLog_ShowAllowPermissionAutoAccess_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ShowAllowPermissionAutoAccess::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ShowAllowPermissionAutoAccess::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong, + &SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess", + }; } -void SharingLog_ShowAllowPermissionAutoAccess::ArenaDtor(void* object) { - SharingLog_ShowAllowPermissionAutoAccess* _this = reinterpret_cast< SharingLog_ShowAllowPermissionAutoAccess* >(object); - (void)_this; -} -void SharingLog_ShowAllowPermissionAutoAccess::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ShowAllowPermissionAutoAccess::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ShowAllowPermissionAutoAccess_class_data_ = + SharingLog_ShowAllowPermissionAutoAccess::InternalGenerateClassData_(); -void SharingLog_ShowAllowPermissionAutoAccess::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ShowAllowPermissionAutoAccess::GetClassData() const { + return SharingLog_ShowAllowPermissionAutoAccess_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SharingLog_ShowAllowPermissionAutoAccess::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ShowAllowPermissionAutoAccess_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool is_bt_missing = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_)}}, + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 12, + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_)}}, + // optional bool allowed_auto_access = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.allowed_auto_access_)}}, + // optional bool is_wifi_missing = 3; + {::_pbi::TcParser::FastV8S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_wifi_missing_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool allowed_auto_access = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.allowed_auto_access_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_wifi_missing = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_wifi_missing_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_bt_missing = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 12}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ShowAllowPermissionAutoAccess::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&activity_name_, 0, static_cast( - reinterpret_cast(&is_bt_missing_) - - reinterpret_cast(&activity_name_)) + sizeof(is_bt_missing_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.activity_name_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_bt_missing_) - + reinterpret_cast(&_impl_.activity_name_)) + sizeof(_impl_.is_bt_missing_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ShowAllowPermissionAutoAccess::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ActivityName_IsValid(val))) { - _internal_set_activity_name(static_cast<::location::nearby::proto::sharing::ActivityName>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool allowed_auto_access = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_allowed_auto_access(&has_bits); - allowed_auto_access_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_wifi_missing = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_is_wifi_missing(&has_bits); - is_wifi_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_bt_missing = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_is_bt_missing(&has_bits); - is_bt_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ShowAllowPermissionAutoAccess::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ShowAllowPermissionAutoAccess& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_activity_name(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_activity_name(), target); } // optional bool allowed_auto_access = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_allowed_auto_access(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_allowed_auto_access(), target); } // optional bool is_wifi_missing = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_is_wifi_missing(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_is_wifi_missing(), target); } // optional bool is_bt_missing = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_bt_missing(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_bt_missing(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) return target; } -size_t SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong(const MessageLite& base) { + const SharingLog_ShowAllowPermissionAutoAccess& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ShowAllowPermissionAutoAccess::ByteSizeLong() const { + const SharingLog_ShowAllowPermissionAutoAccess& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x0000000eU & cached_has_bits) * 2; + { // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_activity_name()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_activity_name()); } - - // optional bool allowed_auto_access = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional bool is_wifi_missing = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - - // optional bool is_bt_missing = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ShowAllowPermissionAutoAccess::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ShowAllowPermissionAutoAccess::MergeFrom(const SharingLog_ShowAllowPermissionAutoAccess& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - activity_name_ = from.activity_name_; - } - if (cached_has_bits & 0x00000002u) { - allowed_auto_access_ = from.allowed_auto_access_; - } - if (cached_has_bits & 0x00000004u) { - is_wifi_missing_ = from.is_wifi_missing_; - } - if (cached_has_bits & 0x00000008u) { - is_bt_missing_ = from.is_bt_missing_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ShowAllowPermissionAutoAccess::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.activity_name_ = from._impl_.activity_name_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.allowed_auto_access_ = from._impl_.allowed_auto_access_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.is_wifi_missing_ = from._impl_.is_wifi_missing_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.is_bt_missing_ = from._impl_.is_bt_missing_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ShowAllowPermissionAutoAccess::CopyFrom(const SharingLog_ShowAllowPermissionAutoAccess& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ShowAllowPermissionAutoAccess::IsInitialized() const { - return true; -} -void SharingLog_ShowAllowPermissionAutoAccess::InternalSwap(SharingLog_ShowAllowPermissionAutoAccess* other) { - using std::swap; +void SharingLog_ShowAllowPermissionAutoAccess::InternalSwap(SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, is_bt_missing_) - + sizeof(SharingLog_ShowAllowPermissionAutoAccess::is_bt_missing_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, activity_name_)>( - reinterpret_cast(&activity_name_), - reinterpret_cast(&other->activity_name_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.is_bt_missing_) + + sizeof(SharingLog_ShowAllowPermissionAutoAccess::_impl_.is_bt_missing_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ShowAllowPermissionAutoAccess, _impl_.activity_name_)>( + reinterpret_cast(&_impl_.activity_name_), + reinterpret_cast(&other->_impl_.activity_name_)); } -std::string SharingLog_ShowAllowPermissionAutoAccess::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess"; -} - - // =================================================================== class SharingLog_TapQrCode::_Internal { public: }; -SharingLog_TapQrCode::SharingLog_TapQrCode(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TapQrCode::SharingLog_TapQrCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQrCode_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TapQrCode) } -SharingLog_TapQrCode::SharingLog_TapQrCode(const SharingLog_TapQrCode& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TapQrCode) +SharingLog_TapQrCode::SharingLog_TapQrCode( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQrCode& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TapQrCode_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TapQrCode::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TapQrCode::SharedCtor() { +inline void SharingLog_TapQrCode::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_TapQrCode::~SharingLog_TapQrCode() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TapQrCode::SharedDtor(MessageLite& self) { + SharingLog_TapQrCode& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TapQrCode::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TapQrCode::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TapQrCode(arena); +} +constexpr auto SharingLog_TapQrCode::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TapQrCode), + alignof(SharingLog_TapQrCode)); +} +constexpr auto SharingLog_TapQrCode::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<52>{ + { + &_SharingLog_TapQrCode_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TapQrCode::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TapQrCode::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TapQrCode::ByteSizeLong, + &SharingLog_TapQrCode::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TapQrCode, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TapQrCode", + }; } -void SharingLog_TapQrCode::ArenaDtor(void* object) { - SharingLog_TapQrCode* _this = reinterpret_cast< SharingLog_TapQrCode* >(object); - (void)_this; -} -void SharingLog_TapQrCode::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TapQrCode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<52> SharingLog_TapQrCode_class_data_ = + SharingLog_TapQrCode::InternalGenerateClassData_(); -void SharingLog_TapQrCode::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TapQrCode::GetClassData() const { + return SharingLog_TapQrCode_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_TapQrCode::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_TapQrCode_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TapQrCode::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TapQrCode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TapQrCode::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQrCode::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TapQrCode& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TapQrCode::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TapQrCode& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TapQrCode) return target; } -size_t SharingLog_TapQrCode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TapQrCode::ByteSizeLong(const MessageLite& base) { + const SharingLog_TapQrCode& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TapQrCode::ByteSizeLong() const { + const SharingLog_TapQrCode& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TapQrCode::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_TapQrCode::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_TapQrCode::MergeFrom(const SharingLog_TapQrCode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TapQrCode::CopyFrom(const SharingLog_TapQrCode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TapQrCode) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TapQrCode::IsInitialized() const { - return true; -} -void SharingLog_TapQrCode::InternalSwap(SharingLog_TapQrCode* other) { - using std::swap; +void SharingLog_TapQrCode::InternalSwap(SharingLog_TapQrCode* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_TapQrCode::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TapQrCode"; -} - - // =================================================================== class SharingLog_QrCodeLinkShown::_Internal { public: }; -SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_QrCodeLinkShown_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) } -SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown(const SharingLog_QrCodeLinkShown& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) +SharingLog_QrCodeLinkShown::SharingLog_QrCodeLinkShown( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeLinkShown& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_QrCodeLinkShown_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_QrCodeLinkShown::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_QrCodeLinkShown::SharedCtor() { +inline void SharingLog_QrCodeLinkShown::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_QrCodeLinkShown::~SharingLog_QrCodeLinkShown() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_QrCodeLinkShown::SharedDtor(MessageLite& self) { + SharingLog_QrCodeLinkShown& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_QrCodeLinkShown::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_QrCodeLinkShown::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_QrCodeLinkShown(arena); +} +constexpr auto SharingLog_QrCodeLinkShown::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_QrCodeLinkShown), + alignof(SharingLog_QrCodeLinkShown)); +} +constexpr auto SharingLog_QrCodeLinkShown::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<58>{ + { + &_SharingLog_QrCodeLinkShown_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_QrCodeLinkShown::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_QrCodeLinkShown::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_QrCodeLinkShown::ByteSizeLong, + &SharingLog_QrCodeLinkShown::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeLinkShown, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown", + }; } -void SharingLog_QrCodeLinkShown::ArenaDtor(void* object) { - SharingLog_QrCodeLinkShown* _this = reinterpret_cast< SharingLog_QrCodeLinkShown* >(object); - (void)_this; -} -void SharingLog_QrCodeLinkShown::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_QrCodeLinkShown::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> SharingLog_QrCodeLinkShown_class_data_ = + SharingLog_QrCodeLinkShown::InternalGenerateClassData_(); -void SharingLog_QrCodeLinkShown::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_QrCodeLinkShown::GetClassData() const { + return SharingLog_QrCodeLinkShown_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_QrCodeLinkShown::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_QrCodeLinkShown_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_QrCodeLinkShown::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_QrCodeLinkShown::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_QrCodeLinkShown::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeLinkShown::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_QrCodeLinkShown& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeLinkShown::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_QrCodeLinkShown& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) return target; } -size_t SharingLog_QrCodeLinkShown::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_QrCodeLinkShown::ByteSizeLong(const MessageLite& base) { + const SharingLog_QrCodeLinkShown& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_QrCodeLinkShown::ByteSizeLong() const { + const SharingLog_QrCodeLinkShown& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_QrCodeLinkShown::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_QrCodeLinkShown::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_QrCodeLinkShown::MergeFrom(const SharingLog_QrCodeLinkShown& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_QrCodeLinkShown::CopyFrom(const SharingLog_QrCodeLinkShown& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_QrCodeLinkShown::IsInitialized() const { - return true; -} -void SharingLog_QrCodeLinkShown::InternalSwap(SharingLog_QrCodeLinkShown* other) { - using std::swap; +void SharingLog_QrCodeLinkShown::InternalSwap(SharingLog_QrCodeLinkShown* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_QrCodeLinkShown::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown"; -} - - // =================================================================== class SharingLog_FastInitDiscoverDevice::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_fast_init_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_fast_init_state(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._has_bits_); }; -SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FastInitDiscoverDevice_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) } -SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice(const SharingLog_FastInitDiscoverDevice& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&fast_init_type_, &from.fast_init_type_, - static_cast(reinterpret_cast(&fast_init_state_) - - reinterpret_cast(&fast_init_type_)) + sizeof(fast_init_state_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) +SharingLog_FastInitDiscoverDevice::SharingLog_FastInitDiscoverDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastInitDiscoverDevice& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FastInitDiscoverDevice_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_FastInitDiscoverDevice::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_FastInitDiscoverDevice::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&fast_init_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&fast_init_state_) - - reinterpret_cast(&fast_init_type_)) + sizeof(fast_init_state_)); +inline void SharingLog_FastInitDiscoverDevice::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, fast_init_type_), + 0, + offsetof(Impl_, fast_init_state_) - + offsetof(Impl_, fast_init_type_) + + sizeof(Impl_::fast_init_state_)); } - SharingLog_FastInitDiscoverDevice::~SharingLog_FastInitDiscoverDevice() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_FastInitDiscoverDevice::SharedDtor(MessageLite& self) { + SharingLog_FastInitDiscoverDevice& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_FastInitDiscoverDevice::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_FastInitDiscoverDevice::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_FastInitDiscoverDevice(arena); +} +constexpr auto SharingLog_FastInitDiscoverDevice::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FastInitDiscoverDevice), + alignof(SharingLog_FastInitDiscoverDevice)); +} +constexpr auto SharingLog_FastInitDiscoverDevice::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_FastInitDiscoverDevice_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_FastInitDiscoverDevice::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_FastInitDiscoverDevice::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_FastInitDiscoverDevice::ByteSizeLong, + &SharingLog_FastInitDiscoverDevice::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice", + }; } -void SharingLog_FastInitDiscoverDevice::ArenaDtor(void* object) { - SharingLog_FastInitDiscoverDevice* _this = reinterpret_cast< SharingLog_FastInitDiscoverDevice* >(object); - (void)_this; -} -void SharingLog_FastInitDiscoverDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_FastInitDiscoverDevice::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_FastInitDiscoverDevice_class_data_ = + SharingLog_FastInitDiscoverDevice::InternalGenerateClassData_(); -void SharingLog_FastInitDiscoverDevice::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_FastInitDiscoverDevice::GetClassData() const { + return SharingLog_FastInitDiscoverDevice_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_FastInitDiscoverDevice::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_._has_bits_), + 0, // no _extensions_ + 3, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967289, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_FastInitDiscoverDevice_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 0, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_)}}, + // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 2}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_FastInitDiscoverDevice::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&fast_init_type_, 0, static_cast( - reinterpret_cast(&fast_init_state_) - - reinterpret_cast(&fast_init_type_)) + sizeof(fast_init_state_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.fast_init_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.fast_init_state_) - + reinterpret_cast(&_impl_.fast_init_type_)) + sizeof(_impl_.fast_init_state_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_FastInitDiscoverDevice::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::FastInitType_IsValid(val))) { - _internal_set_fast_init_type(static_cast<::location::nearby::proto::sharing::FastInitType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::FastInitState_IsValid(val))) { - _internal_set_fast_init_state(static_cast<::location::nearby::proto::sharing::FastInitState>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_FastInitDiscoverDevice::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_FastInitDiscoverDevice::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_FastInitDiscoverDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_FastInitDiscoverDevice::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_FastInitDiscoverDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_fast_init_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_fast_init_type(), target); } // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_fast_init_state(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_fast_init_state(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) return target; } -size_t SharingLog_FastInitDiscoverDevice::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_FastInitDiscoverDevice::ByteSizeLong(const MessageLite& base) { + const SharingLog_FastInitDiscoverDevice& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_FastInitDiscoverDevice::ByteSizeLong() const { + const SharingLog_FastInitDiscoverDevice& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_fast_init_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_fast_init_type()); } - // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_fast_init_state()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_fast_init_state()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_FastInitDiscoverDevice::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_FastInitDiscoverDevice::MergeFrom(const SharingLog_FastInitDiscoverDevice& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - fast_init_type_ = from.fast_init_type_; - } - if (cached_has_bits & 0x00000002u) { - fast_init_state_ = from.fast_init_state_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_FastInitDiscoverDevice::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.fast_init_type_ = from._impl_.fast_init_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.fast_init_state_ = from._impl_.fast_init_state_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_FastInitDiscoverDevice::CopyFrom(const SharingLog_FastInitDiscoverDevice& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_FastInitDiscoverDevice::IsInitialized() const { - return true; -} -void SharingLog_FastInitDiscoverDevice::InternalSwap(SharingLog_FastInitDiscoverDevice* other) { - using std::swap; +void SharingLog_FastInitDiscoverDevice::InternalSwap(SharingLog_FastInitDiscoverDevice* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, fast_init_state_) - + sizeof(SharingLog_FastInitDiscoverDevice::fast_init_state_) - - PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, fast_init_type_)>( - reinterpret_cast(&fast_init_type_), - reinterpret_cast(&other->fast_init_type_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_state_) + + sizeof(SharingLog_FastInitDiscoverDevice::_impl_.fast_init_state_) + - PROTOBUF_FIELD_OFFSET(SharingLog_FastInitDiscoverDevice, _impl_.fast_init_type_)>( + reinterpret_cast(&_impl_.fast_init_type_), + reinterpret_cast(&other->_impl_.fast_init_type_)); } -std::string SharingLog_FastInitDiscoverDevice::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice"; -} - - // =================================================================== class SharingLog_ShareTargetInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_os_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_relationship(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_has_matching_qr_code(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_is_external(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._has_bits_); }; -SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShareTargetInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) } -SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo(const SharingLog_ShareTargetInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&device_type_, &from.device_type_, - static_cast(reinterpret_cast(&is_external_) - - reinterpret_cast(&device_type_)) + sizeof(is_external_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) +SharingLog_ShareTargetInfo::SharingLog_ShareTargetInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShareTargetInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShareTargetInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ShareTargetInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ShareTargetInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&device_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_external_) - - reinterpret_cast(&device_type_)) + sizeof(is_external_)); +inline void SharingLog_ShareTargetInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, device_type_), + 0, + offsetof(Impl_, is_external_) - + offsetof(Impl_, device_type_) + + sizeof(Impl_::is_external_)); } - SharingLog_ShareTargetInfo::~SharingLog_ShareTargetInfo() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ShareTargetInfo::SharedDtor(MessageLite& self) { + SharingLog_ShareTargetInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ShareTargetInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ShareTargetInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ShareTargetInfo(arena); +} +constexpr auto SharingLog_ShareTargetInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShareTargetInfo), + alignof(SharingLog_ShareTargetInfo)); +} +constexpr auto SharingLog_ShareTargetInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<58>{ + { + &_SharingLog_ShareTargetInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ShareTargetInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ShareTargetInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ShareTargetInfo::ByteSizeLong, + &SharingLog_ShareTargetInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo", + }; } -void SharingLog_ShareTargetInfo::ArenaDtor(void* object) { - SharingLog_ShareTargetInfo* _this = reinterpret_cast< SharingLog_ShareTargetInfo* >(object); - (void)_this; -} -void SharingLog_ShareTargetInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ShareTargetInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ShareTargetInfo_class_data_ = + SharingLog_ShareTargetInfo::InternalGenerateClassData_(); -void SharingLog_ShareTargetInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ShareTargetInfo::GetClassData() const { + return SharingLog_ShareTargetInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 3, 0, 2> +SharingLog_ShareTargetInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ShareTargetInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.DeviceType device_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_)}}, + // optional .location.nearby.proto.sharing.OSType os_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.os_type_)}}, + // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 2, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_relationship_)}}, + // optional bool has_matching_qr_code = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.has_matching_qr_code_)}}, + // optional bool is_external = 5; + {::_pbi::TcParser::FastV8S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.is_external_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.DeviceType device_type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.OSType os_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.os_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_relationship_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool has_matching_qr_code = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.has_matching_qr_code_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_external = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.is_external_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 6}, + {0, 5}, + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ShareTargetInfo::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&device_type_, 0, static_cast( - reinterpret_cast(&is_external_) - - reinterpret_cast(&device_type_)) + sizeof(is_external_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.device_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_external_) - + reinterpret_cast(&_impl_.device_type_)) + sizeof(_impl_.is_external_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ShareTargetInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.DeviceType device_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::location::nearby::proto::sharing::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.OSType os_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::OSType_IsValid(val))) { - _internal_set_os_type(static_cast<::location::nearby::proto::sharing::OSType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DeviceRelationship_IsValid(val))) { - _internal_set_device_relationship(static_cast<::location::nearby::proto::sharing::DeviceRelationship>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool has_matching_qr_code = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_has_matching_qr_code(&has_bits); - has_matching_qr_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_external = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_is_external(&has_bits); - is_external_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ShareTargetInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ShareTargetInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ShareTargetInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ShareTargetInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ShareTargetInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.DeviceType device_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_device_type(), target); } // optional .location.nearby.proto.sharing.OSType os_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_os_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_os_type(), target); } // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_device_relationship(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_device_relationship(), target); } // optional bool has_matching_qr_code = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_has_matching_qr_code(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_has_matching_qr_code(), target); } // optional bool is_external = 5; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_external(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_external(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) return target; } -size_t SharingLog_ShareTargetInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ShareTargetInfo::ByteSizeLong(const MessageLite& base) { + const SharingLog_ShareTargetInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ShareTargetInfo::ByteSizeLong() const { + const SharingLog_ShareTargetInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += ::absl::popcount(0x00000018U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional .location.nearby.proto.sharing.DeviceType device_type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - // optional .location.nearby.proto.sharing.OSType os_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_os_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_os_type()); } - // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_relationship()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_relationship()); } - - // optional bool has_matching_qr_code = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional bool is_external = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ShareTargetInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ShareTargetInfo::MergeFrom(const SharingLog_ShareTargetInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - device_type_ = from.device_type_; - } - if (cached_has_bits & 0x00000002u) { - os_type_ = from.os_type_; - } - if (cached_has_bits & 0x00000004u) { - device_relationship_ = from.device_relationship_; - } - if (cached_has_bits & 0x00000008u) { - has_matching_qr_code_ = from.has_matching_qr_code_; - } - if (cached_has_bits & 0x00000010u) { - is_external_ = from.is_external_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_ShareTargetInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.os_type_ = from._impl_.os_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.device_relationship_ = from._impl_.device_relationship_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.has_matching_qr_code_ = from._impl_.has_matching_qr_code_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.is_external_ = from._impl_.is_external_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ShareTargetInfo::CopyFrom(const SharingLog_ShareTargetInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ShareTargetInfo::IsInitialized() const { - return true; -} -void SharingLog_ShareTargetInfo::InternalSwap(SharingLog_ShareTargetInfo* other) { - using std::swap; +void SharingLog_ShareTargetInfo::InternalSwap(SharingLog_ShareTargetInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, is_external_) - + sizeof(SharingLog_ShareTargetInfo::is_external_) - - PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, device_type_)>( - reinterpret_cast(&device_type_), - reinterpret_cast(&other->device_type_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.is_external_) + + sizeof(SharingLog_ShareTargetInfo::_impl_.is_external_) + - PROTOBUF_FIELD_OFFSET(SharingLog_ShareTargetInfo, _impl_.device_type_)>( + reinterpret_cast(&_impl_.device_type_), + reinterpret_cast(&other->_impl_.device_type_)); } -std::string SharingLog_ShareTargetInfo::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo"; -} - - // =================================================================== class SharingLog_AttachmentsInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_required_app(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._has_bits_); }; -SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - text_attachment_(arena), - file_attachment_(arena), - wifi_credentials_attachment_(arena), - app_attachment_(arena), - stream_attachment_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AttachmentsInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) } -SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo(const SharingLog_AttachmentsInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - text_attachment_(from.text_attachment_), - file_attachment_(from.file_attachment_), - wifi_credentials_attachment_(from.wifi_credentials_attachment_), - app_attachment_(from.app_attachment_), - stream_attachment_(from.stream_attachment_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - required_app_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - required_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_required_app()) { - required_app_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_required_app(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE SharingLog_AttachmentsInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + text_attachment_{visibility, arena, from.text_attachment_}, + file_attachment_{visibility, arena, from.file_attachment_}, + wifi_credentials_attachment_{visibility, arena, from.wifi_credentials_attachment_}, + app_attachment_{visibility, arena, from.app_attachment_}, + stream_attachment_{visibility, arena, from.stream_attachment_}, + required_app_(arena, from.required_app_) {} + +SharingLog_AttachmentsInfo::SharingLog_AttachmentsInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_AttachmentsInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AttachmentsInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_AttachmentsInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) } +PROTOBUF_NDEBUG_INLINE SharingLog_AttachmentsInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + text_attachment_{visibility, arena}, + file_attachment_{visibility, arena}, + wifi_credentials_attachment_{visibility, arena}, + app_attachment_{visibility, arena}, + stream_attachment_{visibility, arena}, + required_app_(arena) {} -inline void SharingLog_AttachmentsInfo::SharedCtor() { -required_app_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - required_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void SharingLog_AttachmentsInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_AttachmentsInfo::~SharingLog_AttachmentsInfo() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AttachmentsInfo::SharedDtor(MessageLite& self) { + SharingLog_AttachmentsInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.required_app_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_AttachmentsInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - required_app_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AttachmentsInfo(arena); +} +constexpr auto SharingLog_AttachmentsInfo::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_) + + decltype(SharingLog_AttachmentsInfo::_impl_.text_attachment_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_) + + decltype(SharingLog_AttachmentsInfo::_impl_.file_attachment_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_) + + decltype(SharingLog_AttachmentsInfo::_impl_.wifi_credentials_attachment_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_) + + decltype(SharingLog_AttachmentsInfo::_impl_.app_attachment_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_) + + decltype(SharingLog_AttachmentsInfo::_impl_.stream_attachment_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(SharingLog_AttachmentsInfo), alignof(SharingLog_AttachmentsInfo), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SharingLog_AttachmentsInfo::PlacementNew_, + sizeof(SharingLog_AttachmentsInfo), + alignof(SharingLog_AttachmentsInfo)); + } +} +constexpr auto SharingLog_AttachmentsInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<58>{ + { + &_SharingLog_AttachmentsInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AttachmentsInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AttachmentsInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AttachmentsInfo::ByteSizeLong, + &SharingLog_AttachmentsInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo", + }; } -void SharingLog_AttachmentsInfo::ArenaDtor(void* object) { - SharingLog_AttachmentsInfo* _this = reinterpret_cast< SharingLog_AttachmentsInfo* >(object); - (void)_this; -} -void SharingLog_AttachmentsInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AttachmentsInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> SharingLog_AttachmentsInfo_class_data_ = + SharingLog_AttachmentsInfo::InternalGenerateClassData_(); -void SharingLog_AttachmentsInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::GetClassData() const { + return SharingLog_AttachmentsInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 5, 0, 2> +SharingLog_AttachmentsInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 5, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_AttachmentsInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; + {::_pbi::TcParser::FastMtR1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; + {::_pbi::TcParser::FastMtR1, + {18, 1, 1, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_)}}, + // optional string required_app = 3; + {::_pbi::TcParser::FastBS1, + {26, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.required_app_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + {::_pbi::TcParser::FastMtR1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + {::_pbi::TcParser::FastMtR1, + {42, 3, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + {::_pbi::TcParser::FastMtR1, + {50, 4, 4, + PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.text_attachment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.file_attachment_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string required_app = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.required_app_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.wifi_credentials_attachment_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.app_attachment_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_AttachmentsInfo, _impl_.stream_attachment_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AttachmentsInfo::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - text_attachment_.Clear(); - file_attachment_.Clear(); - wifi_credentials_attachment_.Clear(); - app_attachment_.Clear(); - stream_attachment_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - required_app_.ClearNonDefaultToEmpty(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* SharingLog_AttachmentsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_text_attachment(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_file_attachment(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // optional string required_app = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_required_app(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_wifi_credentials_attachment(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_app_attachment(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_stream_attachment(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.text_attachment_.Clear(); } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.file_attachment_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.wifi_credentials_attachment_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + _impl_.app_attachment_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + _impl_.stream_attachment_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.required_app_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -uint8_t* SharingLog_AttachmentsInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AttachmentsInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AttachmentsInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_text_attachment_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_text_attachment(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_text_attachment_size()); + i < n; i++) { + const auto& repfield = this_._internal_text_attachment().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } } // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_file_attachment_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_file_attachment(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_file_attachment_size()); + i < n; i++) { + const auto& repfield = this_._internal_file_attachment().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } } - cached_has_bits = _has_bits_[0]; // optional string required_app = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_required_app(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_required_app(); + target = stream->WriteStringMaybeAliased(3, _s, target); } // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_wifi_credentials_attachment_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_wifi_credentials_attachment(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_wifi_credentials_attachment_size()); + i < n; i++) { + const auto& repfield = this_._internal_wifi_credentials_attachment().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } } // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_app_attachment_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_app_attachment(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_app_attachment_size()); + i < n; i++) { + const auto& repfield = this_._internal_app_attachment().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, repfield, repfield.GetCachedSize(), + target, stream); + } } // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_stream_attachment_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_stream_attachment(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_stream_attachment_size()); + i < n; i++) { + const auto& repfield = this_._internal_stream_attachment().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) return target; } -size_t SharingLog_AttachmentsInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AttachmentsInfo::ByteSizeLong(const MessageLite& base) { + const SharingLog_AttachmentsInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AttachmentsInfo::ByteSizeLong() const { + const SharingLog_AttachmentsInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; - total_size += 1UL * this->_internal_text_attachment_size(); - for (const auto& msg : this->text_attachment_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_text_attachment_size(); + for (const auto& msg : this_._internal_text_attachment()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += 1UL * this_._internal_file_attachment_size(); + for (const auto& msg : this_._internal_file_attachment()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + total_size += 1UL * this_._internal_wifi_credentials_attachment_size(); + for (const auto& msg : this_._internal_wifi_credentials_attachment()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + total_size += 1UL * this_._internal_app_attachment_size(); + for (const auto& msg : this_._internal_app_attachment()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + total_size += 1UL * this_._internal_stream_attachment_size(); + for (const auto& msg : this_._internal_stream_attachment()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // optional string required_app = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_required_app()); + } } - - // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; - total_size += 1UL * this->_internal_file_attachment_size(); - for (const auto& msg : this->file_attachment_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - total_size += 1UL * this->_internal_wifi_credentials_attachment_size(); - for (const auto& msg : this->wifi_credentials_attachment_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - total_size += 1UL * this->_internal_app_attachment_size(); - for (const auto& msg : this->app_attachment_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - total_size += 1UL * this->_internal_stream_attachment_size(); - for (const auto& msg : this->stream_attachment_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // optional string required_app = 3; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_required_app()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AttachmentsInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AttachmentsInfo::MergeFrom(const SharingLog_AttachmentsInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - text_attachment_.MergeFrom(from.text_attachment_); - file_attachment_.MergeFrom(from.file_attachment_); - wifi_credentials_attachment_.MergeFrom(from.wifi_credentials_attachment_); - app_attachment_.MergeFrom(from.app_attachment_); - stream_attachment_.MergeFrom(from.stream_attachment_); - if (from._internal_has_required_app()) { - _internal_set_required_app(from._internal_required_app()); +void SharingLog_AttachmentsInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_text_attachment()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_text_attachment()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_file_attachment()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_file_attachment()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_wifi_credentials_attachment()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_wifi_credentials_attachment()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + _this->_internal_mutable_app_attachment()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_app_attachment()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) { + _this->_internal_mutable_stream_attachment()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_stream_attachment()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_required_app(from._internal_required_app()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AttachmentsInfo::CopyFrom(const SharingLog_AttachmentsInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AttachmentsInfo::IsInitialized() const { - return true; -} -void SharingLog_AttachmentsInfo::InternalSwap(SharingLog_AttachmentsInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_AttachmentsInfo::InternalSwap(SharingLog_AttachmentsInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - text_attachment_.InternalSwap(&other->text_attachment_); - file_attachment_.InternalSwap(&other->file_attachment_); - wifi_credentials_attachment_.InternalSwap(&other->wifi_credentials_attachment_); - app_attachment_.InternalSwap(&other->app_attachment_); - stream_attachment_.InternalSwap(&other->stream_attachment_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &required_app_, lhs_arena, - &other->required_app_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.text_attachment_.InternalSwap(&other->_impl_.text_attachment_); + _impl_.file_attachment_.InternalSwap(&other->_impl_.file_attachment_); + _impl_.wifi_credentials_attachment_.InternalSwap(&other->_impl_.wifi_credentials_attachment_); + _impl_.app_attachment_.InternalSwap(&other->_impl_.app_attachment_); + _impl_.stream_attachment_.InternalSwap(&other->_impl_.stream_attachment_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.required_app_, &other->_impl_.required_app_, arena); } -std::string SharingLog_AttachmentsInfo::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo"; -} - - // =================================================================== class SharingLog_TextAttachment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_size_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_batch_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_source_type(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._has_bits_); }; -SharingLog_TextAttachment::SharingLog_TextAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_TextAttachment::SharingLog_TextAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TextAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.TextAttachment) } -SharingLog_TextAttachment::SharingLog_TextAttachment(const SharingLog_TextAttachment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&size_bytes_, &from.size_bytes_, - static_cast(reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.TextAttachment) +SharingLog_TextAttachment::SharingLog_TextAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TextAttachment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_TextAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_TextAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_TextAttachment::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&size_bytes_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); +inline void SharingLog_TextAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, size_bytes_), + 0, + offsetof(Impl_, batch_id_) - + offsetof(Impl_, size_bytes_) + + sizeof(Impl_::batch_id_)); } - SharingLog_TextAttachment::~SharingLog_TextAttachment() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_TextAttachment::SharedDtor(MessageLite& self) { + SharingLog_TextAttachment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_TextAttachment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_TextAttachment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_TextAttachment(arena); +} +constexpr auto SharingLog_TextAttachment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_TextAttachment), + alignof(SharingLog_TextAttachment)); +} +constexpr auto SharingLog_TextAttachment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_TextAttachment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_TextAttachment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_TextAttachment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_TextAttachment::ByteSizeLong, + &SharingLog_TextAttachment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.TextAttachment", + }; } -void SharingLog_TextAttachment::ArenaDtor(void* object) { - SharingLog_TextAttachment* _this = reinterpret_cast< SharingLog_TextAttachment* >(object); - (void)_this; -} -void SharingLog_TextAttachment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_TextAttachment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_TextAttachment_class_data_ = + SharingLog_TextAttachment::InternalGenerateClassData_(); -void SharingLog_TextAttachment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_TextAttachment::GetClassData() const { + return SharingLog_TextAttachment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 2, 0, 2> +SharingLog_TextAttachment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_TextAttachment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 2, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.source_type_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.type_)}}, + // optional int64 size_bytes = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_)}}, + // optional int64 batch_id = 3; + {::_pbi::TcParser::FastV64S1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.batch_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 size_bytes = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 batch_id = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 3}, + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_TextAttachment::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&size_bytes_, 0, static_cast( - reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.size_bytes_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.batch_id_) - + reinterpret_cast(&_impl_.size_bytes_)) + sizeof(_impl_.batch_id_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_TextAttachment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type_IsValid(val))) { - _internal_set_type(static_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 size_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_size_bytes(&has_bits); - size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 batch_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_batch_id(&has_bits); - batch_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(val))) { - _internal_set_source_type(static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_TextAttachment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_TextAttachment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_TextAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_TextAttachment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_TextAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional int64 size_bytes = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_size_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_size_bytes(), target); } // optional int64 batch_id = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_batch_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_batch_id(), target); } // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_source_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_source_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.TextAttachment) return target; } -size_t SharingLog_TextAttachment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_TextAttachment::ByteSizeLong(const MessageLite& base) { + const SharingLog_TextAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_TextAttachment::ByteSizeLong() const { + const SharingLog_TextAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional int64 size_bytes = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_size_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_size_bytes()); } - // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_type()); } - // optional int64 batch_id = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_batch_id()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_batch_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_TextAttachment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_TextAttachment::MergeFrom(const SharingLog_TextAttachment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - size_bytes_ = from.size_bytes_; - } - if (cached_has_bits & 0x00000002u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000004u) { - source_type_ = from.source_type_; - } - if (cached_has_bits & 0x00000008u) { - batch_id_ = from.batch_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_TextAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.size_bytes_ = from._impl_.size_bytes_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.type_ = from._impl_.type_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.source_type_ = from._impl_.source_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.batch_id_ = from._impl_.batch_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_TextAttachment::CopyFrom(const SharingLog_TextAttachment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.TextAttachment) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_TextAttachment::IsInitialized() const { - return true; -} -void SharingLog_TextAttachment::InternalSwap(SharingLog_TextAttachment* other) { - using std::swap; +void SharingLog_TextAttachment::InternalSwap(SharingLog_TextAttachment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, batch_id_) - + sizeof(SharingLog_TextAttachment::batch_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, size_bytes_)>( - reinterpret_cast(&size_bytes_), - reinterpret_cast(&other->size_bytes_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.batch_id_) + + sizeof(SharingLog_TextAttachment::_impl_.batch_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_TextAttachment, _impl_.size_bytes_)>( + reinterpret_cast(&_impl_.size_bytes_), + reinterpret_cast(&other->_impl_.size_bytes_)); } -std::string SharingLog_TextAttachment::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.TextAttachment"; -} - - // =================================================================== class SharingLog_FileAttachment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_size_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_offset_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_batch_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_source_type(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._has_bits_); }; -SharingLog_FileAttachment::SharingLog_FileAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_FileAttachment::SharingLog_FileAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FileAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.FileAttachment) } -SharingLog_FileAttachment::SharingLog_FileAttachment(const SharingLog_FileAttachment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&size_bytes_, &from.size_bytes_, - static_cast(reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.FileAttachment) +SharingLog_FileAttachment::SharingLog_FileAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FileAttachment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_FileAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_FileAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_FileAttachment::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&size_bytes_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); +inline void SharingLog_FileAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, size_bytes_), + 0, + offsetof(Impl_, batch_id_) - + offsetof(Impl_, size_bytes_) + + sizeof(Impl_::batch_id_)); } - SharingLog_FileAttachment::~SharingLog_FileAttachment() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_FileAttachment::SharedDtor(MessageLite& self) { + SharingLog_FileAttachment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_FileAttachment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_FileAttachment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_FileAttachment(arena); +} +constexpr auto SharingLog_FileAttachment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_FileAttachment), + alignof(SharingLog_FileAttachment)); +} +constexpr auto SharingLog_FileAttachment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_FileAttachment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_FileAttachment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_FileAttachment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_FileAttachment::ByteSizeLong, + &SharingLog_FileAttachment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.FileAttachment", + }; } -void SharingLog_FileAttachment::ArenaDtor(void* object) { - SharingLog_FileAttachment* _this = reinterpret_cast< SharingLog_FileAttachment* >(object); - (void)_this; -} -void SharingLog_FileAttachment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_FileAttachment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_FileAttachment_class_data_ = + SharingLog_FileAttachment::InternalGenerateClassData_(); -void SharingLog_FileAttachment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_FileAttachment::GetClassData() const { + return SharingLog_FileAttachment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 2, 0, 2> +SharingLog_FileAttachment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967236, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_FileAttachment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.type_)}}, + // optional int64 size_bytes = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 offset_bytes = 4; + {::_pbi::TcParser::FastV64S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.offset_bytes_)}}, + // optional int64 batch_id = 5; + {::_pbi::TcParser::FastV64S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.batch_id_)}}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; + {::_pbi::TcParser::FastEr0S1, + {48, 2, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.source_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 size_bytes = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 offset_bytes = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.offset_bytes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 batch_id = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 6}, + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_FileAttachment::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - ::memset(&size_bytes_, 0, static_cast( - reinterpret_cast(&batch_id_) - - reinterpret_cast(&size_bytes_)) + sizeof(batch_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.size_bytes_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.batch_id_) - + reinterpret_cast(&_impl_.size_bytes_)) + sizeof(_impl_.batch_id_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_FileAttachment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type_IsValid(val))) { - _internal_set_type(static_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 size_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_size_bytes(&has_bits); - size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 offset_bytes = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_offset_bytes(&has_bits); - offset_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 batch_id = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_batch_id(&has_bits); - batch_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(val))) { - _internal_set_source_type(static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_FileAttachment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_FileAttachment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_FileAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_FileAttachment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_FileAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional int64 size_bytes = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_size_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_size_bytes(), target); } // optional int64 offset_bytes = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_offset_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_offset_bytes(), target); } // optional int64 batch_id = 5; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_batch_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( + stream, this_._internal_batch_id(), target); } // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 6, this->_internal_source_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_source_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.FileAttachment) return target; } -size_t SharingLog_FileAttachment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_FileAttachment::ByteSizeLong(const MessageLite& base) { + const SharingLog_FileAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_FileAttachment::ByteSizeLong() const { + const SharingLog_FileAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional int64 size_bytes = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_size_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_size_bytes()); } - // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_type()); } - // optional int64 offset_bytes = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_offset_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_offset_bytes()); } - // optional int64 batch_id = 5; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_batch_id()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_batch_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_FileAttachment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_FileAttachment::MergeFrom(const SharingLog_FileAttachment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - size_bytes_ = from.size_bytes_; - } - if (cached_has_bits & 0x00000002u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000004u) { - source_type_ = from.source_type_; - } - if (cached_has_bits & 0x00000008u) { - offset_bytes_ = from.offset_bytes_; - } - if (cached_has_bits & 0x00000010u) { - batch_id_ = from.batch_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_FileAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.size_bytes_ = from._impl_.size_bytes_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.type_ = from._impl_.type_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.source_type_ = from._impl_.source_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.offset_bytes_ = from._impl_.offset_bytes_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.batch_id_ = from._impl_.batch_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_FileAttachment::CopyFrom(const SharingLog_FileAttachment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.FileAttachment) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_FileAttachment::IsInitialized() const { - return true; -} -void SharingLog_FileAttachment::InternalSwap(SharingLog_FileAttachment* other) { - using std::swap; +void SharingLog_FileAttachment::InternalSwap(SharingLog_FileAttachment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, batch_id_) - + sizeof(SharingLog_FileAttachment::batch_id_) - - PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, size_bytes_)>( - reinterpret_cast(&size_bytes_), - reinterpret_cast(&other->size_bytes_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.batch_id_) + + sizeof(SharingLog_FileAttachment::_impl_.batch_id_) + - PROTOBUF_FIELD_OFFSET(SharingLog_FileAttachment, _impl_.size_bytes_)>( + reinterpret_cast(&_impl_.size_bytes_), + reinterpret_cast(&other->_impl_.size_bytes_)); } -std::string SharingLog_FileAttachment::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.FileAttachment"; -} - - // =================================================================== class SharingLog_WifiCredentialsAttachment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_security_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_batch_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_source_type(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._has_bits_); }; -SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_WifiCredentialsAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) } -SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment(const SharingLog_WifiCredentialsAttachment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&batch_id_, &from.batch_id_, - static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) +SharingLog_WifiCredentialsAttachment::SharingLog_WifiCredentialsAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_WifiCredentialsAttachment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_WifiCredentialsAttachment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_WifiCredentialsAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_WifiCredentialsAttachment::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&batch_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); +inline void SharingLog_WifiCredentialsAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, batch_id_), + 0, + offsetof(Impl_, source_type_) - + offsetof(Impl_, batch_id_) + + sizeof(Impl_::source_type_)); } - SharingLog_WifiCredentialsAttachment::~SharingLog_WifiCredentialsAttachment() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_WifiCredentialsAttachment::SharedDtor(MessageLite& self) { + SharingLog_WifiCredentialsAttachment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_WifiCredentialsAttachment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_WifiCredentialsAttachment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_WifiCredentialsAttachment(arena); +} +constexpr auto SharingLog_WifiCredentialsAttachment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_WifiCredentialsAttachment), + alignof(SharingLog_WifiCredentialsAttachment)); +} +constexpr auto SharingLog_WifiCredentialsAttachment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_WifiCredentialsAttachment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_WifiCredentialsAttachment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_WifiCredentialsAttachment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_WifiCredentialsAttachment::ByteSizeLong, + &SharingLog_WifiCredentialsAttachment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment", + }; } -void SharingLog_WifiCredentialsAttachment::ArenaDtor(void* object) { - SharingLog_WifiCredentialsAttachment* _this = reinterpret_cast< SharingLog_WifiCredentialsAttachment* >(object); - (void)_this; -} -void SharingLog_WifiCredentialsAttachment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_WifiCredentialsAttachment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_WifiCredentialsAttachment_class_data_ = + SharingLog_WifiCredentialsAttachment::InternalGenerateClassData_(); -void SharingLog_WifiCredentialsAttachment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_WifiCredentialsAttachment::GetClassData() const { + return SharingLog_WifiCredentialsAttachment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +SharingLog_WifiCredentialsAttachment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_WifiCredentialsAttachment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int32 security_type = 1; + {::_pbi::TcParser::FastV32S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.security_type_)}}, + // optional int64 batch_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_)}}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 2, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.source_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 security_type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.security_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int64 batch_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_WifiCredentialsAttachment::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&batch_id_, 0, static_cast( - reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.batch_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.source_type_) - + reinterpret_cast(&_impl_.batch_id_)) + sizeof(_impl_.source_type_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_WifiCredentialsAttachment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 security_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_security_type(&has_bits); - security_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 batch_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_batch_id(&has_bits); - batch_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(val))) { - _internal_set_source_type(static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_WifiCredentialsAttachment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_WifiCredentialsAttachment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_WifiCredentialsAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_WifiCredentialsAttachment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_WifiCredentialsAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 security_type = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_security_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_security_type(), target); } // optional int64 batch_id = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_batch_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_batch_id(), target); } // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_source_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_source_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) return target; } -size_t SharingLog_WifiCredentialsAttachment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_WifiCredentialsAttachment::ByteSizeLong(const MessageLite& base) { + const SharingLog_WifiCredentialsAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_WifiCredentialsAttachment::ByteSizeLong() const { + const SharingLog_WifiCredentialsAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional int64 batch_id = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_batch_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_batch_id()); } - // optional int32 security_type = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_security_type()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_security_type()); } - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_WifiCredentialsAttachment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_WifiCredentialsAttachment::MergeFrom(const SharingLog_WifiCredentialsAttachment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - batch_id_ = from.batch_id_; - } - if (cached_has_bits & 0x00000002u) { - security_type_ = from.security_type_; - } - if (cached_has_bits & 0x00000004u) { - source_type_ = from.source_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_WifiCredentialsAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.batch_id_ = from._impl_.batch_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.security_type_ = from._impl_.security_type_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.source_type_ = from._impl_.source_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_WifiCredentialsAttachment::CopyFrom(const SharingLog_WifiCredentialsAttachment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_WifiCredentialsAttachment::IsInitialized() const { - return true; -} -void SharingLog_WifiCredentialsAttachment::InternalSwap(SharingLog_WifiCredentialsAttachment* other) { - using std::swap; +void SharingLog_WifiCredentialsAttachment::InternalSwap(SharingLog_WifiCredentialsAttachment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, source_type_) - + sizeof(SharingLog_WifiCredentialsAttachment::source_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, batch_id_)>( - reinterpret_cast(&batch_id_), - reinterpret_cast(&other->batch_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.source_type_) + + sizeof(SharingLog_WifiCredentialsAttachment::_impl_.source_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_WifiCredentialsAttachment, _impl_.batch_id_)>( + reinterpret_cast(&_impl_.batch_id_), + reinterpret_cast(&other->_impl_.batch_id_)); } -std::string SharingLog_WifiCredentialsAttachment::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment"; -} - - // =================================================================== class SharingLog_AppAttachment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_package_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_size(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_batch_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_source_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._has_bits_); }; -SharingLog_AppAttachment::SharingLog_AppAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AppAttachment::SharingLog_AppAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment) } -SharingLog_AppAttachment::SharingLog_AppAttachment(const SharingLog_AppAttachment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - package_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_package_name()) { - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_package_name(), - GetArenaForAllocation()); - } - ::memcpy(&size_, &from.size_, - static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&size_)) + sizeof(source_type_)); +PROTOBUF_NDEBUG_INLINE SharingLog_AppAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + package_name_(arena, from.package_name_) {} + +SharingLog_AppAttachment::SharingLog_AppAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_AppAttachment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_AppAttachment* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, size_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, size_), + offsetof(Impl_, source_type_) - + offsetof(Impl_, size_) + + sizeof(Impl_::source_type_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment) } +PROTOBUF_NDEBUG_INLINE SharingLog_AppAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + package_name_(arena) {} -inline void SharingLog_AppAttachment::SharedCtor() { -package_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&size_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&size_)) + sizeof(source_type_)); +inline void SharingLog_AppAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, size_), + 0, + offsetof(Impl_, source_type_) - + offsetof(Impl_, size_) + + sizeof(Impl_::source_type_)); } - SharingLog_AppAttachment::~SharingLog_AppAttachment() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AppAttachment::SharedDtor(MessageLite& self) { + SharingLog_AppAttachment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.package_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_AppAttachment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - package_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_AppAttachment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AppAttachment(arena); +} +constexpr auto SharingLog_AppAttachment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_AppAttachment), + alignof(SharingLog_AppAttachment)); +} +constexpr auto SharingLog_AppAttachment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_AppAttachment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AppAttachment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AppAttachment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AppAttachment::ByteSizeLong, + &SharingLog_AppAttachment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AppAttachment", + }; } -void SharingLog_AppAttachment::ArenaDtor(void* object) { - SharingLog_AppAttachment* _this = reinterpret_cast< SharingLog_AppAttachment* >(object); - (void)_this; -} -void SharingLog_AppAttachment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AppAttachment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_AppAttachment_class_data_ = + SharingLog_AppAttachment::InternalGenerateClassData_(); -void SharingLog_AppAttachment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AppAttachment::GetClassData() const { + return SharingLog_AppAttachment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SharingLog_AppAttachment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_AppAttachment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + {::_pbi::TcParser::FastEr0S1, + {32, 3, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_)}}, + // optional string package_name = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.package_name_)}}, + // optional int64 size = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_)}}, + // optional int64 batch_id = 3; + {::_pbi::TcParser::FastV64S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.batch_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string package_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.package_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 size = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 batch_id = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AppAttachment::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - package_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.package_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { - ::memset(&size_, 0, static_cast( - reinterpret_cast(&source_type_) - - reinterpret_cast(&size_)) + sizeof(source_type_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) { + ::memset(&_impl_.size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.source_type_) - + reinterpret_cast(&_impl_.size_)) + sizeof(_impl_.source_type_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AppAttachment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string package_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_package_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 size = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_size(&has_bits); - size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 batch_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_batch_id(&has_bits); - batch_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(val))) { - _internal_set_source_type(static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AppAttachment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AppAttachment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AppAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AppAttachment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AppAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string package_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_package_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_package_name(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional int64 size = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_size(), target); } // optional int64 batch_id = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_batch_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_batch_id(), target); } // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_source_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_source_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AppAttachment) return target; } -size_t SharingLog_AppAttachment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AppAttachment::ByteSizeLong(const MessageLite& base) { + const SharingLog_AppAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AppAttachment::ByteSizeLong() const { + const SharingLog_AppAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string package_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_package_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_package_name()); } - // optional int64 size = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_size()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_size()); } - // optional int64 batch_id = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_batch_id()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_batch_id()); } - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AppAttachment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AppAttachment::MergeFrom(const SharingLog_AppAttachment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_package_name(from._internal_package_name()); - } - if (cached_has_bits & 0x00000002u) { - size_ = from.size_; - } - if (cached_has_bits & 0x00000004u) { - batch_id_ = from.batch_id_; - } - if (cached_has_bits & 0x00000008u) { - source_type_ = from.source_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_AppAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_package_name(from._internal_package_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.size_ = from._impl_.size_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.batch_id_ = from._impl_.batch_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.source_type_ = from._impl_.source_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AppAttachment::CopyFrom(const SharingLog_AppAttachment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppAttachment) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AppAttachment::IsInitialized() const { - return true; -} -void SharingLog_AppAttachment::InternalSwap(SharingLog_AppAttachment* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_AppAttachment::InternalSwap(SharingLog_AppAttachment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &package_name_, lhs_arena, - &other->package_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, source_type_) - + sizeof(SharingLog_AppAttachment::source_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, size_)>( - reinterpret_cast(&size_), - reinterpret_cast(&other->size_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.package_name_, &other->_impl_.package_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.source_type_) + + sizeof(SharingLog_AppAttachment::_impl_.source_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_AppAttachment, _impl_.size_)>( + reinterpret_cast(&_impl_.size_), + reinterpret_cast(&other->_impl_.size_)); } -std::string SharingLog_AppAttachment::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AppAttachment"; -} - - // =================================================================== class SharingLog_StreamAttachment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_package_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_batch_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_source_type(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._has_bits_); }; -SharingLog_StreamAttachment::SharingLog_StreamAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_StreamAttachment::SharingLog_StreamAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_StreamAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) } -SharingLog_StreamAttachment::SharingLog_StreamAttachment(const SharingLog_StreamAttachment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - package_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_package_name()) { - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_package_name(), - GetArenaForAllocation()); - } - ::memcpy(&batch_id_, &from.batch_id_, - static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); +PROTOBUF_NDEBUG_INLINE SharingLog_StreamAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + package_name_(arena, from.package_name_) {} + +SharingLog_StreamAttachment::SharingLog_StreamAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_StreamAttachment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_StreamAttachment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_StreamAttachment* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, batch_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, batch_id_), + offsetof(Impl_, source_type_) - + offsetof(Impl_, batch_id_) + + sizeof(Impl_::source_type_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) } +PROTOBUF_NDEBUG_INLINE SharingLog_StreamAttachment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + package_name_(arena) {} -inline void SharingLog_StreamAttachment::SharedCtor() { -package_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&batch_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); +inline void SharingLog_StreamAttachment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, batch_id_), + 0, + offsetof(Impl_, source_type_) - + offsetof(Impl_, batch_id_) + + sizeof(Impl_::source_type_)); } - SharingLog_StreamAttachment::~SharingLog_StreamAttachment() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_StreamAttachment::SharedDtor(MessageLite& self) { + SharingLog_StreamAttachment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.package_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_StreamAttachment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - package_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_StreamAttachment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_StreamAttachment(arena); +} +constexpr auto SharingLog_StreamAttachment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_StreamAttachment), + alignof(SharingLog_StreamAttachment)); +} +constexpr auto SharingLog_StreamAttachment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_StreamAttachment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_StreamAttachment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_StreamAttachment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_StreamAttachment::ByteSizeLong, + &SharingLog_StreamAttachment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.StreamAttachment", + }; } -void SharingLog_StreamAttachment::ArenaDtor(void* object) { - SharingLog_StreamAttachment* _this = reinterpret_cast< SharingLog_StreamAttachment* >(object); - (void)_this; -} -void SharingLog_StreamAttachment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_StreamAttachment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_StreamAttachment_class_data_ = + SharingLog_StreamAttachment::InternalGenerateClassData_(); -void SharingLog_StreamAttachment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_StreamAttachment::GetClassData() const { + return SharingLog_StreamAttachment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +SharingLog_StreamAttachment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_StreamAttachment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string package_name = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.package_name_)}}, + // optional int64 batch_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_)}}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + {::_pbi::TcParser::FastEr0S1, + {24, 2, 6, + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string package_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.package_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 batch_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 6}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_StreamAttachment::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - package_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.package_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000006u) { - ::memset(&batch_id_, 0, static_cast( - reinterpret_cast(&source_type_) - - reinterpret_cast(&batch_id_)) + sizeof(source_type_)); + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.batch_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.source_type_) - + reinterpret_cast(&_impl_.batch_id_)) + sizeof(_impl_.source_type_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_StreamAttachment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string package_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_package_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 batch_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_batch_id(&has_bits); - batch_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(val))) { - _internal_set_source_type(static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_StreamAttachment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_StreamAttachment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_StreamAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_StreamAttachment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_StreamAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string package_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_package_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_package_name(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional int64 batch_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_batch_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_batch_id(), target); } // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_source_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_source_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) return target; } -size_t SharingLog_StreamAttachment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_StreamAttachment::ByteSizeLong(const MessageLite& base) { + const SharingLog_StreamAttachment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_StreamAttachment::ByteSizeLong() const { + const SharingLog_StreamAttachment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional string package_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_package_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_package_name()); } - // optional int64 batch_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_batch_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_batch_id()); } - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_source_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_StreamAttachment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_StreamAttachment::MergeFrom(const SharingLog_StreamAttachment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_package_name(from._internal_package_name()); - } - if (cached_has_bits & 0x00000002u) { - batch_id_ = from.batch_id_; - } - if (cached_has_bits & 0x00000004u) { - source_type_ = from.source_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_StreamAttachment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_package_name(from._internal_package_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.batch_id_ = from._impl_.batch_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.source_type_ = from._impl_.source_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_StreamAttachment::CopyFrom(const SharingLog_StreamAttachment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_StreamAttachment::IsInitialized() const { - return true; -} -void SharingLog_StreamAttachment::InternalSwap(SharingLog_StreamAttachment* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_StreamAttachment::InternalSwap(SharingLog_StreamAttachment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &package_name_, lhs_arena, - &other->package_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, source_type_) - + sizeof(SharingLog_StreamAttachment::source_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, batch_id_)>( - reinterpret_cast(&batch_id_), - reinterpret_cast(&other->batch_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.package_name_, &other->_impl_.package_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.source_type_) + + sizeof(SharingLog_StreamAttachment::_impl_.source_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_StreamAttachment, _impl_.batch_id_)>( + reinterpret_cast(&_impl_.batch_id_), + reinterpret_cast(&other->_impl_.batch_id_)); } -std::string SharingLog_StreamAttachment::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.StreamAttachment"; -} - - // =================================================================== class SharingLog_CloudAttachmentInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& text_attachment(const SharingLog_CloudAttachmentInfo* msg); - static const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& file_attachment(const SharingLog_CloudAttachmentInfo* msg); - static const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& wifi_credentials_attachment(const SharingLog_CloudAttachmentInfo* msg); - static const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& app_attachment(const SharingLog_CloudAttachmentInfo* msg); - static const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& stream_attachment(const SharingLog_CloudAttachmentInfo* msg); - static void set_has_transferred_bytes(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo, _impl_._oneof_case_); }; -const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& -SharingLog_CloudAttachmentInfo::_Internal::text_attachment(const SharingLog_CloudAttachmentInfo* msg) { - return *msg->CloudAttachment_.text_attachment_; -} -const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& -SharingLog_CloudAttachmentInfo::_Internal::file_attachment(const SharingLog_CloudAttachmentInfo* msg) { - return *msg->CloudAttachment_.file_attachment_; -} -const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& -SharingLog_CloudAttachmentInfo::_Internal::wifi_credentials_attachment(const SharingLog_CloudAttachmentInfo* msg) { - return *msg->CloudAttachment_.wifi_credentials_attachment_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& -SharingLog_CloudAttachmentInfo::_Internal::app_attachment(const SharingLog_CloudAttachmentInfo* msg) { - return *msg->CloudAttachment_.app_attachment_; -} -const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& -SharingLog_CloudAttachmentInfo::_Internal::stream_attachment(const SharingLog_CloudAttachmentInfo* msg) { - return *msg->CloudAttachment_.stream_attachment_; -} -void SharingLog_CloudAttachmentInfo::set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* text_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void SharingLog_CloudAttachmentInfo::set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE text_attachment) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_CloudAttachment(); if (text_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>::GetOwningArena(text_attachment); + ::google::protobuf::Arena* submessage_arena = text_attachment->GetArena(); if (message_arena != submessage_arena) { - text_attachment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, text_attachment, submessage_arena); + text_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, text_attachment, submessage_arena); } set_has_text_attachment(); - CloudAttachment_.text_attachment_ = text_attachment; + _impl_.CloudAttachment_.text_attachment_ = text_attachment; } // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) } -void SharingLog_CloudAttachmentInfo::set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* file_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void SharingLog_CloudAttachmentInfo::set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE file_attachment) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_CloudAttachment(); if (file_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>::GetOwningArena(file_attachment); + ::google::protobuf::Arena* submessage_arena = file_attachment->GetArena(); if (message_arena != submessage_arena) { - file_attachment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, file_attachment, submessage_arena); + file_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, file_attachment, submessage_arena); } set_has_file_attachment(); - CloudAttachment_.file_attachment_ = file_attachment; + _impl_.CloudAttachment_.file_attachment_ = file_attachment; } // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) } -void SharingLog_CloudAttachmentInfo::set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* wifi_credentials_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void SharingLog_CloudAttachmentInfo::set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE wifi_credentials_attachment) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_CloudAttachment(); if (wifi_credentials_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>::GetOwningArena(wifi_credentials_attachment); + ::google::protobuf::Arena* submessage_arena = wifi_credentials_attachment->GetArena(); if (message_arena != submessage_arena) { - wifi_credentials_attachment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_credentials_attachment, submessage_arena); + wifi_credentials_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, wifi_credentials_attachment, submessage_arena); } set_has_wifi_credentials_attachment(); - CloudAttachment_.wifi_credentials_attachment_ = wifi_credentials_attachment; + _impl_.CloudAttachment_.wifi_credentials_attachment_ = wifi_credentials_attachment; } // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) } -void SharingLog_CloudAttachmentInfo::set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* app_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void SharingLog_CloudAttachmentInfo::set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE app_attachment) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_CloudAttachment(); if (app_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>::GetOwningArena(app_attachment); + ::google::protobuf::Arena* submessage_arena = app_attachment->GetArena(); if (message_arena != submessage_arena) { - app_attachment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, app_attachment, submessage_arena); + app_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, app_attachment, submessage_arena); } set_has_app_attachment(); - CloudAttachment_.app_attachment_ = app_attachment; + _impl_.CloudAttachment_.app_attachment_ = app_attachment; } // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) } -void SharingLog_CloudAttachmentInfo::set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* stream_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +void SharingLog_CloudAttachmentInfo::set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE stream_attachment) { + ::google::protobuf::Arena* message_arena = GetArena(); clear_CloudAttachment(); if (stream_attachment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>::GetOwningArena(stream_attachment); + ::google::protobuf::Arena* submessage_arena = stream_attachment->GetArena(); if (message_arena != submessage_arena) { - stream_attachment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, stream_attachment, submessage_arena); + stream_attachment = ::google::protobuf::internal::GetOwnedMessage(message_arena, stream_attachment, submessage_arena); } set_has_stream_attachment(); - CloudAttachment_.stream_attachment_ = stream_attachment; + _impl_.CloudAttachment_.stream_attachment_ = stream_attachment; } // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) } -SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudAttachmentInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) } -SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo(const SharingLog_CloudAttachmentInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&duration_millis_) - - reinterpret_cast(&status_)) + sizeof(duration_millis_)); - clear_has_CloudAttachment(); - switch (from.CloudAttachment_case()) { - case kTextAttachment: { - _internal_mutable_text_attachment()->::nearby::sharing::analytics::proto::SharingLog_TextAttachment::MergeFrom(from._internal_text_attachment()); +PROTOBUF_NDEBUG_INLINE SharingLog_CloudAttachmentInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + CloudAttachment_{}, + _oneof_case_{from._oneof_case_[0]} {} + +SharingLog_CloudAttachmentInfo::SharingLog_CloudAttachmentInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudAttachmentInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudAttachmentInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudAttachmentInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, transferred_bytes_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, transferred_bytes_), + offsetof(Impl_, status_) - + offsetof(Impl_, transferred_bytes_) + + sizeof(Impl_::status_)); + switch (CloudAttachment_case()) { + case CLOUDATTACHMENT_NOT_SET: break; - } - case kFileAttachment: { - _internal_mutable_file_attachment()->::nearby::sharing::analytics::proto::SharingLog_FileAttachment::MergeFrom(from._internal_file_attachment()); - break; - } - case kWifiCredentialsAttachment: { - _internal_mutable_wifi_credentials_attachment()->::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment::MergeFrom(from._internal_wifi_credentials_attachment()); - break; - } - case kAppAttachment: { - _internal_mutable_app_attachment()->::nearby::sharing::analytics::proto::SharingLog_AppAttachment::MergeFrom(from._internal_app_attachment()); - break; - } - case kStreamAttachment: { - _internal_mutable_stream_attachment()->::nearby::sharing::analytics::proto::SharingLog_StreamAttachment::MergeFrom(from._internal_stream_attachment()); - break; - } - case CLOUDATTACHMENT_NOT_SET: { - break; - } + case kTextAttachment: + _impl_.CloudAttachment_.text_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.text_attachment_); + break; + case kFileAttachment: + _impl_.CloudAttachment_.file_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.file_attachment_); + break; + case kWifiCredentialsAttachment: + _impl_.CloudAttachment_.wifi_credentials_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.wifi_credentials_attachment_); + break; + case kAppAttachment: + _impl_.CloudAttachment_.app_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.app_attachment_); + break; + case kStreamAttachment: + _impl_.CloudAttachment_.stream_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.stream_attachment_); + break; } + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudAttachmentInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + CloudAttachment_{}, + _oneof_case_{} {} -inline void SharingLog_CloudAttachmentInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&status_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&duration_millis_) - - reinterpret_cast(&status_)) + sizeof(duration_millis_)); -clear_has_CloudAttachment(); +inline void SharingLog_CloudAttachmentInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, transferred_bytes_), + 0, + offsetof(Impl_, status_) - + offsetof(Impl_, transferred_bytes_) + + sizeof(Impl_::status_)); } - SharingLog_CloudAttachmentInfo::~SharingLog_CloudAttachmentInfo() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void SharingLog_CloudAttachmentInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (has_CloudAttachment()) { - clear_CloudAttachment(); +inline void SharingLog_CloudAttachmentInfo::SharedDtor(MessageLite& self) { + SharingLog_CloudAttachmentInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } -} - -void SharingLog_CloudAttachmentInfo::ArenaDtor(void* object) { - SharingLog_CloudAttachmentInfo* _this = reinterpret_cast< SharingLog_CloudAttachmentInfo* >(object); - (void)_this; -} -void SharingLog_CloudAttachmentInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudAttachmentInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_CloudAttachment()) { + this_.clear_CloudAttachment(); + } + this_._impl_.~Impl_(); } void SharingLog_CloudAttachmentInfo::clear_CloudAttachment() { // @@protoc_insertion_point(one_of_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (CloudAttachment_case()) { case kTextAttachment: { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.text_attachment_; + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.text_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.text_attachment_ != nullptr) { + _impl_.CloudAttachment_.text_attachment_->Clear(); + } } break; } case kFileAttachment: { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.file_attachment_; + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.file_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.file_attachment_ != nullptr) { + _impl_.CloudAttachment_.file_attachment_->Clear(); + } } break; } case kWifiCredentialsAttachment: { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.wifi_credentials_attachment_; + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.wifi_credentials_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.wifi_credentials_attachment_ != nullptr) { + _impl_.CloudAttachment_.wifi_credentials_attachment_->Clear(); + } } break; } case kAppAttachment: { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.app_attachment_; + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.app_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.app_attachment_ != nullptr) { + _impl_.CloudAttachment_.app_attachment_->Clear(); + } } break; } case kStreamAttachment: { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.stream_attachment_; + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.stream_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.stream_attachment_ != nullptr) { + _impl_.CloudAttachment_.stream_attachment_->Clear(); + } } break; } @@ -20863,9051 +24640,8787 @@ void SharingLog_CloudAttachmentInfo::clear_CloudAttachment() { break; } } - _oneof_case_[0] = CLOUDATTACHMENT_NOT_SET; + _impl_._oneof_case_[0] = CLOUDATTACHMENT_NOT_SET; } -void SharingLog_CloudAttachmentInfo::Clear() { +inline void* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudAttachmentInfo(arena); +} +constexpr auto SharingLog_CloudAttachmentInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudAttachmentInfo), + alignof(SharingLog_CloudAttachmentInfo)); +} +constexpr auto SharingLog_CloudAttachmentInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<62>{ + { + &_SharingLog_CloudAttachmentInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudAttachmentInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudAttachmentInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudAttachmentInfo::ByteSizeLong, + &SharingLog_CloudAttachmentInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<62> SharingLog_CloudAttachmentInfo_class_data_ = + SharingLog_CloudAttachmentInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudAttachmentInfo::GetClassData() const { + return SharingLog_CloudAttachmentInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 8, 6, 0, 2> +SharingLog_CloudAttachmentInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_._has_bits_), + 0, // no _extensions_ + 8, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudAttachmentInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 duration_millis = 8; + {::_pbi::TcParser::FastV64S1, + {64, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.duration_millis_)}}, + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 2, 30, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.status_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 transferred_bytes = 7; + {::_pbi::TcParser::FastV64S1, + {56, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.status_), _Internal::kHasBitsOffset + 2, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.text_attachment_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.file_attachment_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.wifi_credentials_attachment_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.app_attachment_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.CloudAttachment_.stream_attachment_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 transferred_bytes = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 duration_millis = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.duration_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>()}, + {0, 30}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudAttachmentInfo::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&status_, 0, static_cast( - reinterpret_cast(&duration_millis_) - - reinterpret_cast(&status_)) + sizeof(duration_millis_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.transferred_bytes_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.transferred_bytes_)) + sizeof(_impl_.status_)); } clear_CloudAttachment(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudAttachmentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(val))) { - _internal_set_status(static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_text_attachment(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_file_attachment(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_credentials_attachment(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_app_attachment(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_stream_attachment(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 transferred_bytes = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_transferred_bytes(&has_bits); - transferred_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudAttachmentInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudAttachmentInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudAttachmentInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); } - switch (CloudAttachment_case()) { + switch (this_.CloudAttachment_case()) { case kTextAttachment: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::text_attachment(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.CloudAttachment_.text_attachment_, this_._impl_.CloudAttachment_.text_attachment_->GetCachedSize(), target, + stream); break; } case kFileAttachment: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::file_attachment(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.CloudAttachment_.file_attachment_, this_._impl_.CloudAttachment_.file_attachment_->GetCachedSize(), target, + stream); break; } case kWifiCredentialsAttachment: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::wifi_credentials_attachment(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.CloudAttachment_.wifi_credentials_attachment_, this_._impl_.CloudAttachment_.wifi_credentials_attachment_->GetCachedSize(), target, + stream); break; } case kAppAttachment: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::app_attachment(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.CloudAttachment_.app_attachment_, this_._impl_.CloudAttachment_.app_attachment_->GetCachedSize(), target, + stream); break; } case kStreamAttachment: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::stream_attachment(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.CloudAttachment_.stream_attachment_, this_._impl_.CloudAttachment_.stream_attachment_->GetCachedSize(), target, + stream); break; } - default: ; + default: + break; } // optional int64 transferred_bytes = 7; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_transferred_bytes(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( + stream, this_._internal_transferred_bytes(), target); } // optional int64 duration_millis = 8; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>( + stream, this_._internal_duration_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) return target; } -size_t SharingLog_CloudAttachmentInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudAttachmentInfo::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudAttachmentInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudAttachmentInfo::ByteSizeLong() const { + const SharingLog_CloudAttachmentInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional int64 transferred_bytes = 7; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_transferred_bytes()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_transferred_bytes()); } - // optional int64 duration_millis = 8; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); + } + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); } - } - switch (CloudAttachment_case()) { + switch (this_.CloudAttachment_case()) { // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; case kTextAttachment: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *CloudAttachment_.text_attachment_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.text_attachment_); break; } // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; case kFileAttachment: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *CloudAttachment_.file_attachment_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.file_attachment_); break; } // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; case kWifiCredentialsAttachment: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *CloudAttachment_.wifi_credentials_attachment_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.wifi_credentials_attachment_); break; } // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; case kAppAttachment: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *CloudAttachment_.app_attachment_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.app_attachment_); break; } // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; case kStreamAttachment: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *CloudAttachment_.stream_attachment_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.CloudAttachment_.stream_attachment_); break; } case CLOUDATTACHMENT_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudAttachmentInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudAttachmentInfo::MergeFrom(const SharingLog_CloudAttachmentInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000002u) { - transferred_bytes_ = from.transferred_bytes_; - } - if (cached_has_bits & 0x00000004u) { - duration_millis_ = from.duration_millis_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CloudAttachmentInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - switch (from.CloudAttachment_case()) { - case kTextAttachment: { - _internal_mutable_text_attachment()->::nearby::sharing::analytics::proto::SharingLog_TextAttachment::MergeFrom(from._internal_text_attachment()); - break; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.transferred_bytes_ = from._impl_.transferred_bytes_; } - case kFileAttachment: { - _internal_mutable_file_attachment()->::nearby::sharing::analytics::proto::SharingLog_FileAttachment::MergeFrom(from._internal_file_attachment()); - break; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; } - case kWifiCredentialsAttachment: { - _internal_mutable_wifi_credentials_attachment()->::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment::MergeFrom(from._internal_wifi_credentials_attachment()); - break; - } - case kAppAttachment: { - _internal_mutable_app_attachment()->::nearby::sharing::analytics::proto::SharingLog_AppAttachment::MergeFrom(from._internal_app_attachment()); - break; - } - case kStreamAttachment: { - _internal_mutable_stream_attachment()->::nearby::sharing::analytics::proto::SharingLog_StreamAttachment::MergeFrom(from._internal_stream_attachment()); - break; - } - case CLOUDATTACHMENT_NOT_SET: { - break; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.status_ = from._impl_.status_; } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_CloudAttachment(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kTextAttachment: { + if (oneof_needs_init) { + _this->_impl_.CloudAttachment_.text_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.text_attachment_); + } else { + _this->_impl_.CloudAttachment_.text_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.text_attachment_); + } + break; + } + case kFileAttachment: { + if (oneof_needs_init) { + _this->_impl_.CloudAttachment_.file_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.file_attachment_); + } else { + _this->_impl_.CloudAttachment_.file_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.file_attachment_); + } + break; + } + case kWifiCredentialsAttachment: { + if (oneof_needs_init) { + _this->_impl_.CloudAttachment_.wifi_credentials_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.wifi_credentials_attachment_); + } else { + _this->_impl_.CloudAttachment_.wifi_credentials_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.wifi_credentials_attachment_); + } + break; + } + case kAppAttachment: { + if (oneof_needs_init) { + _this->_impl_.CloudAttachment_.app_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.app_attachment_); + } else { + _this->_impl_.CloudAttachment_.app_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.app_attachment_); + } + break; + } + case kStreamAttachment: { + if (oneof_needs_init) { + _this->_impl_.CloudAttachment_.stream_attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.CloudAttachment_.stream_attachment_); + } else { + _this->_impl_.CloudAttachment_.stream_attachment_->CheckTypeAndMergeFrom(*from._impl_.CloudAttachment_.stream_attachment_); + } + break; + } + case CLOUDATTACHMENT_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudAttachmentInfo::CopyFrom(const SharingLog_CloudAttachmentInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudAttachmentInfo::IsInitialized() const { - return true; -} -void SharingLog_CloudAttachmentInfo::InternalSwap(SharingLog_CloudAttachmentInfo* other) { - using std::swap; +void SharingLog_CloudAttachmentInfo::InternalSwap(SharingLog_CloudAttachmentInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, duration_millis_) - + sizeof(SharingLog_CloudAttachmentInfo::duration_millis_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, status_)>( - reinterpret_cast(&status_), - reinterpret_cast(&other->status_)); - swap(CloudAttachment_, other->CloudAttachment_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.status_) + + sizeof(SharingLog_CloudAttachmentInfo::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CloudAttachmentInfo, _impl_.transferred_bytes_)>( + reinterpret_cast(&_impl_.transferred_bytes_), + reinterpret_cast(&other->_impl_.transferred_bytes_)); + swap(_impl_.CloudAttachment_, other->_impl_.CloudAttachment_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -std::string SharingLog_CloudAttachmentInfo::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo"; -} - - // =================================================================== class SharingLog_AppCrash::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_crash_reason(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_._has_bits_); }; -SharingLog_AppCrash::SharingLog_AppCrash(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_AppCrash::SharingLog_AppCrash(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppCrash_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.AppCrash) } -SharingLog_AppCrash::SharingLog_AppCrash(const SharingLog_AppCrash& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - crash_reason_ = from.crash_reason_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.AppCrash) +SharingLog_AppCrash::SharingLog_AppCrash( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AppCrash& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_AppCrash_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_AppCrash::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_AppCrash::SharedCtor() { -crash_reason_ = 0; +inline void SharingLog_AppCrash::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.crash_reason_ = {}; } - SharingLog_AppCrash::~SharingLog_AppCrash() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.AppCrash) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_AppCrash::SharedDtor(MessageLite& self) { + SharingLog_AppCrash& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_AppCrash::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_AppCrash::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_AppCrash(arena); +} +constexpr auto SharingLog_AppCrash::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_AppCrash), + alignof(SharingLog_AppCrash)); +} +constexpr auto SharingLog_AppCrash::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<51>{ + { + &_SharingLog_AppCrash_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_AppCrash::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_AppCrash::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_AppCrash::ByteSizeLong, + &SharingLog_AppCrash::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.AppCrash", + }; } -void SharingLog_AppCrash::ArenaDtor(void* object) { - SharingLog_AppCrash* _this = reinterpret_cast< SharingLog_AppCrash* >(object); - (void)_this; -} -void SharingLog_AppCrash::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_AppCrash::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<51> SharingLog_AppCrash_class_data_ = + SharingLog_AppCrash::InternalGenerateClassData_(); -void SharingLog_AppCrash::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_AppCrash::GetClassData() const { + return SharingLog_AppCrash_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_AppCrash::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_AppCrash_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppCrash>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_.crash_reason_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_AppCrash, _impl_.crash_reason_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 0}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_AppCrash::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - crash_reason_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.crash_reason_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_AppCrash::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::AppCrashReason_IsValid(val))) { - _internal_set_crash_reason(static_cast<::location::nearby::proto::sharing::AppCrashReason>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_AppCrash::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_AppCrash::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_AppCrash& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_AppCrash::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_AppCrash& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_crash_reason(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_crash_reason(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.AppCrash) return target; } -size_t SharingLog_AppCrash::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_AppCrash::ByteSizeLong(const MessageLite& base) { + const SharingLog_AppCrash& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_AppCrash::ByteSizeLong() const { + const SharingLog_AppCrash& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_crash_reason()); + { + // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_crash_reason()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_AppCrash::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_AppCrash::MergeFrom(const SharingLog_AppCrash& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_crash_reason()) { - _internal_set_crash_reason(from._internal_crash_reason()); +void SharingLog_AppCrash::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.crash_reason_ = from._impl_.crash_reason_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_AppCrash::CopyFrom(const SharingLog_AppCrash& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.AppCrash) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_AppCrash::IsInitialized() const { - return true; -} -void SharingLog_AppCrash::InternalSwap(SharingLog_AppCrash* other) { - using std::swap; +void SharingLog_AppCrash::InternalSwap(SharingLog_AppCrash* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(crash_reason_, other->crash_reason_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.crash_reason_, other->_impl_.crash_reason_); } -std::string SharingLog_AppCrash::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.AppCrash"; -} - - // =================================================================== class SharingLog_SetupWizard::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_previous_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._has_bits_); }; -SharingLog_SetupWizard::SharingLog_SetupWizard(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SetupWizard::SharingLog_SetupWizard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetupWizard_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SetupWizard) } -SharingLog_SetupWizard::SharingLog_SetupWizard(const SharingLog_SetupWizard& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&visibility_, &from.visibility_, - static_cast(reinterpret_cast(&previous_visibility_) - - reinterpret_cast(&visibility_)) + sizeof(previous_visibility_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SetupWizard) +SharingLog_SetupWizard::SharingLog_SetupWizard( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetupWizard& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SetupWizard_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SetupWizard::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SetupWizard::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&visibility_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&previous_visibility_) - - reinterpret_cast(&visibility_)) + sizeof(previous_visibility_)); +inline void SharingLog_SetupWizard::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, visibility_), + 0, + offsetof(Impl_, previous_visibility_) - + offsetof(Impl_, visibility_) + + sizeof(Impl_::previous_visibility_)); } - SharingLog_SetupWizard::~SharingLog_SetupWizard() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SetupWizard::SharedDtor(MessageLite& self) { + SharingLog_SetupWizard& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SetupWizard::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SetupWizard::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SetupWizard(arena); +} +constexpr auto SharingLog_SetupWizard::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SetupWizard), + alignof(SharingLog_SetupWizard)); +} +constexpr auto SharingLog_SetupWizard::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<54>{ + { + &_SharingLog_SetupWizard_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SetupWizard::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SetupWizard::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SetupWizard::ByteSizeLong, + &SharingLog_SetupWizard::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SetupWizard", + }; } -void SharingLog_SetupWizard::ArenaDtor(void* object) { - SharingLog_SetupWizard* _this = reinterpret_cast< SharingLog_SetupWizard* >(object); - (void)_this; -} -void SharingLog_SetupWizard::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SetupWizard::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<54> SharingLog_SetupWizard_class_data_ = + SharingLog_SetupWizard::InternalGenerateClassData_(); -void SharingLog_SetupWizard::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SetupWizard::GetClassData() const { + return SharingLog_SetupWizard_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_SetupWizard::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SetupWizard_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.previous_visibility_)}}, + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.previous_visibility_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SetupWizard::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&visibility_, 0, static_cast( - reinterpret_cast(&previous_visibility_) - - reinterpret_cast(&visibility_)) + sizeof(previous_visibility_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.visibility_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.previous_visibility_) - + reinterpret_cast(&_impl_.visibility_)) + sizeof(_impl_.previous_visibility_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SetupWizard::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.Visibility visibility = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::Visibility_IsValid(val))) { - _internal_set_previous_visibility(static_cast<::location::nearby::proto::sharing::Visibility>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SetupWizard::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SetupWizard::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SetupWizard& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SetupWizard::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SetupWizard& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_visibility(), target); } // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_previous_visibility(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_previous_visibility(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SetupWizard) return target; } -size_t SharingLog_SetupWizard::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SetupWizard::ByteSizeLong(const MessageLite& base) { + const SharingLog_SetupWizard& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SetupWizard::ByteSizeLong() const { + const SharingLog_SetupWizard& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .location.nearby.proto.sharing.Visibility visibility = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_visibility()); } - // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_previous_visibility()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_previous_visibility()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SetupWizard::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SetupWizard::MergeFrom(const SharingLog_SetupWizard& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - visibility_ = from.visibility_; - } - if (cached_has_bits & 0x00000002u) { - previous_visibility_ = from.previous_visibility_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_SetupWizard::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.visibility_ = from._impl_.visibility_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.previous_visibility_ = from._impl_.previous_visibility_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SetupWizard::CopyFrom(const SharingLog_SetupWizard& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SetupWizard) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SetupWizard::IsInitialized() const { - return true; -} -void SharingLog_SetupWizard::InternalSwap(SharingLog_SetupWizard* other) { - using std::swap; +void SharingLog_SetupWizard::InternalSwap(SharingLog_SetupWizard* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, previous_visibility_) - + sizeof(SharingLog_SetupWizard::previous_visibility_) - - PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, visibility_)>( - reinterpret_cast(&visibility_), - reinterpret_cast(&other->visibility_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.previous_visibility_) + + sizeof(SharingLog_SetupWizard::_impl_.previous_visibility_) + - PROTOBUF_FIELD_OFFSET(SharingLog_SetupWizard, _impl_.visibility_)>( + reinterpret_cast(&_impl_.visibility_), + reinterpret_cast(&other->_impl_.visibility_)); } -std::string SharingLog_SetupWizard::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SetupWizard"; -} - - // =================================================================== class SharingLog_SendDesktopNotification::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_._has_bits_); }; -SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopNotification_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) } -SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification(const SharingLog_SendDesktopNotification& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - event_ = from.event_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) +SharingLog_SendDesktopNotification::SharingLog_SendDesktopNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SendDesktopNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendDesktopNotification::SharedCtor() { -event_ = 0; +inline void SharingLog_SendDesktopNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.event_ = {}; } - SharingLog_SendDesktopNotification::~SharingLog_SendDesktopNotification() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendDesktopNotification::SharedDtor(MessageLite& self) { + SharingLog_SendDesktopNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SendDesktopNotification::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SendDesktopNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendDesktopNotification(arena); +} +constexpr auto SharingLog_SendDesktopNotification::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendDesktopNotification), + alignof(SharingLog_SendDesktopNotification)); +} +constexpr auto SharingLog_SendDesktopNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_SendDesktopNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendDesktopNotification::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendDesktopNotification::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendDesktopNotification::ByteSizeLong, + &SharingLog_SendDesktopNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification", + }; } -void SharingLog_SendDesktopNotification::ArenaDtor(void* object) { - SharingLog_SendDesktopNotification* _this = reinterpret_cast< SharingLog_SendDesktopNotification* >(object); - (void)_this; -} -void SharingLog_SendDesktopNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendDesktopNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_SendDesktopNotification_class_data_ = + SharingLog_SendDesktopNotification::InternalGenerateClassData_(); -void SharingLog_SendDesktopNotification::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendDesktopNotification::GetClassData() const { + return SharingLog_SendDesktopNotification_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_SendDesktopNotification::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendDesktopNotification_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.DesktopNotification event = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_.event_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.DesktopNotification event = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopNotification, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendDesktopNotification::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - event_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.event_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendDesktopNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.DesktopNotification event = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DesktopNotification_IsValid(val))) { - _internal_set_event(static_cast<::location::nearby::proto::sharing::DesktopNotification>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendDesktopNotification::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendDesktopNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendDesktopNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.DesktopNotification event = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) return target; } -size_t SharingLog_SendDesktopNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendDesktopNotification::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendDesktopNotification& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendDesktopNotification::ByteSizeLong() const { + const SharingLog_SendDesktopNotification& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.DesktopNotification event = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event()); + { + // optional .location.nearby.proto.sharing.DesktopNotification event = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_event()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendDesktopNotification::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendDesktopNotification::MergeFrom(const SharingLog_SendDesktopNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_event()) { - _internal_set_event(from._internal_event()); +void SharingLog_SendDesktopNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.event_ = from._impl_.event_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendDesktopNotification::CopyFrom(const SharingLog_SendDesktopNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendDesktopNotification::IsInitialized() const { - return true; -} -void SharingLog_SendDesktopNotification::InternalSwap(SharingLog_SendDesktopNotification* other) { - using std::swap; +void SharingLog_SendDesktopNotification::InternalSwap(SharingLog_SendDesktopNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(event_, other->event_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.event_, other->_impl_.event_); } -std::string SharingLog_SendDesktopNotification::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification"; -} - - // =================================================================== class SharingLog_SendDesktopTransferEvent::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_._has_bits_); }; -SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopTransferEvent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) } -SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent(const SharingLog_SendDesktopTransferEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - event_ = from.event_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) +SharingLog_SendDesktopTransferEvent::SharingLog_SendDesktopTransferEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopTransferEvent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_SendDesktopTransferEvent_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_SendDesktopTransferEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_SendDesktopTransferEvent::SharedCtor() { -event_ = 0; +inline void SharingLog_SendDesktopTransferEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.event_ = {}; } - SharingLog_SendDesktopTransferEvent::~SharingLog_SendDesktopTransferEvent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_SendDesktopTransferEvent::SharedDtor(MessageLite& self) { + SharingLog_SendDesktopTransferEvent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_SendDesktopTransferEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_SendDesktopTransferEvent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_SendDesktopTransferEvent(arena); +} +constexpr auto SharingLog_SendDesktopTransferEvent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_SendDesktopTransferEvent), + alignof(SharingLog_SendDesktopTransferEvent)); +} +constexpr auto SharingLog_SendDesktopTransferEvent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<67>{ + { + &_SharingLog_SendDesktopTransferEvent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_SendDesktopTransferEvent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_SendDesktopTransferEvent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_SendDesktopTransferEvent::ByteSizeLong, + &SharingLog_SendDesktopTransferEvent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent", + }; } -void SharingLog_SendDesktopTransferEvent::ArenaDtor(void* object) { - SharingLog_SendDesktopTransferEvent* _this = reinterpret_cast< SharingLog_SendDesktopTransferEvent* >(object); - (void)_this; -} -void SharingLog_SendDesktopTransferEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_SendDesktopTransferEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<67> SharingLog_SendDesktopTransferEvent_class_data_ = + SharingLog_SendDesktopTransferEvent::InternalGenerateClassData_(); -void SharingLog_SendDesktopTransferEvent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_SendDesktopTransferEvent::GetClassData() const { + return SharingLog_SendDesktopTransferEvent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_SendDesktopTransferEvent::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_SendDesktopTransferEvent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 9, + PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_.event_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_SendDesktopTransferEvent, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 9}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_SendDesktopTransferEvent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - event_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.event_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_SendDesktopTransferEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::DesktopTransferEventType_IsValid(val))) { - _internal_set_event(static_cast<::location::nearby::proto::sharing::DesktopTransferEventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_SendDesktopTransferEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopTransferEvent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_SendDesktopTransferEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_SendDesktopTransferEvent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_SendDesktopTransferEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) return target; } -size_t SharingLog_SendDesktopTransferEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_SendDesktopTransferEvent::ByteSizeLong(const MessageLite& base) { + const SharingLog_SendDesktopTransferEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_SendDesktopTransferEvent::ByteSizeLong() const { + const SharingLog_SendDesktopTransferEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event()); + { + // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_event()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_SendDesktopTransferEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_SendDesktopTransferEvent::MergeFrom(const SharingLog_SendDesktopTransferEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_event()) { - _internal_set_event(from._internal_event()); +void SharingLog_SendDesktopTransferEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.event_ = from._impl_.event_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_SendDesktopTransferEvent::CopyFrom(const SharingLog_SendDesktopTransferEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_SendDesktopTransferEvent::IsInitialized() const { - return true; -} -void SharingLog_SendDesktopTransferEvent::InternalSwap(SharingLog_SendDesktopTransferEvent* other) { - using std::swap; +void SharingLog_SendDesktopTransferEvent::InternalSwap(SharingLog_SendDesktopTransferEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(event_, other->event_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.event_, other->_impl_.event_); } -std::string SharingLog_SendDesktopTransferEvent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent"; -} - - // =================================================================== class SharingLog_ShowWaitingForAccept::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_button_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_._has_bits_); }; -SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShowWaitingForAccept_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) } -SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept(const SharingLog_ShowWaitingForAccept& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - button_status_ = from.button_status_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) +SharingLog_ShowWaitingForAccept::SharingLog_ShowWaitingForAccept( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowWaitingForAccept& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ShowWaitingForAccept_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ShowWaitingForAccept::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ShowWaitingForAccept::SharedCtor() { -button_status_ = 0; +inline void SharingLog_ShowWaitingForAccept::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.button_status_ = {}; } - SharingLog_ShowWaitingForAccept::~SharingLog_ShowWaitingForAccept() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ShowWaitingForAccept::SharedDtor(MessageLite& self) { + SharingLog_ShowWaitingForAccept& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ShowWaitingForAccept::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ShowWaitingForAccept::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ShowWaitingForAccept(arena); +} +constexpr auto SharingLog_ShowWaitingForAccept::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ShowWaitingForAccept), + alignof(SharingLog_ShowWaitingForAccept)); +} +constexpr auto SharingLog_ShowWaitingForAccept::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<63>{ + { + &_SharingLog_ShowWaitingForAccept_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ShowWaitingForAccept::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ShowWaitingForAccept::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ShowWaitingForAccept::ByteSizeLong, + &SharingLog_ShowWaitingForAccept::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept", + }; } -void SharingLog_ShowWaitingForAccept::ArenaDtor(void* object) { - SharingLog_ShowWaitingForAccept* _this = reinterpret_cast< SharingLog_ShowWaitingForAccept* >(object); - (void)_this; -} -void SharingLog_ShowWaitingForAccept::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ShowWaitingForAccept::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<63> SharingLog_ShowWaitingForAccept_class_data_ = + SharingLog_ShowWaitingForAccept::InternalGenerateClassData_(); -void SharingLog_ShowWaitingForAccept::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ShowWaitingForAccept::GetClassData() const { + return SharingLog_ShowWaitingForAccept_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_ShowWaitingForAccept::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_ShowWaitingForAccept_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 3, + PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_.button_status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ShowWaitingForAccept, _impl_.button_status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ShowWaitingForAccept::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - button_status_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.button_status_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ShowWaitingForAccept::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::ButtonStatus_IsValid(val))) { - _internal_set_button_status(static_cast<::location::nearby::proto::sharing::ButtonStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ShowWaitingForAccept::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ShowWaitingForAccept::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ShowWaitingForAccept& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ShowWaitingForAccept::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ShowWaitingForAccept& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_button_status(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_button_status(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) return target; } -size_t SharingLog_ShowWaitingForAccept::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ShowWaitingForAccept::ByteSizeLong(const MessageLite& base) { + const SharingLog_ShowWaitingForAccept& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ShowWaitingForAccept::ByteSizeLong() const { + const SharingLog_ShowWaitingForAccept& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_button_status()); + { + // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_button_status()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ShowWaitingForAccept::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ShowWaitingForAccept::MergeFrom(const SharingLog_ShowWaitingForAccept& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_button_status()) { - _internal_set_button_status(from._internal_button_status()); +void SharingLog_ShowWaitingForAccept::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.button_status_ = from._impl_.button_status_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ShowWaitingForAccept::CopyFrom(const SharingLog_ShowWaitingForAccept& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ShowWaitingForAccept::IsInitialized() const { - return true; -} -void SharingLog_ShowWaitingForAccept::InternalSwap(SharingLog_ShowWaitingForAccept* other) { - using std::swap; +void SharingLog_ShowWaitingForAccept::InternalSwap(SharingLog_ShowWaitingForAccept* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(button_status_, other->button_status_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.button_status_, other->_impl_.button_status_); } -std::string SharingLog_ShowWaitingForAccept::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept"; -} - - // =================================================================== class SharingLog_HighQualityMediumSetup::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info(const SharingLog_HighQualityMediumSetup* msg); - static void set_has_share_target_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_duration_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_is_timeout(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_original_quality(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_connection_medium(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_connection_mode(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_instant_connection_result(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& -SharingLog_HighQualityMediumSetup::_Internal::share_target_info(const SharingLog_HighQualityMediumSetup* msg) { - return *msg->share_target_info_; -} -SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_HighQualityMediumSetup_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) } -SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup(const SharingLog_HighQualityMediumSetup& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_share_target_info()) { - share_target_info_ = new ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo(*from.share_target_info_); - } else { - share_target_info_ = nullptr; - } - ::memcpy(&session_id_, &from.session_id_, - static_cast(reinterpret_cast(&instant_connection_result_) - - reinterpret_cast(&session_id_)) + sizeof(instant_connection_result_)); +PROTOBUF_NDEBUG_INLINE SharingLog_HighQualityMediumSetup::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_HighQualityMediumSetup::SharingLog_HighQualityMediumSetup( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_HighQualityMediumSetup& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_HighQualityMediumSetup_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_HighQualityMediumSetup* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.share_target_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, instant_connection_result_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::instant_connection_result_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) } +PROTOBUF_NDEBUG_INLINE SharingLog_HighQualityMediumSetup::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_HighQualityMediumSetup::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&share_target_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&instant_connection_result_) - - reinterpret_cast(&share_target_info_)) + sizeof(instant_connection_result_)); +inline void SharingLog_HighQualityMediumSetup::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, share_target_info_), + 0, + offsetof(Impl_, instant_connection_result_) - + offsetof(Impl_, share_target_info_) + + sizeof(Impl_::instant_connection_result_)); } - SharingLog_HighQualityMediumSetup::~SharingLog_HighQualityMediumSetup() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_HighQualityMediumSetup::SharedDtor(MessageLite& self) { + SharingLog_HighQualityMediumSetup& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.share_target_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_HighQualityMediumSetup::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete share_target_info_; +inline void* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_HighQualityMediumSetup(arena); +} +constexpr auto SharingLog_HighQualityMediumSetup::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_HighQualityMediumSetup), + alignof(SharingLog_HighQualityMediumSetup)); +} +constexpr auto SharingLog_HighQualityMediumSetup::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<65>{ + { + &_SharingLog_HighQualityMediumSetup_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_HighQualityMediumSetup::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_HighQualityMediumSetup::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_HighQualityMediumSetup::ByteSizeLong, + &SharingLog_HighQualityMediumSetup::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup", + }; } -void SharingLog_HighQualityMediumSetup::ArenaDtor(void* object) { - SharingLog_HighQualityMediumSetup* _this = reinterpret_cast< SharingLog_HighQualityMediumSetup* >(object); - (void)_this; -} -void SharingLog_HighQualityMediumSetup::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_HighQualityMediumSetup::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<65> SharingLog_HighQualityMediumSetup_class_data_ = + SharingLog_HighQualityMediumSetup::InternalGenerateClassData_(); -void SharingLog_HighQualityMediumSetup::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_HighQualityMediumSetup::GetClassData() const { + return SharingLog_HighQualityMediumSetup_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 1, 0, 2> +SharingLog_HighQualityMediumSetup::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_HighQualityMediumSetup_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 instant_connection_result = 8; + {::_pbi::TcParser::FastV32S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_)}}, + // optional int64 session_id = 2; + {::_pbi::TcParser::FastV64S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.session_id_)}}, + // optional int64 duration_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.duration_millis_)}}, + // optional bool is_timeout = 4; + {::_pbi::TcParser::FastV8S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.is_timeout_)}}, + // optional int32 original_quality = 5; + {::_pbi::TcParser::FastV32S1, + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.original_quality_)}}, + // optional int32 connection_medium = 6; + {::_pbi::TcParser::FastV32S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_medium_)}}, + // optional int32 connection_mode = 7; + {::_pbi::TcParser::FastV32S1, + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_mode_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int64 session_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 duration_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.duration_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional bool is_timeout = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.is_timeout_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional int32 original_quality = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.original_quality_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 connection_medium = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_medium_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 connection_mode = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.connection_mode_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 instant_connection_result = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_HighQualityMediumSetup::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(share_target_info_ != nullptr); - share_target_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.share_target_info_ != nullptr); + _impl_.share_target_info_->Clear(); } - if (cached_has_bits & 0x000000feu) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&instant_connection_result_) - - reinterpret_cast(&session_id_)) + sizeof(instant_connection_result_)); + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.instant_connection_result_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.instant_connection_result_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_HighQualityMediumSetup::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_share_target_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 session_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 duration_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_duration_millis(&has_bits); - duration_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_timeout = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_is_timeout(&has_bits); - is_timeout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 original_quality = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_original_quality(&has_bits); - original_quality_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connection_medium = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_connection_medium(&has_bits); - connection_medium_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 connection_mode = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_connection_mode(&has_bits); - connection_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 instant_connection_result = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_instant_connection_result(&has_bits); - instant_connection_result_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_HighQualityMediumSetup::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_HighQualityMediumSetup& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_HighQualityMediumSetup& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::share_target_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.share_target_info_, this_._impl_.share_target_info_->GetCachedSize(), target, + stream); } // optional int64 session_id = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_session_id(), target); } // optional int64 duration_millis = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_duration_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_duration_millis(), target); } // optional bool is_timeout = 4; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_timeout(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_timeout(), target); } // optional int32 original_quality = 5; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_original_quality(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_original_quality(), target); } // optional int32 connection_medium = 6; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_connection_medium(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_connection_medium(), target); } // optional int32 connection_mode = 7; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_connection_mode(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_connection_mode(), target); } // optional int32 instant_connection_result = 8; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_instant_connection_result(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_instant_connection_result(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) return target; } -size_t SharingLog_HighQualityMediumSetup::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_HighQualityMediumSetup::ByteSizeLong(const MessageLite& base) { + const SharingLog_HighQualityMediumSetup& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_HighQualityMediumSetup::ByteSizeLong() const { + const SharingLog_HighQualityMediumSetup& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000008U & cached_has_bits) * 2; + if (BatchCheckHasBit(cached_has_bits, 0x000000f7U)) { // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *share_target_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.share_target_info_); } - // optional int64 session_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); } - // optional int64 duration_millis = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_duration_millis()); } - - // optional bool is_timeout = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - // optional int32 original_quality = 5; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_original_quality()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_original_quality()); } - // optional int32 connection_medium = 6; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connection_medium()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connection_medium()); } - // optional int32 connection_mode = 7; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connection_mode()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_connection_mode()); } - // optional int32 instant_connection_result = 8; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_instant_connection_result()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_instant_connection_result()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_HighQualityMediumSetup::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_HighQualityMediumSetup::MergeFrom(const SharingLog_HighQualityMediumSetup& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_share_target_info()->::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo::MergeFrom(from._internal_share_target_info()); - } - if (cached_has_bits & 0x00000002u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000004u) { - duration_millis_ = from.duration_millis_; - } - if (cached_has_bits & 0x00000008u) { - is_timeout_ = from.is_timeout_; - } - if (cached_has_bits & 0x00000010u) { - original_quality_ = from.original_quality_; - } - if (cached_has_bits & 0x00000020u) { - connection_medium_ = from.connection_medium_; - } - if (cached_has_bits & 0x00000040u) { - connection_mode_ = from.connection_mode_; - } - if (cached_has_bits & 0x00000080u) { - instant_connection_result_ = from.instant_connection_result_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_HighQualityMediumSetup::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.share_target_info_ != nullptr); + if (_this->_impl_.share_target_info_ == nullptr) { + _this->_impl_.share_target_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.share_target_info_); + } else { + _this->_impl_.share_target_info_->MergeFrom(*from._impl_.share_target_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.duration_millis_ = from._impl_.duration_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.is_timeout_ = from._impl_.is_timeout_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.original_quality_ = from._impl_.original_quality_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.connection_medium_ = from._impl_.connection_medium_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.connection_mode_ = from._impl_.connection_mode_; + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.instant_connection_result_ = from._impl_.instant_connection_result_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_HighQualityMediumSetup::CopyFrom(const SharingLog_HighQualityMediumSetup& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_HighQualityMediumSetup::IsInitialized() const { - return true; -} -void SharingLog_HighQualityMediumSetup::InternalSwap(SharingLog_HighQualityMediumSetup* other) { - using std::swap; +void SharingLog_HighQualityMediumSetup::InternalSwap(SharingLog_HighQualityMediumSetup* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, instant_connection_result_) - + sizeof(SharingLog_HighQualityMediumSetup::instant_connection_result_) - - PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, share_target_info_)>( - reinterpret_cast(&share_target_info_), - reinterpret_cast(&other->share_target_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.instant_connection_result_) + + sizeof(SharingLog_HighQualityMediumSetup::_impl_.instant_connection_result_) + - PROTOBUF_FIELD_OFFSET(SharingLog_HighQualityMediumSetup, _impl_.share_target_info_)>( + reinterpret_cast(&_impl_.share_target_info_), + reinterpret_cast(&other->_impl_.share_target_info_)); } -std::string SharingLog_HighQualityMediumSetup::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup"; -} - - // =================================================================== class SharingLog_RpcCallStatus::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_direction(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_rpc_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._has_bits_); }; -SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RpcCallStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) } -SharingLog_RpcCallStatus::SharingLog_RpcCallStatus(const SharingLog_RpcCallStatus& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - rpc_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_rpc_name()) { - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rpc_name(), - GetArenaForAllocation()); - } - ::memcpy(&direction_, &from.direction_, - static_cast(reinterpret_cast(&latency_millis_) - - reinterpret_cast(&direction_)) + sizeof(latency_millis_)); +PROTOBUF_NDEBUG_INLINE SharingLog_RpcCallStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + rpc_name_(arena, from.rpc_name_) {} + +SharingLog_RpcCallStatus::SharingLog_RpcCallStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_RpcCallStatus& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_RpcCallStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_RpcCallStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, direction_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, direction_), + offsetof(Impl_, latency_millis_) - + offsetof(Impl_, direction_) + + sizeof(Impl_::latency_millis_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) } +PROTOBUF_NDEBUG_INLINE SharingLog_RpcCallStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + rpc_name_(arena) {} -inline void SharingLog_RpcCallStatus::SharedCtor() { -rpc_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&direction_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&latency_millis_) - - reinterpret_cast(&direction_)) + sizeof(latency_millis_)); +inline void SharingLog_RpcCallStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, direction_), + 0, + offsetof(Impl_, latency_millis_) - + offsetof(Impl_, direction_) + + sizeof(Impl_::latency_millis_)); } - SharingLog_RpcCallStatus::~SharingLog_RpcCallStatus() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_RpcCallStatus::SharedDtor(MessageLite& self) { + SharingLog_RpcCallStatus& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.rpc_name_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_RpcCallStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - rpc_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_RpcCallStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_RpcCallStatus(arena); +} +constexpr auto SharingLog_RpcCallStatus::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_RpcCallStatus), + alignof(SharingLog_RpcCallStatus)); +} +constexpr auto SharingLog_RpcCallStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<56>{ + { + &_SharingLog_RpcCallStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_RpcCallStatus::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_RpcCallStatus::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_RpcCallStatus::ByteSizeLong, + &SharingLog_RpcCallStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.RpcCallStatus", + }; } -void SharingLog_RpcCallStatus::ArenaDtor(void* object) { - SharingLog_RpcCallStatus* _this = reinterpret_cast< SharingLog_RpcCallStatus* >(object); - (void)_this; -} -void SharingLog_RpcCallStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_RpcCallStatus::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RpcCallStatus_class_data_ = + SharingLog_RpcCallStatus::InternalGenerateClassData_(); -void SharingLog_RpcCallStatus::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_RpcCallStatus::GetClassData() const { + return SharingLog_RpcCallStatus_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SharingLog_RpcCallStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_RpcCallStatus_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int64 latency_millis = 4; + {::_pbi::TcParser::FastV64S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_)}}, + // optional string rpc_name = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.rpc_name_)}}, + // optional int32 error_code = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.error_code_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string rpc_name = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.rpc_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 error_code = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.error_code_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int64 latency_millis = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_RpcCallStatus::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - rpc_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.rpc_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { - ::memset(&direction_, 0, static_cast( - reinterpret_cast(&latency_millis_) - - reinterpret_cast(&direction_)) + sizeof(latency_millis_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) { + ::memset(&_impl_.direction_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.latency_millis_) - + reinterpret_cast(&_impl_.direction_)) + sizeof(_impl_.latency_millis_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_RpcCallStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection_IsValid(val))) { - _internal_set_direction(static_cast<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string rpc_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_rpc_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 error_code = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_error_code(&has_bits); - error_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 latency_millis = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_latency_millis(&has_bits); - latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_RpcCallStatus::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_RpcCallStatus::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_RpcCallStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_RpcCallStatus::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_RpcCallStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_direction(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_direction(), target); } // optional string rpc_name = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_rpc_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_rpc_name(); + target = stream->WriteStringMaybeAliased(2, _s, target); } // optional int32 error_code = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_error_code(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_error_code(), target); } // optional int64 latency_millis = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_latency_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_latency_millis(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) return target; } -size_t SharingLog_RpcCallStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_RpcCallStatus::ByteSizeLong(const MessageLite& base) { + const SharingLog_RpcCallStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_RpcCallStatus::ByteSizeLong() const { + const SharingLog_RpcCallStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string rpc_name = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_rpc_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_rpc_name()); } - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_direction()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_direction()); } - // optional int32 error_code = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_error_code()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_error_code()); } - // optional int64 latency_millis = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_millis()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_millis()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_RpcCallStatus::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_RpcCallStatus::MergeFrom(const SharingLog_RpcCallStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_rpc_name(from._internal_rpc_name()); - } - if (cached_has_bits & 0x00000002u) { - direction_ = from.direction_; - } - if (cached_has_bits & 0x00000004u) { - error_code_ = from.error_code_; - } - if (cached_has_bits & 0x00000008u) { - latency_millis_ = from.latency_millis_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_RpcCallStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_rpc_name(from._internal_rpc_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.direction_ = from._impl_.direction_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.error_code_ = from._impl_.error_code_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.latency_millis_ = from._impl_.latency_millis_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_RpcCallStatus::CopyFrom(const SharingLog_RpcCallStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_RpcCallStatus::IsInitialized() const { - return true; -} -void SharingLog_RpcCallStatus::InternalSwap(SharingLog_RpcCallStatus* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_RpcCallStatus::InternalSwap(SharingLog_RpcCallStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &rpc_name_, lhs_arena, - &other->rpc_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, latency_millis_) - + sizeof(SharingLog_RpcCallStatus::latency_millis_) - - PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, direction_)>( - reinterpret_cast(&direction_), - reinterpret_cast(&other->direction_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_name_, &other->_impl_.rpc_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.latency_millis_) + + sizeof(SharingLog_RpcCallStatus::_impl_.latency_millis_) + - PROTOBUF_FIELD_OFFSET(SharingLog_RpcCallStatus, _impl_.direction_)>( + reinterpret_cast(&_impl_.direction_), + reinterpret_cast(&other->_impl_.direction_)); } -std::string SharingLog_RpcCallStatus::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.RpcCallStatus"; -} - - // =================================================================== class SharingLog_StartQrCodeSession::_Internal { public: }; -SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_StartQrCodeSession_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) } -SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession(const SharingLog_StartQrCodeSession& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) +SharingLog_StartQrCodeSession::SharingLog_StartQrCodeSession( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_StartQrCodeSession& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_StartQrCodeSession_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_StartQrCodeSession::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_StartQrCodeSession::SharedCtor() { +inline void SharingLog_StartQrCodeSession::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SharingLog_StartQrCodeSession::~SharingLog_StartQrCodeSession() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_StartQrCodeSession::SharedDtor(MessageLite& self) { + SharingLog_StartQrCodeSession& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_StartQrCodeSession::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_StartQrCodeSession::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_StartQrCodeSession(arena); +} +constexpr auto SharingLog_StartQrCodeSession::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_StartQrCodeSession), + alignof(SharingLog_StartQrCodeSession)); +} +constexpr auto SharingLog_StartQrCodeSession::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<61>{ + { + &_SharingLog_StartQrCodeSession_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_StartQrCodeSession::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_StartQrCodeSession::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_StartQrCodeSession::ByteSizeLong, + &SharingLog_StartQrCodeSession::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_StartQrCodeSession, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession", + }; } -void SharingLog_StartQrCodeSession::ArenaDtor(void* object) { - SharingLog_StartQrCodeSession* _this = reinterpret_cast< SharingLog_StartQrCodeSession* >(object); - (void)_this; -} -void SharingLog_StartQrCodeSession::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_StartQrCodeSession::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> SharingLog_StartQrCodeSession_class_data_ = + SharingLog_StartQrCodeSession::InternalGenerateClassData_(); -void SharingLog_StartQrCodeSession::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_StartQrCodeSession::GetClassData() const { + return SharingLog_StartQrCodeSession_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +SharingLog_StartQrCodeSession::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_StartQrCodeSession_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_StartQrCodeSession::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_StartQrCodeSession::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_StartQrCodeSession::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_StartQrCodeSession::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_StartQrCodeSession& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_StartQrCodeSession::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_StartQrCodeSession& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) return target; } -size_t SharingLog_StartQrCodeSession::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_StartQrCodeSession::ByteSizeLong(const MessageLite& base) { + const SharingLog_StartQrCodeSession& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_StartQrCodeSession::ByteSizeLong() const { + const SharingLog_StartQrCodeSession& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_StartQrCodeSession::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog_StartQrCodeSession::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog_StartQrCodeSession::MergeFrom(const SharingLog_StartQrCodeSession& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_StartQrCodeSession::CopyFrom(const SharingLog_StartQrCodeSession& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_StartQrCodeSession::IsInitialized() const { - return true; -} -void SharingLog_StartQrCodeSession::InternalSwap(SharingLog_StartQrCodeSession* other) { - using std::swap; +void SharingLog_StartQrCodeSession::InternalSwap(SharingLog_StartQrCodeSession* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); } -std::string SharingLog_StartQrCodeSession::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession"; -} - - // =================================================================== class SharingLog_QrCodeOpenedInWebClient::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_client_platform(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_is_retry(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._has_bits_); }; -SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_QrCodeOpenedInWebClient_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) } -SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient(const SharingLog_QrCodeOpenedInWebClient& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&client_platform_, &from.client_platform_, - static_cast(reinterpret_cast(&is_retry_) - - reinterpret_cast(&client_platform_)) + sizeof(is_retry_)); - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) +SharingLog_QrCodeOpenedInWebClient::SharingLog_QrCodeOpenedInWebClient( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeOpenedInWebClient& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_QrCodeOpenedInWebClient_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_QrCodeOpenedInWebClient::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_QrCodeOpenedInWebClient::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&client_platform_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_retry_) - - reinterpret_cast(&client_platform_)) + sizeof(is_retry_)); +inline void SharingLog_QrCodeOpenedInWebClient::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, client_platform_), + 0, + offsetof(Impl_, is_retry_) - + offsetof(Impl_, client_platform_) + + sizeof(Impl_::is_retry_)); } - SharingLog_QrCodeOpenedInWebClient::~SharingLog_QrCodeOpenedInWebClient() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_QrCodeOpenedInWebClient::SharedDtor(MessageLite& self) { + SharingLog_QrCodeOpenedInWebClient& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_QrCodeOpenedInWebClient::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_QrCodeOpenedInWebClient::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_QrCodeOpenedInWebClient(arena); +} +constexpr auto SharingLog_QrCodeOpenedInWebClient::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_QrCodeOpenedInWebClient), + alignof(SharingLog_QrCodeOpenedInWebClient)); +} +constexpr auto SharingLog_QrCodeOpenedInWebClient::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<66>{ + { + &_SharingLog_QrCodeOpenedInWebClient_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_QrCodeOpenedInWebClient::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_QrCodeOpenedInWebClient::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_QrCodeOpenedInWebClient::ByteSizeLong, + &SharingLog_QrCodeOpenedInWebClient::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient", + }; } -void SharingLog_QrCodeOpenedInWebClient::ArenaDtor(void* object) { - SharingLog_QrCodeOpenedInWebClient* _this = reinterpret_cast< SharingLog_QrCodeOpenedInWebClient* >(object); - (void)_this; -} -void SharingLog_QrCodeOpenedInWebClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_QrCodeOpenedInWebClient::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<66> SharingLog_QrCodeOpenedInWebClient_class_data_ = + SharingLog_QrCodeOpenedInWebClient::InternalGenerateClassData_(); -void SharingLog_QrCodeOpenedInWebClient::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_QrCodeOpenedInWebClient::GetClassData() const { + return SharingLog_QrCodeOpenedInWebClient_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +SharingLog_QrCodeOpenedInWebClient::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_QrCodeOpenedInWebClient_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bool is_retry = 2; + {::_pbi::TcParser::FastV8S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 5, + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool is_retry = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {0, 5}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_QrCodeOpenedInWebClient::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&client_platform_, 0, static_cast( - reinterpret_cast(&is_retry_) - - reinterpret_cast(&client_platform_)) + sizeof(is_retry_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.client_platform_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_retry_) - + reinterpret_cast(&_impl_.client_platform_)) + sizeof(_impl_.is_retry_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_QrCodeOpenedInWebClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(val))) { - _internal_set_client_platform(static_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bool is_retry = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_is_retry(&has_bits); - is_retry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_QrCodeOpenedInWebClient::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeOpenedInWebClient::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_QrCodeOpenedInWebClient& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_QrCodeOpenedInWebClient::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_QrCodeOpenedInWebClient& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_client_platform(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_client_platform(), target); } // optional bool is_retry = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_is_retry(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_is_retry(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) return target; } -size_t SharingLog_QrCodeOpenedInWebClient::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_QrCodeOpenedInWebClient::ByteSizeLong(const MessageLite& base) { + const SharingLog_QrCodeOpenedInWebClient& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_QrCodeOpenedInWebClient::ByteSizeLong() const { + const SharingLog_QrCodeOpenedInWebClient& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000002U & cached_has_bits) * 2; + { // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_client_platform()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_client_platform()); } - - // optional bool is_retry = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_QrCodeOpenedInWebClient::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_QrCodeOpenedInWebClient::MergeFrom(const SharingLog_QrCodeOpenedInWebClient& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - client_platform_ = from.client_platform_; - } - if (cached_has_bits & 0x00000002u) { - is_retry_ = from.is_retry_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_QrCodeOpenedInWebClient::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.client_platform_ = from._impl_.client_platform_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.is_retry_ = from._impl_.is_retry_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_QrCodeOpenedInWebClient::CopyFrom(const SharingLog_QrCodeOpenedInWebClient& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_QrCodeOpenedInWebClient::IsInitialized() const { - return true; -} -void SharingLog_QrCodeOpenedInWebClient::InternalSwap(SharingLog_QrCodeOpenedInWebClient* other) { - using std::swap; +void SharingLog_QrCodeOpenedInWebClient::InternalSwap(SharingLog_QrCodeOpenedInWebClient* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, is_retry_) - + sizeof(SharingLog_QrCodeOpenedInWebClient::is_retry_) - - PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, client_platform_)>( - reinterpret_cast(&client_platform_), - reinterpret_cast(&other->client_platform_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.is_retry_) + + sizeof(SharingLog_QrCodeOpenedInWebClient::_impl_.is_retry_) + - PROTOBUF_FIELD_OFFSET(SharingLog_QrCodeOpenedInWebClient, _impl_.client_platform_)>( + reinterpret_cast(&_impl_.client_platform_), + reinterpret_cast(&other->_impl_.client_platform_)); } -std::string SharingLog_QrCodeOpenedInWebClient::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient"; -} - - // =================================================================== class SharingLog_HatsJointEvent::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_flow_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_hats_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._has_bits_); }; -SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_HatsJointEvent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) } -SharingLog_HatsJointEvent::SharingLog_HatsJointEvent(const SharingLog_HatsJointEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - hats_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - hats_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_hats_session_id()) { - hats_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hats_session_id(), - GetArenaForAllocation()); - } - flow_id_ = from.flow_id_; +PROTOBUF_NDEBUG_INLINE SharingLog_HatsJointEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + hats_session_id_(arena, from.hats_session_id_) {} + +SharingLog_HatsJointEvent::SharingLog_HatsJointEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_HatsJointEvent& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_HatsJointEvent_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_HatsJointEvent* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.flow_id_ = from._impl_.flow_id_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) } +PROTOBUF_NDEBUG_INLINE SharingLog_HatsJointEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + hats_session_id_(arena) {} -inline void SharingLog_HatsJointEvent::SharedCtor() { -hats_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - hats_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -flow_id_ = int64_t{0}; +inline void SharingLog_HatsJointEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.flow_id_ = {}; } - SharingLog_HatsJointEvent::~SharingLog_HatsJointEvent() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_HatsJointEvent::SharedDtor(MessageLite& self) { + SharingLog_HatsJointEvent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hats_session_id_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_HatsJointEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - hats_session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_HatsJointEvent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_HatsJointEvent(arena); +} +constexpr auto SharingLog_HatsJointEvent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_HatsJointEvent), + alignof(SharingLog_HatsJointEvent)); +} +constexpr auto SharingLog_HatsJointEvent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_HatsJointEvent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_HatsJointEvent::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_HatsJointEvent::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_HatsJointEvent::ByteSizeLong, + &SharingLog_HatsJointEvent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.HatsJointEvent", + }; } -void SharingLog_HatsJointEvent::ArenaDtor(void* object) { - SharingLog_HatsJointEvent* _this = reinterpret_cast< SharingLog_HatsJointEvent* >(object); - (void)_this; -} -void SharingLog_HatsJointEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_HatsJointEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_HatsJointEvent_class_data_ = + SharingLog_HatsJointEvent::InternalGenerateClassData_(); -void SharingLog_HatsJointEvent::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_HatsJointEvent::GetClassData() const { + return SharingLog_HatsJointEvent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SharingLog_HatsJointEvent::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_HatsJointEvent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string hats_session_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.hats_session_id_)}}, + // optional int64 flow_id = 1; + {::_pbi::TcParser::FastV64S1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.flow_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int64 flow_id = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.flow_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string hats_session_id = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_HatsJointEvent, _impl_.hats_session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_HatsJointEvent::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - hats_session_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.hats_session_id_.ClearNonDefaultToEmpty(); } - flow_id_ = int64_t{0}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.flow_id_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_HatsJointEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 flow_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_flow_id(&has_bits); - flow_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string hats_session_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_hats_session_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_HatsJointEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_HatsJointEvent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_HatsJointEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_HatsJointEvent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_HatsJointEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int64 flow_id = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_flow_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_flow_id(), target); } // optional string hats_session_id = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_hats_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_hats_session_id(); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) return target; } -size_t SharingLog_HatsJointEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_HatsJointEvent::ByteSizeLong(const MessageLite& base) { + const SharingLog_HatsJointEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_HatsJointEvent::ByteSizeLong() const { + const SharingLog_HatsJointEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string hats_session_id = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_hats_session_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_hats_session_id()); } - // optional int64 flow_id = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_flow_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_flow_id()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_HatsJointEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_HatsJointEvent::MergeFrom(const SharingLog_HatsJointEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_hats_session_id(from._internal_hats_session_id()); - } - if (cached_has_bits & 0x00000002u) { - flow_id_ = from.flow_id_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_HatsJointEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_hats_session_id(from._internal_hats_session_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.flow_id_ = from._impl_.flow_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_HatsJointEvent::CopyFrom(const SharingLog_HatsJointEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_HatsJointEvent::IsInitialized() const { - return true; -} -void SharingLog_HatsJointEvent::InternalSwap(SharingLog_HatsJointEvent* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_HatsJointEvent::InternalSwap(SharingLog_HatsJointEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &hats_session_id_, lhs_arena, - &other->hats_session_id_, rhs_arena - ); - swap(flow_id_, other->flow_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hats_session_id_, &other->_impl_.hats_session_id_, arena); + swap(_impl_.flow_id_, other->_impl_.flow_id_); } -std::string SharingLog_HatsJointEvent::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.HatsJointEvent"; -} - - // =================================================================== class SharingLog_ReceivePreviews::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_num_previews(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_._has_bits_); }; -SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceivePreviews_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) } -SharingLog_ReceivePreviews::SharingLog_ReceivePreviews(const SharingLog_ReceivePreviews& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - num_previews_ = from.num_previews_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) +SharingLog_ReceivePreviews::SharingLog_ReceivePreviews( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceivePreviews& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_ReceivePreviews_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_ReceivePreviews::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_ReceivePreviews::SharedCtor() { -num_previews_ = 0; +inline void SharingLog_ReceivePreviews::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.num_previews_ = {}; } - SharingLog_ReceivePreviews::~SharingLog_ReceivePreviews() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_ReceivePreviews::SharedDtor(MessageLite& self) { + SharingLog_ReceivePreviews& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_ReceivePreviews::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_ReceivePreviews::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_ReceivePreviews(arena); +} +constexpr auto SharingLog_ReceivePreviews::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_ReceivePreviews), + alignof(SharingLog_ReceivePreviews)); +} +constexpr auto SharingLog_ReceivePreviews::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<58>{ + { + &_SharingLog_ReceivePreviews_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_ReceivePreviews::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_ReceivePreviews::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_ReceivePreviews::ByteSizeLong, + &SharingLog_ReceivePreviews::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.ReceivePreviews", + }; } -void SharingLog_ReceivePreviews::ArenaDtor(void* object) { - SharingLog_ReceivePreviews* _this = reinterpret_cast< SharingLog_ReceivePreviews* >(object); - (void)_this; -} -void SharingLog_ReceivePreviews::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_ReceivePreviews::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ReceivePreviews_class_data_ = + SharingLog_ReceivePreviews::InternalGenerateClassData_(); -void SharingLog_ReceivePreviews::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_ReceivePreviews::GetClassData() const { + return SharingLog_ReceivePreviews_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SharingLog_ReceivePreviews::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_ReceivePreviews_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 num_previews = 1; + {::_pbi::TcParser::FastV32S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_.num_previews_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 num_previews = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_ReceivePreviews, _impl_.num_previews_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_ReceivePreviews::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - num_previews_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.num_previews_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_ReceivePreviews::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 num_previews = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_num_previews(&has_bits); - num_previews_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_ReceivePreviews::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceivePreviews::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_ReceivePreviews& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_ReceivePreviews::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_ReceivePreviews& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 num_previews = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_num_previews(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_num_previews(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) return target; } -size_t SharingLog_ReceivePreviews::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_ReceivePreviews::ByteSizeLong(const MessageLite& base) { + const SharingLog_ReceivePreviews& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_ReceivePreviews::ByteSizeLong() const { + const SharingLog_ReceivePreviews& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 num_previews = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_num_previews()); + { + // optional int32 num_previews = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_previews()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_ReceivePreviews::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_ReceivePreviews::MergeFrom(const SharingLog_ReceivePreviews& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_num_previews()) { - _internal_set_num_previews(from._internal_num_previews()); +void SharingLog_ReceivePreviews::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.num_previews_ = from._impl_.num_previews_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_ReceivePreviews::CopyFrom(const SharingLog_ReceivePreviews& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_ReceivePreviews::IsInitialized() const { - return true; -} -void SharingLog_ReceivePreviews::InternalSwap(SharingLog_ReceivePreviews* other) { - using std::swap; +void SharingLog_ReceivePreviews::InternalSwap(SharingLog_ReceivePreviews* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(num_previews_, other->num_previews_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.num_previews_, other->_impl_.num_previews_); } -std::string SharingLog_ReceivePreviews::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.ReceivePreviews"; -} - - // =================================================================== class SharingLog_CloudCreateSharingRequest::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_CloudCreateSharingRequest* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_CloudCreateSharingRequest::_Internal::attachments_info(const SharingLog_CloudCreateSharingRequest* msg) { - return *msg->attachments_info_; -} -SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudCreateSharingRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) } -SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest(const SharingLog_CloudCreateSharingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - result_ = from.result_; +PROTOBUF_NDEBUG_INLINE SharingLog_CloudCreateSharingRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_CloudCreateSharingRequest::SharingLog_CloudCreateSharingRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudCreateSharingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudCreateSharingRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudCreateSharingRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachment_download_latency_millis_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, attachment_download_latency_millis_), + offsetof(Impl_, result_) - + offsetof(Impl_, attachment_download_latency_millis_) + + sizeof(Impl_::result_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudCreateSharingRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CloudCreateSharingRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&result_) - - reinterpret_cast(&attachments_info_)) + sizeof(result_)); +inline void SharingLog_CloudCreateSharingRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, result_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::result_)); } - SharingLog_CloudCreateSharingRequest::~SharingLog_CloudCreateSharingRequest() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudCreateSharingRequest::SharedDtor(MessageLite& self) { + SharingLog_CloudCreateSharingRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_CloudCreateSharingRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; +inline void* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudCreateSharingRequest(arena); +} +constexpr auto SharingLog_CloudCreateSharingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudCreateSharingRequest), + alignof(SharingLog_CloudCreateSharingRequest)); +} +constexpr auto SharingLog_CloudCreateSharingRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<68>{ + { + &_SharingLog_CloudCreateSharingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudCreateSharingRequest::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudCreateSharingRequest::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudCreateSharingRequest::ByteSizeLong, + &SharingLog_CloudCreateSharingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest", + }; } -void SharingLog_CloudCreateSharingRequest::ArenaDtor(void* object) { - SharingLog_CloudCreateSharingRequest* _this = reinterpret_cast< SharingLog_CloudCreateSharingRequest* >(object); - (void)_this; -} -void SharingLog_CloudCreateSharingRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudCreateSharingRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<68> SharingLog_CloudCreateSharingRequest_class_data_ = + SharingLog_CloudCreateSharingRequest::InternalGenerateClassData_(); -void SharingLog_CloudCreateSharingRequest::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudCreateSharingRequest::GetClassData() const { + return SharingLog_CloudCreateSharingRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 2, 0, 2> +SharingLog_CloudCreateSharingRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudCreateSharingRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_)}}, + // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 4, 10, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.result_)}}, + // optional int64 attachment_download_latency_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachment_download_latency_millis_)}}, + // optional int64 preview_thumbnail_latency_millis = 4; + {::_pbi::TcParser::FastV64S1, + {32, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.preview_thumbnail_latency_millis_)}}, + // optional int64 rpc_latency_millis = 5; + {::_pbi::TcParser::FastV64S1, + {40, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.rpc_latency_millis_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.result_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional int64 attachment_download_latency_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachment_download_latency_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 preview_thumbnail_latency_millis = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.preview_thumbnail_latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional int64 rpc_latency_millis = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.rpc_latency_millis_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {0, 10}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudCreateSharingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - result_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) { + ::memset(&_impl_.attachment_download_latency_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.result_) - + reinterpret_cast(&_impl_.attachment_download_latency_millis_)) + sizeof(_impl_.result_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudCreateSharingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudCreateSharingResult_IsValid(val))) { - _internal_set_result(static_cast<::location::nearby::proto::sharing::CloudCreateSharingResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudCreateSharingRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudCreateSharingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudCreateSharingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_result(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + // optional int64 attachment_download_latency_millis = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_attachment_download_latency_millis(), target); + } + + // optional int64 preview_thumbnail_latency_millis = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>( + stream, this_._internal_preview_thumbnail_latency_millis(), target); + } + + // optional int64 rpc_latency_millis = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( + stream, this_._internal_rpc_latency_millis(), target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) return target; } -size_t SharingLog_CloudCreateSharingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudCreateSharingRequest::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudCreateSharingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudCreateSharingRequest::ByteSizeLong() const { + const SharingLog_CloudCreateSharingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); + } + // optional int64 attachment_download_latency_millis = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_attachment_download_latency_millis()); + } + // optional int64 preview_thumbnail_latency_millis = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_preview_thumbnail_latency_millis()); + } + // optional int64 rpc_latency_millis = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_rpc_latency_millis()); } - // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudCreateSharingRequest::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudCreateSharingRequest::MergeFrom(const SharingLog_CloudCreateSharingRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - result_ = from.result_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CloudCreateSharingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.attachment_download_latency_millis_ = from._impl_.attachment_download_latency_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.preview_thumbnail_latency_millis_ = from._impl_.preview_thumbnail_latency_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.rpc_latency_millis_ = from._impl_.rpc_latency_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.result_ = from._impl_.result_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudCreateSharingRequest::CopyFrom(const SharingLog_CloudCreateSharingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudCreateSharingRequest::IsInitialized() const { - return true; -} -void SharingLog_CloudCreateSharingRequest::InternalSwap(SharingLog_CloudCreateSharingRequest* other) { - using std::swap; +void SharingLog_CloudCreateSharingRequest::InternalSwap(SharingLog_CloudCreateSharingRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, result_) - + sizeof(SharingLog_CloudCreateSharingRequest::result_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.result_) + + sizeof(SharingLog_CloudCreateSharingRequest::_impl_.result_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CloudCreateSharingRequest, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_CloudCreateSharingRequest::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest"; -} - - // =================================================================== class SharingLog_CloudRegisterReceiver::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_._has_bits_); }; -SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudRegisterReceiver_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) } -SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver(const SharingLog_CloudRegisterReceiver& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - result_ = from.result_; - // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) +SharingLog_CloudRegisterReceiver::SharingLog_CloudRegisterReceiver( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudRegisterReceiver& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudRegisterReceiver_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudRegisterReceiver::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CloudRegisterReceiver::SharedCtor() { -result_ = 0; +inline void SharingLog_CloudRegisterReceiver::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - SharingLog_CloudRegisterReceiver::~SharingLog_CloudRegisterReceiver() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudRegisterReceiver::SharedDtor(MessageLite& self) { + SharingLog_CloudRegisterReceiver& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CloudRegisterReceiver::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CloudRegisterReceiver::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudRegisterReceiver(arena); +} +constexpr auto SharingLog_CloudRegisterReceiver::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudRegisterReceiver), + alignof(SharingLog_CloudRegisterReceiver)); +} +constexpr auto SharingLog_CloudRegisterReceiver::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<64>{ + { + &_SharingLog_CloudRegisterReceiver_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudRegisterReceiver::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudRegisterReceiver::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudRegisterReceiver::ByteSizeLong, + &SharingLog_CloudRegisterReceiver::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver", + }; } -void SharingLog_CloudRegisterReceiver::ArenaDtor(void* object) { - SharingLog_CloudRegisterReceiver* _this = reinterpret_cast< SharingLog_CloudRegisterReceiver* >(object); - (void)_this; -} -void SharingLog_CloudRegisterReceiver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudRegisterReceiver::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudRegisterReceiver_class_data_ = + SharingLog_CloudRegisterReceiver::InternalGenerateClassData_(); -void SharingLog_CloudRegisterReceiver::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudRegisterReceiver::GetClassData() const { + return SharingLog_CloudRegisterReceiver_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SharingLog_CloudRegisterReceiver::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudRegisterReceiver_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 16, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_.result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudRegisterReceiver, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {0, 16}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudRegisterReceiver::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.result_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudRegisterReceiver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudRegisterReceiverResult_IsValid(val))) { - _internal_set_result(static_cast<::location::nearby::proto::sharing::CloudRegisterReceiverResult>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudRegisterReceiver::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudRegisterReceiver::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudRegisterReceiver& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudRegisterReceiver::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudRegisterReceiver& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) return target; } -size_t SharingLog_CloudRegisterReceiver::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudRegisterReceiver::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudRegisterReceiver& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudRegisterReceiver::ByteSizeLong() const { + const SharingLog_CloudRegisterReceiver& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_result()); + { + // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudRegisterReceiver::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudRegisterReceiver::MergeFrom(const SharingLog_CloudRegisterReceiver& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_result()) { - _internal_set_result(from._internal_result()); +void SharingLog_CloudRegisterReceiver::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.result_ = from._impl_.result_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudRegisterReceiver::CopyFrom(const SharingLog_CloudRegisterReceiver& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudRegisterReceiver::IsInitialized() const { - return true; -} -void SharingLog_CloudRegisterReceiver::InternalSwap(SharingLog_CloudRegisterReceiver* other) { - using std::swap; +void SharingLog_CloudRegisterReceiver::InternalSwap(SharingLog_CloudRegisterReceiver* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(result_, other->result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.result_, other->_impl_.result_); } -std::string SharingLog_CloudRegisterReceiver::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver"; -} - - // =================================================================== class SharingLog_CloudUploadStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_CloudUploadStart* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_action_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_CloudUploadStart::_Internal::attachments_info(const SharingLog_CloudUploadStart* msg) { - return *msg->attachments_info_; -} -SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) } -SharingLog_CloudUploadStart::SharingLog_CloudUploadStart(const SharingLog_CloudUploadStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - action_type_ = from.action_type_; +PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_CloudUploadStart::SharingLog_CloudUploadStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudUploadStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudUploadStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.action_type_ = from._impl_.action_type_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CloudUploadStart::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&action_type_) - - reinterpret_cast(&attachments_info_)) + sizeof(action_type_)); +inline void SharingLog_CloudUploadStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, action_type_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::action_type_)); } - SharingLog_CloudUploadStart::~SharingLog_CloudUploadStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudUploadStart::SharedDtor(MessageLite& self) { + SharingLog_CloudUploadStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_CloudUploadStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; +inline void* PROTOBUF_NONNULL SharingLog_CloudUploadStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudUploadStart(arena); +} +constexpr auto SharingLog_CloudUploadStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudUploadStart), + alignof(SharingLog_CloudUploadStart)); +} +constexpr auto SharingLog_CloudUploadStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_CloudUploadStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudUploadStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudUploadStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudUploadStart::ByteSizeLong, + &SharingLog_CloudUploadStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudUploadStart", + }; } -void SharingLog_CloudUploadStart::ArenaDtor(void* object) { - SharingLog_CloudUploadStart* _this = reinterpret_cast< SharingLog_CloudUploadStart* >(object); - (void)_this; -} -void SharingLog_CloudUploadStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudUploadStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudUploadStart_class_data_ = + SharingLog_CloudUploadStart::InternalGenerateClassData_(); -void SharingLog_CloudUploadStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudUploadStart::GetClassData() const { + return SharingLog_CloudUploadStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_CloudUploadStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudUploadStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.action_type_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudUploadStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - action_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.action_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudUploadStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudActionType_IsValid(val))) { - _internal_set_action_type(static_cast<::location::nearby::proto::sharing::CloudActionType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudUploadStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudUploadStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudUploadStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_action_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_action_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) return target; } -size_t SharingLog_CloudUploadStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudUploadStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudUploadStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudUploadStart::ByteSizeLong() const { + const SharingLog_CloudUploadStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_action_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudUploadStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudUploadStart::MergeFrom(const SharingLog_CloudUploadStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - action_type_ = from.action_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CloudUploadStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_type_ = from._impl_.action_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudUploadStart::CopyFrom(const SharingLog_CloudUploadStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudUploadStart::IsInitialized() const { - return true; -} -void SharingLog_CloudUploadStart::InternalSwap(SharingLog_CloudUploadStart* other) { - using std::swap; +void SharingLog_CloudUploadStart::InternalSwap(SharingLog_CloudUploadStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, action_type_) - + sizeof(SharingLog_CloudUploadStart::action_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.action_type_) + + sizeof(SharingLog_CloudUploadStart::_impl_.action_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadStart, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_CloudUploadStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudUploadStart"; -} - - // =================================================================== class SharingLog_CloudUploadEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_action_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._has_bits_); }; -SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - upload_infos_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) } -SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd(const SharingLog_CloudUploadEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - upload_infos_(from.upload_infos_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - action_type_ = from.action_type_; +PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + upload_infos_{visibility, arena, from.upload_infos_} {} + +SharingLog_CloudUploadEnd::SharingLog_CloudUploadEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudUploadEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudUploadEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudUploadEnd* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.action_type_ = from._impl_.action_type_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudUploadEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + upload_infos_{visibility, arena} {} -inline void SharingLog_CloudUploadEnd::SharedCtor() { -action_type_ = 0; +inline void SharingLog_CloudUploadEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_type_ = {}; } - SharingLog_CloudUploadEnd::~SharingLog_CloudUploadEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudUploadEnd::SharedDtor(MessageLite& self) { + SharingLog_CloudUploadEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CloudUploadEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudUploadEnd(arena); +} +constexpr auto SharingLog_CloudUploadEnd::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_) + + decltype(SharingLog_CloudUploadEnd::_impl_.upload_infos_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SharingLog_CloudUploadEnd), alignof(SharingLog_CloudUploadEnd), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SharingLog_CloudUploadEnd::PlacementNew_, + sizeof(SharingLog_CloudUploadEnd), + alignof(SharingLog_CloudUploadEnd)); + } +} +constexpr auto SharingLog_CloudUploadEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<57>{ + { + &_SharingLog_CloudUploadEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudUploadEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudUploadEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudUploadEnd::ByteSizeLong, + &SharingLog_CloudUploadEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd", + }; } -void SharingLog_CloudUploadEnd::ArenaDtor(void* object) { - SharingLog_CloudUploadEnd* _this = reinterpret_cast< SharingLog_CloudUploadEnd* >(object); - (void)_this; -} -void SharingLog_CloudUploadEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudUploadEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<57> SharingLog_CloudUploadEnd_class_data_ = + SharingLog_CloudUploadEnd::InternalGenerateClassData_(); -void SharingLog_CloudUploadEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudUploadEnd::GetClassData() const { + return SharingLog_CloudUploadEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_CloudUploadEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudUploadEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.action_type_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; + {::_pbi::TcParser::FastMtR1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.upload_infos_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudUploadEnd, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudUploadEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - upload_infos_.Clear(); - action_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.upload_infos_.Clear(); + } + _impl_.action_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudUploadEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_upload_infos(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudActionType_IsValid(val))) { - _internal_set_action_type(static_cast<::location::nearby::proto::sharing::CloudActionType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudUploadEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudUploadEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudUploadEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_upload_infos_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_upload_infos(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_upload_infos_size()); + i < n; i++) { + const auto& repfield = this_._internal_upload_infos().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } } - cached_has_bits = _has_bits_[0]; // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_action_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_action_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) return target; } -size_t SharingLog_CloudUploadEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudUploadEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudUploadEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudUploadEnd::ByteSizeLong() const { + const SharingLog_CloudUploadEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; - total_size += 1UL * this->_internal_upload_infos_size(); - for (const auto& msg : this->upload_infos_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_upload_infos_size(); + for (const auto& msg : this_._internal_upload_infos()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_action_type()); + } } - - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action_type()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudUploadEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudUploadEnd::MergeFrom(const SharingLog_CloudUploadEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - upload_infos_.MergeFrom(from.upload_infos_); - if (from._internal_has_action_type()) { - _internal_set_action_type(from._internal_action_type()); +void SharingLog_CloudUploadEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_upload_infos()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_upload_infos()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_type_ = from._impl_.action_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudUploadEnd::CopyFrom(const SharingLog_CloudUploadEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudUploadEnd::IsInitialized() const { - return true; -} -void SharingLog_CloudUploadEnd::InternalSwap(SharingLog_CloudUploadEnd* other) { - using std::swap; +void SharingLog_CloudUploadEnd::InternalSwap(SharingLog_CloudUploadEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - upload_infos_.InternalSwap(&other->upload_infos_); - swap(action_type_, other->action_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.upload_infos_.InternalSwap(&other->_impl_.upload_infos_); + swap(_impl_.action_type_, other->_impl_.action_type_); } -std::string SharingLog_CloudUploadEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd"; -} - - // =================================================================== class SharingLog_CloudDownloadStart::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info(const SharingLog_CloudDownloadStart* msg); - static void set_has_attachments_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_action_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& -SharingLog_CloudDownloadStart::_Internal::attachments_info(const SharingLog_CloudDownloadStart* msg) { - return *msg->attachments_info_; -} -SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) } -SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart(const SharingLog_CloudDownloadStart& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_attachments_info()) { - attachments_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo(*from.attachments_info_); - } else { - attachments_info_ = nullptr; - } - action_type_ = from.action_type_; +PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SharingLog_CloudDownloadStart::SharingLog_CloudDownloadStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudDownloadStart& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadStart_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudDownloadStart* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attachments_info_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_) + : nullptr; + _impl_.action_type_ = from._impl_.action_type_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadStart::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void SharingLog_CloudDownloadStart::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&attachments_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&action_type_) - - reinterpret_cast(&attachments_info_)) + sizeof(action_type_)); +inline void SharingLog_CloudDownloadStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attachments_info_), + 0, + offsetof(Impl_, action_type_) - + offsetof(Impl_, attachments_info_) + + sizeof(Impl_::action_type_)); } - SharingLog_CloudDownloadStart::~SharingLog_CloudDownloadStart() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudDownloadStart::SharedDtor(MessageLite& self) { + SharingLog_CloudDownloadStart& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.attachments_info_; + this_._impl_.~Impl_(); } -inline void SharingLog_CloudDownloadStart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete attachments_info_; +inline void* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudDownloadStart(arena); +} +constexpr auto SharingLog_CloudDownloadStart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SharingLog_CloudDownloadStart), + alignof(SharingLog_CloudDownloadStart)); +} +constexpr auto SharingLog_CloudDownloadStart::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<61>{ + { + &_SharingLog_CloudDownloadStart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudDownloadStart::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudDownloadStart::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudDownloadStart::ByteSizeLong, + &SharingLog_CloudDownloadStart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart", + }; } -void SharingLog_CloudDownloadStart::ArenaDtor(void* object) { - SharingLog_CloudDownloadStart* _this = reinterpret_cast< SharingLog_CloudDownloadStart* >(object); - (void)_this; -} -void SharingLog_CloudDownloadStart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudDownloadStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<61> SharingLog_CloudDownloadStart_class_data_ = + SharingLog_CloudDownloadStart::InternalGenerateClassData_(); -void SharingLog_CloudDownloadStart::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudDownloadStart::GetClassData() const { + return SharingLog_CloudDownloadStart_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_CloudDownloadStart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudDownloadStart_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.action_type_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudDownloadStart::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(attachments_info_ != nullptr); - attachments_info_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.attachments_info_ != nullptr); + _impl_.attachments_info_->Clear(); } - action_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.action_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudDownloadStart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attachments_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudActionType_IsValid(val))) { - _internal_set_action_type(static_cast<::location::nearby::proto::sharing::CloudActionType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudDownloadStart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudDownloadStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudDownloadStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::attachments_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.attachments_info_, this_._impl_.attachments_info_->GetCachedSize(), target, + stream); } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_action_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_action_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) return target; } -size_t SharingLog_CloudDownloadStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudDownloadStart::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudDownloadStart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudDownloadStart::ByteSizeLong() const { + const SharingLog_CloudDownloadStart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attachments_info_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachments_info_); } - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_action_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudDownloadStart::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudDownloadStart::MergeFrom(const SharingLog_CloudDownloadStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_attachments_info()->::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo::MergeFrom(from._internal_attachments_info()); - } - if (cached_has_bits & 0x00000002u) { - action_type_ = from.action_type_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CloudDownloadStart::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.attachments_info_ != nullptr); + if (_this->_impl_.attachments_info_ == nullptr) { + _this->_impl_.attachments_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachments_info_); + } else { + _this->_impl_.attachments_info_->MergeFrom(*from._impl_.attachments_info_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_type_ = from._impl_.action_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudDownloadStart::CopyFrom(const SharingLog_CloudDownloadStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudDownloadStart::IsInitialized() const { - return true; -} -void SharingLog_CloudDownloadStart::InternalSwap(SharingLog_CloudDownloadStart* other) { - using std::swap; +void SharingLog_CloudDownloadStart::InternalSwap(SharingLog_CloudDownloadStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, action_type_) - + sizeof(SharingLog_CloudDownloadStart::action_type_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, attachments_info_)>( - reinterpret_cast(&attachments_info_), - reinterpret_cast(&other->attachments_info_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.action_type_) + + sizeof(SharingLog_CloudDownloadStart::_impl_.action_type_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadStart, _impl_.attachments_info_)>( + reinterpret_cast(&_impl_.attachments_info_), + reinterpret_cast(&other->_impl_.attachments_info_)); } -std::string SharingLog_CloudDownloadStart::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart"; -} - - // =================================================================== class SharingLog_CloudDownloadEnd::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_action_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._has_bits_); }; -SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - download_infos_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) } -SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd(const SharingLog_CloudDownloadEnd& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - download_infos_(from.download_infos_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - action_type_ = from.action_type_; +PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + download_infos_{visibility, arena, from.download_infos_} {} + +SharingLog_CloudDownloadEnd::SharingLog_CloudDownloadEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudDownloadEnd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudDownloadEnd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudDownloadEnd* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.action_type_ = from._impl_.action_type_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudDownloadEnd::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + download_infos_{visibility, arena} {} -inline void SharingLog_CloudDownloadEnd::SharedCtor() { -action_type_ = 0; +inline void SharingLog_CloudDownloadEnd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_type_ = {}; } - SharingLog_CloudDownloadEnd::~SharingLog_CloudDownloadEnd() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudDownloadEnd::SharedDtor(MessageLite& self) { + SharingLog_CloudDownloadEnd& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void SharingLog_CloudDownloadEnd::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudDownloadEnd(arena); +} +constexpr auto SharingLog_CloudDownloadEnd::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_) + + decltype(SharingLog_CloudDownloadEnd::_impl_.download_infos_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SharingLog_CloudDownloadEnd), alignof(SharingLog_CloudDownloadEnd), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SharingLog_CloudDownloadEnd::PlacementNew_, + sizeof(SharingLog_CloudDownloadEnd), + alignof(SharingLog_CloudDownloadEnd)); + } +} +constexpr auto SharingLog_CloudDownloadEnd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<59>{ + { + &_SharingLog_CloudDownloadEnd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudDownloadEnd::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudDownloadEnd::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudDownloadEnd::ByteSizeLong, + &SharingLog_CloudDownloadEnd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd", + }; } -void SharingLog_CloudDownloadEnd::ArenaDtor(void* object) { - SharingLog_CloudDownloadEnd* _this = reinterpret_cast< SharingLog_CloudDownloadEnd* >(object); - (void)_this; -} -void SharingLog_CloudDownloadEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudDownloadEnd::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudDownloadEnd_class_data_ = + SharingLog_CloudDownloadEnd::InternalGenerateClassData_(); -void SharingLog_CloudDownloadEnd::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudDownloadEnd::GetClassData() const { + return SharingLog_CloudDownloadEnd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SharingLog_CloudDownloadEnd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_CloudDownloadEnd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {::_pbi::TcParser::FastEr0S1, + {16, 1, 2, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.action_type_)}}, + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; + {::_pbi::TcParser::FastMtR1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.download_infos_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudDownloadEnd, _impl_.action_type_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>()}, + {0, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudDownloadEnd::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - download_infos_.Clear(); - action_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.download_infos_.Clear(); + } + _impl_.action_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudDownloadEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_download_infos(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::CloudActionType_IsValid(val))) { - _internal_set_action_type(static_cast<::location::nearby::proto::sharing::CloudActionType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudDownloadEnd::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudDownloadEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudDownloadEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_download_infos_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_download_infos(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_download_infos_size()); + i < n; i++) { + const auto& repfield = this_._internal_download_infos().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } } - cached_has_bits = _has_bits_[0]; // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_action_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_action_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) return target; } -size_t SharingLog_CloudDownloadEnd::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudDownloadEnd::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudDownloadEnd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudDownloadEnd::ByteSizeLong() const { + const SharingLog_CloudDownloadEnd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; - total_size += 1UL * this->_internal_download_infos_size(); - for (const auto& msg : this->download_infos_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_download_infos_size(); + for (const auto& msg : this_._internal_download_infos()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_action_type()); + } } - - // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_action_type()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudDownloadEnd::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudDownloadEnd::MergeFrom(const SharingLog_CloudDownloadEnd& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - download_infos_.MergeFrom(from.download_infos_); - if (from._internal_has_action_type()) { - _internal_set_action_type(from._internal_action_type()); +void SharingLog_CloudDownloadEnd::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_download_infos()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_download_infos()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.action_type_ = from._impl_.action_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudDownloadEnd::CopyFrom(const SharingLog_CloudDownloadEnd& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudDownloadEnd::IsInitialized() const { - return true; -} -void SharingLog_CloudDownloadEnd::InternalSwap(SharingLog_CloudDownloadEnd* other) { - using std::swap; +void SharingLog_CloudDownloadEnd::InternalSwap(SharingLog_CloudDownloadEnd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - download_infos_.InternalSwap(&other->download_infos_); - swap(action_type_, other->action_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.download_infos_.InternalSwap(&other->_impl_.download_infos_); + swap(_impl_.action_type_, other->_impl_.action_type_); } -std::string SharingLog_CloudDownloadEnd::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd"; -} - - // =================================================================== class SharingLog_CloudSharingRpcResult::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_rpc_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_status_code(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_latency_millis(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_cloud_sharing_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._has_bits_); }; -SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudSharingRpcResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) } -SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult(const SharingLog_CloudSharingRpcResult& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - rpc_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_rpc_name()) { - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rpc_name(), - GetArenaForAllocation()); - } - cloud_sharing_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_cloud_sharing_id()) { - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cloud_sharing_id(), - GetArenaForAllocation()); - } - ::memcpy(&latency_millis_, &from.latency_millis_, - static_cast(reinterpret_cast(&status_code_) - - reinterpret_cast(&latency_millis_)) + sizeof(status_code_)); +PROTOBUF_NDEBUG_INLINE SharingLog_CloudSharingRpcResult::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + rpc_name_(arena, from.rpc_name_), + cloud_sharing_id_(arena, from.cloud_sharing_id_) {} + +SharingLog_CloudSharingRpcResult::SharingLog_CloudSharingRpcResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog_CloudSharingRpcResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_CloudSharingRpcResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog_CloudSharingRpcResult* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, latency_millis_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, latency_millis_), + offsetof(Impl_, status_code_) - + offsetof(Impl_, latency_millis_) + + sizeof(Impl_::status_code_)); + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) } +PROTOBUF_NDEBUG_INLINE SharingLog_CloudSharingRpcResult::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + rpc_name_(arena), + cloud_sharing_id_(arena) {} -inline void SharingLog_CloudSharingRpcResult::SharedCtor() { -rpc_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -cloud_sharing_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&latency_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_code_) - - reinterpret_cast(&latency_millis_)) + sizeof(status_code_)); +inline void SharingLog_CloudSharingRpcResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, latency_millis_), + 0, + offsetof(Impl_, status_code_) - + offsetof(Impl_, latency_millis_) + + sizeof(Impl_::status_code_)); } - SharingLog_CloudSharingRpcResult::~SharingLog_CloudSharingRpcResult() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog_CloudSharingRpcResult::SharedDtor(MessageLite& self) { + SharingLog_CloudSharingRpcResult& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.rpc_name_.Destroy(); + this_._impl_.cloud_sharing_id_.Destroy(); + this_._impl_.~Impl_(); } -inline void SharingLog_CloudSharingRpcResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - rpc_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - cloud_sharing_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog_CloudSharingRpcResult(arena); +} +constexpr auto SharingLog_CloudSharingRpcResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog_CloudSharingRpcResult), + alignof(SharingLog_CloudSharingRpcResult)); +} +constexpr auto SharingLog_CloudSharingRpcResult::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<64>{ + { + &_SharingLog_CloudSharingRpcResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog_CloudSharingRpcResult::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog_CloudSharingRpcResult::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog_CloudSharingRpcResult::ByteSizeLong, + &SharingLog_CloudSharingRpcResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult", + }; } -void SharingLog_CloudSharingRpcResult::ArenaDtor(void* object) { - SharingLog_CloudSharingRpcResult* _this = reinterpret_cast< SharingLog_CloudSharingRpcResult* >(object); - (void)_this; -} -void SharingLog_CloudSharingRpcResult::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog_CloudSharingRpcResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudSharingRpcResult_class_data_ = + SharingLog_CloudSharingRpcResult::InternalGenerateClassData_(); -void SharingLog_CloudSharingRpcResult::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog_CloudSharingRpcResult::GetClassData() const { + return SharingLog_CloudSharingRpcResult_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +SharingLog_CloudSharingRpcResult::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SharingLog_CloudSharingRpcResult_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string cloud_sharing_id = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.cloud_sharing_id_)}}, + // optional string rpc_name = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.rpc_name_)}}, + // optional int32 status_code = 2; + {::_pbi::TcParser::FastV32S1, + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_)}}, + // optional int64 latency_millis = 3; + {::_pbi::TcParser::FastV64S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string rpc_name = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.rpc_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 status_code = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int64 latency_millis = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string cloud_sharing_id = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.cloud_sharing_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog_CloudSharingRpcResult::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - rpc_name_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.rpc_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - cloud_sharing_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.cloud_sharing_id_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000000cu) { - ::memset(&latency_millis_, 0, static_cast( - reinterpret_cast(&status_code_) - - reinterpret_cast(&latency_millis_)) + sizeof(status_code_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { + ::memset(&_impl_.latency_millis_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.status_code_) - + reinterpret_cast(&_impl_.latency_millis_)) + sizeof(_impl_.status_code_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog_CloudSharingRpcResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string rpc_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_rpc_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 status_code = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_status_code(&has_bits); - status_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 latency_millis = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_latency_millis(&has_bits); - latency_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string cloud_sharing_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_cloud_sharing_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog_CloudSharingRpcResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog_CloudSharingRpcResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog_CloudSharingRpcResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional string rpc_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_rpc_name(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_rpc_name(); + target = stream->WriteStringMaybeAliased(1, _s, target); } // optional int32 status_code = 2; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_status_code(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_status_code(), target); } // optional int64 latency_millis = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_latency_millis(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_latency_millis(), target); } // optional string cloud_sharing_id = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_cloud_sharing_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_cloud_sharing_id(); + target = stream->WriteStringMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) return target; } -size_t SharingLog_CloudSharingRpcResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog_CloudSharingRpcResult::ByteSizeLong(const MessageLite& base) { + const SharingLog_CloudSharingRpcResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog_CloudSharingRpcResult::ByteSizeLong() const { + const SharingLog_CloudSharingRpcResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string rpc_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_rpc_name()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_rpc_name()); } - // optional string cloud_sharing_id = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cloud_sharing_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cloud_sharing_id()); } - // optional int64 latency_millis = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_latency_millis()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_latency_millis()); } - // optional int32 status_code = 2; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_status_code()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_status_code()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog_CloudSharingRpcResult::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SharingLog_CloudSharingRpcResult::MergeFrom(const SharingLog_CloudSharingRpcResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_rpc_name(from._internal_rpc_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_cloud_sharing_id(from._internal_cloud_sharing_id()); - } - if (cached_has_bits & 0x00000004u) { - latency_millis_ = from.latency_millis_; - } - if (cached_has_bits & 0x00000008u) { - status_code_ = from.status_code_; - } - _has_bits_[0] |= cached_has_bits; +void SharingLog_CloudSharingRpcResult::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_rpc_name(from._internal_rpc_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_cloud_sharing_id(from._internal_cloud_sharing_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.latency_millis_ = from._impl_.latency_millis_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.status_code_ = from._impl_.status_code_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog_CloudSharingRpcResult::CopyFrom(const SharingLog_CloudSharingRpcResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog_CloudSharingRpcResult::IsInitialized() const { - return true; -} -void SharingLog_CloudSharingRpcResult::InternalSwap(SharingLog_CloudSharingRpcResult* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog_CloudSharingRpcResult::InternalSwap(SharingLog_CloudSharingRpcResult* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &rpc_name_, lhs_arena, - &other->rpc_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &cloud_sharing_id_, lhs_arena, - &other->cloud_sharing_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, status_code_) - + sizeof(SharingLog_CloudSharingRpcResult::status_code_) - - PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, latency_millis_)>( - reinterpret_cast(&latency_millis_), - reinterpret_cast(&other->latency_millis_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_name_, &other->_impl_.rpc_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cloud_sharing_id_, &other->_impl_.cloud_sharing_id_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.status_code_) + + sizeof(SharingLog_CloudSharingRpcResult::_impl_.status_code_) + - PROTOBUF_FIELD_OFFSET(SharingLog_CloudSharingRpcResult, _impl_.latency_millis_)>( + reinterpret_cast(&_impl_.latency_millis_), + reinterpret_cast(&other->_impl_.latency_millis_)); } -std::string SharingLog_CloudSharingRpcResult::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult"; -} - - // =================================================================== class SharingLog::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[2] |= 2097152u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& unknown_event(const SharingLog* msg); - static void set_has_unknown_event(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& accept_agreements(const SharingLog* msg); - static void set_has_accept_agreements(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& enable_nearby_sharing(const SharingLog* msg); - static void set_has_enable_nearby_sharing(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& set_visibility(const SharingLog* msg); - static void set_has_set_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& describe_attachments(const SharingLog* msg); - static void set_has_describe_attachments(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& scan_for_share_targets_start(const SharingLog* msg); - static void set_has_scan_for_share_targets_start(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& scan_for_share_targets_end(const SharingLog* msg); - static void set_has_scan_for_share_targets_end(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& advertise_device_presence_start(const SharingLog* msg); - static void set_has_advertise_device_presence_start(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& advertise_device_presence_end(const SharingLog* msg); - static void set_has_advertise_device_presence_end(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& send_initialization(const SharingLog* msg); - static void set_has_send_initialization(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& receive_initialization(const SharingLog* msg); - static void set_has_receive_initialization(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& discover_share_target(const SharingLog* msg); - static void set_has_discover_share_target(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& send_introduction(const SharingLog* msg); - static void set_has_send_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& receive_introduction(const SharingLog* msg); - static void set_has_receive_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& respond_introduction(const SharingLog* msg); - static void set_has_respond_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 131072u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& send_attachments_start(const SharingLog* msg); - static void set_has_send_attachments_start(HasBits* has_bits) { - (*has_bits)[0] |= 262144u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& send_attachments_end(const SharingLog* msg); - static void set_has_send_attachments_end(HasBits* has_bits) { - (*has_bits)[0] |= 524288u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& receive_attachments_start(const SharingLog* msg); - static void set_has_receive_attachments_start(HasBits* has_bits) { - (*has_bits)[0] |= 1048576u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& receive_attachments_end(const SharingLog* msg); - static void set_has_receive_attachments_end(HasBits* has_bits) { - (*has_bits)[0] |= 2097152u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& cancel_sending_attachments(const SharingLog* msg); - static void set_has_cancel_sending_attachments(HasBits* has_bits) { - (*has_bits)[0] |= 4194304u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& cancel_receiving_attachments(const SharingLog* msg); - static void set_has_cancel_receiving_attachments(HasBits* has_bits) { - (*has_bits)[0] |= 8388608u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& open_received_attachments(const SharingLog* msg); - static void set_has_open_received_attachments(HasBits* has_bits) { - (*has_bits)[0] |= 16777216u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& launch_activity(const SharingLog* msg); - static void set_has_launch_activity(HasBits* has_bits) { - (*has_bits)[0] |= 33554432u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AddContact& add_contact(const SharingLog* msg); - static void set_has_add_contact(HasBits* has_bits) { - (*has_bits)[0] |= 67108864u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& remove_contact(const SharingLog* msg); - static void set_has_remove_contact(HasBits* has_bits) { - (*has_bits)[0] |= 134217728u; - } - static void set_has_log_source(HasBits* has_bits) { - (*has_bits)[2] |= 4194304u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& fast_share_server_response(const SharingLog* msg); - static void set_has_fast_share_server_response(HasBits* has_bits) { - (*has_bits)[0] |= 268435456u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendStart& send_start(const SharingLog* msg); - static void set_has_send_start(HasBits* has_bits) { - (*has_bits)[0] |= 536870912u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& accept_fast_initialization(const SharingLog* msg); - static void set_has_accept_fast_initialization(HasBits* has_bits) { - (*has_bits)[0] |= 1073741824u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& set_data_usage(const SharingLog* msg); - static void set_has_set_data_usage(HasBits* has_bits) { - (*has_bits)[0] |= 2147483648u; - } - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_event_category(HasBits* has_bits) { - (*has_bits)[2] |= 8388608u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& dismiss_fast_initialization(const SharingLog* msg); - static void set_has_dismiss_fast_initialization(HasBits* has_bits) { - (*has_bits)[1] |= 1u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& cancel_connection(const SharingLog* msg); - static void set_has_cancel_connection(HasBits* has_bits) { - (*has_bits)[1] |= 2u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& dismiss_privacy_notification(const SharingLog* msg); - static void set_has_dismiss_privacy_notification(HasBits* has_bits) { - (*has_bits)[1] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& tap_privacy_notification(const SharingLog* msg); - static void set_has_tap_privacy_notification(HasBits* has_bits) { - (*has_bits)[1] |= 8u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& tap_help(const SharingLog* msg); - static void set_has_tap_help(HasBits* has_bits) { - (*has_bits)[1] |= 16u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& tap_feedback(const SharingLog* msg); - static void set_has_tap_feedback(HasBits* has_bits) { - (*has_bits)[1] |= 32u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& add_quick_settings_tile(const SharingLog* msg); - static void set_has_add_quick_settings_tile(HasBits* has_bits) { - (*has_bits)[1] |= 64u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& remove_quick_settings_tile(const SharingLog* msg); - static void set_has_remove_quick_settings_tile(HasBits* has_bits) { - (*has_bits)[1] |= 128u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& launch_phone_consent(const SharingLog* msg); - static void set_has_launch_phone_consent(HasBits* has_bits) { - (*has_bits)[1] |= 256u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& tap_quick_settings_tile(const SharingLog* msg); - static void set_has_tap_quick_settings_tile(HasBits* has_bits) { - (*has_bits)[1] |= 512u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& install_apk_status(const SharingLog* msg); - static void set_has_install_apk_status(HasBits* has_bits) { - (*has_bits)[1] |= 1024u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& verify_apk_status(const SharingLog* msg); - static void set_has_verify_apk_status(HasBits* has_bits) { - (*has_bits)[1] |= 2048u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& launch_consent(const SharingLog* msg); - static void set_has_launch_consent(HasBits* has_bits) { - (*has_bits)[1] |= 4096u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& process_received_attachments_end(const SharingLog* msg); - static void set_has_process_received_attachments_end(HasBits* has_bits) { - (*has_bits)[1] |= 8192u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& toggle_show_notification(const SharingLog* msg); - static void set_has_toggle_show_notification(HasBits* has_bits) { - (*has_bits)[1] |= 16384u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& set_device_name(const SharingLog* msg); - static void set_has_set_device_name(HasBits* has_bits) { - (*has_bits)[1] |= 32768u; - } - static void set_has_files_migration_phase(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& decline_agreements(const SharingLog* msg); - static void set_has_decline_agreements(HasBits* has_bits) { - (*has_bits)[1] |= 65536u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& request_setting_permissions(const SharingLog* msg); - static void set_has_request_setting_permissions(HasBits* has_bits) { - (*has_bits)[1] |= 131072u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& device_settings(const SharingLog* msg); - static void set_has_device_settings(HasBits* has_bits) { - (*has_bits)[1] |= 262144u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& establish_connection(const SharingLog* msg); - static void set_has_establish_connection(HasBits* has_bits) { - (*has_bits)[1] |= 524288u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& auto_dismiss_fast_initialization(const SharingLog* msg); - static void set_has_auto_dismiss_fast_initialization(HasBits* has_bits) { - (*has_bits)[1] |= 1048576u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& event_metadata(const SharingLog* msg); - static void set_has_event_metadata(HasBits* has_bits) { - (*has_bits)[1] |= 2097152u; - } - static void set_has_app_version(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& app_crash(const SharingLog* msg); - static void set_has_app_crash(HasBits* has_bits) { - (*has_bits)[1] |= 4194304u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& tap_quick_settings_file_share(const SharingLog* msg); - static void set_has_tap_quick_settings_file_share(HasBits* has_bits) { - (*has_bits)[1] |= 8388608u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& app_info(const SharingLog* msg); - static void set_has_app_info(HasBits* has_bits) { - (*has_bits)[1] |= 16777216u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& display_privacy_notification(const SharingLog* msg); - static void set_has_display_privacy_notification(HasBits* has_bits) { - (*has_bits)[1] |= 33554432u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& display_phone_consent(const SharingLog* msg); - static void set_has_display_phone_consent(HasBits* has_bits) { - (*has_bits)[1] |= 67108864u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& preferences_usage(const SharingLog* msg); - static void set_has_preferences_usage(HasBits* has_bits) { - (*has_bits)[1] |= 134217728u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& default_opt_in(const SharingLog* msg); - static void set_has_default_opt_in(HasBits* has_bits) { - (*has_bits)[1] |= 268435456u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& setup_wizard(const SharingLog* msg); - static void set_has_setup_wizard(HasBits* has_bits) { - (*has_bits)[1] |= 536870912u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& tap_qr_code(const SharingLog* msg); - static void set_has_tap_qr_code(HasBits* has_bits) { - (*has_bits)[1] |= 1073741824u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& qr_code_link_shown(const SharingLog* msg); - static void set_has_qr_code_link_shown(HasBits* has_bits) { - (*has_bits)[1] |= 2147483648u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& parsing_failed_endpoint_id(const SharingLog* msg); - static void set_has_parsing_failed_endpoint_id(HasBits* has_bits) { - (*has_bits)[2] |= 1u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& fast_init_discover_device(const SharingLog* msg); - static void set_has_fast_init_discover_device(HasBits* has_bits) { - (*has_bits)[2] |= 2u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& send_desktop_notification(const SharingLog* msg); - static void set_has_send_desktop_notification(HasBits* has_bits) { - (*has_bits)[2] |= 4u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& send_desktop_transfer_event(const SharingLog* msg); - static void set_has_send_desktop_transfer_event(HasBits* has_bits) { - (*has_bits)[2] |= 8u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& set_account(const SharingLog* msg); - static void set_has_set_account(HasBits* has_bits) { - (*has_bits)[2] |= 16u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& decrypt_certificate_failure(const SharingLog* msg); - static void set_has_decrypt_certificate_failure(HasBits* has_bits) { - (*has_bits)[2] |= 32u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& show_allow_permission_auto_access(const SharingLog* msg); - static void set_has_show_allow_permission_auto_access(HasBits* has_bits) { - (*has_bits)[2] |= 64u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& show_waiting_for_accept(const SharingLog* msg); - static void set_has_show_waiting_for_accept(HasBits* has_bits) { - (*has_bits)[2] |= 128u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& high_quality_medium_setup(const SharingLog* msg); - static void set_has_high_quality_medium_setup(HasBits* has_bits) { - (*has_bits)[2] |= 256u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& rpc_call_status(const SharingLog* msg); - static void set_has_rpc_call_status(HasBits* has_bits) { - (*has_bits)[2] |= 512u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& start_qr_code_session(const SharingLog* msg); - static void set_has_start_qr_code_session(HasBits* has_bits) { - (*has_bits)[2] |= 1024u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& qr_code_opened_in_web_client(const SharingLog* msg); - static void set_has_qr_code_opened_in_web_client(HasBits* has_bits) { - (*has_bits)[2] |= 2048u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& hats_joint_event(const SharingLog* msg); - static void set_has_hats_joint_event(HasBits* has_bits) { - (*has_bits)[2] |= 4096u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& receive_previews(const SharingLog* msg); - static void set_has_receive_previews(HasBits* has_bits) { - (*has_bits)[2] |= 8192u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& cloud_create_sharing_request(const SharingLog* msg); - static void set_has_cloud_create_sharing_request(HasBits* has_bits) { - (*has_bits)[2] |= 16384u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& cloud_register_receiver(const SharingLog* msg); - static void set_has_cloud_register_receiver(HasBits* has_bits) { - (*has_bits)[2] |= 32768u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& cloud_upload_start(const SharingLog* msg); - static void set_has_cloud_upload_start(HasBits* has_bits) { - (*has_bits)[2] |= 65536u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& cloud_upload_end(const SharingLog* msg); - static void set_has_cloud_upload_end(HasBits* has_bits) { - (*has_bits)[2] |= 131072u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& cloud_download_start(const SharingLog* msg); - static void set_has_cloud_download_start(HasBits* has_bits) { - (*has_bits)[2] |= 262144u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& cloud_download_end(const SharingLog* msg); - static void set_has_cloud_download_end(HasBits* has_bits) { - (*has_bits)[2] |= 524288u; - } - static const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& cloud_sharing_rpc_result(const SharingLog* msg); - static void set_has_cloud_sharing_rpc_result(HasBits* has_bits) { - (*has_bits)[2] |= 1048576u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._has_bits_); }; -const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& -SharingLog::_Internal::unknown_event(const SharingLog* msg) { - return *msg->unknown_event_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& -SharingLog::_Internal::accept_agreements(const SharingLog* msg) { - return *msg->accept_agreements_; -} -const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& -SharingLog::_Internal::enable_nearby_sharing(const SharingLog* msg) { - return *msg->enable_nearby_sharing_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& -SharingLog::_Internal::set_visibility(const SharingLog* msg) { - return *msg->set_visibility_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& -SharingLog::_Internal::describe_attachments(const SharingLog* msg) { - return *msg->describe_attachments_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& -SharingLog::_Internal::scan_for_share_targets_start(const SharingLog* msg) { - return *msg->scan_for_share_targets_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& -SharingLog::_Internal::scan_for_share_targets_end(const SharingLog* msg) { - return *msg->scan_for_share_targets_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& -SharingLog::_Internal::advertise_device_presence_start(const SharingLog* msg) { - return *msg->advertise_device_presence_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& -SharingLog::_Internal::advertise_device_presence_end(const SharingLog* msg) { - return *msg->advertise_device_presence_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& -SharingLog::_Internal::send_initialization(const SharingLog* msg) { - return *msg->send_initialization_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& -SharingLog::_Internal::receive_initialization(const SharingLog* msg) { - return *msg->receive_initialization_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& -SharingLog::_Internal::discover_share_target(const SharingLog* msg) { - return *msg->discover_share_target_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& -SharingLog::_Internal::send_introduction(const SharingLog* msg) { - return *msg->send_introduction_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& -SharingLog::_Internal::receive_introduction(const SharingLog* msg) { - return *msg->receive_introduction_; -} -const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& -SharingLog::_Internal::respond_introduction(const SharingLog* msg) { - return *msg->respond_introduction_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& -SharingLog::_Internal::send_attachments_start(const SharingLog* msg) { - return *msg->send_attachments_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& -SharingLog::_Internal::send_attachments_end(const SharingLog* msg) { - return *msg->send_attachments_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& -SharingLog::_Internal::receive_attachments_start(const SharingLog* msg) { - return *msg->receive_attachments_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& -SharingLog::_Internal::receive_attachments_end(const SharingLog* msg) { - return *msg->receive_attachments_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& -SharingLog::_Internal::cancel_sending_attachments(const SharingLog* msg) { - return *msg->cancel_sending_attachments_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& -SharingLog::_Internal::cancel_receiving_attachments(const SharingLog* msg) { - return *msg->cancel_receiving_attachments_; -} -const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& -SharingLog::_Internal::open_received_attachments(const SharingLog* msg) { - return *msg->open_received_attachments_; -} -const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& -SharingLog::_Internal::launch_activity(const SharingLog* msg) { - return *msg->launch_activity_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AddContact& -SharingLog::_Internal::add_contact(const SharingLog* msg) { - return *msg->add_contact_; -} -const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& -SharingLog::_Internal::remove_contact(const SharingLog* msg) { - return *msg->remove_contact_; -} -const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& -SharingLog::_Internal::fast_share_server_response(const SharingLog* msg) { - return *msg->fast_share_server_response_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendStart& -SharingLog::_Internal::send_start(const SharingLog* msg) { - return *msg->send_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& -SharingLog::_Internal::accept_fast_initialization(const SharingLog* msg) { - return *msg->accept_fast_initialization_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& -SharingLog::_Internal::set_data_usage(const SharingLog* msg) { - return *msg->set_data_usage_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& -SharingLog::_Internal::dismiss_fast_initialization(const SharingLog* msg) { - return *msg->dismiss_fast_initialization_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& -SharingLog::_Internal::cancel_connection(const SharingLog* msg) { - return *msg->cancel_connection_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& -SharingLog::_Internal::dismiss_privacy_notification(const SharingLog* msg) { - return *msg->dismiss_privacy_notification_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& -SharingLog::_Internal::tap_privacy_notification(const SharingLog* msg) { - return *msg->tap_privacy_notification_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& -SharingLog::_Internal::tap_help(const SharingLog* msg) { - return *msg->tap_help_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& -SharingLog::_Internal::tap_feedback(const SharingLog* msg) { - return *msg->tap_feedback_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& -SharingLog::_Internal::add_quick_settings_tile(const SharingLog* msg) { - return *msg->add_quick_settings_tile_; -} -const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& -SharingLog::_Internal::remove_quick_settings_tile(const SharingLog* msg) { - return *msg->remove_quick_settings_tile_; -} -const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& -SharingLog::_Internal::launch_phone_consent(const SharingLog* msg) { - return *msg->launch_phone_consent_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& -SharingLog::_Internal::tap_quick_settings_tile(const SharingLog* msg) { - return *msg->tap_quick_settings_tile_; -} -const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& -SharingLog::_Internal::install_apk_status(const SharingLog* msg) { - return *msg->install_apk_status_; -} -const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& -SharingLog::_Internal::verify_apk_status(const SharingLog* msg) { - return *msg->verify_apk_status_; -} -const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& -SharingLog::_Internal::launch_consent(const SharingLog* msg) { - return *msg->launch_consent_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& -SharingLog::_Internal::process_received_attachments_end(const SharingLog* msg) { - return *msg->process_received_attachments_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& -SharingLog::_Internal::toggle_show_notification(const SharingLog* msg) { - return *msg->toggle_show_notification_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& -SharingLog::_Internal::set_device_name(const SharingLog* msg) { - return *msg->set_device_name_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& -SharingLog::_Internal::decline_agreements(const SharingLog* msg) { - return *msg->decline_agreements_; -} -const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& -SharingLog::_Internal::request_setting_permissions(const SharingLog* msg) { - return *msg->request_setting_permissions_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& -SharingLog::_Internal::device_settings(const SharingLog* msg) { - return *msg->device_settings_; -} -const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& -SharingLog::_Internal::establish_connection(const SharingLog* msg) { - return *msg->establish_connection_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& -SharingLog::_Internal::auto_dismiss_fast_initialization(const SharingLog* msg) { - return *msg->auto_dismiss_fast_initialization_; -} -const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& -SharingLog::_Internal::event_metadata(const SharingLog* msg) { - return *msg->event_metadata_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& -SharingLog::_Internal::app_crash(const SharingLog* msg) { - return *msg->app_crash_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& -SharingLog::_Internal::tap_quick_settings_file_share(const SharingLog* msg) { - return *msg->tap_quick_settings_file_share_; -} -const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& -SharingLog::_Internal::app_info(const SharingLog* msg) { - return *msg->app_info_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& -SharingLog::_Internal::display_privacy_notification(const SharingLog* msg) { - return *msg->display_privacy_notification_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& -SharingLog::_Internal::display_phone_consent(const SharingLog* msg) { - return *msg->display_phone_consent_; -} -const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& -SharingLog::_Internal::preferences_usage(const SharingLog* msg) { - return *msg->preferences_usage_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& -SharingLog::_Internal::default_opt_in(const SharingLog* msg) { - return *msg->default_opt_in_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& -SharingLog::_Internal::setup_wizard(const SharingLog* msg) { - return *msg->setup_wizard_; -} -const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& -SharingLog::_Internal::tap_qr_code(const SharingLog* msg) { - return *msg->tap_qr_code_; -} -const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& -SharingLog::_Internal::qr_code_link_shown(const SharingLog* msg) { - return *msg->qr_code_link_shown_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& -SharingLog::_Internal::parsing_failed_endpoint_id(const SharingLog* msg) { - return *msg->parsing_failed_endpoint_id_; -} -const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& -SharingLog::_Internal::fast_init_discover_device(const SharingLog* msg) { - return *msg->fast_init_discover_device_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& -SharingLog::_Internal::send_desktop_notification(const SharingLog* msg) { - return *msg->send_desktop_notification_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& -SharingLog::_Internal::send_desktop_transfer_event(const SharingLog* msg) { - return *msg->send_desktop_transfer_event_; -} -const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& -SharingLog::_Internal::set_account(const SharingLog* msg) { - return *msg->set_account_; -} -const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& -SharingLog::_Internal::decrypt_certificate_failure(const SharingLog* msg) { - return *msg->decrypt_certificate_failure_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& -SharingLog::_Internal::show_allow_permission_auto_access(const SharingLog* msg) { - return *msg->show_allow_permission_auto_access_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& -SharingLog::_Internal::show_waiting_for_accept(const SharingLog* msg) { - return *msg->show_waiting_for_accept_; -} -const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& -SharingLog::_Internal::high_quality_medium_setup(const SharingLog* msg) { - return *msg->high_quality_medium_setup_; -} -const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& -SharingLog::_Internal::rpc_call_status(const SharingLog* msg) { - return *msg->rpc_call_status_; -} -const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& -SharingLog::_Internal::start_qr_code_session(const SharingLog* msg) { - return *msg->start_qr_code_session_; -} -const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& -SharingLog::_Internal::qr_code_opened_in_web_client(const SharingLog* msg) { - return *msg->qr_code_opened_in_web_client_; -} -const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& -SharingLog::_Internal::hats_joint_event(const SharingLog* msg) { - return *msg->hats_joint_event_; -} -const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& -SharingLog::_Internal::receive_previews(const SharingLog* msg) { - return *msg->receive_previews_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& -SharingLog::_Internal::cloud_create_sharing_request(const SharingLog* msg) { - return *msg->cloud_create_sharing_request_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& -SharingLog::_Internal::cloud_register_receiver(const SharingLog* msg) { - return *msg->cloud_register_receiver_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& -SharingLog::_Internal::cloud_upload_start(const SharingLog* msg) { - return *msg->cloud_upload_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& -SharingLog::_Internal::cloud_upload_end(const SharingLog* msg) { - return *msg->cloud_upload_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& -SharingLog::_Internal::cloud_download_start(const SharingLog* msg) { - return *msg->cloud_download_start_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& -SharingLog::_Internal::cloud_download_end(const SharingLog* msg) { - return *msg->cloud_download_end_; -} -const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& -SharingLog::_Internal::cloud_sharing_rpc_result(const SharingLog* msg) { - return *msg->cloud_sharing_rpc_result_; -} -SharingLog::SharingLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SharingLog::SharingLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:nearby.sharing.analytics.proto.SharingLog) } -SharingLog::SharingLog(const SharingLog& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_version()) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(), - GetArenaForAllocation()); - } - files_migration_phase_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_files_migration_phase()) { - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_files_migration_phase(), - GetArenaForAllocation()); - } - app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_app_version()) { - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version(), - GetArenaForAllocation()); - } - if (from._internal_has_unknown_event()) { - unknown_event_ = new ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent(*from.unknown_event_); - } else { - unknown_event_ = nullptr; - } - if (from._internal_has_accept_agreements()) { - accept_agreements_ = new ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements(*from.accept_agreements_); - } else { - accept_agreements_ = nullptr; - } - if (from._internal_has_enable_nearby_sharing()) { - enable_nearby_sharing_ = new ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing(*from.enable_nearby_sharing_); - } else { - enable_nearby_sharing_ = nullptr; - } - if (from._internal_has_set_visibility()) { - set_visibility_ = new ::nearby::sharing::analytics::proto::SharingLog_SetVisibility(*from.set_visibility_); - } else { - set_visibility_ = nullptr; - } - if (from._internal_has_describe_attachments()) { - describe_attachments_ = new ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments(*from.describe_attachments_); - } else { - describe_attachments_ = nullptr; - } - if (from._internal_has_scan_for_share_targets_start()) { - scan_for_share_targets_start_ = new ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart(*from.scan_for_share_targets_start_); - } else { - scan_for_share_targets_start_ = nullptr; - } - if (from._internal_has_scan_for_share_targets_end()) { - scan_for_share_targets_end_ = new ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd(*from.scan_for_share_targets_end_); - } else { - scan_for_share_targets_end_ = nullptr; - } - if (from._internal_has_advertise_device_presence_start()) { - advertise_device_presence_start_ = new ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart(*from.advertise_device_presence_start_); - } else { - advertise_device_presence_start_ = nullptr; - } - if (from._internal_has_advertise_device_presence_end()) { - advertise_device_presence_end_ = new ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd(*from.advertise_device_presence_end_); - } else { - advertise_device_presence_end_ = nullptr; - } - if (from._internal_has_send_initialization()) { - send_initialization_ = new ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization(*from.send_initialization_); - } else { - send_initialization_ = nullptr; - } - if (from._internal_has_receive_initialization()) { - receive_initialization_ = new ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization(*from.receive_initialization_); - } else { - receive_initialization_ = nullptr; - } - if (from._internal_has_discover_share_target()) { - discover_share_target_ = new ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget(*from.discover_share_target_); - } else { - discover_share_target_ = nullptr; - } - if (from._internal_has_send_introduction()) { - send_introduction_ = new ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction(*from.send_introduction_); - } else { - send_introduction_ = nullptr; - } - if (from._internal_has_receive_introduction()) { - receive_introduction_ = new ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction(*from.receive_introduction_); - } else { - receive_introduction_ = nullptr; - } - if (from._internal_has_respond_introduction()) { - respond_introduction_ = new ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction(*from.respond_introduction_); - } else { - respond_introduction_ = nullptr; - } - if (from._internal_has_send_attachments_start()) { - send_attachments_start_ = new ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart(*from.send_attachments_start_); - } else { - send_attachments_start_ = nullptr; - } - if (from._internal_has_send_attachments_end()) { - send_attachments_end_ = new ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd(*from.send_attachments_end_); - } else { - send_attachments_end_ = nullptr; - } - if (from._internal_has_receive_attachments_start()) { - receive_attachments_start_ = new ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart(*from.receive_attachments_start_); - } else { - receive_attachments_start_ = nullptr; - } - if (from._internal_has_receive_attachments_end()) { - receive_attachments_end_ = new ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd(*from.receive_attachments_end_); - } else { - receive_attachments_end_ = nullptr; - } - if (from._internal_has_cancel_sending_attachments()) { - cancel_sending_attachments_ = new ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments(*from.cancel_sending_attachments_); - } else { - cancel_sending_attachments_ = nullptr; - } - if (from._internal_has_cancel_receiving_attachments()) { - cancel_receiving_attachments_ = new ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments(*from.cancel_receiving_attachments_); - } else { - cancel_receiving_attachments_ = nullptr; - } - if (from._internal_has_open_received_attachments()) { - open_received_attachments_ = new ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments(*from.open_received_attachments_); - } else { - open_received_attachments_ = nullptr; - } - if (from._internal_has_launch_activity()) { - launch_activity_ = new ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity(*from.launch_activity_); - } else { - launch_activity_ = nullptr; - } - if (from._internal_has_add_contact()) { - add_contact_ = new ::nearby::sharing::analytics::proto::SharingLog_AddContact(*from.add_contact_); - } else { - add_contact_ = nullptr; - } - if (from._internal_has_remove_contact()) { - remove_contact_ = new ::nearby::sharing::analytics::proto::SharingLog_RemoveContact(*from.remove_contact_); - } else { - remove_contact_ = nullptr; - } - if (from._internal_has_fast_share_server_response()) { - fast_share_server_response_ = new ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse(*from.fast_share_server_response_); - } else { - fast_share_server_response_ = nullptr; - } - if (from._internal_has_send_start()) { - send_start_ = new ::nearby::sharing::analytics::proto::SharingLog_SendStart(*from.send_start_); - } else { - send_start_ = nullptr; - } - if (from._internal_has_accept_fast_initialization()) { - accept_fast_initialization_ = new ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization(*from.accept_fast_initialization_); - } else { - accept_fast_initialization_ = nullptr; - } - if (from._internal_has_set_data_usage()) { - set_data_usage_ = new ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage(*from.set_data_usage_); - } else { - set_data_usage_ = nullptr; - } - if (from._internal_has_dismiss_fast_initialization()) { - dismiss_fast_initialization_ = new ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization(*from.dismiss_fast_initialization_); - } else { - dismiss_fast_initialization_ = nullptr; - } - if (from._internal_has_cancel_connection()) { - cancel_connection_ = new ::nearby::sharing::analytics::proto::SharingLog_CancelConnection(*from.cancel_connection_); - } else { - cancel_connection_ = nullptr; - } - if (from._internal_has_dismiss_privacy_notification()) { - dismiss_privacy_notification_ = new ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification(*from.dismiss_privacy_notification_); - } else { - dismiss_privacy_notification_ = nullptr; - } - if (from._internal_has_tap_privacy_notification()) { - tap_privacy_notification_ = new ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification(*from.tap_privacy_notification_); - } else { - tap_privacy_notification_ = nullptr; - } - if (from._internal_has_tap_help()) { - tap_help_ = new ::nearby::sharing::analytics::proto::SharingLog_TapHelp(*from.tap_help_); - } else { - tap_help_ = nullptr; - } - if (from._internal_has_tap_feedback()) { - tap_feedback_ = new ::nearby::sharing::analytics::proto::SharingLog_TapFeedback(*from.tap_feedback_); - } else { - tap_feedback_ = nullptr; - } - if (from._internal_has_add_quick_settings_tile()) { - add_quick_settings_tile_ = new ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile(*from.add_quick_settings_tile_); - } else { - add_quick_settings_tile_ = nullptr; - } - if (from._internal_has_remove_quick_settings_tile()) { - remove_quick_settings_tile_ = new ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile(*from.remove_quick_settings_tile_); - } else { - remove_quick_settings_tile_ = nullptr; - } - if (from._internal_has_launch_phone_consent()) { - launch_phone_consent_ = new ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent(*from.launch_phone_consent_); - } else { - launch_phone_consent_ = nullptr; - } - if (from._internal_has_tap_quick_settings_tile()) { - tap_quick_settings_tile_ = new ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile(*from.tap_quick_settings_tile_); - } else { - tap_quick_settings_tile_ = nullptr; - } - if (from._internal_has_install_apk_status()) { - install_apk_status_ = new ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus(*from.install_apk_status_); - } else { - install_apk_status_ = nullptr; - } - if (from._internal_has_verify_apk_status()) { - verify_apk_status_ = new ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus(*from.verify_apk_status_); - } else { - verify_apk_status_ = nullptr; - } - if (from._internal_has_launch_consent()) { - launch_consent_ = new ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent(*from.launch_consent_); - } else { - launch_consent_ = nullptr; - } - if (from._internal_has_process_received_attachments_end()) { - process_received_attachments_end_ = new ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd(*from.process_received_attachments_end_); - } else { - process_received_attachments_end_ = nullptr; - } - if (from._internal_has_toggle_show_notification()) { - toggle_show_notification_ = new ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification(*from.toggle_show_notification_); - } else { - toggle_show_notification_ = nullptr; - } - if (from._internal_has_set_device_name()) { - set_device_name_ = new ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName(*from.set_device_name_); - } else { - set_device_name_ = nullptr; - } - if (from._internal_has_decline_agreements()) { - decline_agreements_ = new ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements(*from.decline_agreements_); - } else { - decline_agreements_ = nullptr; - } - if (from._internal_has_request_setting_permissions()) { - request_setting_permissions_ = new ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions(*from.request_setting_permissions_); - } else { - request_setting_permissions_ = nullptr; - } - if (from._internal_has_device_settings()) { - device_settings_ = new ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings(*from.device_settings_); - } else { - device_settings_ = nullptr; - } - if (from._internal_has_establish_connection()) { - establish_connection_ = new ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection(*from.establish_connection_); - } else { - establish_connection_ = nullptr; - } - if (from._internal_has_auto_dismiss_fast_initialization()) { - auto_dismiss_fast_initialization_ = new ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization(*from.auto_dismiss_fast_initialization_); - } else { - auto_dismiss_fast_initialization_ = nullptr; - } - if (from._internal_has_event_metadata()) { - event_metadata_ = new ::nearby::sharing::analytics::proto::SharingLog_EventMetadata(*from.event_metadata_); - } else { - event_metadata_ = nullptr; - } - if (from._internal_has_app_crash()) { - app_crash_ = new ::nearby::sharing::analytics::proto::SharingLog_AppCrash(*from.app_crash_); - } else { - app_crash_ = nullptr; - } - if (from._internal_has_tap_quick_settings_file_share()) { - tap_quick_settings_file_share_ = new ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare(*from.tap_quick_settings_file_share_); - } else { - tap_quick_settings_file_share_ = nullptr; - } - if (from._internal_has_app_info()) { - app_info_ = new ::nearby::sharing::analytics::proto::SharingLog_AppInfo(*from.app_info_); - } else { - app_info_ = nullptr; - } - if (from._internal_has_display_privacy_notification()) { - display_privacy_notification_ = new ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification(*from.display_privacy_notification_); - } else { - display_privacy_notification_ = nullptr; - } - if (from._internal_has_display_phone_consent()) { - display_phone_consent_ = new ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent(*from.display_phone_consent_); - } else { - display_phone_consent_ = nullptr; - } - if (from._internal_has_preferences_usage()) { - preferences_usage_ = new ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage(*from.preferences_usage_); - } else { - preferences_usage_ = nullptr; - } - if (from._internal_has_default_opt_in()) { - default_opt_in_ = new ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn(*from.default_opt_in_); - } else { - default_opt_in_ = nullptr; - } - if (from._internal_has_setup_wizard()) { - setup_wizard_ = new ::nearby::sharing::analytics::proto::SharingLog_SetupWizard(*from.setup_wizard_); - } else { - setup_wizard_ = nullptr; - } - if (from._internal_has_tap_qr_code()) { - tap_qr_code_ = new ::nearby::sharing::analytics::proto::SharingLog_TapQrCode(*from.tap_qr_code_); - } else { - tap_qr_code_ = nullptr; - } - if (from._internal_has_qr_code_link_shown()) { - qr_code_link_shown_ = new ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown(*from.qr_code_link_shown_); - } else { - qr_code_link_shown_ = nullptr; - } - if (from._internal_has_parsing_failed_endpoint_id()) { - parsing_failed_endpoint_id_ = new ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId(*from.parsing_failed_endpoint_id_); - } else { - parsing_failed_endpoint_id_ = nullptr; - } - if (from._internal_has_fast_init_discover_device()) { - fast_init_discover_device_ = new ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice(*from.fast_init_discover_device_); - } else { - fast_init_discover_device_ = nullptr; - } - if (from._internal_has_send_desktop_notification()) { - send_desktop_notification_ = new ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification(*from.send_desktop_notification_); - } else { - send_desktop_notification_ = nullptr; - } - if (from._internal_has_send_desktop_transfer_event()) { - send_desktop_transfer_event_ = new ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent(*from.send_desktop_transfer_event_); - } else { - send_desktop_transfer_event_ = nullptr; - } - if (from._internal_has_set_account()) { - set_account_ = new ::nearby::sharing::analytics::proto::SharingLog_SetAccount(*from.set_account_); - } else { - set_account_ = nullptr; - } - if (from._internal_has_decrypt_certificate_failure()) { - decrypt_certificate_failure_ = new ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure(*from.decrypt_certificate_failure_); - } else { - decrypt_certificate_failure_ = nullptr; - } - if (from._internal_has_show_allow_permission_auto_access()) { - show_allow_permission_auto_access_ = new ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess(*from.show_allow_permission_auto_access_); - } else { - show_allow_permission_auto_access_ = nullptr; - } - if (from._internal_has_show_waiting_for_accept()) { - show_waiting_for_accept_ = new ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept(*from.show_waiting_for_accept_); - } else { - show_waiting_for_accept_ = nullptr; - } - if (from._internal_has_high_quality_medium_setup()) { - high_quality_medium_setup_ = new ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup(*from.high_quality_medium_setup_); - } else { - high_quality_medium_setup_ = nullptr; - } - if (from._internal_has_rpc_call_status()) { - rpc_call_status_ = new ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus(*from.rpc_call_status_); - } else { - rpc_call_status_ = nullptr; - } - if (from._internal_has_start_qr_code_session()) { - start_qr_code_session_ = new ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession(*from.start_qr_code_session_); - } else { - start_qr_code_session_ = nullptr; - } - if (from._internal_has_qr_code_opened_in_web_client()) { - qr_code_opened_in_web_client_ = new ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient(*from.qr_code_opened_in_web_client_); - } else { - qr_code_opened_in_web_client_ = nullptr; - } - if (from._internal_has_hats_joint_event()) { - hats_joint_event_ = new ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent(*from.hats_joint_event_); - } else { - hats_joint_event_ = nullptr; - } - if (from._internal_has_receive_previews()) { - receive_previews_ = new ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews(*from.receive_previews_); - } else { - receive_previews_ = nullptr; - } - if (from._internal_has_cloud_create_sharing_request()) { - cloud_create_sharing_request_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest(*from.cloud_create_sharing_request_); - } else { - cloud_create_sharing_request_ = nullptr; - } - if (from._internal_has_cloud_register_receiver()) { - cloud_register_receiver_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver(*from.cloud_register_receiver_); - } else { - cloud_register_receiver_ = nullptr; - } - if (from._internal_has_cloud_upload_start()) { - cloud_upload_start_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart(*from.cloud_upload_start_); - } else { - cloud_upload_start_ = nullptr; - } - if (from._internal_has_cloud_upload_end()) { - cloud_upload_end_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd(*from.cloud_upload_end_); - } else { - cloud_upload_end_ = nullptr; - } - if (from._internal_has_cloud_download_start()) { - cloud_download_start_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart(*from.cloud_download_start_); - } else { - cloud_download_start_ = nullptr; - } - if (from._internal_has_cloud_download_end()) { - cloud_download_end_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd(*from.cloud_download_end_); - } else { - cloud_download_end_ = nullptr; - } - if (from._internal_has_cloud_sharing_rpc_result()) { - cloud_sharing_rpc_result_ = new ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult(*from.cloud_sharing_rpc_result_); - } else { - cloud_sharing_rpc_result_ = nullptr; - } - ::memcpy(&event_type_, &from.event_type_, - static_cast(reinterpret_cast(&event_category_) - - reinterpret_cast(&event_type_)) + sizeof(event_category_)); +PROTOBUF_NDEBUG_INLINE SharingLog::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::nearby::sharing::analytics::proto::SharingLog& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + version_(arena, from.version_), + files_migration_phase_(arena, from.files_migration_phase_), + app_version_(arena, from.app_version_) {} + +SharingLog::SharingLog( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SharingLog& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SharingLog_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharingLog* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.unknown_event_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unknown_event_) + : nullptr; + _impl_.accept_agreements_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_agreements_) + : nullptr; + _impl_.enable_nearby_sharing_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.enable_nearby_sharing_) + : nullptr; + _impl_.set_visibility_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_visibility_) + : nullptr; + _impl_.describe_attachments_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.describe_attachments_) + : nullptr; + _impl_.scan_for_share_targets_start_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_start_) + : nullptr; + _impl_.scan_for_share_targets_end_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_end_) + : nullptr; + _impl_.advertise_device_presence_start_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_start_) + : nullptr; + _impl_.advertise_device_presence_end_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_end_) + : nullptr; + _impl_.send_initialization_ = (CheckHasBit(cached_has_bits, 0x00000200U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_initialization_) + : nullptr; + _impl_.receive_initialization_ = (CheckHasBit(cached_has_bits, 0x00000400U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_initialization_) + : nullptr; + _impl_.discover_share_target_ = (CheckHasBit(cached_has_bits, 0x00000800U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discover_share_target_) + : nullptr; + _impl_.send_introduction_ = (CheckHasBit(cached_has_bits, 0x00001000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_introduction_) + : nullptr; + _impl_.receive_introduction_ = (CheckHasBit(cached_has_bits, 0x00002000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_introduction_) + : nullptr; + _impl_.respond_introduction_ = (CheckHasBit(cached_has_bits, 0x00004000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.respond_introduction_) + : nullptr; + _impl_.send_attachments_start_ = (CheckHasBit(cached_has_bits, 0x00008000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_start_) + : nullptr; + _impl_.send_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00010000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_end_) + : nullptr; + _impl_.receive_attachments_start_ = (CheckHasBit(cached_has_bits, 0x00020000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_start_) + : nullptr; + _impl_.receive_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00040000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_end_) + : nullptr; + _impl_.cancel_sending_attachments_ = (CheckHasBit(cached_has_bits, 0x00080000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_sending_attachments_) + : nullptr; + _impl_.cancel_receiving_attachments_ = (CheckHasBit(cached_has_bits, 0x00100000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_receiving_attachments_) + : nullptr; + _impl_.open_received_attachments_ = (CheckHasBit(cached_has_bits, 0x00200000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.open_received_attachments_) + : nullptr; + _impl_.launch_activity_ = (CheckHasBit(cached_has_bits, 0x00400000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_activity_) + : nullptr; + _impl_.add_contact_ = (CheckHasBit(cached_has_bits, 0x00800000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_contact_) + : nullptr; + _impl_.remove_contact_ = (CheckHasBit(cached_has_bits, 0x01000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_contact_) + : nullptr; + _impl_.fast_share_server_response_ = (CheckHasBit(cached_has_bits, 0x02000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_share_server_response_) + : nullptr; + _impl_.send_start_ = (CheckHasBit(cached_has_bits, 0x04000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_start_) + : nullptr; + _impl_.accept_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x08000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_fast_initialization_) + : nullptr; + _impl_.set_data_usage_ = (CheckHasBit(cached_has_bits, 0x10000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_data_usage_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, event_type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, event_type_), + offsetof(Impl_, log_source_) - + offsetof(Impl_, event_type_) + + sizeof(Impl_::log_source_)); + cached_has_bits = _impl_._has_bits_[1]; + _impl_.dismiss_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_fast_initialization_) + : nullptr; + _impl_.cancel_connection_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_connection_) + : nullptr; + _impl_.dismiss_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_privacy_notification_) + : nullptr; + _impl_.tap_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_privacy_notification_) + : nullptr; + _impl_.tap_help_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_help_) + : nullptr; + _impl_.tap_feedback_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_feedback_) + : nullptr; + _impl_.add_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_quick_settings_tile_) + : nullptr; + _impl_.remove_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000200U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_quick_settings_tile_) + : nullptr; + _impl_.launch_phone_consent_ = (CheckHasBit(cached_has_bits, 0x00000400U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_phone_consent_) + : nullptr; + _impl_.tap_quick_settings_tile_ = (CheckHasBit(cached_has_bits, 0x00000800U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_tile_) + : nullptr; + _impl_.install_apk_status_ = (CheckHasBit(cached_has_bits, 0x00001000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.install_apk_status_) + : nullptr; + _impl_.verify_apk_status_ = (CheckHasBit(cached_has_bits, 0x00002000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.verify_apk_status_) + : nullptr; + _impl_.launch_consent_ = (CheckHasBit(cached_has_bits, 0x00004000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_consent_) + : nullptr; + _impl_.process_received_attachments_end_ = (CheckHasBit(cached_has_bits, 0x00008000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.process_received_attachments_end_) + : nullptr; + _impl_.toggle_show_notification_ = (CheckHasBit(cached_has_bits, 0x00010000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.toggle_show_notification_) + : nullptr; + _impl_.set_device_name_ = (CheckHasBit(cached_has_bits, 0x00020000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_device_name_) + : nullptr; + _impl_.decline_agreements_ = (CheckHasBit(cached_has_bits, 0x00040000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decline_agreements_) + : nullptr; + _impl_.request_setting_permissions_ = (CheckHasBit(cached_has_bits, 0x00080000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_setting_permissions_) + : nullptr; + _impl_.device_settings_ = (CheckHasBit(cached_has_bits, 0x00100000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_settings_) + : nullptr; + _impl_.establish_connection_ = (CheckHasBit(cached_has_bits, 0x00200000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.establish_connection_) + : nullptr; + _impl_.auto_dismiss_fast_initialization_ = (CheckHasBit(cached_has_bits, 0x00400000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_dismiss_fast_initialization_) + : nullptr; + _impl_.event_metadata_ = (CheckHasBit(cached_has_bits, 0x00800000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_metadata_) + : nullptr; + _impl_.app_crash_ = (CheckHasBit(cached_has_bits, 0x01000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_crash_) + : nullptr; + _impl_.tap_quick_settings_file_share_ = (CheckHasBit(cached_has_bits, 0x02000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_file_share_) + : nullptr; + _impl_.app_info_ = (CheckHasBit(cached_has_bits, 0x04000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_info_) + : nullptr; + _impl_.display_privacy_notification_ = (CheckHasBit(cached_has_bits, 0x08000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_privacy_notification_) + : nullptr; + _impl_.display_phone_consent_ = (CheckHasBit(cached_has_bits, 0x10000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_phone_consent_) + : nullptr; + _impl_.preferences_usage_ = (CheckHasBit(cached_has_bits, 0x20000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preferences_usage_) + : nullptr; + _impl_.default_opt_in_ = (CheckHasBit(cached_has_bits, 0x40000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.default_opt_in_) + : nullptr; + _impl_.setup_wizard_ = (CheckHasBit(cached_has_bits, 0x80000000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.setup_wizard_) + : nullptr; + cached_has_bits = _impl_._has_bits_[2]; + _impl_.tap_qr_code_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_qr_code_) + : nullptr; + _impl_.qr_code_link_shown_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_link_shown_) + : nullptr; + _impl_.parsing_failed_endpoint_id_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.parsing_failed_endpoint_id_) + : nullptr; + _impl_.fast_init_discover_device_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_init_discover_device_) + : nullptr; + _impl_.send_desktop_notification_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_notification_) + : nullptr; + _impl_.send_desktop_transfer_event_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_transfer_event_) + : nullptr; + _impl_.set_account_ = (CheckHasBit(cached_has_bits, 0x00000040U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_account_) + : nullptr; + _impl_.decrypt_certificate_failure_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decrypt_certificate_failure_) + : nullptr; + _impl_.show_allow_permission_auto_access_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_allow_permission_auto_access_) + : nullptr; + _impl_.show_waiting_for_accept_ = (CheckHasBit(cached_has_bits, 0x00000200U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_waiting_for_accept_) + : nullptr; + _impl_.high_quality_medium_setup_ = (CheckHasBit(cached_has_bits, 0x00000400U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.high_quality_medium_setup_) + : nullptr; + _impl_.rpc_call_status_ = (CheckHasBit(cached_has_bits, 0x00000800U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rpc_call_status_) + : nullptr; + _impl_.start_qr_code_session_ = (CheckHasBit(cached_has_bits, 0x00001000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.start_qr_code_session_) + : nullptr; + _impl_.qr_code_opened_in_web_client_ = (CheckHasBit(cached_has_bits, 0x00002000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_opened_in_web_client_) + : nullptr; + _impl_.hats_joint_event_ = (CheckHasBit(cached_has_bits, 0x00004000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hats_joint_event_) + : nullptr; + _impl_.receive_previews_ = (CheckHasBit(cached_has_bits, 0x00008000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_previews_) + : nullptr; + _impl_.cloud_create_sharing_request_ = (CheckHasBit(cached_has_bits, 0x00010000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_create_sharing_request_) + : nullptr; + _impl_.cloud_register_receiver_ = (CheckHasBit(cached_has_bits, 0x00020000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_register_receiver_) + : nullptr; + _impl_.cloud_upload_start_ = (CheckHasBit(cached_has_bits, 0x00040000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_start_) + : nullptr; + _impl_.cloud_upload_end_ = (CheckHasBit(cached_has_bits, 0x00080000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_end_) + : nullptr; + _impl_.cloud_download_start_ = (CheckHasBit(cached_has_bits, 0x00100000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_start_) + : nullptr; + _impl_.cloud_download_end_ = (CheckHasBit(cached_has_bits, 0x00200000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_end_) + : nullptr; + _impl_.cloud_sharing_rpc_result_ = (CheckHasBit(cached_has_bits, 0x00400000U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_sharing_rpc_result_) + : nullptr; + _impl_.event_category_ = from._impl_.event_category_; + // @@protoc_insertion_point(copy_constructor:nearby.sharing.analytics.proto.SharingLog) } +PROTOBUF_NDEBUG_INLINE SharingLog::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + version_(arena), + files_migration_phase_(arena), + app_version_(arena) {} -inline void SharingLog::SharedCtor() { -version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -files_migration_phase_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&unknown_event_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&event_category_) - - reinterpret_cast(&unknown_event_)) + sizeof(event_category_)); +inline void SharingLog::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, unknown_event_), + 0, + offsetof(Impl_, log_source_) - + offsetof(Impl_, unknown_event_) + + sizeof(Impl_::log_source_)); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, dismiss_fast_initialization_), + 0, + offsetof(Impl_, event_category_) - + offsetof(Impl_, dismiss_fast_initialization_) + + sizeof(Impl_::event_category_)); } - SharingLog::~SharingLog() { // @@protoc_insertion_point(destructor:nearby.sharing.analytics.proto.SharingLog) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SharingLog::SharedDtor(MessageLite& self) { + SharingLog& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.unknown_event_; + delete this_._impl_.accept_agreements_; + delete this_._impl_.enable_nearby_sharing_; + delete this_._impl_.set_visibility_; + delete this_._impl_.describe_attachments_; + delete this_._impl_.scan_for_share_targets_start_; + delete this_._impl_.scan_for_share_targets_end_; + delete this_._impl_.advertise_device_presence_start_; + delete this_._impl_.advertise_device_presence_end_; + delete this_._impl_.send_initialization_; + delete this_._impl_.receive_initialization_; + delete this_._impl_.discover_share_target_; + delete this_._impl_.send_introduction_; + delete this_._impl_.receive_introduction_; + delete this_._impl_.respond_introduction_; + delete this_._impl_.send_attachments_start_; + delete this_._impl_.send_attachments_end_; + delete this_._impl_.receive_attachments_start_; + delete this_._impl_.receive_attachments_end_; + delete this_._impl_.cancel_sending_attachments_; + delete this_._impl_.cancel_receiving_attachments_; + delete this_._impl_.open_received_attachments_; + delete this_._impl_.launch_activity_; + delete this_._impl_.add_contact_; + delete this_._impl_.remove_contact_; + delete this_._impl_.fast_share_server_response_; + delete this_._impl_.send_start_; + delete this_._impl_.accept_fast_initialization_; + delete this_._impl_.set_data_usage_; + this_._impl_.version_.Destroy(); + this_._impl_.files_migration_phase_.Destroy(); + this_._impl_.app_version_.Destroy(); + delete this_._impl_.dismiss_fast_initialization_; + delete this_._impl_.cancel_connection_; + delete this_._impl_.dismiss_privacy_notification_; + delete this_._impl_.tap_privacy_notification_; + delete this_._impl_.tap_help_; + delete this_._impl_.tap_feedback_; + delete this_._impl_.add_quick_settings_tile_; + delete this_._impl_.remove_quick_settings_tile_; + delete this_._impl_.launch_phone_consent_; + delete this_._impl_.tap_quick_settings_tile_; + delete this_._impl_.install_apk_status_; + delete this_._impl_.verify_apk_status_; + delete this_._impl_.launch_consent_; + delete this_._impl_.process_received_attachments_end_; + delete this_._impl_.toggle_show_notification_; + delete this_._impl_.set_device_name_; + delete this_._impl_.decline_agreements_; + delete this_._impl_.request_setting_permissions_; + delete this_._impl_.device_settings_; + delete this_._impl_.establish_connection_; + delete this_._impl_.auto_dismiss_fast_initialization_; + delete this_._impl_.event_metadata_; + delete this_._impl_.app_crash_; + delete this_._impl_.tap_quick_settings_file_share_; + delete this_._impl_.app_info_; + delete this_._impl_.display_privacy_notification_; + delete this_._impl_.display_phone_consent_; + delete this_._impl_.preferences_usage_; + delete this_._impl_.default_opt_in_; + delete this_._impl_.setup_wizard_; + delete this_._impl_.tap_qr_code_; + delete this_._impl_.qr_code_link_shown_; + delete this_._impl_.parsing_failed_endpoint_id_; + delete this_._impl_.fast_init_discover_device_; + delete this_._impl_.send_desktop_notification_; + delete this_._impl_.send_desktop_transfer_event_; + delete this_._impl_.set_account_; + delete this_._impl_.decrypt_certificate_failure_; + delete this_._impl_.show_allow_permission_auto_access_; + delete this_._impl_.show_waiting_for_accept_; + delete this_._impl_.high_quality_medium_setup_; + delete this_._impl_.rpc_call_status_; + delete this_._impl_.start_qr_code_session_; + delete this_._impl_.qr_code_opened_in_web_client_; + delete this_._impl_.hats_joint_event_; + delete this_._impl_.receive_previews_; + delete this_._impl_.cloud_create_sharing_request_; + delete this_._impl_.cloud_register_receiver_; + delete this_._impl_.cloud_upload_start_; + delete this_._impl_.cloud_upload_end_; + delete this_._impl_.cloud_download_start_; + delete this_._impl_.cloud_download_end_; + delete this_._impl_.cloud_sharing_rpc_result_; + this_._impl_.~Impl_(); } -inline void SharingLog::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - files_migration_phase_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete unknown_event_; - if (this != internal_default_instance()) delete accept_agreements_; - if (this != internal_default_instance()) delete enable_nearby_sharing_; - if (this != internal_default_instance()) delete set_visibility_; - if (this != internal_default_instance()) delete describe_attachments_; - if (this != internal_default_instance()) delete scan_for_share_targets_start_; - if (this != internal_default_instance()) delete scan_for_share_targets_end_; - if (this != internal_default_instance()) delete advertise_device_presence_start_; - if (this != internal_default_instance()) delete advertise_device_presence_end_; - if (this != internal_default_instance()) delete send_initialization_; - if (this != internal_default_instance()) delete receive_initialization_; - if (this != internal_default_instance()) delete discover_share_target_; - if (this != internal_default_instance()) delete send_introduction_; - if (this != internal_default_instance()) delete receive_introduction_; - if (this != internal_default_instance()) delete respond_introduction_; - if (this != internal_default_instance()) delete send_attachments_start_; - if (this != internal_default_instance()) delete send_attachments_end_; - if (this != internal_default_instance()) delete receive_attachments_start_; - if (this != internal_default_instance()) delete receive_attachments_end_; - if (this != internal_default_instance()) delete cancel_sending_attachments_; - if (this != internal_default_instance()) delete cancel_receiving_attachments_; - if (this != internal_default_instance()) delete open_received_attachments_; - if (this != internal_default_instance()) delete launch_activity_; - if (this != internal_default_instance()) delete add_contact_; - if (this != internal_default_instance()) delete remove_contact_; - if (this != internal_default_instance()) delete fast_share_server_response_; - if (this != internal_default_instance()) delete send_start_; - if (this != internal_default_instance()) delete accept_fast_initialization_; - if (this != internal_default_instance()) delete set_data_usage_; - if (this != internal_default_instance()) delete dismiss_fast_initialization_; - if (this != internal_default_instance()) delete cancel_connection_; - if (this != internal_default_instance()) delete dismiss_privacy_notification_; - if (this != internal_default_instance()) delete tap_privacy_notification_; - if (this != internal_default_instance()) delete tap_help_; - if (this != internal_default_instance()) delete tap_feedback_; - if (this != internal_default_instance()) delete add_quick_settings_tile_; - if (this != internal_default_instance()) delete remove_quick_settings_tile_; - if (this != internal_default_instance()) delete launch_phone_consent_; - if (this != internal_default_instance()) delete tap_quick_settings_tile_; - if (this != internal_default_instance()) delete install_apk_status_; - if (this != internal_default_instance()) delete verify_apk_status_; - if (this != internal_default_instance()) delete launch_consent_; - if (this != internal_default_instance()) delete process_received_attachments_end_; - if (this != internal_default_instance()) delete toggle_show_notification_; - if (this != internal_default_instance()) delete set_device_name_; - if (this != internal_default_instance()) delete decline_agreements_; - if (this != internal_default_instance()) delete request_setting_permissions_; - if (this != internal_default_instance()) delete device_settings_; - if (this != internal_default_instance()) delete establish_connection_; - if (this != internal_default_instance()) delete auto_dismiss_fast_initialization_; - if (this != internal_default_instance()) delete event_metadata_; - if (this != internal_default_instance()) delete app_crash_; - if (this != internal_default_instance()) delete tap_quick_settings_file_share_; - if (this != internal_default_instance()) delete app_info_; - if (this != internal_default_instance()) delete display_privacy_notification_; - if (this != internal_default_instance()) delete display_phone_consent_; - if (this != internal_default_instance()) delete preferences_usage_; - if (this != internal_default_instance()) delete default_opt_in_; - if (this != internal_default_instance()) delete setup_wizard_; - if (this != internal_default_instance()) delete tap_qr_code_; - if (this != internal_default_instance()) delete qr_code_link_shown_; - if (this != internal_default_instance()) delete parsing_failed_endpoint_id_; - if (this != internal_default_instance()) delete fast_init_discover_device_; - if (this != internal_default_instance()) delete send_desktop_notification_; - if (this != internal_default_instance()) delete send_desktop_transfer_event_; - if (this != internal_default_instance()) delete set_account_; - if (this != internal_default_instance()) delete decrypt_certificate_failure_; - if (this != internal_default_instance()) delete show_allow_permission_auto_access_; - if (this != internal_default_instance()) delete show_waiting_for_accept_; - if (this != internal_default_instance()) delete high_quality_medium_setup_; - if (this != internal_default_instance()) delete rpc_call_status_; - if (this != internal_default_instance()) delete start_qr_code_session_; - if (this != internal_default_instance()) delete qr_code_opened_in_web_client_; - if (this != internal_default_instance()) delete hats_joint_event_; - if (this != internal_default_instance()) delete receive_previews_; - if (this != internal_default_instance()) delete cloud_create_sharing_request_; - if (this != internal_default_instance()) delete cloud_register_receiver_; - if (this != internal_default_instance()) delete cloud_upload_start_; - if (this != internal_default_instance()) delete cloud_upload_end_; - if (this != internal_default_instance()) delete cloud_download_start_; - if (this != internal_default_instance()) delete cloud_download_end_; - if (this != internal_default_instance()) delete cloud_sharing_rpc_result_; +inline void* PROTOBUF_NONNULL SharingLog::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SharingLog(arena); +} +constexpr auto SharingLog::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharingLog), + alignof(SharingLog)); +} +constexpr auto SharingLog::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<42>{ + { + &_SharingLog_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SharingLog::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SharingLog::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SharingLog::ByteSizeLong, + &SharingLog::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._cached_size_), + true, + }, + "nearby.sharing.analytics.proto.SharingLog", + }; } -void SharingLog::ArenaDtor(void* object) { - SharingLog* _this = reinterpret_cast< SharingLog* >(object); - (void)_this; -} -void SharingLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SharingLog::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<42> SharingLog_class_data_ = + SharingLog::InternalGenerateClassData_(); -void SharingLog::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SharingLog::GetClassData() const { + return SharingLog_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 88, 85, 0, 13> +SharingLog::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_._has_bits_), + 0, // no _extensions_ + 89, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 0, // skipmap + offsetof(decltype(_table_), field_entries), + 88, // num_field_entries + 85, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SharingLog_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .location.nearby.proto.sharing.EventType event_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 29, 80, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_type_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_agreements_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.enable_nearby_sharing_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; + {::_pbi::TcParser::FastMtS1, + {42, 3, 3, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_visibility_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; + {::_pbi::TcParser::FastMtS1, + {50, 4, 4, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.describe_attachments_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; + {::_pbi::TcParser::FastMtS1, + {58, 5, 5, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_start_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; + {::_pbi::TcParser::FastMtS1, + {66, 6, 6, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_end_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; + {::_pbi::TcParser::FastMtS1, + {74, 7, 7, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_start_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; + {::_pbi::TcParser::FastMtS1, + {82, 8, 8, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_end_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; + {::_pbi::TcParser::FastMtS1, + {90, 9, 9, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_initialization_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; + {::_pbi::TcParser::FastMtS1, + {98, 10, 10, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_initialization_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; + {::_pbi::TcParser::FastMtS1, + {106, 11, 11, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.discover_share_target_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; + {::_pbi::TcParser::FastMtS1, + {114, 12, 12, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_introduction_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; + {::_pbi::TcParser::FastMtS1, + {122, 13, 13, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_introduction_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; + {::_pbi::TcParser::FastMtS2, + {386, 14, 14, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.respond_introduction_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; + {::_pbi::TcParser::FastMtS2, + {394, 15, 15, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_start_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; + {::_pbi::TcParser::FastMtS2, + {402, 16, 16, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_end_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; + {::_pbi::TcParser::FastMtS2, + {410, 17, 17, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_start_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; + {::_pbi::TcParser::FastMtS2, + {418, 18, 18, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_end_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; + {::_pbi::TcParser::FastMtS2, + {426, 19, 19, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_sending_attachments_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; + {::_pbi::TcParser::FastMtS2, + {434, 20, 20, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_receiving_attachments_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; + {::_pbi::TcParser::FastMtS2, + {442, 21, 21, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.open_received_attachments_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; + {::_pbi::TcParser::FastMtS2, + {450, 22, 22, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_activity_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; + {::_pbi::TcParser::FastMtS2, + {458, 23, 23, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_contact_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; + {::_pbi::TcParser::FastMtS2, + {466, 24, 24, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_contact_)}}, + // optional .location.nearby.proto.sharing.LogSource log_source = 27; + {::_pbi::TcParser::FastEr0S2, + {472, 30, 9, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; + {::_pbi::TcParser::FastMtS2, + {482, 25, 25, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_share_server_response_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; + {::_pbi::TcParser::FastMtS2, + {490, 26, 26, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_start_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; + {::_pbi::TcParser::FastMtS2, + {498, 27, 27, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_fast_initialization_)}}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; + {::_pbi::TcParser::FastMtS2, + {506, 28, 28, + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_data_usage_)}}, + }}, {{ + 33, 0, 4, + 0, 32, + 0, 48, + 64, 64, + 65024, 79, + 65535, 65535 + }}, {{ + // optional .location.nearby.proto.sharing.EventType event_type = 1; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_type_), _Internal::kHasBitsOffset + 29, 82, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_agreements_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.enable_nearby_sharing_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_visibility_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.describe_attachments_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_start_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.scan_for_share_targets_end_), _Internal::kHasBitsOffset + 6, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_start_), _Internal::kHasBitsOffset + 7, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.advertise_device_presence_end_), _Internal::kHasBitsOffset + 8, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_initialization_), _Internal::kHasBitsOffset + 9, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_initialization_), _Internal::kHasBitsOffset + 10, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.discover_share_target_), _Internal::kHasBitsOffset + 11, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_introduction_), _Internal::kHasBitsOffset + 12, 12, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_introduction_), _Internal::kHasBitsOffset + 13, 13, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.respond_introduction_), _Internal::kHasBitsOffset + 14, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_start_), _Internal::kHasBitsOffset + 15, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_attachments_end_), _Internal::kHasBitsOffset + 16, 16, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_start_), _Internal::kHasBitsOffset + 17, 17, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_attachments_end_), _Internal::kHasBitsOffset + 18, 18, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_sending_attachments_), _Internal::kHasBitsOffset + 19, 19, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_receiving_attachments_), _Internal::kHasBitsOffset + 20, 20, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.open_received_attachments_), _Internal::kHasBitsOffset + 21, 21, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_activity_), _Internal::kHasBitsOffset + 22, 22, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_contact_), _Internal::kHasBitsOffset + 23, 23, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_contact_), _Internal::kHasBitsOffset + 24, 24, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .location.nearby.proto.sharing.LogSource log_source = 27; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_), _Internal::kHasBitsOffset + 30, 83, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_share_server_response_), _Internal::kHasBitsOffset + 25, 25, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_start_), _Internal::kHasBitsOffset + 26, 26, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.accept_fast_initialization_), _Internal::kHasBitsOffset + 27, 27, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_data_usage_), _Internal::kHasBitsOffset + 28, 28, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string version = 32; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.version_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .location.nearby.proto.sharing.EventCategory event_category = 33; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_category_), _Internal::kHasBitsOffset + 87, 84, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_fast_initialization_), _Internal::kHasBitsOffset + 34, 29, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cancel_connection_), _Internal::kHasBitsOffset + 35, 30, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_privacy_notification_), _Internal::kHasBitsOffset + 36, 31, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_privacy_notification_), _Internal::kHasBitsOffset + 37, 32, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_help_), _Internal::kHasBitsOffset + 38, 33, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_feedback_), _Internal::kHasBitsOffset + 39, 34, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.add_quick_settings_tile_), _Internal::kHasBitsOffset + 40, 35, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.remove_quick_settings_tile_), _Internal::kHasBitsOffset + 41, 36, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_phone_consent_), _Internal::kHasBitsOffset + 42, 37, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_quick_settings_tile_), _Internal::kHasBitsOffset + 43, 38, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.install_apk_status_), _Internal::kHasBitsOffset + 44, 39, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.verify_apk_status_), _Internal::kHasBitsOffset + 45, 40, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.launch_consent_), _Internal::kHasBitsOffset + 46, 41, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.process_received_attachments_end_), _Internal::kHasBitsOffset + 47, 42, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.toggle_show_notification_), _Internal::kHasBitsOffset + 48, 43, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_device_name_), _Internal::kHasBitsOffset + 49, 44, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string files_migration_phase = 50; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.files_migration_phase_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.decline_agreements_), _Internal::kHasBitsOffset + 50, 45, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.request_setting_permissions_), _Internal::kHasBitsOffset + 51, 46, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.device_settings_), _Internal::kHasBitsOffset + 52, 47, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.establish_connection_), _Internal::kHasBitsOffset + 53, 48, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.auto_dismiss_fast_initialization_), _Internal::kHasBitsOffset + 54, 49, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_metadata_), _Internal::kHasBitsOffset + 55, 50, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string app_version = 57 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_version_), _Internal::kHasBitsOffset + 33, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_crash_), _Internal::kHasBitsOffset + 56, 51, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_quick_settings_file_share_), _Internal::kHasBitsOffset + 57, 52, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.app_info_), _Internal::kHasBitsOffset + 58, 53, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.display_privacy_notification_), _Internal::kHasBitsOffset + 59, 54, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.display_phone_consent_), _Internal::kHasBitsOffset + 60, 55, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.preferences_usage_), _Internal::kHasBitsOffset + 61, 56, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.default_opt_in_), _Internal::kHasBitsOffset + 62, 57, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.setup_wizard_), _Internal::kHasBitsOffset + 63, 58, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.tap_qr_code_), _Internal::kHasBitsOffset + 64, 59, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.qr_code_link_shown_), _Internal::kHasBitsOffset + 65, 60, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.parsing_failed_endpoint_id_), _Internal::kHasBitsOffset + 66, 61, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.fast_init_discover_device_), _Internal::kHasBitsOffset + 67, 62, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_desktop_notification_), _Internal::kHasBitsOffset + 68, 63, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.send_desktop_transfer_event_), _Internal::kHasBitsOffset + 69, 64, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.set_account_), _Internal::kHasBitsOffset + 70, 65, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.decrypt_certificate_failure_), _Internal::kHasBitsOffset + 71, 66, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.show_allow_permission_auto_access_), _Internal::kHasBitsOffset + 72, 67, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.show_waiting_for_accept_), _Internal::kHasBitsOffset + 73, 68, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.high_quality_medium_setup_), _Internal::kHasBitsOffset + 74, 69, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.rpc_call_status_), _Internal::kHasBitsOffset + 75, 70, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.start_qr_code_session_), _Internal::kHasBitsOffset + 76, 71, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.qr_code_opened_in_web_client_), _Internal::kHasBitsOffset + 77, 72, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.hats_joint_event_), _Internal::kHasBitsOffset + 78, 73, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.receive_previews_), _Internal::kHasBitsOffset + 79, 74, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_create_sharing_request_), _Internal::kHasBitsOffset + 80, 75, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_register_receiver_), _Internal::kHasBitsOffset + 81, 76, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_upload_start_), _Internal::kHasBitsOffset + 82, 77, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_upload_end_), _Internal::kHasBitsOffset + 83, 78, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_download_start_), _Internal::kHasBitsOffset + 84, 79, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_download_end_), _Internal::kHasBitsOffset + 85, 80, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; + {PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.cloud_sharing_rpc_result_), _Internal::kHasBitsOffset + 86, 81, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddContact>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapHelp>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppCrash>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_AppInfo>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_SetAccount>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>()}, + {::_pbi::TcParser::GetTable<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>()}, + {0, 80}, + {0, 9}, + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SharingLog::Clear() { // @@protoc_insertion_point(message_clear_start:nearby.sharing.analytics.proto.SharingLog) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - version_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.unknown_event_ != nullptr); + _impl_.unknown_event_->Clear(); } - if (cached_has_bits & 0x00000002u) { - files_migration_phase_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.accept_agreements_ != nullptr); + _impl_.accept_agreements_->Clear(); } - if (cached_has_bits & 0x00000004u) { - app_version_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.enable_nearby_sharing_ != nullptr); + _impl_.enable_nearby_sharing_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(unknown_event_ != nullptr); - unknown_event_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.set_visibility_ != nullptr); + _impl_.set_visibility_->Clear(); } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(accept_agreements_ != nullptr); - accept_agreements_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.describe_attachments_ != nullptr); + _impl_.describe_attachments_->Clear(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(enable_nearby_sharing_ != nullptr); - enable_nearby_sharing_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.scan_for_share_targets_start_ != nullptr); + _impl_.scan_for_share_targets_start_->Clear(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(set_visibility_ != nullptr); - set_visibility_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.scan_for_share_targets_end_ != nullptr); + _impl_.scan_for_share_targets_end_->Clear(); } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(describe_attachments_ != nullptr); - describe_attachments_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.advertise_device_presence_start_ != nullptr); + _impl_.advertise_device_presence_start_->Clear(); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(scan_for_share_targets_start_ != nullptr); - scan_for_share_targets_start_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.advertise_device_presence_end_ != nullptr); + _impl_.advertise_device_presence_end_->Clear(); } - if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(scan_for_share_targets_end_ != nullptr); - scan_for_share_targets_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(_impl_.send_initialization_ != nullptr); + _impl_.send_initialization_->Clear(); } - if (cached_has_bits & 0x00000400u) { - GOOGLE_DCHECK(advertise_device_presence_start_ != nullptr); - advertise_device_presence_start_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(_impl_.receive_initialization_ != nullptr); + _impl_.receive_initialization_->Clear(); } - if (cached_has_bits & 0x00000800u) { - GOOGLE_DCHECK(advertise_device_presence_end_ != nullptr); - advertise_device_presence_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(_impl_.discover_share_target_ != nullptr); + _impl_.discover_share_target_->Clear(); } - if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(send_initialization_ != nullptr); - send_initialization_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(_impl_.send_introduction_ != nullptr); + _impl_.send_introduction_->Clear(); } - if (cached_has_bits & 0x00002000u) { - GOOGLE_DCHECK(receive_initialization_ != nullptr); - receive_initialization_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(_impl_.receive_introduction_ != nullptr); + _impl_.receive_introduction_->Clear(); } - if (cached_has_bits & 0x00004000u) { - GOOGLE_DCHECK(discover_share_target_ != nullptr); - discover_share_target_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(_impl_.respond_introduction_ != nullptr); + _impl_.respond_introduction_->Clear(); } - if (cached_has_bits & 0x00008000u) { - GOOGLE_DCHECK(send_introduction_ != nullptr); - send_introduction_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(_impl_.send_attachments_start_ != nullptr); + _impl_.send_attachments_start_->Clear(); } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - GOOGLE_DCHECK(receive_introduction_ != nullptr); - receive_introduction_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(_impl_.send_attachments_end_ != nullptr); + _impl_.send_attachments_end_->Clear(); } - if (cached_has_bits & 0x00020000u) { - GOOGLE_DCHECK(respond_introduction_ != nullptr); - respond_introduction_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(_impl_.receive_attachments_start_ != nullptr); + _impl_.receive_attachments_start_->Clear(); } - if (cached_has_bits & 0x00040000u) { - GOOGLE_DCHECK(send_attachments_start_ != nullptr); - send_attachments_start_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(_impl_.receive_attachments_end_ != nullptr); + _impl_.receive_attachments_end_->Clear(); } - if (cached_has_bits & 0x00080000u) { - GOOGLE_DCHECK(send_attachments_end_ != nullptr); - send_attachments_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(_impl_.cancel_sending_attachments_ != nullptr); + _impl_.cancel_sending_attachments_->Clear(); } - if (cached_has_bits & 0x00100000u) { - GOOGLE_DCHECK(receive_attachments_start_ != nullptr); - receive_attachments_start_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(_impl_.cancel_receiving_attachments_ != nullptr); + _impl_.cancel_receiving_attachments_->Clear(); } - if (cached_has_bits & 0x00200000u) { - GOOGLE_DCHECK(receive_attachments_end_ != nullptr); - receive_attachments_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(_impl_.open_received_attachments_ != nullptr); + _impl_.open_received_attachments_->Clear(); } - if (cached_has_bits & 0x00400000u) { - GOOGLE_DCHECK(cancel_sending_attachments_ != nullptr); - cancel_sending_attachments_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(_impl_.launch_activity_ != nullptr); + _impl_.launch_activity_->Clear(); } - if (cached_has_bits & 0x00800000u) { - GOOGLE_DCHECK(cancel_receiving_attachments_ != nullptr); - cancel_receiving_attachments_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + ABSL_DCHECK(_impl_.add_contact_ != nullptr); + _impl_.add_contact_->Clear(); } } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - GOOGLE_DCHECK(open_received_attachments_ != nullptr); - open_received_attachments_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x1f000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(_impl_.remove_contact_ != nullptr); + _impl_.remove_contact_->Clear(); } - if (cached_has_bits & 0x02000000u) { - GOOGLE_DCHECK(launch_activity_ != nullptr); - launch_activity_->Clear(); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + ABSL_DCHECK(_impl_.fast_share_server_response_ != nullptr); + _impl_.fast_share_server_response_->Clear(); } - if (cached_has_bits & 0x04000000u) { - GOOGLE_DCHECK(add_contact_ != nullptr); - add_contact_->Clear(); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + ABSL_DCHECK(_impl_.send_start_ != nullptr); + _impl_.send_start_->Clear(); } - if (cached_has_bits & 0x08000000u) { - GOOGLE_DCHECK(remove_contact_ != nullptr); - remove_contact_->Clear(); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + ABSL_DCHECK(_impl_.accept_fast_initialization_ != nullptr); + _impl_.accept_fast_initialization_->Clear(); } - if (cached_has_bits & 0x10000000u) { - GOOGLE_DCHECK(fast_share_server_response_ != nullptr); - fast_share_server_response_->Clear(); - } - if (cached_has_bits & 0x20000000u) { - GOOGLE_DCHECK(send_start_ != nullptr); - send_start_->Clear(); - } - if (cached_has_bits & 0x40000000u) { - GOOGLE_DCHECK(accept_fast_initialization_ != nullptr); - accept_fast_initialization_->Clear(); - } - if (cached_has_bits & 0x80000000u) { - GOOGLE_DCHECK(set_data_usage_ != nullptr); - set_data_usage_->Clear(); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + ABSL_DCHECK(_impl_.set_data_usage_ != nullptr); + _impl_.set_data_usage_->Clear(); } } - cached_has_bits = _has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(dismiss_fast_initialization_ != nullptr); - dismiss_fast_initialization_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(cancel_connection_ != nullptr); - cancel_connection_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(dismiss_privacy_notification_ != nullptr); - dismiss_privacy_notification_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(tap_privacy_notification_ != nullptr); - tap_privacy_notification_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(tap_help_ != nullptr); - tap_help_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(tap_feedback_ != nullptr); - tap_feedback_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(add_quick_settings_tile_ != nullptr); - add_quick_settings_tile_->Clear(); - } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(remove_quick_settings_tile_ != nullptr); - remove_quick_settings_tile_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0xe0000000U)) { + ::memset(&_impl_.event_type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.log_source_) - + reinterpret_cast(&_impl_.event_type_)) + sizeof(_impl_.log_source_)); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + _impl_.version_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(launch_phone_consent_ != nullptr); - launch_phone_consent_->Clear(); + cached_has_bits = _impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.files_migration_phase_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(tap_quick_settings_tile_ != nullptr); - tap_quick_settings_tile_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.app_version_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000400u) { - GOOGLE_DCHECK(install_apk_status_ != nullptr); - install_apk_status_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.dismiss_fast_initialization_ != nullptr); + _impl_.dismiss_fast_initialization_->Clear(); } - if (cached_has_bits & 0x00000800u) { - GOOGLE_DCHECK(verify_apk_status_ != nullptr); - verify_apk_status_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.cancel_connection_ != nullptr); + _impl_.cancel_connection_->Clear(); } - if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(launch_consent_ != nullptr); - launch_consent_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.dismiss_privacy_notification_ != nullptr); + _impl_.dismiss_privacy_notification_->Clear(); } - if (cached_has_bits & 0x00002000u) { - GOOGLE_DCHECK(process_received_attachments_end_ != nullptr); - process_received_attachments_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.tap_privacy_notification_ != nullptr); + _impl_.tap_privacy_notification_->Clear(); } - if (cached_has_bits & 0x00004000u) { - GOOGLE_DCHECK(toggle_show_notification_ != nullptr); - toggle_show_notification_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.tap_help_ != nullptr); + _impl_.tap_help_->Clear(); } - if (cached_has_bits & 0x00008000u) { - GOOGLE_DCHECK(set_device_name_ != nullptr); - set_device_name_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.tap_feedback_ != nullptr); + _impl_.tap_feedback_->Clear(); } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - GOOGLE_DCHECK(decline_agreements_ != nullptr); - decline_agreements_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.add_quick_settings_tile_ != nullptr); + _impl_.add_quick_settings_tile_->Clear(); } - if (cached_has_bits & 0x00020000u) { - GOOGLE_DCHECK(request_setting_permissions_ != nullptr); - request_setting_permissions_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(_impl_.remove_quick_settings_tile_ != nullptr); + _impl_.remove_quick_settings_tile_->Clear(); } - if (cached_has_bits & 0x00040000u) { - GOOGLE_DCHECK(device_settings_ != nullptr); - device_settings_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(_impl_.launch_phone_consent_ != nullptr); + _impl_.launch_phone_consent_->Clear(); } - if (cached_has_bits & 0x00080000u) { - GOOGLE_DCHECK(establish_connection_ != nullptr); - establish_connection_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(_impl_.tap_quick_settings_tile_ != nullptr); + _impl_.tap_quick_settings_tile_->Clear(); } - if (cached_has_bits & 0x00100000u) { - GOOGLE_DCHECK(auto_dismiss_fast_initialization_ != nullptr); - auto_dismiss_fast_initialization_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(_impl_.install_apk_status_ != nullptr); + _impl_.install_apk_status_->Clear(); } - if (cached_has_bits & 0x00200000u) { - GOOGLE_DCHECK(event_metadata_ != nullptr); - event_metadata_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(_impl_.verify_apk_status_ != nullptr); + _impl_.verify_apk_status_->Clear(); } - if (cached_has_bits & 0x00400000u) { - GOOGLE_DCHECK(app_crash_ != nullptr); - app_crash_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(_impl_.launch_consent_ != nullptr); + _impl_.launch_consent_->Clear(); } - if (cached_has_bits & 0x00800000u) { - GOOGLE_DCHECK(tap_quick_settings_file_share_ != nullptr); - tap_quick_settings_file_share_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(_impl_.process_received_attachments_end_ != nullptr); + _impl_.process_received_attachments_end_->Clear(); } } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - GOOGLE_DCHECK(app_info_ != nullptr); - app_info_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(_impl_.toggle_show_notification_ != nullptr); + _impl_.toggle_show_notification_->Clear(); } - if (cached_has_bits & 0x02000000u) { - GOOGLE_DCHECK(display_privacy_notification_ != nullptr); - display_privacy_notification_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(_impl_.set_device_name_ != nullptr); + _impl_.set_device_name_->Clear(); } - if (cached_has_bits & 0x04000000u) { - GOOGLE_DCHECK(display_phone_consent_ != nullptr); - display_phone_consent_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(_impl_.decline_agreements_ != nullptr); + _impl_.decline_agreements_->Clear(); } - if (cached_has_bits & 0x08000000u) { - GOOGLE_DCHECK(preferences_usage_ != nullptr); - preferences_usage_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(_impl_.request_setting_permissions_ != nullptr); + _impl_.request_setting_permissions_->Clear(); } - if (cached_has_bits & 0x10000000u) { - GOOGLE_DCHECK(default_opt_in_ != nullptr); - default_opt_in_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(_impl_.device_settings_ != nullptr); + _impl_.device_settings_->Clear(); } - if (cached_has_bits & 0x20000000u) { - GOOGLE_DCHECK(setup_wizard_ != nullptr); - setup_wizard_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(_impl_.establish_connection_ != nullptr); + _impl_.establish_connection_->Clear(); } - if (cached_has_bits & 0x40000000u) { - GOOGLE_DCHECK(tap_qr_code_ != nullptr); - tap_qr_code_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(_impl_.auto_dismiss_fast_initialization_ != nullptr); + _impl_.auto_dismiss_fast_initialization_->Clear(); } - if (cached_has_bits & 0x80000000u) { - GOOGLE_DCHECK(qr_code_link_shown_ != nullptr); - qr_code_link_shown_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + ABSL_DCHECK(_impl_.event_metadata_ != nullptr); + _impl_.event_metadata_->Clear(); } } - cached_has_bits = _has_bits_[2]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(parsing_failed_endpoint_id_ != nullptr); - parsing_failed_endpoint_id_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(_impl_.app_crash_ != nullptr); + _impl_.app_crash_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(fast_init_discover_device_ != nullptr); - fast_init_discover_device_->Clear(); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + ABSL_DCHECK(_impl_.tap_quick_settings_file_share_ != nullptr); + _impl_.tap_quick_settings_file_share_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(send_desktop_notification_ != nullptr); - send_desktop_notification_->Clear(); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + ABSL_DCHECK(_impl_.app_info_ != nullptr); + _impl_.app_info_->Clear(); } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(send_desktop_transfer_event_ != nullptr); - send_desktop_transfer_event_->Clear(); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + ABSL_DCHECK(_impl_.display_privacy_notification_ != nullptr); + _impl_.display_privacy_notification_->Clear(); } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(set_account_ != nullptr); - set_account_->Clear(); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + ABSL_DCHECK(_impl_.display_phone_consent_ != nullptr); + _impl_.display_phone_consent_->Clear(); } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(decrypt_certificate_failure_ != nullptr); - decrypt_certificate_failure_->Clear(); + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + ABSL_DCHECK(_impl_.preferences_usage_ != nullptr); + _impl_.preferences_usage_->Clear(); } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(show_allow_permission_auto_access_ != nullptr); - show_allow_permission_auto_access_->Clear(); + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + ABSL_DCHECK(_impl_.default_opt_in_ != nullptr); + _impl_.default_opt_in_->Clear(); } - if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(show_waiting_for_accept_ != nullptr); - show_waiting_for_accept_->Clear(); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + ABSL_DCHECK(_impl_.setup_wizard_ != nullptr); + _impl_.setup_wizard_->Clear(); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(high_quality_medium_setup_ != nullptr); - high_quality_medium_setup_->Clear(); + cached_has_bits = _impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.tap_qr_code_ != nullptr); + _impl_.tap_qr_code_->Clear(); } - if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(rpc_call_status_ != nullptr); - rpc_call_status_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.qr_code_link_shown_ != nullptr); + _impl_.qr_code_link_shown_->Clear(); } - if (cached_has_bits & 0x00000400u) { - GOOGLE_DCHECK(start_qr_code_session_ != nullptr); - start_qr_code_session_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.parsing_failed_endpoint_id_ != nullptr); + _impl_.parsing_failed_endpoint_id_->Clear(); } - if (cached_has_bits & 0x00000800u) { - GOOGLE_DCHECK(qr_code_opened_in_web_client_ != nullptr); - qr_code_opened_in_web_client_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.fast_init_discover_device_ != nullptr); + _impl_.fast_init_discover_device_->Clear(); } - if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(hats_joint_event_ != nullptr); - hats_joint_event_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.send_desktop_notification_ != nullptr); + _impl_.send_desktop_notification_->Clear(); } - if (cached_has_bits & 0x00002000u) { - GOOGLE_DCHECK(receive_previews_ != nullptr); - receive_previews_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.send_desktop_transfer_event_ != nullptr); + _impl_.send_desktop_transfer_event_->Clear(); } - if (cached_has_bits & 0x00004000u) { - GOOGLE_DCHECK(cloud_create_sharing_request_ != nullptr); - cloud_create_sharing_request_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(_impl_.set_account_ != nullptr); + _impl_.set_account_->Clear(); } - if (cached_has_bits & 0x00008000u) { - GOOGLE_DCHECK(cloud_register_receiver_ != nullptr); - cloud_register_receiver_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(_impl_.decrypt_certificate_failure_ != nullptr); + _impl_.decrypt_certificate_failure_->Clear(); } } - if (cached_has_bits & 0x001f0000u) { - if (cached_has_bits & 0x00010000u) { - GOOGLE_DCHECK(cloud_upload_start_ != nullptr); - cloud_upload_start_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.show_allow_permission_auto_access_ != nullptr); + _impl_.show_allow_permission_auto_access_->Clear(); } - if (cached_has_bits & 0x00020000u) { - GOOGLE_DCHECK(cloud_upload_end_ != nullptr); - cloud_upload_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(_impl_.show_waiting_for_accept_ != nullptr); + _impl_.show_waiting_for_accept_->Clear(); } - if (cached_has_bits & 0x00040000u) { - GOOGLE_DCHECK(cloud_download_start_ != nullptr); - cloud_download_start_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(_impl_.high_quality_medium_setup_ != nullptr); + _impl_.high_quality_medium_setup_->Clear(); } - if (cached_has_bits & 0x00080000u) { - GOOGLE_DCHECK(cloud_download_end_ != nullptr); - cloud_download_end_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(_impl_.rpc_call_status_ != nullptr); + _impl_.rpc_call_status_->Clear(); } - if (cached_has_bits & 0x00100000u) { - GOOGLE_DCHECK(cloud_sharing_rpc_result_ != nullptr); - cloud_sharing_rpc_result_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(_impl_.start_qr_code_session_ != nullptr); + _impl_.start_qr_code_session_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(_impl_.qr_code_opened_in_web_client_ != nullptr); + _impl_.qr_code_opened_in_web_client_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(_impl_.hats_joint_event_ != nullptr); + _impl_.hats_joint_event_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(_impl_.receive_previews_ != nullptr); + _impl_.receive_previews_->Clear(); } } - if (cached_has_bits & 0x00e00000u) { - ::memset(&event_type_, 0, static_cast( - reinterpret_cast(&event_category_) - - reinterpret_cast(&event_type_)) + sizeof(event_category_)); + if (BatchCheckHasBit(cached_has_bits, 0x007f0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(_impl_.cloud_create_sharing_request_ != nullptr); + _impl_.cloud_create_sharing_request_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(_impl_.cloud_register_receiver_ != nullptr); + _impl_.cloud_register_receiver_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(_impl_.cloud_upload_start_ != nullptr); + _impl_.cloud_upload_start_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(_impl_.cloud_upload_end_ != nullptr); + _impl_.cloud_upload_end_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(_impl_.cloud_download_start_ != nullptr); + _impl_.cloud_download_start_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(_impl_.cloud_download_end_ != nullptr); + _impl_.cloud_download_end_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(_impl_.cloud_sharing_rpc_result_ != nullptr); + _impl_.cloud_sharing_rpc_result_->Clear(); + } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.event_category_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SharingLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.proto.sharing.EventType event_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::proto::sharing::EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_unknown_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_accept_agreements(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_enable_nearby_sharing(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_set_visibility(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_describe_attachments(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_scan_for_share_targets_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_scan_for_share_targets_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_advertise_device_presence_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_advertise_device_presence_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_send_initialization(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_receive_initialization(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_discover_share_target(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - ptr = ctx->ParseMessage(_internal_mutable_send_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr = ctx->ParseMessage(_internal_mutable_receive_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - ptr = ctx->ParseMessage(_internal_mutable_respond_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - ptr = ctx->ParseMessage(_internal_mutable_send_attachments_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { - ptr = ctx->ParseMessage(_internal_mutable_send_attachments_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { - ptr = ctx->ParseMessage(_internal_mutable_receive_attachments_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 162)) { - ptr = ctx->ParseMessage(_internal_mutable_receive_attachments_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 170)) { - ptr = ctx->ParseMessage(_internal_mutable_cancel_sending_attachments(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 178)) { - ptr = ctx->ParseMessage(_internal_mutable_cancel_receiving_attachments(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; - case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 186)) { - ptr = ctx->ParseMessage(_internal_mutable_open_received_attachments(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 194)) { - ptr = ctx->ParseMessage(_internal_mutable_launch_activity(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; - case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 202)) { - ptr = ctx->ParseMessage(_internal_mutable_add_contact(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; - case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 210)) { - ptr = ctx->ParseMessage(_internal_mutable_remove_contact(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.LogSource log_source = 27; - case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 216)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::LogSource_IsValid(val))) { - _internal_set_log_source(static_cast<::location::nearby::proto::sharing::LogSource>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(27, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; - case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 226)) { - ptr = ctx->ParseMessage(_internal_mutable_fast_share_server_response(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; - case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 234)) { - ptr = ctx->ParseMessage(_internal_mutable_send_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; - case 30: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 242)) { - ptr = ctx->ParseMessage(_internal_mutable_accept_fast_initialization(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; - case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 250)) { - ptr = ctx->ParseMessage(_internal_mutable_set_data_usage(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string version = 32; - case 32: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 2)) { - auto str = _internal_mutable_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.proto.sharing.EventCategory event_category = 33; - case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::sharing::EventCategory_IsValid(val))) { - _internal_set_event_category(static_cast<::location::nearby::proto::sharing::EventCategory>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(33, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; - case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_dismiss_fast_initialization(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; - case 35: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_cancel_connection(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; - case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_dismiss_privacy_notification(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; - case 37: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_privacy_notification(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; - case 38: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_help(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; - case 39: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_feedback(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; - case 40: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_add_quick_settings_tile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; - case 41: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_remove_quick_settings_tile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; - case 42: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_launch_phone_consent(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; - case 43: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_quick_settings_tile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; - case 44: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_install_apk_status(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; - case 45: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_verify_apk_status(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; - case 46: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - ptr = ctx->ParseMessage(_internal_mutable_launch_consent(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; - case 47: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr = ctx->ParseMessage(_internal_mutable_process_received_attachments_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; - case 48: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - ptr = ctx->ParseMessage(_internal_mutable_toggle_show_notification(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; - case 49: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - ptr = ctx->ParseMessage(_internal_mutable_set_device_name(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string files_migration_phase = 50; - case 50: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { - auto str = _internal_mutable_files_migration_phase(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; - case 51: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { - ptr = ctx->ParseMessage(_internal_mutable_decline_agreements(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; - case 52: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 162)) { - ptr = ctx->ParseMessage(_internal_mutable_request_setting_permissions(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; - case 53: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 170)) { - ptr = ctx->ParseMessage(_internal_mutable_device_settings(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; - case 54: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 178)) { - ptr = ctx->ParseMessage(_internal_mutable_establish_connection(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; - case 55: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 186)) { - ptr = ctx->ParseMessage(_internal_mutable_auto_dismiss_fast_initialization(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; - case 56: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 194)) { - ptr = ctx->ParseMessage(_internal_mutable_event_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string app_version = 57 [deprecated = true]; - case 57: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 202)) { - auto str = _internal_mutable_app_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; - case 58: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 210)) { - ptr = ctx->ParseMessage(_internal_mutable_app_crash(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; - case 59: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 218)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_quick_settings_file_share(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; - case 60: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 226)) { - ptr = ctx->ParseMessage(_internal_mutable_app_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; - case 61: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 234)) { - ptr = ctx->ParseMessage(_internal_mutable_display_privacy_notification(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; - case 62: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 242)) { - ptr = ctx->ParseMessage(_internal_mutable_display_phone_consent(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; - case 63: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 250)) { - ptr = ctx->ParseMessage(_internal_mutable_preferences_usage(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; - case 64: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 2)) { - ptr = ctx->ParseMessage(_internal_mutable_default_opt_in(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; - case 65: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_setup_wizard(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; - case 66: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_tap_qr_code(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; - case 67: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_qr_code_link_shown(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; - case 68: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_parsing_failed_endpoint_id(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; - case 69: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_fast_init_discover_device(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; - case 70: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_send_desktop_notification(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; - case 72: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_send_desktop_transfer_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; - case 73: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_set_account(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; - case 74: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_decrypt_certificate_failure(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; - case 75: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_show_allow_permission_auto_access(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; - case 76: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_show_waiting_for_accept(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; - case 77: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_high_quality_medium_setup(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; - case 78: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - ptr = ctx->ParseMessage(_internal_mutable_rpc_call_status(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; - case 79: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr = ctx->ParseMessage(_internal_mutable_start_qr_code_session(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; - case 80: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - ptr = ctx->ParseMessage(_internal_mutable_qr_code_opened_in_web_client(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; - case 81: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - ptr = ctx->ParseMessage(_internal_mutable_hats_joint_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; - case 82: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { - ptr = ctx->ParseMessage(_internal_mutable_receive_previews(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; - case 83: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_create_sharing_request(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; - case 84: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 162)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_register_receiver(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; - case 85: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 170)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_upload_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; - case 86: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 178)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_upload_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; - case 87: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 186)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_download_start(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; - case 88: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 194)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_download_end(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; - case 89: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 202)) { - ptr = ctx->ParseMessage(_internal_mutable_cloud_sharing_rpc_result(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SharingLog::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SharingLog::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SharingLog& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SharingLog::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SharingLog& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:nearby.sharing.analytics.proto.SharingLog) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[2]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .location.nearby.proto.sharing.EventType event_type = 1; - if (cached_has_bits & 0x00200000u) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_event_type(), target); } - cached_has_bits = _has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::unknown_event(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.unknown_event_, this_._impl_.unknown_event_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::accept_agreements(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.accept_agreements_, this_._impl_.accept_agreements_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::enable_nearby_sharing(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.enable_nearby_sharing_, this_._impl_.enable_nearby_sharing_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::set_visibility(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.set_visibility_, this_._impl_.set_visibility_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::describe_attachments(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.describe_attachments_, this_._impl_.describe_attachments_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::scan_for_share_targets_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.scan_for_share_targets_start_, this_._impl_.scan_for_share_targets_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::scan_for_share_targets_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.scan_for_share_targets_end_, this_._impl_.scan_for_share_targets_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::advertise_device_presence_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.advertise_device_presence_start_, this_._impl_.advertise_device_presence_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::advertise_device_presence_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.advertise_device_presence_end_, this_._impl_.advertise_device_presence_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::send_initialization(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.send_initialization_, this_._impl_.send_initialization_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::receive_initialization(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.receive_initialization_, this_._impl_.receive_initialization_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; - if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 13, _Internal::discover_share_target(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 13, *this_._impl_.discover_share_target_, this_._impl_.discover_share_target_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 14, _Internal::send_introduction(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 14, *this_._impl_.send_introduction_, this_._impl_.send_introduction_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 15, _Internal::receive_introduction(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 15, *this_._impl_.receive_introduction_, this_._impl_.receive_introduction_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 16, _Internal::respond_introduction(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 16, *this_._impl_.respond_introduction_, this_._impl_.respond_introduction_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::send_attachments_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 17, *this_._impl_.send_attachments_start_, this_._impl_.send_attachments_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 18, _Internal::send_attachments_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 18, *this_._impl_.send_attachments_end_, this_._impl_.send_attachments_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 19, _Internal::receive_attachments_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 19, *this_._impl_.receive_attachments_start_, this_._impl_.receive_attachments_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; - if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 20, _Internal::receive_attachments_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 20, *this_._impl_.receive_attachments_end_, this_._impl_.receive_attachments_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; - if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 21, _Internal::cancel_sending_attachments(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 21, *this_._impl_.cancel_sending_attachments_, this_._impl_.cancel_sending_attachments_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; - if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 22, _Internal::cancel_receiving_attachments(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 22, *this_._impl_.cancel_receiving_attachments_, this_._impl_.cancel_receiving_attachments_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; - if (cached_has_bits & 0x01000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 23, _Internal::open_received_attachments(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 23, *this_._impl_.open_received_attachments_, this_._impl_.open_received_attachments_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; - if (cached_has_bits & 0x02000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 24, _Internal::launch_activity(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 24, *this_._impl_.launch_activity_, this_._impl_.launch_activity_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; - if (cached_has_bits & 0x04000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 25, _Internal::add_contact(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 25, *this_._impl_.add_contact_, this_._impl_.add_contact_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; - if (cached_has_bits & 0x08000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 26, _Internal::remove_contact(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 26, *this_._impl_.remove_contact_, this_._impl_.remove_contact_->GetCachedSize(), target, + stream); } - cached_has_bits = _has_bits_[2]; // optional .location.nearby.proto.sharing.LogSource log_source = 27; - if (cached_has_bits & 0x00400000u) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 27, this->_internal_log_source(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 27, this_._internal_log_source(), target); } - cached_has_bits = _has_bits_[0]; // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; - if (cached_has_bits & 0x10000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 28, _Internal::fast_share_server_response(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 28, *this_._impl_.fast_share_server_response_, this_._impl_.fast_share_server_response_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; - if (cached_has_bits & 0x20000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 29, _Internal::send_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 29, *this_._impl_.send_start_, this_._impl_.send_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; - if (cached_has_bits & 0x40000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 30, _Internal::accept_fast_initialization(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 30, *this_._impl_.accept_fast_initialization_, this_._impl_.accept_fast_initialization_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; - if (cached_has_bits & 0x80000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 31, _Internal::set_data_usage(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 31, *this_._impl_.set_data_usage_, this_._impl_.set_data_usage_->GetCachedSize(), target, + stream); } // optional string version = 32; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 32, this->_internal_version(), target); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + const ::std::string& _s = this_._internal_version(); + target = stream->WriteStringMaybeAliased(32, _s, target); } - cached_has_bits = _has_bits_[2]; + cached_has_bits = this_._impl_._has_bits_[2]; // optional .location.nearby.proto.sharing.EventCategory event_category = 33; - if (cached_has_bits & 0x00800000u) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 33, this->_internal_event_category(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 33, this_._internal_event_category(), target); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = this_._impl_._has_bits_[1]; // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 34, _Internal::dismiss_fast_initialization(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 34, *this_._impl_.dismiss_fast_initialization_, this_._impl_.dismiss_fast_initialization_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 35, _Internal::cancel_connection(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 35, *this_._impl_.cancel_connection_, this_._impl_.cancel_connection_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 36, _Internal::dismiss_privacy_notification(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 36, *this_._impl_.dismiss_privacy_notification_, this_._impl_.dismiss_privacy_notification_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 37, _Internal::tap_privacy_notification(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 37, *this_._impl_.tap_privacy_notification_, this_._impl_.tap_privacy_notification_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 38, _Internal::tap_help(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 38, *this_._impl_.tap_help_, this_._impl_.tap_help_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 39, _Internal::tap_feedback(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 39, *this_._impl_.tap_feedback_, this_._impl_.tap_feedback_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 40, _Internal::add_quick_settings_tile(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 40, *this_._impl_.add_quick_settings_tile_, this_._impl_.add_quick_settings_tile_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 41, _Internal::remove_quick_settings_tile(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 41, *this_._impl_.remove_quick_settings_tile_, this_._impl_.remove_quick_settings_tile_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 42, _Internal::launch_phone_consent(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 42, *this_._impl_.launch_phone_consent_, this_._impl_.launch_phone_consent_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 43, _Internal::tap_quick_settings_tile(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 43, *this_._impl_.tap_quick_settings_tile_, this_._impl_.tap_quick_settings_tile_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 44, _Internal::install_apk_status(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 44, *this_._impl_.install_apk_status_, this_._impl_.install_apk_status_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 45, _Internal::verify_apk_status(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 45, *this_._impl_.verify_apk_status_, this_._impl_.verify_apk_status_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 46, _Internal::launch_consent(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 46, *this_._impl_.launch_consent_, this_._impl_.launch_consent_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 47, _Internal::process_received_attachments_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 47, *this_._impl_.process_received_attachments_end_, this_._impl_.process_received_attachments_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; - if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 48, _Internal::toggle_show_notification(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 48, *this_._impl_.toggle_show_notification_, this_._impl_.toggle_show_notification_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 49, _Internal::set_device_name(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 49, *this_._impl_.set_device_name_, this_._impl_.set_device_name_->GetCachedSize(), target, + stream); } - cached_has_bits = _has_bits_[0]; // optional string files_migration_phase = 50; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 50, this->_internal_files_migration_phase(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_files_migration_phase(); + target = stream->WriteStringMaybeAliased(50, _s, target); } - cached_has_bits = _has_bits_[1]; // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 51, _Internal::decline_agreements(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 51, *this_._impl_.decline_agreements_, this_._impl_.decline_agreements_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 52, _Internal::request_setting_permissions(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 52, *this_._impl_.request_setting_permissions_, this_._impl_.request_setting_permissions_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 53, _Internal::device_settings(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 53, *this_._impl_.device_settings_, this_._impl_.device_settings_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 54, _Internal::establish_connection(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 54, *this_._impl_.establish_connection_, this_._impl_.establish_connection_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 55, _Internal::auto_dismiss_fast_initialization(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 55, *this_._impl_.auto_dismiss_fast_initialization_, this_._impl_.auto_dismiss_fast_initialization_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; - if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 56, _Internal::event_metadata(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 56, *this_._impl_.event_metadata_, this_._impl_.event_metadata_->GetCachedSize(), target, + stream); } - cached_has_bits = _has_bits_[0]; // optional string app_version = 57 [deprecated = true]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 57, this->_internal_app_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_app_version(); + target = stream->WriteStringMaybeAliased(57, _s, target); } - cached_has_bits = _has_bits_[1]; // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; - if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 58, _Internal::app_crash(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 58, *this_._impl_.app_crash_, this_._impl_.app_crash_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; - if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 59, _Internal::tap_quick_settings_file_share(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 59, *this_._impl_.tap_quick_settings_file_share_, this_._impl_.tap_quick_settings_file_share_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; - if (cached_has_bits & 0x01000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 60, _Internal::app_info(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 60, *this_._impl_.app_info_, this_._impl_.app_info_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; - if (cached_has_bits & 0x02000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 61, _Internal::display_privacy_notification(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 61, *this_._impl_.display_privacy_notification_, this_._impl_.display_privacy_notification_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; - if (cached_has_bits & 0x04000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 62, _Internal::display_phone_consent(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 62, *this_._impl_.display_phone_consent_, this_._impl_.display_phone_consent_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; - if (cached_has_bits & 0x08000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 63, _Internal::preferences_usage(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 63, *this_._impl_.preferences_usage_, this_._impl_.preferences_usage_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; - if (cached_has_bits & 0x10000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 64, _Internal::default_opt_in(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 64, *this_._impl_.default_opt_in_, this_._impl_.default_opt_in_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; - if (cached_has_bits & 0x20000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 65, _Internal::setup_wizard(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 65, *this_._impl_.setup_wizard_, this_._impl_.setup_wizard_->GetCachedSize(), target, + stream); } + cached_has_bits = this_._impl_._has_bits_[2]; // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; - if (cached_has_bits & 0x40000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 66, _Internal::tap_qr_code(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 66, *this_._impl_.tap_qr_code_, this_._impl_.tap_qr_code_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; - if (cached_has_bits & 0x80000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 67, _Internal::qr_code_link_shown(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 67, *this_._impl_.qr_code_link_shown_, this_._impl_.qr_code_link_shown_->GetCachedSize(), target, + stream); } - cached_has_bits = _has_bits_[2]; // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 68, _Internal::parsing_failed_endpoint_id(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 68, *this_._impl_.parsing_failed_endpoint_id_, this_._impl_.parsing_failed_endpoint_id_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 69, _Internal::fast_init_discover_device(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 69, *this_._impl_.fast_init_discover_device_, this_._impl_.fast_init_discover_device_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 70, _Internal::send_desktop_notification(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 70, *this_._impl_.send_desktop_notification_, this_._impl_.send_desktop_notification_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 72, _Internal::send_desktop_transfer_event(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 72, *this_._impl_.send_desktop_transfer_event_, this_._impl_.send_desktop_transfer_event_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 73, _Internal::set_account(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 73, *this_._impl_.set_account_, this_._impl_.set_account_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 74, _Internal::decrypt_certificate_failure(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 74, *this_._impl_.decrypt_certificate_failure_, this_._impl_.decrypt_certificate_failure_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 75, _Internal::show_allow_permission_auto_access(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 75, *this_._impl_.show_allow_permission_auto_access_, this_._impl_.show_allow_permission_auto_access_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 76, _Internal::show_waiting_for_accept(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 76, *this_._impl_.show_waiting_for_accept_, this_._impl_.show_waiting_for_accept_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 77, _Internal::high_quality_medium_setup(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 77, *this_._impl_.high_quality_medium_setup_, this_._impl_.high_quality_medium_setup_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 78, _Internal::rpc_call_status(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 78, *this_._impl_.rpc_call_status_, this_._impl_.rpc_call_status_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 79, _Internal::start_qr_code_session(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 79, *this_._impl_.start_qr_code_session_, this_._impl_.start_qr_code_session_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 80, _Internal::qr_code_opened_in_web_client(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 80, *this_._impl_.qr_code_opened_in_web_client_, this_._impl_.qr_code_opened_in_web_client_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 81, _Internal::hats_joint_event(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 81, *this_._impl_.hats_joint_event_, this_._impl_.hats_joint_event_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 82, _Internal::receive_previews(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 82, *this_._impl_.receive_previews_, this_._impl_.receive_previews_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; - if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 83, _Internal::cloud_create_sharing_request(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 83, *this_._impl_.cloud_create_sharing_request_, this_._impl_.cloud_create_sharing_request_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 84, _Internal::cloud_register_receiver(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 84, *this_._impl_.cloud_register_receiver_, this_._impl_.cloud_register_receiver_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 85, _Internal::cloud_upload_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 85, *this_._impl_.cloud_upload_start_, this_._impl_.cloud_upload_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 86, _Internal::cloud_upload_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 86, *this_._impl_.cloud_upload_end_, this_._impl_.cloud_upload_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 87, _Internal::cloud_download_start(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 87, *this_._impl_.cloud_download_start_, this_._impl_.cloud_download_start_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 88, _Internal::cloud_download_end(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 88, *this_._impl_.cloud_download_end_, this_._impl_.cloud_download_end_->GetCachedSize(), target, + stream); } // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 89, _Internal::cloud_sharing_rpc_result(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 89, *this_._impl_.cloud_sharing_rpc_result_, this_._impl_.cloud_sharing_rpc_result_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:nearby.sharing.analytics.proto.SharingLog) return target; } -size_t SharingLog::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SharingLog::ByteSizeLong(const MessageLite& base) { + const SharingLog& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SharingLog::ByteSizeLong() const { + const SharingLog& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:nearby.sharing.analytics.proto.SharingLog) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string version = 32; - if (cached_has_bits & 0x00000001u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_version()); - } - - // optional string files_migration_phase = 50; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_files_migration_phase()); - } - - // optional string app_version = 57 [deprecated = true]; - if (cached_has_bits & 0x00000004u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_app_version()); - } + (void)cached_has_bits; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *unknown_event_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.unknown_event_); } - // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *accept_agreements_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.accept_agreements_); } - // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *enable_nearby_sharing_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.enable_nearby_sharing_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *set_visibility_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_visibility_); } - // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; - if (cached_has_bits & 0x00000080u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *describe_attachments_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.describe_attachments_); } - - } - if (cached_has_bits & 0x0000ff00u) { // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; - if (cached_has_bits & 0x00000100u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *scan_for_share_targets_start_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scan_for_share_targets_start_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; - if (cached_has_bits & 0x00000200u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *scan_for_share_targets_end_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scan_for_share_targets_end_); } - // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; - if (cached_has_bits & 0x00000400u) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *advertise_device_presence_start_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertise_device_presence_start_); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; - if (cached_has_bits & 0x00000800u) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *advertise_device_presence_end_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.advertise_device_presence_end_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; - if (cached_has_bits & 0x00001000u) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_initialization_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_initialization_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; - if (cached_has_bits & 0x00002000u) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *receive_initialization_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_initialization_); } - // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; - if (cached_has_bits & 0x00004000u) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *discover_share_target_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.discover_share_target_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; - if (cached_has_bits & 0x00008000u) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_introduction_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_introduction_); } - - } - if (cached_has_bits & 0x00ff0000u) { // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; - if (cached_has_bits & 0x00010000u) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *receive_introduction_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_introduction_); } - // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; - if (cached_has_bits & 0x00020000u) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *respond_introduction_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.respond_introduction_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; - if (cached_has_bits & 0x00040000u) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_attachments_start_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_attachments_start_); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; - if (cached_has_bits & 0x00080000u) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_attachments_end_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_attachments_end_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; - if (cached_has_bits & 0x00100000u) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *receive_attachments_start_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_attachments_start_); } - // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; - if (cached_has_bits & 0x00200000u) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *receive_attachments_end_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_attachments_end_); } - // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; - if (cached_has_bits & 0x00400000u) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cancel_sending_attachments_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_sending_attachments_); } - // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; - if (cached_has_bits & 0x00800000u) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cancel_receiving_attachments_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_receiving_attachments_); } - - } - if (cached_has_bits & 0xff000000u) { // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; - if (cached_has_bits & 0x01000000u) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *open_received_attachments_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.open_received_attachments_); } - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; - if (cached_has_bits & 0x02000000u) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *launch_activity_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_activity_); } - // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; - if (cached_has_bits & 0x04000000u) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *add_contact_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.add_contact_); } - + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; - if (cached_has_bits & 0x08000000u) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *remove_contact_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remove_contact_); } - // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; - if (cached_has_bits & 0x10000000u) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *fast_share_server_response_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fast_share_server_response_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; - if (cached_has_bits & 0x20000000u) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_start_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_start_); } - // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; - if (cached_has_bits & 0x40000000u) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *accept_fast_initialization_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.accept_fast_initialization_); } - // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; - if (cached_has_bits & 0x80000000u) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *set_data_usage_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_data_usage_); } - - } - cached_has_bits = _has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; - if (cached_has_bits & 0x00000001u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *dismiss_fast_initialization_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cancel_connection_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; - if (cached_has_bits & 0x00000004u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *dismiss_privacy_notification_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; - if (cached_has_bits & 0x00000008u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_privacy_notification_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; - if (cached_has_bits & 0x00000010u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_help_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; - if (cached_has_bits & 0x00000020u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_feedback_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; - if (cached_has_bits & 0x00000040u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *add_quick_settings_tile_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; - if (cached_has_bits & 0x00000080u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *remove_quick_settings_tile_); - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; - if (cached_has_bits & 0x00000100u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *launch_phone_consent_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; - if (cached_has_bits & 0x00000200u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_quick_settings_tile_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; - if (cached_has_bits & 0x00000400u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *install_apk_status_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; - if (cached_has_bits & 0x00000800u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *verify_apk_status_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; - if (cached_has_bits & 0x00001000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *launch_consent_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; - if (cached_has_bits & 0x00002000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *process_received_attachments_end_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; - if (cached_has_bits & 0x00004000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *toggle_show_notification_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; - if (cached_has_bits & 0x00008000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *set_device_name_); - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *decline_agreements_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; - if (cached_has_bits & 0x00020000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *request_setting_permissions_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; - if (cached_has_bits & 0x00040000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *device_settings_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; - if (cached_has_bits & 0x00080000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *establish_connection_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; - if (cached_has_bits & 0x00100000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *auto_dismiss_fast_initialization_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; - if (cached_has_bits & 0x00200000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *event_metadata_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; - if (cached_has_bits & 0x00400000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *app_crash_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; - if (cached_has_bits & 0x00800000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_quick_settings_file_share_); - } - - } - if (cached_has_bits & 0xff000000u) { - // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; - if (cached_has_bits & 0x01000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *app_info_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; - if (cached_has_bits & 0x02000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *display_privacy_notification_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; - if (cached_has_bits & 0x04000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *display_phone_consent_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; - if (cached_has_bits & 0x08000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *preferences_usage_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; - if (cached_has_bits & 0x10000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *default_opt_in_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; - if (cached_has_bits & 0x20000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *setup_wizard_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; - if (cached_has_bits & 0x40000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tap_qr_code_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; - if (cached_has_bits & 0x80000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *qr_code_link_shown_); - } - - } - cached_has_bits = _has_bits_[2]; - if (cached_has_bits & 0x000000ffu) { - // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; - if (cached_has_bits & 0x00000001u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *parsing_failed_endpoint_id_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *fast_init_discover_device_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; - if (cached_has_bits & 0x00000004u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_desktop_notification_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; - if (cached_has_bits & 0x00000008u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *send_desktop_transfer_event_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; - if (cached_has_bits & 0x00000010u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *set_account_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; - if (cached_has_bits & 0x00000020u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *decrypt_certificate_failure_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; - if (cached_has_bits & 0x00000040u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *show_allow_permission_auto_access_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; - if (cached_has_bits & 0x00000080u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *show_waiting_for_accept_); - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; - if (cached_has_bits & 0x00000100u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *high_quality_medium_setup_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; - if (cached_has_bits & 0x00000200u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *rpc_call_status_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; - if (cached_has_bits & 0x00000400u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *start_qr_code_session_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; - if (cached_has_bits & 0x00000800u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *qr_code_opened_in_web_client_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; - if (cached_has_bits & 0x00001000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hats_joint_event_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; - if (cached_has_bits & 0x00002000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *receive_previews_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; - if (cached_has_bits & 0x00004000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_create_sharing_request_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; - if (cached_has_bits & 0x00008000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_register_receiver_); - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_upload_start_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; - if (cached_has_bits & 0x00020000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_upload_end_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; - if (cached_has_bits & 0x00040000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_download_start_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; - if (cached_has_bits & 0x00080000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_download_end_); - } - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; - if (cached_has_bits & 0x00100000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cloud_sharing_rpc_result_); - } - // optional .location.nearby.proto.sharing.EventType event_type = 1; - if (cached_has_bits & 0x00200000u) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type()); } - // optional .location.nearby.proto.sharing.LogSource log_source = 27; - if (cached_has_bits & 0x00400000u) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_log_source()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_log_source()); + } + // optional string version = 32; + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_version()); + } + } + cached_has_bits = this_._impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // optional string files_migration_phase = 50; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_files_migration_phase()); + } + // optional string app_version = 57 [deprecated = true]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_app_version()); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dismiss_fast_initialization_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_connection_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dismiss_privacy_notification_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_privacy_notification_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_help_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_feedback_); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.add_quick_settings_tile_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.remove_quick_settings_tile_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_phone_consent_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_quick_settings_tile_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.install_apk_status_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.verify_apk_status_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.launch_consent_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.process_received_attachments_end_); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.toggle_show_notification_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_device_name_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.decline_agreements_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_setting_permissions_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.device_settings_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.establish_connection_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auto_dismiss_fast_initialization_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_metadata_); + } + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.app_crash_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_quick_settings_file_share_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.app_info_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.display_privacy_notification_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.display_phone_consent_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.preferences_usage_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.default_opt_in_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.setup_wizard_); + } + } + cached_has_bits = this_._impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tap_qr_code_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_link_shown_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.parsing_failed_endpoint_id_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fast_init_discover_device_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_desktop_notification_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.send_desktop_transfer_event_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.set_account_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.decrypt_certificate_failure_); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.show_allow_permission_auto_access_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.show_waiting_for_accept_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.high_quality_medium_setup_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rpc_call_status_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.start_qr_code_session_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qr_code_opened_in_web_client_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.hats_joint_event_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receive_previews_); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_create_sharing_request_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_register_receiver_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_upload_start_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_upload_end_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_download_start_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_download_end_); + } + // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cloud_sharing_rpc_result_); } - // optional .location.nearby.proto.sharing.EventCategory event_category = 33; - if (cached_has_bits & 0x00800000u) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_category()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_event_category()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SharingLog::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SharingLog::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SharingLog::MergeFrom(const SharingLog& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.sharing.analytics.proto.SharingLog) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_version(from._internal_version()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.unknown_event_ != nullptr); + if (_this->_impl_.unknown_event_ == nullptr) { + _this->_impl_.unknown_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unknown_event_); + } else { + _this->_impl_.unknown_event_->MergeFrom(*from._impl_.unknown_event_); + } } - if (cached_has_bits & 0x00000002u) { - _internal_set_files_migration_phase(from._internal_files_migration_phase()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.accept_agreements_ != nullptr); + if (_this->_impl_.accept_agreements_ == nullptr) { + _this->_impl_.accept_agreements_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_agreements_); + } else { + _this->_impl_.accept_agreements_->MergeFrom(*from._impl_.accept_agreements_); + } } - if (cached_has_bits & 0x00000004u) { - _internal_set_app_version(from._internal_app_version()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.enable_nearby_sharing_ != nullptr); + if (_this->_impl_.enable_nearby_sharing_ == nullptr) { + _this->_impl_.enable_nearby_sharing_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.enable_nearby_sharing_); + } else { + _this->_impl_.enable_nearby_sharing_->MergeFrom(*from._impl_.enable_nearby_sharing_); + } } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_unknown_event()->::nearby::sharing::analytics::proto::SharingLog_UnknownEvent::MergeFrom(from._internal_unknown_event()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.set_visibility_ != nullptr); + if (_this->_impl_.set_visibility_ == nullptr) { + _this->_impl_.set_visibility_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_visibility_); + } else { + _this->_impl_.set_visibility_->MergeFrom(*from._impl_.set_visibility_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_accept_agreements()->::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements::MergeFrom(from._internal_accept_agreements()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.describe_attachments_ != nullptr); + if (_this->_impl_.describe_attachments_ == nullptr) { + _this->_impl_.describe_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.describe_attachments_); + } else { + _this->_impl_.describe_attachments_->MergeFrom(*from._impl_.describe_attachments_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_enable_nearby_sharing()->::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing::MergeFrom(from._internal_enable_nearby_sharing()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.scan_for_share_targets_start_ != nullptr); + if (_this->_impl_.scan_for_share_targets_start_ == nullptr) { + _this->_impl_.scan_for_share_targets_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_start_); + } else { + _this->_impl_.scan_for_share_targets_start_->MergeFrom(*from._impl_.scan_for_share_targets_start_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_set_visibility()->::nearby::sharing::analytics::proto::SharingLog_SetVisibility::MergeFrom(from._internal_set_visibility()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.scan_for_share_targets_end_ != nullptr); + if (_this->_impl_.scan_for_share_targets_end_ == nullptr) { + _this->_impl_.scan_for_share_targets_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scan_for_share_targets_end_); + } else { + _this->_impl_.scan_for_share_targets_end_->MergeFrom(*from._impl_.scan_for_share_targets_end_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_describe_attachments()->::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments::MergeFrom(from._internal_describe_attachments()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.advertise_device_presence_start_ != nullptr); + if (_this->_impl_.advertise_device_presence_start_ == nullptr) { + _this->_impl_.advertise_device_presence_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_start_); + } else { + _this->_impl_.advertise_device_presence_start_->MergeFrom(*from._impl_.advertise_device_presence_start_); + } } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _internal_mutable_scan_for_share_targets_start()->::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart::MergeFrom(from._internal_scan_for_share_targets_start()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(from._impl_.advertise_device_presence_end_ != nullptr); + if (_this->_impl_.advertise_device_presence_end_ == nullptr) { + _this->_impl_.advertise_device_presence_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.advertise_device_presence_end_); + } else { + _this->_impl_.advertise_device_presence_end_->MergeFrom(*from._impl_.advertise_device_presence_end_); + } } - if (cached_has_bits & 0x00000200u) { - _internal_mutable_scan_for_share_targets_end()->::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd::MergeFrom(from._internal_scan_for_share_targets_end()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(from._impl_.send_initialization_ != nullptr); + if (_this->_impl_.send_initialization_ == nullptr) { + _this->_impl_.send_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_initialization_); + } else { + _this->_impl_.send_initialization_->MergeFrom(*from._impl_.send_initialization_); + } } - if (cached_has_bits & 0x00000400u) { - _internal_mutable_advertise_device_presence_start()->::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart::MergeFrom(from._internal_advertise_device_presence_start()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(from._impl_.receive_initialization_ != nullptr); + if (_this->_impl_.receive_initialization_ == nullptr) { + _this->_impl_.receive_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_initialization_); + } else { + _this->_impl_.receive_initialization_->MergeFrom(*from._impl_.receive_initialization_); + } } - if (cached_has_bits & 0x00000800u) { - _internal_mutable_advertise_device_presence_end()->::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd::MergeFrom(from._internal_advertise_device_presence_end()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(from._impl_.discover_share_target_ != nullptr); + if (_this->_impl_.discover_share_target_ == nullptr) { + _this->_impl_.discover_share_target_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.discover_share_target_); + } else { + _this->_impl_.discover_share_target_->MergeFrom(*from._impl_.discover_share_target_); + } } - if (cached_has_bits & 0x00001000u) { - _internal_mutable_send_initialization()->::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization::MergeFrom(from._internal_send_initialization()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(from._impl_.send_introduction_ != nullptr); + if (_this->_impl_.send_introduction_ == nullptr) { + _this->_impl_.send_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_introduction_); + } else { + _this->_impl_.send_introduction_->MergeFrom(*from._impl_.send_introduction_); + } } - if (cached_has_bits & 0x00002000u) { - _internal_mutable_receive_initialization()->::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization::MergeFrom(from._internal_receive_initialization()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(from._impl_.receive_introduction_ != nullptr); + if (_this->_impl_.receive_introduction_ == nullptr) { + _this->_impl_.receive_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_introduction_); + } else { + _this->_impl_.receive_introduction_->MergeFrom(*from._impl_.receive_introduction_); + } } - if (cached_has_bits & 0x00004000u) { - _internal_mutable_discover_share_target()->::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget::MergeFrom(from._internal_discover_share_target()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(from._impl_.respond_introduction_ != nullptr); + if (_this->_impl_.respond_introduction_ == nullptr) { + _this->_impl_.respond_introduction_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.respond_introduction_); + } else { + _this->_impl_.respond_introduction_->MergeFrom(*from._impl_.respond_introduction_); + } } - if (cached_has_bits & 0x00008000u) { - _internal_mutable_send_introduction()->::nearby::sharing::analytics::proto::SharingLog_SendIntroduction::MergeFrom(from._internal_send_introduction()); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(from._impl_.send_attachments_start_ != nullptr); + if (_this->_impl_.send_attachments_start_ == nullptr) { + _this->_impl_.send_attachments_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_start_); + } else { + _this->_impl_.send_attachments_start_->MergeFrom(*from._impl_.send_attachments_start_); + } } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _internal_mutable_receive_introduction()->::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction::MergeFrom(from._internal_receive_introduction()); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(from._impl_.send_attachments_end_ != nullptr); + if (_this->_impl_.send_attachments_end_ == nullptr) { + _this->_impl_.send_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_attachments_end_); + } else { + _this->_impl_.send_attachments_end_->MergeFrom(*from._impl_.send_attachments_end_); + } } - if (cached_has_bits & 0x00020000u) { - _internal_mutable_respond_introduction()->::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction::MergeFrom(from._internal_respond_introduction()); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(from._impl_.receive_attachments_start_ != nullptr); + if (_this->_impl_.receive_attachments_start_ == nullptr) { + _this->_impl_.receive_attachments_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_start_); + } else { + _this->_impl_.receive_attachments_start_->MergeFrom(*from._impl_.receive_attachments_start_); + } } - if (cached_has_bits & 0x00040000u) { - _internal_mutable_send_attachments_start()->::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart::MergeFrom(from._internal_send_attachments_start()); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(from._impl_.receive_attachments_end_ != nullptr); + if (_this->_impl_.receive_attachments_end_ == nullptr) { + _this->_impl_.receive_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_attachments_end_); + } else { + _this->_impl_.receive_attachments_end_->MergeFrom(*from._impl_.receive_attachments_end_); + } } - if (cached_has_bits & 0x00080000u) { - _internal_mutable_send_attachments_end()->::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd::MergeFrom(from._internal_send_attachments_end()); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(from._impl_.cancel_sending_attachments_ != nullptr); + if (_this->_impl_.cancel_sending_attachments_ == nullptr) { + _this->_impl_.cancel_sending_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_sending_attachments_); + } else { + _this->_impl_.cancel_sending_attachments_->MergeFrom(*from._impl_.cancel_sending_attachments_); + } } - if (cached_has_bits & 0x00100000u) { - _internal_mutable_receive_attachments_start()->::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart::MergeFrom(from._internal_receive_attachments_start()); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(from._impl_.cancel_receiving_attachments_ != nullptr); + if (_this->_impl_.cancel_receiving_attachments_ == nullptr) { + _this->_impl_.cancel_receiving_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_receiving_attachments_); + } else { + _this->_impl_.cancel_receiving_attachments_->MergeFrom(*from._impl_.cancel_receiving_attachments_); + } } - if (cached_has_bits & 0x00200000u) { - _internal_mutable_receive_attachments_end()->::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd::MergeFrom(from._internal_receive_attachments_end()); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(from._impl_.open_received_attachments_ != nullptr); + if (_this->_impl_.open_received_attachments_ == nullptr) { + _this->_impl_.open_received_attachments_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.open_received_attachments_); + } else { + _this->_impl_.open_received_attachments_->MergeFrom(*from._impl_.open_received_attachments_); + } } - if (cached_has_bits & 0x00400000u) { - _internal_mutable_cancel_sending_attachments()->::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments::MergeFrom(from._internal_cancel_sending_attachments()); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(from._impl_.launch_activity_ != nullptr); + if (_this->_impl_.launch_activity_ == nullptr) { + _this->_impl_.launch_activity_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_activity_); + } else { + _this->_impl_.launch_activity_->MergeFrom(*from._impl_.launch_activity_); + } } - if (cached_has_bits & 0x00800000u) { - _internal_mutable_cancel_receiving_attachments()->::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments::MergeFrom(from._internal_cancel_receiving_attachments()); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + ABSL_DCHECK(from._impl_.add_contact_ != nullptr); + if (_this->_impl_.add_contact_ == nullptr) { + _this->_impl_.add_contact_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_contact_); + } else { + _this->_impl_.add_contact_->MergeFrom(*from._impl_.add_contact_); + } } } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - _internal_mutable_open_received_attachments()->::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments::MergeFrom(from._internal_open_received_attachments()); + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(from._impl_.remove_contact_ != nullptr); + if (_this->_impl_.remove_contact_ == nullptr) { + _this->_impl_.remove_contact_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_contact_); + } else { + _this->_impl_.remove_contact_->MergeFrom(*from._impl_.remove_contact_); + } } - if (cached_has_bits & 0x02000000u) { - _internal_mutable_launch_activity()->::nearby::sharing::analytics::proto::SharingLog_LaunchActivity::MergeFrom(from._internal_launch_activity()); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + ABSL_DCHECK(from._impl_.fast_share_server_response_ != nullptr); + if (_this->_impl_.fast_share_server_response_ == nullptr) { + _this->_impl_.fast_share_server_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_share_server_response_); + } else { + _this->_impl_.fast_share_server_response_->MergeFrom(*from._impl_.fast_share_server_response_); + } } - if (cached_has_bits & 0x04000000u) { - _internal_mutable_add_contact()->::nearby::sharing::analytics::proto::SharingLog_AddContact::MergeFrom(from._internal_add_contact()); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + ABSL_DCHECK(from._impl_.send_start_ != nullptr); + if (_this->_impl_.send_start_ == nullptr) { + _this->_impl_.send_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_start_); + } else { + _this->_impl_.send_start_->MergeFrom(*from._impl_.send_start_); + } } - if (cached_has_bits & 0x08000000u) { - _internal_mutable_remove_contact()->::nearby::sharing::analytics::proto::SharingLog_RemoveContact::MergeFrom(from._internal_remove_contact()); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + ABSL_DCHECK(from._impl_.accept_fast_initialization_ != nullptr); + if (_this->_impl_.accept_fast_initialization_ == nullptr) { + _this->_impl_.accept_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.accept_fast_initialization_); + } else { + _this->_impl_.accept_fast_initialization_->MergeFrom(*from._impl_.accept_fast_initialization_); + } } - if (cached_has_bits & 0x10000000u) { - _internal_mutable_fast_share_server_response()->::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse::MergeFrom(from._internal_fast_share_server_response()); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + ABSL_DCHECK(from._impl_.set_data_usage_ != nullptr); + if (_this->_impl_.set_data_usage_ == nullptr) { + _this->_impl_.set_data_usage_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_data_usage_); + } else { + _this->_impl_.set_data_usage_->MergeFrom(*from._impl_.set_data_usage_); + } } - if (cached_has_bits & 0x20000000u) { - _internal_mutable_send_start()->::nearby::sharing::analytics::proto::SharingLog_SendStart::MergeFrom(from._internal_send_start()); + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + _this->_impl_.event_type_ = from._impl_.event_type_; } - if (cached_has_bits & 0x40000000u) { - _internal_mutable_accept_fast_initialization()->::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization::MergeFrom(from._internal_accept_fast_initialization()); + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + _this->_impl_.log_source_ = from._impl_.log_source_; } - if (cached_has_bits & 0x80000000u) { - _internal_mutable_set_data_usage()->::nearby::sharing::analytics::proto::SharingLog_SetDataUsage::MergeFrom(from._internal_set_data_usage()); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + _this->_internal_set_version(from._internal_version()); } } - cached_has_bits = from._has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_dismiss_fast_initialization()->::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization::MergeFrom(from._internal_dismiss_fast_initialization()); + cached_has_bits = from._impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_files_migration_phase(from._internal_files_migration_phase()); } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_cancel_connection()->::nearby::sharing::analytics::proto::SharingLog_CancelConnection::MergeFrom(from._internal_cancel_connection()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_app_version(from._internal_app_version()); } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_dismiss_privacy_notification()->::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification::MergeFrom(from._internal_dismiss_privacy_notification()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.dismiss_fast_initialization_ != nullptr); + if (_this->_impl_.dismiss_fast_initialization_ == nullptr) { + _this->_impl_.dismiss_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_fast_initialization_); + } else { + _this->_impl_.dismiss_fast_initialization_->MergeFrom(*from._impl_.dismiss_fast_initialization_); + } } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_tap_privacy_notification()->::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification::MergeFrom(from._internal_tap_privacy_notification()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.cancel_connection_ != nullptr); + if (_this->_impl_.cancel_connection_ == nullptr) { + _this->_impl_.cancel_connection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cancel_connection_); + } else { + _this->_impl_.cancel_connection_->MergeFrom(*from._impl_.cancel_connection_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_tap_help()->::nearby::sharing::analytics::proto::SharingLog_TapHelp::MergeFrom(from._internal_tap_help()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.dismiss_privacy_notification_ != nullptr); + if (_this->_impl_.dismiss_privacy_notification_ == nullptr) { + _this->_impl_.dismiss_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dismiss_privacy_notification_); + } else { + _this->_impl_.dismiss_privacy_notification_->MergeFrom(*from._impl_.dismiss_privacy_notification_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_tap_feedback()->::nearby::sharing::analytics::proto::SharingLog_TapFeedback::MergeFrom(from._internal_tap_feedback()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.tap_privacy_notification_ != nullptr); + if (_this->_impl_.tap_privacy_notification_ == nullptr) { + _this->_impl_.tap_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_privacy_notification_); + } else { + _this->_impl_.tap_privacy_notification_->MergeFrom(*from._impl_.tap_privacy_notification_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_add_quick_settings_tile()->::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile::MergeFrom(from._internal_add_quick_settings_tile()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.tap_help_ != nullptr); + if (_this->_impl_.tap_help_ == nullptr) { + _this->_impl_.tap_help_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_help_); + } else { + _this->_impl_.tap_help_->MergeFrom(*from._impl_.tap_help_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_remove_quick_settings_tile()->::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile::MergeFrom(from._internal_remove_quick_settings_tile()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.tap_feedback_ != nullptr); + if (_this->_impl_.tap_feedback_ == nullptr) { + _this->_impl_.tap_feedback_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_feedback_); + } else { + _this->_impl_.tap_feedback_->MergeFrom(*from._impl_.tap_feedback_); + } } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _internal_mutable_launch_phone_consent()->::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent::MergeFrom(from._internal_launch_phone_consent()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(from._impl_.add_quick_settings_tile_ != nullptr); + if (_this->_impl_.add_quick_settings_tile_ == nullptr) { + _this->_impl_.add_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.add_quick_settings_tile_); + } else { + _this->_impl_.add_quick_settings_tile_->MergeFrom(*from._impl_.add_quick_settings_tile_); + } } - if (cached_has_bits & 0x00000200u) { - _internal_mutable_tap_quick_settings_tile()->::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile::MergeFrom(from._internal_tap_quick_settings_tile()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(from._impl_.remove_quick_settings_tile_ != nullptr); + if (_this->_impl_.remove_quick_settings_tile_ == nullptr) { + _this->_impl_.remove_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.remove_quick_settings_tile_); + } else { + _this->_impl_.remove_quick_settings_tile_->MergeFrom(*from._impl_.remove_quick_settings_tile_); + } } - if (cached_has_bits & 0x00000400u) { - _internal_mutable_install_apk_status()->::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus::MergeFrom(from._internal_install_apk_status()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(from._impl_.launch_phone_consent_ != nullptr); + if (_this->_impl_.launch_phone_consent_ == nullptr) { + _this->_impl_.launch_phone_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_phone_consent_); + } else { + _this->_impl_.launch_phone_consent_->MergeFrom(*from._impl_.launch_phone_consent_); + } } - if (cached_has_bits & 0x00000800u) { - _internal_mutable_verify_apk_status()->::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus::MergeFrom(from._internal_verify_apk_status()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(from._impl_.tap_quick_settings_tile_ != nullptr); + if (_this->_impl_.tap_quick_settings_tile_ == nullptr) { + _this->_impl_.tap_quick_settings_tile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_tile_); + } else { + _this->_impl_.tap_quick_settings_tile_->MergeFrom(*from._impl_.tap_quick_settings_tile_); + } } - if (cached_has_bits & 0x00001000u) { - _internal_mutable_launch_consent()->::nearby::sharing::analytics::proto::SharingLog_LaunchConsent::MergeFrom(from._internal_launch_consent()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(from._impl_.install_apk_status_ != nullptr); + if (_this->_impl_.install_apk_status_ == nullptr) { + _this->_impl_.install_apk_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.install_apk_status_); + } else { + _this->_impl_.install_apk_status_->MergeFrom(*from._impl_.install_apk_status_); + } } - if (cached_has_bits & 0x00002000u) { - _internal_mutable_process_received_attachments_end()->::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd::MergeFrom(from._internal_process_received_attachments_end()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(from._impl_.verify_apk_status_ != nullptr); + if (_this->_impl_.verify_apk_status_ == nullptr) { + _this->_impl_.verify_apk_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.verify_apk_status_); + } else { + _this->_impl_.verify_apk_status_->MergeFrom(*from._impl_.verify_apk_status_); + } } - if (cached_has_bits & 0x00004000u) { - _internal_mutable_toggle_show_notification()->::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification::MergeFrom(from._internal_toggle_show_notification()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(from._impl_.launch_consent_ != nullptr); + if (_this->_impl_.launch_consent_ == nullptr) { + _this->_impl_.launch_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.launch_consent_); + } else { + _this->_impl_.launch_consent_->MergeFrom(*from._impl_.launch_consent_); + } } - if (cached_has_bits & 0x00008000u) { - _internal_mutable_set_device_name()->::nearby::sharing::analytics::proto::SharingLog_SetDeviceName::MergeFrom(from._internal_set_device_name()); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(from._impl_.process_received_attachments_end_ != nullptr); + if (_this->_impl_.process_received_attachments_end_ == nullptr) { + _this->_impl_.process_received_attachments_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.process_received_attachments_end_); + } else { + _this->_impl_.process_received_attachments_end_->MergeFrom(*from._impl_.process_received_attachments_end_); + } } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _internal_mutable_decline_agreements()->::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements::MergeFrom(from._internal_decline_agreements()); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(from._impl_.toggle_show_notification_ != nullptr); + if (_this->_impl_.toggle_show_notification_ == nullptr) { + _this->_impl_.toggle_show_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.toggle_show_notification_); + } else { + _this->_impl_.toggle_show_notification_->MergeFrom(*from._impl_.toggle_show_notification_); + } } - if (cached_has_bits & 0x00020000u) { - _internal_mutable_request_setting_permissions()->::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions::MergeFrom(from._internal_request_setting_permissions()); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(from._impl_.set_device_name_ != nullptr); + if (_this->_impl_.set_device_name_ == nullptr) { + _this->_impl_.set_device_name_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_device_name_); + } else { + _this->_impl_.set_device_name_->MergeFrom(*from._impl_.set_device_name_); + } } - if (cached_has_bits & 0x00040000u) { - _internal_mutable_device_settings()->::nearby::sharing::analytics::proto::SharingLog_DeviceSettings::MergeFrom(from._internal_device_settings()); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(from._impl_.decline_agreements_ != nullptr); + if (_this->_impl_.decline_agreements_ == nullptr) { + _this->_impl_.decline_agreements_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decline_agreements_); + } else { + _this->_impl_.decline_agreements_->MergeFrom(*from._impl_.decline_agreements_); + } } - if (cached_has_bits & 0x00080000u) { - _internal_mutable_establish_connection()->::nearby::sharing::analytics::proto::SharingLog_EstablishConnection::MergeFrom(from._internal_establish_connection()); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(from._impl_.request_setting_permissions_ != nullptr); + if (_this->_impl_.request_setting_permissions_ == nullptr) { + _this->_impl_.request_setting_permissions_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_setting_permissions_); + } else { + _this->_impl_.request_setting_permissions_->MergeFrom(*from._impl_.request_setting_permissions_); + } } - if (cached_has_bits & 0x00100000u) { - _internal_mutable_auto_dismiss_fast_initialization()->::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization::MergeFrom(from._internal_auto_dismiss_fast_initialization()); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(from._impl_.device_settings_ != nullptr); + if (_this->_impl_.device_settings_ == nullptr) { + _this->_impl_.device_settings_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_settings_); + } else { + _this->_impl_.device_settings_->MergeFrom(*from._impl_.device_settings_); + } } - if (cached_has_bits & 0x00200000u) { - _internal_mutable_event_metadata()->::nearby::sharing::analytics::proto::SharingLog_EventMetadata::MergeFrom(from._internal_event_metadata()); + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(from._impl_.establish_connection_ != nullptr); + if (_this->_impl_.establish_connection_ == nullptr) { + _this->_impl_.establish_connection_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.establish_connection_); + } else { + _this->_impl_.establish_connection_->MergeFrom(*from._impl_.establish_connection_); + } } - if (cached_has_bits & 0x00400000u) { - _internal_mutable_app_crash()->::nearby::sharing::analytics::proto::SharingLog_AppCrash::MergeFrom(from._internal_app_crash()); + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(from._impl_.auto_dismiss_fast_initialization_ != nullptr); + if (_this->_impl_.auto_dismiss_fast_initialization_ == nullptr) { + _this->_impl_.auto_dismiss_fast_initialization_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_dismiss_fast_initialization_); + } else { + _this->_impl_.auto_dismiss_fast_initialization_->MergeFrom(*from._impl_.auto_dismiss_fast_initialization_); + } } - if (cached_has_bits & 0x00800000u) { - _internal_mutable_tap_quick_settings_file_share()->::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare::MergeFrom(from._internal_tap_quick_settings_file_share()); + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + ABSL_DCHECK(from._impl_.event_metadata_ != nullptr); + if (_this->_impl_.event_metadata_ == nullptr) { + _this->_impl_.event_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_metadata_); + } else { + _this->_impl_.event_metadata_->MergeFrom(*from._impl_.event_metadata_); + } } } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - _internal_mutable_app_info()->::nearby::sharing::analytics::proto::SharingLog_AppInfo::MergeFrom(from._internal_app_info()); + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(from._impl_.app_crash_ != nullptr); + if (_this->_impl_.app_crash_ == nullptr) { + _this->_impl_.app_crash_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_crash_); + } else { + _this->_impl_.app_crash_->MergeFrom(*from._impl_.app_crash_); + } } - if (cached_has_bits & 0x02000000u) { - _internal_mutable_display_privacy_notification()->::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification::MergeFrom(from._internal_display_privacy_notification()); + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + ABSL_DCHECK(from._impl_.tap_quick_settings_file_share_ != nullptr); + if (_this->_impl_.tap_quick_settings_file_share_ == nullptr) { + _this->_impl_.tap_quick_settings_file_share_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_quick_settings_file_share_); + } else { + _this->_impl_.tap_quick_settings_file_share_->MergeFrom(*from._impl_.tap_quick_settings_file_share_); + } } - if (cached_has_bits & 0x04000000u) { - _internal_mutable_display_phone_consent()->::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent::MergeFrom(from._internal_display_phone_consent()); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + ABSL_DCHECK(from._impl_.app_info_ != nullptr); + if (_this->_impl_.app_info_ == nullptr) { + _this->_impl_.app_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.app_info_); + } else { + _this->_impl_.app_info_->MergeFrom(*from._impl_.app_info_); + } } - if (cached_has_bits & 0x08000000u) { - _internal_mutable_preferences_usage()->::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage::MergeFrom(from._internal_preferences_usage()); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + ABSL_DCHECK(from._impl_.display_privacy_notification_ != nullptr); + if (_this->_impl_.display_privacy_notification_ == nullptr) { + _this->_impl_.display_privacy_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_privacy_notification_); + } else { + _this->_impl_.display_privacy_notification_->MergeFrom(*from._impl_.display_privacy_notification_); + } } - if (cached_has_bits & 0x10000000u) { - _internal_mutable_default_opt_in()->::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn::MergeFrom(from._internal_default_opt_in()); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + ABSL_DCHECK(from._impl_.display_phone_consent_ != nullptr); + if (_this->_impl_.display_phone_consent_ == nullptr) { + _this->_impl_.display_phone_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.display_phone_consent_); + } else { + _this->_impl_.display_phone_consent_->MergeFrom(*from._impl_.display_phone_consent_); + } } - if (cached_has_bits & 0x20000000u) { - _internal_mutable_setup_wizard()->::nearby::sharing::analytics::proto::SharingLog_SetupWizard::MergeFrom(from._internal_setup_wizard()); + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + ABSL_DCHECK(from._impl_.preferences_usage_ != nullptr); + if (_this->_impl_.preferences_usage_ == nullptr) { + _this->_impl_.preferences_usage_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preferences_usage_); + } else { + _this->_impl_.preferences_usage_->MergeFrom(*from._impl_.preferences_usage_); + } } - if (cached_has_bits & 0x40000000u) { - _internal_mutable_tap_qr_code()->::nearby::sharing::analytics::proto::SharingLog_TapQrCode::MergeFrom(from._internal_tap_qr_code()); + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + ABSL_DCHECK(from._impl_.default_opt_in_ != nullptr); + if (_this->_impl_.default_opt_in_ == nullptr) { + _this->_impl_.default_opt_in_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.default_opt_in_); + } else { + _this->_impl_.default_opt_in_->MergeFrom(*from._impl_.default_opt_in_); + } } - if (cached_has_bits & 0x80000000u) { - _internal_mutable_qr_code_link_shown()->::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown::MergeFrom(from._internal_qr_code_link_shown()); + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + ABSL_DCHECK(from._impl_.setup_wizard_ != nullptr); + if (_this->_impl_.setup_wizard_ == nullptr) { + _this->_impl_.setup_wizard_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.setup_wizard_); + } else { + _this->_impl_.setup_wizard_->MergeFrom(*from._impl_.setup_wizard_); + } } } - cached_has_bits = from._has_bits_[2]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_parsing_failed_endpoint_id()->::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId::MergeFrom(from._internal_parsing_failed_endpoint_id()); + cached_has_bits = from._impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.tap_qr_code_ != nullptr); + if (_this->_impl_.tap_qr_code_ == nullptr) { + _this->_impl_.tap_qr_code_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tap_qr_code_); + } else { + _this->_impl_.tap_qr_code_->MergeFrom(*from._impl_.tap_qr_code_); + } } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_fast_init_discover_device()->::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice::MergeFrom(from._internal_fast_init_discover_device()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.qr_code_link_shown_ != nullptr); + if (_this->_impl_.qr_code_link_shown_ == nullptr) { + _this->_impl_.qr_code_link_shown_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_link_shown_); + } else { + _this->_impl_.qr_code_link_shown_->MergeFrom(*from._impl_.qr_code_link_shown_); + } } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_send_desktop_notification()->::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification::MergeFrom(from._internal_send_desktop_notification()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.parsing_failed_endpoint_id_ != nullptr); + if (_this->_impl_.parsing_failed_endpoint_id_ == nullptr) { + _this->_impl_.parsing_failed_endpoint_id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.parsing_failed_endpoint_id_); + } else { + _this->_impl_.parsing_failed_endpoint_id_->MergeFrom(*from._impl_.parsing_failed_endpoint_id_); + } } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_send_desktop_transfer_event()->::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent::MergeFrom(from._internal_send_desktop_transfer_event()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.fast_init_discover_device_ != nullptr); + if (_this->_impl_.fast_init_discover_device_ == nullptr) { + _this->_impl_.fast_init_discover_device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fast_init_discover_device_); + } else { + _this->_impl_.fast_init_discover_device_->MergeFrom(*from._impl_.fast_init_discover_device_); + } } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_set_account()->::nearby::sharing::analytics::proto::SharingLog_SetAccount::MergeFrom(from._internal_set_account()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.send_desktop_notification_ != nullptr); + if (_this->_impl_.send_desktop_notification_ == nullptr) { + _this->_impl_.send_desktop_notification_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_notification_); + } else { + _this->_impl_.send_desktop_notification_->MergeFrom(*from._impl_.send_desktop_notification_); + } } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_decrypt_certificate_failure()->::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure::MergeFrom(from._internal_decrypt_certificate_failure()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.send_desktop_transfer_event_ != nullptr); + if (_this->_impl_.send_desktop_transfer_event_ == nullptr) { + _this->_impl_.send_desktop_transfer_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.send_desktop_transfer_event_); + } else { + _this->_impl_.send_desktop_transfer_event_->MergeFrom(*from._impl_.send_desktop_transfer_event_); + } } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_show_allow_permission_auto_access()->::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess::MergeFrom(from._internal_show_allow_permission_auto_access()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + ABSL_DCHECK(from._impl_.set_account_ != nullptr); + if (_this->_impl_.set_account_ == nullptr) { + _this->_impl_.set_account_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.set_account_); + } else { + _this->_impl_.set_account_->MergeFrom(*from._impl_.set_account_); + } } - if (cached_has_bits & 0x00000080u) { - _internal_mutable_show_waiting_for_accept()->::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept::MergeFrom(from._internal_show_waiting_for_accept()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + ABSL_DCHECK(from._impl_.decrypt_certificate_failure_ != nullptr); + if (_this->_impl_.decrypt_certificate_failure_ == nullptr) { + _this->_impl_.decrypt_certificate_failure_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.decrypt_certificate_failure_); + } else { + _this->_impl_.decrypt_certificate_failure_->MergeFrom(*from._impl_.decrypt_certificate_failure_); + } } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _internal_mutable_high_quality_medium_setup()->::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup::MergeFrom(from._internal_high_quality_medium_setup()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(from._impl_.show_allow_permission_auto_access_ != nullptr); + if (_this->_impl_.show_allow_permission_auto_access_ == nullptr) { + _this->_impl_.show_allow_permission_auto_access_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_allow_permission_auto_access_); + } else { + _this->_impl_.show_allow_permission_auto_access_->MergeFrom(*from._impl_.show_allow_permission_auto_access_); + } } - if (cached_has_bits & 0x00000200u) { - _internal_mutable_rpc_call_status()->::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus::MergeFrom(from._internal_rpc_call_status()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + ABSL_DCHECK(from._impl_.show_waiting_for_accept_ != nullptr); + if (_this->_impl_.show_waiting_for_accept_ == nullptr) { + _this->_impl_.show_waiting_for_accept_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.show_waiting_for_accept_); + } else { + _this->_impl_.show_waiting_for_accept_->MergeFrom(*from._impl_.show_waiting_for_accept_); + } } - if (cached_has_bits & 0x00000400u) { - _internal_mutable_start_qr_code_session()->::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession::MergeFrom(from._internal_start_qr_code_session()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + ABSL_DCHECK(from._impl_.high_quality_medium_setup_ != nullptr); + if (_this->_impl_.high_quality_medium_setup_ == nullptr) { + _this->_impl_.high_quality_medium_setup_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.high_quality_medium_setup_); + } else { + _this->_impl_.high_quality_medium_setup_->MergeFrom(*from._impl_.high_quality_medium_setup_); + } } - if (cached_has_bits & 0x00000800u) { - _internal_mutable_qr_code_opened_in_web_client()->::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient::MergeFrom(from._internal_qr_code_opened_in_web_client()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + ABSL_DCHECK(from._impl_.rpc_call_status_ != nullptr); + if (_this->_impl_.rpc_call_status_ == nullptr) { + _this->_impl_.rpc_call_status_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rpc_call_status_); + } else { + _this->_impl_.rpc_call_status_->MergeFrom(*from._impl_.rpc_call_status_); + } } - if (cached_has_bits & 0x00001000u) { - _internal_mutable_hats_joint_event()->::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent::MergeFrom(from._internal_hats_joint_event()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + ABSL_DCHECK(from._impl_.start_qr_code_session_ != nullptr); + if (_this->_impl_.start_qr_code_session_ == nullptr) { + _this->_impl_.start_qr_code_session_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.start_qr_code_session_); + } else { + _this->_impl_.start_qr_code_session_->MergeFrom(*from._impl_.start_qr_code_session_); + } } - if (cached_has_bits & 0x00002000u) { - _internal_mutable_receive_previews()->::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews::MergeFrom(from._internal_receive_previews()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + ABSL_DCHECK(from._impl_.qr_code_opened_in_web_client_ != nullptr); + if (_this->_impl_.qr_code_opened_in_web_client_ == nullptr) { + _this->_impl_.qr_code_opened_in_web_client_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qr_code_opened_in_web_client_); + } else { + _this->_impl_.qr_code_opened_in_web_client_->MergeFrom(*from._impl_.qr_code_opened_in_web_client_); + } } - if (cached_has_bits & 0x00004000u) { - _internal_mutable_cloud_create_sharing_request()->::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest::MergeFrom(from._internal_cloud_create_sharing_request()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + ABSL_DCHECK(from._impl_.hats_joint_event_ != nullptr); + if (_this->_impl_.hats_joint_event_ == nullptr) { + _this->_impl_.hats_joint_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hats_joint_event_); + } else { + _this->_impl_.hats_joint_event_->MergeFrom(*from._impl_.hats_joint_event_); + } } - if (cached_has_bits & 0x00008000u) { - _internal_mutable_cloud_register_receiver()->::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver::MergeFrom(from._internal_cloud_register_receiver()); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + ABSL_DCHECK(from._impl_.receive_previews_ != nullptr); + if (_this->_impl_.receive_previews_ == nullptr) { + _this->_impl_.receive_previews_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.receive_previews_); + } else { + _this->_impl_.receive_previews_->MergeFrom(*from._impl_.receive_previews_); + } } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _internal_mutable_cloud_upload_start()->::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart::MergeFrom(from._internal_cloud_upload_start()); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + ABSL_DCHECK(from._impl_.cloud_create_sharing_request_ != nullptr); + if (_this->_impl_.cloud_create_sharing_request_ == nullptr) { + _this->_impl_.cloud_create_sharing_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_create_sharing_request_); + } else { + _this->_impl_.cloud_create_sharing_request_->MergeFrom(*from._impl_.cloud_create_sharing_request_); + } } - if (cached_has_bits & 0x00020000u) { - _internal_mutable_cloud_upload_end()->::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd::MergeFrom(from._internal_cloud_upload_end()); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + ABSL_DCHECK(from._impl_.cloud_register_receiver_ != nullptr); + if (_this->_impl_.cloud_register_receiver_ == nullptr) { + _this->_impl_.cloud_register_receiver_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_register_receiver_); + } else { + _this->_impl_.cloud_register_receiver_->MergeFrom(*from._impl_.cloud_register_receiver_); + } } - if (cached_has_bits & 0x00040000u) { - _internal_mutable_cloud_download_start()->::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart::MergeFrom(from._internal_cloud_download_start()); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + ABSL_DCHECK(from._impl_.cloud_upload_start_ != nullptr); + if (_this->_impl_.cloud_upload_start_ == nullptr) { + _this->_impl_.cloud_upload_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_start_); + } else { + _this->_impl_.cloud_upload_start_->MergeFrom(*from._impl_.cloud_upload_start_); + } } - if (cached_has_bits & 0x00080000u) { - _internal_mutable_cloud_download_end()->::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd::MergeFrom(from._internal_cloud_download_end()); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + ABSL_DCHECK(from._impl_.cloud_upload_end_ != nullptr); + if (_this->_impl_.cloud_upload_end_ == nullptr) { + _this->_impl_.cloud_upload_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_upload_end_); + } else { + _this->_impl_.cloud_upload_end_->MergeFrom(*from._impl_.cloud_upload_end_); + } } - if (cached_has_bits & 0x00100000u) { - _internal_mutable_cloud_sharing_rpc_result()->::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult::MergeFrom(from._internal_cloud_sharing_rpc_result()); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + ABSL_DCHECK(from._impl_.cloud_download_start_ != nullptr); + if (_this->_impl_.cloud_download_start_ == nullptr) { + _this->_impl_.cloud_download_start_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_start_); + } else { + _this->_impl_.cloud_download_start_->MergeFrom(*from._impl_.cloud_download_start_); + } } - if (cached_has_bits & 0x00200000u) { - event_type_ = from.event_type_; + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + ABSL_DCHECK(from._impl_.cloud_download_end_ != nullptr); + if (_this->_impl_.cloud_download_end_ == nullptr) { + _this->_impl_.cloud_download_end_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_download_end_); + } else { + _this->_impl_.cloud_download_end_->MergeFrom(*from._impl_.cloud_download_end_); + } } - if (cached_has_bits & 0x00400000u) { - log_source_ = from.log_source_; + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + ABSL_DCHECK(from._impl_.cloud_sharing_rpc_result_ != nullptr); + if (_this->_impl_.cloud_sharing_rpc_result_ == nullptr) { + _this->_impl_.cloud_sharing_rpc_result_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cloud_sharing_rpc_result_); + } else { + _this->_impl_.cloud_sharing_rpc_result_->MergeFrom(*from._impl_.cloud_sharing_rpc_result_); + } } - if (cached_has_bits & 0x00800000u) { - event_category_ = from.event_category_; + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + _this->_impl_.event_category_ = from._impl_.event_category_; } - _has_bits_[2] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_.Or(from._impl_._has_bits_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SharingLog::CopyFrom(const SharingLog& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog) + // @@protoc_insertion_point(class_specific_copy_from_start:nearby.sharing.analytics.proto.SharingLog) if (&from == this) return; Clear(); MergeFrom(from); } -bool SharingLog::IsInitialized() const { - return true; -} -void SharingLog::InternalSwap(SharingLog* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SharingLog::InternalSwap(SharingLog* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(_has_bits_[1], other->_has_bits_[1]); - swap(_has_bits_[2], other->_has_bits_[2]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &version_, lhs_arena, - &other->version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &files_migration_phase_, lhs_arena, - &other->files_migration_phase_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &app_version_, lhs_arena, - &other->app_version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharingLog, event_category_) - + sizeof(SharingLog::event_category_) - - PROTOBUF_FIELD_OFFSET(SharingLog, unknown_event_)>( - reinterpret_cast(&unknown_event_), - reinterpret_cast(&other->unknown_event_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); + swap(_impl_._has_bits_[2], other->_impl_._has_bits_[2]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.log_source_) + + sizeof(SharingLog::_impl_.log_source_) + - PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.unknown_event_)>( + reinterpret_cast(&_impl_.unknown_event_), + reinterpret_cast(&other->_impl_.unknown_event_)); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.files_migration_phase_, &other->_impl_.files_migration_phase_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_version_, &other->_impl_.app_version_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.event_category_) + + sizeof(SharingLog::_impl_.event_category_) + - PROTOBUF_FIELD_OFFSET(SharingLog, _impl_.dismiss_fast_initialization_)>( + reinterpret_cast(&_impl_.dismiss_fast_initialization_), + reinterpret_cast(&other->_impl_.dismiss_fast_initialization_)); } -std::string SharingLog::GetTypeName() const { - return "nearby.sharing.analytics.proto.SharingLog"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace proto } // namespace analytics } // namespace sharing } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AppInfo* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AppInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AppInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SetAccount* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SetAccount >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SetAccount >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SetVisibility >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SetVisibility >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_EventMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_EventMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CancelConnection >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CancelConnection >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AddContact* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AddContact >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AddContact >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_RemoveContact >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_RemoveContact >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapHelp* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapHelp >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapHelp >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapFeedback >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapFeedback >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TapQrCode >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TapQrCode >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_AppCrash* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AppCrash >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_AppCrash >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SetupWizard >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SetupWizard >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::sharing::analytics::proto::SharingLog* Arena::CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::sharing::analytics::proto::SharingLog >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.h b/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.h index 05586d57..e4bc80b0 100644 --- a/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.h +++ b/compiled_proto/sharing/proto/analytics/nearby_sharing_log.pb.h @@ -1,462 +1,485 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: sharing/proto/analytics/nearby_sharing_log.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto +#ifndef sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto_2epb_2eh +#define sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019005 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +#include "google/protobuf/duration.pb.h" #include "proto/sharing_enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[92] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; namespace nearby { namespace sharing { namespace analytics { namespace proto { +enum SharingLog_FileAttachment_Type : int; +extern const uint32_t SharingLog_FileAttachment_Type_internal_data_[]; +enum SharingLog_QrCodeOpenedInWebClient_ClientPlatform : int; +extern const uint32_t SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_[]; +enum SharingLog_RpcCallStatus_RpcDirection : int; +extern const uint32_t SharingLog_RpcCallStatus_RpcDirection_internal_data_[]; +enum SharingLog_TextAttachment_Type : int; +extern const uint32_t SharingLog_TextAttachment_Type_internal_data_[]; class SharingLog; struct SharingLogDefaultTypeInternal; extern SharingLogDefaultTypeInternal _SharingLog_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<42> SharingLog_class_data_; class SharingLog_AcceptAgreements; struct SharingLog_AcceptAgreementsDefaultTypeInternal; extern SharingLog_AcceptAgreementsDefaultTypeInternal _SharingLog_AcceptAgreements_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_AcceptAgreements_class_data_; class SharingLog_AcceptFastInitialization; struct SharingLog_AcceptFastInitializationDefaultTypeInternal; extern SharingLog_AcceptFastInitializationDefaultTypeInternal _SharingLog_AcceptFastInitialization_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_AcceptFastInitialization_class_data_; class SharingLog_AddContact; struct SharingLog_AddContactDefaultTypeInternal; extern SharingLog_AddContactDefaultTypeInternal _SharingLog_AddContact_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<53> SharingLog_AddContact_class_data_; class SharingLog_AddQuickSettingsTile; struct SharingLog_AddQuickSettingsTileDefaultTypeInternal; extern SharingLog_AddQuickSettingsTileDefaultTypeInternal _SharingLog_AddQuickSettingsTile_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_AddQuickSettingsTile_class_data_; class SharingLog_AdvertiseDevicePresenceEnd; struct SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal; extern SharingLog_AdvertiseDevicePresenceEndDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_AdvertiseDevicePresenceEnd_class_data_; class SharingLog_AdvertiseDevicePresenceStart; struct SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal; extern SharingLog_AdvertiseDevicePresenceStartDefaultTypeInternal _SharingLog_AdvertiseDevicePresenceStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<71> SharingLog_AdvertiseDevicePresenceStart_class_data_; class SharingLog_AppAttachment; struct SharingLog_AppAttachmentDefaultTypeInternal; extern SharingLog_AppAttachmentDefaultTypeInternal _SharingLog_AppAttachment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_AppAttachment_class_data_; class SharingLog_AppCrash; struct SharingLog_AppCrashDefaultTypeInternal; extern SharingLog_AppCrashDefaultTypeInternal _SharingLog_AppCrash_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<51> SharingLog_AppCrash_class_data_; class SharingLog_AppInfo; struct SharingLog_AppInfoDefaultTypeInternal; extern SharingLog_AppInfoDefaultTypeInternal _SharingLog_AppInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<50> SharingLog_AppInfo_class_data_; class SharingLog_AttachmentsInfo; struct SharingLog_AttachmentsInfoDefaultTypeInternal; extern SharingLog_AttachmentsInfoDefaultTypeInternal _SharingLog_AttachmentsInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_AttachmentsInfo_class_data_; class SharingLog_AutoDismissFastInitialization; struct SharingLog_AutoDismissFastInitializationDefaultTypeInternal; extern SharingLog_AutoDismissFastInitializationDefaultTypeInternal _SharingLog_AutoDismissFastInitialization_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_AutoDismissFastInitialization_class_data_; class SharingLog_CancelConnection; struct SharingLog_CancelConnectionDefaultTypeInternal; extern SharingLog_CancelConnectionDefaultTypeInternal _SharingLog_CancelConnection_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CancelConnection_class_data_; class SharingLog_CancelReceivingAttachments; struct SharingLog_CancelReceivingAttachmentsDefaultTypeInternal; extern SharingLog_CancelReceivingAttachmentsDefaultTypeInternal _SharingLog_CancelReceivingAttachments_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_CancelReceivingAttachments_class_data_; class SharingLog_CancelSendingAttachments; struct SharingLog_CancelSendingAttachmentsDefaultTypeInternal; extern SharingLog_CancelSendingAttachmentsDefaultTypeInternal _SharingLog_CancelSendingAttachments_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_CancelSendingAttachments_class_data_; class SharingLog_CloudAttachmentInfo; struct SharingLog_CloudAttachmentInfoDefaultTypeInternal; extern SharingLog_CloudAttachmentInfoDefaultTypeInternal _SharingLog_CloudAttachmentInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_CloudAttachmentInfo_class_data_; class SharingLog_CloudCreateSharingRequest; struct SharingLog_CloudCreateSharingRequestDefaultTypeInternal; extern SharingLog_CloudCreateSharingRequestDefaultTypeInternal _SharingLog_CloudCreateSharingRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_CloudCreateSharingRequest_class_data_; class SharingLog_CloudDownloadEnd; struct SharingLog_CloudDownloadEndDefaultTypeInternal; extern SharingLog_CloudDownloadEndDefaultTypeInternal _SharingLog_CloudDownloadEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudDownloadEnd_class_data_; class SharingLog_CloudDownloadStart; struct SharingLog_CloudDownloadStartDefaultTypeInternal; extern SharingLog_CloudDownloadStartDefaultTypeInternal _SharingLog_CloudDownloadStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_CloudDownloadStart_class_data_; class SharingLog_CloudRegisterReceiver; struct SharingLog_CloudRegisterReceiverDefaultTypeInternal; extern SharingLog_CloudRegisterReceiverDefaultTypeInternal _SharingLog_CloudRegisterReceiver_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudRegisterReceiver_class_data_; class SharingLog_CloudSharingRpcResult; struct SharingLog_CloudSharingRpcResultDefaultTypeInternal; extern SharingLog_CloudSharingRpcResultDefaultTypeInternal _SharingLog_CloudSharingRpcResult_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudSharingRpcResult_class_data_; class SharingLog_CloudUploadEnd; struct SharingLog_CloudUploadEndDefaultTypeInternal; extern SharingLog_CloudUploadEndDefaultTypeInternal _SharingLog_CloudUploadEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_CloudUploadEnd_class_data_; class SharingLog_CloudUploadStart; struct SharingLog_CloudUploadStartDefaultTypeInternal; extern SharingLog_CloudUploadStartDefaultTypeInternal _SharingLog_CloudUploadStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudUploadStart_class_data_; class SharingLog_DeclineAgreements; struct SharingLog_DeclineAgreementsDefaultTypeInternal; extern SharingLog_DeclineAgreementsDefaultTypeInternal _SharingLog_DeclineAgreements_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<60> SharingLog_DeclineAgreements_class_data_; class SharingLog_DecryptCertificateFailure; struct SharingLog_DecryptCertificateFailureDefaultTypeInternal; extern SharingLog_DecryptCertificateFailureDefaultTypeInternal _SharingLog_DecryptCertificateFailure_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DecryptCertificateFailure_class_data_; class SharingLog_DefaultOptIn; struct SharingLog_DefaultOptInDefaultTypeInternal; extern SharingLog_DefaultOptInDefaultTypeInternal _SharingLog_DefaultOptIn_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_DefaultOptIn_class_data_; class SharingLog_DescribeAttachments; struct SharingLog_DescribeAttachmentsDefaultTypeInternal; extern SharingLog_DescribeAttachmentsDefaultTypeInternal _SharingLog_DescribeAttachments_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DescribeAttachments_class_data_; class SharingLog_DeviceSettings; struct SharingLog_DeviceSettingsDefaultTypeInternal; extern SharingLog_DeviceSettingsDefaultTypeInternal _SharingLog_DeviceSettings_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_DeviceSettings_class_data_; class SharingLog_DiscoverShareTarget; struct SharingLog_DiscoverShareTargetDefaultTypeInternal; extern SharingLog_DiscoverShareTargetDefaultTypeInternal _SharingLog_DiscoverShareTarget_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DiscoverShareTarget_class_data_; class SharingLog_DismissFastInitialization; struct SharingLog_DismissFastInitializationDefaultTypeInternal; extern SharingLog_DismissFastInitializationDefaultTypeInternal _SharingLog_DismissFastInitialization_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DismissFastInitialization_class_data_; class SharingLog_DismissPrivacyNotification; struct SharingLog_DismissPrivacyNotificationDefaultTypeInternal; extern SharingLog_DismissPrivacyNotificationDefaultTypeInternal _SharingLog_DismissPrivacyNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DismissPrivacyNotification_class_data_; class SharingLog_DisplayPhoneConsent; struct SharingLog_DisplayPhoneConsentDefaultTypeInternal; extern SharingLog_DisplayPhoneConsentDefaultTypeInternal _SharingLog_DisplayPhoneConsent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DisplayPhoneConsent_class_data_; class SharingLog_DisplayPrivacyNotification; struct SharingLog_DisplayPrivacyNotificationDefaultTypeInternal; extern SharingLog_DisplayPrivacyNotificationDefaultTypeInternal _SharingLog_DisplayPrivacyNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DisplayPrivacyNotification_class_data_; class SharingLog_EnableNearbySharing; struct SharingLog_EnableNearbySharingDefaultTypeInternal; extern SharingLog_EnableNearbySharingDefaultTypeInternal _SharingLog_EnableNearbySharing_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EnableNearbySharing_class_data_; class SharingLog_EstablishConnection; struct SharingLog_EstablishConnectionDefaultTypeInternal; extern SharingLog_EstablishConnectionDefaultTypeInternal _SharingLog_EstablishConnection_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EstablishConnection_class_data_; class SharingLog_EventMetadata; struct SharingLog_EventMetadataDefaultTypeInternal; extern SharingLog_EventMetadataDefaultTypeInternal _SharingLog_EventMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_EventMetadata_class_data_; class SharingLog_FastInitDiscoverDevice; struct SharingLog_FastInitDiscoverDeviceDefaultTypeInternal; extern SharingLog_FastInitDiscoverDeviceDefaultTypeInternal _SharingLog_FastInitDiscoverDevice_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_FastInitDiscoverDevice_class_data_; class SharingLog_FastShareServerResponse; struct SharingLog_FastShareServerResponseDefaultTypeInternal; extern SharingLog_FastShareServerResponseDefaultTypeInternal _SharingLog_FastShareServerResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_FastShareServerResponse_class_data_; class SharingLog_FileAttachment; struct SharingLog_FileAttachmentDefaultTypeInternal; extern SharingLog_FileAttachmentDefaultTypeInternal _SharingLog_FileAttachment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_FileAttachment_class_data_; class SharingLog_HatsJointEvent; struct SharingLog_HatsJointEventDefaultTypeInternal; extern SharingLog_HatsJointEventDefaultTypeInternal _SharingLog_HatsJointEvent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_HatsJointEvent_class_data_; class SharingLog_HighQualityMediumSetup; struct SharingLog_HighQualityMediumSetupDefaultTypeInternal; extern SharingLog_HighQualityMediumSetupDefaultTypeInternal _SharingLog_HighQualityMediumSetup_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_HighQualityMediumSetup_class_data_; class SharingLog_InstallAPKStatus; struct SharingLog_InstallAPKStatusDefaultTypeInternal; extern SharingLog_InstallAPKStatusDefaultTypeInternal _SharingLog_InstallAPKStatus_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_InstallAPKStatus_class_data_; class SharingLog_LaunchActivity; struct SharingLog_LaunchActivityDefaultTypeInternal; extern SharingLog_LaunchActivityDefaultTypeInternal _SharingLog_LaunchActivity_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_LaunchActivity_class_data_; class SharingLog_LaunchConsent; struct SharingLog_LaunchConsentDefaultTypeInternal; extern SharingLog_LaunchConsentDefaultTypeInternal _SharingLog_LaunchConsent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_LaunchConsent_class_data_; class SharingLog_LaunchPhoneConsent; struct SharingLog_LaunchPhoneConsentDefaultTypeInternal; extern SharingLog_LaunchPhoneConsentDefaultTypeInternal _SharingLog_LaunchPhoneConsent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_LaunchPhoneConsent_class_data_; class SharingLog_LaunchSetupActivity; struct SharingLog_LaunchSetupActivityDefaultTypeInternal; extern SharingLog_LaunchSetupActivityDefaultTypeInternal _SharingLog_LaunchSetupActivity_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_LaunchSetupActivity_class_data_; class SharingLog_OpenReceivedAttachments; struct SharingLog_OpenReceivedAttachmentsDefaultTypeInternal; extern SharingLog_OpenReceivedAttachmentsDefaultTypeInternal _SharingLog_OpenReceivedAttachments_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_OpenReceivedAttachments_class_data_; class SharingLog_ParsingFailedEndpointId; struct SharingLog_ParsingFailedEndpointIdDefaultTypeInternal; extern SharingLog_ParsingFailedEndpointIdDefaultTypeInternal _SharingLog_ParsingFailedEndpointId_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ParsingFailedEndpointId_class_data_; class SharingLog_PreferencesUsage; struct SharingLog_PreferencesUsageDefaultTypeInternal; extern SharingLog_PreferencesUsageDefaultTypeInternal _SharingLog_PreferencesUsage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_PreferencesUsage_class_data_; class SharingLog_ProcessReceivedAttachmentsEnd; struct SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal; extern SharingLog_ProcessReceivedAttachmentsEndDefaultTypeInternal _SharingLog_ProcessReceivedAttachmentsEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ProcessReceivedAttachmentsEnd_class_data_; class SharingLog_QrCodeLinkShown; struct SharingLog_QrCodeLinkShownDefaultTypeInternal; extern SharingLog_QrCodeLinkShownDefaultTypeInternal _SharingLog_QrCodeLinkShown_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_QrCodeLinkShown_class_data_; class SharingLog_QrCodeOpenedInWebClient; struct SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal; extern SharingLog_QrCodeOpenedInWebClientDefaultTypeInternal _SharingLog_QrCodeOpenedInWebClient_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_QrCodeOpenedInWebClient_class_data_; class SharingLog_ReceiveAttachmentsEnd; struct SharingLog_ReceiveAttachmentsEndDefaultTypeInternal; extern SharingLog_ReceiveAttachmentsEndDefaultTypeInternal _SharingLog_ReceiveAttachmentsEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_ReceiveAttachmentsEnd_class_data_; class SharingLog_ReceiveAttachmentsStart; struct SharingLog_ReceiveAttachmentsStartDefaultTypeInternal; extern SharingLog_ReceiveAttachmentsStartDefaultTypeInternal _SharingLog_ReceiveAttachmentsStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ReceiveAttachmentsStart_class_data_; class SharingLog_ReceiveFastInitialization; struct SharingLog_ReceiveFastInitializationDefaultTypeInternal; extern SharingLog_ReceiveFastInitializationDefaultTypeInternal _SharingLog_ReceiveFastInitialization_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_ReceiveFastInitialization_class_data_; class SharingLog_ReceiveIntroduction; struct SharingLog_ReceiveIntroductionDefaultTypeInternal; extern SharingLog_ReceiveIntroductionDefaultTypeInternal _SharingLog_ReceiveIntroduction_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_ReceiveIntroduction_class_data_; class SharingLog_ReceivePreviews; struct SharingLog_ReceivePreviewsDefaultTypeInternal; extern SharingLog_ReceivePreviewsDefaultTypeInternal _SharingLog_ReceivePreviews_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ReceivePreviews_class_data_; class SharingLog_RemoveContact; struct SharingLog_RemoveContactDefaultTypeInternal; extern SharingLog_RemoveContactDefaultTypeInternal _SharingLog_RemoveContact_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RemoveContact_class_data_; class SharingLog_RemoveQuickSettingsTile; struct SharingLog_RemoveQuickSettingsTileDefaultTypeInternal; extern SharingLog_RemoveQuickSettingsTileDefaultTypeInternal _SharingLog_RemoveQuickSettingsTile_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_RemoveQuickSettingsTile_class_data_; class SharingLog_RequestSettingPermissions; struct SharingLog_RequestSettingPermissionsDefaultTypeInternal; extern SharingLog_RequestSettingPermissionsDefaultTypeInternal _SharingLog_RequestSettingPermissions_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_RequestSettingPermissions_class_data_; class SharingLog_RespondToIntroduction; struct SharingLog_RespondToIntroductionDefaultTypeInternal; extern SharingLog_RespondToIntroductionDefaultTypeInternal _SharingLog_RespondToIntroduction_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_RespondToIntroduction_class_data_; class SharingLog_RpcCallStatus; struct SharingLog_RpcCallStatusDefaultTypeInternal; extern SharingLog_RpcCallStatusDefaultTypeInternal _SharingLog_RpcCallStatus_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RpcCallStatus_class_data_; class SharingLog_ScanForShareTargetsEnd; struct SharingLog_ScanForShareTargetsEndDefaultTypeInternal; extern SharingLog_ScanForShareTargetsEndDefaultTypeInternal _SharingLog_ScanForShareTargetsEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ScanForShareTargetsEnd_class_data_; class SharingLog_ScanForShareTargetsStart; struct SharingLog_ScanForShareTargetsStartDefaultTypeInternal; extern SharingLog_ScanForShareTargetsStartDefaultTypeInternal _SharingLog_ScanForShareTargetsStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_ScanForShareTargetsStart_class_data_; class SharingLog_SendAttachmentsEnd; struct SharingLog_SendAttachmentsEndDefaultTypeInternal; extern SharingLog_SendAttachmentsEndDefaultTypeInternal _SharingLog_SendAttachmentsEnd_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_SendAttachmentsEnd_class_data_; class SharingLog_SendAttachmentsStart; struct SharingLog_SendAttachmentsStartDefaultTypeInternal; extern SharingLog_SendAttachmentsStartDefaultTypeInternal _SharingLog_SendAttachmentsStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_SendAttachmentsStart_class_data_; class SharingLog_SendDesktopNotification; struct SharingLog_SendDesktopNotificationDefaultTypeInternal; extern SharingLog_SendDesktopNotificationDefaultTypeInternal _SharingLog_SendDesktopNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_SendDesktopNotification_class_data_; class SharingLog_SendDesktopTransferEvent; struct SharingLog_SendDesktopTransferEventDefaultTypeInternal; extern SharingLog_SendDesktopTransferEventDefaultTypeInternal _SharingLog_SendDesktopTransferEvent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_SendDesktopTransferEvent_class_data_; class SharingLog_SendFastInitialization; struct SharingLog_SendFastInitializationDefaultTypeInternal; extern SharingLog_SendFastInitializationDefaultTypeInternal _SharingLog_SendFastInitialization_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_SendFastInitialization_class_data_; class SharingLog_SendIntroduction; struct SharingLog_SendIntroductionDefaultTypeInternal; extern SharingLog_SendIntroductionDefaultTypeInternal _SharingLog_SendIntroduction_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_SendIntroduction_class_data_; class SharingLog_SendStart; struct SharingLog_SendStartDefaultTypeInternal; extern SharingLog_SendStartDefaultTypeInternal _SharingLog_SendStart_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<52> SharingLog_SendStart_class_data_; class SharingLog_SetAccount; struct SharingLog_SetAccountDefaultTypeInternal; extern SharingLog_SetAccountDefaultTypeInternal _SharingLog_SetAccount_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<53> SharingLog_SetAccount_class_data_; class SharingLog_SetDataUsage; struct SharingLog_SetDataUsageDefaultTypeInternal; extern SharingLog_SetDataUsageDefaultTypeInternal _SharingLog_SetDataUsage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_SetDataUsage_class_data_; class SharingLog_SetDeviceName; struct SharingLog_SetDeviceNameDefaultTypeInternal; extern SharingLog_SetDeviceNameDefaultTypeInternal _SharingLog_SetDeviceName_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetDeviceName_class_data_; class SharingLog_SetVisibility; struct SharingLog_SetVisibilityDefaultTypeInternal; extern SharingLog_SetVisibilityDefaultTypeInternal _SharingLog_SetVisibility_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetVisibility_class_data_; class SharingLog_SetupWizard; struct SharingLog_SetupWizardDefaultTypeInternal; extern SharingLog_SetupWizardDefaultTypeInternal _SharingLog_SetupWizard_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<54> SharingLog_SetupWizard_class_data_; class SharingLog_ShareTargetInfo; struct SharingLog_ShareTargetInfoDefaultTypeInternal; extern SharingLog_ShareTargetInfoDefaultTypeInternal _SharingLog_ShareTargetInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ShareTargetInfo_class_data_; class SharingLog_ShowAllowPermissionAutoAccess; struct SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal; extern SharingLog_ShowAllowPermissionAutoAccessDefaultTypeInternal _SharingLog_ShowAllowPermissionAutoAccess_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ShowAllowPermissionAutoAccess_class_data_; class SharingLog_ShowWaitingForAccept; struct SharingLog_ShowWaitingForAcceptDefaultTypeInternal; extern SharingLog_ShowWaitingForAcceptDefaultTypeInternal _SharingLog_ShowWaitingForAccept_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_ShowWaitingForAccept_class_data_; class SharingLog_StartQrCodeSession; struct SharingLog_StartQrCodeSessionDefaultTypeInternal; extern SharingLog_StartQrCodeSessionDefaultTypeInternal _SharingLog_StartQrCodeSession_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_StartQrCodeSession_class_data_; class SharingLog_StreamAttachment; struct SharingLog_StreamAttachmentDefaultTypeInternal; extern SharingLog_StreamAttachmentDefaultTypeInternal _SharingLog_StreamAttachment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_StreamAttachment_class_data_; class SharingLog_TapFeedback; struct SharingLog_TapFeedbackDefaultTypeInternal; extern SharingLog_TapFeedbackDefaultTypeInternal _SharingLog_TapFeedback_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<54> SharingLog_TapFeedback_class_data_; class SharingLog_TapHelp; struct SharingLog_TapHelpDefaultTypeInternal; extern SharingLog_TapHelpDefaultTypeInternal _SharingLog_TapHelp_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<50> SharingLog_TapHelp_class_data_; class SharingLog_TapPrivacyNotification; struct SharingLog_TapPrivacyNotificationDefaultTypeInternal; extern SharingLog_TapPrivacyNotificationDefaultTypeInternal _SharingLog_TapPrivacyNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_TapPrivacyNotification_class_data_; class SharingLog_TapQrCode; struct SharingLog_TapQrCodeDefaultTypeInternal; extern SharingLog_TapQrCodeDefaultTypeInternal _SharingLog_TapQrCode_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<52> SharingLog_TapQrCode_class_data_; class SharingLog_TapQuickSettingsFileShare; struct SharingLog_TapQuickSettingsFileShareDefaultTypeInternal; extern SharingLog_TapQuickSettingsFileShareDefaultTypeInternal _SharingLog_TapQuickSettingsFileShare_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_TapQuickSettingsFileShare_class_data_; class SharingLog_TapQuickSettingsTile; struct SharingLog_TapQuickSettingsTileDefaultTypeInternal; extern SharingLog_TapQuickSettingsTileDefaultTypeInternal _SharingLog_TapQuickSettingsTile_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_TapQuickSettingsTile_class_data_; class SharingLog_TextAttachment; struct SharingLog_TextAttachmentDefaultTypeInternal; extern SharingLog_TextAttachmentDefaultTypeInternal _SharingLog_TextAttachment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_TextAttachment_class_data_; class SharingLog_ToggleShowNotification; struct SharingLog_ToggleShowNotificationDefaultTypeInternal; extern SharingLog_ToggleShowNotificationDefaultTypeInternal _SharingLog_ToggleShowNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ToggleShowNotification_class_data_; class SharingLog_UnknownEvent; struct SharingLog_UnknownEventDefaultTypeInternal; extern SharingLog_UnknownEventDefaultTypeInternal _SharingLog_UnknownEvent_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_UnknownEvent_class_data_; class SharingLog_VerifyAPKStatus; struct SharingLog_VerifyAPKStatusDefaultTypeInternal; extern SharingLog_VerifyAPKStatusDefaultTypeInternal _SharingLog_VerifyAPKStatus_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_VerifyAPKStatus_class_data_; class SharingLog_WifiCredentialsAttachment; struct SharingLog_WifiCredentialsAttachmentDefaultTypeInternal; extern SharingLog_WifiCredentialsAttachmentDefaultTypeInternal _SharingLog_WifiCredentialsAttachment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_WifiCredentialsAttachment_class_data_; } // namespace proto } // namespace analytics } // namespace sharing } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::sharing::analytics::proto::SharingLog* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AddContact* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AddContact>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AppCrash* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AppCrash>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AppInfo* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AppInfo>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchSetupActivity>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SendStart* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendStart>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SetAccount* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetAccount>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapHelp* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapHelp>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>(Arena*); -template<> ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* Arena::CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type_internal_data_> + internal::EnumTraitsImpl::value<::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type>; +template <> +internal::EnumTraitsT<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_> + internal::EnumTraitsImpl::value<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform>; +template <> +internal::EnumTraitsT<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection_internal_data_> + internal::EnumTraitsImpl::value<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection>; +template <> +internal::EnumTraitsT<::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type_internal_data_> + internal::EnumTraitsImpl::value<::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type>; +} // namespace protobuf +} // namespace google + namespace nearby { namespace sharing { namespace analytics { namespace proto { - enum SharingLog_TextAttachment_Type : int { SharingLog_TextAttachment_Type_UNKNOWN_TEXT_TYPE = 0, SharingLog_TextAttachment_Type_URL = 1, SharingLog_TextAttachment_Type_ADDRESS = 2, - SharingLog_TextAttachment_Type_PHONE_NUMBER = 3 + SharingLog_TextAttachment_Type_PHONE_NUMBER = 3, }; -bool SharingLog_TextAttachment_Type_IsValid(int value); -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment_Type_Type_MIN = SharingLog_TextAttachment_Type_UNKNOWN_TEXT_TYPE; -constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment_Type_Type_MAX = SharingLog_TextAttachment_Type_PHONE_NUMBER; -constexpr int SharingLog_TextAttachment_Type_Type_ARRAYSIZE = SharingLog_TextAttachment_Type_Type_MAX + 1; -const std::string& SharingLog_TextAttachment_Type_Name(SharingLog_TextAttachment_Type value); -template -inline const std::string& SharingLog_TextAttachment_Type_Name(T enum_t_value) { +extern const uint32_t SharingLog_TextAttachment_Type_internal_data_[]; +inline constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment_Type_Type_MIN = + static_cast(0); +inline constexpr SharingLog_TextAttachment_Type SharingLog_TextAttachment_Type_Type_MAX = + static_cast(3); +inline bool SharingLog_TextAttachment_Type_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int SharingLog_TextAttachment_Type_Type_ARRAYSIZE = 3 + 1; +const ::std::string& SharingLog_TextAttachment_Type_Name(SharingLog_TextAttachment_Type value); +template +const ::std::string& SharingLog_TextAttachment_Type_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SharingLog_TextAttachment_Type_Name."); - return SharingLog_TextAttachment_Type_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return SharingLog_TextAttachment_Type_Name(static_cast(value)); } bool SharingLog_TextAttachment_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_TextAttachment_Type* value); + ::absl::string_view name, SharingLog_TextAttachment_Type* PROTOBUF_NONNULL value); enum SharingLog_FileAttachment_Type : int { SharingLog_FileAttachment_Type_UNKNOWN_FILE_TYPE = 0, SharingLog_FileAttachment_Type_IMAGE = 1, @@ -464,92 +487,113 @@ enum SharingLog_FileAttachment_Type : int { SharingLog_FileAttachment_Type_ANDROID_APP = 3, SharingLog_FileAttachment_Type_AUDIO = 4, SharingLog_FileAttachment_Type_DOCUMENT = 5, - SharingLog_FileAttachment_Type_CONTACT_CARD = 6 + SharingLog_FileAttachment_Type_CONTACT_CARD = 6, }; -bool SharingLog_FileAttachment_Type_IsValid(int value); -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment_Type_Type_MIN = SharingLog_FileAttachment_Type_UNKNOWN_FILE_TYPE; -constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment_Type_Type_MAX = SharingLog_FileAttachment_Type_CONTACT_CARD; -constexpr int SharingLog_FileAttachment_Type_Type_ARRAYSIZE = SharingLog_FileAttachment_Type_Type_MAX + 1; -const std::string& SharingLog_FileAttachment_Type_Name(SharingLog_FileAttachment_Type value); -template -inline const std::string& SharingLog_FileAttachment_Type_Name(T enum_t_value) { +extern const uint32_t SharingLog_FileAttachment_Type_internal_data_[]; +inline constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment_Type_Type_MIN = + static_cast(0); +inline constexpr SharingLog_FileAttachment_Type SharingLog_FileAttachment_Type_Type_MAX = + static_cast(6); +inline bool SharingLog_FileAttachment_Type_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int SharingLog_FileAttachment_Type_Type_ARRAYSIZE = 6 + 1; +const ::std::string& SharingLog_FileAttachment_Type_Name(SharingLog_FileAttachment_Type value); +template +const ::std::string& SharingLog_FileAttachment_Type_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SharingLog_FileAttachment_Type_Name."); - return SharingLog_FileAttachment_Type_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return SharingLog_FileAttachment_Type_Name(static_cast(value)); } bool SharingLog_FileAttachment_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_FileAttachment_Type* value); + ::absl::string_view name, SharingLog_FileAttachment_Type* PROTOBUF_NONNULL value); enum SharingLog_RpcCallStatus_RpcDirection : int { SharingLog_RpcCallStatus_RpcDirection_UNKNOWN_RPC_DIRECTION = 0, SharingLog_RpcCallStatus_RpcDirection_INCOMING = 1, - SharingLog_RpcCallStatus_RpcDirection_OUTGOING = 2 + SharingLog_RpcCallStatus_RpcDirection_OUTGOING = 2, }; -bool SharingLog_RpcCallStatus_RpcDirection_IsValid(int value); -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MIN = SharingLog_RpcCallStatus_RpcDirection_UNKNOWN_RPC_DIRECTION; -constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MAX = SharingLog_RpcCallStatus_RpcDirection_OUTGOING; -constexpr int SharingLog_RpcCallStatus_RpcDirection_RpcDirection_ARRAYSIZE = SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MAX + 1; -const std::string& SharingLog_RpcCallStatus_RpcDirection_Name(SharingLog_RpcCallStatus_RpcDirection value); -template -inline const std::string& SharingLog_RpcCallStatus_RpcDirection_Name(T enum_t_value) { +extern const uint32_t SharingLog_RpcCallStatus_RpcDirection_internal_data_[]; +inline constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MIN = + static_cast(0); +inline constexpr SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MAX = + static_cast(2); +inline bool SharingLog_RpcCallStatus_RpcDirection_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int SharingLog_RpcCallStatus_RpcDirection_RpcDirection_ARRAYSIZE = 2 + 1; +const ::std::string& SharingLog_RpcCallStatus_RpcDirection_Name(SharingLog_RpcCallStatus_RpcDirection value); +template +const ::std::string& SharingLog_RpcCallStatus_RpcDirection_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SharingLog_RpcCallStatus_RpcDirection_Name."); - return SharingLog_RpcCallStatus_RpcDirection_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to RpcDirection_Name()."); + return SharingLog_RpcCallStatus_RpcDirection_Name(static_cast(value)); } bool SharingLog_RpcCallStatus_RpcDirection_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_RpcCallStatus_RpcDirection* value); + ::absl::string_view name, SharingLog_RpcCallStatus_RpcDirection* PROTOBUF_NONNULL value); enum SharingLog_QrCodeOpenedInWebClient_ClientPlatform : int { SharingLog_QrCodeOpenedInWebClient_ClientPlatform_UNKNOWN_CLIENT_PLATFORM = 0, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_GENERIC = 1, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ANDROID = 2, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IOS = 3, SharingLog_QrCodeOpenedInWebClient_ClientPlatform_CHROME_OS = 4, - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_WINDOWS = 5 + SharingLog_QrCodeOpenedInWebClient_ClientPlatform_WINDOWS = 5, }; -bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(int value); -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MIN = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_UNKNOWN_CLIENT_PLATFORM; -constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MAX = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_WINDOWS; -constexpr int SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_ARRAYSIZE = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MAX + 1; -const std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); -template -inline const std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(T enum_t_value) { +extern const uint32_t SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_[]; +inline constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MIN = + static_cast(0); +inline constexpr SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MAX = + static_cast(5); +inline bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_ARRAYSIZE = 5 + 1; +const ::std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); +template +const ::std::string& SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name."); - return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to ClientPlatform_Name()."); + return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(static_cast(value)); } bool SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingLog_QrCodeOpenedInWebClient_ClientPlatform* value); + ::absl::string_view name, SharingLog_QrCodeOpenedInWebClient_ClientPlatform* PROTOBUF_NONNULL value); + // =================================================================== -class SharingLog_AppInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppInfo) */ { + +// ------------------------------------------------------------------- + +class SharingLog_WifiCredentialsAttachment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) */ { public: - inline SharingLog_AppInfo() : SharingLog_AppInfo(nullptr) {} - ~SharingLog_AppInfo() override; - explicit constexpr SharingLog_AppInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_WifiCredentialsAttachment() : SharingLog_WifiCredentialsAttachment(nullptr) {} + ~SharingLog_WifiCredentialsAttachment() PROTOBUF_FINAL; - SharingLog_AppInfo(const SharingLog_AppInfo& from); - SharingLog_AppInfo(SharingLog_AppInfo&& from) noexcept - : SharingLog_AppInfo() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_WifiCredentialsAttachment)); } +#endif - inline SharingLog_AppInfo& operator=(const SharingLog_AppInfo& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_WifiCredentialsAttachment(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_WifiCredentialsAttachment(const SharingLog_WifiCredentialsAttachment& from) : SharingLog_WifiCredentialsAttachment(nullptr, from) {} + inline SharingLog_WifiCredentialsAttachment(SharingLog_WifiCredentialsAttachment&& from) noexcept + : SharingLog_WifiCredentialsAttachment(nullptr, ::std::move(from)) {} + inline SharingLog_WifiCredentialsAttachment& operator=(const SharingLog_WifiCredentialsAttachment& from) { CopyFrom(from); return *this; } - inline SharingLog_AppInfo& operator=(SharingLog_AppInfo&& from) noexcept { + inline SharingLog_WifiCredentialsAttachment& operator=(SharingLog_WifiCredentialsAttachment&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -557,186 +601,10119 @@ class SharingLog_AppInfo final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_AppInfo& default_instance() { - return *internal_default_instance(); + static const SharingLog_WifiCredentialsAttachment& default_instance() { + return *reinterpret_cast( + &_SharingLog_WifiCredentialsAttachment_default_instance_); } - static inline const SharingLog_AppInfo* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AppInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SharingLog_AppInfo& a, SharingLog_AppInfo& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AppInfo* other) { + static constexpr int kIndexInFileMessages = 69; + friend void swap(SharingLog_WifiCredentialsAttachment& a, SharingLog_WifiCredentialsAttachment& b) { a.Swap(&b); } + inline void Swap(SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_AppInfo* other) { + void UnsafeArenaSwap(SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_AppInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AppInfo& from); - void MergeFrom(const SharingLog_AppInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_WifiCredentialsAttachment& from); + void MergeFrom(const SharingLog_WifiCredentialsAttachment& from) { SharingLog_WifiCredentialsAttachment::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AppInfo* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AppInfo"; - } - protected: - explicit SharingLog_AppInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment"; } + + explicit SharingLog_WifiCredentialsAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_WifiCredentialsAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_WifiCredentialsAttachment& from); + SharingLog_WifiCredentialsAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_WifiCredentialsAttachment&& from) noexcept + : SharingLog_WifiCredentialsAttachment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAppVersionFieldNumber = 1, - kAppLanguageFieldNumber = 2, - kUpdateTrackFieldNumber = 3, + kBatchIdFieldNumber = 2, + kSecurityTypeFieldNumber = 1, + kSourceTypeFieldNumber = 3, }; - // optional string app_version = 1; - bool has_app_version() const; - private: - bool _internal_has_app_version() const; - public: - void clear_app_version(); - const std::string& app_version() const; - template - void set_app_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_app_version(); - PROTOBUF_NODISCARD std::string* release_app_version(); - void set_allocated_app_version(std::string* app_version); - private: - const std::string& _internal_app_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_app_version(const std::string& value); - std::string* _internal_mutable_app_version(); - public: + // optional int64 batch_id = 2; + bool has_batch_id() const; + void clear_batch_id() ; + ::int64_t batch_id() const; + void set_batch_id(::int64_t value); - // optional string app_language = 2; - bool has_app_language() const; private: - bool _internal_has_app_language() const; - public: - void clear_app_language(); - const std::string& app_language() const; - template - void set_app_language(ArgT0&& arg0, ArgT... args); - std::string* mutable_app_language(); - PROTOBUF_NODISCARD std::string* release_app_language(); - void set_allocated_app_language(std::string* app_language); - private: - const std::string& _internal_app_language() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_app_language(const std::string& value); - std::string* _internal_mutable_app_language(); - public: + ::int64_t _internal_batch_id() const; + void _internal_set_batch_id(::int64_t value); - // optional string update_track = 3; - bool has_update_track() const; - private: - bool _internal_has_update_track() const; - public: - void clear_update_track(); - const std::string& update_track() const; - template - void set_update_track(ArgT0&& arg0, ArgT... args); - std::string* mutable_update_track(); - PROTOBUF_NODISCARD std::string* release_update_track(); - void set_allocated_update_track(std::string* update_track); - private: - const std::string& _internal_update_track() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_update_track(const std::string& value); - std::string* _internal_mutable_update_track(); public: + // optional int32 security_type = 1; + bool has_security_type() const; + void clear_security_type() ; + ::int32_t security_type() const; + void set_security_type(::int32_t value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppInfo) + private: + ::int32_t _internal_security_type() const; + void _internal_set_security_type(::int32_t value); + + public: + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + bool has_source_type() const; + void clear_source_type() ; + ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; + void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + private: + ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; + void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_language_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr update_track_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_WifiCredentialsAttachment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t batch_id_; + ::int32_t security_type_; + int source_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_WifiCredentialsAttachment_class_data_; // ------------------------------------------------------------------- -class SharingLog_DeviceSettings final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) */ { +class SharingLog_VerifyAPKStatus final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) */ { public: - inline SharingLog_DeviceSettings() : SharingLog_DeviceSettings(nullptr) {} - ~SharingLog_DeviceSettings() override; - explicit constexpr SharingLog_DeviceSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_VerifyAPKStatus() : SharingLog_VerifyAPKStatus(nullptr) {} + ~SharingLog_VerifyAPKStatus() PROTOBUF_FINAL; - SharingLog_DeviceSettings(const SharingLog_DeviceSettings& from); - SharingLog_DeviceSettings(SharingLog_DeviceSettings&& from) noexcept - : SharingLog_DeviceSettings() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_VerifyAPKStatus)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_VerifyAPKStatus(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_VerifyAPKStatus(const SharingLog_VerifyAPKStatus& from) : SharingLog_VerifyAPKStatus(nullptr, from) {} + inline SharingLog_VerifyAPKStatus(SharingLog_VerifyAPKStatus&& from) noexcept + : SharingLog_VerifyAPKStatus(nullptr, ::std::move(from)) {} + inline SharingLog_VerifyAPKStatus& operator=(const SharingLog_VerifyAPKStatus& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_VerifyAPKStatus& operator=(SharingLog_VerifyAPKStatus&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_VerifyAPKStatus& default_instance() { + return *reinterpret_cast( + &_SharingLog_VerifyAPKStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = 58; + friend void swap(SharingLog_VerifyAPKStatus& a, SharingLog_VerifyAPKStatus& b) { a.Swap(&b); } + inline void Swap(SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_VerifyAPKStatus& from); + void MergeFrom(const SharingLog_VerifyAPKStatus& from) { SharingLog_VerifyAPKStatus::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus"; } + + explicit SharingLog_VerifyAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_VerifyAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_VerifyAPKStatus& from); + SharingLog_VerifyAPKStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_VerifyAPKStatus&& from) noexcept + : SharingLog_VerifyAPKStatus(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatusFieldNumber = 1, + kSourceFieldNumber = 2, + }; + // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; + int status_size() const; + private: + int _internal_status_size() const; + + public: + void clear_status() ; + public: + ::location::nearby::proto::sharing::VerifyAPKStatus status(int index) const; + void set_status(int index, ::location::nearby::proto::sharing::VerifyAPKStatus value); + void add_status(::location::nearby::proto::sharing::VerifyAPKStatus value); + const ::google::protobuf::RepeatedField& status() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_status(); + + private: + const ::google::protobuf::RepeatedField& _internal_status() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_status(); + + public: + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + int source_size() const; + private: + int _internal_source_size() const; + + public: + void clear_source() ; + public: + ::location::nearby::proto::sharing::ApkSource source(int index) const; + void set_source(int index, ::location::nearby::proto::sharing::ApkSource value); + void add_source(::location::nearby::proto::sharing::ApkSource value); + const ::google::protobuf::RepeatedField& source() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_source(); + + private: + const ::google::protobuf::RepeatedField& _internal_source() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_source(); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_VerifyAPKStatus& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField status_; + ::google::protobuf::internal::CachedSize _status_cached_byte_size_; + ::google::protobuf::RepeatedField source_; + ::google::protobuf::internal::CachedSize _source_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_VerifyAPKStatus_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_UnknownEvent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) */ { + public: + inline SharingLog_UnknownEvent() : SharingLog_UnknownEvent(nullptr) {} + ~SharingLog_UnknownEvent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_UnknownEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_UnknownEvent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_UnknownEvent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_UnknownEvent(const SharingLog_UnknownEvent& from) : SharingLog_UnknownEvent(nullptr, from) {} + inline SharingLog_UnknownEvent(SharingLog_UnknownEvent&& from) noexcept + : SharingLog_UnknownEvent(nullptr, ::std::move(from)) {} + inline SharingLog_UnknownEvent& operator=(const SharingLog_UnknownEvent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_UnknownEvent& operator=(SharingLog_UnknownEvent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_UnknownEvent& default_instance() { + return *reinterpret_cast( + &_SharingLog_UnknownEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(SharingLog_UnknownEvent& a, SharingLog_UnknownEvent& b) { a.Swap(&b); } + inline void Swap(SharingLog_UnknownEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_UnknownEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_UnknownEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_UnknownEvent& from); + void MergeFrom(const SharingLog_UnknownEvent& from) { SharingLog_UnknownEvent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_UnknownEvent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.UnknownEvent"; } + + explicit SharingLog_UnknownEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_UnknownEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_UnknownEvent& from); + SharingLog_UnknownEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_UnknownEvent&& from) noexcept + : SharingLog_UnknownEvent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_UnknownEvent& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_UnknownEvent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ToggleShowNotification final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) */ { + public: + inline SharingLog_ToggleShowNotification() : SharingLog_ToggleShowNotification(nullptr) {} + ~SharingLog_ToggleShowNotification() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ToggleShowNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ToggleShowNotification)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ToggleShowNotification(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ToggleShowNotification(const SharingLog_ToggleShowNotification& from) : SharingLog_ToggleShowNotification(nullptr, from) {} + inline SharingLog_ToggleShowNotification(SharingLog_ToggleShowNotification&& from) noexcept + : SharingLog_ToggleShowNotification(nullptr, ::std::move(from)) {} + inline SharingLog_ToggleShowNotification& operator=(const SharingLog_ToggleShowNotification& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ToggleShowNotification& operator=(SharingLog_ToggleShowNotification&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ToggleShowNotification& default_instance() { + return *reinterpret_cast( + &_SharingLog_ToggleShowNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = 59; + friend void swap(SharingLog_ToggleShowNotification& a, SharingLog_ToggleShowNotification& b) { a.Swap(&b); } + inline void Swap(SharingLog_ToggleShowNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ToggleShowNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ToggleShowNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ToggleShowNotification& from); + void MergeFrom(const SharingLog_ToggleShowNotification& from) { SharingLog_ToggleShowNotification::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ToggleShowNotification* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification"; } + + explicit SharingLog_ToggleShowNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ToggleShowNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ToggleShowNotification& from); + SharingLog_ToggleShowNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ToggleShowNotification&& from) noexcept + : SharingLog_ToggleShowNotification(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPreviousStatusFieldNumber = 1, + kCurrentStatusFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; + bool has_previous_status() const; + void clear_previous_status() ; + ::location::nearby::proto::sharing::ShowNotificationStatus previous_status() const; + void set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value); + + private: + ::location::nearby::proto::sharing::ShowNotificationStatus _internal_previous_status() const; + void _internal_set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value); + + public: + // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; + bool has_current_status() const; + void clear_current_status() ; + ::location::nearby::proto::sharing::ShowNotificationStatus current_status() const; + void set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value); + + private: + ::location::nearby::proto::sharing::ShowNotificationStatus _internal_current_status() const; + void _internal_set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ToggleShowNotification& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int previous_status_; + int current_status_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ToggleShowNotification_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TextAttachment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TextAttachment) */ { + public: + inline SharingLog_TextAttachment() : SharingLog_TextAttachment(nullptr) {} + ~SharingLog_TextAttachment() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TextAttachment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TextAttachment)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TextAttachment(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TextAttachment(const SharingLog_TextAttachment& from) : SharingLog_TextAttachment(nullptr, from) {} + inline SharingLog_TextAttachment(SharingLog_TextAttachment&& from) noexcept + : SharingLog_TextAttachment(nullptr, ::std::move(from)) {} + inline SharingLog_TextAttachment& operator=(const SharingLog_TextAttachment& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TextAttachment& operator=(SharingLog_TextAttachment&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TextAttachment& default_instance() { + return *reinterpret_cast( + &_SharingLog_TextAttachment_default_instance_); + } + static constexpr int kIndexInFileMessages = 67; + friend void swap(SharingLog_TextAttachment& a, SharingLog_TextAttachment& b) { a.Swap(&b); } + inline void Swap(SharingLog_TextAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TextAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TextAttachment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TextAttachment& from); + void MergeFrom(const SharingLog_TextAttachment& from) { SharingLog_TextAttachment::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TextAttachment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TextAttachment"; } + + explicit SharingLog_TextAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TextAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TextAttachment& from); + SharingLog_TextAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TextAttachment&& from) noexcept + : SharingLog_TextAttachment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Type = SharingLog_TextAttachment_Type; + static constexpr Type UNKNOWN_TEXT_TYPE = SharingLog_TextAttachment_Type_UNKNOWN_TEXT_TYPE; + static constexpr Type URL = SharingLog_TextAttachment_Type_URL; + static constexpr Type ADDRESS = SharingLog_TextAttachment_Type_ADDRESS; + static constexpr Type PHONE_NUMBER = SharingLog_TextAttachment_Type_PHONE_NUMBER; + static inline bool Type_IsValid(int value) { + return SharingLog_TextAttachment_Type_IsValid(value); + } + static constexpr Type Type_MIN = SharingLog_TextAttachment_Type_Type_MIN; + static constexpr Type Type_MAX = SharingLog_TextAttachment_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = SharingLog_TextAttachment_Type_Type_ARRAYSIZE; + template + static inline const ::std::string& Type_Name(T value) { + return SharingLog_TextAttachment_Type_Name(value); + } + static inline bool Type_Parse( + ::absl::string_view name, Type* PROTOBUF_NONNULL value) { + return SharingLog_TextAttachment_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kSizeBytesFieldNumber = 2, + kTypeFieldNumber = 1, + kSourceTypeFieldNumber = 4, + kBatchIdFieldNumber = 3, + }; + // optional int64 size_bytes = 2; + bool has_size_bytes() const; + void clear_size_bytes() ; + ::int64_t size_bytes() const; + void set_size_bytes(::int64_t value); + + private: + ::int64_t _internal_size_bytes() const; + void _internal_set_size_bytes(::int64_t value); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; + bool has_type() const; + void clear_type() ; + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type type() const; + void set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value); + + private: + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type _internal_type() const; + void _internal_set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value); + + public: + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + bool has_source_type() const; + void clear_source_type() ; + ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; + void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + private: + ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; + void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + public: + // optional int64 batch_id = 3; + bool has_batch_id() const; + void clear_batch_id() ; + ::int64_t batch_id() const; + void set_batch_id(::int64_t value); + + private: + ::int64_t _internal_batch_id() const; + void _internal_set_batch_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TextAttachment) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TextAttachment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t size_bytes_; + int type_; + int source_type_; + ::int64_t batch_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_TextAttachment_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapQuickSettingsTile final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) */ { + public: + inline SharingLog_TapQuickSettingsTile() : SharingLog_TapQuickSettingsTile(nullptr) {} + ~SharingLog_TapQuickSettingsTile() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapQuickSettingsTile)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsTile(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapQuickSettingsTile(const SharingLog_TapQuickSettingsTile& from) : SharingLog_TapQuickSettingsTile(nullptr, from) {} + inline SharingLog_TapQuickSettingsTile(SharingLog_TapQuickSettingsTile&& from) noexcept + : SharingLog_TapQuickSettingsTile(nullptr, ::std::move(from)) {} + inline SharingLog_TapQuickSettingsTile& operator=(const SharingLog_TapQuickSettingsTile& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapQuickSettingsTile& operator=(SharingLog_TapQuickSettingsTile&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapQuickSettingsTile& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapQuickSettingsTile_default_instance_); + } + static constexpr int kIndexInFileMessages = 50; + friend void swap(SharingLog_TapQuickSettingsTile& a, SharingLog_TapQuickSettingsTile& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapQuickSettingsTile& from); + void MergeFrom(const SharingLog_TapQuickSettingsTile& from) { SharingLog_TapQuickSettingsTile::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile"; } + + explicit SharingLog_TapQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsTile& from); + SharingLog_TapQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapQuickSettingsTile&& from) noexcept + : SharingLog_TapQuickSettingsTile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapQuickSettingsTile& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_TapQuickSettingsTile_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapQuickSettingsFileShare final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) */ { + public: + inline SharingLog_TapQuickSettingsFileShare() : SharingLog_TapQuickSettingsFileShare(nullptr) {} + ~SharingLog_TapQuickSettingsFileShare() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapQuickSettingsFileShare)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapQuickSettingsFileShare(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapQuickSettingsFileShare(const SharingLog_TapQuickSettingsFileShare& from) : SharingLog_TapQuickSettingsFileShare(nullptr, from) {} + inline SharingLog_TapQuickSettingsFileShare(SharingLog_TapQuickSettingsFileShare&& from) noexcept + : SharingLog_TapQuickSettingsFileShare(nullptr, ::std::move(from)) {} + inline SharingLog_TapQuickSettingsFileShare& operator=(const SharingLog_TapQuickSettingsFileShare& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapQuickSettingsFileShare& operator=(SharingLog_TapQuickSettingsFileShare&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapQuickSettingsFileShare& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapQuickSettingsFileShare_default_instance_); + } + static constexpr int kIndexInFileMessages = 51; + friend void swap(SharingLog_TapQuickSettingsFileShare& a, SharingLog_TapQuickSettingsFileShare& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapQuickSettingsFileShare& from); + void MergeFrom(const SharingLog_TapQuickSettingsFileShare& from) { SharingLog_TapQuickSettingsFileShare::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare"; } + + explicit SharingLog_TapQuickSettingsFileShare(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapQuickSettingsFileShare(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQuickSettingsFileShare& from); + SharingLog_TapQuickSettingsFileShare( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapQuickSettingsFileShare&& from) noexcept + : SharingLog_TapQuickSettingsFileShare(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapQuickSettingsFileShare& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_TapQuickSettingsFileShare_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapQrCode final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQrCode) */ { + public: + inline SharingLog_TapQrCode() : SharingLog_TapQrCode(nullptr) {} + ~SharingLog_TapQrCode() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapQrCode* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapQrCode)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapQrCode(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapQrCode(const SharingLog_TapQrCode& from) : SharingLog_TapQrCode(nullptr, from) {} + inline SharingLog_TapQrCode(SharingLog_TapQrCode&& from) noexcept + : SharingLog_TapQrCode(nullptr, ::std::move(from)) {} + inline SharingLog_TapQrCode& operator=(const SharingLog_TapQrCode& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapQrCode& operator=(SharingLog_TapQrCode&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapQrCode& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapQrCode_default_instance_); + } + static constexpr int kIndexInFileMessages = 62; + friend void swap(SharingLog_TapQrCode& a, SharingLog_TapQrCode& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapQrCode* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapQrCode* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapQrCode* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapQrCode& from); + void MergeFrom(const SharingLog_TapQrCode& from) { SharingLog_TapQrCode::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapQrCode* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapQrCode"; } + + explicit SharingLog_TapQrCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapQrCode(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapQrCode& from); + SharingLog_TapQrCode( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapQrCode&& from) noexcept + : SharingLog_TapQrCode(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQrCode) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapQrCode& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<52> SharingLog_TapQrCode_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapPrivacyNotification final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) */ { + public: + inline SharingLog_TapPrivacyNotification() : SharingLog_TapPrivacyNotification(nullptr) {} + ~SharingLog_TapPrivacyNotification() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapPrivacyNotification)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapPrivacyNotification(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapPrivacyNotification(const SharingLog_TapPrivacyNotification& from) : SharingLog_TapPrivacyNotification(nullptr, from) {} + inline SharingLog_TapPrivacyNotification(SharingLog_TapPrivacyNotification&& from) noexcept + : SharingLog_TapPrivacyNotification(nullptr, ::std::move(from)) {} + inline SharingLog_TapPrivacyNotification& operator=(const SharingLog_TapPrivacyNotification& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapPrivacyNotification& operator=(SharingLog_TapPrivacyNotification&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapPrivacyNotification& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapPrivacyNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = 43; + friend void swap(SharingLog_TapPrivacyNotification& a, SharingLog_TapPrivacyNotification& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapPrivacyNotification& from); + void MergeFrom(const SharingLog_TapPrivacyNotification& from) { SharingLog_TapPrivacyNotification::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification"; } + + explicit SharingLog_TapPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapPrivacyNotification& from); + SharingLog_TapPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapPrivacyNotification&& from) noexcept + : SharingLog_TapPrivacyNotification(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapPrivacyNotification& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_TapPrivacyNotification_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapHelp final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapHelp) */ { + public: + inline SharingLog_TapHelp() : SharingLog_TapHelp(nullptr) {} + ~SharingLog_TapHelp() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapHelp* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapHelp)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapHelp(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapHelp(const SharingLog_TapHelp& from) : SharingLog_TapHelp(nullptr, from) {} + inline SharingLog_TapHelp(SharingLog_TapHelp&& from) noexcept + : SharingLog_TapHelp(nullptr, ::std::move(from)) {} + inline SharingLog_TapHelp& operator=(const SharingLog_TapHelp& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapHelp& operator=(SharingLog_TapHelp&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapHelp& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapHelp_default_instance_); + } + static constexpr int kIndexInFileMessages = 44; + friend void swap(SharingLog_TapHelp& a, SharingLog_TapHelp& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapHelp* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapHelp* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapHelp* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapHelp& from); + void MergeFrom(const SharingLog_TapHelp& from) { SharingLog_TapHelp::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapHelp* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapHelp"; } + + explicit SharingLog_TapHelp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapHelp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapHelp& from); + SharingLog_TapHelp( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapHelp&& from) noexcept + : SharingLog_TapHelp(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapHelp) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapHelp& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<50> SharingLog_TapHelp_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_TapFeedback final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapFeedback) */ { + public: + inline SharingLog_TapFeedback() : SharingLog_TapFeedback(nullptr) {} + ~SharingLog_TapFeedback() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_TapFeedback* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_TapFeedback)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_TapFeedback(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_TapFeedback(const SharingLog_TapFeedback& from) : SharingLog_TapFeedback(nullptr, from) {} + inline SharingLog_TapFeedback(SharingLog_TapFeedback&& from) noexcept + : SharingLog_TapFeedback(nullptr, ::std::move(from)) {} + inline SharingLog_TapFeedback& operator=(const SharingLog_TapFeedback& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_TapFeedback& operator=(SharingLog_TapFeedback&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_TapFeedback& default_instance() { + return *reinterpret_cast( + &_SharingLog_TapFeedback_default_instance_); + } + static constexpr int kIndexInFileMessages = 45; + friend void swap(SharingLog_TapFeedback& a, SharingLog_TapFeedback& b) { a.Swap(&b); } + inline void Swap(SharingLog_TapFeedback* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_TapFeedback* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_TapFeedback* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_TapFeedback& from); + void MergeFrom(const SharingLog_TapFeedback& from) { SharingLog_TapFeedback::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_TapFeedback* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.TapFeedback"; } + + explicit SharingLog_TapFeedback(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_TapFeedback(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_TapFeedback& from); + SharingLog_TapFeedback( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_TapFeedback&& from) noexcept + : SharingLog_TapFeedback(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapFeedback) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_TapFeedback& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<54> SharingLog_TapFeedback_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_StreamAttachment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) */ { + public: + inline SharingLog_StreamAttachment() : SharingLog_StreamAttachment(nullptr) {} + ~SharingLog_StreamAttachment() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_StreamAttachment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_StreamAttachment)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_StreamAttachment(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_StreamAttachment(const SharingLog_StreamAttachment& from) : SharingLog_StreamAttachment(nullptr, from) {} + inline SharingLog_StreamAttachment(SharingLog_StreamAttachment&& from) noexcept + : SharingLog_StreamAttachment(nullptr, ::std::move(from)) {} + inline SharingLog_StreamAttachment& operator=(const SharingLog_StreamAttachment& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_StreamAttachment& operator=(SharingLog_StreamAttachment&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_StreamAttachment& default_instance() { + return *reinterpret_cast( + &_SharingLog_StreamAttachment_default_instance_); + } + static constexpr int kIndexInFileMessages = 71; + friend void swap(SharingLog_StreamAttachment& a, SharingLog_StreamAttachment& b) { a.Swap(&b); } + inline void Swap(SharingLog_StreamAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_StreamAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_StreamAttachment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_StreamAttachment& from); + void MergeFrom(const SharingLog_StreamAttachment& from) { SharingLog_StreamAttachment::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_StreamAttachment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.StreamAttachment"; } + + explicit SharingLog_StreamAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_StreamAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_StreamAttachment& from); + SharingLog_StreamAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_StreamAttachment&& from) noexcept + : SharingLog_StreamAttachment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPackageNameFieldNumber = 1, + kBatchIdFieldNumber = 2, + kSourceTypeFieldNumber = 3, + }; + // optional string package_name = 1; + bool has_package_name() const; + void clear_package_name() ; + const ::std::string& package_name() const; + template + void set_package_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_package_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_package_name(); + void set_allocated_package_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_package_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_package_name(); + + public: + // optional int64 batch_id = 2; + bool has_batch_id() const; + void clear_batch_id() ; + ::int64_t batch_id() const; + void set_batch_id(::int64_t value); + + private: + ::int64_t _internal_batch_id() const; + void _internal_set_batch_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; + bool has_source_type() const; + void clear_source_type() ; + ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; + void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + private: + ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; + void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_StreamAttachment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr package_name_; + ::int64_t batch_id_; + int source_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_StreamAttachment_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_StartQrCodeSession final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) */ { + public: + inline SharingLog_StartQrCodeSession() : SharingLog_StartQrCodeSession(nullptr) {} + ~SharingLog_StartQrCodeSession() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_StartQrCodeSession* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_StartQrCodeSession)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_StartQrCodeSession(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_StartQrCodeSession(const SharingLog_StartQrCodeSession& from) : SharingLog_StartQrCodeSession(nullptr, from) {} + inline SharingLog_StartQrCodeSession(SharingLog_StartQrCodeSession&& from) noexcept + : SharingLog_StartQrCodeSession(nullptr, ::std::move(from)) {} + inline SharingLog_StartQrCodeSession& operator=(const SharingLog_StartQrCodeSession& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_StartQrCodeSession& operator=(SharingLog_StartQrCodeSession&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_StartQrCodeSession& default_instance() { + return *reinterpret_cast( + &_SharingLog_StartQrCodeSession_default_instance_); + } + static constexpr int kIndexInFileMessages = 80; + friend void swap(SharingLog_StartQrCodeSession& a, SharingLog_StartQrCodeSession& b) { a.Swap(&b); } + inline void Swap(SharingLog_StartQrCodeSession* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_StartQrCodeSession* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_StartQrCodeSession* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_StartQrCodeSession& from); + void MergeFrom(const SharingLog_StartQrCodeSession& from) { SharingLog_StartQrCodeSession::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_StartQrCodeSession* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession"; } + + explicit SharingLog_StartQrCodeSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_StartQrCodeSession(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_StartQrCodeSession& from); + SharingLog_StartQrCodeSession( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_StartQrCodeSession&& from) noexcept + : SharingLog_StartQrCodeSession(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_StartQrCodeSession& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_StartQrCodeSession_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ShowWaitingForAccept final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) */ { + public: + inline SharingLog_ShowWaitingForAccept() : SharingLog_ShowWaitingForAccept(nullptr) {} + ~SharingLog_ShowWaitingForAccept() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ShowWaitingForAccept)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ShowWaitingForAccept(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ShowWaitingForAccept(const SharingLog_ShowWaitingForAccept& from) : SharingLog_ShowWaitingForAccept(nullptr, from) {} + inline SharingLog_ShowWaitingForAccept(SharingLog_ShowWaitingForAccept&& from) noexcept + : SharingLog_ShowWaitingForAccept(nullptr, ::std::move(from)) {} + inline SharingLog_ShowWaitingForAccept& operator=(const SharingLog_ShowWaitingForAccept& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ShowWaitingForAccept& operator=(SharingLog_ShowWaitingForAccept&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ShowWaitingForAccept& default_instance() { + return *reinterpret_cast( + &_SharingLog_ShowWaitingForAccept_default_instance_); + } + static constexpr int kIndexInFileMessages = 77; + friend void swap(SharingLog_ShowWaitingForAccept& a, SharingLog_ShowWaitingForAccept& b) { a.Swap(&b); } + inline void Swap(SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ShowWaitingForAccept& from); + void MergeFrom(const SharingLog_ShowWaitingForAccept& from) { SharingLog_ShowWaitingForAccept::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept"; } + + explicit SharingLog_ShowWaitingForAccept(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ShowWaitingForAccept(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowWaitingForAccept& from); + SharingLog_ShowWaitingForAccept( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ShowWaitingForAccept&& from) noexcept + : SharingLog_ShowWaitingForAccept(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kButtonStatusFieldNumber = 1, + }; + // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; + bool has_button_status() const; + void clear_button_status() ; + ::location::nearby::proto::sharing::ButtonStatus button_status() const; + void set_button_status(::location::nearby::proto::sharing::ButtonStatus value); + + private: + ::location::nearby::proto::sharing::ButtonStatus _internal_button_status() const; + void _internal_set_button_status(::location::nearby::proto::sharing::ButtonStatus value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ShowWaitingForAccept& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int button_status_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_ShowWaitingForAccept_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ShowAllowPermissionAutoAccess final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) */ { + public: + inline SharingLog_ShowAllowPermissionAutoAccess() : SharingLog_ShowAllowPermissionAutoAccess(nullptr) {} + ~SharingLog_ShowAllowPermissionAutoAccess() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ShowAllowPermissionAutoAccess)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ShowAllowPermissionAutoAccess(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ShowAllowPermissionAutoAccess(const SharingLog_ShowAllowPermissionAutoAccess& from) : SharingLog_ShowAllowPermissionAutoAccess(nullptr, from) {} + inline SharingLog_ShowAllowPermissionAutoAccess(SharingLog_ShowAllowPermissionAutoAccess&& from) noexcept + : SharingLog_ShowAllowPermissionAutoAccess(nullptr, ::std::move(from)) {} + inline SharingLog_ShowAllowPermissionAutoAccess& operator=(const SharingLog_ShowAllowPermissionAutoAccess& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ShowAllowPermissionAutoAccess& operator=(SharingLog_ShowAllowPermissionAutoAccess&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ShowAllowPermissionAutoAccess& default_instance() { + return *reinterpret_cast( + &_SharingLog_ShowAllowPermissionAutoAccess_default_instance_); + } + static constexpr int kIndexInFileMessages = 61; + friend void swap(SharingLog_ShowAllowPermissionAutoAccess& a, SharingLog_ShowAllowPermissionAutoAccess& b) { a.Swap(&b); } + inline void Swap(SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ShowAllowPermissionAutoAccess& from); + void MergeFrom(const SharingLog_ShowAllowPermissionAutoAccess& from) { SharingLog_ShowAllowPermissionAutoAccess::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess"; } + + explicit SharingLog_ShowAllowPermissionAutoAccess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ShowAllowPermissionAutoAccess(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShowAllowPermissionAutoAccess& from); + SharingLog_ShowAllowPermissionAutoAccess( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ShowAllowPermissionAutoAccess&& from) noexcept + : SharingLog_ShowAllowPermissionAutoAccess(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActivityNameFieldNumber = 1, + kAllowedAutoAccessFieldNumber = 2, + kIsWifiMissingFieldNumber = 3, + kIsBtMissingFieldNumber = 4, + }; + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + bool has_activity_name() const; + void clear_activity_name() ; + ::location::nearby::proto::sharing::ActivityName activity_name() const; + void set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + private: + ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; + void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + public: + // optional bool allowed_auto_access = 2; + bool has_allowed_auto_access() const; + void clear_allowed_auto_access() ; + bool allowed_auto_access() const; + void set_allowed_auto_access(bool value); + + private: + bool _internal_allowed_auto_access() const; + void _internal_set_allowed_auto_access(bool value); + + public: + // optional bool is_wifi_missing = 3; + bool has_is_wifi_missing() const; + void clear_is_wifi_missing() ; + bool is_wifi_missing() const; + void set_is_wifi_missing(bool value); + + private: + bool _internal_is_wifi_missing() const; + void _internal_set_is_wifi_missing(bool value); + + public: + // optional bool is_bt_missing = 4; + bool has_is_bt_missing() const; + void clear_is_bt_missing() ; + bool is_bt_missing() const; + void set_is_bt_missing(bool value); + + private: + bool _internal_is_bt_missing() const; + void _internal_set_is_bt_missing(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ShowAllowPermissionAutoAccess& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int activity_name_; + bool allowed_auto_access_; + bool is_wifi_missing_; + bool is_bt_missing_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ShowAllowPermissionAutoAccess_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ShareTargetInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) */ { + public: + inline SharingLog_ShareTargetInfo() : SharingLog_ShareTargetInfo(nullptr) {} + ~SharingLog_ShareTargetInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ShareTargetInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ShareTargetInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ShareTargetInfo(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ShareTargetInfo(const SharingLog_ShareTargetInfo& from) : SharingLog_ShareTargetInfo(nullptr, from) {} + inline SharingLog_ShareTargetInfo(SharingLog_ShareTargetInfo&& from) noexcept + : SharingLog_ShareTargetInfo(nullptr, ::std::move(from)) {} + inline SharingLog_ShareTargetInfo& operator=(const SharingLog_ShareTargetInfo& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ShareTargetInfo& operator=(SharingLog_ShareTargetInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ShareTargetInfo& default_instance() { + return *reinterpret_cast( + &_SharingLog_ShareTargetInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 65; + friend void swap(SharingLog_ShareTargetInfo& a, SharingLog_ShareTargetInfo& b) { a.Swap(&b); } + inline void Swap(SharingLog_ShareTargetInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ShareTargetInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ShareTargetInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ShareTargetInfo& from); + void MergeFrom(const SharingLog_ShareTargetInfo& from) { SharingLog_ShareTargetInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ShareTargetInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo"; } + + explicit SharingLog_ShareTargetInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ShareTargetInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ShareTargetInfo& from); + SharingLog_ShareTargetInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ShareTargetInfo&& from) noexcept + : SharingLog_ShareTargetInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDeviceTypeFieldNumber = 1, + kOsTypeFieldNumber = 2, + kDeviceRelationshipFieldNumber = 3, + kHasMatchingQrCodeFieldNumber = 4, + kIsExternalFieldNumber = 5, + }; + // optional .location.nearby.proto.sharing.DeviceType device_type = 1; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::sharing::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::sharing::DeviceType value); + + private: + ::location::nearby::proto::sharing::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::sharing::DeviceType value); + + public: + // optional .location.nearby.proto.sharing.OSType os_type = 2; + bool has_os_type() const; + void clear_os_type() ; + ::location::nearby::proto::sharing::OSType os_type() const; + void set_os_type(::location::nearby::proto::sharing::OSType value); + + private: + ::location::nearby::proto::sharing::OSType _internal_os_type() const; + void _internal_set_os_type(::location::nearby::proto::sharing::OSType value); + + public: + // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; + bool has_device_relationship() const; + void clear_device_relationship() ; + ::location::nearby::proto::sharing::DeviceRelationship device_relationship() const; + void set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value); + + private: + ::location::nearby::proto::sharing::DeviceRelationship _internal_device_relationship() const; + void _internal_set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value); + + public: + // optional bool has_matching_qr_code = 4; + bool has_has_matching_qr_code() const; + void clear_has_matching_qr_code() ; + bool has_matching_qr_code() const; + void set_has_matching_qr_code(bool value); + + private: + bool _internal_has_matching_qr_code() const; + void _internal_set_has_matching_qr_code(bool value); + + public: + // optional bool is_external = 5; + bool has_is_external() const; + void clear_is_external() ; + bool is_external() const; + void set_is_external(bool value); + + private: + bool _internal_is_external() const; + void _internal_set_is_external(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ShareTargetInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int device_type_; + int os_type_; + int device_relationship_; + bool has_matching_qr_code_; + bool is_external_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ShareTargetInfo_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SetupWizard final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetupWizard) */ { + public: + inline SharingLog_SetupWizard() : SharingLog_SetupWizard(nullptr) {} + ~SharingLog_SetupWizard() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SetupWizard* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SetupWizard)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SetupWizard(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SetupWizard(const SharingLog_SetupWizard& from) : SharingLog_SetupWizard(nullptr, from) {} + inline SharingLog_SetupWizard(SharingLog_SetupWizard&& from) noexcept + : SharingLog_SetupWizard(nullptr, ::std::move(from)) {} + inline SharingLog_SetupWizard& operator=(const SharingLog_SetupWizard& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SetupWizard& operator=(SharingLog_SetupWizard&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SetupWizard& default_instance() { + return *reinterpret_cast( + &_SharingLog_SetupWizard_default_instance_); + } + static constexpr int kIndexInFileMessages = 74; + friend void swap(SharingLog_SetupWizard& a, SharingLog_SetupWizard& b) { a.Swap(&b); } + inline void Swap(SharingLog_SetupWizard* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SetupWizard* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SetupWizard* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SetupWizard& from); + void MergeFrom(const SharingLog_SetupWizard& from) { SharingLog_SetupWizard::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SetupWizard* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SetupWizard"; } + + explicit SharingLog_SetupWizard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SetupWizard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetupWizard& from); + SharingLog_SetupWizard( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SetupWizard&& from) noexcept + : SharingLog_SetupWizard(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kVisibilityFieldNumber = 1, + kPreviousVisibilityFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + bool has_visibility() const; + void clear_visibility() ; + ::location::nearby::proto::sharing::Visibility visibility() const; + void set_visibility(::location::nearby::proto::sharing::Visibility value); + + private: + ::location::nearby::proto::sharing::Visibility _internal_visibility() const; + void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); + + public: + // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; + bool has_previous_visibility() const; + void clear_previous_visibility() ; + ::location::nearby::proto::sharing::Visibility previous_visibility() const; + void set_previous_visibility(::location::nearby::proto::sharing::Visibility value); + + private: + ::location::nearby::proto::sharing::Visibility _internal_previous_visibility() const; + void _internal_set_previous_visibility(::location::nearby::proto::sharing::Visibility value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetupWizard) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SetupWizard& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int visibility_; + int previous_visibility_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<54> SharingLog_SetupWizard_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SetVisibility final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetVisibility) */ { + public: + inline SharingLog_SetVisibility() : SharingLog_SetVisibility(nullptr) {} + ~SharingLog_SetVisibility() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SetVisibility* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SetVisibility)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SetVisibility(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SetVisibility(const SharingLog_SetVisibility& from) : SharingLog_SetVisibility(nullptr, from) {} + inline SharingLog_SetVisibility(SharingLog_SetVisibility&& from) noexcept + : SharingLog_SetVisibility(nullptr, ::std::move(from)) {} + inline SharingLog_SetVisibility& operator=(const SharingLog_SetVisibility& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SetVisibility& operator=(SharingLog_SetVisibility&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SetVisibility& default_instance() { + return *reinterpret_cast( + &_SharingLog_SetVisibility_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(SharingLog_SetVisibility& a, SharingLog_SetVisibility& b) { a.Swap(&b); } + inline void Swap(SharingLog_SetVisibility* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SetVisibility* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SetVisibility* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SetVisibility& from); + void MergeFrom(const SharingLog_SetVisibility& from) { SharingLog_SetVisibility::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SetVisibility* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SetVisibility"; } + + explicit SharingLog_SetVisibility(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SetVisibility(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetVisibility& from); + SharingLog_SetVisibility( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SetVisibility&& from) noexcept + : SharingLog_SetVisibility(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kVisibilityFieldNumber = 1, + kSourceVisibilityFieldNumber = 2, + kDurationMillisFieldNumber = 3, + kSourceActivityNameFieldNumber = 4, + }; + // optional .location.nearby.proto.sharing.Visibility visibility = 1; + bool has_visibility() const; + void clear_visibility() ; + ::location::nearby::proto::sharing::Visibility visibility() const; + void set_visibility(::location::nearby::proto::sharing::Visibility value); + + private: + ::location::nearby::proto::sharing::Visibility _internal_visibility() const; + void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); + + public: + // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; + bool has_source_visibility() const; + void clear_source_visibility() ; + ::location::nearby::proto::sharing::Visibility source_visibility() const; + void set_source_visibility(::location::nearby::proto::sharing::Visibility value); + + private: + ::location::nearby::proto::sharing::Visibility _internal_source_visibility() const; + void _internal_set_source_visibility(::location::nearby::proto::sharing::Visibility value); + + public: + // optional int64 duration_millis = 3; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; + bool has_source_activity_name() const; + void clear_source_activity_name() ; + ::location::nearby::proto::sharing::ActivityName source_activity_name() const; + void set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); + + private: + ::location::nearby::proto::sharing::ActivityName _internal_source_activity_name() const; + void _internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetVisibility) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SetVisibility& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int visibility_; + int source_visibility_; + ::int64_t duration_millis_; + int source_activity_name_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetVisibility_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SetDeviceName final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) */ { + public: + inline SharingLog_SetDeviceName() : SharingLog_SetDeviceName(nullptr) {} + ~SharingLog_SetDeviceName() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SetDeviceName* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SetDeviceName)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SetDeviceName(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SetDeviceName(const SharingLog_SetDeviceName& from) : SharingLog_SetDeviceName(nullptr, from) {} + inline SharingLog_SetDeviceName(SharingLog_SetDeviceName&& from) noexcept + : SharingLog_SetDeviceName(nullptr, ::std::move(from)) {} + inline SharingLog_SetDeviceName& operator=(const SharingLog_SetDeviceName& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SetDeviceName& operator=(SharingLog_SetDeviceName&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SetDeviceName& default_instance() { + return *reinterpret_cast( + &_SharingLog_SetDeviceName_default_instance_); + } + static constexpr int kIndexInFileMessages = 54; + friend void swap(SharingLog_SetDeviceName& a, SharingLog_SetDeviceName& b) { a.Swap(&b); } + inline void Swap(SharingLog_SetDeviceName* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SetDeviceName* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SetDeviceName* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SetDeviceName& from); + void MergeFrom(const SharingLog_SetDeviceName& from) { SharingLog_SetDeviceName::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SetDeviceName* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SetDeviceName"; } + + explicit SharingLog_SetDeviceName(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SetDeviceName(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDeviceName& from); + SharingLog_SetDeviceName( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SetDeviceName&& from) noexcept + : SharingLog_SetDeviceName(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kDeviceNameSizeFieldNumber = 1, + }; + // optional int32 device_name_size = 1; + bool has_device_name_size() const; + void clear_device_name_size() ; + ::int32_t device_name_size() const; + void set_device_name_size(::int32_t value); + + private: + ::int32_t _internal_device_name_size() const; + void _internal_set_device_name_size(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SetDeviceName& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t device_name_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_SetDeviceName_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SetDataUsage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) */ { + public: + inline SharingLog_SetDataUsage() : SharingLog_SetDataUsage(nullptr) {} + ~SharingLog_SetDataUsage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SetDataUsage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SetDataUsage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SetDataUsage(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SetDataUsage(const SharingLog_SetDataUsage& from) : SharingLog_SetDataUsage(nullptr, from) {} + inline SharingLog_SetDataUsage(SharingLog_SetDataUsage&& from) noexcept + : SharingLog_SetDataUsage(nullptr, ::std::move(from)) {} + inline SharingLog_SetDataUsage& operator=(const SharingLog_SetDataUsage& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SetDataUsage& operator=(SharingLog_SetDataUsage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SetDataUsage& default_instance() { + return *reinterpret_cast( + &_SharingLog_SetDataUsage_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(SharingLog_SetDataUsage& a, SharingLog_SetDataUsage& b) { a.Swap(&b); } + inline void Swap(SharingLog_SetDataUsage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SetDataUsage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SetDataUsage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SetDataUsage& from); + void MergeFrom(const SharingLog_SetDataUsage& from) { SharingLog_SetDataUsage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SetDataUsage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SetDataUsage"; } + + explicit SharingLog_SetDataUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SetDataUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetDataUsage& from); + SharingLog_SetDataUsage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SetDataUsage&& from) noexcept + : SharingLog_SetDataUsage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kOriginalPreferenceFieldNumber = 1, + kPreferenceFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; + bool has_original_preference() const; + void clear_original_preference() ; + ::location::nearby::proto::sharing::DataUsage original_preference() const; + void set_original_preference(::location::nearby::proto::sharing::DataUsage value); + + private: + ::location::nearby::proto::sharing::DataUsage _internal_original_preference() const; + void _internal_set_original_preference(::location::nearby::proto::sharing::DataUsage value); + + public: + // optional .location.nearby.proto.sharing.DataUsage preference = 2; + bool has_preference() const; + void clear_preference() ; + ::location::nearby::proto::sharing::DataUsage preference() const; + void set_preference(::location::nearby::proto::sharing::DataUsage value); + + private: + ::location::nearby::proto::sharing::DataUsage _internal_preference() const; + void _internal_set_preference(::location::nearby::proto::sharing::DataUsage value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SetDataUsage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int original_preference_; + int preference_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_SetDataUsage_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SetAccount final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetAccount) */ { + public: + inline SharingLog_SetAccount() : SharingLog_SetAccount(nullptr) {} + ~SharingLog_SetAccount() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SetAccount* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SetAccount)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SetAccount(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SetAccount(const SharingLog_SetAccount& from) : SharingLog_SetAccount(nullptr, from) {} + inline SharingLog_SetAccount(SharingLog_SetAccount&& from) noexcept + : SharingLog_SetAccount(nullptr, ::std::move(from)) {} + inline SharingLog_SetAccount& operator=(const SharingLog_SetAccount& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SetAccount& operator=(SharingLog_SetAccount&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SetAccount& default_instance() { + return *reinterpret_cast( + &_SharingLog_SetAccount_default_instance_); + } + static constexpr int kIndexInFileMessages = 8; + friend void swap(SharingLog_SetAccount& a, SharingLog_SetAccount& b) { a.Swap(&b); } + inline void Swap(SharingLog_SetAccount* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SetAccount* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SetAccount* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SetAccount& from); + void MergeFrom(const SharingLog_SetAccount& from) { SharingLog_SetAccount::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SetAccount* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SetAccount"; } + + explicit SharingLog_SetAccount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SetAccount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SetAccount& from); + SharingLog_SetAccount( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SetAccount&& from) noexcept + : SharingLog_SetAccount(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActivityNameFieldNumber = 1, + }; + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + bool has_activity_name() const; + void clear_activity_name() ; + ::location::nearby::proto::sharing::ActivityName activity_name() const; + void set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + private: + ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; + void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetAccount) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SetAccount& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int activity_name_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<53> SharingLog_SetAccount_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SendFastInitialization final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) */ { + public: + inline SharingLog_SendFastInitialization() : SharingLog_SendFastInitialization(nullptr) {} + ~SharingLog_SendFastInitialization() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendFastInitialization* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendFastInitialization)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendFastInitialization(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendFastInitialization(const SharingLog_SendFastInitialization& from) : SharingLog_SendFastInitialization(nullptr, from) {} + inline SharingLog_SendFastInitialization(SharingLog_SendFastInitialization&& from) noexcept + : SharingLog_SendFastInitialization(nullptr, ::std::move(from)) {} + inline SharingLog_SendFastInitialization& operator=(const SharingLog_SendFastInitialization& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SendFastInitialization& operator=(SharingLog_SendFastInitialization&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SendFastInitialization& default_instance() { + return *reinterpret_cast( + &_SharingLog_SendFastInitialization_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(SharingLog_SendFastInitialization& a, SharingLog_SendFastInitialization& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SendFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SendFastInitialization* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SendFastInitialization& from); + void MergeFrom(const SharingLog_SendFastInitialization& from) { SharingLog_SendFastInitialization::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendFastInitialization* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendFastInitialization"; } + + explicit SharingLog_SendFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendFastInitialization& from); + SharingLog_SendFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendFastInitialization&& from) noexcept + : SharingLog_SendFastInitialization(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendFastInitialization& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_SendFastInitialization_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SendDesktopTransferEvent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) */ { + public: + inline SharingLog_SendDesktopTransferEvent() : SharingLog_SendDesktopTransferEvent(nullptr) {} + ~SharingLog_SendDesktopTransferEvent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendDesktopTransferEvent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendDesktopTransferEvent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendDesktopTransferEvent(const SharingLog_SendDesktopTransferEvent& from) : SharingLog_SendDesktopTransferEvent(nullptr, from) {} + inline SharingLog_SendDesktopTransferEvent(SharingLog_SendDesktopTransferEvent&& from) noexcept + : SharingLog_SendDesktopTransferEvent(nullptr, ::std::move(from)) {} + inline SharingLog_SendDesktopTransferEvent& operator=(const SharingLog_SendDesktopTransferEvent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SendDesktopTransferEvent& operator=(SharingLog_SendDesktopTransferEvent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SendDesktopTransferEvent& default_instance() { + return *reinterpret_cast( + &_SharingLog_SendDesktopTransferEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = 76; + friend void swap(SharingLog_SendDesktopTransferEvent& a, SharingLog_SendDesktopTransferEvent& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SendDesktopTransferEvent& from); + void MergeFrom(const SharingLog_SendDesktopTransferEvent& from) { SharingLog_SendDesktopTransferEvent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent"; } + + explicit SharingLog_SendDesktopTransferEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendDesktopTransferEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopTransferEvent& from); + SharingLog_SendDesktopTransferEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendDesktopTransferEvent&& from) noexcept + : SharingLog_SendDesktopTransferEvent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEventFieldNumber = 1, + }; + // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; + bool has_event() const; + void clear_event() ; + ::location::nearby::proto::sharing::DesktopTransferEventType event() const; + void set_event(::location::nearby::proto::sharing::DesktopTransferEventType value); + + private: + ::location::nearby::proto::sharing::DesktopTransferEventType _internal_event() const; + void _internal_set_event(::location::nearby::proto::sharing::DesktopTransferEventType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendDesktopTransferEvent& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int event_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_SendDesktopTransferEvent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SendDesktopNotification final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) */ { + public: + inline SharingLog_SendDesktopNotification() : SharingLog_SendDesktopNotification(nullptr) {} + ~SharingLog_SendDesktopNotification() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendDesktopNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendDesktopNotification)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendDesktopNotification(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendDesktopNotification(const SharingLog_SendDesktopNotification& from) : SharingLog_SendDesktopNotification(nullptr, from) {} + inline SharingLog_SendDesktopNotification(SharingLog_SendDesktopNotification&& from) noexcept + : SharingLog_SendDesktopNotification(nullptr, ::std::move(from)) {} + inline SharingLog_SendDesktopNotification& operator=(const SharingLog_SendDesktopNotification& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SendDesktopNotification& operator=(SharingLog_SendDesktopNotification&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SendDesktopNotification& default_instance() { + return *reinterpret_cast( + &_SharingLog_SendDesktopNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = 75; + friend void swap(SharingLog_SendDesktopNotification& a, SharingLog_SendDesktopNotification& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendDesktopNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SendDesktopNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SendDesktopNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SendDesktopNotification& from); + void MergeFrom(const SharingLog_SendDesktopNotification& from) { SharingLog_SendDesktopNotification::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendDesktopNotification* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification"; } + + explicit SharingLog_SendDesktopNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendDesktopNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendDesktopNotification& from); + SharingLog_SendDesktopNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendDesktopNotification&& from) noexcept + : SharingLog_SendDesktopNotification(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEventFieldNumber = 1, + }; + // optional .location.nearby.proto.sharing.DesktopNotification event = 1; + bool has_event() const; + void clear_event() ; + ::location::nearby::proto::sharing::DesktopNotification event() const; + void set_event(::location::nearby::proto::sharing::DesktopNotification value); + + private: + ::location::nearby::proto::sharing::DesktopNotification _internal_event() const; + void _internal_set_event(::location::nearby::proto::sharing::DesktopNotification value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendDesktopNotification& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int event_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_SendDesktopNotification_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ScanForShareTargetsStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) */ { + public: + inline SharingLog_ScanForShareTargetsStart() : SharingLog_ScanForShareTargetsStart(nullptr) {} + ~SharingLog_ScanForShareTargetsStart() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ScanForShareTargetsStart)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ScanForShareTargetsStart(const SharingLog_ScanForShareTargetsStart& from) : SharingLog_ScanForShareTargetsStart(nullptr, from) {} + inline SharingLog_ScanForShareTargetsStart(SharingLog_ScanForShareTargetsStart&& from) noexcept + : SharingLog_ScanForShareTargetsStart(nullptr, ::std::move(from)) {} + inline SharingLog_ScanForShareTargetsStart& operator=(const SharingLog_ScanForShareTargetsStart& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ScanForShareTargetsStart& operator=(SharingLog_ScanForShareTargetsStart&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ScanForShareTargetsStart& default_instance() { + return *reinterpret_cast( + &_SharingLog_ScanForShareTargetsStart_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(SharingLog_ScanForShareTargetsStart& a, SharingLog_ScanForShareTargetsStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ScanForShareTargetsStart& from); + void MergeFrom(const SharingLog_ScanForShareTargetsStart& from) { SharingLog_ScanForShareTargetsStart::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart"; } + + explicit SharingLog_ScanForShareTargetsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ScanForShareTargetsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ScanForShareTargetsStart& from); + SharingLog_ScanForShareTargetsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ScanForShareTargetsStart&& from) noexcept + : SharingLog_ScanForShareTargetsStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 5, + kSessionIdFieldNumber = 1, + kStatusFieldNumber = 2, + kScanTypeFieldNumber = 3, + kFlowIdFieldNumber = 4, + kUseQrCodeFieldNumber = 6, + }; + // optional string referrer_name = 5; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional int64 session_id = 1; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.SessionStatus status = 2; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::SessionStatus status() const; + void set_status(::location::nearby::proto::sharing::SessionStatus value); + + private: + ::location::nearby::proto::sharing::SessionStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::SessionStatus value); + + public: + // optional .location.nearby.proto.sharing.ScanType scan_type = 3; + bool has_scan_type() const; + void clear_scan_type() ; + ::location::nearby::proto::sharing::ScanType scan_type() const; + void set_scan_type(::location::nearby::proto::sharing::ScanType value); + + private: + ::location::nearby::proto::sharing::ScanType _internal_scan_type() const; + void _internal_set_scan_type(::location::nearby::proto::sharing::ScanType value); + + public: + // optional int64 flow_id = 4; + bool has_flow_id() const; + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: + // optional bool use_qr_code = 6; + bool has_use_qr_code() const; + void clear_use_qr_code() ; + bool use_qr_code() const; + void set_use_qr_code(bool value); + + private: + bool _internal_use_qr_code() const; + void _internal_set_use_qr_code(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ScanForShareTargetsStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::int64_t session_id_; + int status_; + int scan_type_; + ::int64_t flow_id_; + bool use_qr_code_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_ScanForShareTargetsStart_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ScanForShareTargetsEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) */ { + public: + inline SharingLog_ScanForShareTargetsEnd() : SharingLog_ScanForShareTargetsEnd(nullptr) {} + ~SharingLog_ScanForShareTargetsEnd() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ScanForShareTargetsEnd)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ScanForShareTargetsEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ScanForShareTargetsEnd(const SharingLog_ScanForShareTargetsEnd& from) : SharingLog_ScanForShareTargetsEnd(nullptr, from) {} + inline SharingLog_ScanForShareTargetsEnd(SharingLog_ScanForShareTargetsEnd&& from) noexcept + : SharingLog_ScanForShareTargetsEnd(nullptr, ::std::move(from)) {} + inline SharingLog_ScanForShareTargetsEnd& operator=(const SharingLog_ScanForShareTargetsEnd& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ScanForShareTargetsEnd& operator=(SharingLog_ScanForShareTargetsEnd&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ScanForShareTargetsEnd& default_instance() { + return *reinterpret_cast( + &_SharingLog_ScanForShareTargetsEnd_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(SharingLog_ScanForShareTargetsEnd& a, SharingLog_ScanForShareTargetsEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ScanForShareTargetsEnd& from); + void MergeFrom(const SharingLog_ScanForShareTargetsEnd& from) { SharingLog_ScanForShareTargetsEnd::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd"; } + + explicit SharingLog_ScanForShareTargetsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ScanForShareTargetsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ScanForShareTargetsEnd& from); + SharingLog_ScanForShareTargetsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ScanForShareTargetsEnd&& from) noexcept + : SharingLog_ScanForShareTargetsEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionIdFieldNumber = 1, + }; + // optional int64 session_id = 1; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ScanForShareTargetsEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t session_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_ScanForShareTargetsEnd_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_RpcCallStatus final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) */ { + public: + inline SharingLog_RpcCallStatus() : SharingLog_RpcCallStatus(nullptr) {} + ~SharingLog_RpcCallStatus() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_RpcCallStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_RpcCallStatus)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_RpcCallStatus(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_RpcCallStatus(const SharingLog_RpcCallStatus& from) : SharingLog_RpcCallStatus(nullptr, from) {} + inline SharingLog_RpcCallStatus(SharingLog_RpcCallStatus&& from) noexcept + : SharingLog_RpcCallStatus(nullptr, ::std::move(from)) {} + inline SharingLog_RpcCallStatus& operator=(const SharingLog_RpcCallStatus& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_RpcCallStatus& operator=(SharingLog_RpcCallStatus&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_RpcCallStatus& default_instance() { + return *reinterpret_cast( + &_SharingLog_RpcCallStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = 79; + friend void swap(SharingLog_RpcCallStatus& a, SharingLog_RpcCallStatus& b) { a.Swap(&b); } + inline void Swap(SharingLog_RpcCallStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_RpcCallStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_RpcCallStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_RpcCallStatus& from); + void MergeFrom(const SharingLog_RpcCallStatus& from) { SharingLog_RpcCallStatus::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_RpcCallStatus* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.RpcCallStatus"; } + + explicit SharingLog_RpcCallStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_RpcCallStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RpcCallStatus& from); + SharingLog_RpcCallStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_RpcCallStatus&& from) noexcept + : SharingLog_RpcCallStatus(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using RpcDirection = SharingLog_RpcCallStatus_RpcDirection; + static constexpr RpcDirection UNKNOWN_RPC_DIRECTION = SharingLog_RpcCallStatus_RpcDirection_UNKNOWN_RPC_DIRECTION; + static constexpr RpcDirection INCOMING = SharingLog_RpcCallStatus_RpcDirection_INCOMING; + static constexpr RpcDirection OUTGOING = SharingLog_RpcCallStatus_RpcDirection_OUTGOING; + static inline bool RpcDirection_IsValid(int value) { + return SharingLog_RpcCallStatus_RpcDirection_IsValid(value); + } + static constexpr RpcDirection RpcDirection_MIN = SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MIN; + static constexpr RpcDirection RpcDirection_MAX = SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MAX; + static constexpr int RpcDirection_ARRAYSIZE = SharingLog_RpcCallStatus_RpcDirection_RpcDirection_ARRAYSIZE; + template + static inline const ::std::string& RpcDirection_Name(T value) { + return SharingLog_RpcCallStatus_RpcDirection_Name(value); + } + static inline bool RpcDirection_Parse( + ::absl::string_view name, RpcDirection* PROTOBUF_NONNULL value) { + return SharingLog_RpcCallStatus_RpcDirection_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kRpcNameFieldNumber = 2, + kDirectionFieldNumber = 1, + kErrorCodeFieldNumber = 3, + kLatencyMillisFieldNumber = 4, + }; + // optional string rpc_name = 2; + bool has_rpc_name() const; + void clear_rpc_name() ; + const ::std::string& rpc_name() const; + template + void set_rpc_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_rpc_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rpc_name(); + void set_allocated_rpc_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_rpc_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rpc_name(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; + bool has_direction() const; + void clear_direction() ; + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection direction() const; + void set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value); + + private: + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection _internal_direction() const; + void _internal_set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value); + + public: + // optional int32 error_code = 3; + bool has_error_code() const; + void clear_error_code() ; + ::int32_t error_code() const; + void set_error_code(::int32_t value); + + private: + ::int32_t _internal_error_code() const; + void _internal_set_error_code(::int32_t value); + + public: + // optional int64 latency_millis = 4; + bool has_latency_millis() const; + void clear_latency_millis() ; + ::int64_t latency_millis() const; + void set_latency_millis(::int64_t value); + + private: + ::int64_t _internal_latency_millis() const; + void _internal_set_latency_millis(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_RpcCallStatus& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr rpc_name_; + int direction_; + ::int32_t error_code_; + ::int64_t latency_millis_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RpcCallStatus_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_RespondToIntroduction final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) */ { + public: + inline SharingLog_RespondToIntroduction() : SharingLog_RespondToIntroduction(nullptr) {} + ~SharingLog_RespondToIntroduction() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_RespondToIntroduction* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_RespondToIntroduction)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_RespondToIntroduction(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_RespondToIntroduction(const SharingLog_RespondToIntroduction& from) : SharingLog_RespondToIntroduction(nullptr, from) {} + inline SharingLog_RespondToIntroduction(SharingLog_RespondToIntroduction&& from) noexcept + : SharingLog_RespondToIntroduction(nullptr, ::std::move(from)) {} + inline SharingLog_RespondToIntroduction& operator=(const SharingLog_RespondToIntroduction& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_RespondToIntroduction& operator=(SharingLog_RespondToIntroduction&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_RespondToIntroduction& default_instance() { + return *reinterpret_cast( + &_SharingLog_RespondToIntroduction_default_instance_); + } + static constexpr int kIndexInFileMessages = 25; + friend void swap(SharingLog_RespondToIntroduction& a, SharingLog_RespondToIntroduction& b) { a.Swap(&b); } + inline void Swap(SharingLog_RespondToIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_RespondToIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_RespondToIntroduction* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_RespondToIntroduction& from); + void MergeFrom(const SharingLog_RespondToIntroduction& from) { SharingLog_RespondToIntroduction::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_RespondToIntroduction* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction"; } + + explicit SharingLog_RespondToIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_RespondToIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RespondToIntroduction& from); + SharingLog_RespondToIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_RespondToIntroduction&& from) noexcept + : SharingLog_RespondToIntroduction(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionIdFieldNumber = 2, + kActionFieldNumber = 1, + kQrCodeFlowFieldNumber = 3, + }; + // optional int64 session_id = 2; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; + bool has_action() const; + void clear_action() ; + ::location::nearby::proto::sharing::ResponseToIntroduction action() const; + void set_action(::location::nearby::proto::sharing::ResponseToIntroduction value); + + private: + ::location::nearby::proto::sharing::ResponseToIntroduction _internal_action() const; + void _internal_set_action(::location::nearby::proto::sharing::ResponseToIntroduction value); + + public: + // optional bool qr_code_flow = 3; + bool has_qr_code_flow() const; + void clear_qr_code_flow() ; + bool qr_code_flow() const; + void set_qr_code_flow(bool value); + + private: + bool _internal_qr_code_flow() const; + void _internal_set_qr_code_flow(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_RespondToIntroduction& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t session_id_; + int action_; + bool qr_code_flow_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_RespondToIntroduction_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_RequestSettingPermissions final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) */ { + public: + inline SharingLog_RequestSettingPermissions() : SharingLog_RequestSettingPermissions(nullptr) {} + ~SharingLog_RequestSettingPermissions() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_RequestSettingPermissions)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_RequestSettingPermissions(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_RequestSettingPermissions(const SharingLog_RequestSettingPermissions& from) : SharingLog_RequestSettingPermissions(nullptr, from) {} + inline SharingLog_RequestSettingPermissions(SharingLog_RequestSettingPermissions&& from) noexcept + : SharingLog_RequestSettingPermissions(nullptr, ::std::move(from)) {} + inline SharingLog_RequestSettingPermissions& operator=(const SharingLog_RequestSettingPermissions& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_RequestSettingPermissions& operator=(SharingLog_RequestSettingPermissions&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_RequestSettingPermissions& default_instance() { + return *reinterpret_cast( + &_SharingLog_RequestSettingPermissions_default_instance_); + } + static constexpr int kIndexInFileMessages = 55; + friend void swap(SharingLog_RequestSettingPermissions& a, SharingLog_RequestSettingPermissions& b) { a.Swap(&b); } + inline void Swap(SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_RequestSettingPermissions& from); + void MergeFrom(const SharingLog_RequestSettingPermissions& from) { SharingLog_RequestSettingPermissions::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions"; } + + explicit SharingLog_RequestSettingPermissions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_RequestSettingPermissions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RequestSettingPermissions& from); + SharingLog_RequestSettingPermissions( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_RequestSettingPermissions&& from) noexcept + : SharingLog_RequestSettingPermissions(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPermissionTypeFieldNumber = 1, + kPermissionRequestResultFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; + bool has_permission_type() const; + void clear_permission_type() ; + ::location::nearby::proto::sharing::PermissionRequestType permission_type() const; + void set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value); + + private: + ::location::nearby::proto::sharing::PermissionRequestType _internal_permission_type() const; + void _internal_set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value); + + public: + // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; + bool has_permission_request_result() const; + void clear_permission_request_result() ; + ::location::nearby::proto::sharing::PermissionRequestResult permission_request_result() const; + void set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value); + + private: + ::location::nearby::proto::sharing::PermissionRequestResult _internal_permission_request_result() const; + void _internal_set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_RequestSettingPermissions& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int permission_type_; + int permission_request_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_RequestSettingPermissions_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_RemoveQuickSettingsTile final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) */ { + public: + inline SharingLog_RemoveQuickSettingsTile() : SharingLog_RemoveQuickSettingsTile(nullptr) {} + ~SharingLog_RemoveQuickSettingsTile() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_RemoveQuickSettingsTile)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_RemoveQuickSettingsTile(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_RemoveQuickSettingsTile(const SharingLog_RemoveQuickSettingsTile& from) : SharingLog_RemoveQuickSettingsTile(nullptr, from) {} + inline SharingLog_RemoveQuickSettingsTile(SharingLog_RemoveQuickSettingsTile&& from) noexcept + : SharingLog_RemoveQuickSettingsTile(nullptr, ::std::move(from)) {} + inline SharingLog_RemoveQuickSettingsTile& operator=(const SharingLog_RemoveQuickSettingsTile& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_RemoveQuickSettingsTile& operator=(SharingLog_RemoveQuickSettingsTile&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_RemoveQuickSettingsTile& default_instance() { + return *reinterpret_cast( + &_SharingLog_RemoveQuickSettingsTile_default_instance_); + } + static constexpr int kIndexInFileMessages = 47; + friend void swap(SharingLog_RemoveQuickSettingsTile& a, SharingLog_RemoveQuickSettingsTile& b) { a.Swap(&b); } + inline void Swap(SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_RemoveQuickSettingsTile& from); + void MergeFrom(const SharingLog_RemoveQuickSettingsTile& from) { SharingLog_RemoveQuickSettingsTile::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile"; } + + explicit SharingLog_RemoveQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_RemoveQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveQuickSettingsTile& from); + SharingLog_RemoveQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_RemoveQuickSettingsTile&& from) noexcept + : SharingLog_RemoveQuickSettingsTile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_RemoveQuickSettingsTile& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_RemoveQuickSettingsTile_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_RemoveContact final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RemoveContact) */ { + public: + inline SharingLog_RemoveContact() : SharingLog_RemoveContact(nullptr) {} + ~SharingLog_RemoveContact() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_RemoveContact* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_RemoveContact)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_RemoveContact(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_RemoveContact(const SharingLog_RemoveContact& from) : SharingLog_RemoveContact(nullptr, from) {} + inline SharingLog_RemoveContact(SharingLog_RemoveContact&& from) noexcept + : SharingLog_RemoveContact(nullptr, ::std::move(from)) {} + inline SharingLog_RemoveContact& operator=(const SharingLog_RemoveContact& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_RemoveContact& operator=(SharingLog_RemoveContact&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_RemoveContact& default_instance() { + return *reinterpret_cast( + &_SharingLog_RemoveContact_default_instance_); + } + static constexpr int kIndexInFileMessages = 37; + friend void swap(SharingLog_RemoveContact& a, SharingLog_RemoveContact& b) { a.Swap(&b); } + inline void Swap(SharingLog_RemoveContact* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_RemoveContact* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_RemoveContact* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_RemoveContact& from); + void MergeFrom(const SharingLog_RemoveContact& from) { SharingLog_RemoveContact::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_RemoveContact* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.RemoveContact"; } + + explicit SharingLog_RemoveContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_RemoveContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_RemoveContact& from); + SharingLog_RemoveContact( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_RemoveContact&& from) noexcept + : SharingLog_RemoveContact(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kWasPhoneRemovedFieldNumber = 1, + kWasEmailRemovedFieldNumber = 2, + }; + // optional bool was_phone_removed = 1; + bool has_was_phone_removed() const; + void clear_was_phone_removed() ; + bool was_phone_removed() const; + void set_was_phone_removed(bool value); + + private: + bool _internal_was_phone_removed() const; + void _internal_set_was_phone_removed(bool value); + + public: + // optional bool was_email_removed = 2; + bool has_was_email_removed() const; + void clear_was_email_removed() ; + bool was_email_removed() const; + void set_was_email_removed(bool value); + + private: + bool _internal_was_email_removed() const; + void _internal_set_was_email_removed(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RemoveContact) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_RemoveContact& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool was_phone_removed_; + bool was_email_removed_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_RemoveContact_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ReceivePreviews final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) */ { + public: + inline SharingLog_ReceivePreviews() : SharingLog_ReceivePreviews(nullptr) {} + ~SharingLog_ReceivePreviews() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ReceivePreviews* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ReceivePreviews)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ReceivePreviews(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ReceivePreviews(const SharingLog_ReceivePreviews& from) : SharingLog_ReceivePreviews(nullptr, from) {} + inline SharingLog_ReceivePreviews(SharingLog_ReceivePreviews&& from) noexcept + : SharingLog_ReceivePreviews(nullptr, ::std::move(from)) {} + inline SharingLog_ReceivePreviews& operator=(const SharingLog_ReceivePreviews& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ReceivePreviews& operator=(SharingLog_ReceivePreviews&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ReceivePreviews& default_instance() { + return *reinterpret_cast( + &_SharingLog_ReceivePreviews_default_instance_); + } + static constexpr int kIndexInFileMessages = 83; + friend void swap(SharingLog_ReceivePreviews& a, SharingLog_ReceivePreviews& b) { a.Swap(&b); } + inline void Swap(SharingLog_ReceivePreviews* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ReceivePreviews* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ReceivePreviews* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ReceivePreviews& from); + void MergeFrom(const SharingLog_ReceivePreviews& from) { SharingLog_ReceivePreviews::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ReceivePreviews* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ReceivePreviews"; } + + explicit SharingLog_ReceivePreviews(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ReceivePreviews(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceivePreviews& from); + SharingLog_ReceivePreviews( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ReceivePreviews&& from) noexcept + : SharingLog_ReceivePreviews(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kNumPreviewsFieldNumber = 1, + }; + // optional int32 num_previews = 1; + bool has_num_previews() const; + void clear_num_previews() ; + ::int32_t num_previews() const; + void set_num_previews(::int32_t value); + + private: + ::int32_t _internal_num_previews() const; + void _internal_set_num_previews(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ReceivePreviews& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t num_previews_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_ReceivePreviews_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ReceiveFastInitialization final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) */ { + public: + inline SharingLog_ReceiveFastInitialization() : SharingLog_ReceiveFastInitialization(nullptr) {} + ~SharingLog_ReceiveFastInitialization() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ReceiveFastInitialization)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ReceiveFastInitialization(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ReceiveFastInitialization(const SharingLog_ReceiveFastInitialization& from) : SharingLog_ReceiveFastInitialization(nullptr, from) {} + inline SharingLog_ReceiveFastInitialization(SharingLog_ReceiveFastInitialization&& from) noexcept + : SharingLog_ReceiveFastInitialization(nullptr, ::std::move(from)) {} + inline SharingLog_ReceiveFastInitialization& operator=(const SharingLog_ReceiveFastInitialization& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ReceiveFastInitialization& operator=(SharingLog_ReceiveFastInitialization&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ReceiveFastInitialization& default_instance() { + return *reinterpret_cast( + &_SharingLog_ReceiveFastInitialization_default_instance_); + } + static constexpr int kIndexInFileMessages = 16; + friend void swap(SharingLog_ReceiveFastInitialization& a, SharingLog_ReceiveFastInitialization& b) { a.Swap(&b); } + inline void Swap(SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ReceiveFastInitialization& from); + void MergeFrom(const SharingLog_ReceiveFastInitialization& from) { SharingLog_ReceiveFastInitialization::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization"; } + + explicit SharingLog_ReceiveFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ReceiveFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveFastInitialization& from); + SharingLog_ReceiveFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ReceiveFastInitialization&& from) noexcept + : SharingLog_ReceiveFastInitialization(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTimeElapseSinceScreenUnlockMillisFieldNumber = 1, + kNotificationsEnabledFieldNumber = 2, + kNotificationsFilteredFieldNumber = 3, + }; + // optional int64 time_elapse_since_screen_unlock_millis = 1; + bool has_time_elapse_since_screen_unlock_millis() const; + void clear_time_elapse_since_screen_unlock_millis() ; + ::int64_t time_elapse_since_screen_unlock_millis() const; + void set_time_elapse_since_screen_unlock_millis(::int64_t value); + + private: + ::int64_t _internal_time_elapse_since_screen_unlock_millis() const; + void _internal_set_time_elapse_since_screen_unlock_millis(::int64_t value); + + public: + // optional bool notifications_enabled = 2; + bool has_notifications_enabled() const; + void clear_notifications_enabled() ; + bool notifications_enabled() const; + void set_notifications_enabled(bool value); + + private: + bool _internal_notifications_enabled() const; + void _internal_set_notifications_enabled(bool value); + + public: + // optional bool notifications_filtered = 3; + bool has_notifications_filtered() const; + void clear_notifications_filtered() ; + bool notifications_filtered() const; + void set_notifications_filtered(bool value); + + private: + bool _internal_notifications_filtered() const; + void _internal_set_notifications_filtered(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ReceiveFastInitialization& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t time_elapse_since_screen_unlock_millis_; + bool notifications_enabled_; + bool notifications_filtered_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_ReceiveFastInitialization_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_QrCodeOpenedInWebClient final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) */ { + public: + inline SharingLog_QrCodeOpenedInWebClient() : SharingLog_QrCodeOpenedInWebClient(nullptr) {} + ~SharingLog_QrCodeOpenedInWebClient() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_QrCodeOpenedInWebClient)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_QrCodeOpenedInWebClient(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_QrCodeOpenedInWebClient(const SharingLog_QrCodeOpenedInWebClient& from) : SharingLog_QrCodeOpenedInWebClient(nullptr, from) {} + inline SharingLog_QrCodeOpenedInWebClient(SharingLog_QrCodeOpenedInWebClient&& from) noexcept + : SharingLog_QrCodeOpenedInWebClient(nullptr, ::std::move(from)) {} + inline SharingLog_QrCodeOpenedInWebClient& operator=(const SharingLog_QrCodeOpenedInWebClient& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_QrCodeOpenedInWebClient& operator=(SharingLog_QrCodeOpenedInWebClient&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_QrCodeOpenedInWebClient& default_instance() { + return *reinterpret_cast( + &_SharingLog_QrCodeOpenedInWebClient_default_instance_); + } + static constexpr int kIndexInFileMessages = 81; + friend void swap(SharingLog_QrCodeOpenedInWebClient& a, SharingLog_QrCodeOpenedInWebClient& b) { a.Swap(&b); } + inline void Swap(SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_QrCodeOpenedInWebClient& from); + void MergeFrom(const SharingLog_QrCodeOpenedInWebClient& from) { SharingLog_QrCodeOpenedInWebClient::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient"; } + + explicit SharingLog_QrCodeOpenedInWebClient(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_QrCodeOpenedInWebClient(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeOpenedInWebClient& from); + SharingLog_QrCodeOpenedInWebClient( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_QrCodeOpenedInWebClient&& from) noexcept + : SharingLog_QrCodeOpenedInWebClient(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using ClientPlatform = SharingLog_QrCodeOpenedInWebClient_ClientPlatform; + static constexpr ClientPlatform UNKNOWN_CLIENT_PLATFORM = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_UNKNOWN_CLIENT_PLATFORM; + static constexpr ClientPlatform GENERIC = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_GENERIC; + static constexpr ClientPlatform ANDROID = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ANDROID; + static constexpr ClientPlatform IOS = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IOS; + static constexpr ClientPlatform CHROME_OS = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_CHROME_OS; + static constexpr ClientPlatform WINDOWS = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_WINDOWS; + static inline bool ClientPlatform_IsValid(int value) { + return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(value); + } + static constexpr ClientPlatform ClientPlatform_MIN = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MIN; + static constexpr ClientPlatform ClientPlatform_MAX = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MAX; + static constexpr int ClientPlatform_ARRAYSIZE = SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_ARRAYSIZE; + template + static inline const ::std::string& ClientPlatform_Name(T value) { + return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(value); + } + static inline bool ClientPlatform_Parse( + ::absl::string_view name, ClientPlatform* PROTOBUF_NONNULL value) { + return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kClientPlatformFieldNumber = 1, + kIsRetryFieldNumber = 2, + }; + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; + bool has_client_platform() const; + void clear_client_platform() ; + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform client_platform() const; + void set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); + + private: + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform _internal_client_platform() const; + void _internal_set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); + + public: + // optional bool is_retry = 2; + bool has_is_retry() const; + void clear_is_retry() ; + bool is_retry() const; + void set_is_retry(bool value); + + private: + bool _internal_is_retry() const; + void _internal_set_is_retry(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_QrCodeOpenedInWebClient& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int client_platform_; + bool is_retry_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_QrCodeOpenedInWebClient_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_QrCodeLinkShown final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) */ { + public: + inline SharingLog_QrCodeLinkShown() : SharingLog_QrCodeLinkShown(nullptr) {} + ~SharingLog_QrCodeLinkShown() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_QrCodeLinkShown)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_QrCodeLinkShown(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_QrCodeLinkShown(const SharingLog_QrCodeLinkShown& from) : SharingLog_QrCodeLinkShown(nullptr, from) {} + inline SharingLog_QrCodeLinkShown(SharingLog_QrCodeLinkShown&& from) noexcept + : SharingLog_QrCodeLinkShown(nullptr, ::std::move(from)) {} + inline SharingLog_QrCodeLinkShown& operator=(const SharingLog_QrCodeLinkShown& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_QrCodeLinkShown& operator=(SharingLog_QrCodeLinkShown&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_QrCodeLinkShown& default_instance() { + return *reinterpret_cast( + &_SharingLog_QrCodeLinkShown_default_instance_); + } + static constexpr int kIndexInFileMessages = 63; + friend void swap(SharingLog_QrCodeLinkShown& a, SharingLog_QrCodeLinkShown& b) { a.Swap(&b); } + inline void Swap(SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_QrCodeLinkShown& from); + void MergeFrom(const SharingLog_QrCodeLinkShown& from) { SharingLog_QrCodeLinkShown::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown"; } + + explicit SharingLog_QrCodeLinkShown(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_QrCodeLinkShown(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_QrCodeLinkShown& from); + SharingLog_QrCodeLinkShown( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_QrCodeLinkShown&& from) noexcept + : SharingLog_QrCodeLinkShown(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_QrCodeLinkShown& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_QrCodeLinkShown_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ProcessReceivedAttachmentsEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) */ { + public: + inline SharingLog_ProcessReceivedAttachmentsEnd() : SharingLog_ProcessReceivedAttachmentsEnd(nullptr) {} + ~SharingLog_ProcessReceivedAttachmentsEnd() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ProcessReceivedAttachmentsEnd)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ProcessReceivedAttachmentsEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ProcessReceivedAttachmentsEnd(const SharingLog_ProcessReceivedAttachmentsEnd& from) : SharingLog_ProcessReceivedAttachmentsEnd(nullptr, from) {} + inline SharingLog_ProcessReceivedAttachmentsEnd(SharingLog_ProcessReceivedAttachmentsEnd&& from) noexcept + : SharingLog_ProcessReceivedAttachmentsEnd(nullptr, ::std::move(from)) {} + inline SharingLog_ProcessReceivedAttachmentsEnd& operator=(const SharingLog_ProcessReceivedAttachmentsEnd& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ProcessReceivedAttachmentsEnd& operator=(SharingLog_ProcessReceivedAttachmentsEnd&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ProcessReceivedAttachmentsEnd& default_instance() { + return *reinterpret_cast( + &_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_); + } + static constexpr int kIndexInFileMessages = 33; + friend void swap(SharingLog_ProcessReceivedAttachmentsEnd& a, SharingLog_ProcessReceivedAttachmentsEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from); + void MergeFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from) { SharingLog_ProcessReceivedAttachmentsEnd::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd"; } + + explicit SharingLog_ProcessReceivedAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ProcessReceivedAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ProcessReceivedAttachmentsEnd& from); + SharingLog_ProcessReceivedAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ProcessReceivedAttachmentsEnd&& from) noexcept + : SharingLog_ProcessReceivedAttachmentsEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionIdFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // optional int64 session_id = 1; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus status() const; + void set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value); + + private: + ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ProcessReceivedAttachmentsEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t session_id_; + int status_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_ProcessReceivedAttachmentsEnd_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_PreferencesUsage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) */ { + public: + inline SharingLog_PreferencesUsage() : SharingLog_PreferencesUsage(nullptr) {} + ~SharingLog_PreferencesUsage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_PreferencesUsage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_PreferencesUsage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_PreferencesUsage(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_PreferencesUsage(const SharingLog_PreferencesUsage& from) : SharingLog_PreferencesUsage(nullptr, from) {} + inline SharingLog_PreferencesUsage(SharingLog_PreferencesUsage&& from) noexcept + : SharingLog_PreferencesUsage(nullptr, ::std::move(from)) {} + inline SharingLog_PreferencesUsage& operator=(const SharingLog_PreferencesUsage& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_PreferencesUsage& operator=(SharingLog_PreferencesUsage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_PreferencesUsage& default_instance() { + return *reinterpret_cast( + &_SharingLog_PreferencesUsage_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(SharingLog_PreferencesUsage& a, SharingLog_PreferencesUsage& b) { a.Swap(&b); } + inline void Swap(SharingLog_PreferencesUsage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_PreferencesUsage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_PreferencesUsage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_PreferencesUsage& from); + void MergeFrom(const SharingLog_PreferencesUsage& from) { SharingLog_PreferencesUsage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_PreferencesUsage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.PreferencesUsage"; } + + explicit SharingLog_PreferencesUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_PreferencesUsage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_PreferencesUsage& from); + SharingLog_PreferencesUsage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_PreferencesUsage&& from) noexcept + : SharingLog_PreferencesUsage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kActionFieldNumber = 1, + kActionStatusFieldNumber = 2, + kPrevSubActionFieldNumber = 3, + kNextSubActionFieldNumber = 4, + }; + // optional .location.nearby.proto.sharing.PreferencesAction action = 1; + bool has_action() const; + void clear_action() ; + ::location::nearby::proto::sharing::PreferencesAction action() const; + void set_action(::location::nearby::proto::sharing::PreferencesAction value); + + private: + ::location::nearby::proto::sharing::PreferencesAction _internal_action() const; + void _internal_set_action(::location::nearby::proto::sharing::PreferencesAction value); + + public: + // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; + bool has_action_status() const; + void clear_action_status() ; + ::location::nearby::proto::sharing::PreferencesActionStatus action_status() const; + void set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value); + + private: + ::location::nearby::proto::sharing::PreferencesActionStatus _internal_action_status() const; + void _internal_set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value); + + public: + // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; + bool has_prev_sub_action() const; + void clear_prev_sub_action() ; + ::location::nearby::proto::sharing::PreferencesAction prev_sub_action() const; + void set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value); + + private: + ::location::nearby::proto::sharing::PreferencesAction _internal_prev_sub_action() const; + void _internal_set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value); + + public: + // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; + bool has_next_sub_action() const; + void clear_next_sub_action() ; + ::location::nearby::proto::sharing::PreferencesAction next_sub_action() const; + void set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value); + + private: + ::location::nearby::proto::sharing::PreferencesAction _internal_next_sub_action() const; + void _internal_set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 4, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_PreferencesUsage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int action_; + int action_status_; + int prev_sub_action_; + int next_sub_action_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_PreferencesUsage_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_LaunchSetupActivity final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) */ { + public: + inline SharingLog_LaunchSetupActivity() : SharingLog_LaunchSetupActivity(nullptr) {} + ~SharingLog_LaunchSetupActivity() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_LaunchSetupActivity* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_LaunchSetupActivity)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_LaunchSetupActivity(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_LaunchSetupActivity(const SharingLog_LaunchSetupActivity& from) : SharingLog_LaunchSetupActivity(nullptr, from) {} + inline SharingLog_LaunchSetupActivity(SharingLog_LaunchSetupActivity&& from) noexcept + : SharingLog_LaunchSetupActivity(nullptr, ::std::move(from)) {} + inline SharingLog_LaunchSetupActivity& operator=(const SharingLog_LaunchSetupActivity& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_LaunchSetupActivity& operator=(SharingLog_LaunchSetupActivity&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_LaunchSetupActivity& default_instance() { + return *reinterpret_cast( + &_SharingLog_LaunchSetupActivity_default_instance_); + } + static constexpr int kIndexInFileMessages = 35; + friend void swap(SharingLog_LaunchSetupActivity& a, SharingLog_LaunchSetupActivity& b) { a.Swap(&b); } + inline void Swap(SharingLog_LaunchSetupActivity* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_LaunchSetupActivity* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_LaunchSetupActivity* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_LaunchSetupActivity& from); + void MergeFrom(const SharingLog_LaunchSetupActivity& from) { SharingLog_LaunchSetupActivity::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_LaunchSetupActivity* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity"; } + + explicit SharingLog_LaunchSetupActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_LaunchSetupActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchSetupActivity& from); + SharingLog_LaunchSetupActivity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_LaunchSetupActivity&& from) noexcept + : SharingLog_LaunchSetupActivity(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_LaunchSetupActivity& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_LaunchSetupActivity_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_LaunchPhoneConsent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) */ { + public: + inline SharingLog_LaunchPhoneConsent() : SharingLog_LaunchPhoneConsent(nullptr) {} + ~SharingLog_LaunchPhoneConsent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_LaunchPhoneConsent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_LaunchPhoneConsent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_LaunchPhoneConsent(const SharingLog_LaunchPhoneConsent& from) : SharingLog_LaunchPhoneConsent(nullptr, from) {} + inline SharingLog_LaunchPhoneConsent(SharingLog_LaunchPhoneConsent&& from) noexcept + : SharingLog_LaunchPhoneConsent(nullptr, ::std::move(from)) {} + inline SharingLog_LaunchPhoneConsent& operator=(const SharingLog_LaunchPhoneConsent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_LaunchPhoneConsent& operator=(SharingLog_LaunchPhoneConsent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_LaunchPhoneConsent& default_instance() { + return *reinterpret_cast( + &_SharingLog_LaunchPhoneConsent_default_instance_); + } + static constexpr int kIndexInFileMessages = 48; + friend void swap(SharingLog_LaunchPhoneConsent& a, SharingLog_LaunchPhoneConsent& b) { a.Swap(&b); } + inline void Swap(SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_LaunchPhoneConsent& from); + void MergeFrom(const SharingLog_LaunchPhoneConsent& from) { SharingLog_LaunchPhoneConsent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent"; } + + explicit SharingLog_LaunchPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_LaunchPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchPhoneConsent& from); + SharingLog_LaunchPhoneConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_LaunchPhoneConsent&& from) noexcept + : SharingLog_LaunchPhoneConsent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_LaunchPhoneConsent& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_LaunchPhoneConsent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_LaunchConsent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) */ { + public: + inline SharingLog_LaunchConsent() : SharingLog_LaunchConsent(nullptr) {} + ~SharingLog_LaunchConsent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_LaunchConsent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_LaunchConsent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_LaunchConsent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_LaunchConsent(const SharingLog_LaunchConsent& from) : SharingLog_LaunchConsent(nullptr, from) {} + inline SharingLog_LaunchConsent(SharingLog_LaunchConsent&& from) noexcept + : SharingLog_LaunchConsent(nullptr, ::std::move(from)) {} + inline SharingLog_LaunchConsent& operator=(const SharingLog_LaunchConsent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_LaunchConsent& operator=(SharingLog_LaunchConsent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_LaunchConsent& default_instance() { + return *reinterpret_cast( + &_SharingLog_LaunchConsent_default_instance_); + } + static constexpr int kIndexInFileMessages = 56; + friend void swap(SharingLog_LaunchConsent& a, SharingLog_LaunchConsent& b) { a.Swap(&b); } + inline void Swap(SharingLog_LaunchConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_LaunchConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_LaunchConsent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_LaunchConsent& from); + void MergeFrom(const SharingLog_LaunchConsent& from) { SharingLog_LaunchConsent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_LaunchConsent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.LaunchConsent"; } + + explicit SharingLog_LaunchConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_LaunchConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchConsent& from); + SharingLog_LaunchConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_LaunchConsent&& from) noexcept + : SharingLog_LaunchConsent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kConsentTypeFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; + bool has_consent_type() const; + void clear_consent_type() ; + ::location::nearby::proto::sharing::ConsentType consent_type() const; + void set_consent_type(::location::nearby::proto::sharing::ConsentType value); + + private: + ::location::nearby::proto::sharing::ConsentType _internal_consent_type() const; + void _internal_set_consent_type(::location::nearby::proto::sharing::ConsentType value); + + public: + // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::ConsentAcceptanceStatus status() const; + void set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value); + + private: + ::location::nearby::proto::sharing::ConsentAcceptanceStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_LaunchConsent& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int consent_type_; + int status_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_LaunchConsent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_LaunchActivity final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) */ { + public: + inline SharingLog_LaunchActivity() : SharingLog_LaunchActivity(nullptr) {} + ~SharingLog_LaunchActivity() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_LaunchActivity* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_LaunchActivity)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_LaunchActivity(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_LaunchActivity(const SharingLog_LaunchActivity& from) : SharingLog_LaunchActivity(nullptr, from) {} + inline SharingLog_LaunchActivity(SharingLog_LaunchActivity&& from) noexcept + : SharingLog_LaunchActivity(nullptr, ::std::move(from)) {} + inline SharingLog_LaunchActivity& operator=(const SharingLog_LaunchActivity& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_LaunchActivity& operator=(SharingLog_LaunchActivity&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_LaunchActivity& default_instance() { + return *reinterpret_cast( + &_SharingLog_LaunchActivity_default_instance_); + } + static constexpr int kIndexInFileMessages = 41; + friend void swap(SharingLog_LaunchActivity& a, SharingLog_LaunchActivity& b) { a.Swap(&b); } + inline void Swap(SharingLog_LaunchActivity* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_LaunchActivity* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_LaunchActivity* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_LaunchActivity& from); + void MergeFrom(const SharingLog_LaunchActivity& from) { SharingLog_LaunchActivity::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_LaunchActivity* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.LaunchActivity"; } + + explicit SharingLog_LaunchActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_LaunchActivity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_LaunchActivity& from); + SharingLog_LaunchActivity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_LaunchActivity&& from) noexcept + : SharingLog_LaunchActivity(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 3, + kDurationMillisFieldNumber = 2, + kActivityNameFieldNumber = 1, + kPreviousTransferInProgressFieldNumber = 4, + kHasOptedInFieldNumber = 5, + kIsFinishingFieldNumber = 7, + kSourceActivityNameFieldNumber = 6, + }; + // optional string referrer_name = 3; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional int64 duration_millis = 2; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; + bool has_activity_name() const; + void clear_activity_name() ; + ::location::nearby::proto::sharing::ActivityName activity_name() const; + void set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + private: + ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; + void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); + + public: + // optional bool previous_transfer_in_progress = 4; + bool has_previous_transfer_in_progress() const; + void clear_previous_transfer_in_progress() ; + bool previous_transfer_in_progress() const; + void set_previous_transfer_in_progress(bool value); + + private: + bool _internal_previous_transfer_in_progress() const; + void _internal_set_previous_transfer_in_progress(bool value); + + public: + // optional bool has_opted_in = 5; + bool has_has_opted_in() const; + void clear_has_opted_in() ; + bool has_opted_in() const; + void set_has_opted_in(bool value); + + private: + bool _internal_has_opted_in() const; + void _internal_set_has_opted_in(bool value); + + public: + // optional bool is_finishing = 7; + bool has_is_finishing() const; + void clear_is_finishing() ; + bool is_finishing() const; + void set_is_finishing(bool value); + + private: + bool _internal_is_finishing() const; + void _internal_set_is_finishing(bool value); + + public: + // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; + bool has_source_activity_name() const; + void clear_source_activity_name() ; + ::location::nearby::proto::sharing::ActivityName source_activity_name() const; + void set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); + + private: + ::location::nearby::proto::sharing::ActivityName _internal_source_activity_name() const; + void _internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_LaunchActivity& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::int64_t duration_millis_; + int activity_name_; + bool previous_transfer_in_progress_; + bool has_opted_in_; + bool is_finishing_; + int source_activity_name_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_LaunchActivity_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_InstallAPKStatus final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) */ { + public: + inline SharingLog_InstallAPKStatus() : SharingLog_InstallAPKStatus(nullptr) {} + ~SharingLog_InstallAPKStatus() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_InstallAPKStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_InstallAPKStatus)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_InstallAPKStatus(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_InstallAPKStatus(const SharingLog_InstallAPKStatus& from) : SharingLog_InstallAPKStatus(nullptr, from) {} + inline SharingLog_InstallAPKStatus(SharingLog_InstallAPKStatus&& from) noexcept + : SharingLog_InstallAPKStatus(nullptr, ::std::move(from)) {} + inline SharingLog_InstallAPKStatus& operator=(const SharingLog_InstallAPKStatus& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_InstallAPKStatus& operator=(SharingLog_InstallAPKStatus&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_InstallAPKStatus& default_instance() { + return *reinterpret_cast( + &_SharingLog_InstallAPKStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = 57; + friend void swap(SharingLog_InstallAPKStatus& a, SharingLog_InstallAPKStatus& b) { a.Swap(&b); } + inline void Swap(SharingLog_InstallAPKStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_InstallAPKStatus* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_InstallAPKStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_InstallAPKStatus& from); + void MergeFrom(const SharingLog_InstallAPKStatus& from) { SharingLog_InstallAPKStatus::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_InstallAPKStatus* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus"; } + + explicit SharingLog_InstallAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_InstallAPKStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_InstallAPKStatus& from); + SharingLog_InstallAPKStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_InstallAPKStatus&& from) noexcept + : SharingLog_InstallAPKStatus(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatusFieldNumber = 1, + kSourceFieldNumber = 2, + }; + // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; + int status_size() const; + private: + int _internal_status_size() const; + + public: + void clear_status() ; + public: + ::location::nearby::proto::sharing::InstallAPKStatus status(int index) const; + void set_status(int index, ::location::nearby::proto::sharing::InstallAPKStatus value); + void add_status(::location::nearby::proto::sharing::InstallAPKStatus value); + const ::google::protobuf::RepeatedField& status() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_status(); + + private: + const ::google::protobuf::RepeatedField& _internal_status() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_status(); + + public: + // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; + int source_size() const; + private: + int _internal_source_size() const; + + public: + void clear_source() ; + public: + ::location::nearby::proto::sharing::ApkSource source(int index) const; + void set_source(int index, ::location::nearby::proto::sharing::ApkSource value); + void add_source(::location::nearby::proto::sharing::ApkSource value); + const ::google::protobuf::RepeatedField& source() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_source(); + + private: + const ::google::protobuf::RepeatedField& _internal_source() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_source(); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_InstallAPKStatus& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField status_; + ::google::protobuf::internal::CachedSize _status_cached_byte_size_; + ::google::protobuf::RepeatedField source_; + ::google::protobuf::internal::CachedSize _source_cached_byte_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_InstallAPKStatus_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_HatsJointEvent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) */ { + public: + inline SharingLog_HatsJointEvent() : SharingLog_HatsJointEvent(nullptr) {} + ~SharingLog_HatsJointEvent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_HatsJointEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_HatsJointEvent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_HatsJointEvent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_HatsJointEvent(const SharingLog_HatsJointEvent& from) : SharingLog_HatsJointEvent(nullptr, from) {} + inline SharingLog_HatsJointEvent(SharingLog_HatsJointEvent&& from) noexcept + : SharingLog_HatsJointEvent(nullptr, ::std::move(from)) {} + inline SharingLog_HatsJointEvent& operator=(const SharingLog_HatsJointEvent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_HatsJointEvent& operator=(SharingLog_HatsJointEvent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_HatsJointEvent& default_instance() { + return *reinterpret_cast( + &_SharingLog_HatsJointEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = 82; + friend void swap(SharingLog_HatsJointEvent& a, SharingLog_HatsJointEvent& b) { a.Swap(&b); } + inline void Swap(SharingLog_HatsJointEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_HatsJointEvent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_HatsJointEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_HatsJointEvent& from); + void MergeFrom(const SharingLog_HatsJointEvent& from) { SharingLog_HatsJointEvent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_HatsJointEvent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.HatsJointEvent"; } + + explicit SharingLog_HatsJointEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_HatsJointEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_HatsJointEvent& from); + SharingLog_HatsJointEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_HatsJointEvent&& from) noexcept + : SharingLog_HatsJointEvent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kHatsSessionIdFieldNumber = 2, + kFlowIdFieldNumber = 1, + }; + // optional string hats_session_id = 2; + bool has_hats_session_id() const; + void clear_hats_session_id() ; + const ::std::string& hats_session_id() const; + template + void set_hats_session_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_hats_session_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hats_session_id(); + void set_allocated_hats_session_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_hats_session_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hats_session_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hats_session_id(); + + public: + // optional int64 flow_id = 1; + bool has_flow_id() const; + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_HatsJointEvent& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr hats_session_id_; + ::int64_t flow_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_HatsJointEvent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_FileAttachment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FileAttachment) */ { + public: + inline SharingLog_FileAttachment() : SharingLog_FileAttachment(nullptr) {} + ~SharingLog_FileAttachment() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_FileAttachment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_FileAttachment)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_FileAttachment(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_FileAttachment(const SharingLog_FileAttachment& from) : SharingLog_FileAttachment(nullptr, from) {} + inline SharingLog_FileAttachment(SharingLog_FileAttachment&& from) noexcept + : SharingLog_FileAttachment(nullptr, ::std::move(from)) {} + inline SharingLog_FileAttachment& operator=(const SharingLog_FileAttachment& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_FileAttachment& operator=(SharingLog_FileAttachment&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_FileAttachment& default_instance() { + return *reinterpret_cast( + &_SharingLog_FileAttachment_default_instance_); + } + static constexpr int kIndexInFileMessages = 68; + friend void swap(SharingLog_FileAttachment& a, SharingLog_FileAttachment& b) { a.Swap(&b); } + inline void Swap(SharingLog_FileAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_FileAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_FileAttachment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_FileAttachment& from); + void MergeFrom(const SharingLog_FileAttachment& from) { SharingLog_FileAttachment::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_FileAttachment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.FileAttachment"; } + + explicit SharingLog_FileAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_FileAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FileAttachment& from); + SharingLog_FileAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_FileAttachment&& from) noexcept + : SharingLog_FileAttachment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Type = SharingLog_FileAttachment_Type; + static constexpr Type UNKNOWN_FILE_TYPE = SharingLog_FileAttachment_Type_UNKNOWN_FILE_TYPE; + static constexpr Type IMAGE = SharingLog_FileAttachment_Type_IMAGE; + static constexpr Type VIDEO = SharingLog_FileAttachment_Type_VIDEO; + static constexpr Type ANDROID_APP = SharingLog_FileAttachment_Type_ANDROID_APP; + static constexpr Type AUDIO = SharingLog_FileAttachment_Type_AUDIO; + static constexpr Type DOCUMENT = SharingLog_FileAttachment_Type_DOCUMENT; + static constexpr Type CONTACT_CARD = SharingLog_FileAttachment_Type_CONTACT_CARD; + static inline bool Type_IsValid(int value) { + return SharingLog_FileAttachment_Type_IsValid(value); + } + static constexpr Type Type_MIN = SharingLog_FileAttachment_Type_Type_MIN; + static constexpr Type Type_MAX = SharingLog_FileAttachment_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = SharingLog_FileAttachment_Type_Type_ARRAYSIZE; + template + static inline const ::std::string& Type_Name(T value) { + return SharingLog_FileAttachment_Type_Name(value); + } + static inline bool Type_Parse( + ::absl::string_view name, Type* PROTOBUF_NONNULL value) { + return SharingLog_FileAttachment_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kSizeBytesFieldNumber = 2, + kTypeFieldNumber = 1, + kSourceTypeFieldNumber = 6, + kOffsetBytesFieldNumber = 4, + kBatchIdFieldNumber = 5, + }; + // optional int64 size_bytes = 2; + bool has_size_bytes() const; + void clear_size_bytes() ; + ::int64_t size_bytes() const; + void set_size_bytes(::int64_t value); + + private: + ::int64_t _internal_size_bytes() const; + void _internal_set_size_bytes(::int64_t value); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; + bool has_type() const; + void clear_type() ; + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type type() const; + void set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value); + + private: + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type _internal_type() const; + void _internal_set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value); + + public: + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; + bool has_source_type() const; + void clear_source_type() ; + ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; + void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + private: + ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; + void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + public: + // optional int64 offset_bytes = 4; + bool has_offset_bytes() const; + void clear_offset_bytes() ; + ::int64_t offset_bytes() const; + void set_offset_bytes(::int64_t value); + + private: + ::int64_t _internal_offset_bytes() const; + void _internal_set_offset_bytes(::int64_t value); + + public: + // optional int64 batch_id = 5; + bool has_batch_id() const; + void clear_batch_id() ; + ::int64_t batch_id() const; + void set_batch_id(::int64_t value); + + private: + ::int64_t _internal_batch_id() const; + void _internal_set_batch_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FileAttachment) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_FileAttachment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t size_bytes_; + int type_; + int source_type_; + ::int64_t offset_bytes_; + ::int64_t batch_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_FileAttachment_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_FastShareServerResponse final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) */ { + public: + inline SharingLog_FastShareServerResponse() : SharingLog_FastShareServerResponse(nullptr) {} + ~SharingLog_FastShareServerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_FastShareServerResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_FastShareServerResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_FastShareServerResponse(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_FastShareServerResponse(const SharingLog_FastShareServerResponse& from) : SharingLog_FastShareServerResponse(nullptr, from) {} + inline SharingLog_FastShareServerResponse(SharingLog_FastShareServerResponse&& from) noexcept + : SharingLog_FastShareServerResponse(nullptr, ::std::move(from)) {} + inline SharingLog_FastShareServerResponse& operator=(const SharingLog_FastShareServerResponse& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_FastShareServerResponse& operator=(SharingLog_FastShareServerResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_FastShareServerResponse& default_instance() { + return *reinterpret_cast( + &_SharingLog_FastShareServerResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 38; + friend void swap(SharingLog_FastShareServerResponse& a, SharingLog_FastShareServerResponse& b) { a.Swap(&b); } + inline void Swap(SharingLog_FastShareServerResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_FastShareServerResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_FastShareServerResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_FastShareServerResponse& from); + void MergeFrom(const SharingLog_FastShareServerResponse& from) { SharingLog_FastShareServerResponse::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_FastShareServerResponse* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse"; } + + explicit SharingLog_FastShareServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_FastShareServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastShareServerResponse& from); + SharingLog_FastShareServerResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_FastShareServerResponse&& from) noexcept + : SharingLog_FastShareServerResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatusFieldNumber = 1, + kNameFieldNumber = 2, + kLatencyMillisFieldNumber = 3, + kPurposeFieldNumber = 4, + kRequesterFieldNumber = 5, + kDeviceTypeFieldNumber = 6, + }; + // optional .location.nearby.proto.sharing.ServerResponseState status = 1; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::ServerResponseState status() const; + void set_status(::location::nearby::proto::sharing::ServerResponseState value); + + private: + ::location::nearby::proto::sharing::ServerResponseState _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::ServerResponseState value); + + public: + // optional .location.nearby.proto.sharing.ServerActionName name = 2; + bool has_name() const; + void clear_name() ; + ::location::nearby::proto::sharing::ServerActionName name() const; + void set_name(::location::nearby::proto::sharing::ServerActionName value); + + private: + ::location::nearby::proto::sharing::ServerActionName _internal_name() const; + void _internal_set_name(::location::nearby::proto::sharing::ServerActionName value); + + public: + // optional int64 latency_millis = 3; + bool has_latency_millis() const; + void clear_latency_millis() ; + ::int64_t latency_millis() const; + void set_latency_millis(::int64_t value); + + private: + ::int64_t _internal_latency_millis() const; + void _internal_set_latency_millis(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; + bool has_purpose() const; + void clear_purpose() ; + ::location::nearby::proto::sharing::SyncPurpose purpose() const; + void set_purpose(::location::nearby::proto::sharing::SyncPurpose value); + + private: + ::location::nearby::proto::sharing::SyncPurpose _internal_purpose() const; + void _internal_set_purpose(::location::nearby::proto::sharing::SyncPurpose value); + + public: + // optional .location.nearby.proto.sharing.ClientRole requester = 5; + bool has_requester() const; + void clear_requester() ; + ::location::nearby::proto::sharing::ClientRole requester() const; + void set_requester(::location::nearby::proto::sharing::ClientRole value); + + private: + ::location::nearby::proto::sharing::ClientRole _internal_requester() const; + void _internal_set_requester(::location::nearby::proto::sharing::ClientRole value); + + public: + // optional .location.nearby.proto.sharing.DeviceType device_type = 6; + bool has_device_type() const; + void clear_device_type() ; + ::location::nearby::proto::sharing::DeviceType device_type() const; + void set_device_type(::location::nearby::proto::sharing::DeviceType value); + + private: + ::location::nearby::proto::sharing::DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::proto::sharing::DeviceType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 5, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_FastShareServerResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int status_; + int name_; + ::int64_t latency_millis_; + int purpose_; + int requester_; + int device_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_FastShareServerResponse_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_FastInitDiscoverDevice final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) */ { + public: + inline SharingLog_FastInitDiscoverDevice() : SharingLog_FastInitDiscoverDevice(nullptr) {} + ~SharingLog_FastInitDiscoverDevice() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_FastInitDiscoverDevice)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_FastInitDiscoverDevice(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_FastInitDiscoverDevice(const SharingLog_FastInitDiscoverDevice& from) : SharingLog_FastInitDiscoverDevice(nullptr, from) {} + inline SharingLog_FastInitDiscoverDevice(SharingLog_FastInitDiscoverDevice&& from) noexcept + : SharingLog_FastInitDiscoverDevice(nullptr, ::std::move(from)) {} + inline SharingLog_FastInitDiscoverDevice& operator=(const SharingLog_FastInitDiscoverDevice& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_FastInitDiscoverDevice& operator=(SharingLog_FastInitDiscoverDevice&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_FastInitDiscoverDevice& default_instance() { + return *reinterpret_cast( + &_SharingLog_FastInitDiscoverDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = 64; + friend void swap(SharingLog_FastInitDiscoverDevice& a, SharingLog_FastInitDiscoverDevice& b) { a.Swap(&b); } + inline void Swap(SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_FastInitDiscoverDevice& from); + void MergeFrom(const SharingLog_FastInitDiscoverDevice& from) { SharingLog_FastInitDiscoverDevice::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice"; } + + explicit SharingLog_FastInitDiscoverDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_FastInitDiscoverDevice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_FastInitDiscoverDevice& from); + SharingLog_FastInitDiscoverDevice( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_FastInitDiscoverDevice&& from) noexcept + : SharingLog_FastInitDiscoverDevice(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kFastInitTypeFieldNumber = 2, + kFastInitStateFieldNumber = 3, + }; + // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; + bool has_fast_init_type() const; + void clear_fast_init_type() ; + ::location::nearby::proto::sharing::FastInitType fast_init_type() const; + void set_fast_init_type(::location::nearby::proto::sharing::FastInitType value); + + private: + ::location::nearby::proto::sharing::FastInitType _internal_fast_init_type() const; + void _internal_set_fast_init_type(::location::nearby::proto::sharing::FastInitType value); + + public: + // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; + bool has_fast_init_state() const; + void clear_fast_init_state() ; + ::location::nearby::proto::sharing::FastInitState fast_init_state() const; + void set_fast_init_state(::location::nearby::proto::sharing::FastInitState value); + + private: + ::location::nearby::proto::sharing::FastInitState _internal_fast_init_state() const; + void _internal_set_fast_init_state(::location::nearby::proto::sharing::FastInitState value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_FastInitDiscoverDevice& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int fast_init_type_; + int fast_init_state_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_FastInitDiscoverDevice_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_EventMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EventMetadata) */ { + public: + inline SharingLog_EventMetadata() : SharingLog_EventMetadata(nullptr) {} + ~SharingLog_EventMetadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_EventMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_EventMetadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_EventMetadata(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_EventMetadata(const SharingLog_EventMetadata& from) : SharingLog_EventMetadata(nullptr, from) {} + inline SharingLog_EventMetadata(SharingLog_EventMetadata&& from) noexcept + : SharingLog_EventMetadata(nullptr, ::std::move(from)) {} + inline SharingLog_EventMetadata& operator=(const SharingLog_EventMetadata& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_EventMetadata& operator=(SharingLog_EventMetadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_EventMetadata& default_instance() { + return *reinterpret_cast( + &_SharingLog_EventMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 19; + friend void swap(SharingLog_EventMetadata& a, SharingLog_EventMetadata& b) { a.Swap(&b); } + inline void Swap(SharingLog_EventMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_EventMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_EventMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_EventMetadata& from); + void MergeFrom(const SharingLog_EventMetadata& from) { SharingLog_EventMetadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_EventMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.EventMetadata"; } + + explicit SharingLog_EventMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_EventMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_EventMetadata& from); + SharingLog_EventMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_EventMetadata&& from) noexcept + : SharingLog_EventMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCloudSharingIdFieldNumber = 8, + kCloudReceiverSessionIdFieldNumber = 9, + kExternalProviderNameFieldNumber = 10, + kExternalProviderIdFieldNumber = 11, + kUseCaseFieldNumber = 1, + kInitialOptInFieldNumber = 2, + kOptInFieldNumber = 3, + kInitialEnableStatusFieldNumber = 4, + kIsDirectShareFieldNumber = 12, + kFlowIdFieldNumber = 5, + kSessionIdFieldNumber = 6, + kVendorIdFieldNumber = 7, + }; + // optional string cloud_sharing_id = 8; + bool has_cloud_sharing_id() const; + void clear_cloud_sharing_id() ; + const ::std::string& cloud_sharing_id() const; + template + void set_cloud_sharing_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_cloud_sharing_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cloud_sharing_id(); + void set_allocated_cloud_sharing_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_cloud_sharing_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_sharing_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_cloud_sharing_id(); + + public: + // optional string cloud_receiver_session_id = 9; + bool has_cloud_receiver_session_id() const; + void clear_cloud_receiver_session_id() ; + const ::std::string& cloud_receiver_session_id() const; + template + void set_cloud_receiver_session_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_cloud_receiver_session_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cloud_receiver_session_id(); + void set_allocated_cloud_receiver_session_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_cloud_receiver_session_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_receiver_session_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_cloud_receiver_session_id(); + + public: + // optional string external_provider_name = 10; + bool has_external_provider_name() const; + void clear_external_provider_name() ; + const ::std::string& external_provider_name() const; + template + void set_external_provider_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_external_provider_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_external_provider_name(); + void set_allocated_external_provider_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_external_provider_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_external_provider_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_external_provider_name(); + + public: + // optional string external_provider_id = 11; + bool has_external_provider_id() const; + void clear_external_provider_id() ; + const ::std::string& external_provider_id() const; + template + void set_external_provider_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_external_provider_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_external_provider_id(); + void set_allocated_external_provider_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_external_provider_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_external_provider_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_external_provider_id(); + + public: + // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; + bool has_use_case() const; + void clear_use_case() ; + ::location::nearby::proto::sharing::SharingUseCase use_case() const; + void set_use_case(::location::nearby::proto::sharing::SharingUseCase value); + + private: + ::location::nearby::proto::sharing::SharingUseCase _internal_use_case() const; + void _internal_set_use_case(::location::nearby::proto::sharing::SharingUseCase value); + + public: + // optional bool initial_opt_in = 2 [deprecated = true]; + [[deprecated]] bool has_initial_opt_in() const; + [[deprecated]] void clear_initial_opt_in() ; + [[deprecated]] bool initial_opt_in() const; + [[deprecated]] void set_initial_opt_in(bool value); + + private: + bool _internal_initial_opt_in() const; + void _internal_set_initial_opt_in(bool value); + + public: + // optional bool opt_in = 3 [deprecated = true]; + [[deprecated]] bool has_opt_in() const; + [[deprecated]] void clear_opt_in() ; + [[deprecated]] bool opt_in() const; + [[deprecated]] void set_opt_in(bool value); + + private: + bool _internal_opt_in() const; + void _internal_set_opt_in(bool value); + + public: + // optional bool initial_enable_status = 4 [deprecated = true]; + [[deprecated]] bool has_initial_enable_status() const; + [[deprecated]] void clear_initial_enable_status() ; + [[deprecated]] bool initial_enable_status() const; + [[deprecated]] void set_initial_enable_status(bool value); + + private: + bool _internal_initial_enable_status() const; + void _internal_set_initial_enable_status(bool value); + + public: + // optional bool is_direct_share = 12; + bool has_is_direct_share() const; + void clear_is_direct_share() ; + bool is_direct_share() const; + void set_is_direct_share(bool value); + + private: + bool _internal_is_direct_share() const; + void _internal_set_is_direct_share(bool value); + + public: + // optional int64 flow_id = 5; + bool has_flow_id() const; + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: + // optional int64 session_id = 6; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int32 vendor_id = 7; + bool has_vendor_id() const; + void clear_vendor_id() ; + ::int32_t vendor_id() const; + void set_vendor_id(::int32_t value); + + private: + ::int32_t _internal_vendor_id() const; + void _internal_set_vendor_id(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EventMetadata) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 12, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_EventMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr cloud_sharing_id_; + ::google::protobuf::internal::ArenaStringPtr cloud_receiver_session_id_; + ::google::protobuf::internal::ArenaStringPtr external_provider_name_; + ::google::protobuf::internal::ArenaStringPtr external_provider_id_; + int use_case_; + bool initial_opt_in_; + bool opt_in_; + bool initial_enable_status_; + bool is_direct_share_; + ::int64_t flow_id_; + ::int64_t session_id_; + ::int32_t vendor_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_EventMetadata_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_EnableNearbySharing final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) */ { + public: + inline SharingLog_EnableNearbySharing() : SharingLog_EnableNearbySharing(nullptr) {} + ~SharingLog_EnableNearbySharing() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_EnableNearbySharing* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_EnableNearbySharing)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_EnableNearbySharing(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_EnableNearbySharing(const SharingLog_EnableNearbySharing& from) : SharingLog_EnableNearbySharing(nullptr, from) {} + inline SharingLog_EnableNearbySharing(SharingLog_EnableNearbySharing&& from) noexcept + : SharingLog_EnableNearbySharing(nullptr, ::std::move(from)) {} + inline SharingLog_EnableNearbySharing& operator=(const SharingLog_EnableNearbySharing& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_EnableNearbySharing& operator=(SharingLog_EnableNearbySharing&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_EnableNearbySharing& default_instance() { + return *reinterpret_cast( + &_SharingLog_EnableNearbySharing_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(SharingLog_EnableNearbySharing& a, SharingLog_EnableNearbySharing& b) { a.Swap(&b); } + inline void Swap(SharingLog_EnableNearbySharing* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_EnableNearbySharing* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_EnableNearbySharing* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_EnableNearbySharing& from); + void MergeFrom(const SharingLog_EnableNearbySharing& from) { SharingLog_EnableNearbySharing::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_EnableNearbySharing* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing"; } + + explicit SharingLog_EnableNearbySharing(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_EnableNearbySharing(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_EnableNearbySharing& from); + SharingLog_EnableNearbySharing( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_EnableNearbySharing&& from) noexcept + : SharingLog_EnableNearbySharing(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatusFieldNumber = 1, + kHasOptedInFieldNumber = 2, + }; + // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::NearbySharingStatus status() const; + void set_status(::location::nearby::proto::sharing::NearbySharingStatus value); + + private: + ::location::nearby::proto::sharing::NearbySharingStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::NearbySharingStatus value); + + public: + // optional bool has_opted_in = 2; + bool has_has_opted_in() const; + void clear_has_opted_in() ; + bool has_opted_in() const; + void set_has_opted_in(bool value); + + private: + bool _internal_has_opted_in() const; + void _internal_set_has_opted_in(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_EnableNearbySharing& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int status_; + bool has_opted_in_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EnableNearbySharing_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_DisplayPrivacyNotification final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) */ { + public: + inline SharingLog_DisplayPrivacyNotification() : SharingLog_DisplayPrivacyNotification(nullptr) {} + ~SharingLog_DisplayPrivacyNotification() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DisplayPrivacyNotification)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DisplayPrivacyNotification(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DisplayPrivacyNotification(const SharingLog_DisplayPrivacyNotification& from) : SharingLog_DisplayPrivacyNotification(nullptr, from) {} + inline SharingLog_DisplayPrivacyNotification(SharingLog_DisplayPrivacyNotification&& from) noexcept + : SharingLog_DisplayPrivacyNotification(nullptr, ::std::move(from)) {} + inline SharingLog_DisplayPrivacyNotification& operator=(const SharingLog_DisplayPrivacyNotification& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_DisplayPrivacyNotification& operator=(SharingLog_DisplayPrivacyNotification&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_DisplayPrivacyNotification& default_instance() { + return *reinterpret_cast( + &_SharingLog_DisplayPrivacyNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = 52; + friend void swap(SharingLog_DisplayPrivacyNotification& a, SharingLog_DisplayPrivacyNotification& b) { a.Swap(&b); } + inline void Swap(SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_DisplayPrivacyNotification& from); + void MergeFrom(const SharingLog_DisplayPrivacyNotification& from) { SharingLog_DisplayPrivacyNotification::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification"; } + + explicit SharingLog_DisplayPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DisplayPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPrivacyNotification& from); + SharingLog_DisplayPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DisplayPrivacyNotification&& from) noexcept + : SharingLog_DisplayPrivacyNotification(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DisplayPrivacyNotification& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DisplayPrivacyNotification_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_DisplayPhoneConsent final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) */ { + public: + inline SharingLog_DisplayPhoneConsent() : SharingLog_DisplayPhoneConsent(nullptr) {} + ~SharingLog_DisplayPhoneConsent() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DisplayPhoneConsent)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DisplayPhoneConsent(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DisplayPhoneConsent(const SharingLog_DisplayPhoneConsent& from) : SharingLog_DisplayPhoneConsent(nullptr, from) {} + inline SharingLog_DisplayPhoneConsent(SharingLog_DisplayPhoneConsent&& from) noexcept + : SharingLog_DisplayPhoneConsent(nullptr, ::std::move(from)) {} + inline SharingLog_DisplayPhoneConsent& operator=(const SharingLog_DisplayPhoneConsent& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_DisplayPhoneConsent& operator=(SharingLog_DisplayPhoneConsent&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_DisplayPhoneConsent& default_instance() { + return *reinterpret_cast( + &_SharingLog_DisplayPhoneConsent_default_instance_); + } + static constexpr int kIndexInFileMessages = 49; + friend void swap(SharingLog_DisplayPhoneConsent& a, SharingLog_DisplayPhoneConsent& b) { a.Swap(&b); } + inline void Swap(SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_DisplayPhoneConsent& from); + void MergeFrom(const SharingLog_DisplayPhoneConsent& from) { SharingLog_DisplayPhoneConsent::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent"; } + + explicit SharingLog_DisplayPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DisplayPhoneConsent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DisplayPhoneConsent& from); + SharingLog_DisplayPhoneConsent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DisplayPhoneConsent&& from) noexcept + : SharingLog_DisplayPhoneConsent(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DisplayPhoneConsent& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DisplayPhoneConsent_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_DismissPrivacyNotification final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) */ { + public: + inline SharingLog_DismissPrivacyNotification() : SharingLog_DismissPrivacyNotification(nullptr) {} + ~SharingLog_DismissPrivacyNotification() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DismissPrivacyNotification)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DismissPrivacyNotification(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DismissPrivacyNotification(const SharingLog_DismissPrivacyNotification& from) : SharingLog_DismissPrivacyNotification(nullptr, from) {} + inline SharingLog_DismissPrivacyNotification(SharingLog_DismissPrivacyNotification&& from) noexcept + : SharingLog_DismissPrivacyNotification(nullptr, ::std::move(from)) {} + inline SharingLog_DismissPrivacyNotification& operator=(const SharingLog_DismissPrivacyNotification& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_DismissPrivacyNotification& operator=(SharingLog_DismissPrivacyNotification&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_DismissPrivacyNotification& default_instance() { + return *reinterpret_cast( + &_SharingLog_DismissPrivacyNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = 42; + friend void swap(SharingLog_DismissPrivacyNotification& a, SharingLog_DismissPrivacyNotification& b) { a.Swap(&b); } + inline void Swap(SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_DismissPrivacyNotification& from); + void MergeFrom(const SharingLog_DismissPrivacyNotification& from) { SharingLog_DismissPrivacyNotification::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification"; } + + explicit SharingLog_DismissPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DismissPrivacyNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissPrivacyNotification& from); + SharingLog_DismissPrivacyNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DismissPrivacyNotification&& from) noexcept + : SharingLog_DismissPrivacyNotification(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DismissPrivacyNotification& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_DismissPrivacyNotification_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_DismissFastInitialization final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) */ { + public: + inline SharingLog_DismissFastInitialization() : SharingLog_DismissFastInitialization(nullptr) {} + ~SharingLog_DismissFastInitialization() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DismissFastInitialization* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DismissFastInitialization)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DismissFastInitialization(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DismissFastInitialization(const SharingLog_DismissFastInitialization& from) : SharingLog_DismissFastInitialization(nullptr, from) {} + inline SharingLog_DismissFastInitialization(SharingLog_DismissFastInitialization&& from) noexcept + : SharingLog_DismissFastInitialization(nullptr, ::std::move(from)) {} + inline SharingLog_DismissFastInitialization& operator=(const SharingLog_DismissFastInitialization& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_DismissFastInitialization& operator=(SharingLog_DismissFastInitialization&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_DismissFastInitialization& default_instance() { + return *reinterpret_cast( + &_SharingLog_DismissFastInitialization_default_instance_); + } + static constexpr int kIndexInFileMessages = 17; + friend void swap(SharingLog_DismissFastInitialization& a, SharingLog_DismissFastInitialization& b) { a.Swap(&b); } + inline void Swap(SharingLog_DismissFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_DismissFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_DismissFastInitialization* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_DismissFastInitialization& from); + void MergeFrom(const SharingLog_DismissFastInitialization& from) { SharingLog_DismissFastInitialization::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DismissFastInitialization* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization"; } + + explicit SharingLog_DismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DismissFastInitialization& from); + SharingLog_DismissFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DismissFastInitialization&& from) noexcept + : SharingLog_DismissFastInitialization(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DismissFastInitialization& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DismissFastInitialization_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_DeviceSettings final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) */ { + public: + inline SharingLog_DeviceSettings() : SharingLog_DeviceSettings(nullptr) {} + ~SharingLog_DeviceSettings() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DeviceSettings* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DeviceSettings)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DeviceSettings(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DeviceSettings(const SharingLog_DeviceSettings& from) : SharingLog_DeviceSettings(nullptr, from) {} + inline SharingLog_DeviceSettings(SharingLog_DeviceSettings&& from) noexcept + : SharingLog_DeviceSettings(nullptr, ::std::move(from)) {} inline SharingLog_DeviceSettings& operator=(const SharingLog_DeviceSettings& from) { CopyFrom(from); return *this; } inline SharingLog_DeviceSettings& operator=(SharingLog_DeviceSettings&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -744,87 +10721,102 @@ class SharingLog_DeviceSettings final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_DeviceSettings& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_DeviceSettings_default_instance_); } - static inline const SharingLog_DeviceSettings* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DeviceSettings_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(SharingLog_DeviceSettings& a, SharingLog_DeviceSettings& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DeviceSettings* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(SharingLog_DeviceSettings& a, SharingLog_DeviceSettings& b) { a.Swap(&b); } + inline void Swap(SharingLog_DeviceSettings* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_DeviceSettings* other) { + void UnsafeArenaSwap(SharingLog_DeviceSettings* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_DeviceSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_DeviceSettings* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_DeviceSettings& from); - void MergeFrom(const SharingLog_DeviceSettings& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_DeviceSettings& from) { SharingLog_DeviceSettings::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DeviceSettings* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DeviceSettings"; - } - protected: - explicit SharingLog_DeviceSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DeviceSettings* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DeviceSettings"; } + + explicit SharingLog_DeviceSettings(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DeviceSettings(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeviceSettings& from); + SharingLog_DeviceSettings( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DeviceSettings&& from) noexcept + : SharingLog_DeviceSettings(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kVisibilityFieldNumber = 1, kDataUsageFieldNumber = 2, @@ -841,396 +10833,209 @@ class SharingLog_DeviceSettings final : }; // optional .location.nearby.proto.sharing.Visibility visibility = 1; bool has_visibility() const; - private: - bool _internal_has_visibility() const; - public: - void clear_visibility(); + void clear_visibility() ; ::location::nearby::proto::sharing::Visibility visibility() const; void set_visibility(::location::nearby::proto::sharing::Visibility value); + private: ::location::nearby::proto::sharing::Visibility _internal_visibility() const; void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); - public: + public: // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; bool has_data_usage() const; - private: - bool _internal_has_data_usage() const; - public: - void clear_data_usage(); + void clear_data_usage() ; ::location::nearby::proto::sharing::DataUsage data_usage() const; void set_data_usage(::location::nearby::proto::sharing::DataUsage value); + private: ::location::nearby::proto::sharing::DataUsage _internal_data_usage() const; void _internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value); - public: + public: // optional int32 device_name_size = 3; bool has_device_name_size() const; - private: - bool _internal_has_device_name_size() const; - public: - void clear_device_name_size(); - int32_t device_name_size() const; - void set_device_name_size(int32_t value); - private: - int32_t _internal_device_name_size() const; - void _internal_set_device_name_size(int32_t value); - public: + void clear_device_name_size() ; + ::int32_t device_name_size() const; + void set_device_name_size(::int32_t value); + private: + ::int32_t _internal_device_name_size() const; + void _internal_set_device_name_size(::int32_t value); + + public: // optional bool is_show_notification_enabled = 4; bool has_is_show_notification_enabled() const; - private: - bool _internal_has_is_show_notification_enabled() const; - public: - void clear_is_show_notification_enabled(); + void clear_is_show_notification_enabled() ; bool is_show_notification_enabled() const; void set_is_show_notification_enabled(bool value); + private: bool _internal_is_show_notification_enabled() const; void _internal_set_is_show_notification_enabled(bool value); - public: + public: // optional bool is_bt_enabled = 5; bool has_is_bt_enabled() const; - private: - bool _internal_has_is_bt_enabled() const; - public: - void clear_is_bt_enabled(); + void clear_is_bt_enabled() ; bool is_bt_enabled() const; void set_is_bt_enabled(bool value); + private: bool _internal_is_bt_enabled() const; void _internal_set_is_bt_enabled(bool value); - public: + public: // optional bool is_location_enabled = 6; bool has_is_location_enabled() const; - private: - bool _internal_has_is_location_enabled() const; - public: - void clear_is_location_enabled(); + void clear_is_location_enabled() ; bool is_location_enabled() const; void set_is_location_enabled(bool value); + private: bool _internal_is_location_enabled() const; void _internal_set_is_location_enabled(bool value); - public: + public: // optional bool is_wifi_enabled = 7; bool has_is_wifi_enabled() const; - private: - bool _internal_has_is_wifi_enabled() const; - public: - void clear_is_wifi_enabled(); + void clear_is_wifi_enabled() ; bool is_wifi_enabled() const; void set_is_wifi_enabled(bool value); + private: bool _internal_is_wifi_enabled() const; void _internal_set_is_wifi_enabled(bool value); - public: + public: // optional int32 first_successful_transfer_date = 8; bool has_first_successful_transfer_date() const; - private: - bool _internal_has_first_successful_transfer_date() const; - public: - void clear_first_successful_transfer_date(); - int32_t first_successful_transfer_date() const; - void set_first_successful_transfer_date(int32_t value); - private: - int32_t _internal_first_successful_transfer_date() const; - void _internal_set_first_successful_transfer_date(int32_t value); - public: + void clear_first_successful_transfer_date() ; + ::int32_t first_successful_transfer_date() const; + void set_first_successful_transfer_date(::int32_t value); + private: + ::int32_t _internal_first_successful_transfer_date() const; + void _internal_set_first_successful_transfer_date(::int32_t value); + + public: // optional int32 previous_successful_transfer_date = 9; bool has_previous_successful_transfer_date() const; - private: - bool _internal_has_previous_successful_transfer_date() const; - public: - void clear_previous_successful_transfer_date(); - int32_t previous_successful_transfer_date() const; - void set_previous_successful_transfer_date(int32_t value); - private: - int32_t _internal_previous_successful_transfer_date() const; - void _internal_set_previous_successful_transfer_date(int32_t value); - public: + void clear_previous_successful_transfer_date() ; + ::int32_t previous_successful_transfer_date() const; + void set_previous_successful_transfer_date(::int32_t value); + private: + ::int32_t _internal_previous_successful_transfer_date() const; + void _internal_set_previous_successful_transfer_date(::int32_t value); + + public: // optional int32 lifetime_transfer_count = 10; bool has_lifetime_transfer_count() const; - private: - bool _internal_has_lifetime_transfer_count() const; - public: - void clear_lifetime_transfer_count(); - int32_t lifetime_transfer_count() const; - void set_lifetime_transfer_count(int32_t value); - private: - int32_t _internal_lifetime_transfer_count() const; - void _internal_set_lifetime_transfer_count(int32_t value); - public: + void clear_lifetime_transfer_count() ; + ::int32_t lifetime_transfer_count() const; + void set_lifetime_transfer_count(::int32_t value); + private: + ::int32_t _internal_lifetime_transfer_count() const; + void _internal_set_lifetime_transfer_count(::int32_t value); + + public: // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; bool has_contact_access() const; - private: - bool _internal_has_contact_access() const; - public: - void clear_contact_access(); + void clear_contact_access() ; ::location::nearby::proto::sharing::ContactAccess contact_access() const; void set_contact_access(::location::nearby::proto::sharing::ContactAccess value); + private: ::location::nearby::proto::sharing::ContactAccess _internal_contact_access() const; void _internal_set_contact_access(::location::nearby::proto::sharing::ContactAccess value); - public: + public: // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; bool has_identity_verification() const; - private: - bool _internal_has_identity_verification() const; - public: - void clear_identity_verification(); + void clear_identity_verification() ; ::location::nearby::proto::sharing::IdentityVerification identity_verification() const; void set_identity_verification(::location::nearby::proto::sharing::IdentityVerification value); + private: ::location::nearby::proto::sharing::IdentityVerification _internal_identity_verification() const; void _internal_set_identity_verification(::location::nearby::proto::sharing::IdentityVerification value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DeviceSettings) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 12, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int visibility_; - int data_usage_; - int32_t device_name_size_; - bool is_show_notification_enabled_; - bool is_bt_enabled_; - bool is_location_enabled_; - bool is_wifi_enabled_; - int32_t first_successful_transfer_date_; - int32_t previous_successful_transfer_date_; - int32_t lifetime_transfer_count_; - int contact_access_; - int identity_verification_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_PreferencesUsage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) */ { - public: - inline SharingLog_PreferencesUsage() : SharingLog_PreferencesUsage(nullptr) {} - ~SharingLog_PreferencesUsage() override; - explicit constexpr SharingLog_PreferencesUsage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_PreferencesUsage(const SharingLog_PreferencesUsage& from); - SharingLog_PreferencesUsage(SharingLog_PreferencesUsage&& from) noexcept - : SharingLog_PreferencesUsage() { - *this = ::std::move(from); - } - - inline SharingLog_PreferencesUsage& operator=(const SharingLog_PreferencesUsage& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_PreferencesUsage& operator=(SharingLog_PreferencesUsage&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_PreferencesUsage& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_PreferencesUsage* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_PreferencesUsage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SharingLog_PreferencesUsage& a, SharingLog_PreferencesUsage& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_PreferencesUsage* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_PreferencesUsage* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_PreferencesUsage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_PreferencesUsage& from); - void MergeFrom(const SharingLog_PreferencesUsage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_PreferencesUsage* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.PreferencesUsage"; - } - protected: - explicit SharingLog_PreferencesUsage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionFieldNumber = 1, - kActionStatusFieldNumber = 2, - kPrevSubActionFieldNumber = 3, - kNextSubActionFieldNumber = 4, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DeviceSettings& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int visibility_; + int data_usage_; + ::int32_t device_name_size_; + bool is_show_notification_enabled_; + bool is_bt_enabled_; + bool is_location_enabled_; + bool is_wifi_enabled_; + ::int32_t first_successful_transfer_date_; + ::int32_t previous_successful_transfer_date_; + ::int32_t lifetime_transfer_count_; + int contact_access_; + int identity_verification_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional .location.nearby.proto.sharing.PreferencesAction action = 1; - bool has_action() const; - private: - bool _internal_has_action() const; - public: - void clear_action(); - ::location::nearby::proto::sharing::PreferencesAction action() const; - void set_action(::location::nearby::proto::sharing::PreferencesAction value); - private: - ::location::nearby::proto::sharing::PreferencesAction _internal_action() const; - void _internal_set_action(::location::nearby::proto::sharing::PreferencesAction value); - public: - - // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; - bool has_action_status() const; - private: - bool _internal_has_action_status() const; - public: - void clear_action_status(); - ::location::nearby::proto::sharing::PreferencesActionStatus action_status() const; - void set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value); - private: - ::location::nearby::proto::sharing::PreferencesActionStatus _internal_action_status() const; - void _internal_set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value); - public: - - // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; - bool has_prev_sub_action() const; - private: - bool _internal_has_prev_sub_action() const; - public: - void clear_prev_sub_action(); - ::location::nearby::proto::sharing::PreferencesAction prev_sub_action() const; - void set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value); - private: - ::location::nearby::proto::sharing::PreferencesAction _internal_prev_sub_action() const; - void _internal_set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value); - public: - - // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; - bool has_next_sub_action() const; - private: - bool _internal_has_next_sub_action() const; - public: - void clear_next_sub_action(); - ::location::nearby::proto::sharing::PreferencesAction next_sub_action() const; - void set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value); - private: - ::location::nearby::proto::sharing::PreferencesAction _internal_next_sub_action() const; - void _internal_set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int action_; - int action_status_; - int prev_sub_action_; - int next_sub_action_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_DeviceSettings_class_data_; // ------------------------------------------------------------------- -class SharingLog_UnknownEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) */ { +class SharingLog_DefaultOptIn final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) */ { public: - inline SharingLog_UnknownEvent() : SharingLog_UnknownEvent(nullptr) {} - ~SharingLog_UnknownEvent() override; - explicit constexpr SharingLog_UnknownEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_DefaultOptIn() : SharingLog_DefaultOptIn(nullptr) {} + ~SharingLog_DefaultOptIn() PROTOBUF_FINAL; - SharingLog_UnknownEvent(const SharingLog_UnknownEvent& from); - SharingLog_UnknownEvent(SharingLog_UnknownEvent&& from) noexcept - : SharingLog_UnknownEvent() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DefaultOptIn* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DefaultOptIn)); } +#endif - inline SharingLog_UnknownEvent& operator=(const SharingLog_UnknownEvent& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_DefaultOptIn(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DefaultOptIn(const SharingLog_DefaultOptIn& from) : SharingLog_DefaultOptIn(nullptr, from) {} + inline SharingLog_DefaultOptIn(SharingLog_DefaultOptIn&& from) noexcept + : SharingLog_DefaultOptIn(nullptr, ::std::move(from)) {} + inline SharingLog_DefaultOptIn& operator=(const SharingLog_DefaultOptIn& from) { CopyFrom(from); return *this; } - inline SharingLog_UnknownEvent& operator=(SharingLog_UnknownEvent&& from) noexcept { + inline SharingLog_DefaultOptIn& operator=(SharingLog_DefaultOptIn&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1238,123 +11043,162 @@ class SharingLog_UnknownEvent final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_UnknownEvent& default_instance() { - return *internal_default_instance(); + static const SharingLog_DefaultOptIn& default_instance() { + return *reinterpret_cast( + &_SharingLog_DefaultOptIn_default_instance_); } - static inline const SharingLog_UnknownEvent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_UnknownEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(SharingLog_UnknownEvent& a, SharingLog_UnknownEvent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_UnknownEvent* other) { + static constexpr int kIndexInFileMessages = 53; + friend void swap(SharingLog_DefaultOptIn& a, SharingLog_DefaultOptIn& b) { a.Swap(&b); } + inline void Swap(SharingLog_DefaultOptIn* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_UnknownEvent* other) { + void UnsafeArenaSwap(SharingLog_DefaultOptIn* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_UnknownEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_DefaultOptIn* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_UnknownEvent& from); - void MergeFrom(const SharingLog_UnknownEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_DefaultOptIn& from); + void MergeFrom(const SharingLog_DefaultOptIn& from) { SharingLog_DefaultOptIn::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_UnknownEvent* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.UnknownEvent"; - } - protected: - explicit SharingLog_UnknownEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DefaultOptIn* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DefaultOptIn"; } + + explicit SharingLog_DefaultOptIn(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DefaultOptIn(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DefaultOptIn& from); + SharingLog_DefaultOptIn( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DefaultOptIn&& from) noexcept + : SharingLog_DefaultOptIn(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.UnknownEvent) + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DefaultOptIn& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<55> SharingLog_DefaultOptIn_class_data_; // ------------------------------------------------------------------- -class SharingLog_EstablishConnection final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) */ { +class SharingLog_DecryptCertificateFailure final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) */ { public: - inline SharingLog_EstablishConnection() : SharingLog_EstablishConnection(nullptr) {} - ~SharingLog_EstablishConnection() override; - explicit constexpr SharingLog_EstablishConnection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_DecryptCertificateFailure() : SharingLog_DecryptCertificateFailure(nullptr) {} + ~SharingLog_DecryptCertificateFailure() PROTOBUF_FINAL; - SharingLog_EstablishConnection(const SharingLog_EstablishConnection& from); - SharingLog_EstablishConnection(SharingLog_EstablishConnection&& from) noexcept - : SharingLog_EstablishConnection() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DecryptCertificateFailure)); } +#endif - inline SharingLog_EstablishConnection& operator=(const SharingLog_EstablishConnection& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_DecryptCertificateFailure(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DecryptCertificateFailure(const SharingLog_DecryptCertificateFailure& from) : SharingLog_DecryptCertificateFailure(nullptr, from) {} + inline SharingLog_DecryptCertificateFailure(SharingLog_DecryptCertificateFailure&& from) noexcept + : SharingLog_DecryptCertificateFailure(nullptr, ::std::move(from)) {} + inline SharingLog_DecryptCertificateFailure& operator=(const SharingLog_DecryptCertificateFailure& from) { CopyFrom(from); return *this; } - inline SharingLog_EstablishConnection& operator=(SharingLog_EstablishConnection&& from) noexcept { + inline SharingLog_DecryptCertificateFailure& operator=(SharingLog_DecryptCertificateFailure&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1362,415 +11206,178 @@ class SharingLog_EstablishConnection final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_EstablishConnection& default_instance() { - return *internal_default_instance(); + static const SharingLog_DecryptCertificateFailure& default_instance() { + return *reinterpret_cast( + &_SharingLog_DecryptCertificateFailure_default_instance_); } - static inline const SharingLog_EstablishConnection* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_EstablishConnection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(SharingLog_EstablishConnection& a, SharingLog_EstablishConnection& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_EstablishConnection* other) { + static constexpr int kIndexInFileMessages = 60; + friend void swap(SharingLog_DecryptCertificateFailure& a, SharingLog_DecryptCertificateFailure& b) { a.Swap(&b); } + inline void Swap(SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_EstablishConnection* other) { + void UnsafeArenaSwap(SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_EstablishConnection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_EstablishConnection& from); - void MergeFrom(const SharingLog_EstablishConnection& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_DecryptCertificateFailure& from); + void MergeFrom(const SharingLog_DecryptCertificateFailure& from) { SharingLog_DecryptCertificateFailure::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_EstablishConnection* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.EstablishConnection"; - } - protected: - explicit SharingLog_EstablishConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure"; } + + explicit SharingLog_DecryptCertificateFailure(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DecryptCertificateFailure(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DecryptCertificateFailure& from); + SharingLog_DecryptCertificateFailure( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DecryptCertificateFailure&& from) noexcept + : SharingLog_DecryptCertificateFailure(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReferrerNameFieldNumber = 7, - kShareTargetInfoFieldNumber = 6, - kQrCodeReceiverConnectLatencyFieldNumber = 10, - kSessionIdFieldNumber = 2, kStatusFieldNumber = 1, - kTransferPositionFieldNumber = 3, - kDurationMillisFieldNumber = 5, - kConcurrentConnectionsFieldNumber = 4, - kQrCodeFlowFieldNumber = 8, - kIsIncomingConnectionFieldNumber = 9, }; - // optional string referrer_name = 7; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; - bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); - - // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; - bool has_qr_code_receiver_connect_latency() const; - private: - bool _internal_has_qr_code_receiver_connect_latency() const; - public: - void clear_qr_code_receiver_connect_latency(); - const ::PROTOBUF_NAMESPACE_ID::Duration& qr_code_receiver_connect_latency() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_qr_code_receiver_connect_latency(); - ::PROTOBUF_NAMESPACE_ID::Duration* mutable_qr_code_receiver_connect_latency(); - void set_allocated_qr_code_receiver_connect_latency(::PROTOBUF_NAMESPACE_ID::Duration* qr_code_receiver_connect_latency); - private: - const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_qr_code_receiver_connect_latency() const; - ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_qr_code_receiver_connect_latency(); - public: - void unsafe_arena_set_allocated_qr_code_receiver_connect_latency( - ::PROTOBUF_NAMESPACE_ID::Duration* qr_code_receiver_connect_latency); - ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_qr_code_receiver_connect_latency(); - - // optional int64 session_id = 2; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; + // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::EstablishConnectionStatus status() const; - void set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value); - private: - ::location::nearby::proto::sharing::EstablishConnectionStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value); - public: + void clear_status() ; + ::location::nearby::proto::sharing::DecryptCertificateFailureStatus status() const; + void set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value); - // optional int32 transfer_position = 3; - bool has_transfer_position() const; private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: + ::location::nearby::proto::sharing::DecryptCertificateFailureStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value); - // optional int64 duration_millis = 5; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional int32 concurrent_connections = 4; - bool has_concurrent_connections() const; - private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); - public: - - // optional bool qr_code_flow = 8 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_qr_code_flow() const; - private: - bool _internal_has_qr_code_flow() const; - public: - PROTOBUF_DEPRECATED void clear_qr_code_flow(); - PROTOBUF_DEPRECATED bool qr_code_flow() const; - PROTOBUF_DEPRECATED void set_qr_code_flow(bool value); - private: - bool _internal_qr_code_flow() const; - void _internal_set_qr_code_flow(bool value); - public: - - // optional bool is_incoming_connection = 9; - bool has_is_incoming_connection() const; - private: - bool _internal_has_is_incoming_connection() const; - public: - void clear_is_incoming_connection(); - bool is_incoming_connection() const; - void set_is_incoming_connection(bool value); - private: - bool _internal_is_incoming_connection() const; - void _internal_set_is_incoming_connection(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - ::PROTOBUF_NAMESPACE_ID::Duration* qr_code_receiver_connect_latency_; - int64_t session_id_; - int status_; - int32_t transfer_position_; - int64_t duration_millis_; - int32_t concurrent_connections_; - bool qr_code_flow_; - bool is_incoming_connection_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DecryptCertificateFailure& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int status_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_DecryptCertificateFailure_class_data_; // ------------------------------------------------------------------- -class SharingLog_AcceptAgreements final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) */ { - public: - inline SharingLog_AcceptAgreements() : SharingLog_AcceptAgreements(nullptr) {} - ~SharingLog_AcceptAgreements() override; - explicit constexpr SharingLog_AcceptAgreements(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AcceptAgreements(const SharingLog_AcceptAgreements& from); - SharingLog_AcceptAgreements(SharingLog_AcceptAgreements&& from) noexcept - : SharingLog_AcceptAgreements() { - *this = ::std::move(from); - } - - inline SharingLog_AcceptAgreements& operator=(const SharingLog_AcceptAgreements& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AcceptAgreements& operator=(SharingLog_AcceptAgreements&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AcceptAgreements& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AcceptAgreements* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AcceptAgreements_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SharingLog_AcceptAgreements& a, SharingLog_AcceptAgreements& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AcceptAgreements* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AcceptAgreements* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AcceptAgreements* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AcceptAgreements& from); - void MergeFrom(const SharingLog_AcceptAgreements& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AcceptAgreements* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AcceptAgreements"; - } - protected: - explicit SharingLog_AcceptAgreements(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DeclineAgreements final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) */ { +class SharingLog_DeclineAgreements final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) */ { public: inline SharingLog_DeclineAgreements() : SharingLog_DeclineAgreements(nullptr) {} - ~SharingLog_DeclineAgreements() override; - explicit constexpr SharingLog_DeclineAgreements(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_DeclineAgreements() PROTOBUF_FINAL; - SharingLog_DeclineAgreements(const SharingLog_DeclineAgreements& from); - SharingLog_DeclineAgreements(SharingLog_DeclineAgreements&& from) noexcept - : SharingLog_DeclineAgreements() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DeclineAgreements* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DeclineAgreements)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_DeclineAgreements(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DeclineAgreements(const SharingLog_DeclineAgreements& from) : SharingLog_DeclineAgreements(nullptr, from) {} + inline SharingLog_DeclineAgreements(SharingLog_DeclineAgreements&& from) noexcept + : SharingLog_DeclineAgreements(nullptr, ::std::move(from)) {} inline SharingLog_DeclineAgreements& operator=(const SharingLog_DeclineAgreements& from) { CopyFrom(from); return *this; } inline SharingLog_DeclineAgreements& operator=(SharingLog_DeclineAgreements&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1778,123 +11385,162 @@ class SharingLog_DeclineAgreements final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_DeclineAgreements& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_DeclineAgreements_default_instance_); } - static inline const SharingLog_DeclineAgreements* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DeclineAgreements_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SharingLog_DeclineAgreements& a, SharingLog_DeclineAgreements& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DeclineAgreements* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(SharingLog_DeclineAgreements& a, SharingLog_DeclineAgreements& b) { a.Swap(&b); } + inline void Swap(SharingLog_DeclineAgreements* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_DeclineAgreements* other) { + void UnsafeArenaSwap(SharingLog_DeclineAgreements* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_DeclineAgreements* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_DeclineAgreements* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_DeclineAgreements& from); - void MergeFrom(const SharingLog_DeclineAgreements& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_DeclineAgreements& from) { SharingLog_DeclineAgreements::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DeclineAgreements* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DeclineAgreements"; - } - protected: - explicit SharingLog_DeclineAgreements(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DeclineAgreements* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DeclineAgreements"; } + + explicit SharingLog_DeclineAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DeclineAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DeclineAgreements& from); + SharingLog_DeclineAgreements( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DeclineAgreements&& from) noexcept + : SharingLog_DeclineAgreements(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DeclineAgreements) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DeclineAgreements& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<60> SharingLog_DeclineAgreements_class_data_; // ------------------------------------------------------------------- -class SharingLog_EnableNearbySharing final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) */ { +class SharingLog_CloudSharingRpcResult final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) */ { public: - inline SharingLog_EnableNearbySharing() : SharingLog_EnableNearbySharing(nullptr) {} - ~SharingLog_EnableNearbySharing() override; - explicit constexpr SharingLog_EnableNearbySharing(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CloudSharingRpcResult() : SharingLog_CloudSharingRpcResult(nullptr) {} + ~SharingLog_CloudSharingRpcResult() PROTOBUF_FINAL; - SharingLog_EnableNearbySharing(const SharingLog_EnableNearbySharing& from); - SharingLog_EnableNearbySharing(SharingLog_EnableNearbySharing&& from) noexcept - : SharingLog_EnableNearbySharing() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudSharingRpcResult)); } +#endif - inline SharingLog_EnableNearbySharing& operator=(const SharingLog_EnableNearbySharing& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudSharingRpcResult(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudSharingRpcResult(const SharingLog_CloudSharingRpcResult& from) : SharingLog_CloudSharingRpcResult(nullptr, from) {} + inline SharingLog_CloudSharingRpcResult(SharingLog_CloudSharingRpcResult&& from) noexcept + : SharingLog_CloudSharingRpcResult(nullptr, ::std::move(from)) {} + inline SharingLog_CloudSharingRpcResult& operator=(const SharingLog_CloudSharingRpcResult& from) { CopyFrom(from); return *this; } - inline SharingLog_EnableNearbySharing& operator=(SharingLog_EnableNearbySharing&& from) noexcept { + inline SharingLog_CloudSharingRpcResult& operator=(SharingLog_CloudSharingRpcResult&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1902,156 +11548,227 @@ class SharingLog_EnableNearbySharing final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_EnableNearbySharing& default_instance() { - return *internal_default_instance(); + static const SharingLog_CloudSharingRpcResult& default_instance() { + return *reinterpret_cast( + &_SharingLog_CloudSharingRpcResult_default_instance_); } - static inline const SharingLog_EnableNearbySharing* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_EnableNearbySharing_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(SharingLog_EnableNearbySharing& a, SharingLog_EnableNearbySharing& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_EnableNearbySharing* other) { + static constexpr int kIndexInFileMessages = 90; + friend void swap(SharingLog_CloudSharingRpcResult& a, SharingLog_CloudSharingRpcResult& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_EnableNearbySharing* other) { + void UnsafeArenaSwap(SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_EnableNearbySharing* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_EnableNearbySharing& from); - void MergeFrom(const SharingLog_EnableNearbySharing& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CloudSharingRpcResult& from); + void MergeFrom(const SharingLog_CloudSharingRpcResult& from) { SharingLog_CloudSharingRpcResult::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_EnableNearbySharing* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing"; - } - protected: - explicit SharingLog_EnableNearbySharing(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult"; } + + explicit SharingLog_CloudSharingRpcResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudSharingRpcResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudSharingRpcResult& from); + SharingLog_CloudSharingRpcResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudSharingRpcResult&& from) noexcept + : SharingLog_CloudSharingRpcResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kStatusFieldNumber = 1, - kHasOptedInFieldNumber = 2, + kRpcNameFieldNumber = 1, + kCloudSharingIdFieldNumber = 4, + kLatencyMillisFieldNumber = 3, + kStatusCodeFieldNumber = 2, }; - // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::NearbySharingStatus status() const; - void set_status(::location::nearby::proto::sharing::NearbySharingStatus value); - private: - ::location::nearby::proto::sharing::NearbySharingStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::NearbySharingStatus value); - public: + // optional string rpc_name = 1; + bool has_rpc_name() const; + void clear_rpc_name() ; + const ::std::string& rpc_name() const; + template + void set_rpc_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_rpc_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rpc_name(); + void set_allocated_rpc_name(::std::string* PROTOBUF_NULLABLE value); - // optional bool has_opted_in = 2; - bool has_has_opted_in() const; private: - bool _internal_has_has_opted_in() const; - public: - void clear_has_opted_in(); - bool has_opted_in() const; - void set_has_opted_in(bool value); - private: - bool _internal_has_opted_in() const; - void _internal_set_has_opted_in(bool value); - public: + const ::std::string& _internal_rpc_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rpc_name(); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing) + public: + // optional string cloud_sharing_id = 4; + bool has_cloud_sharing_id() const; + void clear_cloud_sharing_id() ; + const ::std::string& cloud_sharing_id() const; + template + void set_cloud_sharing_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_cloud_sharing_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cloud_sharing_id(); + void set_allocated_cloud_sharing_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_cloud_sharing_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_sharing_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_cloud_sharing_id(); + + public: + // optional int64 latency_millis = 3; + bool has_latency_millis() const; + void clear_latency_millis() ; + ::int64_t latency_millis() const; + void set_latency_millis(::int64_t value); + + private: + ::int64_t _internal_latency_millis() const; + void _internal_set_latency_millis(::int64_t value); + + public: + // optional int32 status_code = 2; + bool has_status_code() const; + void clear_status_code() ; + ::int32_t status_code() const; + void set_status_code(::int32_t value); + + private: + ::int32_t _internal_status_code() const; + void _internal_set_status_code(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int status_; - bool has_opted_in_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudSharingRpcResult& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr rpc_name_; + ::google::protobuf::internal::ArenaStringPtr cloud_sharing_id_; + ::int64_t latency_millis_; + ::int32_t status_code_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudSharingRpcResult_class_data_; // ------------------------------------------------------------------- -class SharingLog_SetAccount final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetAccount) */ { +class SharingLog_CloudRegisterReceiver final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) */ { public: - inline SharingLog_SetAccount() : SharingLog_SetAccount(nullptr) {} - ~SharingLog_SetAccount() override; - explicit constexpr SharingLog_SetAccount(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CloudRegisterReceiver() : SharingLog_CloudRegisterReceiver(nullptr) {} + ~SharingLog_CloudRegisterReceiver() PROTOBUF_FINAL; - SharingLog_SetAccount(const SharingLog_SetAccount& from); - SharingLog_SetAccount(SharingLog_SetAccount&& from) noexcept - : SharingLog_SetAccount() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudRegisterReceiver)); } +#endif - inline SharingLog_SetAccount& operator=(const SharingLog_SetAccount& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudRegisterReceiver(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudRegisterReceiver(const SharingLog_CloudRegisterReceiver& from) : SharingLog_CloudRegisterReceiver(nullptr, from) {} + inline SharingLog_CloudRegisterReceiver(SharingLog_CloudRegisterReceiver&& from) noexcept + : SharingLog_CloudRegisterReceiver(nullptr, ::std::move(from)) {} + inline SharingLog_CloudRegisterReceiver& operator=(const SharingLog_CloudRegisterReceiver& from) { CopyFrom(from); return *this; } - inline SharingLog_SetAccount& operator=(SharingLog_SetAccount&& from) noexcept { + inline SharingLog_CloudRegisterReceiver& operator=(SharingLog_CloudRegisterReceiver&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2059,141 +11776,178 @@ class SharingLog_SetAccount final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_SetAccount& default_instance() { - return *internal_default_instance(); + static const SharingLog_CloudRegisterReceiver& default_instance() { + return *reinterpret_cast( + &_SharingLog_CloudRegisterReceiver_default_instance_); } - static inline const SharingLog_SetAccount* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SetAccount_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(SharingLog_SetAccount& a, SharingLog_SetAccount& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SetAccount* other) { + static constexpr int kIndexInFileMessages = 85; + friend void swap(SharingLog_CloudRegisterReceiver& a, SharingLog_CloudRegisterReceiver& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SetAccount* other) { + void UnsafeArenaSwap(SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SetAccount* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SetAccount& from); - void MergeFrom(const SharingLog_SetAccount& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CloudRegisterReceiver& from); + void MergeFrom(const SharingLog_CloudRegisterReceiver& from) { SharingLog_CloudRegisterReceiver::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SetAccount* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SetAccount"; - } - protected: - explicit SharingLog_SetAccount(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver"; } + + explicit SharingLog_CloudRegisterReceiver(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudRegisterReceiver(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudRegisterReceiver& from); + SharingLog_CloudRegisterReceiver( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudRegisterReceiver&& from) noexcept + : SharingLog_CloudRegisterReceiver(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kActivityNameFieldNumber = 1, + kResultFieldNumber = 1, }; - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - bool has_activity_name() const; - private: - bool _internal_has_activity_name() const; - public: - void clear_activity_name(); - ::location::nearby::proto::sharing::ActivityName activity_name() const; - void set_activity_name(::location::nearby::proto::sharing::ActivityName value); - private: - ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; - void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); - public: + // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; + bool has_result() const; + void clear_result() ; + ::location::nearby::proto::sharing::CloudRegisterReceiverResult result() const; + void set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetAccount) + private: + ::location::nearby::proto::sharing::CloudRegisterReceiverResult _internal_result() const; + void _internal_set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int activity_name_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudRegisterReceiver& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_CloudRegisterReceiver_class_data_; // ------------------------------------------------------------------- -class SharingLog_SetVisibility final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetVisibility) */ { +class SharingLog_CancelSendingAttachments final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) */ { public: - inline SharingLog_SetVisibility() : SharingLog_SetVisibility(nullptr) {} - ~SharingLog_SetVisibility() override; - explicit constexpr SharingLog_SetVisibility(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CancelSendingAttachments() : SharingLog_CancelSendingAttachments(nullptr) {} + ~SharingLog_CancelSendingAttachments() PROTOBUF_FINAL; - SharingLog_SetVisibility(const SharingLog_SetVisibility& from); - SharingLog_SetVisibility(SharingLog_SetVisibility&& from) noexcept - : SharingLog_SetVisibility() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CancelSendingAttachments)); } +#endif - inline SharingLog_SetVisibility& operator=(const SharingLog_SetVisibility& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CancelSendingAttachments(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CancelSendingAttachments(const SharingLog_CancelSendingAttachments& from) : SharingLog_CancelSendingAttachments(nullptr, from) {} + inline SharingLog_CancelSendingAttachments(SharingLog_CancelSendingAttachments&& from) noexcept + : SharingLog_CancelSendingAttachments(nullptr, ::std::move(from)) {} + inline SharingLog_CancelSendingAttachments& operator=(const SharingLog_CancelSendingAttachments& from) { CopyFrom(from); return *this; } - inline SharingLog_SetVisibility& operator=(SharingLog_SetVisibility&& from) noexcept { + inline SharingLog_CancelSendingAttachments& operator=(SharingLog_CancelSendingAttachments&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2201,186 +11955,162 @@ class SharingLog_SetVisibility final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_SetVisibility& default_instance() { - return *internal_default_instance(); + static const SharingLog_CancelSendingAttachments& default_instance() { + return *reinterpret_cast( + &_SharingLog_CancelSendingAttachments_default_instance_); } - static inline const SharingLog_SetVisibility* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SetVisibility_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(SharingLog_SetVisibility& a, SharingLog_SetVisibility& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SetVisibility* other) { + static constexpr int kIndexInFileMessages = 31; + friend void swap(SharingLog_CancelSendingAttachments& a, SharingLog_CancelSendingAttachments& b) { a.Swap(&b); } + inline void Swap(SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SetVisibility* other) { + void UnsafeArenaSwap(SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SetVisibility* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SetVisibility& from); - void MergeFrom(const SharingLog_SetVisibility& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CancelSendingAttachments& from); + void MergeFrom(const SharingLog_CancelSendingAttachments& from) { SharingLog_CancelSendingAttachments::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SetVisibility* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SetVisibility"; - } - protected: - explicit SharingLog_SetVisibility(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments"; } + + explicit SharingLog_CancelSendingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CancelSendingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelSendingAttachments& from); + SharingLog_CancelSendingAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CancelSendingAttachments&& from) noexcept + : SharingLog_CancelSendingAttachments(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kVisibilityFieldNumber = 1, - kSourceVisibilityFieldNumber = 2, - kDurationMillisFieldNumber = 3, - kSourceActivityNameFieldNumber = 4, - }; - // optional .location.nearby.proto.sharing.Visibility visibility = 1; - bool has_visibility() const; - private: - bool _internal_has_visibility() const; - public: - void clear_visibility(); - ::location::nearby::proto::sharing::Visibility visibility() const; - void set_visibility(::location::nearby::proto::sharing::Visibility value); - private: - ::location::nearby::proto::sharing::Visibility _internal_visibility() const; - void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); - public: - - // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; - bool has_source_visibility() const; - private: - bool _internal_has_source_visibility() const; - public: - void clear_source_visibility(); - ::location::nearby::proto::sharing::Visibility source_visibility() const; - void set_source_visibility(::location::nearby::proto::sharing::Visibility value); - private: - ::location::nearby::proto::sharing::Visibility _internal_source_visibility() const; - void _internal_set_source_visibility(::location::nearby::proto::sharing::Visibility value); - public: - - // optional int64 duration_millis = 3; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; - bool has_source_activity_name() const; - private: - bool _internal_has_source_activity_name() const; - public: - void clear_source_activity_name(); - ::location::nearby::proto::sharing::ActivityName source_activity_name() const; - void set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); - private: - ::location::nearby::proto::sharing::ActivityName _internal_source_activity_name() const; - void _internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetVisibility) + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int visibility_; - int source_visibility_; - int64_t duration_millis_; - int source_activity_name_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CancelSendingAttachments& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_CancelSendingAttachments_class_data_; // ------------------------------------------------------------------- -class SharingLog_SetDataUsage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) */ { +class SharingLog_CancelReceivingAttachments final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) */ { public: - inline SharingLog_SetDataUsage() : SharingLog_SetDataUsage(nullptr) {} - ~SharingLog_SetDataUsage() override; - explicit constexpr SharingLog_SetDataUsage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CancelReceivingAttachments() : SharingLog_CancelReceivingAttachments(nullptr) {} + ~SharingLog_CancelReceivingAttachments() PROTOBUF_FINAL; - SharingLog_SetDataUsage(const SharingLog_SetDataUsage& from); - SharingLog_SetDataUsage(SharingLog_SetDataUsage&& from) noexcept - : SharingLog_SetDataUsage() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CancelReceivingAttachments)); } +#endif - inline SharingLog_SetDataUsage& operator=(const SharingLog_SetDataUsage& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CancelReceivingAttachments(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CancelReceivingAttachments(const SharingLog_CancelReceivingAttachments& from) : SharingLog_CancelReceivingAttachments(nullptr, from) {} + inline SharingLog_CancelReceivingAttachments(SharingLog_CancelReceivingAttachments&& from) noexcept + : SharingLog_CancelReceivingAttachments(nullptr, ::std::move(from)) {} + inline SharingLog_CancelReceivingAttachments& operator=(const SharingLog_CancelReceivingAttachments& from) { CopyFrom(from); return *this; } - inline SharingLog_SetDataUsage& operator=(SharingLog_SetDataUsage&& from) noexcept { + inline SharingLog_CancelReceivingAttachments& operator=(SharingLog_CancelReceivingAttachments&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2388,378 +12118,162 @@ class SharingLog_SetDataUsage final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_SetDataUsage& default_instance() { - return *internal_default_instance(); + static const SharingLog_CancelReceivingAttachments& default_instance() { + return *reinterpret_cast( + &_SharingLog_CancelReceivingAttachments_default_instance_); } - static inline const SharingLog_SetDataUsage* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SetDataUsage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(SharingLog_SetDataUsage& a, SharingLog_SetDataUsage& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SetDataUsage* other) { + static constexpr int kIndexInFileMessages = 32; + friend void swap(SharingLog_CancelReceivingAttachments& a, SharingLog_CancelReceivingAttachments& b) { a.Swap(&b); } + inline void Swap(SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SetDataUsage* other) { + void UnsafeArenaSwap(SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SetDataUsage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SetDataUsage& from); - void MergeFrom(const SharingLog_SetDataUsage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CancelReceivingAttachments& from); + void MergeFrom(const SharingLog_CancelReceivingAttachments& from) { SharingLog_CancelReceivingAttachments::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SetDataUsage* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SetDataUsage"; - } - protected: - explicit SharingLog_SetDataUsage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments"; } + + explicit SharingLog_CancelReceivingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CancelReceivingAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelReceivingAttachments& from); + SharingLog_CancelReceivingAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CancelReceivingAttachments&& from) noexcept + : SharingLog_CancelReceivingAttachments(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kOriginalPreferenceFieldNumber = 1, - kPreferenceFieldNumber = 2, - }; - // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; - bool has_original_preference() const; - private: - bool _internal_has_original_preference() const; - public: - void clear_original_preference(); - ::location::nearby::proto::sharing::DataUsage original_preference() const; - void set_original_preference(::location::nearby::proto::sharing::DataUsage value); - private: - ::location::nearby::proto::sharing::DataUsage _internal_original_preference() const; - void _internal_set_original_preference(::location::nearby::proto::sharing::DataUsage value); - public: - - // optional .location.nearby.proto.sharing.DataUsage preference = 2; - bool has_preference() const; - private: - bool _internal_has_preference() const; - public: - void clear_preference(); - ::location::nearby::proto::sharing::DataUsage preference() const; - void set_preference(::location::nearby::proto::sharing::DataUsage value); - private: - ::location::nearby::proto::sharing::DataUsage _internal_preference() const; - void _internal_set_preference(::location::nearby::proto::sharing::DataUsage value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetDataUsage) + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int original_preference_; - int preference_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ScanForShareTargetsStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) */ { - public: - inline SharingLog_ScanForShareTargetsStart() : SharingLog_ScanForShareTargetsStart(nullptr) {} - ~SharingLog_ScanForShareTargetsStart() override; - explicit constexpr SharingLog_ScanForShareTargetsStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ScanForShareTargetsStart(const SharingLog_ScanForShareTargetsStart& from); - SharingLog_ScanForShareTargetsStart(SharingLog_ScanForShareTargetsStart&& from) noexcept - : SharingLog_ScanForShareTargetsStart() { - *this = ::std::move(from); - } - - inline SharingLog_ScanForShareTargetsStart& operator=(const SharingLog_ScanForShareTargetsStart& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ScanForShareTargetsStart& operator=(SharingLog_ScanForShareTargetsStart&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ScanForShareTargetsStart& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ScanForShareTargetsStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ScanForShareTargetsStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(SharingLog_ScanForShareTargetsStart& a, SharingLog_ScanForShareTargetsStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ScanForShareTargetsStart* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ScanForShareTargetsStart* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ScanForShareTargetsStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ScanForShareTargetsStart& from); - void MergeFrom(const SharingLog_ScanForShareTargetsStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ScanForShareTargetsStart* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart"; - } - protected: - explicit SharingLog_ScanForShareTargetsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferrerNameFieldNumber = 5, - kSessionIdFieldNumber = 1, - kStatusFieldNumber = 2, - kScanTypeFieldNumber = 3, - kFlowIdFieldNumber = 4, - kUseQrCodeFieldNumber = 6, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CancelReceivingAttachments& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional string referrer_name = 5; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: - - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.SessionStatus status = 2; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::SessionStatus status() const; - void set_status(::location::nearby::proto::sharing::SessionStatus value); - private: - ::location::nearby::proto::sharing::SessionStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::SessionStatus value); - public: - - // optional .location.nearby.proto.sharing.ScanType scan_type = 3; - bool has_scan_type() const; - private: - bool _internal_has_scan_type() const; - public: - void clear_scan_type(); - ::location::nearby::proto::sharing::ScanType scan_type() const; - void set_scan_type(::location::nearby::proto::sharing::ScanType value); - private: - ::location::nearby::proto::sharing::ScanType _internal_scan_type() const; - void _internal_set_scan_type(::location::nearby::proto::sharing::ScanType value); - public: - - // optional int64 flow_id = 4; - bool has_flow_id() const; - private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: - - // optional bool use_qr_code = 6; - bool has_use_qr_code() const; - private: - bool _internal_has_use_qr_code() const; - public: - void clear_use_qr_code(); - bool use_qr_code() const; - void set_use_qr_code(bool value); - private: - bool _internal_use_qr_code() const; - void _internal_set_use_qr_code(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - int64_t session_id_; - int status_; - int scan_type_; - int64_t flow_id_; - bool use_qr_code_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_CancelReceivingAttachments_class_data_; // ------------------------------------------------------------------- -class SharingLog_ScanForShareTargetsEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) */ { +class SharingLog_CancelConnection final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelConnection) */ { public: - inline SharingLog_ScanForShareTargetsEnd() : SharingLog_ScanForShareTargetsEnd(nullptr) {} - ~SharingLog_ScanForShareTargetsEnd() override; - explicit constexpr SharingLog_ScanForShareTargetsEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CancelConnection() : SharingLog_CancelConnection(nullptr) {} + ~SharingLog_CancelConnection() PROTOBUF_FINAL; - SharingLog_ScanForShareTargetsEnd(const SharingLog_ScanForShareTargetsEnd& from); - SharingLog_ScanForShareTargetsEnd(SharingLog_ScanForShareTargetsEnd&& from) noexcept - : SharingLog_ScanForShareTargetsEnd() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CancelConnection* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CancelConnection)); } +#endif - inline SharingLog_ScanForShareTargetsEnd& operator=(const SharingLog_ScanForShareTargetsEnd& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CancelConnection(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CancelConnection(const SharingLog_CancelConnection& from) : SharingLog_CancelConnection(nullptr, from) {} + inline SharingLog_CancelConnection(SharingLog_CancelConnection&& from) noexcept + : SharingLog_CancelConnection(nullptr, ::std::move(from)) {} + inline SharingLog_CancelConnection& operator=(const SharingLog_CancelConnection& from) { CopyFrom(from); return *this; } - inline SharingLog_ScanForShareTargetsEnd& operator=(SharingLog_ScanForShareTargetsEnd&& from) noexcept { + inline SharingLog_CancelConnection& operator=(SharingLog_CancelConnection&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2767,141 +12281,989 @@ class SharingLog_ScanForShareTargetsEnd final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_ScanForShareTargetsEnd& default_instance() { - return *internal_default_instance(); + static const SharingLog_CancelConnection& default_instance() { + return *reinterpret_cast( + &_SharingLog_CancelConnection_default_instance_); } - static inline const SharingLog_ScanForShareTargetsEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ScanForShareTargetsEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(SharingLog_ScanForShareTargetsEnd& a, SharingLog_ScanForShareTargetsEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ScanForShareTargetsEnd* other) { + static constexpr int kIndexInFileMessages = 30; + friend void swap(SharingLog_CancelConnection& a, SharingLog_CancelConnection& b) { a.Swap(&b); } + inline void Swap(SharingLog_CancelConnection* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_ScanForShareTargetsEnd* other) { + void UnsafeArenaSwap(SharingLog_CancelConnection* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_ScanForShareTargetsEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CancelConnection* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ScanForShareTargetsEnd& from); - void MergeFrom(const SharingLog_ScanForShareTargetsEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CancelConnection& from); + void MergeFrom(const SharingLog_CancelConnection& from) { SharingLog_CancelConnection::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ScanForShareTargetsEnd* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd"; - } - protected: - explicit SharingLog_ScanForShareTargetsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CancelConnection* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CancelConnection"; } + + explicit SharingLog_CancelConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CancelConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CancelConnection& from); + SharingLog_CancelConnection( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CancelConnection&& from) noexcept + : SharingLog_CancelConnection(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSessionIdFieldNumber = 1, + kTransferPositionFieldNumber = 2, + kConcurrentConnectionsFieldNumber = 3, }; // optional int64 session_id = 1; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd) + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int32 transfer_position = 2; + bool has_transfer_position() const; + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); + + private: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); + + public: + // optional int32 concurrent_connections = 3; + bool has_concurrent_connections() const; + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); + + private: + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelConnection) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t session_id_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CancelConnection& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t session_id_; + ::int32_t transfer_position_; + ::int32_t concurrent_connections_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CancelConnection_class_data_; // ------------------------------------------------------------------- -class SharingLog_AdvertiseDevicePresenceStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) */ { +class SharingLog_AutoDismissFastInitialization final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) */ { + public: + inline SharingLog_AutoDismissFastInitialization() : SharingLog_AutoDismissFastInitialization(nullptr) {} + ~SharingLog_AutoDismissFastInitialization() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AutoDismissFastInitialization)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AutoDismissFastInitialization(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AutoDismissFastInitialization(const SharingLog_AutoDismissFastInitialization& from) : SharingLog_AutoDismissFastInitialization(nullptr, from) {} + inline SharingLog_AutoDismissFastInitialization(SharingLog_AutoDismissFastInitialization&& from) noexcept + : SharingLog_AutoDismissFastInitialization(nullptr, ::std::move(from)) {} + inline SharingLog_AutoDismissFastInitialization& operator=(const SharingLog_AutoDismissFastInitialization& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AutoDismissFastInitialization& operator=(SharingLog_AutoDismissFastInitialization&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AutoDismissFastInitialization& default_instance() { + return *reinterpret_cast( + &_SharingLog_AutoDismissFastInitialization_default_instance_); + } + static constexpr int kIndexInFileMessages = 18; + friend void swap(SharingLog_AutoDismissFastInitialization& a, SharingLog_AutoDismissFastInitialization& b) { a.Swap(&b); } + inline void Swap(SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AutoDismissFastInitialization& from); + void MergeFrom(const SharingLog_AutoDismissFastInitialization& from) { SharingLog_AutoDismissFastInitialization::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization"; } + + explicit SharingLog_AutoDismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AutoDismissFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AutoDismissFastInitialization& from); + SharingLog_AutoDismissFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AutoDismissFastInitialization&& from) noexcept + : SharingLog_AutoDismissFastInitialization(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AutoDismissFastInitialization& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<72> SharingLog_AutoDismissFastInitialization_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AppInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppInfo) */ { + public: + inline SharingLog_AppInfo() : SharingLog_AppInfo(nullptr) {} + ~SharingLog_AppInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AppInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AppInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AppInfo(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AppInfo(const SharingLog_AppInfo& from) : SharingLog_AppInfo(nullptr, from) {} + inline SharingLog_AppInfo(SharingLog_AppInfo&& from) noexcept + : SharingLog_AppInfo(nullptr, ::std::move(from)) {} + inline SharingLog_AppInfo& operator=(const SharingLog_AppInfo& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AppInfo& operator=(SharingLog_AppInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AppInfo& default_instance() { + return *reinterpret_cast( + &_SharingLog_AppInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SharingLog_AppInfo& a, SharingLog_AppInfo& b) { a.Swap(&b); } + inline void Swap(SharingLog_AppInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AppInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AppInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AppInfo& from); + void MergeFrom(const SharingLog_AppInfo& from) { SharingLog_AppInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AppInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AppInfo"; } + + explicit SharingLog_AppInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AppInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AppInfo& from); + SharingLog_AppInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AppInfo&& from) noexcept + : SharingLog_AppInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAppVersionFieldNumber = 1, + kAppLanguageFieldNumber = 2, + kUpdateTrackFieldNumber = 3, + }; + // optional string app_version = 1; + bool has_app_version() const; + void clear_app_version() ; + const ::std::string& app_version() const; + template + void set_app_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_app_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_app_version(); + void set_allocated_app_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_app_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_app_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_app_version(); + + public: + // optional string app_language = 2; + bool has_app_language() const; + void clear_app_language() ; + const ::std::string& app_language() const; + template + void set_app_language(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_app_language(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_app_language(); + void set_allocated_app_language(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_app_language() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_app_language(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_app_language(); + + public: + // optional string update_track = 3; + bool has_update_track() const; + void clear_update_track() ; + const ::std::string& update_track() const; + template + void set_update_track(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_update_track(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_update_track(); + void set_allocated_update_track(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_update_track() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_update_track(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_update_track(); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AppInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr app_version_; + ::google::protobuf::internal::ArenaStringPtr app_language_; + ::google::protobuf::internal::ArenaStringPtr update_track_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<50> SharingLog_AppInfo_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AppCrash final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppCrash) */ { + public: + inline SharingLog_AppCrash() : SharingLog_AppCrash(nullptr) {} + ~SharingLog_AppCrash() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AppCrash* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AppCrash)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AppCrash(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AppCrash(const SharingLog_AppCrash& from) : SharingLog_AppCrash(nullptr, from) {} + inline SharingLog_AppCrash(SharingLog_AppCrash&& from) noexcept + : SharingLog_AppCrash(nullptr, ::std::move(from)) {} + inline SharingLog_AppCrash& operator=(const SharingLog_AppCrash& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AppCrash& operator=(SharingLog_AppCrash&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AppCrash& default_instance() { + return *reinterpret_cast( + &_SharingLog_AppCrash_default_instance_); + } + static constexpr int kIndexInFileMessages = 73; + friend void swap(SharingLog_AppCrash& a, SharingLog_AppCrash& b) { a.Swap(&b); } + inline void Swap(SharingLog_AppCrash* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AppCrash* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AppCrash* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AppCrash& from); + void MergeFrom(const SharingLog_AppCrash& from) { SharingLog_AppCrash::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AppCrash* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AppCrash"; } + + explicit SharingLog_AppCrash(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AppCrash(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AppCrash& from); + SharingLog_AppCrash( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AppCrash&& from) noexcept + : SharingLog_AppCrash(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCrashReasonFieldNumber = 1, + }; + // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; + bool has_crash_reason() const; + void clear_crash_reason() ; + ::location::nearby::proto::sharing::AppCrashReason crash_reason() const; + void set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value); + + private: + ::location::nearby::proto::sharing::AppCrashReason _internal_crash_reason() const; + void _internal_set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppCrash) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AppCrash& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int crash_reason_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<51> SharingLog_AppCrash_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AppAttachment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppAttachment) */ { + public: + inline SharingLog_AppAttachment() : SharingLog_AppAttachment(nullptr) {} + ~SharingLog_AppAttachment() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AppAttachment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AppAttachment)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AppAttachment(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AppAttachment(const SharingLog_AppAttachment& from) : SharingLog_AppAttachment(nullptr, from) {} + inline SharingLog_AppAttachment(SharingLog_AppAttachment&& from) noexcept + : SharingLog_AppAttachment(nullptr, ::std::move(from)) {} + inline SharingLog_AppAttachment& operator=(const SharingLog_AppAttachment& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AppAttachment& operator=(SharingLog_AppAttachment&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AppAttachment& default_instance() { + return *reinterpret_cast( + &_SharingLog_AppAttachment_default_instance_); + } + static constexpr int kIndexInFileMessages = 70; + friend void swap(SharingLog_AppAttachment& a, SharingLog_AppAttachment& b) { a.Swap(&b); } + inline void Swap(SharingLog_AppAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AppAttachment* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AppAttachment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AppAttachment& from); + void MergeFrom(const SharingLog_AppAttachment& from) { SharingLog_AppAttachment::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AppAttachment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AppAttachment"; } + + explicit SharingLog_AppAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AppAttachment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AppAttachment& from); + SharingLog_AppAttachment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AppAttachment&& from) noexcept + : SharingLog_AppAttachment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPackageNameFieldNumber = 1, + kSizeFieldNumber = 2, + kBatchIdFieldNumber = 3, + kSourceTypeFieldNumber = 4, + }; + // optional string package_name = 1; + bool has_package_name() const; + void clear_package_name() ; + const ::std::string& package_name() const; + template + void set_package_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_package_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_package_name(); + void set_allocated_package_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_package_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_package_name(); + + public: + // optional int64 size = 2; + bool has_size() const; + void clear_size() ; + ::int64_t size() const; + void set_size(::int64_t value); + + private: + ::int64_t _internal_size() const; + void _internal_set_size(::int64_t value); + + public: + // optional int64 batch_id = 3; + bool has_batch_id() const; + void clear_batch_id() ; + ::int64_t batch_id() const; + void set_batch_id(::int64_t value); + + private: + ::int64_t _internal_batch_id() const; + void _internal_set_batch_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; + bool has_source_type() const; + void clear_source_type() ; + ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; + void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + private: + ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; + void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppAttachment) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AppAttachment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr package_name_; + ::int64_t size_; + ::int64_t batch_id_; + int source_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<56> SharingLog_AppAttachment_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AdvertiseDevicePresenceStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) */ { public: inline SharingLog_AdvertiseDevicePresenceStart() : SharingLog_AdvertiseDevicePresenceStart(nullptr) {} - ~SharingLog_AdvertiseDevicePresenceStart() override; - explicit constexpr SharingLog_AdvertiseDevicePresenceStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_AdvertiseDevicePresenceStart() PROTOBUF_FINAL; - SharingLog_AdvertiseDevicePresenceStart(const SharingLog_AdvertiseDevicePresenceStart& from); - SharingLog_AdvertiseDevicePresenceStart(SharingLog_AdvertiseDevicePresenceStart&& from) noexcept - : SharingLog_AdvertiseDevicePresenceStart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AdvertiseDevicePresenceStart)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AdvertiseDevicePresenceStart(const SharingLog_AdvertiseDevicePresenceStart& from) : SharingLog_AdvertiseDevicePresenceStart(nullptr, from) {} + inline SharingLog_AdvertiseDevicePresenceStart(SharingLog_AdvertiseDevicePresenceStart&& from) noexcept + : SharingLog_AdvertiseDevicePresenceStart(nullptr, ::std::move(from)) {} inline SharingLog_AdvertiseDevicePresenceStart& operator=(const SharingLog_AdvertiseDevicePresenceStart& from) { CopyFrom(from); return *this; } inline SharingLog_AdvertiseDevicePresenceStart& operator=(SharingLog_AdvertiseDevicePresenceStart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2909,87 +13271,102 @@ class SharingLog_AdvertiseDevicePresenceStart final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_AdvertiseDevicePresenceStart& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_AdvertiseDevicePresenceStart_default_instance_); } - static inline const SharingLog_AdvertiseDevicePresenceStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AdvertiseDevicePresenceStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(SharingLog_AdvertiseDevicePresenceStart& a, SharingLog_AdvertiseDevicePresenceStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AdvertiseDevicePresenceStart* other) { + static constexpr int kIndexInFileMessages = 13; + friend void swap(SharingLog_AdvertiseDevicePresenceStart& a, SharingLog_AdvertiseDevicePresenceStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_AdvertiseDevicePresenceStart* other) { + void UnsafeArenaSwap(SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_AdvertiseDevicePresenceStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_AdvertiseDevicePresenceStart& from); - void MergeFrom(const SharingLog_AdvertiseDevicePresenceStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_AdvertiseDevicePresenceStart& from) { SharingLog_AdvertiseDevicePresenceStart::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AdvertiseDevicePresenceStart* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart"; - } - protected: - explicit SharingLog_AdvertiseDevicePresenceStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart"; } + + explicit SharingLog_AdvertiseDevicePresenceStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AdvertiseDevicePresenceStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AdvertiseDevicePresenceStart& from); + SharingLog_AdvertiseDevicePresenceStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AdvertiseDevicePresenceStart&& from) noexcept + : SharingLog_AdvertiseDevicePresenceStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kReferrerNameFieldNumber = 6, kSessionIdFieldNumber = 1, @@ -3002,158 +13379,166 @@ class SharingLog_AdvertiseDevicePresenceStart final : }; // optional string referrer_name = 6; bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: // optional int64 session_id = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - PROTOBUF_DEPRECATED void clear_session_id(); - PROTOBUF_DEPRECATED int64_t session_id() const; - PROTOBUF_DEPRECATED void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + [[deprecated]] bool has_session_id() const; + [[deprecated]] void clear_session_id() ; + [[deprecated]] ::int64_t session_id() const; + [[deprecated]] void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // optional .location.nearby.proto.sharing.Visibility visibility = 2; bool has_visibility() const; - private: - bool _internal_has_visibility() const; - public: - void clear_visibility(); + void clear_visibility() ; ::location::nearby::proto::sharing::Visibility visibility() const; void set_visibility(::location::nearby::proto::sharing::Visibility value); + private: ::location::nearby::proto::sharing::Visibility _internal_visibility() const; void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); - public: + public: // optional .location.nearby.proto.sharing.SessionStatus status = 3; bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); + void clear_status() ; ::location::nearby::proto::sharing::SessionStatus status() const; void set_status(::location::nearby::proto::sharing::SessionStatus value); + private: ::location::nearby::proto::sharing::SessionStatus _internal_status() const; void _internal_set_status(::location::nearby::proto::sharing::SessionStatus value); - public: + public: // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; bool has_data_usage() const; - private: - bool _internal_has_data_usage() const; - public: - void clear_data_usage(); + void clear_data_usage() ; ::location::nearby::proto::sharing::DataUsage data_usage() const; void set_data_usage(::location::nearby::proto::sharing::DataUsage value); + private: ::location::nearby::proto::sharing::DataUsage _internal_data_usage() const; void _internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value); - public: + public: // optional int32 device_name_size = 5 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_device_name_size() const; - private: - bool _internal_has_device_name_size() const; - public: - PROTOBUF_DEPRECATED void clear_device_name_size(); - PROTOBUF_DEPRECATED int32_t device_name_size() const; - PROTOBUF_DEPRECATED void set_device_name_size(int32_t value); - private: - int32_t _internal_device_name_size() const; - void _internal_set_device_name_size(int32_t value); - public: + [[deprecated]] bool has_device_name_size() const; + [[deprecated]] void clear_device_name_size() ; + [[deprecated]] ::int32_t device_name_size() const; + [[deprecated]] void set_device_name_size(::int32_t value); + private: + ::int32_t _internal_device_name_size() const; + void _internal_set_device_name_size(::int32_t value); + + public: // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; bool has_advertising_mode() const; - private: - bool _internal_has_advertising_mode() const; - public: - void clear_advertising_mode(); + void clear_advertising_mode() ; ::location::nearby::proto::sharing::AdvertisingMode advertising_mode() const; void set_advertising_mode(::location::nearby::proto::sharing::AdvertisingMode value); + private: ::location::nearby::proto::sharing::AdvertisingMode _internal_advertising_mode() const; void _internal_set_advertising_mode(::location::nearby::proto::sharing::AdvertisingMode value); - public: + public: // optional bool qr_code_flow = 8; bool has_qr_code_flow() const; - private: - bool _internal_has_qr_code_flow() const; - public: - void clear_qr_code_flow(); + void clear_qr_code_flow() ; bool qr_code_flow() const; void set_qr_code_flow(bool value); + private: bool _internal_qr_code_flow() const; void _internal_set_qr_code_flow(bool value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - int64_t session_id_; - int visibility_; - int status_; - int data_usage_; - int32_t device_name_size_; - int advertising_mode_; - bool qr_code_flow_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AdvertiseDevicePresenceStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::int64_t session_id_; + int visibility_; + int status_; + int data_usage_; + ::int32_t device_name_size_; + int advertising_mode_; + bool qr_code_flow_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<71> SharingLog_AdvertiseDevicePresenceStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_AdvertiseDevicePresenceEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) */ { +class SharingLog_AdvertiseDevicePresenceEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) */ { public: inline SharingLog_AdvertiseDevicePresenceEnd() : SharingLog_AdvertiseDevicePresenceEnd(nullptr) {} - ~SharingLog_AdvertiseDevicePresenceEnd() override; - explicit constexpr SharingLog_AdvertiseDevicePresenceEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_AdvertiseDevicePresenceEnd() PROTOBUF_FINAL; - SharingLog_AdvertiseDevicePresenceEnd(const SharingLog_AdvertiseDevicePresenceEnd& from); - SharingLog_AdvertiseDevicePresenceEnd(SharingLog_AdvertiseDevicePresenceEnd&& from) noexcept - : SharingLog_AdvertiseDevicePresenceEnd() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AdvertiseDevicePresenceEnd)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_AdvertiseDevicePresenceEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AdvertiseDevicePresenceEnd(const SharingLog_AdvertiseDevicePresenceEnd& from) : SharingLog_AdvertiseDevicePresenceEnd(nullptr, from) {} + inline SharingLog_AdvertiseDevicePresenceEnd(SharingLog_AdvertiseDevicePresenceEnd&& from) noexcept + : SharingLog_AdvertiseDevicePresenceEnd(nullptr, ::std::move(from)) {} inline SharingLog_AdvertiseDevicePresenceEnd& operator=(const SharingLog_AdvertiseDevicePresenceEnd& from) { CopyFrom(from); return *this; } inline SharingLog_AdvertiseDevicePresenceEnd& operator=(SharingLog_AdvertiseDevicePresenceEnd&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3161,437 +13546,178 @@ class SharingLog_AdvertiseDevicePresenceEnd final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_AdvertiseDevicePresenceEnd& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_AdvertiseDevicePresenceEnd_default_instance_); } - static inline const SharingLog_AdvertiseDevicePresenceEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AdvertiseDevicePresenceEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(SharingLog_AdvertiseDevicePresenceEnd& a, SharingLog_AdvertiseDevicePresenceEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AdvertiseDevicePresenceEnd* other) { + static constexpr int kIndexInFileMessages = 14; + friend void swap(SharingLog_AdvertiseDevicePresenceEnd& a, SharingLog_AdvertiseDevicePresenceEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_AdvertiseDevicePresenceEnd* other) { + void UnsafeArenaSwap(SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_AdvertiseDevicePresenceEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_AdvertiseDevicePresenceEnd& from); - void MergeFrom(const SharingLog_AdvertiseDevicePresenceEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_AdvertiseDevicePresenceEnd& from) { SharingLog_AdvertiseDevicePresenceEnd::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AdvertiseDevicePresenceEnd* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd"; - } - protected: - explicit SharingLog_AdvertiseDevicePresenceEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd"; } + + explicit SharingLog_AdvertiseDevicePresenceEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AdvertiseDevicePresenceEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AdvertiseDevicePresenceEnd& from); + SharingLog_AdvertiseDevicePresenceEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AdvertiseDevicePresenceEnd&& from) noexcept + : SharingLog_AdvertiseDevicePresenceEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSessionIdFieldNumber = 1, }; // optional int64 session_id = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - PROTOBUF_DEPRECATED void clear_session_id(); - PROTOBUF_DEPRECATED int64_t session_id() const; - PROTOBUF_DEPRECATED void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + [[deprecated]] bool has_session_id() const; + [[deprecated]] void clear_session_id() ; + [[deprecated]] ::int64_t session_id() const; + [[deprecated]] void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t session_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SendFastInitialization final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) */ { - public: - inline SharingLog_SendFastInitialization() : SharingLog_SendFastInitialization(nullptr) {} - ~SharingLog_SendFastInitialization() override; - explicit constexpr SharingLog_SendFastInitialization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SendFastInitialization(const SharingLog_SendFastInitialization& from); - SharingLog_SendFastInitialization(SharingLog_SendFastInitialization&& from) noexcept - : SharingLog_SendFastInitialization() { - *this = ::std::move(from); - } - - inline SharingLog_SendFastInitialization& operator=(const SharingLog_SendFastInitialization& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SendFastInitialization& operator=(SharingLog_SendFastInitialization&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SendFastInitialization& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SendFastInitialization* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendFastInitialization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(SharingLog_SendFastInitialization& a, SharingLog_SendFastInitialization& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendFastInitialization* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SendFastInitialization* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SendFastInitialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SendFastInitialization& from); - void MergeFrom(const SharingLog_SendFastInitialization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendFastInitialization* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendFastInitialization"; - } - protected: - explicit SharingLog_SendFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendFastInitialization) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ReceiveFastInitialization final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) */ { - public: - inline SharingLog_ReceiveFastInitialization() : SharingLog_ReceiveFastInitialization(nullptr) {} - ~SharingLog_ReceiveFastInitialization() override; - explicit constexpr SharingLog_ReceiveFastInitialization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ReceiveFastInitialization(const SharingLog_ReceiveFastInitialization& from); - SharingLog_ReceiveFastInitialization(SharingLog_ReceiveFastInitialization&& from) noexcept - : SharingLog_ReceiveFastInitialization() { - *this = ::std::move(from); - } - - inline SharingLog_ReceiveFastInitialization& operator=(const SharingLog_ReceiveFastInitialization& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ReceiveFastInitialization& operator=(SharingLog_ReceiveFastInitialization&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ReceiveFastInitialization& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ReceiveFastInitialization* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ReceiveFastInitialization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(SharingLog_ReceiveFastInitialization& a, SharingLog_ReceiveFastInitialization& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ReceiveFastInitialization* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ReceiveFastInitialization* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ReceiveFastInitialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ReceiveFastInitialization& from); - void MergeFrom(const SharingLog_ReceiveFastInitialization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ReceiveFastInitialization* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization"; - } - protected: - explicit SharingLog_ReceiveFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTimeElapseSinceScreenUnlockMillisFieldNumber = 1, - kNotificationsEnabledFieldNumber = 2, - kNotificationsFilteredFieldNumber = 3, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AdvertiseDevicePresenceEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t session_id_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional int64 time_elapse_since_screen_unlock_millis = 1; - bool has_time_elapse_since_screen_unlock_millis() const; - private: - bool _internal_has_time_elapse_since_screen_unlock_millis() const; - public: - void clear_time_elapse_since_screen_unlock_millis(); - int64_t time_elapse_since_screen_unlock_millis() const; - void set_time_elapse_since_screen_unlock_millis(int64_t value); - private: - int64_t _internal_time_elapse_since_screen_unlock_millis() const; - void _internal_set_time_elapse_since_screen_unlock_millis(int64_t value); - public: - - // optional bool notifications_enabled = 2; - bool has_notifications_enabled() const; - private: - bool _internal_has_notifications_enabled() const; - public: - void clear_notifications_enabled(); - bool notifications_enabled() const; - void set_notifications_enabled(bool value); - private: - bool _internal_notifications_enabled() const; - void _internal_set_notifications_enabled(bool value); - public: - - // optional bool notifications_filtered = 3; - bool has_notifications_filtered() const; - private: - bool _internal_has_notifications_filtered() const; - public: - void clear_notifications_filtered(); - bool notifications_filtered() const; - void set_notifications_filtered(bool value); - private: - bool _internal_notifications_filtered() const; - void _internal_set_notifications_filtered(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t time_elapse_since_screen_unlock_millis_; - bool notifications_enabled_; - bool notifications_filtered_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<69> SharingLog_AdvertiseDevicePresenceEnd_class_data_; // ------------------------------------------------------------------- -class SharingLog_DismissFastInitialization final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) */ { +class SharingLog_AddQuickSettingsTile final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) */ { public: - inline SharingLog_DismissFastInitialization() : SharingLog_DismissFastInitialization(nullptr) {} - ~SharingLog_DismissFastInitialization() override; - explicit constexpr SharingLog_DismissFastInitialization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_AddQuickSettingsTile() : SharingLog_AddQuickSettingsTile(nullptr) {} + ~SharingLog_AddQuickSettingsTile() PROTOBUF_FINAL; - SharingLog_DismissFastInitialization(const SharingLog_DismissFastInitialization& from); - SharingLog_DismissFastInitialization(SharingLog_DismissFastInitialization&& from) noexcept - : SharingLog_DismissFastInitialization() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AddQuickSettingsTile)); } +#endif - inline SharingLog_DismissFastInitialization& operator=(const SharingLog_DismissFastInitialization& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_AddQuickSettingsTile(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AddQuickSettingsTile(const SharingLog_AddQuickSettingsTile& from) : SharingLog_AddQuickSettingsTile(nullptr, from) {} + inline SharingLog_AddQuickSettingsTile(SharingLog_AddQuickSettingsTile&& from) noexcept + : SharingLog_AddQuickSettingsTile(nullptr, ::std::move(from)) {} + inline SharingLog_AddQuickSettingsTile& operator=(const SharingLog_AddQuickSettingsTile& from) { CopyFrom(from); return *this; } - inline SharingLog_DismissFastInitialization& operator=(SharingLog_DismissFastInitialization&& from) noexcept { + inline SharingLog_AddQuickSettingsTile& operator=(SharingLog_AddQuickSettingsTile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3599,559 +13725,162 @@ class SharingLog_DismissFastInitialization final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_DismissFastInitialization& default_instance() { - return *internal_default_instance(); + static const SharingLog_AddQuickSettingsTile& default_instance() { + return *reinterpret_cast( + &_SharingLog_AddQuickSettingsTile_default_instance_); } - static inline const SharingLog_DismissFastInitialization* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DismissFastInitialization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(SharingLog_DismissFastInitialization& a, SharingLog_DismissFastInitialization& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DismissFastInitialization* other) { + static constexpr int kIndexInFileMessages = 46; + friend void swap(SharingLog_AddQuickSettingsTile& a, SharingLog_AddQuickSettingsTile& b) { a.Swap(&b); } + inline void Swap(SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_DismissFastInitialization* other) { + void UnsafeArenaSwap(SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_DismissFastInitialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DismissFastInitialization& from); - void MergeFrom(const SharingLog_DismissFastInitialization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_AddQuickSettingsTile& from); + void MergeFrom(const SharingLog_AddQuickSettingsTile& from) { SharingLog_AddQuickSettingsTile::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DismissFastInitialization* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization"; - } - protected: - explicit SharingLog_DismissFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization) + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL other); private: - class _Internal; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile"; } - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AutoDismissFastInitialization final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) */ { - public: - inline SharingLog_AutoDismissFastInitialization() : SharingLog_AutoDismissFastInitialization(nullptr) {} - ~SharingLog_AutoDismissFastInitialization() override; - explicit constexpr SharingLog_AutoDismissFastInitialization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AutoDismissFastInitialization(const SharingLog_AutoDismissFastInitialization& from); - SharingLog_AutoDismissFastInitialization(SharingLog_AutoDismissFastInitialization&& from) noexcept - : SharingLog_AutoDismissFastInitialization() { + explicit SharingLog_AddQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AddQuickSettingsTile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddQuickSettingsTile& from); + SharingLog_AddQuickSettingsTile( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AddQuickSettingsTile&& from) noexcept + : SharingLog_AddQuickSettingsTile(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - inline SharingLog_AutoDismissFastInitialization& operator=(const SharingLog_AutoDismissFastInitialization& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AutoDismissFastInitialization& operator=(SharingLog_AutoDismissFastInitialization&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AutoDismissFastInitialization& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AutoDismissFastInitialization* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AutoDismissFastInitialization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(SharingLog_AutoDismissFastInitialization& a, SharingLog_AutoDismissFastInitialization& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AutoDismissFastInitialization* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AutoDismissFastInitialization* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AutoDismissFastInitialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AutoDismissFastInitialization& from); - void MergeFrom(const SharingLog_AutoDismissFastInitialization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AutoDismissFastInitialization* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization"; - } - protected: - explicit SharingLog_AutoDismissFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization) + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_EventMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EventMetadata) */ { - public: - inline SharingLog_EventMetadata() : SharingLog_EventMetadata(nullptr) {} - ~SharingLog_EventMetadata() override; - explicit constexpr SharingLog_EventMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_EventMetadata(const SharingLog_EventMetadata& from); - SharingLog_EventMetadata(SharingLog_EventMetadata&& from) noexcept - : SharingLog_EventMetadata() { - *this = ::std::move(from); - } - - inline SharingLog_EventMetadata& operator=(const SharingLog_EventMetadata& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_EventMetadata& operator=(SharingLog_EventMetadata&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_EventMetadata& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_EventMetadata* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_EventMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(SharingLog_EventMetadata& a, SharingLog_EventMetadata& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_EventMetadata* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_EventMetadata* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_EventMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_EventMetadata& from); - void MergeFrom(const SharingLog_EventMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_EventMetadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.EventMetadata"; - } - protected: - explicit SharingLog_EventMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCloudSharingIdFieldNumber = 8, - kCloudReceiverSessionIdFieldNumber = 9, - kExternalProviderNameFieldNumber = 10, - kExternalProviderIdFieldNumber = 11, - kUseCaseFieldNumber = 1, - kInitialOptInFieldNumber = 2, - kOptInFieldNumber = 3, - kInitialEnableStatusFieldNumber = 4, - kFlowIdFieldNumber = 5, - kSessionIdFieldNumber = 6, - kVendorIdFieldNumber = 7, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AddQuickSettingsTile& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional string cloud_sharing_id = 8; - bool has_cloud_sharing_id() const; - private: - bool _internal_has_cloud_sharing_id() const; - public: - void clear_cloud_sharing_id(); - const std::string& cloud_sharing_id() const; - template - void set_cloud_sharing_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_cloud_sharing_id(); - PROTOBUF_NODISCARD std::string* release_cloud_sharing_id(); - void set_allocated_cloud_sharing_id(std::string* cloud_sharing_id); - private: - const std::string& _internal_cloud_sharing_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_sharing_id(const std::string& value); - std::string* _internal_mutable_cloud_sharing_id(); - public: - - // optional string cloud_receiver_session_id = 9; - bool has_cloud_receiver_session_id() const; - private: - bool _internal_has_cloud_receiver_session_id() const; - public: - void clear_cloud_receiver_session_id(); - const std::string& cloud_receiver_session_id() const; - template - void set_cloud_receiver_session_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_cloud_receiver_session_id(); - PROTOBUF_NODISCARD std::string* release_cloud_receiver_session_id(); - void set_allocated_cloud_receiver_session_id(std::string* cloud_receiver_session_id); - private: - const std::string& _internal_cloud_receiver_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_receiver_session_id(const std::string& value); - std::string* _internal_mutable_cloud_receiver_session_id(); - public: - - // optional string external_provider_name = 10; - bool has_external_provider_name() const; - private: - bool _internal_has_external_provider_name() const; - public: - void clear_external_provider_name(); - const std::string& external_provider_name() const; - template - void set_external_provider_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_external_provider_name(); - PROTOBUF_NODISCARD std::string* release_external_provider_name(); - void set_allocated_external_provider_name(std::string* external_provider_name); - private: - const std::string& _internal_external_provider_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_external_provider_name(const std::string& value); - std::string* _internal_mutable_external_provider_name(); - public: - - // optional string external_provider_id = 11; - bool has_external_provider_id() const; - private: - bool _internal_has_external_provider_id() const; - public: - void clear_external_provider_id(); - const std::string& external_provider_id() const; - template - void set_external_provider_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_external_provider_id(); - PROTOBUF_NODISCARD std::string* release_external_provider_id(); - void set_allocated_external_provider_id(std::string* external_provider_id); - private: - const std::string& _internal_external_provider_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_external_provider_id(const std::string& value); - std::string* _internal_mutable_external_provider_id(); - public: - - // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; - bool has_use_case() const; - private: - bool _internal_has_use_case() const; - public: - void clear_use_case(); - ::location::nearby::proto::sharing::SharingUseCase use_case() const; - void set_use_case(::location::nearby::proto::sharing::SharingUseCase value); - private: - ::location::nearby::proto::sharing::SharingUseCase _internal_use_case() const; - void _internal_set_use_case(::location::nearby::proto::sharing::SharingUseCase value); - public: - - // optional bool initial_opt_in = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_initial_opt_in() const; - private: - bool _internal_has_initial_opt_in() const; - public: - PROTOBUF_DEPRECATED void clear_initial_opt_in(); - PROTOBUF_DEPRECATED bool initial_opt_in() const; - PROTOBUF_DEPRECATED void set_initial_opt_in(bool value); - private: - bool _internal_initial_opt_in() const; - void _internal_set_initial_opt_in(bool value); - public: - - // optional bool opt_in = 3 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_opt_in() const; - private: - bool _internal_has_opt_in() const; - public: - PROTOBUF_DEPRECATED void clear_opt_in(); - PROTOBUF_DEPRECATED bool opt_in() const; - PROTOBUF_DEPRECATED void set_opt_in(bool value); - private: - bool _internal_opt_in() const; - void _internal_set_opt_in(bool value); - public: - - // optional bool initial_enable_status = 4 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_initial_enable_status() const; - private: - bool _internal_has_initial_enable_status() const; - public: - PROTOBUF_DEPRECATED void clear_initial_enable_status(); - PROTOBUF_DEPRECATED bool initial_enable_status() const; - PROTOBUF_DEPRECATED void set_initial_enable_status(bool value); - private: - bool _internal_initial_enable_status() const; - void _internal_set_initial_enable_status(bool value); - public: - - // optional int64 flow_id = 5; - bool has_flow_id() const; - private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: - - // optional int64 session_id = 6; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional int32 vendor_id = 7; - bool has_vendor_id() const; - private: - bool _internal_has_vendor_id() const; - public: - void clear_vendor_id(); - int32_t vendor_id() const; - void set_vendor_id(int32_t value); - private: - int32_t _internal_vendor_id() const; - void _internal_set_vendor_id(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EventMetadata) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cloud_sharing_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cloud_receiver_session_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr external_provider_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr external_provider_id_; - int use_case_; - bool initial_opt_in_; - bool opt_in_; - bool initial_enable_status_; - int64_t flow_id_; - int64_t session_id_; - int32_t vendor_id_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_AddQuickSettingsTile_class_data_; // ------------------------------------------------------------------- -class SharingLog_DiscoverShareTarget final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) */ { +class SharingLog_AddContact final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AddContact) */ { public: - inline SharingLog_DiscoverShareTarget() : SharingLog_DiscoverShareTarget(nullptr) {} - ~SharingLog_DiscoverShareTarget() override; - explicit constexpr SharingLog_DiscoverShareTarget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_AddContact() : SharingLog_AddContact(nullptr) {} + ~SharingLog_AddContact() PROTOBUF_FINAL; - SharingLog_DiscoverShareTarget(const SharingLog_DiscoverShareTarget& from); - SharingLog_DiscoverShareTarget(SharingLog_DiscoverShareTarget&& from) noexcept - : SharingLog_DiscoverShareTarget() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AddContact* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AddContact)); } +#endif - inline SharingLog_DiscoverShareTarget& operator=(const SharingLog_DiscoverShareTarget& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_AddContact(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AddContact(const SharingLog_AddContact& from) : SharingLog_AddContact(nullptr, from) {} + inline SharingLog_AddContact(SharingLog_AddContact&& from) noexcept + : SharingLog_AddContact(nullptr, ::std::move(from)) {} + inline SharingLog_AddContact& operator=(const SharingLog_AddContact& from) { CopyFrom(from); return *this; } - inline SharingLog_DiscoverShareTarget& operator=(SharingLog_DiscoverShareTarget&& from) noexcept { + inline SharingLog_AddContact& operator=(SharingLog_AddContact&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4159,266 +13888,1480 @@ class SharingLog_DiscoverShareTarget final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_DiscoverShareTarget& default_instance() { - return *internal_default_instance(); + static const SharingLog_AddContact& default_instance() { + return *reinterpret_cast( + &_SharingLog_AddContact_default_instance_); } - static inline const SharingLog_DiscoverShareTarget* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DiscoverShareTarget_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(SharingLog_DiscoverShareTarget& a, SharingLog_DiscoverShareTarget& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DiscoverShareTarget* other) { + static constexpr int kIndexInFileMessages = 36; + friend void swap(SharingLog_AddContact& a, SharingLog_AddContact& b) { a.Swap(&b); } + inline void Swap(SharingLog_AddContact* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_DiscoverShareTarget* other) { + void UnsafeArenaSwap(SharingLog_AddContact* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_DiscoverShareTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_AddContact* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DiscoverShareTarget& from); - void MergeFrom(const SharingLog_DiscoverShareTarget& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_AddContact& from); + void MergeFrom(const SharingLog_AddContact& from) { SharingLog_AddContact::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DiscoverShareTarget* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget"; - } - protected: - explicit SharingLog_DiscoverShareTarget(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AddContact* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AddContact"; } + + explicit SharingLog_AddContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AddContact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AddContact& from); + SharingLog_AddContact( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AddContact&& from) noexcept + : SharingLog_AddContact(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReferrerNameFieldNumber = 5, - kCloudReceiverSessionIdFieldNumber = 8, - kShareTargetInfoFieldNumber = 1, - kDurationSinceScanningFieldNumber = 2, - kSessionIdFieldNumber = 3, - kFlowIdFieldNumber = 4, - kScanTypeFieldNumber = 7, - kLatencySinceActivityStartMillisFieldNumber = 6, + kWasPhoneAddedFieldNumber = 1, + kWasEmailAddedFieldNumber = 2, }; - // optional string referrer_name = 5; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: + // optional bool was_phone_added = 1; + bool has_was_phone_added() const; + void clear_was_phone_added() ; + bool was_phone_added() const; + void set_was_phone_added(bool value); - // optional string cloud_receiver_session_id = 8; - bool has_cloud_receiver_session_id() const; private: - bool _internal_has_cloud_receiver_session_id() const; - public: - void clear_cloud_receiver_session_id(); - const std::string& cloud_receiver_session_id() const; - template - void set_cloud_receiver_session_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_cloud_receiver_session_id(); - PROTOBUF_NODISCARD std::string* release_cloud_receiver_session_id(); - void set_allocated_cloud_receiver_session_id(std::string* cloud_receiver_session_id); - private: - const std::string& _internal_cloud_receiver_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_receiver_session_id(const std::string& value); - std::string* _internal_mutable_cloud_receiver_session_id(); - public: + bool _internal_was_phone_added() const; + void _internal_set_was_phone_added(bool value); - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + public: + // optional bool was_email_added = 2; + bool has_was_email_added() const; + void clear_was_email_added() ; + bool was_email_added() const; + void set_was_email_added(bool value); + + private: + bool _internal_was_email_added() const; + void _internal_set_was_email_added(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AddContact) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AddContact& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + bool was_phone_added_; + bool was_email_added_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<53> SharingLog_AddContact_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AcceptFastInitialization final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) */ { + public: + inline SharingLog_AcceptFastInitialization() : SharingLog_AcceptFastInitialization(nullptr) {} + ~SharingLog_AcceptFastInitialization() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AcceptFastInitialization)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AcceptFastInitialization(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AcceptFastInitialization(const SharingLog_AcceptFastInitialization& from) : SharingLog_AcceptFastInitialization(nullptr, from) {} + inline SharingLog_AcceptFastInitialization(SharingLog_AcceptFastInitialization&& from) noexcept + : SharingLog_AcceptFastInitialization(nullptr, ::std::move(from)) {} + inline SharingLog_AcceptFastInitialization& operator=(const SharingLog_AcceptFastInitialization& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AcceptFastInitialization& operator=(SharingLog_AcceptFastInitialization&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AcceptFastInitialization& default_instance() { + return *reinterpret_cast( + &_SharingLog_AcceptFastInitialization_default_instance_); + } + static constexpr int kIndexInFileMessages = 40; + friend void swap(SharingLog_AcceptFastInitialization& a, SharingLog_AcceptFastInitialization& b) { a.Swap(&b); } + inline void Swap(SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AcceptFastInitialization& from); + void MergeFrom(const SharingLog_AcceptFastInitialization& from) { SharingLog_AcceptFastInitialization::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization"; } + + explicit SharingLog_AcceptFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AcceptFastInitialization(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptFastInitialization& from); + SharingLog_AcceptFastInitialization( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AcceptFastInitialization&& from) noexcept + : SharingLog_AcceptFastInitialization(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AcceptFastInitialization& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<67> SharingLog_AcceptFastInitialization_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AcceptAgreements final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) */ { + public: + inline SharingLog_AcceptAgreements() : SharingLog_AcceptAgreements(nullptr) {} + ~SharingLog_AcceptAgreements() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AcceptAgreements* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AcceptAgreements)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AcceptAgreements(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AcceptAgreements(const SharingLog_AcceptAgreements& from) : SharingLog_AcceptAgreements(nullptr, from) {} + inline SharingLog_AcceptAgreements(SharingLog_AcceptAgreements&& from) noexcept + : SharingLog_AcceptAgreements(nullptr, ::std::move(from)) {} + inline SharingLog_AcceptAgreements& operator=(const SharingLog_AcceptAgreements& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AcceptAgreements& operator=(SharingLog_AcceptAgreements&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AcceptAgreements& default_instance() { + return *reinterpret_cast( + &_SharingLog_AcceptAgreements_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SharingLog_AcceptAgreements& a, SharingLog_AcceptAgreements& b) { a.Swap(&b); } + inline void Swap(SharingLog_AcceptAgreements* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AcceptAgreements* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AcceptAgreements* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AcceptAgreements& from); + void MergeFrom(const SharingLog_AcceptAgreements& from) { SharingLog_AcceptAgreements::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AcceptAgreements* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AcceptAgreements"; } + + explicit SharingLog_AcceptAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AcceptAgreements(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AcceptAgreements& from); + SharingLog_AcceptAgreements( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AcceptAgreements&& from) noexcept + : SharingLog_AcceptAgreements(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AcceptAgreements) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AcceptAgreements& from_msg); + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_AcceptAgreements_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SendStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendStart) */ { + public: + inline SharingLog_SendStart() : SharingLog_SendStart(nullptr) {} + ~SharingLog_SendStart() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendStart)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendStart(const SharingLog_SendStart& from) : SharingLog_SendStart(nullptr, from) {} + inline SharingLog_SendStart(SharingLog_SendStart&& from) noexcept + : SharingLog_SendStart(nullptr, ::std::move(from)) {} + inline SharingLog_SendStart& operator=(const SharingLog_SendStart& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SendStart& operator=(SharingLog_SendStart&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SendStart& default_instance() { + return *reinterpret_cast( + &_SharingLog_SendStart_default_instance_); + } + static constexpr int kIndexInFileMessages = 39; + friend void swap(SharingLog_SendStart& a, SharingLog_SendStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendStart* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SendStart* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SendStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SendStart& from); + void MergeFrom(const SharingLog_SendStart& from) { SharingLog_SendStart::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendStart"; } + + explicit SharingLog_SendStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendStart& from); + SharingLog_SendStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendStart&& from) noexcept + : SharingLog_SendStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kShareTargetInfoFieldNumber = 4, + kSessionIdFieldNumber = 1, + kTransferPositionFieldNumber = 2, + kConcurrentConnectionsFieldNumber = 3, + }; + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); + void clear_share_target_info() ; const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); - // optional .google.protobuf.Duration duration_since_scanning = 2; - bool has_duration_since_scanning() const; - private: - bool _internal_has_duration_since_scanning() const; public: - void clear_duration_since_scanning(); - const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_scanning() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration_since_scanning(); - ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration_since_scanning(); - void set_allocated_duration_since_scanning(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning); - private: - const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration_since_scanning() const; - ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration_since_scanning(); - public: - void unsafe_arena_set_allocated_duration_since_scanning( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning); - ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration_since_scanning(); - - // optional int64 session_id = 3; + // optional int64 session_id = 1; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); - // optional int64 flow_id = 4; - bool has_flow_id() const; private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); - // optional .location.nearby.proto.sharing.ScanType scan_type = 7; - bool has_scan_type() const; - private: - bool _internal_has_scan_type() const; - public: - void clear_scan_type(); - ::location::nearby::proto::sharing::ScanType scan_type() const; - void set_scan_type(::location::nearby::proto::sharing::ScanType value); - private: - ::location::nearby::proto::sharing::ScanType _internal_scan_type() const; - void _internal_set_scan_type(::location::nearby::proto::sharing::ScanType value); public: + // optional int32 transfer_position = 2; + bool has_transfer_position() const; + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); - // optional int64 latency_since_activity_start_millis = 6 [default = -1]; - bool has_latency_since_activity_start_millis() const; private: - bool _internal_has_latency_since_activity_start_millis() const; - public: - void clear_latency_since_activity_start_millis(); - int64_t latency_since_activity_start_millis() const; - void set_latency_since_activity_start_millis(int64_t value); - private: - int64_t _internal_latency_since_activity_start_millis() const; - void _internal_set_latency_since_activity_start_millis(int64_t value); - public: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) + public: + // optional int32 concurrent_connections = 3; + bool has_concurrent_connections() const; + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); + + private: + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cloud_receiver_session_id_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning_; - int64_t session_id_; - int64_t flow_id_; - int scan_type_; - int64_t latency_since_activity_start_millis_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int32_t transfer_position_; + ::int32_t concurrent_connections_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<52> SharingLog_SendStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_ParsingFailedEndpointId final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) */ { +class SharingLog_SendIntroduction final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) */ { public: - inline SharingLog_ParsingFailedEndpointId() : SharingLog_ParsingFailedEndpointId(nullptr) {} - ~SharingLog_ParsingFailedEndpointId() override; - explicit constexpr SharingLog_ParsingFailedEndpointId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_SendIntroduction() : SharingLog_SendIntroduction(nullptr) {} + ~SharingLog_SendIntroduction() PROTOBUF_FINAL; - SharingLog_ParsingFailedEndpointId(const SharingLog_ParsingFailedEndpointId& from); - SharingLog_ParsingFailedEndpointId(SharingLog_ParsingFailedEndpointId&& from) noexcept - : SharingLog_ParsingFailedEndpointId() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendIntroduction* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendIntroduction)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendIntroduction(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendIntroduction(const SharingLog_SendIntroduction& from) : SharingLog_SendIntroduction(nullptr, from) {} + inline SharingLog_SendIntroduction(SharingLog_SendIntroduction&& from) noexcept + : SharingLog_SendIntroduction(nullptr, ::std::move(from)) {} + inline SharingLog_SendIntroduction& operator=(const SharingLog_SendIntroduction& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_SendIntroduction& operator=(SharingLog_SendIntroduction&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_SendIntroduction& default_instance() { + return *reinterpret_cast( + &_SharingLog_SendIntroduction_default_instance_); + } + static constexpr int kIndexInFileMessages = 23; + friend void swap(SharingLog_SendIntroduction& a, SharingLog_SendIntroduction& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_SendIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_SendIntroduction* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_SendIntroduction& from); + void MergeFrom(const SharingLog_SendIntroduction& from) { SharingLog_SendIntroduction::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendIntroduction* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendIntroduction"; } + + explicit SharingLog_SendIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendIntroduction& from); + SharingLog_SendIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendIntroduction&& from) noexcept + : SharingLog_SendIntroduction(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kShareTargetInfoFieldNumber = 1, + kSessionIdFieldNumber = 2, + kTransferPositionFieldNumber = 3, + kConcurrentConnectionsFieldNumber = 4, + }; + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + bool has_share_target_info() const; + void clear_share_target_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + + public: + // optional int64 session_id = 2; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int32 transfer_position = 3; + bool has_transfer_position() const; + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); + + private: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); + + public: + // optional int32 concurrent_connections = 4; + bool has_concurrent_connections() const; + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); + + private: + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendIntroduction& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int32_t transfer_position_; + ::int32_t concurrent_connections_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_SendIntroduction_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ReceiveIntroduction final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) */ { + public: + inline SharingLog_ReceiveIntroduction() : SharingLog_ReceiveIntroduction(nullptr) {} + ~SharingLog_ReceiveIntroduction() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ReceiveIntroduction)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ReceiveIntroduction(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ReceiveIntroduction(const SharingLog_ReceiveIntroduction& from) : SharingLog_ReceiveIntroduction(nullptr, from) {} + inline SharingLog_ReceiveIntroduction(SharingLog_ReceiveIntroduction&& from) noexcept + : SharingLog_ReceiveIntroduction(nullptr, ::std::move(from)) {} + inline SharingLog_ReceiveIntroduction& operator=(const SharingLog_ReceiveIntroduction& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ReceiveIntroduction& operator=(SharingLog_ReceiveIntroduction&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ReceiveIntroduction& default_instance() { + return *reinterpret_cast( + &_SharingLog_ReceiveIntroduction_default_instance_); + } + static constexpr int kIndexInFileMessages = 24; + friend void swap(SharingLog_ReceiveIntroduction& a, SharingLog_ReceiveIntroduction& b) { a.Swap(&b); } + inline void Swap(SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ReceiveIntroduction& from); + void MergeFrom(const SharingLog_ReceiveIntroduction& from) { SharingLog_ReceiveIntroduction::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction"; } + + explicit SharingLog_ReceiveIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ReceiveIntroduction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveIntroduction& from); + SharingLog_ReceiveIntroduction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ReceiveIntroduction&& from) noexcept + : SharingLog_ReceiveIntroduction(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 3, + kShareTargetInfoFieldNumber = 2, + kSessionIdFieldNumber = 1, + }; + // optional string referrer_name = 3; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; + bool has_share_target_info() const; + void clear_share_target_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + + public: + // optional int64 session_id = 1; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ReceiveIntroduction& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_ReceiveIntroduction_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ReceiveAttachmentsEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) */ { + public: + inline SharingLog_ReceiveAttachmentsEnd() : SharingLog_ReceiveAttachmentsEnd(nullptr) {} + ~SharingLog_ReceiveAttachmentsEnd() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ReceiveAttachmentsEnd)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ReceiveAttachmentsEnd(const SharingLog_ReceiveAttachmentsEnd& from) : SharingLog_ReceiveAttachmentsEnd(nullptr, from) {} + inline SharingLog_ReceiveAttachmentsEnd(SharingLog_ReceiveAttachmentsEnd&& from) noexcept + : SharingLog_ReceiveAttachmentsEnd(nullptr, ::std::move(from)) {} + inline SharingLog_ReceiveAttachmentsEnd& operator=(const SharingLog_ReceiveAttachmentsEnd& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_ReceiveAttachmentsEnd& operator=(SharingLog_ReceiveAttachmentsEnd&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_ReceiveAttachmentsEnd& default_instance() { + return *reinterpret_cast( + &_SharingLog_ReceiveAttachmentsEnd_default_instance_); + } + static constexpr int kIndexInFileMessages = 29; + friend void swap(SharingLog_ReceiveAttachmentsEnd& a, SharingLog_ReceiveAttachmentsEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_ReceiveAttachmentsEnd& from); + void MergeFrom(const SharingLog_ReceiveAttachmentsEnd& from) { SharingLog_ReceiveAttachmentsEnd::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd"; } + + explicit SharingLog_ReceiveAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ReceiveAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveAttachmentsEnd& from); + SharingLog_ReceiveAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ReceiveAttachmentsEnd&& from) noexcept + : SharingLog_ReceiveAttachmentsEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 4, + kShareTargetInfoFieldNumber = 5, + kSessionIdFieldNumber = 1, + kReceivedBytesFieldNumber = 2, + kStatusFieldNumber = 3, + kFirstSuccessfulTransferDateFieldNumber = 6, + kPreviousSuccessfulTransferDateFieldNumber = 7, + kLifetimeTransferCountFieldNumber = 8, + kConnectionMediumFieldNumber = 14, + kDataUsageFieldNumber = 15, + }; + // optional string referrer_name = 4; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; + bool has_share_target_info() const; + void clear_share_target_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + + public: + // optional int64 session_id = 1; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int64 received_bytes = 2; + bool has_received_bytes() const; + void clear_received_bytes() ; + ::int64_t received_bytes() const; + void set_received_bytes(::int64_t value); + + private: + ::int64_t _internal_received_bytes() const; + void _internal_set_received_bytes(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::AttachmentTransmissionStatus status() const; + void set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); + + private: + ::location::nearby::proto::sharing::AttachmentTransmissionStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); + + public: + // optional int32 first_successful_transfer_date = 6; + bool has_first_successful_transfer_date() const; + void clear_first_successful_transfer_date() ; + ::int32_t first_successful_transfer_date() const; + void set_first_successful_transfer_date(::int32_t value); + + private: + ::int32_t _internal_first_successful_transfer_date() const; + void _internal_set_first_successful_transfer_date(::int32_t value); + + public: + // optional int32 previous_successful_transfer_date = 7; + bool has_previous_successful_transfer_date() const; + void clear_previous_successful_transfer_date() ; + ::int32_t previous_successful_transfer_date() const; + void set_previous_successful_transfer_date(::int32_t value); + + private: + ::int32_t _internal_previous_successful_transfer_date() const; + void _internal_set_previous_successful_transfer_date(::int32_t value); + + public: + // optional int32 lifetime_transfer_count = 8; + bool has_lifetime_transfer_count() const; + void clear_lifetime_transfer_count() ; + ::int32_t lifetime_transfer_count() const; + void set_lifetime_transfer_count(::int32_t value); + + private: + ::int32_t _internal_lifetime_transfer_count() const; + void _internal_set_lifetime_transfer_count(::int32_t value); + + public: + // optional int32 connection_medium = 14; + bool has_connection_medium() const; + void clear_connection_medium() ; + ::int32_t connection_medium() const; + void set_connection_medium(::int32_t value); + + private: + ::int32_t _internal_connection_medium() const; + void _internal_set_connection_medium(::int32_t value); + + public: + // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; + bool has_data_usage() const; + void clear_data_usage() ; + ::location::nearby::proto::sharing::DataUsage data_usage() const; + void set_data_usage(::location::nearby::proto::sharing::DataUsage value); + + private: + ::location::nearby::proto::sharing::DataUsage _internal_data_usage() const; + void _internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ReceiveAttachmentsEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int64_t received_bytes_; + int status_; + ::int32_t first_successful_transfer_date_; + ::int32_t previous_successful_transfer_date_; + ::int32_t lifetime_transfer_count_; + ::int32_t connection_medium_; + int data_usage_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<64> SharingLog_ReceiveAttachmentsEnd_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_ParsingFailedEndpointId final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) */ { + public: + inline SharingLog_ParsingFailedEndpointId() : SharingLog_ParsingFailedEndpointId(nullptr) {} + ~SharingLog_ParsingFailedEndpointId() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ParsingFailedEndpointId)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_ParsingFailedEndpointId(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ParsingFailedEndpointId(const SharingLog_ParsingFailedEndpointId& from) : SharingLog_ParsingFailedEndpointId(nullptr, from) {} + inline SharingLog_ParsingFailedEndpointId(SharingLog_ParsingFailedEndpointId&& from) noexcept + : SharingLog_ParsingFailedEndpointId(nullptr, ::std::move(from)) {} inline SharingLog_ParsingFailedEndpointId& operator=(const SharingLog_ParsingFailedEndpointId& from) { CopyFrom(from); return *this; } inline SharingLog_ParsingFailedEndpointId& operator=(SharingLog_ParsingFailedEndpointId&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4426,87 +15369,102 @@ class SharingLog_ParsingFailedEndpointId final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_ParsingFailedEndpointId& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_ParsingFailedEndpointId_default_instance_); } - static inline const SharingLog_ParsingFailedEndpointId* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ParsingFailedEndpointId_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(SharingLog_ParsingFailedEndpointId& a, SharingLog_ParsingFailedEndpointId& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ParsingFailedEndpointId* other) { + static constexpr int kIndexInFileMessages = 21; + friend void swap(SharingLog_ParsingFailedEndpointId& a, SharingLog_ParsingFailedEndpointId& b) { a.Swap(&b); } + inline void Swap(SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_ParsingFailedEndpointId* other) { + void UnsafeArenaSwap(SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_ParsingFailedEndpointId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_ParsingFailedEndpointId& from); - void MergeFrom(const SharingLog_ParsingFailedEndpointId& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_ParsingFailedEndpointId& from) { SharingLog_ParsingFailedEndpointId::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ParsingFailedEndpointId* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId"; - } - protected: - explicit SharingLog_ParsingFailedEndpointId(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId"; } + + explicit SharingLog_ParsingFailedEndpointId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ParsingFailedEndpointId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ParsingFailedEndpointId& from); + SharingLog_ParsingFailedEndpointId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ParsingFailedEndpointId&& from) noexcept + : SharingLog_ParsingFailedEndpointId(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kEndpointIdFieldNumber = 1, kReferrerNameFieldNumber = 5, @@ -4521,368 +15479,203 @@ class SharingLog_ParsingFailedEndpointId final : }; // optional string endpoint_id = 1; bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: + void clear_endpoint_id() ; + const ::std::string& endpoint_id() const; + template + void set_endpoint_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_endpoint_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_endpoint_id(); + void set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_endpoint_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_endpoint_id(); + + public: // optional string referrer_name = 5; bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: // optional .google.protobuf.Duration duration_since_scanning = 2; bool has_duration_since_scanning() const; - private: - bool _internal_has_duration_since_scanning() const; - public: - void clear_duration_since_scanning(); - const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_scanning() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration_since_scanning(); - ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration_since_scanning(); - void set_allocated_duration_since_scanning(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning); - private: - const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration_since_scanning() const; - ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration_since_scanning(); - public: - void unsafe_arena_set_allocated_duration_since_scanning( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning); - ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration_since_scanning(); + void clear_duration_since_scanning() ; + const ::google::protobuf::Duration& duration_since_scanning() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_duration_since_scanning(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_duration_since_scanning(); + void set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_duration_since_scanning(); + private: + const ::google::protobuf::Duration& _internal_duration_since_scanning() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_duration_since_scanning(); + + public: // optional .google.protobuf.Duration duration_since_last_sync = 8; bool has_duration_since_last_sync() const; - private: - bool _internal_has_duration_since_last_sync() const; - public: - void clear_duration_since_last_sync(); - const ::PROTOBUF_NAMESPACE_ID::Duration& duration_since_last_sync() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration_since_last_sync(); - ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration_since_last_sync(); - void set_allocated_duration_since_last_sync(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_last_sync); - private: - const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration_since_last_sync() const; - ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration_since_last_sync(); - public: - void unsafe_arena_set_allocated_duration_since_last_sync( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_last_sync); - ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration_since_last_sync(); + void clear_duration_since_last_sync() ; + const ::google::protobuf::Duration& duration_since_last_sync() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_duration_since_last_sync(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_duration_since_last_sync(); + void set_allocated_duration_since_last_sync(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_duration_since_last_sync(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_duration_since_last_sync(); + private: + const ::google::protobuf::Duration& _internal_duration_since_last_sync() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_duration_since_last_sync(); + + public: // optional int64 session_id = 3; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // optional int64 flow_id = 4; bool has_flow_id() const; - private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: // optional .location.nearby.proto.sharing.ScanType scan_type = 7; bool has_scan_type() const; - private: - bool _internal_has_scan_type() const; - public: - void clear_scan_type(); + void clear_scan_type() ; ::location::nearby::proto::sharing::ScanType scan_type() const; void set_scan_type(::location::nearby::proto::sharing::ScanType value); + private: ::location::nearby::proto::sharing::ScanType _internal_scan_type() const; void _internal_set_scan_type(::location::nearby::proto::sharing::ScanType value); - public: + public: // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; bool has_parsing_failed_type() const; - private: - bool _internal_has_parsing_failed_type() const; - public: - void clear_parsing_failed_type(); + void clear_parsing_failed_type() ; ::location::nearby::proto::sharing::ParsingFailedType parsing_failed_type() const; void set_parsing_failed_type(::location::nearby::proto::sharing::ParsingFailedType value); + private: ::location::nearby::proto::sharing::ParsingFailedType _internal_parsing_failed_type() const; void _internal_set_parsing_failed_type(::location::nearby::proto::sharing::ParsingFailedType value); - public: + public: // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; bool has_discovery_mode() const; - private: - bool _internal_has_discovery_mode() const; - public: - void clear_discovery_mode(); + void clear_discovery_mode() ; ::location::nearby::proto::sharing::DiscoveryMode discovery_mode() const; void set_discovery_mode(::location::nearby::proto::sharing::DiscoveryMode value); + private: ::location::nearby::proto::sharing::DiscoveryMode _internal_discovery_mode() const; void _internal_set_discovery_mode(::location::nearby::proto::sharing::DiscoveryMode value); - public: + public: // optional int64 latency_since_activity_start_millis = 6 [default = -1]; bool has_latency_since_activity_start_millis() const; - private: - bool _internal_has_latency_since_activity_start_millis() const; - public: - void clear_latency_since_activity_start_millis(); - int64_t latency_since_activity_start_millis() const; - void set_latency_since_activity_start_millis(int64_t value); - private: - int64_t _internal_latency_since_activity_start_millis() const; - void _internal_set_latency_since_activity_start_millis(int64_t value); - public: + void clear_latency_since_activity_start_millis() ; + ::int64_t latency_since_activity_start_millis() const; + void set_latency_since_activity_start_millis(::int64_t value); + private: + ::int64_t _internal_latency_since_activity_start_millis() const; + void _internal_set_latency_since_activity_start_millis(::int64_t value); + + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 5, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning_; - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_last_sync_; - int64_t session_id_; - int64_t flow_id_; - int scan_type_; - int parsing_failed_type_; - int discovery_mode_; - int64_t latency_since_activity_start_millis_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DescribeAttachments final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) */ { - public: - inline SharingLog_DescribeAttachments() : SharingLog_DescribeAttachments(nullptr) {} - ~SharingLog_DescribeAttachments() override; - explicit constexpr SharingLog_DescribeAttachments(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DescribeAttachments(const SharingLog_DescribeAttachments& from); - SharingLog_DescribeAttachments(SharingLog_DescribeAttachments&& from) noexcept - : SharingLog_DescribeAttachments() { - *this = ::std::move(from); - } - - inline SharingLog_DescribeAttachments& operator=(const SharingLog_DescribeAttachments& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DescribeAttachments& operator=(SharingLog_DescribeAttachments&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DescribeAttachments& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DescribeAttachments* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DescribeAttachments_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(SharingLog_DescribeAttachments& a, SharingLog_DescribeAttachments& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DescribeAttachments* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DescribeAttachments* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DescribeAttachments* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DescribeAttachments& from); - void MergeFrom(const SharingLog_DescribeAttachments& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DescribeAttachments* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DescribeAttachments"; - } - protected: - explicit SharingLog_DescribeAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAttachmentsInfoFieldNumber = 1, - kDownloadDurationFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ParsingFailedEndpointId& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr endpoint_id_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE duration_since_scanning_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE duration_since_last_sync_; + ::int64_t session_id_; + ::int64_t flow_id_; + int scan_type_; + int parsing_failed_type_; + int discovery_mode_; + ::int64_t latency_since_activity_start_millis_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; - bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); - - // optional .google.protobuf.Duration download_duration = 2; - bool has_download_duration() const; - private: - bool _internal_has_download_duration() const; - public: - void clear_download_duration(); - const ::PROTOBUF_NAMESPACE_ID::Duration& download_duration() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_download_duration(); - ::PROTOBUF_NAMESPACE_ID::Duration* mutable_download_duration(); - void set_allocated_download_duration(::PROTOBUF_NAMESPACE_ID::Duration* download_duration); - private: - const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_download_duration() const; - ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_download_duration(); - public: - void unsafe_arena_set_allocated_download_duration( - ::PROTOBUF_NAMESPACE_ID::Duration* download_duration); - ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_download_duration(); - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - ::PROTOBUF_NAMESPACE_ID::Duration* download_duration_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ParsingFailedEndpointId_class_data_; // ------------------------------------------------------------------- -class SharingLog_SendIntroduction final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) */ { +class SharingLog_HighQualityMediumSetup final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) */ { public: - inline SharingLog_SendIntroduction() : SharingLog_SendIntroduction(nullptr) {} - ~SharingLog_SendIntroduction() override; - explicit constexpr SharingLog_SendIntroduction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_HighQualityMediumSetup() : SharingLog_HighQualityMediumSetup(nullptr) {} + ~SharingLog_HighQualityMediumSetup() PROTOBUF_FINAL; - SharingLog_SendIntroduction(const SharingLog_SendIntroduction& from); - SharingLog_SendIntroduction(SharingLog_SendIntroduction&& from) noexcept - : SharingLog_SendIntroduction() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_HighQualityMediumSetup)); } +#endif - inline SharingLog_SendIntroduction& operator=(const SharingLog_SendIntroduction& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_HighQualityMediumSetup(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_HighQualityMediumSetup(const SharingLog_HighQualityMediumSetup& from) : SharingLog_HighQualityMediumSetup(nullptr, from) {} + inline SharingLog_HighQualityMediumSetup(SharingLog_HighQualityMediumSetup&& from) noexcept + : SharingLog_HighQualityMediumSetup(nullptr, ::std::move(from)) {} + inline SharingLog_HighQualityMediumSetup& operator=(const SharingLog_HighQualityMediumSetup& from) { CopyFrom(from); return *this; } - inline SharingLog_SendIntroduction& operator=(SharingLog_SendIntroduction&& from) noexcept { + inline SharingLog_HighQualityMediumSetup& operator=(SharingLog_HighQualityMediumSetup&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4890,545 +15683,1481 @@ class SharingLog_SendIntroduction final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_SendIntroduction& default_instance() { - return *internal_default_instance(); + static const SharingLog_HighQualityMediumSetup& default_instance() { + return *reinterpret_cast( + &_SharingLog_HighQualityMediumSetup_default_instance_); } - static inline const SharingLog_SendIntroduction* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendIntroduction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(SharingLog_SendIntroduction& a, SharingLog_SendIntroduction& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendIntroduction* other) { + static constexpr int kIndexInFileMessages = 78; + friend void swap(SharingLog_HighQualityMediumSetup& a, SharingLog_HighQualityMediumSetup& b) { a.Swap(&b); } + inline void Swap(SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SendIntroduction* other) { + void UnsafeArenaSwap(SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SendIntroduction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SendIntroduction& from); - void MergeFrom(const SharingLog_SendIntroduction& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_HighQualityMediumSetup& from); + void MergeFrom(const SharingLog_HighQualityMediumSetup& from) { SharingLog_HighQualityMediumSetup::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendIntroduction* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendIntroduction"; - } - protected: - explicit SharingLog_SendIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup"; } + + explicit SharingLog_HighQualityMediumSetup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_HighQualityMediumSetup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_HighQualityMediumSetup& from); + SharingLog_HighQualityMediumSetup( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_HighQualityMediumSetup&& from) noexcept + : SharingLog_HighQualityMediumSetup(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kShareTargetInfoFieldNumber = 1, kSessionIdFieldNumber = 2, - kTransferPositionFieldNumber = 3, - kConcurrentConnectionsFieldNumber = 4, + kDurationMillisFieldNumber = 3, + kIsTimeoutFieldNumber = 4, + kOriginalQualityFieldNumber = 5, + kConnectionMediumFieldNumber = 6, + kConnectionModeFieldNumber = 7, + kInstantConnectionResultFieldNumber = 8, }; // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); + void clear_share_target_info() ; const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + public: // optional int64 session_id = 2; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int64 duration_millis = 3; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional bool is_timeout = 4; + bool has_is_timeout() const; + void clear_is_timeout() ; + bool is_timeout() const; + void set_is_timeout(bool value); + + private: + bool _internal_is_timeout() const; + void _internal_set_is_timeout(bool value); + + public: + // optional int32 original_quality = 5; + bool has_original_quality() const; + void clear_original_quality() ; + ::int32_t original_quality() const; + void set_original_quality(::int32_t value); + + private: + ::int32_t _internal_original_quality() const; + void _internal_set_original_quality(::int32_t value); + + public: + // optional int32 connection_medium = 6; + bool has_connection_medium() const; + void clear_connection_medium() ; + ::int32_t connection_medium() const; + void set_connection_medium(::int32_t value); + + private: + ::int32_t _internal_connection_medium() const; + void _internal_set_connection_medium(::int32_t value); + + public: + // optional int32 connection_mode = 7; + bool has_connection_mode() const; + void clear_connection_mode() ; + ::int32_t connection_mode() const; + void set_connection_mode(::int32_t value); + + private: + ::int32_t _internal_connection_mode() const; + void _internal_set_connection_mode(::int32_t value); + + public: + // optional int32 instant_connection_result = 8; + bool has_instant_connection_result() const; + void clear_instant_connection_result() ; + ::int32_t instant_connection_result() const; + void set_instant_connection_result(::int32_t value); + + private: + ::int32_t _internal_instant_connection_result() const; + void _internal_set_instant_connection_result(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_HighQualityMediumSetup& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int64_t duration_millis_; + bool is_timeout_; + ::int32_t original_quality_; + ::int32_t connection_medium_; + ::int32_t connection_mode_; + ::int32_t instant_connection_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<65> SharingLog_HighQualityMediumSetup_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_EstablishConnection final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) */ { + public: + inline SharingLog_EstablishConnection() : SharingLog_EstablishConnection(nullptr) {} + ~SharingLog_EstablishConnection() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_EstablishConnection* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_EstablishConnection)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_EstablishConnection(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_EstablishConnection(const SharingLog_EstablishConnection& from) : SharingLog_EstablishConnection(nullptr, from) {} + inline SharingLog_EstablishConnection(SharingLog_EstablishConnection&& from) noexcept + : SharingLog_EstablishConnection(nullptr, ::std::move(from)) {} + inline SharingLog_EstablishConnection& operator=(const SharingLog_EstablishConnection& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_EstablishConnection& operator=(SharingLog_EstablishConnection&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_EstablishConnection& default_instance() { + return *reinterpret_cast( + &_SharingLog_EstablishConnection_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(SharingLog_EstablishConnection& a, SharingLog_EstablishConnection& b) { a.Swap(&b); } + inline void Swap(SharingLog_EstablishConnection* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_EstablishConnection* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_EstablishConnection* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_EstablishConnection& from); + void MergeFrom(const SharingLog_EstablishConnection& from) { SharingLog_EstablishConnection::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_EstablishConnection* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.EstablishConnection"; } + + explicit SharingLog_EstablishConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_EstablishConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_EstablishConnection& from); + SharingLog_EstablishConnection( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_EstablishConnection&& from) noexcept + : SharingLog_EstablishConnection(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 7, + kShareTargetInfoFieldNumber = 6, + kQrCodeReceiverConnectLatencyFieldNumber = 10, + kSessionIdFieldNumber = 2, + kStatusFieldNumber = 1, + kTransferPositionFieldNumber = 3, + kDurationMillisFieldNumber = 5, + kConcurrentConnectionsFieldNumber = 4, + kQrCodeFlowFieldNumber = 8, + kIsIncomingConnectionFieldNumber = 9, + }; + // optional string referrer_name = 7; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; + bool has_share_target_info() const; + void clear_share_target_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + + public: + // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; + bool has_qr_code_receiver_connect_latency() const; + void clear_qr_code_receiver_connect_latency() ; + const ::google::protobuf::Duration& qr_code_receiver_connect_latency() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_qr_code_receiver_connect_latency(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_qr_code_receiver_connect_latency(); + void set_allocated_qr_code_receiver_connect_latency(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_qr_code_receiver_connect_latency(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_qr_code_receiver_connect_latency(); + + private: + const ::google::protobuf::Duration& _internal_qr_code_receiver_connect_latency() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_qr_code_receiver_connect_latency(); + + public: + // optional int64 session_id = 2; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::EstablishConnectionStatus status() const; + void set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value); + + private: + ::location::nearby::proto::sharing::EstablishConnectionStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value); + + public: // optional int32 transfer_position = 3; bool has_transfer_position() const; - private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); + private: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); + + public: + // optional int64 duration_millis = 5; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: // optional int32 concurrent_connections = 4; bool has_concurrent_connections() const; + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); + private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + public: + // optional bool qr_code_flow = 8 [deprecated = true]; + [[deprecated]] bool has_qr_code_flow() const; + [[deprecated]] void clear_qr_code_flow() ; + [[deprecated]] bool qr_code_flow() const; + [[deprecated]] void set_qr_code_flow(bool value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendIntroduction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int32_t transfer_position_; - int32_t concurrent_connections_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ReceiveIntroduction final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) */ { - public: - inline SharingLog_ReceiveIntroduction() : SharingLog_ReceiveIntroduction(nullptr) {} - ~SharingLog_ReceiveIntroduction() override; - explicit constexpr SharingLog_ReceiveIntroduction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ReceiveIntroduction(const SharingLog_ReceiveIntroduction& from); - SharingLog_ReceiveIntroduction(SharingLog_ReceiveIntroduction&& from) noexcept - : SharingLog_ReceiveIntroduction() { - *this = ::std::move(from); - } - - inline SharingLog_ReceiveIntroduction& operator=(const SharingLog_ReceiveIntroduction& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ReceiveIntroduction& operator=(SharingLog_ReceiveIntroduction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ReceiveIntroduction& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ReceiveIntroduction* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ReceiveIntroduction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(SharingLog_ReceiveIntroduction& a, SharingLog_ReceiveIntroduction& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ReceiveIntroduction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ReceiveIntroduction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ReceiveIntroduction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ReceiveIntroduction& from); - void MergeFrom(const SharingLog_ReceiveIntroduction& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ReceiveIntroduction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction"; - } - protected: - explicit SharingLog_ReceiveIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferrerNameFieldNumber = 3, - kShareTargetInfoFieldNumber = 2, - kSessionIdFieldNumber = 1, - }; - // optional string referrer_name = 3; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; - bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); - - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_RespondToIntroduction final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) */ { - public: - inline SharingLog_RespondToIntroduction() : SharingLog_RespondToIntroduction(nullptr) {} - ~SharingLog_RespondToIntroduction() override; - explicit constexpr SharingLog_RespondToIntroduction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_RespondToIntroduction(const SharingLog_RespondToIntroduction& from); - SharingLog_RespondToIntroduction(SharingLog_RespondToIntroduction&& from) noexcept - : SharingLog_RespondToIntroduction() { - *this = ::std::move(from); - } - - inline SharingLog_RespondToIntroduction& operator=(const SharingLog_RespondToIntroduction& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_RespondToIntroduction& operator=(SharingLog_RespondToIntroduction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_RespondToIntroduction& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_RespondToIntroduction* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_RespondToIntroduction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(SharingLog_RespondToIntroduction& a, SharingLog_RespondToIntroduction& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_RespondToIntroduction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_RespondToIntroduction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_RespondToIntroduction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_RespondToIntroduction& from); - void MergeFrom(const SharingLog_RespondToIntroduction& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_RespondToIntroduction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction"; - } - protected: - explicit SharingLog_RespondToIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSessionIdFieldNumber = 2, - kActionFieldNumber = 1, - kQrCodeFlowFieldNumber = 3, - }; - // optional int64 session_id = 2; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; - bool has_action() const; - private: - bool _internal_has_action() const; - public: - void clear_action(); - ::location::nearby::proto::sharing::ResponseToIntroduction action() const; - void set_action(::location::nearby::proto::sharing::ResponseToIntroduction value); - private: - ::location::nearby::proto::sharing::ResponseToIntroduction _internal_action() const; - void _internal_set_action(::location::nearby::proto::sharing::ResponseToIntroduction value); - public: - - // optional bool qr_code_flow = 3; - bool has_qr_code_flow() const; - private: - bool _internal_has_qr_code_flow() const; - public: - void clear_qr_code_flow(); - bool qr_code_flow() const; - void set_qr_code_flow(bool value); private: bool _internal_qr_code_flow() const; void _internal_set_qr_code_flow(bool value); - public: - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction) + public: + // optional bool is_incoming_connection = 9; + bool has_is_incoming_connection() const; + void clear_is_incoming_connection() ; + bool is_incoming_connection() const; + void set_is_incoming_connection(bool value); + + private: + bool _internal_is_incoming_connection() const; + void _internal_set_is_incoming_connection(bool value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.EstablishConnection) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 3, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t session_id_; - int action_; - bool qr_code_flow_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_EstablishConnection& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE qr_code_receiver_connect_latency_; + ::int64_t session_id_; + int status_; + ::int32_t transfer_position_; + ::int64_t duration_millis_; + ::int32_t concurrent_connections_; + bool qr_code_flow_; + bool is_incoming_connection_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_EstablishConnection_class_data_; // ------------------------------------------------------------------- -class SharingLog_SendAttachmentsStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) */ { +class SharingLog_DiscoverShareTarget final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) */ { public: - inline SharingLog_SendAttachmentsStart() : SharingLog_SendAttachmentsStart(nullptr) {} - ~SharingLog_SendAttachmentsStart() override; - explicit constexpr SharingLog_SendAttachmentsStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_DiscoverShareTarget() : SharingLog_DiscoverShareTarget(nullptr) {} + ~SharingLog_DiscoverShareTarget() PROTOBUF_FINAL; - SharingLog_SendAttachmentsStart(const SharingLog_SendAttachmentsStart& from); - SharingLog_SendAttachmentsStart(SharingLog_SendAttachmentsStart&& from) noexcept - : SharingLog_SendAttachmentsStart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DiscoverShareTarget)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_DiscoverShareTarget(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DiscoverShareTarget(const SharingLog_DiscoverShareTarget& from) : SharingLog_DiscoverShareTarget(nullptr, from) {} + inline SharingLog_DiscoverShareTarget(SharingLog_DiscoverShareTarget&& from) noexcept + : SharingLog_DiscoverShareTarget(nullptr, ::std::move(from)) {} + inline SharingLog_DiscoverShareTarget& operator=(const SharingLog_DiscoverShareTarget& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_DiscoverShareTarget& operator=(SharingLog_DiscoverShareTarget&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_DiscoverShareTarget& default_instance() { + return *reinterpret_cast( + &_SharingLog_DiscoverShareTarget_default_instance_); + } + static constexpr int kIndexInFileMessages = 20; + friend void swap(SharingLog_DiscoverShareTarget& a, SharingLog_DiscoverShareTarget& b) { a.Swap(&b); } + inline void Swap(SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_DiscoverShareTarget& from); + void MergeFrom(const SharingLog_DiscoverShareTarget& from) { SharingLog_DiscoverShareTarget::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget"; } + + explicit SharingLog_DiscoverShareTarget(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DiscoverShareTarget(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DiscoverShareTarget& from); + SharingLog_DiscoverShareTarget( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DiscoverShareTarget&& from) noexcept + : SharingLog_DiscoverShareTarget(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kReferrerNameFieldNumber = 5, + kCloudReceiverSessionIdFieldNumber = 8, + kShareTargetInfoFieldNumber = 1, + kDurationSinceScanningFieldNumber = 2, + kSessionIdFieldNumber = 3, + kFlowIdFieldNumber = 4, + kScanTypeFieldNumber = 7, + kLatencySinceActivityStartMillisFieldNumber = 6, + }; + // optional string referrer_name = 5; + bool has_referrer_name() const; + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: + // optional string cloud_receiver_session_id = 8; + bool has_cloud_receiver_session_id() const; + void clear_cloud_receiver_session_id() ; + const ::std::string& cloud_receiver_session_id() const; + template + void set_cloud_receiver_session_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_cloud_receiver_session_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cloud_receiver_session_id(); + void set_allocated_cloud_receiver_session_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_cloud_receiver_session_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_receiver_session_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_cloud_receiver_session_id(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; + bool has_share_target_info() const; + void clear_share_target_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + + public: + // optional .google.protobuf.Duration duration_since_scanning = 2; + bool has_duration_since_scanning() const; + void clear_duration_since_scanning() ; + const ::google::protobuf::Duration& duration_since_scanning() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_duration_since_scanning(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_duration_since_scanning(); + void set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_duration_since_scanning(); + + private: + const ::google::protobuf::Duration& _internal_duration_since_scanning() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_duration_since_scanning(); + + public: + // optional int64 session_id = 3; + bool has_session_id() const; + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: + // optional int64 flow_id = 4; + bool has_flow_id() const; + void clear_flow_id() ; + ::int64_t flow_id() const; + void set_flow_id(::int64_t value); + + private: + ::int64_t _internal_flow_id() const; + void _internal_set_flow_id(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.ScanType scan_type = 7; + bool has_scan_type() const; + void clear_scan_type() ; + ::location::nearby::proto::sharing::ScanType scan_type() const; + void set_scan_type(::location::nearby::proto::sharing::ScanType value); + + private: + ::location::nearby::proto::sharing::ScanType _internal_scan_type() const; + void _internal_set_scan_type(::location::nearby::proto::sharing::ScanType value); + + public: + // optional int64 latency_since_activity_start_millis = 6 [default = -1]; + bool has_latency_since_activity_start_millis() const; + void clear_latency_since_activity_start_millis() ; + ::int64_t latency_since_activity_start_millis() const; + void set_latency_since_activity_start_millis(::int64_t value); + + private: + ::int64_t _internal_latency_since_activity_start_millis() const; + void _internal_set_latency_since_activity_start_millis(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 3, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DiscoverShareTarget& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::google::protobuf::internal::ArenaStringPtr cloud_receiver_session_id_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE duration_since_scanning_; + ::int64_t session_id_; + ::int64_t flow_id_; + int scan_type_; + ::int64_t latency_since_activity_start_millis_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DiscoverShareTarget_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_CloudAttachmentInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) */ { + public: + inline SharingLog_CloudAttachmentInfo() : SharingLog_CloudAttachmentInfo(nullptr) {} + ~SharingLog_CloudAttachmentInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudAttachmentInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudAttachmentInfo(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudAttachmentInfo(const SharingLog_CloudAttachmentInfo& from) : SharingLog_CloudAttachmentInfo(nullptr, from) {} + inline SharingLog_CloudAttachmentInfo(SharingLog_CloudAttachmentInfo&& from) noexcept + : SharingLog_CloudAttachmentInfo(nullptr, ::std::move(from)) {} + inline SharingLog_CloudAttachmentInfo& operator=(const SharingLog_CloudAttachmentInfo& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_CloudAttachmentInfo& operator=(SharingLog_CloudAttachmentInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_CloudAttachmentInfo& default_instance() { + return *reinterpret_cast( + &_SharingLog_CloudAttachmentInfo_default_instance_); + } + enum CloudAttachmentCase { + kTextAttachment = 2, + kFileAttachment = 3, + kWifiCredentialsAttachment = 4, + kAppAttachment = 5, + kStreamAttachment = 6, + CLOUDATTACHMENT_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 72; + friend void swap(SharingLog_CloudAttachmentInfo& a, SharingLog_CloudAttachmentInfo& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_CloudAttachmentInfo& from); + void MergeFrom(const SharingLog_CloudAttachmentInfo& from) { SharingLog_CloudAttachmentInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo"; } + + explicit SharingLog_CloudAttachmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudAttachmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudAttachmentInfo& from); + SharingLog_CloudAttachmentInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudAttachmentInfo&& from) noexcept + : SharingLog_CloudAttachmentInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTransferredBytesFieldNumber = 7, + kDurationMillisFieldNumber = 8, + kStatusFieldNumber = 1, + kTextAttachmentFieldNumber = 2, + kFileAttachmentFieldNumber = 3, + kWifiCredentialsAttachmentFieldNumber = 4, + kAppAttachmentFieldNumber = 5, + kStreamAttachmentFieldNumber = 6, + }; + // optional int64 transferred_bytes = 7; + bool has_transferred_bytes() const; + void clear_transferred_bytes() ; + ::int64_t transferred_bytes() const; + void set_transferred_bytes(::int64_t value); + + private: + ::int64_t _internal_transferred_bytes() const; + void _internal_set_transferred_bytes(::int64_t value); + + public: + // optional int64 duration_millis = 8; + bool has_duration_millis() const; + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; + bool has_status() const; + void clear_status() ; + ::location::nearby::proto::sharing::AttachmentTransmissionStatus status() const; + void set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); + + private: + ::location::nearby::proto::sharing::AttachmentTransmissionStatus _internal_status() const; + void _internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); + + public: + // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; + bool has_text_attachment() const; + private: + bool _internal_has_text_attachment() const; + + public: + void clear_text_attachment() ; + const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& text_attachment() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE release_text_attachment(); + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL mutable_text_attachment(); + void set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE unsafe_arena_release_text_attachment(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& _internal_text_attachment() const; + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL _internal_mutable_text_attachment(); + + public: + // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; + bool has_file_attachment() const; + private: + bool _internal_has_file_attachment() const; + + public: + void clear_file_attachment() ; + const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& file_attachment() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE release_file_attachment(); + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL mutable_file_attachment(); + void set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE unsafe_arena_release_file_attachment(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& _internal_file_attachment() const; + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL _internal_mutable_file_attachment(); + + public: + // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + bool has_wifi_credentials_attachment() const; + private: + bool _internal_has_wifi_credentials_attachment() const; + + public: + void clear_wifi_credentials_attachment() ; + const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& wifi_credentials_attachment() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE release_wifi_credentials_attachment(); + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL mutable_wifi_credentials_attachment(); + void set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE unsafe_arena_release_wifi_credentials_attachment(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& _internal_wifi_credentials_attachment() const; + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL _internal_mutable_wifi_credentials_attachment(); + + public: + // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + bool has_app_attachment() const; + private: + bool _internal_has_app_attachment() const; + + public: + void clear_app_attachment() ; + const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& app_attachment() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE release_app_attachment(); + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL mutable_app_attachment(); + void set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE unsafe_arena_release_app_attachment(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& _internal_app_attachment() const; + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL _internal_mutable_app_attachment(); + + public: + // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + bool has_stream_attachment() const; + private: + bool _internal_has_stream_attachment() const; + + public: + void clear_stream_attachment() ; + const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& stream_attachment() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE release_stream_attachment(); + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL mutable_stream_attachment(); + void set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE unsafe_arena_release_stream_attachment(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& _internal_stream_attachment() const; + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL _internal_mutable_stream_attachment(); + + public: + void clear_CloudAttachment(); + CloudAttachmentCase CloudAttachment_case() const; + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) + private: + class _Internal; + void set_has_text_attachment(); + void set_has_file_attachment(); + void set_has_wifi_credentials_attachment(); + void set_has_app_attachment(); + void set_has_stream_attachment(); + inline bool has_CloudAttachment() const; + inline void clear_has_CloudAttachment(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 8, + 6, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudAttachmentInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t transferred_bytes_; + ::int64_t duration_millis_; + int status_; + union CloudAttachmentUnion { + constexpr CloudAttachmentUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE text_attachment_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE file_attachment_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE wifi_credentials_attachment_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE app_attachment_; + ::google::protobuf::MessageLite* PROTOBUF_NULLABLE stream_attachment_; + } CloudAttachment_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_CloudAttachmentInfo_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_AttachmentsInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) */ { + public: + inline SharingLog_AttachmentsInfo() : SharingLog_AttachmentsInfo(nullptr) {} + ~SharingLog_AttachmentsInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_AttachmentsInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_AttachmentsInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_AttachmentsInfo(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_AttachmentsInfo(const SharingLog_AttachmentsInfo& from) : SharingLog_AttachmentsInfo(nullptr, from) {} + inline SharingLog_AttachmentsInfo(SharingLog_AttachmentsInfo&& from) noexcept + : SharingLog_AttachmentsInfo(nullptr, ::std::move(from)) {} + inline SharingLog_AttachmentsInfo& operator=(const SharingLog_AttachmentsInfo& from) { + CopyFrom(from); + return *this; + } + inline SharingLog_AttachmentsInfo& operator=(SharingLog_AttachmentsInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SharingLog_AttachmentsInfo& default_instance() { + return *reinterpret_cast( + &_SharingLog_AttachmentsInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 66; + friend void swap(SharingLog_AttachmentsInfo& a, SharingLog_AttachmentsInfo& b) { a.Swap(&b); } + inline void Swap(SharingLog_AttachmentsInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SharingLog_AttachmentsInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SharingLog_AttachmentsInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SharingLog_AttachmentsInfo& from); + void MergeFrom(const SharingLog_AttachmentsInfo& from) { SharingLog_AttachmentsInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_AttachmentsInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo"; } + + explicit SharingLog_AttachmentsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_AttachmentsInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_AttachmentsInfo& from); + SharingLog_AttachmentsInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_AttachmentsInfo&& from) noexcept + : SharingLog_AttachmentsInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTextAttachmentFieldNumber = 1, + kFileAttachmentFieldNumber = 2, + kWifiCredentialsAttachmentFieldNumber = 4, + kAppAttachmentFieldNumber = 5, + kStreamAttachmentFieldNumber = 6, + kRequiredAppFieldNumber = 3, + }; + // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; + int text_attachment_size() const; + private: + int _internal_text_attachment_size() const; + + public: + void clear_text_attachment() ; + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL mutable_text_attachment(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>* PROTOBUF_NONNULL mutable_text_attachment(); + + private: + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>& _internal_text_attachment() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>* PROTOBUF_NONNULL _internal_mutable_text_attachment(); + public: + const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& text_attachment(int index) const; + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL add_text_attachment(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>& text_attachment() const; + // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; + int file_attachment_size() const; + private: + int _internal_file_attachment_size() const; + + public: + void clear_file_attachment() ; + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL mutable_file_attachment(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>* PROTOBUF_NONNULL mutable_file_attachment(); + + private: + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>& _internal_file_attachment() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>* PROTOBUF_NONNULL _internal_mutable_file_attachment(); + public: + const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& file_attachment(int index) const; + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL add_file_attachment(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>& file_attachment() const; + // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; + int wifi_credentials_attachment_size() const; + private: + int _internal_wifi_credentials_attachment_size() const; + + public: + void clear_wifi_credentials_attachment() ; + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL mutable_wifi_credentials_attachment(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>* PROTOBUF_NONNULL mutable_wifi_credentials_attachment(); + + private: + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>& _internal_wifi_credentials_attachment() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>* PROTOBUF_NONNULL _internal_mutable_wifi_credentials_attachment(); + public: + const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& wifi_credentials_attachment(int index) const; + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL add_wifi_credentials_attachment(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>& wifi_credentials_attachment() const; + // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; + int app_attachment_size() const; + private: + int _internal_app_attachment_size() const; + + public: + void clear_app_attachment() ; + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL mutable_app_attachment(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>* PROTOBUF_NONNULL mutable_app_attachment(); + + private: + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>& _internal_app_attachment() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>* PROTOBUF_NONNULL _internal_mutable_app_attachment(); + public: + const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& app_attachment(int index) const; + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL add_app_attachment(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>& app_attachment() const; + // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; + int stream_attachment_size() const; + private: + int _internal_stream_attachment_size() const; + + public: + void clear_stream_attachment() ; + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL mutable_stream_attachment(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>* PROTOBUF_NONNULL mutable_stream_attachment(); + + private: + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>& _internal_stream_attachment() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>* PROTOBUF_NONNULL _internal_mutable_stream_attachment(); + public: + const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& stream_attachment(int index) const; + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL add_stream_attachment(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>& stream_attachment() const; + // optional string required_app = 3; + bool has_required_app() const; + void clear_required_app() ; + const ::std::string& required_app() const; + template + void set_required_app(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_required_app(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_required_app(); + void set_allocated_required_app(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_required_app() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_required_app(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_required_app(); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 5, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_AttachmentsInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment > text_attachment_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment > file_attachment_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment > wifi_credentials_attachment_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment > app_attachment_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment > stream_attachment_; + ::google::protobuf::internal::ArenaStringPtr required_app_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<58> SharingLog_AttachmentsInfo_class_data_; +// ------------------------------------------------------------------- + +class SharingLog_SendAttachmentsStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) */ { + public: + inline SharingLog_SendAttachmentsStart() : SharingLog_SendAttachmentsStart(nullptr) {} + ~SharingLog_SendAttachmentsStart() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendAttachmentsStart)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendAttachmentsStart(const SharingLog_SendAttachmentsStart& from) : SharingLog_SendAttachmentsStart(nullptr, from) {} + inline SharingLog_SendAttachmentsStart(SharingLog_SendAttachmentsStart&& from) noexcept + : SharingLog_SendAttachmentsStart(nullptr, ::std::move(from)) {} inline SharingLog_SendAttachmentsStart& operator=(const SharingLog_SendAttachmentsStart& from) { CopyFrom(from); return *this; } inline SharingLog_SendAttachmentsStart& operator=(SharingLog_SendAttachmentsStart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5436,87 +17165,102 @@ class SharingLog_SendAttachmentsStart final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_SendAttachmentsStart& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_SendAttachmentsStart_default_instance_); } - static inline const SharingLog_SendAttachmentsStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendAttachmentsStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(SharingLog_SendAttachmentsStart& a, SharingLog_SendAttachmentsStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendAttachmentsStart* other) { + static constexpr int kIndexInFileMessages = 26; + friend void swap(SharingLog_SendAttachmentsStart& a, SharingLog_SendAttachmentsStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SendAttachmentsStart* other) { + void UnsafeArenaSwap(SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SendAttachmentsStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_SendAttachmentsStart& from); - void MergeFrom(const SharingLog_SendAttachmentsStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_SendAttachmentsStart& from) { SharingLog_SendAttachmentsStart::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendAttachmentsStart* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart"; - } - protected: - explicit SharingLog_SendAttachmentsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart"; } + + explicit SharingLog_SendAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendAttachmentsStart& from); + SharingLog_SendAttachmentsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendAttachmentsStart&& from) noexcept + : SharingLog_SendAttachmentsStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 2, kShareTargetInfoFieldNumber = 6, @@ -5529,163 +17273,169 @@ class SharingLog_SendAttachmentsStart final : }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); + void clear_share_target_info() ; const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + public: // optional int64 session_id = 1; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // optional int32 transfer_position = 3; bool has_transfer_position() const; - private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); + private: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); + + public: // optional int32 concurrent_connections = 4; bool has_concurrent_connections() const; - private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); - public: + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); - // optional bool qr_code_flow = 5 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_qr_code_flow() const; private: - bool _internal_has_qr_code_flow() const; + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + public: - PROTOBUF_DEPRECATED void clear_qr_code_flow(); - PROTOBUF_DEPRECATED bool qr_code_flow() const; - PROTOBUF_DEPRECATED void set_qr_code_flow(bool value); + // optional bool qr_code_flow = 5 [deprecated = true]; + [[deprecated]] bool has_qr_code_flow() const; + [[deprecated]] void clear_qr_code_flow() ; + [[deprecated]] bool qr_code_flow() const; + [[deprecated]] void set_qr_code_flow(bool value); + private: bool _internal_qr_code_flow() const; void _internal_set_qr_code_flow(bool value); - public: + public: // optional bool advanced_protection_enabled = 7; bool has_advanced_protection_enabled() const; - private: - bool _internal_has_advanced_protection_enabled() const; - public: - void clear_advanced_protection_enabled(); + void clear_advanced_protection_enabled() ; bool advanced_protection_enabled() const; void set_advanced_protection_enabled(bool value); + private: bool _internal_advanced_protection_enabled() const; void _internal_set_advanced_protection_enabled(bool value); - public: + public: // optional bool advanced_protection_mismatch = 8; bool has_advanced_protection_mismatch() const; - private: - bool _internal_has_advanced_protection_mismatch() const; - public: - void clear_advanced_protection_mismatch(); + void clear_advanced_protection_mismatch() ; bool advanced_protection_mismatch() const; void set_advanced_protection_mismatch(bool value); + private: bool _internal_advanced_protection_mismatch() const; void _internal_set_advanced_protection_mismatch(bool value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int32_t transfer_position_; - int32_t concurrent_connections_; - bool qr_code_flow_; - bool advanced_protection_enabled_; - bool advanced_protection_mismatch_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendAttachmentsStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int32_t transfer_position_; + ::int32_t concurrent_connections_; + bool qr_code_flow_; + bool advanced_protection_enabled_; + bool advanced_protection_mismatch_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<63> SharingLog_SendAttachmentsStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_SendAttachmentsEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) */ { +class SharingLog_SendAttachmentsEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) */ { public: inline SharingLog_SendAttachmentsEnd() : SharingLog_SendAttachmentsEnd(nullptr) {} - ~SharingLog_SendAttachmentsEnd() override; - explicit constexpr SharingLog_SendAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_SendAttachmentsEnd() PROTOBUF_FINAL; - SharingLog_SendAttachmentsEnd(const SharingLog_SendAttachmentsEnd& from); - SharingLog_SendAttachmentsEnd(SharingLog_SendAttachmentsEnd&& from) noexcept - : SharingLog_SendAttachmentsEnd() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_SendAttachmentsEnd)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_SendAttachmentsEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_SendAttachmentsEnd(const SharingLog_SendAttachmentsEnd& from) : SharingLog_SendAttachmentsEnd(nullptr, from) {} + inline SharingLog_SendAttachmentsEnd(SharingLog_SendAttachmentsEnd&& from) noexcept + : SharingLog_SendAttachmentsEnd(nullptr, ::std::move(from)) {} inline SharingLog_SendAttachmentsEnd& operator=(const SharingLog_SendAttachmentsEnd& from) { CopyFrom(from); return *this; } inline SharingLog_SendAttachmentsEnd& operator=(SharingLog_SendAttachmentsEnd&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5693,87 +17443,102 @@ class SharingLog_SendAttachmentsEnd final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_SendAttachmentsEnd& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_SendAttachmentsEnd_default_instance_); } - static inline const SharingLog_SendAttachmentsEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendAttachmentsEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(SharingLog_SendAttachmentsEnd& a, SharingLog_SendAttachmentsEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendAttachmentsEnd* other) { + static constexpr int kIndexInFileMessages = 27; + friend void swap(SharingLog_SendAttachmentsEnd& a, SharingLog_SendAttachmentsEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_SendAttachmentsEnd* other) { + void UnsafeArenaSwap(SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_SendAttachmentsEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_SendAttachmentsEnd& from); - void MergeFrom(const SharingLog_SendAttachmentsEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_SendAttachmentsEnd& from) { SharingLog_SendAttachmentsEnd::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendAttachmentsEnd* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd"; - } - protected: - explicit SharingLog_SendAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd"; } + + explicit SharingLog_SendAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_SendAttachmentsEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_SendAttachmentsEnd& from); + SharingLog_SendAttachmentsEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_SendAttachmentsEnd&& from) noexcept + : SharingLog_SendAttachmentsEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kReferrerNameFieldNumber = 9, kAttachmentsInfoFieldNumber = 6, @@ -5794,280 +17559,270 @@ class SharingLog_SendAttachmentsEnd final : }; // optional string referrer_name = 9; bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: + void clear_referrer_name() ; + const ::std::string& referrer_name() const; + template + void set_referrer_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_referrer_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_referrer_name(); + void set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_referrer_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_referrer_name(); + + public: // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); + void clear_share_target_info() ; const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + public: // optional int64 session_id = 1; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // optional int64 sent_bytes = 2; bool has_sent_bytes() const; - private: - bool _internal_has_sent_bytes() const; - public: - void clear_sent_bytes(); - int64_t sent_bytes() const; - void set_sent_bytes(int64_t value); - private: - int64_t _internal_sent_bytes() const; - void _internal_set_sent_bytes(int64_t value); - public: + void clear_sent_bytes() ; + ::int64_t sent_bytes() const; + void set_sent_bytes(::int64_t value); + private: + ::int64_t _internal_sent_bytes() const; + void _internal_set_sent_bytes(::int64_t value); + + public: // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); + void clear_status() ; ::location::nearby::proto::sharing::AttachmentTransmissionStatus status() const; void set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); + private: ::location::nearby::proto::sharing::AttachmentTransmissionStatus _internal_status() const; void _internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); - public: + public: // optional int32 transfer_position = 4; bool has_transfer_position() const; - private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: + void clear_transfer_position() ; + ::int32_t transfer_position() const; + void set_transfer_position(::int32_t value); + private: + ::int32_t _internal_transfer_position() const; + void _internal_set_transfer_position(::int32_t value); + + public: // optional int64 duration_millis = 7; bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: + void clear_duration_millis() ; + ::int64_t duration_millis() const; + void set_duration_millis(::int64_t value); + private: + ::int64_t _internal_duration_millis() const; + void _internal_set_duration_millis(::int64_t value); + + public: // optional int32 concurrent_connections = 5; bool has_concurrent_connections() const; - private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); - public: + void clear_concurrent_connections() ; + ::int32_t concurrent_connections() const; + void set_concurrent_connections(::int32_t value); + private: + ::int32_t _internal_concurrent_connections() const; + void _internal_set_concurrent_connections(::int32_t value); + + public: // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; bool has_connection_layer_status() const; - private: - bool _internal_has_connection_layer_status() const; - public: - void clear_connection_layer_status(); + void clear_connection_layer_status() ; ::location::nearby::proto::sharing::ConnectionLayerStatus connection_layer_status() const; void set_connection_layer_status(::location::nearby::proto::sharing::ConnectionLayerStatus value); + private: ::location::nearby::proto::sharing::ConnectionLayerStatus _internal_connection_layer_status() const; void _internal_set_connection_layer_status(::location::nearby::proto::sharing::ConnectionLayerStatus value); - public: + public: // optional int32 first_successful_transfer_date = 11; bool has_first_successful_transfer_date() const; - private: - bool _internal_has_first_successful_transfer_date() const; - public: - void clear_first_successful_transfer_date(); - int32_t first_successful_transfer_date() const; - void set_first_successful_transfer_date(int32_t value); - private: - int32_t _internal_first_successful_transfer_date() const; - void _internal_set_first_successful_transfer_date(int32_t value); - public: + void clear_first_successful_transfer_date() ; + ::int32_t first_successful_transfer_date() const; + void set_first_successful_transfer_date(::int32_t value); + private: + ::int32_t _internal_first_successful_transfer_date() const; + void _internal_set_first_successful_transfer_date(::int32_t value); + + public: // optional int32 previous_successful_transfer_date = 12; bool has_previous_successful_transfer_date() const; - private: - bool _internal_has_previous_successful_transfer_date() const; - public: - void clear_previous_successful_transfer_date(); - int32_t previous_successful_transfer_date() const; - void set_previous_successful_transfer_date(int32_t value); - private: - int32_t _internal_previous_successful_transfer_date() const; - void _internal_set_previous_successful_transfer_date(int32_t value); - public: + void clear_previous_successful_transfer_date() ; + ::int32_t previous_successful_transfer_date() const; + void set_previous_successful_transfer_date(::int32_t value); + private: + ::int32_t _internal_previous_successful_transfer_date() const; + void _internal_set_previous_successful_transfer_date(::int32_t value); + + public: // optional int32 lifetime_transfer_count = 13; bool has_lifetime_transfer_count() const; - private: - bool _internal_has_lifetime_transfer_count() const; - public: - void clear_lifetime_transfer_count(); - int32_t lifetime_transfer_count() const; - void set_lifetime_transfer_count(int32_t value); - private: - int32_t _internal_lifetime_transfer_count() const; - void _internal_set_lifetime_transfer_count(int32_t value); - public: + void clear_lifetime_transfer_count() ; + ::int32_t lifetime_transfer_count() const; + void set_lifetime_transfer_count(::int32_t value); + private: + ::int32_t _internal_lifetime_transfer_count() const; + void _internal_set_lifetime_transfer_count(::int32_t value); + + public: // optional int32 connection_medium = 14; bool has_connection_medium() const; - private: - bool _internal_has_connection_medium() const; - public: - void clear_connection_medium(); - int32_t connection_medium() const; - void set_connection_medium(int32_t value); - private: - int32_t _internal_connection_medium() const; - void _internal_set_connection_medium(int32_t value); - public: + void clear_connection_medium() ; + ::int32_t connection_medium() const; + void set_connection_medium(::int32_t value); + private: + ::int32_t _internal_connection_medium() const; + void _internal_set_connection_medium(::int32_t value); + + public: // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; bool has_data_usage() const; - private: - bool _internal_has_data_usage() const; - public: - void clear_data_usage(); + void clear_data_usage() ; ::location::nearby::proto::sharing::DataUsage data_usage() const; void set_data_usage(::location::nearby::proto::sharing::DataUsage value); + private: ::location::nearby::proto::sharing::DataUsage _internal_data_usage() const; void _internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value); - public: + public: // optional bool is_mutual_contact = 16; bool has_is_mutual_contact() const; - private: - bool _internal_has_is_mutual_contact() const; - public: - void clear_is_mutual_contact(); + void clear_is_mutual_contact() ; bool is_mutual_contact() const; void set_is_mutual_contact(bool value); + private: bool _internal_is_mutual_contact() const; void _internal_set_is_mutual_contact(bool value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 16, + 5, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int64_t sent_bytes_; - int status_; - int32_t transfer_position_; - int64_t duration_millis_; - int32_t concurrent_connections_; - int connection_layer_status_; - int32_t first_successful_transfer_date_; - int32_t previous_successful_transfer_date_; - int32_t lifetime_transfer_count_; - int32_t connection_medium_; - int data_usage_; - bool is_mutual_contact_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_SendAttachmentsEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr referrer_name_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + ::int64_t sent_bytes_; + int status_; + ::int32_t transfer_position_; + ::int64_t duration_millis_; + ::int32_t concurrent_connections_; + int connection_layer_status_; + ::int32_t first_successful_transfer_date_; + ::int32_t previous_successful_transfer_date_; + ::int32_t lifetime_transfer_count_; + ::int32_t connection_medium_; + int data_usage_; + bool is_mutual_contact_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_SendAttachmentsEnd_class_data_; // ------------------------------------------------------------------- -class SharingLog_ReceiveAttachmentsStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) */ { +class SharingLog_ReceiveAttachmentsStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) */ { public: inline SharingLog_ReceiveAttachmentsStart() : SharingLog_ReceiveAttachmentsStart(nullptr) {} - ~SharingLog_ReceiveAttachmentsStart() override; - explicit constexpr SharingLog_ReceiveAttachmentsStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_ReceiveAttachmentsStart() PROTOBUF_FINAL; - SharingLog_ReceiveAttachmentsStart(const SharingLog_ReceiveAttachmentsStart& from); - SharingLog_ReceiveAttachmentsStart(SharingLog_ReceiveAttachmentsStart&& from) noexcept - : SharingLog_ReceiveAttachmentsStart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_ReceiveAttachmentsStart)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_ReceiveAttachmentsStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_ReceiveAttachmentsStart(const SharingLog_ReceiveAttachmentsStart& from) : SharingLog_ReceiveAttachmentsStart(nullptr, from) {} + inline SharingLog_ReceiveAttachmentsStart(SharingLog_ReceiveAttachmentsStart&& from) noexcept + : SharingLog_ReceiveAttachmentsStart(nullptr, ::std::move(from)) {} inline SharingLog_ReceiveAttachmentsStart& operator=(const SharingLog_ReceiveAttachmentsStart& from) { CopyFrom(from); return *this; } inline SharingLog_ReceiveAttachmentsStart& operator=(SharingLog_ReceiveAttachmentsStart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6075,87 +17830,102 @@ class SharingLog_ReceiveAttachmentsStart final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_ReceiveAttachmentsStart& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_ReceiveAttachmentsStart_default_instance_); } - static inline const SharingLog_ReceiveAttachmentsStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ReceiveAttachmentsStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(SharingLog_ReceiveAttachmentsStart& a, SharingLog_ReceiveAttachmentsStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ReceiveAttachmentsStart* other) { + static constexpr int kIndexInFileMessages = 28; + friend void swap(SharingLog_ReceiveAttachmentsStart& a, SharingLog_ReceiveAttachmentsStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_ReceiveAttachmentsStart* other) { + void UnsafeArenaSwap(SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_ReceiveAttachmentsStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_ReceiveAttachmentsStart& from); - void MergeFrom(const SharingLog_ReceiveAttachmentsStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_ReceiveAttachmentsStart& from) { SharingLog_ReceiveAttachmentsStart::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ReceiveAttachmentsStart* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart"; - } - protected: - explicit SharingLog_ReceiveAttachmentsStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart"; } + + explicit SharingLog_ReceiveAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_ReceiveAttachmentsStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_ReceiveAttachmentsStart& from); + SharingLog_ReceiveAttachmentsStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_ReceiveAttachmentsStart&& from) noexcept + : SharingLog_ReceiveAttachmentsStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 2, kShareTargetInfoFieldNumber = 3, @@ -6163,957 +17933,109 @@ class SharingLog_ReceiveAttachmentsStart final : }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); + void clear_share_target_info() ; const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL mutable_share_target_info(); + void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE unsafe_arena_release_share_target_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL _internal_mutable_share_target_info(); + public: // optional int64 session_id = 1; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ReceiveAttachmentsEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) */ { - public: - inline SharingLog_ReceiveAttachmentsEnd() : SharingLog_ReceiveAttachmentsEnd(nullptr) {} - ~SharingLog_ReceiveAttachmentsEnd() override; - explicit constexpr SharingLog_ReceiveAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ReceiveAttachmentsEnd(const SharingLog_ReceiveAttachmentsEnd& from); - SharingLog_ReceiveAttachmentsEnd(SharingLog_ReceiveAttachmentsEnd&& from) noexcept - : SharingLog_ReceiveAttachmentsEnd() { - *this = ::std::move(from); - } - - inline SharingLog_ReceiveAttachmentsEnd& operator=(const SharingLog_ReceiveAttachmentsEnd& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ReceiveAttachmentsEnd& operator=(SharingLog_ReceiveAttachmentsEnd&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ReceiveAttachmentsEnd& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ReceiveAttachmentsEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ReceiveAttachmentsEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(SharingLog_ReceiveAttachmentsEnd& a, SharingLog_ReceiveAttachmentsEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ReceiveAttachmentsEnd* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ReceiveAttachmentsEnd* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ReceiveAttachmentsEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ReceiveAttachmentsEnd& from); - void MergeFrom(const SharingLog_ReceiveAttachmentsEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ReceiveAttachmentsEnd* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd"; - } - protected: - explicit SharingLog_ReceiveAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferrerNameFieldNumber = 4, - kShareTargetInfoFieldNumber = 5, - kSessionIdFieldNumber = 1, - kReceivedBytesFieldNumber = 2, - kStatusFieldNumber = 3, - kFirstSuccessfulTransferDateFieldNumber = 6, - kPreviousSuccessfulTransferDateFieldNumber = 7, - kLifetimeTransferCountFieldNumber = 8, - kConnectionMediumFieldNumber = 14, - kDataUsageFieldNumber = 15, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_ReceiveAttachmentsStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE share_target_info_; + ::int64_t session_id_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional string referrer_name = 4; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; - bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); - - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional int64 received_bytes = 2; - bool has_received_bytes() const; - private: - bool _internal_has_received_bytes() const; - public: - void clear_received_bytes(); - int64_t received_bytes() const; - void set_received_bytes(int64_t value); - private: - int64_t _internal_received_bytes() const; - void _internal_set_received_bytes(int64_t value); - public: - - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::AttachmentTransmissionStatus status() const; - void set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); - private: - ::location::nearby::proto::sharing::AttachmentTransmissionStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); - public: - - // optional int32 first_successful_transfer_date = 6; - bool has_first_successful_transfer_date() const; - private: - bool _internal_has_first_successful_transfer_date() const; - public: - void clear_first_successful_transfer_date(); - int32_t first_successful_transfer_date() const; - void set_first_successful_transfer_date(int32_t value); - private: - int32_t _internal_first_successful_transfer_date() const; - void _internal_set_first_successful_transfer_date(int32_t value); - public: - - // optional int32 previous_successful_transfer_date = 7; - bool has_previous_successful_transfer_date() const; - private: - bool _internal_has_previous_successful_transfer_date() const; - public: - void clear_previous_successful_transfer_date(); - int32_t previous_successful_transfer_date() const; - void set_previous_successful_transfer_date(int32_t value); - private: - int32_t _internal_previous_successful_transfer_date() const; - void _internal_set_previous_successful_transfer_date(int32_t value); - public: - - // optional int32 lifetime_transfer_count = 8; - bool has_lifetime_transfer_count() const; - private: - bool _internal_has_lifetime_transfer_count() const; - public: - void clear_lifetime_transfer_count(); - int32_t lifetime_transfer_count() const; - void set_lifetime_transfer_count(int32_t value); - private: - int32_t _internal_lifetime_transfer_count() const; - void _internal_set_lifetime_transfer_count(int32_t value); - public: - - // optional int32 connection_medium = 14; - bool has_connection_medium() const; - private: - bool _internal_has_connection_medium() const; - public: - void clear_connection_medium(); - int32_t connection_medium() const; - void set_connection_medium(int32_t value); - private: - int32_t _internal_connection_medium() const; - void _internal_set_connection_medium(int32_t value); - public: - - // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; - bool has_data_usage() const; - private: - bool _internal_has_data_usage() const; - public: - void clear_data_usage(); - ::location::nearby::proto::sharing::DataUsage data_usage() const; - void set_data_usage(::location::nearby::proto::sharing::DataUsage value); - private: - ::location::nearby::proto::sharing::DataUsage _internal_data_usage() const; - void _internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int64_t received_bytes_; - int status_; - int32_t first_successful_transfer_date_; - int32_t previous_successful_transfer_date_; - int32_t lifetime_transfer_count_; - int32_t connection_medium_; - int data_usage_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_ReceiveAttachmentsStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_CancelConnection final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelConnection) */ { - public: - inline SharingLog_CancelConnection() : SharingLog_CancelConnection(nullptr) {} - ~SharingLog_CancelConnection() override; - explicit constexpr SharingLog_CancelConnection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CancelConnection(const SharingLog_CancelConnection& from); - SharingLog_CancelConnection(SharingLog_CancelConnection&& from) noexcept - : SharingLog_CancelConnection() { - *this = ::std::move(from); - } - - inline SharingLog_CancelConnection& operator=(const SharingLog_CancelConnection& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CancelConnection& operator=(SharingLog_CancelConnection&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CancelConnection& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_CancelConnection* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CancelConnection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(SharingLog_CancelConnection& a, SharingLog_CancelConnection& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CancelConnection* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CancelConnection* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CancelConnection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CancelConnection& from); - void MergeFrom(const SharingLog_CancelConnection& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CancelConnection* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CancelConnection"; - } - protected: - explicit SharingLog_CancelConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSessionIdFieldNumber = 1, - kTransferPositionFieldNumber = 2, - kConcurrentConnectionsFieldNumber = 3, - }; - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional int32 transfer_position = 2; - bool has_transfer_position() const; - private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: - - // optional int32 concurrent_connections = 3; - bool has_concurrent_connections() const; - private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelConnection) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t session_id_; - int32_t transfer_position_; - int32_t concurrent_connections_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_CancelSendingAttachments final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) */ { - public: - inline SharingLog_CancelSendingAttachments() : SharingLog_CancelSendingAttachments(nullptr) {} - ~SharingLog_CancelSendingAttachments() override; - explicit constexpr SharingLog_CancelSendingAttachments(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CancelSendingAttachments(const SharingLog_CancelSendingAttachments& from); - SharingLog_CancelSendingAttachments(SharingLog_CancelSendingAttachments&& from) noexcept - : SharingLog_CancelSendingAttachments() { - *this = ::std::move(from); - } - - inline SharingLog_CancelSendingAttachments& operator=(const SharingLog_CancelSendingAttachments& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CancelSendingAttachments& operator=(SharingLog_CancelSendingAttachments&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CancelSendingAttachments& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_CancelSendingAttachments* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CancelSendingAttachments_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(SharingLog_CancelSendingAttachments& a, SharingLog_CancelSendingAttachments& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CancelSendingAttachments* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CancelSendingAttachments* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CancelSendingAttachments* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CancelSendingAttachments& from); - void MergeFrom(const SharingLog_CancelSendingAttachments& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CancelSendingAttachments* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments"; - } - protected: - explicit SharingLog_CancelSendingAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_CancelReceivingAttachments final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) */ { - public: - inline SharingLog_CancelReceivingAttachments() : SharingLog_CancelReceivingAttachments(nullptr) {} - ~SharingLog_CancelReceivingAttachments() override; - explicit constexpr SharingLog_CancelReceivingAttachments(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CancelReceivingAttachments(const SharingLog_CancelReceivingAttachments& from); - SharingLog_CancelReceivingAttachments(SharingLog_CancelReceivingAttachments&& from) noexcept - : SharingLog_CancelReceivingAttachments() { - *this = ::std::move(from); - } - - inline SharingLog_CancelReceivingAttachments& operator=(const SharingLog_CancelReceivingAttachments& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CancelReceivingAttachments& operator=(SharingLog_CancelReceivingAttachments&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CancelReceivingAttachments& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_CancelReceivingAttachments* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CancelReceivingAttachments_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(SharingLog_CancelReceivingAttachments& a, SharingLog_CancelReceivingAttachments& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CancelReceivingAttachments* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CancelReceivingAttachments* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CancelReceivingAttachments* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CancelReceivingAttachments& from); - void MergeFrom(const SharingLog_CancelReceivingAttachments& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CancelReceivingAttachments* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments"; - } - protected: - explicit SharingLog_CancelReceivingAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ProcessReceivedAttachmentsEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) */ { - public: - inline SharingLog_ProcessReceivedAttachmentsEnd() : SharingLog_ProcessReceivedAttachmentsEnd(nullptr) {} - ~SharingLog_ProcessReceivedAttachmentsEnd() override; - explicit constexpr SharingLog_ProcessReceivedAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ProcessReceivedAttachmentsEnd(const SharingLog_ProcessReceivedAttachmentsEnd& from); - SharingLog_ProcessReceivedAttachmentsEnd(SharingLog_ProcessReceivedAttachmentsEnd&& from) noexcept - : SharingLog_ProcessReceivedAttachmentsEnd() { - *this = ::std::move(from); - } - - inline SharingLog_ProcessReceivedAttachmentsEnd& operator=(const SharingLog_ProcessReceivedAttachmentsEnd& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ProcessReceivedAttachmentsEnd& operator=(SharingLog_ProcessReceivedAttachmentsEnd&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ProcessReceivedAttachmentsEnd& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ProcessReceivedAttachmentsEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(SharingLog_ProcessReceivedAttachmentsEnd& a, SharingLog_ProcessReceivedAttachmentsEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ProcessReceivedAttachmentsEnd* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ProcessReceivedAttachmentsEnd* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ProcessReceivedAttachmentsEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from); - void MergeFrom(const SharingLog_ProcessReceivedAttachmentsEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ProcessReceivedAttachmentsEnd* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd"; - } - protected: - explicit SharingLog_ProcessReceivedAttachmentsEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSessionIdFieldNumber = 1, - kStatusFieldNumber = 2, - }; - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus status() const; - void set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value); - private: - ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t session_id_; - int status_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_OpenReceivedAttachments final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) */ { +class SharingLog_OpenReceivedAttachments final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) */ { public: inline SharingLog_OpenReceivedAttachments() : SharingLog_OpenReceivedAttachments(nullptr) {} - ~SharingLog_OpenReceivedAttachments() override; - explicit constexpr SharingLog_OpenReceivedAttachments(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_OpenReceivedAttachments() PROTOBUF_FINAL; - SharingLog_OpenReceivedAttachments(const SharingLog_OpenReceivedAttachments& from); - SharingLog_OpenReceivedAttachments(SharingLog_OpenReceivedAttachments&& from) noexcept - : SharingLog_OpenReceivedAttachments() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_OpenReceivedAttachments)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_OpenReceivedAttachments(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_OpenReceivedAttachments(const SharingLog_OpenReceivedAttachments& from) : SharingLog_OpenReceivedAttachments(nullptr, from) {} + inline SharingLog_OpenReceivedAttachments(SharingLog_OpenReceivedAttachments&& from) noexcept + : SharingLog_OpenReceivedAttachments(nullptr, ::std::move(from)) {} inline SharingLog_OpenReceivedAttachments& operator=(const SharingLog_OpenReceivedAttachments& from) { CopyFrom(from); return *this; } inline SharingLog_OpenReceivedAttachments& operator=(SharingLog_OpenReceivedAttachments&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7121,442 +18043,195 @@ class SharingLog_OpenReceivedAttachments final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_OpenReceivedAttachments& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_OpenReceivedAttachments_default_instance_); } - static inline const SharingLog_OpenReceivedAttachments* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_OpenReceivedAttachments_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(SharingLog_OpenReceivedAttachments& a, SharingLog_OpenReceivedAttachments& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_OpenReceivedAttachments* other) { + static constexpr int kIndexInFileMessages = 34; + friend void swap(SharingLog_OpenReceivedAttachments& a, SharingLog_OpenReceivedAttachments& b) { a.Swap(&b); } + inline void Swap(SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_OpenReceivedAttachments* other) { + void UnsafeArenaSwap(SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_OpenReceivedAttachments* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_OpenReceivedAttachments& from); - void MergeFrom(const SharingLog_OpenReceivedAttachments& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_OpenReceivedAttachments& from) { SharingLog_OpenReceivedAttachments::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_OpenReceivedAttachments* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments"; - } - protected: - explicit SharingLog_OpenReceivedAttachments(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments"; } + + explicit SharingLog_OpenReceivedAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_OpenReceivedAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_OpenReceivedAttachments& from); + SharingLog_OpenReceivedAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_OpenReceivedAttachments&& from) noexcept + : SharingLog_OpenReceivedAttachments(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 3, kSessionIdFieldNumber = 4, }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional int64 session_id = 4; bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: + void clear_session_id() ; + ::int64_t session_id() const; + void set_session_id(::int64_t value); + private: + ::int64_t _internal_session_id() const; + void _internal_set_session_id(::int64_t value); + + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - int64_t session_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_LaunchSetupActivity final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) */ { - public: - inline SharingLog_LaunchSetupActivity() : SharingLog_LaunchSetupActivity(nullptr) {} - ~SharingLog_LaunchSetupActivity() override; - explicit constexpr SharingLog_LaunchSetupActivity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_LaunchSetupActivity(const SharingLog_LaunchSetupActivity& from); - SharingLog_LaunchSetupActivity(SharingLog_LaunchSetupActivity&& from) noexcept - : SharingLog_LaunchSetupActivity() { - *this = ::std::move(from); - } - - inline SharingLog_LaunchSetupActivity& operator=(const SharingLog_LaunchSetupActivity& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_LaunchSetupActivity& operator=(SharingLog_LaunchSetupActivity&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_LaunchSetupActivity& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_LaunchSetupActivity* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_LaunchSetupActivity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(SharingLog_LaunchSetupActivity& a, SharingLog_LaunchSetupActivity& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_LaunchSetupActivity* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_LaunchSetupActivity* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_LaunchSetupActivity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_LaunchSetupActivity& from); - void MergeFrom(const SharingLog_LaunchSetupActivity& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_LaunchSetupActivity* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity"; - } - protected: - explicit SharingLog_LaunchSetupActivity(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchSetupActivity) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AddContact final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AddContact) */ { - public: - inline SharingLog_AddContact() : SharingLog_AddContact(nullptr) {} - ~SharingLog_AddContact() override; - explicit constexpr SharingLog_AddContact(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AddContact(const SharingLog_AddContact& from); - SharingLog_AddContact(SharingLog_AddContact&& from) noexcept - : SharingLog_AddContact() { - *this = ::std::move(from); - } - - inline SharingLog_AddContact& operator=(const SharingLog_AddContact& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AddContact& operator=(SharingLog_AddContact&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AddContact& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AddContact* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AddContact_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(SharingLog_AddContact& a, SharingLog_AddContact& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AddContact* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AddContact* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AddContact* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AddContact& from); - void MergeFrom(const SharingLog_AddContact& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AddContact* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AddContact"; - } - protected: - explicit SharingLog_AddContact(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWasPhoneAddedFieldNumber = 1, - kWasEmailAddedFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_OpenReceivedAttachments& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::int64_t session_id_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional bool was_phone_added = 1; - bool has_was_phone_added() const; - private: - bool _internal_has_was_phone_added() const; - public: - void clear_was_phone_added(); - bool was_phone_added() const; - void set_was_phone_added(bool value); - private: - bool _internal_was_phone_added() const; - void _internal_set_was_phone_added(bool value); - public: - - // optional bool was_email_added = 2; - bool has_was_email_added() const; - private: - bool _internal_has_was_email_added() const; - public: - void clear_was_email_added(); - bool was_email_added() const; - void set_was_email_added(bool value); - private: - bool _internal_was_email_added() const; - void _internal_set_was_email_added(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AddContact) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool was_phone_added_; - bool was_email_added_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<66> SharingLog_OpenReceivedAttachments_class_data_; // ------------------------------------------------------------------- -class SharingLog_RemoveContact final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RemoveContact) */ { +class SharingLog_DescribeAttachments final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) */ { public: - inline SharingLog_RemoveContact() : SharingLog_RemoveContact(nullptr) {} - ~SharingLog_RemoveContact() override; - explicit constexpr SharingLog_RemoveContact(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_DescribeAttachments() : SharingLog_DescribeAttachments(nullptr) {} + ~SharingLog_DescribeAttachments() PROTOBUF_FINAL; - SharingLog_RemoveContact(const SharingLog_RemoveContact& from); - SharingLog_RemoveContact(SharingLog_RemoveContact&& from) noexcept - : SharingLog_RemoveContact() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_DescribeAttachments* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_DescribeAttachments)); } +#endif - inline SharingLog_RemoveContact& operator=(const SharingLog_RemoveContact& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_DescribeAttachments(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_DescribeAttachments(const SharingLog_DescribeAttachments& from) : SharingLog_DescribeAttachments(nullptr, from) {} + inline SharingLog_DescribeAttachments(SharingLog_DescribeAttachments&& from) noexcept + : SharingLog_DescribeAttachments(nullptr, ::std::move(from)) {} + inline SharingLog_DescribeAttachments& operator=(const SharingLog_DescribeAttachments& from) { CopyFrom(from); return *this; } - inline SharingLog_RemoveContact& operator=(SharingLog_RemoveContact&& from) noexcept { + inline SharingLog_DescribeAttachments& operator=(SharingLog_DescribeAttachments&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7564,7955 +18239,199 @@ class SharingLog_RemoveContact final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_RemoveContact& default_instance() { - return *internal_default_instance(); + static const SharingLog_DescribeAttachments& default_instance() { + return *reinterpret_cast( + &_SharingLog_DescribeAttachments_default_instance_); } - static inline const SharingLog_RemoveContact* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_RemoveContact_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(SharingLog_RemoveContact& a, SharingLog_RemoveContact& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_RemoveContact* other) { + static constexpr int kIndexInFileMessages = 22; + friend void swap(SharingLog_DescribeAttachments& a, SharingLog_DescribeAttachments& b) { a.Swap(&b); } + inline void Swap(SharingLog_DescribeAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_RemoveContact* other) { + void UnsafeArenaSwap(SharingLog_DescribeAttachments* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_RemoveContact* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_DescribeAttachments* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_RemoveContact& from); - void MergeFrom(const SharingLog_RemoveContact& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_DescribeAttachments& from); + void MergeFrom(const SharingLog_DescribeAttachments& from) { SharingLog_DescribeAttachments::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_RemoveContact* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.RemoveContact"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit SharingLog_RemoveContact(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWasPhoneRemovedFieldNumber = 1, - kWasEmailRemovedFieldNumber = 2, - }; - // optional bool was_phone_removed = 1; - bool has_was_phone_removed() const; private: - bool _internal_has_was_phone_removed() const; - public: - void clear_was_phone_removed(); - bool was_phone_removed() const; - void set_was_phone_removed(bool value); - private: - bool _internal_was_phone_removed() const; - void _internal_set_was_phone_removed(bool value); - public: - - // optional bool was_email_removed = 2; - bool has_was_email_removed() const; - private: - bool _internal_has_was_email_removed() const; - public: - void clear_was_email_removed(); - bool was_email_removed() const; - void set_was_email_removed(bool value); - private: - bool _internal_was_email_removed() const; - void _internal_set_was_email_removed(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RemoveContact) + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_DescribeAttachments* PROTOBUF_NONNULL other); private: - class _Internal; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.DescribeAttachments"; } - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool was_phone_removed_; - bool was_email_removed_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_FastShareServerResponse final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) */ { - public: - inline SharingLog_FastShareServerResponse() : SharingLog_FastShareServerResponse(nullptr) {} - ~SharingLog_FastShareServerResponse() override; - explicit constexpr SharingLog_FastShareServerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_FastShareServerResponse(const SharingLog_FastShareServerResponse& from); - SharingLog_FastShareServerResponse(SharingLog_FastShareServerResponse&& from) noexcept - : SharingLog_FastShareServerResponse() { + explicit SharingLog_DescribeAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_DescribeAttachments(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_DescribeAttachments& from); + SharingLog_DescribeAttachments( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_DescribeAttachments&& from) noexcept + : SharingLog_DescribeAttachments(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - inline SharingLog_FastShareServerResponse& operator=(const SharingLog_FastShareServerResponse& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_FastShareServerResponse& operator=(SharingLog_FastShareServerResponse&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_FastShareServerResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_FastShareServerResponse* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_FastShareServerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(SharingLog_FastShareServerResponse& a, SharingLog_FastShareServerResponse& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_FastShareServerResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_FastShareServerResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_FastShareServerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_FastShareServerResponse& from); - void MergeFrom(const SharingLog_FastShareServerResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_FastShareServerResponse* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse"; - } - protected: - explicit SharingLog_FastShareServerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kNameFieldNumber = 2, - kLatencyMillisFieldNumber = 3, - kPurposeFieldNumber = 4, - kRequesterFieldNumber = 5, - kDeviceTypeFieldNumber = 6, - }; - // optional .location.nearby.proto.sharing.ServerResponseState status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::ServerResponseState status() const; - void set_status(::location::nearby::proto::sharing::ServerResponseState value); - private: - ::location::nearby::proto::sharing::ServerResponseState _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::ServerResponseState value); - public: - - // optional .location.nearby.proto.sharing.ServerActionName name = 2; - bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); - ::location::nearby::proto::sharing::ServerActionName name() const; - void set_name(::location::nearby::proto::sharing::ServerActionName value); - private: - ::location::nearby::proto::sharing::ServerActionName _internal_name() const; - void _internal_set_name(::location::nearby::proto::sharing::ServerActionName value); - public: - - // optional int64 latency_millis = 3; - bool has_latency_millis() const; - private: - bool _internal_has_latency_millis() const; - public: - void clear_latency_millis(); - int64_t latency_millis() const; - void set_latency_millis(int64_t value); - private: - int64_t _internal_latency_millis() const; - void _internal_set_latency_millis(int64_t value); - public: - - // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; - bool has_purpose() const; - private: - bool _internal_has_purpose() const; - public: - void clear_purpose(); - ::location::nearby::proto::sharing::SyncPurpose purpose() const; - void set_purpose(::location::nearby::proto::sharing::SyncPurpose value); - private: - ::location::nearby::proto::sharing::SyncPurpose _internal_purpose() const; - void _internal_set_purpose(::location::nearby::proto::sharing::SyncPurpose value); - public: - - // optional .location.nearby.proto.sharing.ClientRole requester = 5; - bool has_requester() const; - private: - bool _internal_has_requester() const; - public: - void clear_requester(); - ::location::nearby::proto::sharing::ClientRole requester() const; - void set_requester(::location::nearby::proto::sharing::ClientRole value); - private: - ::location::nearby::proto::sharing::ClientRole _internal_requester() const; - void _internal_set_requester(::location::nearby::proto::sharing::ClientRole value); - public: - - // optional .location.nearby.proto.sharing.DeviceType device_type = 6; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::sharing::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::sharing::DeviceType value); - private: - ::location::nearby::proto::sharing::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::sharing::DeviceType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int status_; - int name_; - int64_t latency_millis_; - int purpose_; - int requester_; - int device_type_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SendStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendStart) */ { public: - inline SharingLog_SendStart() : SharingLog_SendStart(nullptr) {} - ~SharingLog_SendStart() override; - explicit constexpr SharingLog_SendStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SendStart(const SharingLog_SendStart& from); - SharingLog_SendStart(SharingLog_SendStart&& from) noexcept - : SharingLog_SendStart() { - *this = ::std::move(from); - } - - inline SharingLog_SendStart& operator=(const SharingLog_SendStart& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SendStart& operator=(SharingLog_SendStart&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SendStart& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SendStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(SharingLog_SendStart& a, SharingLog_SendStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendStart* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SendStart* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SendStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SendStart& from); - void MergeFrom(const SharingLog_SendStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendStart* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendStart"; - } - protected: - explicit SharingLog_SendStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kShareTargetInfoFieldNumber = 4, - kSessionIdFieldNumber = 1, - kTransferPositionFieldNumber = 2, - kConcurrentConnectionsFieldNumber = 3, - }; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; - bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); - - // optional int64 session_id = 1; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional int32 transfer_position = 2; - bool has_transfer_position() const; - private: - bool _internal_has_transfer_position() const; - public: - void clear_transfer_position(); - int32_t transfer_position() const; - void set_transfer_position(int32_t value); - private: - int32_t _internal_transfer_position() const; - void _internal_set_transfer_position(int32_t value); - public: - - // optional int32 concurrent_connections = 3; - bool has_concurrent_connections() const; - private: - bool _internal_has_concurrent_connections() const; - public: - void clear_concurrent_connections(); - int32_t concurrent_connections() const; - void set_concurrent_connections(int32_t value); - private: - int32_t _internal_concurrent_connections() const; - void _internal_set_concurrent_connections(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendStart) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int32_t transfer_position_; - int32_t concurrent_connections_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AcceptFastInitialization final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) */ { - public: - inline SharingLog_AcceptFastInitialization() : SharingLog_AcceptFastInitialization(nullptr) {} - ~SharingLog_AcceptFastInitialization() override; - explicit constexpr SharingLog_AcceptFastInitialization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AcceptFastInitialization(const SharingLog_AcceptFastInitialization& from); - SharingLog_AcceptFastInitialization(SharingLog_AcceptFastInitialization&& from) noexcept - : SharingLog_AcceptFastInitialization() { - *this = ::std::move(from); - } - - inline SharingLog_AcceptFastInitialization& operator=(const SharingLog_AcceptFastInitialization& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AcceptFastInitialization& operator=(SharingLog_AcceptFastInitialization&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AcceptFastInitialization& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AcceptFastInitialization* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AcceptFastInitialization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(SharingLog_AcceptFastInitialization& a, SharingLog_AcceptFastInitialization& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AcceptFastInitialization* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AcceptFastInitialization* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AcceptFastInitialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AcceptFastInitialization& from); - void MergeFrom(const SharingLog_AcceptFastInitialization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AcceptFastInitialization* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization"; - } - protected: - explicit SharingLog_AcceptFastInitialization(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_LaunchActivity final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) */ { - public: - inline SharingLog_LaunchActivity() : SharingLog_LaunchActivity(nullptr) {} - ~SharingLog_LaunchActivity() override; - explicit constexpr SharingLog_LaunchActivity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_LaunchActivity(const SharingLog_LaunchActivity& from); - SharingLog_LaunchActivity(SharingLog_LaunchActivity&& from) noexcept - : SharingLog_LaunchActivity() { - *this = ::std::move(from); - } - - inline SharingLog_LaunchActivity& operator=(const SharingLog_LaunchActivity& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_LaunchActivity& operator=(SharingLog_LaunchActivity&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_LaunchActivity& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_LaunchActivity* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_LaunchActivity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(SharingLog_LaunchActivity& a, SharingLog_LaunchActivity& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_LaunchActivity* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_LaunchActivity* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_LaunchActivity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_LaunchActivity& from); - void MergeFrom(const SharingLog_LaunchActivity& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_LaunchActivity* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.LaunchActivity"; - } - protected: - explicit SharingLog_LaunchActivity(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferrerNameFieldNumber = 3, - kDurationMillisFieldNumber = 2, - kActivityNameFieldNumber = 1, - kPreviousTransferInProgressFieldNumber = 4, - kHasOptedInFieldNumber = 5, - kIsFinishingFieldNumber = 7, - kSourceActivityNameFieldNumber = 6, - }; - // optional string referrer_name = 3; - bool has_referrer_name() const; - private: - bool _internal_has_referrer_name() const; - public: - void clear_referrer_name(); - const std::string& referrer_name() const; - template - void set_referrer_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_referrer_name(); - PROTOBUF_NODISCARD std::string* release_referrer_name(); - void set_allocated_referrer_name(std::string* referrer_name); - private: - const std::string& _internal_referrer_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_referrer_name(const std::string& value); - std::string* _internal_mutable_referrer_name(); - public: - - // optional int64 duration_millis = 2; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - bool has_activity_name() const; - private: - bool _internal_has_activity_name() const; - public: - void clear_activity_name(); - ::location::nearby::proto::sharing::ActivityName activity_name() const; - void set_activity_name(::location::nearby::proto::sharing::ActivityName value); - private: - ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; - void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); - public: - - // optional bool previous_transfer_in_progress = 4; - bool has_previous_transfer_in_progress() const; - private: - bool _internal_has_previous_transfer_in_progress() const; - public: - void clear_previous_transfer_in_progress(); - bool previous_transfer_in_progress() const; - void set_previous_transfer_in_progress(bool value); - private: - bool _internal_previous_transfer_in_progress() const; - void _internal_set_previous_transfer_in_progress(bool value); - public: - - // optional bool has_opted_in = 5; - bool has_has_opted_in() const; - private: - bool _internal_has_has_opted_in() const; - public: - void clear_has_opted_in(); - bool has_opted_in() const; - void set_has_opted_in(bool value); - private: - bool _internal_has_opted_in() const; - void _internal_set_has_opted_in(bool value); - public: - - // optional bool is_finishing = 7; - bool has_is_finishing() const; - private: - bool _internal_has_is_finishing() const; - public: - void clear_is_finishing(); - bool is_finishing() const; - void set_is_finishing(bool value); - private: - bool _internal_is_finishing() const; - void _internal_set_is_finishing(bool value); - public: - - // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; - bool has_source_activity_name() const; - private: - bool _internal_has_source_activity_name() const; - public: - void clear_source_activity_name(); - ::location::nearby::proto::sharing::ActivityName source_activity_name() const; - void set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); - private: - ::location::nearby::proto::sharing::ActivityName _internal_source_activity_name() const; - void _internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchActivity) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr referrer_name_; - int64_t duration_millis_; - int activity_name_; - bool previous_transfer_in_progress_; - bool has_opted_in_; - bool is_finishing_; - int source_activity_name_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DismissPrivacyNotification final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) */ { - public: - inline SharingLog_DismissPrivacyNotification() : SharingLog_DismissPrivacyNotification(nullptr) {} - ~SharingLog_DismissPrivacyNotification() override; - explicit constexpr SharingLog_DismissPrivacyNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DismissPrivacyNotification(const SharingLog_DismissPrivacyNotification& from); - SharingLog_DismissPrivacyNotification(SharingLog_DismissPrivacyNotification&& from) noexcept - : SharingLog_DismissPrivacyNotification() { - *this = ::std::move(from); - } - - inline SharingLog_DismissPrivacyNotification& operator=(const SharingLog_DismissPrivacyNotification& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DismissPrivacyNotification& operator=(SharingLog_DismissPrivacyNotification&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DismissPrivacyNotification& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DismissPrivacyNotification* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DismissPrivacyNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(SharingLog_DismissPrivacyNotification& a, SharingLog_DismissPrivacyNotification& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DismissPrivacyNotification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DismissPrivacyNotification* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DismissPrivacyNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DismissPrivacyNotification& from); - void MergeFrom(const SharingLog_DismissPrivacyNotification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DismissPrivacyNotification* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification"; - } - protected: - explicit SharingLog_DismissPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapPrivacyNotification final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) */ { - public: - inline SharingLog_TapPrivacyNotification() : SharingLog_TapPrivacyNotification(nullptr) {} - ~SharingLog_TapPrivacyNotification() override; - explicit constexpr SharingLog_TapPrivacyNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapPrivacyNotification(const SharingLog_TapPrivacyNotification& from); - SharingLog_TapPrivacyNotification(SharingLog_TapPrivacyNotification&& from) noexcept - : SharingLog_TapPrivacyNotification() { - *this = ::std::move(from); - } - - inline SharingLog_TapPrivacyNotification& operator=(const SharingLog_TapPrivacyNotification& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapPrivacyNotification& operator=(SharingLog_TapPrivacyNotification&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapPrivacyNotification& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapPrivacyNotification* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapPrivacyNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(SharingLog_TapPrivacyNotification& a, SharingLog_TapPrivacyNotification& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapPrivacyNotification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapPrivacyNotification* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapPrivacyNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapPrivacyNotification& from); - void MergeFrom(const SharingLog_TapPrivacyNotification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapPrivacyNotification* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification"; - } - protected: - explicit SharingLog_TapPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapHelp final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapHelp) */ { - public: - inline SharingLog_TapHelp() : SharingLog_TapHelp(nullptr) {} - ~SharingLog_TapHelp() override; - explicit constexpr SharingLog_TapHelp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapHelp(const SharingLog_TapHelp& from); - SharingLog_TapHelp(SharingLog_TapHelp&& from) noexcept - : SharingLog_TapHelp() { - *this = ::std::move(from); - } - - inline SharingLog_TapHelp& operator=(const SharingLog_TapHelp& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapHelp& operator=(SharingLog_TapHelp&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapHelp& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapHelp* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapHelp_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(SharingLog_TapHelp& a, SharingLog_TapHelp& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapHelp* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapHelp* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapHelp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapHelp& from); - void MergeFrom(const SharingLog_TapHelp& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapHelp* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapHelp"; - } - protected: - explicit SharingLog_TapHelp(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapHelp) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapFeedback final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapFeedback) */ { - public: - inline SharingLog_TapFeedback() : SharingLog_TapFeedback(nullptr) {} - ~SharingLog_TapFeedback() override; - explicit constexpr SharingLog_TapFeedback(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapFeedback(const SharingLog_TapFeedback& from); - SharingLog_TapFeedback(SharingLog_TapFeedback&& from) noexcept - : SharingLog_TapFeedback() { - *this = ::std::move(from); - } - - inline SharingLog_TapFeedback& operator=(const SharingLog_TapFeedback& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapFeedback& operator=(SharingLog_TapFeedback&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapFeedback& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapFeedback* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapFeedback_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(SharingLog_TapFeedback& a, SharingLog_TapFeedback& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapFeedback* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapFeedback* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapFeedback* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapFeedback& from); - void MergeFrom(const SharingLog_TapFeedback& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapFeedback* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapFeedback"; - } - protected: - explicit SharingLog_TapFeedback(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapFeedback) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AddQuickSettingsTile final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) */ { - public: - inline SharingLog_AddQuickSettingsTile() : SharingLog_AddQuickSettingsTile(nullptr) {} - ~SharingLog_AddQuickSettingsTile() override; - explicit constexpr SharingLog_AddQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AddQuickSettingsTile(const SharingLog_AddQuickSettingsTile& from); - SharingLog_AddQuickSettingsTile(SharingLog_AddQuickSettingsTile&& from) noexcept - : SharingLog_AddQuickSettingsTile() { - *this = ::std::move(from); - } - - inline SharingLog_AddQuickSettingsTile& operator=(const SharingLog_AddQuickSettingsTile& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AddQuickSettingsTile& operator=(SharingLog_AddQuickSettingsTile&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AddQuickSettingsTile& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AddQuickSettingsTile* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AddQuickSettingsTile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(SharingLog_AddQuickSettingsTile& a, SharingLog_AddQuickSettingsTile& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AddQuickSettingsTile* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AddQuickSettingsTile* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AddQuickSettingsTile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AddQuickSettingsTile& from); - void MergeFrom(const SharingLog_AddQuickSettingsTile& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AddQuickSettingsTile* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile"; - } - protected: - explicit SharingLog_AddQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_RemoveQuickSettingsTile final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) */ { - public: - inline SharingLog_RemoveQuickSettingsTile() : SharingLog_RemoveQuickSettingsTile(nullptr) {} - ~SharingLog_RemoveQuickSettingsTile() override; - explicit constexpr SharingLog_RemoveQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_RemoveQuickSettingsTile(const SharingLog_RemoveQuickSettingsTile& from); - SharingLog_RemoveQuickSettingsTile(SharingLog_RemoveQuickSettingsTile&& from) noexcept - : SharingLog_RemoveQuickSettingsTile() { - *this = ::std::move(from); - } - - inline SharingLog_RemoveQuickSettingsTile& operator=(const SharingLog_RemoveQuickSettingsTile& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_RemoveQuickSettingsTile& operator=(SharingLog_RemoveQuickSettingsTile&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_RemoveQuickSettingsTile& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_RemoveQuickSettingsTile* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_RemoveQuickSettingsTile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - - friend void swap(SharingLog_RemoveQuickSettingsTile& a, SharingLog_RemoveQuickSettingsTile& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_RemoveQuickSettingsTile* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_RemoveQuickSettingsTile* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_RemoveQuickSettingsTile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_RemoveQuickSettingsTile& from); - void MergeFrom(const SharingLog_RemoveQuickSettingsTile& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_RemoveQuickSettingsTile* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile"; - } - protected: - explicit SharingLog_RemoveQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_LaunchPhoneConsent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) */ { - public: - inline SharingLog_LaunchPhoneConsent() : SharingLog_LaunchPhoneConsent(nullptr) {} - ~SharingLog_LaunchPhoneConsent() override; - explicit constexpr SharingLog_LaunchPhoneConsent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_LaunchPhoneConsent(const SharingLog_LaunchPhoneConsent& from); - SharingLog_LaunchPhoneConsent(SharingLog_LaunchPhoneConsent&& from) noexcept - : SharingLog_LaunchPhoneConsent() { - *this = ::std::move(from); - } - - inline SharingLog_LaunchPhoneConsent& operator=(const SharingLog_LaunchPhoneConsent& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_LaunchPhoneConsent& operator=(SharingLog_LaunchPhoneConsent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_LaunchPhoneConsent& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_LaunchPhoneConsent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_LaunchPhoneConsent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - - friend void swap(SharingLog_LaunchPhoneConsent& a, SharingLog_LaunchPhoneConsent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_LaunchPhoneConsent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_LaunchPhoneConsent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_LaunchPhoneConsent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_LaunchPhoneConsent& from); - void MergeFrom(const SharingLog_LaunchPhoneConsent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_LaunchPhoneConsent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent"; - } - protected: - explicit SharingLog_LaunchPhoneConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DisplayPhoneConsent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) */ { - public: - inline SharingLog_DisplayPhoneConsent() : SharingLog_DisplayPhoneConsent(nullptr) {} - ~SharingLog_DisplayPhoneConsent() override; - explicit constexpr SharingLog_DisplayPhoneConsent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DisplayPhoneConsent(const SharingLog_DisplayPhoneConsent& from); - SharingLog_DisplayPhoneConsent(SharingLog_DisplayPhoneConsent&& from) noexcept - : SharingLog_DisplayPhoneConsent() { - *this = ::std::move(from); - } - - inline SharingLog_DisplayPhoneConsent& operator=(const SharingLog_DisplayPhoneConsent& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DisplayPhoneConsent& operator=(SharingLog_DisplayPhoneConsent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DisplayPhoneConsent& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DisplayPhoneConsent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DisplayPhoneConsent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - - friend void swap(SharingLog_DisplayPhoneConsent& a, SharingLog_DisplayPhoneConsent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DisplayPhoneConsent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DisplayPhoneConsent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DisplayPhoneConsent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DisplayPhoneConsent& from); - void MergeFrom(const SharingLog_DisplayPhoneConsent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DisplayPhoneConsent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent"; - } - protected: - explicit SharingLog_DisplayPhoneConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapQuickSettingsTile final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) */ { - public: - inline SharingLog_TapQuickSettingsTile() : SharingLog_TapQuickSettingsTile(nullptr) {} - ~SharingLog_TapQuickSettingsTile() override; - explicit constexpr SharingLog_TapQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapQuickSettingsTile(const SharingLog_TapQuickSettingsTile& from); - SharingLog_TapQuickSettingsTile(SharingLog_TapQuickSettingsTile&& from) noexcept - : SharingLog_TapQuickSettingsTile() { - *this = ::std::move(from); - } - - inline SharingLog_TapQuickSettingsTile& operator=(const SharingLog_TapQuickSettingsTile& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapQuickSettingsTile& operator=(SharingLog_TapQuickSettingsTile&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapQuickSettingsTile& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapQuickSettingsTile* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapQuickSettingsTile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - - friend void swap(SharingLog_TapQuickSettingsTile& a, SharingLog_TapQuickSettingsTile& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapQuickSettingsTile* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapQuickSettingsTile* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapQuickSettingsTile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapQuickSettingsTile& from); - void MergeFrom(const SharingLog_TapQuickSettingsTile& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapQuickSettingsTile* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile"; - } - protected: - explicit SharingLog_TapQuickSettingsTile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapQuickSettingsFileShare final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) */ { - public: - inline SharingLog_TapQuickSettingsFileShare() : SharingLog_TapQuickSettingsFileShare(nullptr) {} - ~SharingLog_TapQuickSettingsFileShare() override; - explicit constexpr SharingLog_TapQuickSettingsFileShare(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapQuickSettingsFileShare(const SharingLog_TapQuickSettingsFileShare& from); - SharingLog_TapQuickSettingsFileShare(SharingLog_TapQuickSettingsFileShare&& from) noexcept - : SharingLog_TapQuickSettingsFileShare() { - *this = ::std::move(from); - } - - inline SharingLog_TapQuickSettingsFileShare& operator=(const SharingLog_TapQuickSettingsFileShare& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapQuickSettingsFileShare& operator=(SharingLog_TapQuickSettingsFileShare&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapQuickSettingsFileShare& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapQuickSettingsFileShare* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapQuickSettingsFileShare_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - - friend void swap(SharingLog_TapQuickSettingsFileShare& a, SharingLog_TapQuickSettingsFileShare& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapQuickSettingsFileShare* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapQuickSettingsFileShare* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapQuickSettingsFileShare* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapQuickSettingsFileShare& from); - void MergeFrom(const SharingLog_TapQuickSettingsFileShare& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapQuickSettingsFileShare* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare"; - } - protected: - explicit SharingLog_TapQuickSettingsFileShare(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DisplayPrivacyNotification final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) */ { - public: - inline SharingLog_DisplayPrivacyNotification() : SharingLog_DisplayPrivacyNotification(nullptr) {} - ~SharingLog_DisplayPrivacyNotification() override; - explicit constexpr SharingLog_DisplayPrivacyNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DisplayPrivacyNotification(const SharingLog_DisplayPrivacyNotification& from); - SharingLog_DisplayPrivacyNotification(SharingLog_DisplayPrivacyNotification&& from) noexcept - : SharingLog_DisplayPrivacyNotification() { - *this = ::std::move(from); - } - - inline SharingLog_DisplayPrivacyNotification& operator=(const SharingLog_DisplayPrivacyNotification& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DisplayPrivacyNotification& operator=(SharingLog_DisplayPrivacyNotification&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DisplayPrivacyNotification& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DisplayPrivacyNotification* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DisplayPrivacyNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 52; - - friend void swap(SharingLog_DisplayPrivacyNotification& a, SharingLog_DisplayPrivacyNotification& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DisplayPrivacyNotification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DisplayPrivacyNotification* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DisplayPrivacyNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DisplayPrivacyNotification& from); - void MergeFrom(const SharingLog_DisplayPrivacyNotification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DisplayPrivacyNotification* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification"; - } - protected: - explicit SharingLog_DisplayPrivacyNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DefaultOptIn final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) */ { - public: - inline SharingLog_DefaultOptIn() : SharingLog_DefaultOptIn(nullptr) {} - ~SharingLog_DefaultOptIn() override; - explicit constexpr SharingLog_DefaultOptIn(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DefaultOptIn(const SharingLog_DefaultOptIn& from); - SharingLog_DefaultOptIn(SharingLog_DefaultOptIn&& from) noexcept - : SharingLog_DefaultOptIn() { - *this = ::std::move(from); - } - - inline SharingLog_DefaultOptIn& operator=(const SharingLog_DefaultOptIn& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DefaultOptIn& operator=(SharingLog_DefaultOptIn&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DefaultOptIn& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DefaultOptIn* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DefaultOptIn_default_instance_); - } - static constexpr int kIndexInFileMessages = - 53; - - friend void swap(SharingLog_DefaultOptIn& a, SharingLog_DefaultOptIn& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DefaultOptIn* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DefaultOptIn* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DefaultOptIn* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DefaultOptIn& from); - void MergeFrom(const SharingLog_DefaultOptIn& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DefaultOptIn* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DefaultOptIn"; - } - protected: - explicit SharingLog_DefaultOptIn(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DefaultOptIn) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SetDeviceName final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) */ { - public: - inline SharingLog_SetDeviceName() : SharingLog_SetDeviceName(nullptr) {} - ~SharingLog_SetDeviceName() override; - explicit constexpr SharingLog_SetDeviceName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SetDeviceName(const SharingLog_SetDeviceName& from); - SharingLog_SetDeviceName(SharingLog_SetDeviceName&& from) noexcept - : SharingLog_SetDeviceName() { - *this = ::std::move(from); - } - - inline SharingLog_SetDeviceName& operator=(const SharingLog_SetDeviceName& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SetDeviceName& operator=(SharingLog_SetDeviceName&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SetDeviceName& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SetDeviceName* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SetDeviceName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 54; - - friend void swap(SharingLog_SetDeviceName& a, SharingLog_SetDeviceName& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SetDeviceName* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SetDeviceName* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SetDeviceName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SetDeviceName& from); - void MergeFrom(const SharingLog_SetDeviceName& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SetDeviceName* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SetDeviceName"; - } - protected: - explicit SharingLog_SetDeviceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDeviceNameSizeFieldNumber = 1, - }; - // optional int32 device_name_size = 1; - bool has_device_name_size() const; - private: - bool _internal_has_device_name_size() const; - public: - void clear_device_name_size(); - int32_t device_name_size() const; - void set_device_name_size(int32_t value); - private: - int32_t _internal_device_name_size() const; - void _internal_set_device_name_size(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetDeviceName) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t device_name_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_RequestSettingPermissions final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) */ { - public: - inline SharingLog_RequestSettingPermissions() : SharingLog_RequestSettingPermissions(nullptr) {} - ~SharingLog_RequestSettingPermissions() override; - explicit constexpr SharingLog_RequestSettingPermissions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_RequestSettingPermissions(const SharingLog_RequestSettingPermissions& from); - SharingLog_RequestSettingPermissions(SharingLog_RequestSettingPermissions&& from) noexcept - : SharingLog_RequestSettingPermissions() { - *this = ::std::move(from); - } - - inline SharingLog_RequestSettingPermissions& operator=(const SharingLog_RequestSettingPermissions& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_RequestSettingPermissions& operator=(SharingLog_RequestSettingPermissions&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_RequestSettingPermissions& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_RequestSettingPermissions* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_RequestSettingPermissions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 55; - - friend void swap(SharingLog_RequestSettingPermissions& a, SharingLog_RequestSettingPermissions& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_RequestSettingPermissions* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_RequestSettingPermissions* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_RequestSettingPermissions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_RequestSettingPermissions& from); - void MergeFrom(const SharingLog_RequestSettingPermissions& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_RequestSettingPermissions* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions"; - } - protected: - explicit SharingLog_RequestSettingPermissions(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPermissionTypeFieldNumber = 1, - kPermissionRequestResultFieldNumber = 2, - }; - // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; - bool has_permission_type() const; - private: - bool _internal_has_permission_type() const; - public: - void clear_permission_type(); - ::location::nearby::proto::sharing::PermissionRequestType permission_type() const; - void set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value); - private: - ::location::nearby::proto::sharing::PermissionRequestType _internal_permission_type() const; - void _internal_set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value); - public: - - // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; - bool has_permission_request_result() const; - private: - bool _internal_has_permission_request_result() const; - public: - void clear_permission_request_result(); - ::location::nearby::proto::sharing::PermissionRequestResult permission_request_result() const; - void set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value); - private: - ::location::nearby::proto::sharing::PermissionRequestResult _internal_permission_request_result() const; - void _internal_set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int permission_type_; - int permission_request_result_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_LaunchConsent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) */ { - public: - inline SharingLog_LaunchConsent() : SharingLog_LaunchConsent(nullptr) {} - ~SharingLog_LaunchConsent() override; - explicit constexpr SharingLog_LaunchConsent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_LaunchConsent(const SharingLog_LaunchConsent& from); - SharingLog_LaunchConsent(SharingLog_LaunchConsent&& from) noexcept - : SharingLog_LaunchConsent() { - *this = ::std::move(from); - } - - inline SharingLog_LaunchConsent& operator=(const SharingLog_LaunchConsent& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_LaunchConsent& operator=(SharingLog_LaunchConsent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_LaunchConsent& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_LaunchConsent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_LaunchConsent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 56; - - friend void swap(SharingLog_LaunchConsent& a, SharingLog_LaunchConsent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_LaunchConsent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_LaunchConsent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_LaunchConsent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_LaunchConsent& from); - void MergeFrom(const SharingLog_LaunchConsent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_LaunchConsent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.LaunchConsent"; - } - protected: - explicit SharingLog_LaunchConsent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConsentTypeFieldNumber = 1, - kStatusFieldNumber = 2, - }; - // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; - bool has_consent_type() const; - private: - bool _internal_has_consent_type() const; - public: - void clear_consent_type(); - ::location::nearby::proto::sharing::ConsentType consent_type() const; - void set_consent_type(::location::nearby::proto::sharing::ConsentType value); - private: - ::location::nearby::proto::sharing::ConsentType _internal_consent_type() const; - void _internal_set_consent_type(::location::nearby::proto::sharing::ConsentType value); - public: - - // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::ConsentAcceptanceStatus status() const; - void set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value); - private: - ::location::nearby::proto::sharing::ConsentAcceptanceStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.LaunchConsent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int consent_type_; - int status_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_InstallAPKStatus final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) */ { - public: - inline SharingLog_InstallAPKStatus() : SharingLog_InstallAPKStatus(nullptr) {} - ~SharingLog_InstallAPKStatus() override; - explicit constexpr SharingLog_InstallAPKStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_InstallAPKStatus(const SharingLog_InstallAPKStatus& from); - SharingLog_InstallAPKStatus(SharingLog_InstallAPKStatus&& from) noexcept - : SharingLog_InstallAPKStatus() { - *this = ::std::move(from); - } - - inline SharingLog_InstallAPKStatus& operator=(const SharingLog_InstallAPKStatus& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_InstallAPKStatus& operator=(SharingLog_InstallAPKStatus&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_InstallAPKStatus& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_InstallAPKStatus* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_InstallAPKStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 57; - - friend void swap(SharingLog_InstallAPKStatus& a, SharingLog_InstallAPKStatus& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_InstallAPKStatus* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_InstallAPKStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_InstallAPKStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_InstallAPKStatus& from); - void MergeFrom(const SharingLog_InstallAPKStatus& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_InstallAPKStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus"; - } - protected: - explicit SharingLog_InstallAPKStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kSourceFieldNumber = 2, - }; - // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; - int status_size() const; - private: - int _internal_status_size() const; - public: - void clear_status(); - private: - ::location::nearby::proto::sharing::InstallAPKStatus _internal_status(int index) const; - void _internal_add_status(::location::nearby::proto::sharing::InstallAPKStatus value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_status(); - public: - ::location::nearby::proto::sharing::InstallAPKStatus status(int index) const; - void set_status(int index, ::location::nearby::proto::sharing::InstallAPKStatus value); - void add_status(::location::nearby::proto::sharing::InstallAPKStatus value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& status() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_status(); - - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - int source_size() const; - private: - int _internal_source_size() const; - public: - void clear_source(); - private: - ::location::nearby::proto::sharing::ApkSource _internal_source(int index) const; - void _internal_add_source(::location::nearby::proto::sharing::ApkSource value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_source(); - public: - ::location::nearby::proto::sharing::ApkSource source(int index) const; - void set_source(int index, ::location::nearby::proto::sharing::ApkSource value); - void add_source(::location::nearby::proto::sharing::ApkSource value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& source() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_source(); - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField status_; - mutable std::atomic _status_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField source_; - mutable std::atomic _source_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_VerifyAPKStatus final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) */ { - public: - inline SharingLog_VerifyAPKStatus() : SharingLog_VerifyAPKStatus(nullptr) {} - ~SharingLog_VerifyAPKStatus() override; - explicit constexpr SharingLog_VerifyAPKStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_VerifyAPKStatus(const SharingLog_VerifyAPKStatus& from); - SharingLog_VerifyAPKStatus(SharingLog_VerifyAPKStatus&& from) noexcept - : SharingLog_VerifyAPKStatus() { - *this = ::std::move(from); - } - - inline SharingLog_VerifyAPKStatus& operator=(const SharingLog_VerifyAPKStatus& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_VerifyAPKStatus& operator=(SharingLog_VerifyAPKStatus&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_VerifyAPKStatus& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_VerifyAPKStatus* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_VerifyAPKStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 58; - - friend void swap(SharingLog_VerifyAPKStatus& a, SharingLog_VerifyAPKStatus& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_VerifyAPKStatus* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_VerifyAPKStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_VerifyAPKStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_VerifyAPKStatus& from); - void MergeFrom(const SharingLog_VerifyAPKStatus& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_VerifyAPKStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus"; - } - protected: - explicit SharingLog_VerifyAPKStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kSourceFieldNumber = 2, - }; - // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; - int status_size() const; - private: - int _internal_status_size() const; - public: - void clear_status(); - private: - ::location::nearby::proto::sharing::VerifyAPKStatus _internal_status(int index) const; - void _internal_add_status(::location::nearby::proto::sharing::VerifyAPKStatus value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_status(); - public: - ::location::nearby::proto::sharing::VerifyAPKStatus status(int index) const; - void set_status(int index, ::location::nearby::proto::sharing::VerifyAPKStatus value); - void add_status(::location::nearby::proto::sharing::VerifyAPKStatus value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& status() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_status(); - - // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; - int source_size() const; - private: - int _internal_source_size() const; - public: - void clear_source(); - private: - ::location::nearby::proto::sharing::ApkSource _internal_source(int index) const; - void _internal_add_source(::location::nearby::proto::sharing::ApkSource value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_source(); - public: - ::location::nearby::proto::sharing::ApkSource source(int index) const; - void set_source(int index, ::location::nearby::proto::sharing::ApkSource value); - void add_source(::location::nearby::proto::sharing::ApkSource value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& source() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_source(); - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField status_; - mutable std::atomic _status_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField source_; - mutable std::atomic _source_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ToggleShowNotification final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) */ { - public: - inline SharingLog_ToggleShowNotification() : SharingLog_ToggleShowNotification(nullptr) {} - ~SharingLog_ToggleShowNotification() override; - explicit constexpr SharingLog_ToggleShowNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ToggleShowNotification(const SharingLog_ToggleShowNotification& from); - SharingLog_ToggleShowNotification(SharingLog_ToggleShowNotification&& from) noexcept - : SharingLog_ToggleShowNotification() { - *this = ::std::move(from); - } - - inline SharingLog_ToggleShowNotification& operator=(const SharingLog_ToggleShowNotification& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ToggleShowNotification& operator=(SharingLog_ToggleShowNotification&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ToggleShowNotification& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ToggleShowNotification* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ToggleShowNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 59; - - friend void swap(SharingLog_ToggleShowNotification& a, SharingLog_ToggleShowNotification& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ToggleShowNotification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ToggleShowNotification* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ToggleShowNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ToggleShowNotification& from); - void MergeFrom(const SharingLog_ToggleShowNotification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ToggleShowNotification* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification"; - } - protected: - explicit SharingLog_ToggleShowNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPreviousStatusFieldNumber = 1, - kCurrentStatusFieldNumber = 2, - }; - // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; - bool has_previous_status() const; - private: - bool _internal_has_previous_status() const; - public: - void clear_previous_status(); - ::location::nearby::proto::sharing::ShowNotificationStatus previous_status() const; - void set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value); - private: - ::location::nearby::proto::sharing::ShowNotificationStatus _internal_previous_status() const; - void _internal_set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value); - public: - - // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; - bool has_current_status() const; - private: - bool _internal_has_current_status() const; - public: - void clear_current_status(); - ::location::nearby::proto::sharing::ShowNotificationStatus current_status() const; - void set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value); - private: - ::location::nearby::proto::sharing::ShowNotificationStatus _internal_current_status() const; - void _internal_set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int previous_status_; - int current_status_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_DecryptCertificateFailure final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) */ { - public: - inline SharingLog_DecryptCertificateFailure() : SharingLog_DecryptCertificateFailure(nullptr) {} - ~SharingLog_DecryptCertificateFailure() override; - explicit constexpr SharingLog_DecryptCertificateFailure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_DecryptCertificateFailure(const SharingLog_DecryptCertificateFailure& from); - SharingLog_DecryptCertificateFailure(SharingLog_DecryptCertificateFailure&& from) noexcept - : SharingLog_DecryptCertificateFailure() { - *this = ::std::move(from); - } - - inline SharingLog_DecryptCertificateFailure& operator=(const SharingLog_DecryptCertificateFailure& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_DecryptCertificateFailure& operator=(SharingLog_DecryptCertificateFailure&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_DecryptCertificateFailure& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_DecryptCertificateFailure* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_DecryptCertificateFailure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 60; - - friend void swap(SharingLog_DecryptCertificateFailure& a, SharingLog_DecryptCertificateFailure& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_DecryptCertificateFailure* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_DecryptCertificateFailure* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_DecryptCertificateFailure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_DecryptCertificateFailure& from); - void MergeFrom(const SharingLog_DecryptCertificateFailure& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_DecryptCertificateFailure* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure"; - } - protected: - explicit SharingLog_DecryptCertificateFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - }; - // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::DecryptCertificateFailureStatus status() const; - void set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value); - private: - ::location::nearby::proto::sharing::DecryptCertificateFailureStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int status_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ShowAllowPermissionAutoAccess final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) */ { - public: - inline SharingLog_ShowAllowPermissionAutoAccess() : SharingLog_ShowAllowPermissionAutoAccess(nullptr) {} - ~SharingLog_ShowAllowPermissionAutoAccess() override; - explicit constexpr SharingLog_ShowAllowPermissionAutoAccess(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ShowAllowPermissionAutoAccess(const SharingLog_ShowAllowPermissionAutoAccess& from); - SharingLog_ShowAllowPermissionAutoAccess(SharingLog_ShowAllowPermissionAutoAccess&& from) noexcept - : SharingLog_ShowAllowPermissionAutoAccess() { - *this = ::std::move(from); - } - - inline SharingLog_ShowAllowPermissionAutoAccess& operator=(const SharingLog_ShowAllowPermissionAutoAccess& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ShowAllowPermissionAutoAccess& operator=(SharingLog_ShowAllowPermissionAutoAccess&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ShowAllowPermissionAutoAccess& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ShowAllowPermissionAutoAccess* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ShowAllowPermissionAutoAccess_default_instance_); - } - static constexpr int kIndexInFileMessages = - 61; - - friend void swap(SharingLog_ShowAllowPermissionAutoAccess& a, SharingLog_ShowAllowPermissionAutoAccess& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ShowAllowPermissionAutoAccess* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ShowAllowPermissionAutoAccess* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ShowAllowPermissionAutoAccess* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ShowAllowPermissionAutoAccess& from); - void MergeFrom(const SharingLog_ShowAllowPermissionAutoAccess& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ShowAllowPermissionAutoAccess* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess"; - } - protected: - explicit SharingLog_ShowAllowPermissionAutoAccess(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActivityNameFieldNumber = 1, - kAllowedAutoAccessFieldNumber = 2, - kIsWifiMissingFieldNumber = 3, - kIsBtMissingFieldNumber = 4, - }; - // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; - bool has_activity_name() const; - private: - bool _internal_has_activity_name() const; - public: - void clear_activity_name(); - ::location::nearby::proto::sharing::ActivityName activity_name() const; - void set_activity_name(::location::nearby::proto::sharing::ActivityName value); - private: - ::location::nearby::proto::sharing::ActivityName _internal_activity_name() const; - void _internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value); - public: - - // optional bool allowed_auto_access = 2; - bool has_allowed_auto_access() const; - private: - bool _internal_has_allowed_auto_access() const; - public: - void clear_allowed_auto_access(); - bool allowed_auto_access() const; - void set_allowed_auto_access(bool value); - private: - bool _internal_allowed_auto_access() const; - void _internal_set_allowed_auto_access(bool value); - public: - - // optional bool is_wifi_missing = 3; - bool has_is_wifi_missing() const; - private: - bool _internal_has_is_wifi_missing() const; - public: - void clear_is_wifi_missing(); - bool is_wifi_missing() const; - void set_is_wifi_missing(bool value); - private: - bool _internal_is_wifi_missing() const; - void _internal_set_is_wifi_missing(bool value); - public: - - // optional bool is_bt_missing = 4; - bool has_is_bt_missing() const; - private: - bool _internal_has_is_bt_missing() const; - public: - void clear_is_bt_missing(); - bool is_bt_missing() const; - void set_is_bt_missing(bool value); - private: - bool _internal_is_bt_missing() const; - void _internal_set_is_bt_missing(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int activity_name_; - bool allowed_auto_access_; - bool is_wifi_missing_; - bool is_bt_missing_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TapQrCode final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TapQrCode) */ { - public: - inline SharingLog_TapQrCode() : SharingLog_TapQrCode(nullptr) {} - ~SharingLog_TapQrCode() override; - explicit constexpr SharingLog_TapQrCode(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TapQrCode(const SharingLog_TapQrCode& from); - SharingLog_TapQrCode(SharingLog_TapQrCode&& from) noexcept - : SharingLog_TapQrCode() { - *this = ::std::move(from); - } - - inline SharingLog_TapQrCode& operator=(const SharingLog_TapQrCode& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TapQrCode& operator=(SharingLog_TapQrCode&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TapQrCode& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TapQrCode* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TapQrCode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 62; - - friend void swap(SharingLog_TapQrCode& a, SharingLog_TapQrCode& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TapQrCode* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TapQrCode* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TapQrCode* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TapQrCode& from); - void MergeFrom(const SharingLog_TapQrCode& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TapQrCode* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TapQrCode"; - } - protected: - explicit SharingLog_TapQrCode(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TapQrCode) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_QrCodeLinkShown final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) */ { - public: - inline SharingLog_QrCodeLinkShown() : SharingLog_QrCodeLinkShown(nullptr) {} - ~SharingLog_QrCodeLinkShown() override; - explicit constexpr SharingLog_QrCodeLinkShown(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_QrCodeLinkShown(const SharingLog_QrCodeLinkShown& from); - SharingLog_QrCodeLinkShown(SharingLog_QrCodeLinkShown&& from) noexcept - : SharingLog_QrCodeLinkShown() { - *this = ::std::move(from); - } - - inline SharingLog_QrCodeLinkShown& operator=(const SharingLog_QrCodeLinkShown& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_QrCodeLinkShown& operator=(SharingLog_QrCodeLinkShown&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_QrCodeLinkShown& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_QrCodeLinkShown* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_QrCodeLinkShown_default_instance_); - } - static constexpr int kIndexInFileMessages = - 63; - - friend void swap(SharingLog_QrCodeLinkShown& a, SharingLog_QrCodeLinkShown& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_QrCodeLinkShown* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_QrCodeLinkShown* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_QrCodeLinkShown* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_QrCodeLinkShown& from); - void MergeFrom(const SharingLog_QrCodeLinkShown& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_QrCodeLinkShown* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown"; - } - protected: - explicit SharingLog_QrCodeLinkShown(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_FastInitDiscoverDevice final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) */ { - public: - inline SharingLog_FastInitDiscoverDevice() : SharingLog_FastInitDiscoverDevice(nullptr) {} - ~SharingLog_FastInitDiscoverDevice() override; - explicit constexpr SharingLog_FastInitDiscoverDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_FastInitDiscoverDevice(const SharingLog_FastInitDiscoverDevice& from); - SharingLog_FastInitDiscoverDevice(SharingLog_FastInitDiscoverDevice&& from) noexcept - : SharingLog_FastInitDiscoverDevice() { - *this = ::std::move(from); - } - - inline SharingLog_FastInitDiscoverDevice& operator=(const SharingLog_FastInitDiscoverDevice& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_FastInitDiscoverDevice& operator=(SharingLog_FastInitDiscoverDevice&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_FastInitDiscoverDevice& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_FastInitDiscoverDevice* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_FastInitDiscoverDevice_default_instance_); - } - static constexpr int kIndexInFileMessages = - 64; - - friend void swap(SharingLog_FastInitDiscoverDevice& a, SharingLog_FastInitDiscoverDevice& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_FastInitDiscoverDevice* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_FastInitDiscoverDevice* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_FastInitDiscoverDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_FastInitDiscoverDevice& from); - void MergeFrom(const SharingLog_FastInitDiscoverDevice& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_FastInitDiscoverDevice* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice"; - } - protected: - explicit SharingLog_FastInitDiscoverDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFastInitTypeFieldNumber = 2, - kFastInitStateFieldNumber = 3, - }; - // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; - bool has_fast_init_type() const; - private: - bool _internal_has_fast_init_type() const; - public: - void clear_fast_init_type(); - ::location::nearby::proto::sharing::FastInitType fast_init_type() const; - void set_fast_init_type(::location::nearby::proto::sharing::FastInitType value); - private: - ::location::nearby::proto::sharing::FastInitType _internal_fast_init_type() const; - void _internal_set_fast_init_type(::location::nearby::proto::sharing::FastInitType value); - public: - - // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; - bool has_fast_init_state() const; - private: - bool _internal_has_fast_init_state() const; - public: - void clear_fast_init_state(); - ::location::nearby::proto::sharing::FastInitState fast_init_state() const; - void set_fast_init_state(::location::nearby::proto::sharing::FastInitState value); - private: - ::location::nearby::proto::sharing::FastInitState _internal_fast_init_state() const; - void _internal_set_fast_init_state(::location::nearby::proto::sharing::FastInitState value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int fast_init_type_; - int fast_init_state_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ShareTargetInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) */ { - public: - inline SharingLog_ShareTargetInfo() : SharingLog_ShareTargetInfo(nullptr) {} - ~SharingLog_ShareTargetInfo() override; - explicit constexpr SharingLog_ShareTargetInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ShareTargetInfo(const SharingLog_ShareTargetInfo& from); - SharingLog_ShareTargetInfo(SharingLog_ShareTargetInfo&& from) noexcept - : SharingLog_ShareTargetInfo() { - *this = ::std::move(from); - } - - inline SharingLog_ShareTargetInfo& operator=(const SharingLog_ShareTargetInfo& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ShareTargetInfo& operator=(SharingLog_ShareTargetInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ShareTargetInfo& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ShareTargetInfo* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ShareTargetInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 65; - - friend void swap(SharingLog_ShareTargetInfo& a, SharingLog_ShareTargetInfo& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ShareTargetInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ShareTargetInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ShareTargetInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ShareTargetInfo& from); - void MergeFrom(const SharingLog_ShareTargetInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ShareTargetInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo"; - } - protected: - explicit SharingLog_ShareTargetInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDeviceTypeFieldNumber = 1, - kOsTypeFieldNumber = 2, - kDeviceRelationshipFieldNumber = 3, - kHasMatchingQrCodeFieldNumber = 4, - kIsExternalFieldNumber = 5, - }; - // optional .location.nearby.proto.sharing.DeviceType device_type = 1; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::location::nearby::proto::sharing::DeviceType device_type() const; - void set_device_type(::location::nearby::proto::sharing::DeviceType value); - private: - ::location::nearby::proto::sharing::DeviceType _internal_device_type() const; - void _internal_set_device_type(::location::nearby::proto::sharing::DeviceType value); - public: - - // optional .location.nearby.proto.sharing.OSType os_type = 2; - bool has_os_type() const; - private: - bool _internal_has_os_type() const; - public: - void clear_os_type(); - ::location::nearby::proto::sharing::OSType os_type() const; - void set_os_type(::location::nearby::proto::sharing::OSType value); - private: - ::location::nearby::proto::sharing::OSType _internal_os_type() const; - void _internal_set_os_type(::location::nearby::proto::sharing::OSType value); - public: - - // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; - bool has_device_relationship() const; - private: - bool _internal_has_device_relationship() const; - public: - void clear_device_relationship(); - ::location::nearby::proto::sharing::DeviceRelationship device_relationship() const; - void set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value); - private: - ::location::nearby::proto::sharing::DeviceRelationship _internal_device_relationship() const; - void _internal_set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value); - public: - - // optional bool has_matching_qr_code = 4; - bool has_has_matching_qr_code() const; - private: - bool _internal_has_has_matching_qr_code() const; - public: - void clear_has_matching_qr_code(); - bool has_matching_qr_code() const; - void set_has_matching_qr_code(bool value); - private: - bool _internal_has_matching_qr_code() const; - void _internal_set_has_matching_qr_code(bool value); - public: - - // optional bool is_external = 5; - bool has_is_external() const; - private: - bool _internal_has_is_external() const; - public: - void clear_is_external(); - bool is_external() const; - void set_is_external(bool value); - private: - bool _internal_is_external() const; - void _internal_set_is_external(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int device_type_; - int os_type_; - int device_relationship_; - bool has_matching_qr_code_; - bool is_external_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AttachmentsInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) */ { - public: - inline SharingLog_AttachmentsInfo() : SharingLog_AttachmentsInfo(nullptr) {} - ~SharingLog_AttachmentsInfo() override; - explicit constexpr SharingLog_AttachmentsInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AttachmentsInfo(const SharingLog_AttachmentsInfo& from); - SharingLog_AttachmentsInfo(SharingLog_AttachmentsInfo&& from) noexcept - : SharingLog_AttachmentsInfo() { - *this = ::std::move(from); - } - - inline SharingLog_AttachmentsInfo& operator=(const SharingLog_AttachmentsInfo& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AttachmentsInfo& operator=(SharingLog_AttachmentsInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AttachmentsInfo& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AttachmentsInfo* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AttachmentsInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 66; - - friend void swap(SharingLog_AttachmentsInfo& a, SharingLog_AttachmentsInfo& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AttachmentsInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AttachmentsInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AttachmentsInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AttachmentsInfo& from); - void MergeFrom(const SharingLog_AttachmentsInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AttachmentsInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo"; - } - protected: - explicit SharingLog_AttachmentsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTextAttachmentFieldNumber = 1, - kFileAttachmentFieldNumber = 2, - kWifiCredentialsAttachmentFieldNumber = 4, - kAppAttachmentFieldNumber = 5, - kStreamAttachmentFieldNumber = 6, - kRequiredAppFieldNumber = 3, - }; - // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; - int text_attachment_size() const; - private: - int _internal_text_attachment_size() const; - public: - void clear_text_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* mutable_text_attachment(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >* - mutable_text_attachment(); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& _internal_text_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* _internal_add_text_attachment(); - public: - const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& text_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* add_text_attachment(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >& - text_attachment() const; - - // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; - int file_attachment_size() const; - private: - int _internal_file_attachment_size() const; - public: - void clear_file_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* mutable_file_attachment(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >* - mutable_file_attachment(); - private: - const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& _internal_file_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* _internal_add_file_attachment(); - public: - const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& file_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* add_file_attachment(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >& - file_attachment() const; - - // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - int wifi_credentials_attachment_size() const; - private: - int _internal_wifi_credentials_attachment_size() const; - public: - void clear_wifi_credentials_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* mutable_wifi_credentials_attachment(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >* - mutable_wifi_credentials_attachment(); - private: - const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& _internal_wifi_credentials_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* _internal_add_wifi_credentials_attachment(); - public: - const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& wifi_credentials_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* add_wifi_credentials_attachment(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >& - wifi_credentials_attachment() const; - - // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - int app_attachment_size() const; - private: - int _internal_app_attachment_size() const; - public: - void clear_app_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* mutable_app_attachment(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >* - mutable_app_attachment(); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& _internal_app_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* _internal_add_app_attachment(); - public: - const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& app_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* add_app_attachment(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >& - app_attachment() const; - - // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - int stream_attachment_size() const; - private: - int _internal_stream_attachment_size() const; - public: - void clear_stream_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* mutable_stream_attachment(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >* - mutable_stream_attachment(); - private: - const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& _internal_stream_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* _internal_add_stream_attachment(); - public: - const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& stream_attachment(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* add_stream_attachment(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >& - stream_attachment() const; - - // optional string required_app = 3; - bool has_required_app() const; - private: - bool _internal_has_required_app() const; - public: - void clear_required_app(); - const std::string& required_app() const; - template - void set_required_app(ArgT0&& arg0, ArgT... args); - std::string* mutable_required_app(); - PROTOBUF_NODISCARD std::string* release_required_app(); - void set_allocated_required_app(std::string* required_app); - private: - const std::string& _internal_required_app() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_required_app(const std::string& value); - std::string* _internal_mutable_required_app(); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment > text_attachment_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment > file_attachment_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment > wifi_credentials_attachment_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment > app_attachment_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment > stream_attachment_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr required_app_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_TextAttachment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.TextAttachment) */ { - public: - inline SharingLog_TextAttachment() : SharingLog_TextAttachment(nullptr) {} - ~SharingLog_TextAttachment() override; - explicit constexpr SharingLog_TextAttachment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_TextAttachment(const SharingLog_TextAttachment& from); - SharingLog_TextAttachment(SharingLog_TextAttachment&& from) noexcept - : SharingLog_TextAttachment() { - *this = ::std::move(from); - } - - inline SharingLog_TextAttachment& operator=(const SharingLog_TextAttachment& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_TextAttachment& operator=(SharingLog_TextAttachment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_TextAttachment& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_TextAttachment* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_TextAttachment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 67; - - friend void swap(SharingLog_TextAttachment& a, SharingLog_TextAttachment& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_TextAttachment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_TextAttachment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_TextAttachment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_TextAttachment& from); - void MergeFrom(const SharingLog_TextAttachment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_TextAttachment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.TextAttachment"; - } - protected: - explicit SharingLog_TextAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef SharingLog_TextAttachment_Type Type; - static constexpr Type UNKNOWN_TEXT_TYPE = - SharingLog_TextAttachment_Type_UNKNOWN_TEXT_TYPE; - static constexpr Type URL = - SharingLog_TextAttachment_Type_URL; - static constexpr Type ADDRESS = - SharingLog_TextAttachment_Type_ADDRESS; - static constexpr Type PHONE_NUMBER = - SharingLog_TextAttachment_Type_PHONE_NUMBER; - static inline bool Type_IsValid(int value) { - return SharingLog_TextAttachment_Type_IsValid(value); - } - static constexpr Type Type_MIN = - SharingLog_TextAttachment_Type_Type_MIN; - static constexpr Type Type_MAX = - SharingLog_TextAttachment_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - SharingLog_TextAttachment_Type_Type_ARRAYSIZE; - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return SharingLog_TextAttachment_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return SharingLog_TextAttachment_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSizeBytesFieldNumber = 2, - kTypeFieldNumber = 1, - kSourceTypeFieldNumber = 4, - kBatchIdFieldNumber = 3, - }; - // optional int64 size_bytes = 2; - bool has_size_bytes() const; - private: - bool _internal_has_size_bytes() const; - public: - void clear_size_bytes(); - int64_t size_bytes() const; - void set_size_bytes(int64_t value); - private: - int64_t _internal_size_bytes() const; - void _internal_set_size_bytes(int64_t value); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type type() const; - void set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value); - private: - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type _internal_type() const; - void _internal_set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value); - public: - - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - bool has_source_type() const; - private: - bool _internal_has_source_type() const; - public: - void clear_source_type(); - ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; - void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - private: - ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; - void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - public: - - // optional int64 batch_id = 3; - bool has_batch_id() const; - private: - bool _internal_has_batch_id() const; - public: - void clear_batch_id(); - int64_t batch_id() const; - void set_batch_id(int64_t value); - private: - int64_t _internal_batch_id() const; - void _internal_set_batch_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.TextAttachment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t size_bytes_; - int type_; - int source_type_; - int64_t batch_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_FileAttachment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.FileAttachment) */ { - public: - inline SharingLog_FileAttachment() : SharingLog_FileAttachment(nullptr) {} - ~SharingLog_FileAttachment() override; - explicit constexpr SharingLog_FileAttachment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_FileAttachment(const SharingLog_FileAttachment& from); - SharingLog_FileAttachment(SharingLog_FileAttachment&& from) noexcept - : SharingLog_FileAttachment() { - *this = ::std::move(from); - } - - inline SharingLog_FileAttachment& operator=(const SharingLog_FileAttachment& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_FileAttachment& operator=(SharingLog_FileAttachment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_FileAttachment& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_FileAttachment* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_FileAttachment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 68; - - friend void swap(SharingLog_FileAttachment& a, SharingLog_FileAttachment& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_FileAttachment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_FileAttachment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_FileAttachment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_FileAttachment& from); - void MergeFrom(const SharingLog_FileAttachment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_FileAttachment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.FileAttachment"; - } - protected: - explicit SharingLog_FileAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef SharingLog_FileAttachment_Type Type; - static constexpr Type UNKNOWN_FILE_TYPE = - SharingLog_FileAttachment_Type_UNKNOWN_FILE_TYPE; - static constexpr Type IMAGE = - SharingLog_FileAttachment_Type_IMAGE; - static constexpr Type VIDEO = - SharingLog_FileAttachment_Type_VIDEO; - static constexpr Type ANDROID_APP = - SharingLog_FileAttachment_Type_ANDROID_APP; - static constexpr Type AUDIO = - SharingLog_FileAttachment_Type_AUDIO; - static constexpr Type DOCUMENT = - SharingLog_FileAttachment_Type_DOCUMENT; - static constexpr Type CONTACT_CARD = - SharingLog_FileAttachment_Type_CONTACT_CARD; - static inline bool Type_IsValid(int value) { - return SharingLog_FileAttachment_Type_IsValid(value); - } - static constexpr Type Type_MIN = - SharingLog_FileAttachment_Type_Type_MIN; - static constexpr Type Type_MAX = - SharingLog_FileAttachment_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - SharingLog_FileAttachment_Type_Type_ARRAYSIZE; - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return SharingLog_FileAttachment_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return SharingLog_FileAttachment_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSizeBytesFieldNumber = 2, - kTypeFieldNumber = 1, - kSourceTypeFieldNumber = 6, - kOffsetBytesFieldNumber = 4, - kBatchIdFieldNumber = 5, - }; - // optional int64 size_bytes = 2; - bool has_size_bytes() const; - private: - bool _internal_has_size_bytes() const; - public: - void clear_size_bytes(); - int64_t size_bytes() const; - void set_size_bytes(int64_t value); - private: - int64_t _internal_size_bytes() const; - void _internal_set_size_bytes(int64_t value); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type type() const; - void set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value); - private: - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type _internal_type() const; - void _internal_set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value); - public: - - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; - bool has_source_type() const; - private: - bool _internal_has_source_type() const; - public: - void clear_source_type(); - ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; - void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - private: - ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; - void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - public: - - // optional int64 offset_bytes = 4; - bool has_offset_bytes() const; - private: - bool _internal_has_offset_bytes() const; - public: - void clear_offset_bytes(); - int64_t offset_bytes() const; - void set_offset_bytes(int64_t value); - private: - int64_t _internal_offset_bytes() const; - void _internal_set_offset_bytes(int64_t value); - public: - - // optional int64 batch_id = 5; - bool has_batch_id() const; - private: - bool _internal_has_batch_id() const; - public: - void clear_batch_id(); - int64_t batch_id() const; - void set_batch_id(int64_t value); - private: - int64_t _internal_batch_id() const; - void _internal_set_batch_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.FileAttachment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t size_bytes_; - int type_; - int source_type_; - int64_t offset_bytes_; - int64_t batch_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_WifiCredentialsAttachment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) */ { - public: - inline SharingLog_WifiCredentialsAttachment() : SharingLog_WifiCredentialsAttachment(nullptr) {} - ~SharingLog_WifiCredentialsAttachment() override; - explicit constexpr SharingLog_WifiCredentialsAttachment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_WifiCredentialsAttachment(const SharingLog_WifiCredentialsAttachment& from); - SharingLog_WifiCredentialsAttachment(SharingLog_WifiCredentialsAttachment&& from) noexcept - : SharingLog_WifiCredentialsAttachment() { - *this = ::std::move(from); - } - - inline SharingLog_WifiCredentialsAttachment& operator=(const SharingLog_WifiCredentialsAttachment& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_WifiCredentialsAttachment& operator=(SharingLog_WifiCredentialsAttachment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_WifiCredentialsAttachment& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_WifiCredentialsAttachment* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_WifiCredentialsAttachment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 69; - - friend void swap(SharingLog_WifiCredentialsAttachment& a, SharingLog_WifiCredentialsAttachment& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_WifiCredentialsAttachment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_WifiCredentialsAttachment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_WifiCredentialsAttachment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_WifiCredentialsAttachment& from); - void MergeFrom(const SharingLog_WifiCredentialsAttachment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_WifiCredentialsAttachment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment"; - } - protected: - explicit SharingLog_WifiCredentialsAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBatchIdFieldNumber = 2, - kSecurityTypeFieldNumber = 1, - kSourceTypeFieldNumber = 3, - }; - // optional int64 batch_id = 2; - bool has_batch_id() const; - private: - bool _internal_has_batch_id() const; - public: - void clear_batch_id(); - int64_t batch_id() const; - void set_batch_id(int64_t value); - private: - int64_t _internal_batch_id() const; - void _internal_set_batch_id(int64_t value); - public: - - // optional int32 security_type = 1; - bool has_security_type() const; - private: - bool _internal_has_security_type() const; - public: - void clear_security_type(); - int32_t security_type() const; - void set_security_type(int32_t value); - private: - int32_t _internal_security_type() const; - void _internal_set_security_type(int32_t value); - public: - - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - bool has_source_type() const; - private: - bool _internal_has_source_type() const; - public: - void clear_source_type(); - ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; - void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - private: - ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; - void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t batch_id_; - int32_t security_type_; - int source_type_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AppAttachment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppAttachment) */ { - public: - inline SharingLog_AppAttachment() : SharingLog_AppAttachment(nullptr) {} - ~SharingLog_AppAttachment() override; - explicit constexpr SharingLog_AppAttachment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AppAttachment(const SharingLog_AppAttachment& from); - SharingLog_AppAttachment(SharingLog_AppAttachment&& from) noexcept - : SharingLog_AppAttachment() { - *this = ::std::move(from); - } - - inline SharingLog_AppAttachment& operator=(const SharingLog_AppAttachment& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AppAttachment& operator=(SharingLog_AppAttachment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AppAttachment& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AppAttachment* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AppAttachment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 70; - - friend void swap(SharingLog_AppAttachment& a, SharingLog_AppAttachment& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AppAttachment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AppAttachment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AppAttachment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AppAttachment& from); - void MergeFrom(const SharingLog_AppAttachment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AppAttachment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AppAttachment"; - } - protected: - explicit SharingLog_AppAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPackageNameFieldNumber = 1, - kSizeFieldNumber = 2, - kBatchIdFieldNumber = 3, - kSourceTypeFieldNumber = 4, - }; - // optional string package_name = 1; - bool has_package_name() const; - private: - bool _internal_has_package_name() const; - public: - void clear_package_name(); - const std::string& package_name() const; - template - void set_package_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_package_name(); - PROTOBUF_NODISCARD std::string* release_package_name(); - void set_allocated_package_name(std::string* package_name); - private: - const std::string& _internal_package_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value); - std::string* _internal_mutable_package_name(); - public: - - // optional int64 size = 2; - bool has_size() const; - private: - bool _internal_has_size() const; - public: - void clear_size(); - int64_t size() const; - void set_size(int64_t value); - private: - int64_t _internal_size() const; - void _internal_set_size(int64_t value); - public: - - // optional int64 batch_id = 3; - bool has_batch_id() const; - private: - bool _internal_has_batch_id() const; - public: - void clear_batch_id(); - int64_t batch_id() const; - void set_batch_id(int64_t value); - private: - int64_t _internal_batch_id() const; - void _internal_set_batch_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; - bool has_source_type() const; - private: - bool _internal_has_source_type() const; - public: - void clear_source_type(); - ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; - void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - private: - ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; - void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppAttachment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_; - int64_t size_; - int64_t batch_id_; - int source_type_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_StreamAttachment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) */ { - public: - inline SharingLog_StreamAttachment() : SharingLog_StreamAttachment(nullptr) {} - ~SharingLog_StreamAttachment() override; - explicit constexpr SharingLog_StreamAttachment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_StreamAttachment(const SharingLog_StreamAttachment& from); - SharingLog_StreamAttachment(SharingLog_StreamAttachment&& from) noexcept - : SharingLog_StreamAttachment() { - *this = ::std::move(from); - } - - inline SharingLog_StreamAttachment& operator=(const SharingLog_StreamAttachment& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_StreamAttachment& operator=(SharingLog_StreamAttachment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_StreamAttachment& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_StreamAttachment* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_StreamAttachment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 71; - - friend void swap(SharingLog_StreamAttachment& a, SharingLog_StreamAttachment& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_StreamAttachment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_StreamAttachment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_StreamAttachment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_StreamAttachment& from); - void MergeFrom(const SharingLog_StreamAttachment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_StreamAttachment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.StreamAttachment"; - } - protected: - explicit SharingLog_StreamAttachment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPackageNameFieldNumber = 1, - kBatchIdFieldNumber = 2, - kSourceTypeFieldNumber = 3, - }; - // optional string package_name = 1; - bool has_package_name() const; - private: - bool _internal_has_package_name() const; - public: - void clear_package_name(); - const std::string& package_name() const; - template - void set_package_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_package_name(); - PROTOBUF_NODISCARD std::string* release_package_name(); - void set_allocated_package_name(std::string* package_name); - private: - const std::string& _internal_package_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value); - std::string* _internal_mutable_package_name(); - public: - - // optional int64 batch_id = 2; - bool has_batch_id() const; - private: - bool _internal_has_batch_id() const; - public: - void clear_batch_id(); - int64_t batch_id() const; - void set_batch_id(int64_t value); - private: - int64_t _internal_batch_id() const; - void _internal_set_batch_id(int64_t value); - public: - - // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; - bool has_source_type() const; - private: - bool _internal_has_source_type() const; - public: - void clear_source_type(); - ::location::nearby::proto::sharing::AttachmentSourceType source_type() const; - void set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - private: - ::location::nearby::proto::sharing::AttachmentSourceType _internal_source_type() const; - void _internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.StreamAttachment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_; - int64_t batch_id_; - int source_type_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_CloudAttachmentInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) */ { - public: - inline SharingLog_CloudAttachmentInfo() : SharingLog_CloudAttachmentInfo(nullptr) {} - ~SharingLog_CloudAttachmentInfo() override; - explicit constexpr SharingLog_CloudAttachmentInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CloudAttachmentInfo(const SharingLog_CloudAttachmentInfo& from); - SharingLog_CloudAttachmentInfo(SharingLog_CloudAttachmentInfo&& from) noexcept - : SharingLog_CloudAttachmentInfo() { - *this = ::std::move(from); - } - - inline SharingLog_CloudAttachmentInfo& operator=(const SharingLog_CloudAttachmentInfo& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CloudAttachmentInfo& operator=(SharingLog_CloudAttachmentInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CloudAttachmentInfo& default_instance() { - return *internal_default_instance(); - } - enum CloudAttachmentCase { - kTextAttachment = 2, - kFileAttachment = 3, - kWifiCredentialsAttachment = 4, - kAppAttachment = 5, - kStreamAttachment = 6, - CLOUDATTACHMENT_NOT_SET = 0, - }; - - static inline const SharingLog_CloudAttachmentInfo* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudAttachmentInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 72; - - friend void swap(SharingLog_CloudAttachmentInfo& a, SharingLog_CloudAttachmentInfo& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudAttachmentInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CloudAttachmentInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CloudAttachmentInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CloudAttachmentInfo& from); - void MergeFrom(const SharingLog_CloudAttachmentInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudAttachmentInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo"; - } - protected: - explicit SharingLog_CloudAttachmentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - kTransferredBytesFieldNumber = 7, - kDurationMillisFieldNumber = 8, - kTextAttachmentFieldNumber = 2, - kFileAttachmentFieldNumber = 3, - kWifiCredentialsAttachmentFieldNumber = 4, - kAppAttachmentFieldNumber = 5, - kStreamAttachmentFieldNumber = 6, - }; - // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - ::location::nearby::proto::sharing::AttachmentTransmissionStatus status() const; - void set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); - private: - ::location::nearby::proto::sharing::AttachmentTransmissionStatus _internal_status() const; - void _internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value); - public: - - // optional int64 transferred_bytes = 7; - bool has_transferred_bytes() const; - private: - bool _internal_has_transferred_bytes() const; - public: - void clear_transferred_bytes(); - int64_t transferred_bytes() const; - void set_transferred_bytes(int64_t value); - private: - int64_t _internal_transferred_bytes() const; - void _internal_set_transferred_bytes(int64_t value); - public: - - // optional int64 duration_millis = 8; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; - bool has_text_attachment() const; - private: - bool _internal_has_text_attachment() const; - public: - void clear_text_attachment(); - const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& text_attachment() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* release_text_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* mutable_text_attachment(); - void set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* text_attachment); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& _internal_text_attachment() const; - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* _internal_mutable_text_attachment(); - public: - void unsafe_arena_set_allocated_text_attachment( - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* text_attachment); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* unsafe_arena_release_text_attachment(); - - // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; - bool has_file_attachment() const; - private: - bool _internal_has_file_attachment() const; - public: - void clear_file_attachment(); - const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& file_attachment() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* release_file_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* mutable_file_attachment(); - void set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* file_attachment); - private: - const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& _internal_file_attachment() const; - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* _internal_mutable_file_attachment(); - public: - void unsafe_arena_set_allocated_file_attachment( - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* file_attachment); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* unsafe_arena_release_file_attachment(); - - // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; - bool has_wifi_credentials_attachment() const; - private: - bool _internal_has_wifi_credentials_attachment() const; - public: - void clear_wifi_credentials_attachment(); - const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& wifi_credentials_attachment() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* release_wifi_credentials_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* mutable_wifi_credentials_attachment(); - void set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* wifi_credentials_attachment); - private: - const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& _internal_wifi_credentials_attachment() const; - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* _internal_mutable_wifi_credentials_attachment(); - public: - void unsafe_arena_set_allocated_wifi_credentials_attachment( - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* wifi_credentials_attachment); - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* unsafe_arena_release_wifi_credentials_attachment(); - - // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; - bool has_app_attachment() const; - private: - bool _internal_has_app_attachment() const; - public: - void clear_app_attachment(); - const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& app_attachment() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* release_app_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* mutable_app_attachment(); - void set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* app_attachment); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& _internal_app_attachment() const; - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* _internal_mutable_app_attachment(); - public: - void unsafe_arena_set_allocated_app_attachment( - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* app_attachment); - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* unsafe_arena_release_app_attachment(); - - // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; - bool has_stream_attachment() const; - private: - bool _internal_has_stream_attachment() const; - public: - void clear_stream_attachment(); - const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& stream_attachment() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* release_stream_attachment(); - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* mutable_stream_attachment(); - void set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* stream_attachment); - private: - const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& _internal_stream_attachment() const; - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* _internal_mutable_stream_attachment(); - public: - void unsafe_arena_set_allocated_stream_attachment( - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* stream_attachment); - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* unsafe_arena_release_stream_attachment(); - - void clear_CloudAttachment(); - CloudAttachmentCase CloudAttachment_case() const; - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo) - private: - class _Internal; - void set_has_text_attachment(); - void set_has_file_attachment(); - void set_has_wifi_credentials_attachment(); - void set_has_app_attachment(); - void set_has_stream_attachment(); - - inline bool has_CloudAttachment() const; - inline void clear_has_CloudAttachment(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int status_; - int64_t transferred_bytes_; - int64_t duration_millis_; - union CloudAttachmentUnion { - constexpr CloudAttachmentUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* text_attachment_; - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* file_attachment_; - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* wifi_credentials_attachment_; - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* app_attachment_; - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* stream_attachment_; - } CloudAttachment_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_AppCrash final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.AppCrash) */ { - public: - inline SharingLog_AppCrash() : SharingLog_AppCrash(nullptr) {} - ~SharingLog_AppCrash() override; - explicit constexpr SharingLog_AppCrash(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_AppCrash(const SharingLog_AppCrash& from); - SharingLog_AppCrash(SharingLog_AppCrash&& from) noexcept - : SharingLog_AppCrash() { - *this = ::std::move(from); - } - - inline SharingLog_AppCrash& operator=(const SharingLog_AppCrash& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_AppCrash& operator=(SharingLog_AppCrash&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_AppCrash& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_AppCrash* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_AppCrash_default_instance_); - } - static constexpr int kIndexInFileMessages = - 73; - - friend void swap(SharingLog_AppCrash& a, SharingLog_AppCrash& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_AppCrash* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_AppCrash* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_AppCrash* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_AppCrash& from); - void MergeFrom(const SharingLog_AppCrash& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_AppCrash* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.AppCrash"; - } - protected: - explicit SharingLog_AppCrash(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCrashReasonFieldNumber = 1, - }; - // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; - bool has_crash_reason() const; - private: - bool _internal_has_crash_reason() const; - public: - void clear_crash_reason(); - ::location::nearby::proto::sharing::AppCrashReason crash_reason() const; - void set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value); - private: - ::location::nearby::proto::sharing::AppCrashReason _internal_crash_reason() const; - void _internal_set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.AppCrash) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int crash_reason_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SetupWizard final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SetupWizard) */ { - public: - inline SharingLog_SetupWizard() : SharingLog_SetupWizard(nullptr) {} - ~SharingLog_SetupWizard() override; - explicit constexpr SharingLog_SetupWizard(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SetupWizard(const SharingLog_SetupWizard& from); - SharingLog_SetupWizard(SharingLog_SetupWizard&& from) noexcept - : SharingLog_SetupWizard() { - *this = ::std::move(from); - } - - inline SharingLog_SetupWizard& operator=(const SharingLog_SetupWizard& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SetupWizard& operator=(SharingLog_SetupWizard&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SetupWizard& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SetupWizard* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SetupWizard_default_instance_); - } - static constexpr int kIndexInFileMessages = - 74; - - friend void swap(SharingLog_SetupWizard& a, SharingLog_SetupWizard& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SetupWizard* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SetupWizard* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SetupWizard* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SetupWizard& from); - void MergeFrom(const SharingLog_SetupWizard& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SetupWizard* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SetupWizard"; - } - protected: - explicit SharingLog_SetupWizard(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVisibilityFieldNumber = 1, - kPreviousVisibilityFieldNumber = 2, - }; - // optional .location.nearby.proto.sharing.Visibility visibility = 1; - bool has_visibility() const; - private: - bool _internal_has_visibility() const; - public: - void clear_visibility(); - ::location::nearby::proto::sharing::Visibility visibility() const; - void set_visibility(::location::nearby::proto::sharing::Visibility value); - private: - ::location::nearby::proto::sharing::Visibility _internal_visibility() const; - void _internal_set_visibility(::location::nearby::proto::sharing::Visibility value); - public: - - // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; - bool has_previous_visibility() const; - private: - bool _internal_has_previous_visibility() const; - public: - void clear_previous_visibility(); - ::location::nearby::proto::sharing::Visibility previous_visibility() const; - void set_previous_visibility(::location::nearby::proto::sharing::Visibility value); - private: - ::location::nearby::proto::sharing::Visibility _internal_previous_visibility() const; - void _internal_set_previous_visibility(::location::nearby::proto::sharing::Visibility value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SetupWizard) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int visibility_; - int previous_visibility_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SendDesktopNotification final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) */ { - public: - inline SharingLog_SendDesktopNotification() : SharingLog_SendDesktopNotification(nullptr) {} - ~SharingLog_SendDesktopNotification() override; - explicit constexpr SharingLog_SendDesktopNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SendDesktopNotification(const SharingLog_SendDesktopNotification& from); - SharingLog_SendDesktopNotification(SharingLog_SendDesktopNotification&& from) noexcept - : SharingLog_SendDesktopNotification() { - *this = ::std::move(from); - } - - inline SharingLog_SendDesktopNotification& operator=(const SharingLog_SendDesktopNotification& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SendDesktopNotification& operator=(SharingLog_SendDesktopNotification&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SendDesktopNotification& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SendDesktopNotification* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendDesktopNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 75; - - friend void swap(SharingLog_SendDesktopNotification& a, SharingLog_SendDesktopNotification& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendDesktopNotification* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SendDesktopNotification* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SendDesktopNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SendDesktopNotification& from); - void MergeFrom(const SharingLog_SendDesktopNotification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendDesktopNotification* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification"; - } - protected: - explicit SharingLog_SendDesktopNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEventFieldNumber = 1, - }; - // optional .location.nearby.proto.sharing.DesktopNotification event = 1; - bool has_event() const; - private: - bool _internal_has_event() const; - public: - void clear_event(); - ::location::nearby::proto::sharing::DesktopNotification event() const; - void set_event(::location::nearby::proto::sharing::DesktopNotification value); - private: - ::location::nearby::proto::sharing::DesktopNotification _internal_event() const; - void _internal_set_event(::location::nearby::proto::sharing::DesktopNotification value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int event_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_SendDesktopTransferEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) */ { - public: - inline SharingLog_SendDesktopTransferEvent() : SharingLog_SendDesktopTransferEvent(nullptr) {} - ~SharingLog_SendDesktopTransferEvent() override; - explicit constexpr SharingLog_SendDesktopTransferEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_SendDesktopTransferEvent(const SharingLog_SendDesktopTransferEvent& from); - SharingLog_SendDesktopTransferEvent(SharingLog_SendDesktopTransferEvent&& from) noexcept - : SharingLog_SendDesktopTransferEvent() { - *this = ::std::move(from); - } - - inline SharingLog_SendDesktopTransferEvent& operator=(const SharingLog_SendDesktopTransferEvent& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_SendDesktopTransferEvent& operator=(SharingLog_SendDesktopTransferEvent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_SendDesktopTransferEvent& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_SendDesktopTransferEvent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_SendDesktopTransferEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 76; - - friend void swap(SharingLog_SendDesktopTransferEvent& a, SharingLog_SendDesktopTransferEvent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_SendDesktopTransferEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_SendDesktopTransferEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_SendDesktopTransferEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_SendDesktopTransferEvent& from); - void MergeFrom(const SharingLog_SendDesktopTransferEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_SendDesktopTransferEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent"; - } - protected: - explicit SharingLog_SendDesktopTransferEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEventFieldNumber = 1, - }; - // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; - bool has_event() const; - private: - bool _internal_has_event() const; - public: - void clear_event(); - ::location::nearby::proto::sharing::DesktopTransferEventType event() const; - void set_event(::location::nearby::proto::sharing::DesktopTransferEventType value); - private: - ::location::nearby::proto::sharing::DesktopTransferEventType _internal_event() const; - void _internal_set_event(::location::nearby::proto::sharing::DesktopTransferEventType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int event_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ShowWaitingForAccept final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) */ { - public: - inline SharingLog_ShowWaitingForAccept() : SharingLog_ShowWaitingForAccept(nullptr) {} - ~SharingLog_ShowWaitingForAccept() override; - explicit constexpr SharingLog_ShowWaitingForAccept(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ShowWaitingForAccept(const SharingLog_ShowWaitingForAccept& from); - SharingLog_ShowWaitingForAccept(SharingLog_ShowWaitingForAccept&& from) noexcept - : SharingLog_ShowWaitingForAccept() { - *this = ::std::move(from); - } - - inline SharingLog_ShowWaitingForAccept& operator=(const SharingLog_ShowWaitingForAccept& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ShowWaitingForAccept& operator=(SharingLog_ShowWaitingForAccept&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ShowWaitingForAccept& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ShowWaitingForAccept* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ShowWaitingForAccept_default_instance_); - } - static constexpr int kIndexInFileMessages = - 77; - - friend void swap(SharingLog_ShowWaitingForAccept& a, SharingLog_ShowWaitingForAccept& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ShowWaitingForAccept* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ShowWaitingForAccept* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ShowWaitingForAccept* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ShowWaitingForAccept& from); - void MergeFrom(const SharingLog_ShowWaitingForAccept& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ShowWaitingForAccept* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept"; - } - protected: - explicit SharingLog_ShowWaitingForAccept(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kButtonStatusFieldNumber = 1, - }; - // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; - bool has_button_status() const; - private: - bool _internal_has_button_status() const; - public: - void clear_button_status(); - ::location::nearby::proto::sharing::ButtonStatus button_status() const; - void set_button_status(::location::nearby::proto::sharing::ButtonStatus value); - private: - ::location::nearby::proto::sharing::ButtonStatus _internal_button_status() const; - void _internal_set_button_status(::location::nearby::proto::sharing::ButtonStatus value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int button_status_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_HighQualityMediumSetup final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) */ { - public: - inline SharingLog_HighQualityMediumSetup() : SharingLog_HighQualityMediumSetup(nullptr) {} - ~SharingLog_HighQualityMediumSetup() override; - explicit constexpr SharingLog_HighQualityMediumSetup(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_HighQualityMediumSetup(const SharingLog_HighQualityMediumSetup& from); - SharingLog_HighQualityMediumSetup(SharingLog_HighQualityMediumSetup&& from) noexcept - : SharingLog_HighQualityMediumSetup() { - *this = ::std::move(from); - } - - inline SharingLog_HighQualityMediumSetup& operator=(const SharingLog_HighQualityMediumSetup& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_HighQualityMediumSetup& operator=(SharingLog_HighQualityMediumSetup&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_HighQualityMediumSetup& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_HighQualityMediumSetup* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_HighQualityMediumSetup_default_instance_); - } - static constexpr int kIndexInFileMessages = - 78; - - friend void swap(SharingLog_HighQualityMediumSetup& a, SharingLog_HighQualityMediumSetup& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_HighQualityMediumSetup* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_HighQualityMediumSetup* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_HighQualityMediumSetup* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_HighQualityMediumSetup& from); - void MergeFrom(const SharingLog_HighQualityMediumSetup& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_HighQualityMediumSetup* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup"; - } - protected: - explicit SharingLog_HighQualityMediumSetup(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kShareTargetInfoFieldNumber = 1, - kSessionIdFieldNumber = 2, - kDurationMillisFieldNumber = 3, - kIsTimeoutFieldNumber = 4, - kOriginalQualityFieldNumber = 5, - kConnectionMediumFieldNumber = 6, - kConnectionModeFieldNumber = 7, - kInstantConnectionResultFieldNumber = 8, - }; - // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; - bool has_share_target_info() const; - private: - bool _internal_has_share_target_info() const; - public: - void clear_share_target_info(); - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& share_target_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* release_share_target_info(); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* mutable_share_target_info(); - void set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& _internal_share_target_info() const; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _internal_mutable_share_target_info(); - public: - void unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info); - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* unsafe_arena_release_share_target_info(); - - // optional int64 session_id = 2; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int64_t session_id() const; - void set_session_id(int64_t value); - private: - int64_t _internal_session_id() const; - void _internal_set_session_id(int64_t value); - public: - - // optional int64 duration_millis = 3; - bool has_duration_millis() const; - private: - bool _internal_has_duration_millis() const; - public: - void clear_duration_millis(); - int64_t duration_millis() const; - void set_duration_millis(int64_t value); - private: - int64_t _internal_duration_millis() const; - void _internal_set_duration_millis(int64_t value); - public: - - // optional bool is_timeout = 4; - bool has_is_timeout() const; - private: - bool _internal_has_is_timeout() const; - public: - void clear_is_timeout(); - bool is_timeout() const; - void set_is_timeout(bool value); - private: - bool _internal_is_timeout() const; - void _internal_set_is_timeout(bool value); - public: - - // optional int32 original_quality = 5; - bool has_original_quality() const; - private: - bool _internal_has_original_quality() const; - public: - void clear_original_quality(); - int32_t original_quality() const; - void set_original_quality(int32_t value); - private: - int32_t _internal_original_quality() const; - void _internal_set_original_quality(int32_t value); - public: - - // optional int32 connection_medium = 6; - bool has_connection_medium() const; - private: - bool _internal_has_connection_medium() const; - public: - void clear_connection_medium(); - int32_t connection_medium() const; - void set_connection_medium(int32_t value); - private: - int32_t _internal_connection_medium() const; - void _internal_set_connection_medium(int32_t value); - public: - - // optional int32 connection_mode = 7; - bool has_connection_mode() const; - private: - bool _internal_has_connection_mode() const; - public: - void clear_connection_mode(); - int32_t connection_mode() const; - void set_connection_mode(int32_t value); - private: - int32_t _internal_connection_mode() const; - void _internal_set_connection_mode(int32_t value); - public: - - // optional int32 instant_connection_result = 8; - bool has_instant_connection_result() const; - private: - bool _internal_has_instant_connection_result() const; - public: - void clear_instant_connection_result(); - int32_t instant_connection_result() const; - void set_instant_connection_result(int32_t value); - private: - int32_t _internal_instant_connection_result() const; - void _internal_set_instant_connection_result(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info_; - int64_t session_id_; - int64_t duration_millis_; - bool is_timeout_; - int32_t original_quality_; - int32_t connection_medium_; - int32_t connection_mode_; - int32_t instant_connection_result_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_RpcCallStatus final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) */ { - public: - inline SharingLog_RpcCallStatus() : SharingLog_RpcCallStatus(nullptr) {} - ~SharingLog_RpcCallStatus() override; - explicit constexpr SharingLog_RpcCallStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_RpcCallStatus(const SharingLog_RpcCallStatus& from); - SharingLog_RpcCallStatus(SharingLog_RpcCallStatus&& from) noexcept - : SharingLog_RpcCallStatus() { - *this = ::std::move(from); - } - - inline SharingLog_RpcCallStatus& operator=(const SharingLog_RpcCallStatus& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_RpcCallStatus& operator=(SharingLog_RpcCallStatus&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_RpcCallStatus& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_RpcCallStatus* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_RpcCallStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 79; - - friend void swap(SharingLog_RpcCallStatus& a, SharingLog_RpcCallStatus& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_RpcCallStatus* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_RpcCallStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_RpcCallStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_RpcCallStatus& from); - void MergeFrom(const SharingLog_RpcCallStatus& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_RpcCallStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.RpcCallStatus"; - } - protected: - explicit SharingLog_RpcCallStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef SharingLog_RpcCallStatus_RpcDirection RpcDirection; - static constexpr RpcDirection UNKNOWN_RPC_DIRECTION = - SharingLog_RpcCallStatus_RpcDirection_UNKNOWN_RPC_DIRECTION; - static constexpr RpcDirection INCOMING = - SharingLog_RpcCallStatus_RpcDirection_INCOMING; - static constexpr RpcDirection OUTGOING = - SharingLog_RpcCallStatus_RpcDirection_OUTGOING; - static inline bool RpcDirection_IsValid(int value) { - return SharingLog_RpcCallStatus_RpcDirection_IsValid(value); - } - static constexpr RpcDirection RpcDirection_MIN = - SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MIN; - static constexpr RpcDirection RpcDirection_MAX = - SharingLog_RpcCallStatus_RpcDirection_RpcDirection_MAX; - static constexpr int RpcDirection_ARRAYSIZE = - SharingLog_RpcCallStatus_RpcDirection_RpcDirection_ARRAYSIZE; - template - static inline const std::string& RpcDirection_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RpcDirection_Name."); - return SharingLog_RpcCallStatus_RpcDirection_Name(enum_t_value); - } - static inline bool RpcDirection_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - RpcDirection* value) { - return SharingLog_RpcCallStatus_RpcDirection_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kRpcNameFieldNumber = 2, - kDirectionFieldNumber = 1, - kErrorCodeFieldNumber = 3, - kLatencyMillisFieldNumber = 4, - }; - // optional string rpc_name = 2; - bool has_rpc_name() const; - private: - bool _internal_has_rpc_name() const; - public: - void clear_rpc_name(); - const std::string& rpc_name() const; - template - void set_rpc_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_rpc_name(); - PROTOBUF_NODISCARD std::string* release_rpc_name(); - void set_allocated_rpc_name(std::string* rpc_name); - private: - const std::string& _internal_rpc_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_name(const std::string& value); - std::string* _internal_mutable_rpc_name(); - public: - - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; - bool has_direction() const; - private: - bool _internal_has_direction() const; - public: - void clear_direction(); - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection direction() const; - void set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value); - private: - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection _internal_direction() const; - void _internal_set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value); - public: - - // optional int32 error_code = 3; - bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); - int32_t error_code() const; - void set_error_code(int32_t value); - private: - int32_t _internal_error_code() const; - void _internal_set_error_code(int32_t value); - public: - - // optional int64 latency_millis = 4; - bool has_latency_millis() const; - private: - bool _internal_has_latency_millis() const; - public: - void clear_latency_millis(); - int64_t latency_millis() const; - void set_latency_millis(int64_t value); - private: - int64_t _internal_latency_millis() const; - void _internal_set_latency_millis(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rpc_name_; - int direction_; - int32_t error_code_; - int64_t latency_millis_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_StartQrCodeSession final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) */ { - public: - inline SharingLog_StartQrCodeSession() : SharingLog_StartQrCodeSession(nullptr) {} - ~SharingLog_StartQrCodeSession() override; - explicit constexpr SharingLog_StartQrCodeSession(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_StartQrCodeSession(const SharingLog_StartQrCodeSession& from); - SharingLog_StartQrCodeSession(SharingLog_StartQrCodeSession&& from) noexcept - : SharingLog_StartQrCodeSession() { - *this = ::std::move(from); - } - - inline SharingLog_StartQrCodeSession& operator=(const SharingLog_StartQrCodeSession& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_StartQrCodeSession& operator=(SharingLog_StartQrCodeSession&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_StartQrCodeSession& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_StartQrCodeSession* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_StartQrCodeSession_default_instance_); - } - static constexpr int kIndexInFileMessages = - 80; - - friend void swap(SharingLog_StartQrCodeSession& a, SharingLog_StartQrCodeSession& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_StartQrCodeSession* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_StartQrCodeSession* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_StartQrCodeSession* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_StartQrCodeSession& from); - void MergeFrom(const SharingLog_StartQrCodeSession& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_StartQrCodeSession* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession"; - } - protected: - explicit SharingLog_StartQrCodeSession(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_QrCodeOpenedInWebClient final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) */ { - public: - inline SharingLog_QrCodeOpenedInWebClient() : SharingLog_QrCodeOpenedInWebClient(nullptr) {} - ~SharingLog_QrCodeOpenedInWebClient() override; - explicit constexpr SharingLog_QrCodeOpenedInWebClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_QrCodeOpenedInWebClient(const SharingLog_QrCodeOpenedInWebClient& from); - SharingLog_QrCodeOpenedInWebClient(SharingLog_QrCodeOpenedInWebClient&& from) noexcept - : SharingLog_QrCodeOpenedInWebClient() { - *this = ::std::move(from); - } - - inline SharingLog_QrCodeOpenedInWebClient& operator=(const SharingLog_QrCodeOpenedInWebClient& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_QrCodeOpenedInWebClient& operator=(SharingLog_QrCodeOpenedInWebClient&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_QrCodeOpenedInWebClient& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_QrCodeOpenedInWebClient* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_QrCodeOpenedInWebClient_default_instance_); - } - static constexpr int kIndexInFileMessages = - 81; - - friend void swap(SharingLog_QrCodeOpenedInWebClient& a, SharingLog_QrCodeOpenedInWebClient& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_QrCodeOpenedInWebClient* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_QrCodeOpenedInWebClient* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_QrCodeOpenedInWebClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_QrCodeOpenedInWebClient& from); - void MergeFrom(const SharingLog_QrCodeOpenedInWebClient& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_QrCodeOpenedInWebClient* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient"; - } - protected: - explicit SharingLog_QrCodeOpenedInWebClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef SharingLog_QrCodeOpenedInWebClient_ClientPlatform ClientPlatform; - static constexpr ClientPlatform UNKNOWN_CLIENT_PLATFORM = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_UNKNOWN_CLIENT_PLATFORM; - static constexpr ClientPlatform GENERIC = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_GENERIC; - static constexpr ClientPlatform ANDROID = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ANDROID; - static constexpr ClientPlatform IOS = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IOS; - static constexpr ClientPlatform CHROME_OS = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_CHROME_OS; - static constexpr ClientPlatform WINDOWS = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_WINDOWS; - static inline bool ClientPlatform_IsValid(int value) { - return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(value); - } - static constexpr ClientPlatform ClientPlatform_MIN = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MIN; - static constexpr ClientPlatform ClientPlatform_MAX = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_MAX; - static constexpr int ClientPlatform_ARRAYSIZE = - SharingLog_QrCodeOpenedInWebClient_ClientPlatform_ClientPlatform_ARRAYSIZE; - template - static inline const std::string& ClientPlatform_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ClientPlatform_Name."); - return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Name(enum_t_value); - } - static inline bool ClientPlatform_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ClientPlatform* value) { - return SharingLog_QrCodeOpenedInWebClient_ClientPlatform_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kClientPlatformFieldNumber = 1, - kIsRetryFieldNumber = 2, - }; - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; - bool has_client_platform() const; - private: - bool _internal_has_client_platform() const; - public: - void clear_client_platform(); - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform client_platform() const; - void set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); - private: - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform _internal_client_platform() const; - void _internal_set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value); - public: - - // optional bool is_retry = 2; - bool has_is_retry() const; - private: - bool _internal_has_is_retry() const; - public: - void clear_is_retry(); - bool is_retry() const; - void set_is_retry(bool value); - private: - bool _internal_is_retry() const; - void _internal_set_is_retry(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int client_platform_; - bool is_retry_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_HatsJointEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) */ { - public: - inline SharingLog_HatsJointEvent() : SharingLog_HatsJointEvent(nullptr) {} - ~SharingLog_HatsJointEvent() override; - explicit constexpr SharingLog_HatsJointEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_HatsJointEvent(const SharingLog_HatsJointEvent& from); - SharingLog_HatsJointEvent(SharingLog_HatsJointEvent&& from) noexcept - : SharingLog_HatsJointEvent() { - *this = ::std::move(from); - } - - inline SharingLog_HatsJointEvent& operator=(const SharingLog_HatsJointEvent& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_HatsJointEvent& operator=(SharingLog_HatsJointEvent&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_HatsJointEvent& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_HatsJointEvent* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_HatsJointEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 82; - - friend void swap(SharingLog_HatsJointEvent& a, SharingLog_HatsJointEvent& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_HatsJointEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_HatsJointEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_HatsJointEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_HatsJointEvent& from); - void MergeFrom(const SharingLog_HatsJointEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_HatsJointEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.HatsJointEvent"; - } - protected: - explicit SharingLog_HatsJointEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kHatsSessionIdFieldNumber = 2, - kFlowIdFieldNumber = 1, - }; - // optional string hats_session_id = 2; - bool has_hats_session_id() const; - private: - bool _internal_has_hats_session_id() const; - public: - void clear_hats_session_id(); - const std::string& hats_session_id() const; - template - void set_hats_session_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_hats_session_id(); - PROTOBUF_NODISCARD std::string* release_hats_session_id(); - void set_allocated_hats_session_id(std::string* hats_session_id); - private: - const std::string& _internal_hats_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hats_session_id(const std::string& value); - std::string* _internal_mutable_hats_session_id(); - public: - - // optional int64 flow_id = 1; - bool has_flow_id() const; - private: - bool _internal_has_flow_id() const; - public: - void clear_flow_id(); - int64_t flow_id() const; - void set_flow_id(int64_t value); - private: - int64_t _internal_flow_id() const; - void _internal_set_flow_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hats_session_id_; - int64_t flow_id_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_ReceivePreviews final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) */ { - public: - inline SharingLog_ReceivePreviews() : SharingLog_ReceivePreviews(nullptr) {} - ~SharingLog_ReceivePreviews() override; - explicit constexpr SharingLog_ReceivePreviews(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_ReceivePreviews(const SharingLog_ReceivePreviews& from); - SharingLog_ReceivePreviews(SharingLog_ReceivePreviews&& from) noexcept - : SharingLog_ReceivePreviews() { - *this = ::std::move(from); - } - - inline SharingLog_ReceivePreviews& operator=(const SharingLog_ReceivePreviews& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_ReceivePreviews& operator=(SharingLog_ReceivePreviews&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_ReceivePreviews& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_ReceivePreviews* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_ReceivePreviews_default_instance_); - } - static constexpr int kIndexInFileMessages = - 83; - - friend void swap(SharingLog_ReceivePreviews& a, SharingLog_ReceivePreviews& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_ReceivePreviews* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_ReceivePreviews* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_ReceivePreviews* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_ReceivePreviews& from); - void MergeFrom(const SharingLog_ReceivePreviews& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_ReceivePreviews* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.ReceivePreviews"; - } - protected: - explicit SharingLog_ReceivePreviews(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNumPreviewsFieldNumber = 1, - }; - // optional int32 num_previews = 1; - bool has_num_previews() const; - private: - bool _internal_has_num_previews() const; - public: - void clear_num_previews(); - int32_t num_previews() const; - void set_num_previews(int32_t value); - private: - int32_t _internal_num_previews() const; - void _internal_set_num_previews(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t num_previews_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_CloudCreateSharingRequest final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) */ { - public: - inline SharingLog_CloudCreateSharingRequest() : SharingLog_CloudCreateSharingRequest(nullptr) {} - ~SharingLog_CloudCreateSharingRequest() override; - explicit constexpr SharingLog_CloudCreateSharingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CloudCreateSharingRequest(const SharingLog_CloudCreateSharingRequest& from); - SharingLog_CloudCreateSharingRequest(SharingLog_CloudCreateSharingRequest&& from) noexcept - : SharingLog_CloudCreateSharingRequest() { - *this = ::std::move(from); - } - - inline SharingLog_CloudCreateSharingRequest& operator=(const SharingLog_CloudCreateSharingRequest& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CloudCreateSharingRequest& operator=(SharingLog_CloudCreateSharingRequest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CloudCreateSharingRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_CloudCreateSharingRequest* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudCreateSharingRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 84; - - friend void swap(SharingLog_CloudCreateSharingRequest& a, SharingLog_CloudCreateSharingRequest& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudCreateSharingRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CloudCreateSharingRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CloudCreateSharingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CloudCreateSharingRequest& from); - void MergeFrom(const SharingLog_CloudCreateSharingRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudCreateSharingRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest"; - } - protected: - explicit SharingLog_CloudCreateSharingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 1, - kResultFieldNumber = 2, + kDownloadDurationFieldNumber = 2, }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); - // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; - bool has_result() const; - private: - bool _internal_has_result() const; - public: - void clear_result(); - ::location::nearby::proto::sharing::CloudCreateSharingResult result() const; - void set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value); - private: - ::location::nearby::proto::sharing::CloudCreateSharingResult _internal_result() const; - void _internal_set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value); public: + // optional .google.protobuf.Duration download_duration = 2; + bool has_download_duration() const; + void clear_download_duration() ; + const ::google::protobuf::Duration& download_duration() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_download_duration(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_download_duration(); + void set_allocated_download_duration(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_download_duration(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_download_duration(); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) + private: + const ::google::protobuf::Duration& _internal_download_duration() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_download_duration(); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - int result_; - friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class SharingLog_CloudRegisterReceiver final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) */ { - public: - inline SharingLog_CloudRegisterReceiver() : SharingLog_CloudRegisterReceiver(nullptr) {} - ~SharingLog_CloudRegisterReceiver() override; - explicit constexpr SharingLog_CloudRegisterReceiver(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SharingLog_CloudRegisterReceiver(const SharingLog_CloudRegisterReceiver& from); - SharingLog_CloudRegisterReceiver(SharingLog_CloudRegisterReceiver&& from) noexcept - : SharingLog_CloudRegisterReceiver() { - *this = ::std::move(from); - } - - inline SharingLog_CloudRegisterReceiver& operator=(const SharingLog_CloudRegisterReceiver& from) { - CopyFrom(from); - return *this; - } - inline SharingLog_CloudRegisterReceiver& operator=(SharingLog_CloudRegisterReceiver&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SharingLog_CloudRegisterReceiver& default_instance() { - return *internal_default_instance(); - } - static inline const SharingLog_CloudRegisterReceiver* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudRegisterReceiver_default_instance_); - } - static constexpr int kIndexInFileMessages = - 85; - - friend void swap(SharingLog_CloudRegisterReceiver& a, SharingLog_CloudRegisterReceiver& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudRegisterReceiver* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SharingLog_CloudRegisterReceiver* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SharingLog_CloudRegisterReceiver* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CloudRegisterReceiver& from); - void MergeFrom(const SharingLog_CloudRegisterReceiver& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudRegisterReceiver* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver"; - } - protected: - explicit SharingLog_CloudRegisterReceiver(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kResultFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_DescribeAttachments& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE download_duration_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; - bool has_result() const; - private: - bool _internal_has_result() const; - public: - void clear_result(); - ::location::nearby::proto::sharing::CloudRegisterReceiverResult result() const; - void set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value); - private: - ::location::nearby::proto::sharing::CloudRegisterReceiverResult _internal_result() const; - void _internal_set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value); - public: - - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int result_; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<62> SharingLog_DescribeAttachments_class_data_; // ------------------------------------------------------------------- -class SharingLog_CloudUploadStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) */ { +class SharingLog_CloudUploadStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) */ { public: inline SharingLog_CloudUploadStart() : SharingLog_CloudUploadStart(nullptr) {} - ~SharingLog_CloudUploadStart() override; - explicit constexpr SharingLog_CloudUploadStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_CloudUploadStart() PROTOBUF_FINAL; - SharingLog_CloudUploadStart(const SharingLog_CloudUploadStart& from); - SharingLog_CloudUploadStart(SharingLog_CloudUploadStart&& from) noexcept - : SharingLog_CloudUploadStart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudUploadStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudUploadStart)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudUploadStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudUploadStart(const SharingLog_CloudUploadStart& from) : SharingLog_CloudUploadStart(nullptr, from) {} + inline SharingLog_CloudUploadStart(SharingLog_CloudUploadStart&& from) noexcept + : SharingLog_CloudUploadStart(nullptr, ::std::move(from)) {} inline SharingLog_CloudUploadStart& operator=(const SharingLog_CloudUploadStart& from) { CopyFrom(from); return *this; } inline SharingLog_CloudUploadStart& operator=(SharingLog_CloudUploadStart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -15520,161 +18439,195 @@ class SharingLog_CloudUploadStart final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_CloudUploadStart& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_CloudUploadStart_default_instance_); } - static inline const SharingLog_CloudUploadStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudUploadStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 86; - - friend void swap(SharingLog_CloudUploadStart& a, SharingLog_CloudUploadStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudUploadStart* other) { + static constexpr int kIndexInFileMessages = 86; + friend void swap(SharingLog_CloudUploadStart& a, SharingLog_CloudUploadStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudUploadStart* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_CloudUploadStart* other) { + void UnsafeArenaSwap(SharingLog_CloudUploadStart* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_CloudUploadStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudUploadStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_CloudUploadStart& from); - void MergeFrom(const SharingLog_CloudUploadStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_CloudUploadStart& from) { SharingLog_CloudUploadStart::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudUploadStart* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudUploadStart"; - } - protected: - explicit SharingLog_CloudUploadStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudUploadStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudUploadStart"; } + + explicit SharingLog_CloudUploadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudUploadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudUploadStart& from); + SharingLog_CloudUploadStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudUploadStart&& from) noexcept + : SharingLog_CloudUploadStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 1, kActionTypeFieldNumber = 2, }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; bool has_action_type() const; - private: - bool _internal_has_action_type() const; - public: - void clear_action_type(); + void clear_action_type() ; ::location::nearby::proto::sharing::CloudActionType action_type() const; void set_action_type(::location::nearby::proto::sharing::CloudActionType value); + private: ::location::nearby::proto::sharing::CloudActionType _internal_action_type() const; void _internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - int action_type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudUploadStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + int action_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudUploadStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_CloudUploadEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) */ { +class SharingLog_CloudUploadEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) */ { public: inline SharingLog_CloudUploadEnd() : SharingLog_CloudUploadEnd(nullptr) {} - ~SharingLog_CloudUploadEnd() override; - explicit constexpr SharingLog_CloudUploadEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_CloudUploadEnd() PROTOBUF_FINAL; - SharingLog_CloudUploadEnd(const SharingLog_CloudUploadEnd& from); - SharingLog_CloudUploadEnd(SharingLog_CloudUploadEnd&& from) noexcept - : SharingLog_CloudUploadEnd() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudUploadEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudUploadEnd)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudUploadEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudUploadEnd(const SharingLog_CloudUploadEnd& from) : SharingLog_CloudUploadEnd(nullptr, from) {} + inline SharingLog_CloudUploadEnd(SharingLog_CloudUploadEnd&& from) noexcept + : SharingLog_CloudUploadEnd(nullptr, ::std::move(from)) {} inline SharingLog_CloudUploadEnd& operator=(const SharingLog_CloudUploadEnd& from) { CopyFrom(from); return *this; } inline SharingLog_CloudUploadEnd& operator=(SharingLog_CloudUploadEnd&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -15682,87 +18635,102 @@ class SharingLog_CloudUploadEnd final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_CloudUploadEnd& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_CloudUploadEnd_default_instance_); } - static inline const SharingLog_CloudUploadEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudUploadEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 87; - - friend void swap(SharingLog_CloudUploadEnd& a, SharingLog_CloudUploadEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudUploadEnd* other) { + static constexpr int kIndexInFileMessages = 87; + friend void swap(SharingLog_CloudUploadEnd& a, SharingLog_CloudUploadEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudUploadEnd* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_CloudUploadEnd* other) { + void UnsafeArenaSwap(SharingLog_CloudUploadEnd* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_CloudUploadEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudUploadEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_CloudUploadEnd& from); - void MergeFrom(const SharingLog_CloudUploadEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_CloudUploadEnd& from) { SharingLog_CloudUploadEnd::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudUploadEnd* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd"; - } - protected: - explicit SharingLog_CloudUploadEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudUploadEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd"; } + + explicit SharingLog_CloudUploadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudUploadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudUploadEnd& from); + SharingLog_CloudUploadEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudUploadEnd&& from) noexcept + : SharingLog_CloudUploadEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kUploadInfosFieldNumber = 1, kActionTypeFieldNumber = 2, @@ -15771,72 +18739,93 @@ class SharingLog_CloudUploadEnd final : int upload_infos_size() const; private: int _internal_upload_infos_size() const; + public: - void clear_upload_infos(); - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* mutable_upload_infos(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >* - mutable_upload_infos(); + void clear_upload_infos() ; + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL mutable_upload_infos(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL mutable_upload_infos(); + private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& _internal_upload_infos(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _internal_add_upload_infos(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& _internal_upload_infos() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL _internal_mutable_upload_infos(); public: const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& upload_infos(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* add_upload_infos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >& - upload_infos() const; - + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL add_upload_infos(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& upload_infos() const; // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; bool has_action_type() const; - private: - bool _internal_has_action_type() const; - public: - void clear_action_type(); + void clear_action_type() ; ::location::nearby::proto::sharing::CloudActionType action_type() const; void set_action_type(::location::nearby::proto::sharing::CloudActionType value); + private: ::location::nearby::proto::sharing::CloudActionType _internal_action_type() const; void _internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo > upload_infos_; - int action_type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudUploadEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo > upload_infos_; + int action_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<57> SharingLog_CloudUploadEnd_class_data_; // ------------------------------------------------------------------- -class SharingLog_CloudDownloadStart final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) */ { +class SharingLog_CloudDownloadStart final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) */ { public: inline SharingLog_CloudDownloadStart() : SharingLog_CloudDownloadStart(nullptr) {} - ~SharingLog_CloudDownloadStart() override; - explicit constexpr SharingLog_CloudDownloadStart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_CloudDownloadStart() PROTOBUF_FINAL; - SharingLog_CloudDownloadStart(const SharingLog_CloudDownloadStart& from); - SharingLog_CloudDownloadStart(SharingLog_CloudDownloadStart&& from) noexcept - : SharingLog_CloudDownloadStart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudDownloadStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudDownloadStart)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudDownloadStart(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudDownloadStart(const SharingLog_CloudDownloadStart& from) : SharingLog_CloudDownloadStart(nullptr, from) {} + inline SharingLog_CloudDownloadStart(SharingLog_CloudDownloadStart&& from) noexcept + : SharingLog_CloudDownloadStart(nullptr, ::std::move(from)) {} inline SharingLog_CloudDownloadStart& operator=(const SharingLog_CloudDownloadStart& from) { CopyFrom(from); return *this; } inline SharingLog_CloudDownloadStart& operator=(SharingLog_CloudDownloadStart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -15844,161 +18833,195 @@ class SharingLog_CloudDownloadStart final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_CloudDownloadStart& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_CloudDownloadStart_default_instance_); } - static inline const SharingLog_CloudDownloadStart* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudDownloadStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 88; - - friend void swap(SharingLog_CloudDownloadStart& a, SharingLog_CloudDownloadStart& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudDownloadStart* other) { + static constexpr int kIndexInFileMessages = 88; + friend void swap(SharingLog_CloudDownloadStart& a, SharingLog_CloudDownloadStart& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudDownloadStart* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_CloudDownloadStart* other) { + void UnsafeArenaSwap(SharingLog_CloudDownloadStart* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_CloudDownloadStart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudDownloadStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_CloudDownloadStart& from); - void MergeFrom(const SharingLog_CloudDownloadStart& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_CloudDownloadStart& from) { SharingLog_CloudDownloadStart::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudDownloadStart* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart"; - } - protected: - explicit SharingLog_CloudDownloadStart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudDownloadStart* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart"; } + + explicit SharingLog_CloudDownloadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudDownloadStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudDownloadStart& from); + SharingLog_CloudDownloadStart( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudDownloadStart&& from) noexcept + : SharingLog_CloudDownloadStart(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAttachmentsInfoFieldNumber = 1, kActionTypeFieldNumber = 2, }; // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; bool has_attachments_info() const; - private: - bool _internal_has_attachments_info() const; - public: - void clear_attachments_info(); + void clear_attachments_info() ; const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* release_attachments_info(); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* mutable_attachments_info(); - void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _internal_mutable_attachments_info(); - public: - void unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info); - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* unsafe_arena_release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); + public: // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; bool has_action_type() const; - private: - bool _internal_has_action_type() const; - public: - void clear_action_type(); + void clear_action_type() ; ::location::nearby::proto::sharing::CloudActionType action_type() const; void set_action_type(::location::nearby::proto::sharing::CloudActionType value); + private: ::location::nearby::proto::sharing::CloudActionType _internal_action_type() const; void _internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info_; - int action_type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudDownloadStart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + int action_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<61> SharingLog_CloudDownloadStart_class_data_; // ------------------------------------------------------------------- -class SharingLog_CloudDownloadEnd final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) */ { +class SharingLog_CloudDownloadEnd final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) */ { public: inline SharingLog_CloudDownloadEnd() : SharingLog_CloudDownloadEnd(nullptr) {} - ~SharingLog_CloudDownloadEnd() override; - explicit constexpr SharingLog_CloudDownloadEnd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog_CloudDownloadEnd() PROTOBUF_FINAL; - SharingLog_CloudDownloadEnd(const SharingLog_CloudDownloadEnd& from); - SharingLog_CloudDownloadEnd(SharingLog_CloudDownloadEnd&& from) noexcept - : SharingLog_CloudDownloadEnd() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudDownloadEnd)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudDownloadEnd(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudDownloadEnd(const SharingLog_CloudDownloadEnd& from) : SharingLog_CloudDownloadEnd(nullptr, from) {} + inline SharingLog_CloudDownloadEnd(SharingLog_CloudDownloadEnd&& from) noexcept + : SharingLog_CloudDownloadEnd(nullptr, ::std::move(from)) {} inline SharingLog_CloudDownloadEnd& operator=(const SharingLog_CloudDownloadEnd& from) { CopyFrom(from); return *this; } inline SharingLog_CloudDownloadEnd& operator=(SharingLog_CloudDownloadEnd&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -16006,87 +19029,102 @@ class SharingLog_CloudDownloadEnd final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog_CloudDownloadEnd& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_CloudDownloadEnd_default_instance_); } - static inline const SharingLog_CloudDownloadEnd* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudDownloadEnd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 89; - - friend void swap(SharingLog_CloudDownloadEnd& a, SharingLog_CloudDownloadEnd& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudDownloadEnd* other) { + static constexpr int kIndexInFileMessages = 89; + friend void swap(SharingLog_CloudDownloadEnd& a, SharingLog_CloudDownloadEnd& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_CloudDownloadEnd* other) { + void UnsafeArenaSwap(SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_CloudDownloadEnd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog_CloudDownloadEnd& from); - void MergeFrom(const SharingLog_CloudDownloadEnd& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog_CloudDownloadEnd& from) { SharingLog_CloudDownloadEnd::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudDownloadEnd* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd"; - } - protected: - explicit SharingLog_CloudDownloadEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd"; } + + explicit SharingLog_CloudDownloadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudDownloadEnd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudDownloadEnd& from); + SharingLog_CloudDownloadEnd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudDownloadEnd&& from) noexcept + : SharingLog_CloudDownloadEnd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kDownloadInfosFieldNumber = 1, kActionTypeFieldNumber = 2, @@ -16095,72 +19133,93 @@ class SharingLog_CloudDownloadEnd final : int download_infos_size() const; private: int _internal_download_infos_size() const; + public: - void clear_download_infos(); - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* mutable_download_infos(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >* - mutable_download_infos(); + void clear_download_infos() ; + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL mutable_download_infos(int index); + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL mutable_download_infos(); + private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& _internal_download_infos(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _internal_add_download_infos(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& _internal_download_infos() const; + ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL _internal_mutable_download_infos(); public: const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& download_infos(int index) const; - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* add_download_infos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >& - download_infos() const; - + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL add_download_infos(); + const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& download_infos() const; // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; bool has_action_type() const; - private: - bool _internal_has_action_type() const; - public: - void clear_action_type(); + void clear_action_type() ; ::location::nearby::proto::sharing::CloudActionType action_type() const; void set_action_type(::location::nearby::proto::sharing::CloudActionType value); + private: ::location::nearby::proto::sharing::CloudActionType _internal_action_type() const; void _internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo > download_infos_; - int action_type_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudDownloadEnd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo > download_infos_; + int action_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<59> SharingLog_CloudDownloadEnd_class_data_; // ------------------------------------------------------------------- -class SharingLog_CloudSharingRpcResult final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) */ { +class SharingLog_CloudCreateSharingRequest final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) */ { public: - inline SharingLog_CloudSharingRpcResult() : SharingLog_CloudSharingRpcResult(nullptr) {} - ~SharingLog_CloudSharingRpcResult() override; - explicit constexpr SharingLog_CloudSharingRpcResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SharingLog_CloudCreateSharingRequest() : SharingLog_CloudCreateSharingRequest(nullptr) {} + ~SharingLog_CloudCreateSharingRequest() PROTOBUF_FINAL; - SharingLog_CloudSharingRpcResult(const SharingLog_CloudSharingRpcResult& from); - SharingLog_CloudSharingRpcResult(SharingLog_CloudSharingRpcResult&& from) noexcept - : SharingLog_CloudSharingRpcResult() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog_CloudCreateSharingRequest)); } +#endif - inline SharingLog_CloudSharingRpcResult& operator=(const SharingLog_CloudSharingRpcResult& from) { + template + explicit PROTOBUF_CONSTEXPR SharingLog_CloudCreateSharingRequest(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog_CloudCreateSharingRequest(const SharingLog_CloudCreateSharingRequest& from) : SharingLog_CloudCreateSharingRequest(nullptr, from) {} + inline SharingLog_CloudCreateSharingRequest(SharingLog_CloudCreateSharingRequest&& from) noexcept + : SharingLog_CloudCreateSharingRequest(nullptr, ::std::move(from)) {} + inline SharingLog_CloudCreateSharingRequest& operator=(const SharingLog_CloudCreateSharingRequest& from) { CopyFrom(from); return *this; } - inline SharingLog_CloudSharingRpcResult& operator=(SharingLog_CloudSharingRpcResult&& from) noexcept { + inline SharingLog_CloudCreateSharingRequest& operator=(SharingLog_CloudCreateSharingRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -16168,196 +19227,234 @@ class SharingLog_CloudSharingRpcResult final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SharingLog_CloudSharingRpcResult& default_instance() { - return *internal_default_instance(); + static const SharingLog_CloudCreateSharingRequest& default_instance() { + return *reinterpret_cast( + &_SharingLog_CloudCreateSharingRequest_default_instance_); } - static inline const SharingLog_CloudSharingRpcResult* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_CloudSharingRpcResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 90; - - friend void swap(SharingLog_CloudSharingRpcResult& a, SharingLog_CloudSharingRpcResult& b) { - a.Swap(&b); - } - inline void Swap(SharingLog_CloudSharingRpcResult* other) { + static constexpr int kIndexInFileMessages = 84; + friend void swap(SharingLog_CloudCreateSharingRequest& a, SharingLog_CloudCreateSharingRequest& b) { a.Swap(&b); } + inline void Swap(SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog_CloudSharingRpcResult* other) { + void UnsafeArenaSwap(SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog_CloudSharingRpcResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SharingLog_CloudSharingRpcResult& from); - void MergeFrom(const SharingLog_CloudSharingRpcResult& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const SharingLog_CloudCreateSharingRequest& from); + void MergeFrom(const SharingLog_CloudCreateSharingRequest& from) { SharingLog_CloudCreateSharingRequest::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog_CloudSharingRpcResult* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult"; - } - protected: - explicit SharingLog_CloudSharingRpcResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest"; } + + explicit SharingLog_CloudCreateSharingRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog_CloudCreateSharingRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog_CloudCreateSharingRequest& from); + SharingLog_CloudCreateSharingRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog_CloudCreateSharingRequest&& from) noexcept + : SharingLog_CloudCreateSharingRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRpcNameFieldNumber = 1, - kCloudSharingIdFieldNumber = 4, - kLatencyMillisFieldNumber = 3, - kStatusCodeFieldNumber = 2, + kAttachmentsInfoFieldNumber = 1, + kAttachmentDownloadLatencyMillisFieldNumber = 3, + kPreviewThumbnailLatencyMillisFieldNumber = 4, + kRpcLatencyMillisFieldNumber = 5, + kResultFieldNumber = 2, }; - // optional string rpc_name = 1; - bool has_rpc_name() const; - private: - bool _internal_has_rpc_name() const; - public: - void clear_rpc_name(); - const std::string& rpc_name() const; - template - void set_rpc_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_rpc_name(); - PROTOBUF_NODISCARD std::string* release_rpc_name(); - void set_allocated_rpc_name(std::string* rpc_name); - private: - const std::string& _internal_rpc_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_name(const std::string& value); - std::string* _internal_mutable_rpc_name(); - public: + // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; + bool has_attachments_info() const; + void clear_attachments_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& attachments_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE release_attachments_info(); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL mutable_attachments_info(); + void set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE unsafe_arena_release_attachments_info(); - // optional string cloud_sharing_id = 4; - bool has_cloud_sharing_id() const; private: - bool _internal_has_cloud_sharing_id() const; - public: - void clear_cloud_sharing_id(); - const std::string& cloud_sharing_id() const; - template - void set_cloud_sharing_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_cloud_sharing_id(); - PROTOBUF_NODISCARD std::string* release_cloud_sharing_id(); - void set_allocated_cloud_sharing_id(std::string* cloud_sharing_id); - private: - const std::string& _internal_cloud_sharing_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cloud_sharing_id(const std::string& value); - std::string* _internal_mutable_cloud_sharing_id(); - public: + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& _internal_attachments_info() const; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL _internal_mutable_attachments_info(); - // optional int64 latency_millis = 3; - bool has_latency_millis() const; - private: - bool _internal_has_latency_millis() const; - public: - void clear_latency_millis(); - int64_t latency_millis() const; - void set_latency_millis(int64_t value); - private: - int64_t _internal_latency_millis() const; - void _internal_set_latency_millis(int64_t value); public: + // optional int64 attachment_download_latency_millis = 3; + bool has_attachment_download_latency_millis() const; + void clear_attachment_download_latency_millis() ; + ::int64_t attachment_download_latency_millis() const; + void set_attachment_download_latency_millis(::int64_t value); - // optional int32 status_code = 2; - bool has_status_code() const; private: - bool _internal_has_status_code() const; - public: - void clear_status_code(); - int32_t status_code() const; - void set_status_code(int32_t value); - private: - int32_t _internal_status_code() const; - void _internal_set_status_code(int32_t value); - public: + ::int64_t _internal_attachment_download_latency_millis() const; + void _internal_set_attachment_download_latency_millis(::int64_t value); - // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult) + public: + // optional int64 preview_thumbnail_latency_millis = 4; + bool has_preview_thumbnail_latency_millis() const; + void clear_preview_thumbnail_latency_millis() ; + ::int64_t preview_thumbnail_latency_millis() const; + void set_preview_thumbnail_latency_millis(::int64_t value); + + private: + ::int64_t _internal_preview_thumbnail_latency_millis() const; + void _internal_set_preview_thumbnail_latency_millis(::int64_t value); + + public: + // optional int64 rpc_latency_millis = 5; + bool has_rpc_latency_millis() const; + void clear_rpc_latency_millis() ; + ::int64_t rpc_latency_millis() const; + void set_rpc_latency_millis(::int64_t value); + + private: + ::int64_t _internal_rpc_latency_millis() const; + void _internal_set_rpc_latency_millis(::int64_t value); + + public: + // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; + bool has_result() const; + void clear_result() ; + ::location::nearby::proto::sharing::CloudCreateSharingResult result() const; + void set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value); + + private: + ::location::nearby::proto::sharing::CloudCreateSharingResult _internal_result() const; + void _internal_set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value); + + public: + // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rpc_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cloud_sharing_id_; - int64_t latency_millis_; - int32_t status_code_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog_CloudCreateSharingRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE attachments_info_; + ::int64_t attachment_download_latency_millis_; + ::int64_t preview_thumbnail_latency_millis_; + ::int64_t rpc_latency_millis_; + int result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<68> SharingLog_CloudCreateSharingRequest_class_data_; // ------------------------------------------------------------------- -class SharingLog final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog) */ { +class SharingLog final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:nearby.sharing.analytics.proto.SharingLog) */ { public: inline SharingLog() : SharingLog(nullptr) {} - ~SharingLog() override; - explicit constexpr SharingLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SharingLog() PROTOBUF_FINAL; - SharingLog(const SharingLog& from); - SharingLog(SharingLog&& from) noexcept - : SharingLog() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SharingLog* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SharingLog)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SharingLog(::google::protobuf::internal::ConstantInitialized); + + inline SharingLog(const SharingLog& from) : SharingLog(nullptr, from) {} + inline SharingLog(SharingLog&& from) noexcept + : SharingLog(nullptr, ::std::move(from)) {} inline SharingLog& operator=(const SharingLog& from) { CopyFrom(from); return *this; } inline SharingLog& operator=(SharingLog&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -16365,183 +19462,194 @@ class SharingLog final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SharingLog& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SharingLog_default_instance_); } - static inline const SharingLog* internal_default_instance() { - return reinterpret_cast( - &_SharingLog_default_instance_); - } - static constexpr int kIndexInFileMessages = - 91; - - friend void swap(SharingLog& a, SharingLog& b) { - a.Swap(&b); - } - inline void Swap(SharingLog* other) { + static constexpr int kIndexInFileMessages = 91; + friend void swap(SharingLog& a, SharingLog& b) { a.Swap(&b); } + inline void Swap(SharingLog* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharingLog* other) { + void UnsafeArenaSwap(SharingLog* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharingLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SharingLog* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SharingLog& from); - void MergeFrom(const SharingLog& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SharingLog& from) { SharingLog::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SharingLog* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.sharing.analytics.proto.SharingLog"; - } - protected: - explicit SharingLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SharingLog* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "nearby.sharing.analytics.proto.SharingLog"; } + + explicit SharingLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SharingLog(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharingLog& from); + SharingLog( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharingLog&& from) noexcept + : SharingLog(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef SharingLog_AppInfo AppInfo; - typedef SharingLog_DeviceSettings DeviceSettings; - typedef SharingLog_PreferencesUsage PreferencesUsage; - typedef SharingLog_UnknownEvent UnknownEvent; - typedef SharingLog_EstablishConnection EstablishConnection; - typedef SharingLog_AcceptAgreements AcceptAgreements; - typedef SharingLog_DeclineAgreements DeclineAgreements; - typedef SharingLog_EnableNearbySharing EnableNearbySharing; - typedef SharingLog_SetAccount SetAccount; - typedef SharingLog_SetVisibility SetVisibility; - typedef SharingLog_SetDataUsage SetDataUsage; - typedef SharingLog_ScanForShareTargetsStart ScanForShareTargetsStart; - typedef SharingLog_ScanForShareTargetsEnd ScanForShareTargetsEnd; - typedef SharingLog_AdvertiseDevicePresenceStart AdvertiseDevicePresenceStart; - typedef SharingLog_AdvertiseDevicePresenceEnd AdvertiseDevicePresenceEnd; - typedef SharingLog_SendFastInitialization SendFastInitialization; - typedef SharingLog_ReceiveFastInitialization ReceiveFastInitialization; - typedef SharingLog_DismissFastInitialization DismissFastInitialization; - typedef SharingLog_AutoDismissFastInitialization AutoDismissFastInitialization; - typedef SharingLog_EventMetadata EventMetadata; - typedef SharingLog_DiscoverShareTarget DiscoverShareTarget; - typedef SharingLog_ParsingFailedEndpointId ParsingFailedEndpointId; - typedef SharingLog_DescribeAttachments DescribeAttachments; - typedef SharingLog_SendIntroduction SendIntroduction; - typedef SharingLog_ReceiveIntroduction ReceiveIntroduction; - typedef SharingLog_RespondToIntroduction RespondToIntroduction; - typedef SharingLog_SendAttachmentsStart SendAttachmentsStart; - typedef SharingLog_SendAttachmentsEnd SendAttachmentsEnd; - typedef SharingLog_ReceiveAttachmentsStart ReceiveAttachmentsStart; - typedef SharingLog_ReceiveAttachmentsEnd ReceiveAttachmentsEnd; - typedef SharingLog_CancelConnection CancelConnection; - typedef SharingLog_CancelSendingAttachments CancelSendingAttachments; - typedef SharingLog_CancelReceivingAttachments CancelReceivingAttachments; - typedef SharingLog_ProcessReceivedAttachmentsEnd ProcessReceivedAttachmentsEnd; - typedef SharingLog_OpenReceivedAttachments OpenReceivedAttachments; - typedef SharingLog_LaunchSetupActivity LaunchSetupActivity; - typedef SharingLog_AddContact AddContact; - typedef SharingLog_RemoveContact RemoveContact; - typedef SharingLog_FastShareServerResponse FastShareServerResponse; - typedef SharingLog_SendStart SendStart; - typedef SharingLog_AcceptFastInitialization AcceptFastInitialization; - typedef SharingLog_LaunchActivity LaunchActivity; - typedef SharingLog_DismissPrivacyNotification DismissPrivacyNotification; - typedef SharingLog_TapPrivacyNotification TapPrivacyNotification; - typedef SharingLog_TapHelp TapHelp; - typedef SharingLog_TapFeedback TapFeedback; - typedef SharingLog_AddQuickSettingsTile AddQuickSettingsTile; - typedef SharingLog_RemoveQuickSettingsTile RemoveQuickSettingsTile; - typedef SharingLog_LaunchPhoneConsent LaunchPhoneConsent; - typedef SharingLog_DisplayPhoneConsent DisplayPhoneConsent; - typedef SharingLog_TapQuickSettingsTile TapQuickSettingsTile; - typedef SharingLog_TapQuickSettingsFileShare TapQuickSettingsFileShare; - typedef SharingLog_DisplayPrivacyNotification DisplayPrivacyNotification; - typedef SharingLog_DefaultOptIn DefaultOptIn; - typedef SharingLog_SetDeviceName SetDeviceName; - typedef SharingLog_RequestSettingPermissions RequestSettingPermissions; - typedef SharingLog_LaunchConsent LaunchConsent; - typedef SharingLog_InstallAPKStatus InstallAPKStatus; - typedef SharingLog_VerifyAPKStatus VerifyAPKStatus; - typedef SharingLog_ToggleShowNotification ToggleShowNotification; - typedef SharingLog_DecryptCertificateFailure DecryptCertificateFailure; - typedef SharingLog_ShowAllowPermissionAutoAccess ShowAllowPermissionAutoAccess; - typedef SharingLog_TapQrCode TapQrCode; - typedef SharingLog_QrCodeLinkShown QrCodeLinkShown; - typedef SharingLog_FastInitDiscoverDevice FastInitDiscoverDevice; - typedef SharingLog_ShareTargetInfo ShareTargetInfo; - typedef SharingLog_AttachmentsInfo AttachmentsInfo; - typedef SharingLog_TextAttachment TextAttachment; - typedef SharingLog_FileAttachment FileAttachment; - typedef SharingLog_WifiCredentialsAttachment WifiCredentialsAttachment; - typedef SharingLog_AppAttachment AppAttachment; - typedef SharingLog_StreamAttachment StreamAttachment; - typedef SharingLog_CloudAttachmentInfo CloudAttachmentInfo; - typedef SharingLog_AppCrash AppCrash; - typedef SharingLog_SetupWizard SetupWizard; - typedef SharingLog_SendDesktopNotification SendDesktopNotification; - typedef SharingLog_SendDesktopTransferEvent SendDesktopTransferEvent; - typedef SharingLog_ShowWaitingForAccept ShowWaitingForAccept; - typedef SharingLog_HighQualityMediumSetup HighQualityMediumSetup; - typedef SharingLog_RpcCallStatus RpcCallStatus; - typedef SharingLog_StartQrCodeSession StartQrCodeSession; - typedef SharingLog_QrCodeOpenedInWebClient QrCodeOpenedInWebClient; - typedef SharingLog_HatsJointEvent HatsJointEvent; - typedef SharingLog_ReceivePreviews ReceivePreviews; - typedef SharingLog_CloudCreateSharingRequest CloudCreateSharingRequest; - typedef SharingLog_CloudRegisterReceiver CloudRegisterReceiver; - typedef SharingLog_CloudUploadStart CloudUploadStart; - typedef SharingLog_CloudUploadEnd CloudUploadEnd; - typedef SharingLog_CloudDownloadStart CloudDownloadStart; - typedef SharingLog_CloudDownloadEnd CloudDownloadEnd; - typedef SharingLog_CloudSharingRpcResult CloudSharingRpcResult; + using AppInfo = SharingLog_AppInfo; + using DeviceSettings = SharingLog_DeviceSettings; + using PreferencesUsage = SharingLog_PreferencesUsage; + using UnknownEvent = SharingLog_UnknownEvent; + using EstablishConnection = SharingLog_EstablishConnection; + using AcceptAgreements = SharingLog_AcceptAgreements; + using DeclineAgreements = SharingLog_DeclineAgreements; + using EnableNearbySharing = SharingLog_EnableNearbySharing; + using SetAccount = SharingLog_SetAccount; + using SetVisibility = SharingLog_SetVisibility; + using SetDataUsage = SharingLog_SetDataUsage; + using ScanForShareTargetsStart = SharingLog_ScanForShareTargetsStart; + using ScanForShareTargetsEnd = SharingLog_ScanForShareTargetsEnd; + using AdvertiseDevicePresenceStart = SharingLog_AdvertiseDevicePresenceStart; + using AdvertiseDevicePresenceEnd = SharingLog_AdvertiseDevicePresenceEnd; + using SendFastInitialization = SharingLog_SendFastInitialization; + using ReceiveFastInitialization = SharingLog_ReceiveFastInitialization; + using DismissFastInitialization = SharingLog_DismissFastInitialization; + using AutoDismissFastInitialization = SharingLog_AutoDismissFastInitialization; + using EventMetadata = SharingLog_EventMetadata; + using DiscoverShareTarget = SharingLog_DiscoverShareTarget; + using ParsingFailedEndpointId = SharingLog_ParsingFailedEndpointId; + using DescribeAttachments = SharingLog_DescribeAttachments; + using SendIntroduction = SharingLog_SendIntroduction; + using ReceiveIntroduction = SharingLog_ReceiveIntroduction; + using RespondToIntroduction = SharingLog_RespondToIntroduction; + using SendAttachmentsStart = SharingLog_SendAttachmentsStart; + using SendAttachmentsEnd = SharingLog_SendAttachmentsEnd; + using ReceiveAttachmentsStart = SharingLog_ReceiveAttachmentsStart; + using ReceiveAttachmentsEnd = SharingLog_ReceiveAttachmentsEnd; + using CancelConnection = SharingLog_CancelConnection; + using CancelSendingAttachments = SharingLog_CancelSendingAttachments; + using CancelReceivingAttachments = SharingLog_CancelReceivingAttachments; + using ProcessReceivedAttachmentsEnd = SharingLog_ProcessReceivedAttachmentsEnd; + using OpenReceivedAttachments = SharingLog_OpenReceivedAttachments; + using LaunchSetupActivity = SharingLog_LaunchSetupActivity; + using AddContact = SharingLog_AddContact; + using RemoveContact = SharingLog_RemoveContact; + using FastShareServerResponse = SharingLog_FastShareServerResponse; + using SendStart = SharingLog_SendStart; + using AcceptFastInitialization = SharingLog_AcceptFastInitialization; + using LaunchActivity = SharingLog_LaunchActivity; + using DismissPrivacyNotification = SharingLog_DismissPrivacyNotification; + using TapPrivacyNotification = SharingLog_TapPrivacyNotification; + using TapHelp = SharingLog_TapHelp; + using TapFeedback = SharingLog_TapFeedback; + using AddQuickSettingsTile = SharingLog_AddQuickSettingsTile; + using RemoveQuickSettingsTile = SharingLog_RemoveQuickSettingsTile; + using LaunchPhoneConsent = SharingLog_LaunchPhoneConsent; + using DisplayPhoneConsent = SharingLog_DisplayPhoneConsent; + using TapQuickSettingsTile = SharingLog_TapQuickSettingsTile; + using TapQuickSettingsFileShare = SharingLog_TapQuickSettingsFileShare; + using DisplayPrivacyNotification = SharingLog_DisplayPrivacyNotification; + using DefaultOptIn = SharingLog_DefaultOptIn; + using SetDeviceName = SharingLog_SetDeviceName; + using RequestSettingPermissions = SharingLog_RequestSettingPermissions; + using LaunchConsent = SharingLog_LaunchConsent; + using InstallAPKStatus = SharingLog_InstallAPKStatus; + using VerifyAPKStatus = SharingLog_VerifyAPKStatus; + using ToggleShowNotification = SharingLog_ToggleShowNotification; + using DecryptCertificateFailure = SharingLog_DecryptCertificateFailure; + using ShowAllowPermissionAutoAccess = SharingLog_ShowAllowPermissionAutoAccess; + using TapQrCode = SharingLog_TapQrCode; + using QrCodeLinkShown = SharingLog_QrCodeLinkShown; + using FastInitDiscoverDevice = SharingLog_FastInitDiscoverDevice; + using ShareTargetInfo = SharingLog_ShareTargetInfo; + using AttachmentsInfo = SharingLog_AttachmentsInfo; + using TextAttachment = SharingLog_TextAttachment; + using FileAttachment = SharingLog_FileAttachment; + using WifiCredentialsAttachment = SharingLog_WifiCredentialsAttachment; + using AppAttachment = SharingLog_AppAttachment; + using StreamAttachment = SharingLog_StreamAttachment; + using CloudAttachmentInfo = SharingLog_CloudAttachmentInfo; + using AppCrash = SharingLog_AppCrash; + using SetupWizard = SharingLog_SetupWizard; + using SendDesktopNotification = SharingLog_SendDesktopNotification; + using SendDesktopTransferEvent = SharingLog_SendDesktopTransferEvent; + using ShowWaitingForAccept = SharingLog_ShowWaitingForAccept; + using HighQualityMediumSetup = SharingLog_HighQualityMediumSetup; + using RpcCallStatus = SharingLog_RpcCallStatus; + using StartQrCodeSession = SharingLog_StartQrCodeSession; + using QrCodeOpenedInWebClient = SharingLog_QrCodeOpenedInWebClient; + using HatsJointEvent = SharingLog_HatsJointEvent; + using ReceivePreviews = SharingLog_ReceivePreviews; + using CloudCreateSharingRequest = SharingLog_CloudCreateSharingRequest; + using CloudRegisterReceiver = SharingLog_CloudRegisterReceiver; + using CloudUploadStart = SharingLog_CloudUploadStart; + using CloudUploadEnd = SharingLog_CloudUploadEnd; + using CloudDownloadStart = SharingLog_CloudDownloadStart; + using CloudDownloadEnd = SharingLog_CloudDownloadEnd; + using CloudSharingRpcResult = SharingLog_CloudSharingRpcResult; // accessors ------------------------------------------------------- - enum : int { - kVersionFieldNumber = 32, - kFilesMigrationPhaseFieldNumber = 50, - kAppVersionFieldNumber = 57, kUnknownEventFieldNumber = 2, kAcceptAgreementsFieldNumber = 3, kEnableNearbySharingFieldNumber = 4, @@ -16571,6 +19679,11 @@ class SharingLog final : kSendStartFieldNumber = 29, kAcceptFastInitializationFieldNumber = 30, kSetDataUsageFieldNumber = 31, + kEventTypeFieldNumber = 1, + kLogSourceFieldNumber = 27, + kVersionFieldNumber = 32, + kFilesMigrationPhaseFieldNumber = 50, + kAppVersionFieldNumber = 57, kDismissFastInitializationFieldNumber = 34, kCancelConnectionFieldNumber = 35, kDismissPrivacyNotificationFieldNumber = 36, @@ -16624,1893 +19737,1661 @@ class SharingLog final : kCloudDownloadStartFieldNumber = 87, kCloudDownloadEndFieldNumber = 88, kCloudSharingRpcResultFieldNumber = 89, - kEventTypeFieldNumber = 1, - kLogSourceFieldNumber = 27, kEventCategoryFieldNumber = 33, }; - // optional string version = 32; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - const std::string& version() const; - template - void set_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: - - // optional string files_migration_phase = 50; - bool has_files_migration_phase() const; - private: - bool _internal_has_files_migration_phase() const; - public: - void clear_files_migration_phase(); - const std::string& files_migration_phase() const; - template - void set_files_migration_phase(ArgT0&& arg0, ArgT... args); - std::string* mutable_files_migration_phase(); - PROTOBUF_NODISCARD std::string* release_files_migration_phase(); - void set_allocated_files_migration_phase(std::string* files_migration_phase); - private: - const std::string& _internal_files_migration_phase() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_files_migration_phase(const std::string& value); - std::string* _internal_mutable_files_migration_phase(); - public: - - // optional string app_version = 57 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_app_version() const; - private: - bool _internal_has_app_version() const; - public: - PROTOBUF_DEPRECATED void clear_app_version(); - PROTOBUF_DEPRECATED const std::string& app_version() const; - template - PROTOBUF_DEPRECATED void set_app_version(ArgT0&& arg0, ArgT... args); - PROTOBUF_DEPRECATED std::string* mutable_app_version(); - PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_app_version(); - PROTOBUF_DEPRECATED void set_allocated_app_version(std::string* app_version); - private: - const std::string& _internal_app_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_app_version(const std::string& value); - std::string* _internal_mutable_app_version(); - public: - // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; bool has_unknown_event() const; - private: - bool _internal_has_unknown_event() const; - public: - void clear_unknown_event(); + void clear_unknown_event() ; const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& unknown_event() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* release_unknown_event(); - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* mutable_unknown_event(); - void set_allocated_unknown_event(::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unknown_event); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE release_unknown_event(); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NONNULL mutable_unknown_event(); + void set_allocated_unknown_event(::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_unknown_event(::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE unsafe_arena_release_unknown_event(); + private: const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& _internal_unknown_event() const; - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* _internal_mutable_unknown_event(); - public: - void unsafe_arena_set_allocated_unknown_event( - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unknown_event); - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unsafe_arena_release_unknown_event(); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NONNULL _internal_mutable_unknown_event(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; bool has_accept_agreements() const; - private: - bool _internal_has_accept_agreements() const; - public: - void clear_accept_agreements(); + void clear_accept_agreements() ; const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& accept_agreements() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* release_accept_agreements(); - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* mutable_accept_agreements(); - void set_allocated_accept_agreements(::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* accept_agreements); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE release_accept_agreements(); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NONNULL mutable_accept_agreements(); + void set_allocated_accept_agreements(::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_accept_agreements(::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE unsafe_arena_release_accept_agreements(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& _internal_accept_agreements() const; - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* _internal_mutable_accept_agreements(); - public: - void unsafe_arena_set_allocated_accept_agreements( - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* accept_agreements); - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* unsafe_arena_release_accept_agreements(); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NONNULL _internal_mutable_accept_agreements(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; bool has_enable_nearby_sharing() const; - private: - bool _internal_has_enable_nearby_sharing() const; - public: - void clear_enable_nearby_sharing(); + void clear_enable_nearby_sharing() ; const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& enable_nearby_sharing() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* release_enable_nearby_sharing(); - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* mutable_enable_nearby_sharing(); - void set_allocated_enable_nearby_sharing(::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* enable_nearby_sharing); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE release_enable_nearby_sharing(); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NONNULL mutable_enable_nearby_sharing(); + void set_allocated_enable_nearby_sharing(::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_enable_nearby_sharing(::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE unsafe_arena_release_enable_nearby_sharing(); + private: const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& _internal_enable_nearby_sharing() const; - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* _internal_mutable_enable_nearby_sharing(); - public: - void unsafe_arena_set_allocated_enable_nearby_sharing( - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* enable_nearby_sharing); - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* unsafe_arena_release_enable_nearby_sharing(); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NONNULL _internal_mutable_enable_nearby_sharing(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; bool has_set_visibility() const; - private: - bool _internal_has_set_visibility() const; - public: - void clear_set_visibility(); + void clear_set_visibility() ; const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& set_visibility() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* release_set_visibility(); - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* mutable_set_visibility(); - void set_allocated_set_visibility(::nearby::sharing::analytics::proto::SharingLog_SetVisibility* set_visibility); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE release_set_visibility(); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NONNULL mutable_set_visibility(); + void set_allocated_set_visibility(::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_set_visibility(::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE unsafe_arena_release_set_visibility(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& _internal_set_visibility() const; - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* _internal_mutable_set_visibility(); - public: - void unsafe_arena_set_allocated_set_visibility( - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* set_visibility); - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* unsafe_arena_release_set_visibility(); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NONNULL _internal_mutable_set_visibility(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; bool has_describe_attachments() const; - private: - bool _internal_has_describe_attachments() const; - public: - void clear_describe_attachments(); + void clear_describe_attachments() ; const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& describe_attachments() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* release_describe_attachments(); - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* mutable_describe_attachments(); - void set_allocated_describe_attachments(::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* describe_attachments); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE release_describe_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NONNULL mutable_describe_attachments(); + void set_allocated_describe_attachments(::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_describe_attachments(::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE unsafe_arena_release_describe_attachments(); + private: const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& _internal_describe_attachments() const; - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* _internal_mutable_describe_attachments(); - public: - void unsafe_arena_set_allocated_describe_attachments( - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* describe_attachments); - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* unsafe_arena_release_describe_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NONNULL _internal_mutable_describe_attachments(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; bool has_scan_for_share_targets_start() const; - private: - bool _internal_has_scan_for_share_targets_start() const; - public: - void clear_scan_for_share_targets_start(); + void clear_scan_for_share_targets_start() ; const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& scan_for_share_targets_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* release_scan_for_share_targets_start(); - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* mutable_scan_for_share_targets_start(); - void set_allocated_scan_for_share_targets_start(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* scan_for_share_targets_start); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE release_scan_for_share_targets_start(); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL mutable_scan_for_share_targets_start(); + void set_allocated_scan_for_share_targets_start(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_scan_for_share_targets_start(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE unsafe_arena_release_scan_for_share_targets_start(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& _internal_scan_for_share_targets_start() const; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* _internal_mutable_scan_for_share_targets_start(); - public: - void unsafe_arena_set_allocated_scan_for_share_targets_start( - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* scan_for_share_targets_start); - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* unsafe_arena_release_scan_for_share_targets_start(); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL _internal_mutable_scan_for_share_targets_start(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; bool has_scan_for_share_targets_end() const; - private: - bool _internal_has_scan_for_share_targets_end() const; - public: - void clear_scan_for_share_targets_end(); + void clear_scan_for_share_targets_end() ; const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& scan_for_share_targets_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* release_scan_for_share_targets_end(); - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* mutable_scan_for_share_targets_end(); - void set_allocated_scan_for_share_targets_end(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* scan_for_share_targets_end); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE release_scan_for_share_targets_end(); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL mutable_scan_for_share_targets_end(); + void set_allocated_scan_for_share_targets_end(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_scan_for_share_targets_end(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE unsafe_arena_release_scan_for_share_targets_end(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& _internal_scan_for_share_targets_end() const; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* _internal_mutable_scan_for_share_targets_end(); - public: - void unsafe_arena_set_allocated_scan_for_share_targets_end( - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* scan_for_share_targets_end); - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* unsafe_arena_release_scan_for_share_targets_end(); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL _internal_mutable_scan_for_share_targets_end(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; bool has_advertise_device_presence_start() const; - private: - bool _internal_has_advertise_device_presence_start() const; - public: - void clear_advertise_device_presence_start(); + void clear_advertise_device_presence_start() ; const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& advertise_device_presence_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* release_advertise_device_presence_start(); - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* mutable_advertise_device_presence_start(); - void set_allocated_advertise_device_presence_start(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* advertise_device_presence_start); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE release_advertise_device_presence_start(); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL mutable_advertise_device_presence_start(); + void set_allocated_advertise_device_presence_start(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_advertise_device_presence_start(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE unsafe_arena_release_advertise_device_presence_start(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& _internal_advertise_device_presence_start() const; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* _internal_mutable_advertise_device_presence_start(); - public: - void unsafe_arena_set_allocated_advertise_device_presence_start( - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* advertise_device_presence_start); - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* unsafe_arena_release_advertise_device_presence_start(); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL _internal_mutable_advertise_device_presence_start(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; bool has_advertise_device_presence_end() const; - private: - bool _internal_has_advertise_device_presence_end() const; - public: - void clear_advertise_device_presence_end(); + void clear_advertise_device_presence_end() ; const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& advertise_device_presence_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* release_advertise_device_presence_end(); - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* mutable_advertise_device_presence_end(); - void set_allocated_advertise_device_presence_end(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* advertise_device_presence_end); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE release_advertise_device_presence_end(); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL mutable_advertise_device_presence_end(); + void set_allocated_advertise_device_presence_end(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_advertise_device_presence_end(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE unsafe_arena_release_advertise_device_presence_end(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& _internal_advertise_device_presence_end() const; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* _internal_mutable_advertise_device_presence_end(); - public: - void unsafe_arena_set_allocated_advertise_device_presence_end( - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* advertise_device_presence_end); - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* unsafe_arena_release_advertise_device_presence_end(); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL _internal_mutable_advertise_device_presence_end(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; bool has_send_initialization() const; - private: - bool _internal_has_send_initialization() const; - public: - void clear_send_initialization(); + void clear_send_initialization() ; const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& send_initialization() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* release_send_initialization(); - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* mutable_send_initialization(); - void set_allocated_send_initialization(::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* send_initialization); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE release_send_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NONNULL mutable_send_initialization(); + void set_allocated_send_initialization(::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_initialization(::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE unsafe_arena_release_send_initialization(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& _internal_send_initialization() const; - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* _internal_mutable_send_initialization(); - public: - void unsafe_arena_set_allocated_send_initialization( - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* send_initialization); - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* unsafe_arena_release_send_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NONNULL _internal_mutable_send_initialization(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; bool has_receive_initialization() const; - private: - bool _internal_has_receive_initialization() const; - public: - void clear_receive_initialization(); + void clear_receive_initialization() ; const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& receive_initialization() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* release_receive_initialization(); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* mutable_receive_initialization(); - void set_allocated_receive_initialization(::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* receive_initialization); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE release_receive_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL mutable_receive_initialization(); + void set_allocated_receive_initialization(::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receive_initialization(::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE unsafe_arena_release_receive_initialization(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& _internal_receive_initialization() const; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* _internal_mutable_receive_initialization(); - public: - void unsafe_arena_set_allocated_receive_initialization( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* receive_initialization); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* unsafe_arena_release_receive_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL _internal_mutable_receive_initialization(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; bool has_discover_share_target() const; - private: - bool _internal_has_discover_share_target() const; - public: - void clear_discover_share_target(); + void clear_discover_share_target() ; const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& discover_share_target() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* release_discover_share_target(); - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* mutable_discover_share_target(); - void set_allocated_discover_share_target(::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* discover_share_target); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE release_discover_share_target(); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL mutable_discover_share_target(); + void set_allocated_discover_share_target(::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_discover_share_target(::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE unsafe_arena_release_discover_share_target(); + private: const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& _internal_discover_share_target() const; - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* _internal_mutable_discover_share_target(); - public: - void unsafe_arena_set_allocated_discover_share_target( - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* discover_share_target); - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* unsafe_arena_release_discover_share_target(); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL _internal_mutable_discover_share_target(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; bool has_send_introduction() const; - private: - bool _internal_has_send_introduction() const; - public: - void clear_send_introduction(); + void clear_send_introduction() ; const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& send_introduction() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* release_send_introduction(); - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* mutable_send_introduction(); - void set_allocated_send_introduction(::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* send_introduction); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE release_send_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NONNULL mutable_send_introduction(); + void set_allocated_send_introduction(::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_introduction(::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE unsafe_arena_release_send_introduction(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& _internal_send_introduction() const; - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* _internal_mutable_send_introduction(); - public: - void unsafe_arena_set_allocated_send_introduction( - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* send_introduction); - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* unsafe_arena_release_send_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NONNULL _internal_mutable_send_introduction(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; bool has_receive_introduction() const; - private: - bool _internal_has_receive_introduction() const; - public: - void clear_receive_introduction(); + void clear_receive_introduction() ; const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& receive_introduction() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* release_receive_introduction(); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* mutable_receive_introduction(); - void set_allocated_receive_introduction(::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* receive_introduction); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE release_receive_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL mutable_receive_introduction(); + void set_allocated_receive_introduction(::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receive_introduction(::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE unsafe_arena_release_receive_introduction(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& _internal_receive_introduction() const; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* _internal_mutable_receive_introduction(); - public: - void unsafe_arena_set_allocated_receive_introduction( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* receive_introduction); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* unsafe_arena_release_receive_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL _internal_mutable_receive_introduction(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; bool has_respond_introduction() const; - private: - bool _internal_has_respond_introduction() const; - public: - void clear_respond_introduction(); + void clear_respond_introduction() ; const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& respond_introduction() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* release_respond_introduction(); - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* mutable_respond_introduction(); - void set_allocated_respond_introduction(::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* respond_introduction); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE release_respond_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NONNULL mutable_respond_introduction(); + void set_allocated_respond_introduction(::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_respond_introduction(::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE unsafe_arena_release_respond_introduction(); + private: const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& _internal_respond_introduction() const; - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* _internal_mutable_respond_introduction(); - public: - void unsafe_arena_set_allocated_respond_introduction( - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* respond_introduction); - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* unsafe_arena_release_respond_introduction(); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NONNULL _internal_mutable_respond_introduction(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; bool has_send_attachments_start() const; - private: - bool _internal_has_send_attachments_start() const; - public: - void clear_send_attachments_start(); + void clear_send_attachments_start() ; const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& send_attachments_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* release_send_attachments_start(); - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* mutable_send_attachments_start(); - void set_allocated_send_attachments_start(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* send_attachments_start); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE release_send_attachments_start(); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL mutable_send_attachments_start(); + void set_allocated_send_attachments_start(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_attachments_start(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE unsafe_arena_release_send_attachments_start(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& _internal_send_attachments_start() const; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* _internal_mutable_send_attachments_start(); - public: - void unsafe_arena_set_allocated_send_attachments_start( - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* send_attachments_start); - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* unsafe_arena_release_send_attachments_start(); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL _internal_mutable_send_attachments_start(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; bool has_send_attachments_end() const; - private: - bool _internal_has_send_attachments_end() const; - public: - void clear_send_attachments_end(); + void clear_send_attachments_end() ; const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& send_attachments_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* release_send_attachments_end(); - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* mutable_send_attachments_end(); - void set_allocated_send_attachments_end(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* send_attachments_end); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE release_send_attachments_end(); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL mutable_send_attachments_end(); + void set_allocated_send_attachments_end(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_attachments_end(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE unsafe_arena_release_send_attachments_end(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& _internal_send_attachments_end() const; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* _internal_mutable_send_attachments_end(); - public: - void unsafe_arena_set_allocated_send_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* send_attachments_end); - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* unsafe_arena_release_send_attachments_end(); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL _internal_mutable_send_attachments_end(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; bool has_receive_attachments_start() const; - private: - bool _internal_has_receive_attachments_start() const; - public: - void clear_receive_attachments_start(); + void clear_receive_attachments_start() ; const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& receive_attachments_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* release_receive_attachments_start(); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* mutable_receive_attachments_start(); - void set_allocated_receive_attachments_start(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* receive_attachments_start); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE release_receive_attachments_start(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL mutable_receive_attachments_start(); + void set_allocated_receive_attachments_start(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receive_attachments_start(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE unsafe_arena_release_receive_attachments_start(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& _internal_receive_attachments_start() const; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* _internal_mutable_receive_attachments_start(); - public: - void unsafe_arena_set_allocated_receive_attachments_start( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* receive_attachments_start); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* unsafe_arena_release_receive_attachments_start(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL _internal_mutable_receive_attachments_start(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; bool has_receive_attachments_end() const; - private: - bool _internal_has_receive_attachments_end() const; - public: - void clear_receive_attachments_end(); + void clear_receive_attachments_end() ; const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& receive_attachments_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* release_receive_attachments_end(); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* mutable_receive_attachments_end(); - void set_allocated_receive_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* receive_attachments_end); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE release_receive_attachments_end(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL mutable_receive_attachments_end(); + void set_allocated_receive_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receive_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE unsafe_arena_release_receive_attachments_end(); + private: const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& _internal_receive_attachments_end() const; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* _internal_mutable_receive_attachments_end(); - public: - void unsafe_arena_set_allocated_receive_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* receive_attachments_end); - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* unsafe_arena_release_receive_attachments_end(); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL _internal_mutable_receive_attachments_end(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; bool has_cancel_sending_attachments() const; - private: - bool _internal_has_cancel_sending_attachments() const; - public: - void clear_cancel_sending_attachments(); + void clear_cancel_sending_attachments() ; const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& cancel_sending_attachments() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* release_cancel_sending_attachments(); - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* mutable_cancel_sending_attachments(); - void set_allocated_cancel_sending_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* cancel_sending_attachments); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE release_cancel_sending_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL mutable_cancel_sending_attachments(); + void set_allocated_cancel_sending_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cancel_sending_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE unsafe_arena_release_cancel_sending_attachments(); + private: const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& _internal_cancel_sending_attachments() const; - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* _internal_mutable_cancel_sending_attachments(); - public: - void unsafe_arena_set_allocated_cancel_sending_attachments( - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* cancel_sending_attachments); - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* unsafe_arena_release_cancel_sending_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL _internal_mutable_cancel_sending_attachments(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; bool has_cancel_receiving_attachments() const; - private: - bool _internal_has_cancel_receiving_attachments() const; - public: - void clear_cancel_receiving_attachments(); + void clear_cancel_receiving_attachments() ; const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& cancel_receiving_attachments() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* release_cancel_receiving_attachments(); - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* mutable_cancel_receiving_attachments(); - void set_allocated_cancel_receiving_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* cancel_receiving_attachments); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE release_cancel_receiving_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL mutable_cancel_receiving_attachments(); + void set_allocated_cancel_receiving_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cancel_receiving_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE unsafe_arena_release_cancel_receiving_attachments(); + private: const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& _internal_cancel_receiving_attachments() const; - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* _internal_mutable_cancel_receiving_attachments(); - public: - void unsafe_arena_set_allocated_cancel_receiving_attachments( - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* cancel_receiving_attachments); - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* unsafe_arena_release_cancel_receiving_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL _internal_mutable_cancel_receiving_attachments(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; bool has_open_received_attachments() const; - private: - bool _internal_has_open_received_attachments() const; - public: - void clear_open_received_attachments(); + void clear_open_received_attachments() ; const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& open_received_attachments() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* release_open_received_attachments(); - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* mutable_open_received_attachments(); - void set_allocated_open_received_attachments(::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* open_received_attachments); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE release_open_received_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL mutable_open_received_attachments(); + void set_allocated_open_received_attachments(::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_open_received_attachments(::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE unsafe_arena_release_open_received_attachments(); + private: const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& _internal_open_received_attachments() const; - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* _internal_mutable_open_received_attachments(); - public: - void unsafe_arena_set_allocated_open_received_attachments( - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* open_received_attachments); - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* unsafe_arena_release_open_received_attachments(); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL _internal_mutable_open_received_attachments(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; bool has_launch_activity() const; - private: - bool _internal_has_launch_activity() const; - public: - void clear_launch_activity(); + void clear_launch_activity() ; const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& launch_activity() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* release_launch_activity(); - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* mutable_launch_activity(); - void set_allocated_launch_activity(::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* launch_activity); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE release_launch_activity(); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NONNULL mutable_launch_activity(); + void set_allocated_launch_activity(::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_launch_activity(::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE unsafe_arena_release_launch_activity(); + private: const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& _internal_launch_activity() const; - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* _internal_mutable_launch_activity(); - public: - void unsafe_arena_set_allocated_launch_activity( - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* launch_activity); - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* unsafe_arena_release_launch_activity(); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NONNULL _internal_mutable_launch_activity(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; bool has_add_contact() const; - private: - bool _internal_has_add_contact() const; - public: - void clear_add_contact(); + void clear_add_contact() ; const ::nearby::sharing::analytics::proto::SharingLog_AddContact& add_contact() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AddContact* release_add_contact(); - ::nearby::sharing::analytics::proto::SharingLog_AddContact* mutable_add_contact(); - void set_allocated_add_contact(::nearby::sharing::analytics::proto::SharingLog_AddContact* add_contact); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE release_add_contact(); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NONNULL mutable_add_contact(); + void set_allocated_add_contact(::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_add_contact(::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE unsafe_arena_release_add_contact(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AddContact& _internal_add_contact() const; - ::nearby::sharing::analytics::proto::SharingLog_AddContact* _internal_mutable_add_contact(); - public: - void unsafe_arena_set_allocated_add_contact( - ::nearby::sharing::analytics::proto::SharingLog_AddContact* add_contact); - ::nearby::sharing::analytics::proto::SharingLog_AddContact* unsafe_arena_release_add_contact(); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NONNULL _internal_mutable_add_contact(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; bool has_remove_contact() const; - private: - bool _internal_has_remove_contact() const; - public: - void clear_remove_contact(); + void clear_remove_contact() ; const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& remove_contact() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* release_remove_contact(); - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* mutable_remove_contact(); - void set_allocated_remove_contact(::nearby::sharing::analytics::proto::SharingLog_RemoveContact* remove_contact); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE release_remove_contact(); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NONNULL mutable_remove_contact(); + void set_allocated_remove_contact(::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_contact(::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE unsafe_arena_release_remove_contact(); + private: const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& _internal_remove_contact() const; - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* _internal_mutable_remove_contact(); - public: - void unsafe_arena_set_allocated_remove_contact( - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* remove_contact); - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* unsafe_arena_release_remove_contact(); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NONNULL _internal_mutable_remove_contact(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; bool has_fast_share_server_response() const; - private: - bool _internal_has_fast_share_server_response() const; - public: - void clear_fast_share_server_response(); + void clear_fast_share_server_response() ; const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& fast_share_server_response() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* release_fast_share_server_response(); - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* mutable_fast_share_server_response(); - void set_allocated_fast_share_server_response(::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* fast_share_server_response); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE release_fast_share_server_response(); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NONNULL mutable_fast_share_server_response(); + void set_allocated_fast_share_server_response(::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_fast_share_server_response(::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE unsafe_arena_release_fast_share_server_response(); + private: const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& _internal_fast_share_server_response() const; - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* _internal_mutable_fast_share_server_response(); - public: - void unsafe_arena_set_allocated_fast_share_server_response( - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* fast_share_server_response); - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* unsafe_arena_release_fast_share_server_response(); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NONNULL _internal_mutable_fast_share_server_response(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; bool has_send_start() const; - private: - bool _internal_has_send_start() const; - public: - void clear_send_start(); + void clear_send_start() ; const ::nearby::sharing::analytics::proto::SharingLog_SendStart& send_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendStart* release_send_start(); - ::nearby::sharing::analytics::proto::SharingLog_SendStart* mutable_send_start(); - void set_allocated_send_start(::nearby::sharing::analytics::proto::SharingLog_SendStart* send_start); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE release_send_start(); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NONNULL mutable_send_start(); + void set_allocated_send_start(::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_start(::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE unsafe_arena_release_send_start(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SendStart& _internal_send_start() const; - ::nearby::sharing::analytics::proto::SharingLog_SendStart* _internal_mutable_send_start(); - public: - void unsafe_arena_set_allocated_send_start( - ::nearby::sharing::analytics::proto::SharingLog_SendStart* send_start); - ::nearby::sharing::analytics::proto::SharingLog_SendStart* unsafe_arena_release_send_start(); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NONNULL _internal_mutable_send_start(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; bool has_accept_fast_initialization() const; - private: - bool _internal_has_accept_fast_initialization() const; - public: - void clear_accept_fast_initialization(); + void clear_accept_fast_initialization() ; const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& accept_fast_initialization() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* release_accept_fast_initialization(); - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* mutable_accept_fast_initialization(); - void set_allocated_accept_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* accept_fast_initialization); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE release_accept_fast_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL mutable_accept_fast_initialization(); + void set_allocated_accept_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_accept_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE unsafe_arena_release_accept_fast_initialization(); + private: const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& _internal_accept_fast_initialization() const; - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* _internal_mutable_accept_fast_initialization(); - public: - void unsafe_arena_set_allocated_accept_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* accept_fast_initialization); - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* unsafe_arena_release_accept_fast_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL _internal_mutable_accept_fast_initialization(); + public: // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; bool has_set_data_usage() const; - private: - bool _internal_has_set_data_usage() const; - public: - void clear_set_data_usage(); + void clear_set_data_usage() ; const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& set_data_usage() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* release_set_data_usage(); - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* mutable_set_data_usage(); - void set_allocated_set_data_usage(::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* set_data_usage); + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE release_set_data_usage(); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NONNULL mutable_set_data_usage(); + void set_allocated_set_data_usage(::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_set_data_usage(::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE unsafe_arena_release_set_data_usage(); + private: const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& _internal_set_data_usage() const; - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* _internal_mutable_set_data_usage(); - public: - void unsafe_arena_set_allocated_set_data_usage( - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* set_data_usage); - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* unsafe_arena_release_set_data_usage(); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NONNULL _internal_mutable_set_data_usage(); - // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; - bool has_dismiss_fast_initialization() const; - private: - bool _internal_has_dismiss_fast_initialization() const; public: - void clear_dismiss_fast_initialization(); - const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& dismiss_fast_initialization() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* release_dismiss_fast_initialization(); - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* mutable_dismiss_fast_initialization(); - void set_allocated_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* dismiss_fast_initialization); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& _internal_dismiss_fast_initialization() const; - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* _internal_mutable_dismiss_fast_initialization(); - public: - void unsafe_arena_set_allocated_dismiss_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* dismiss_fast_initialization); - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* unsafe_arena_release_dismiss_fast_initialization(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; - bool has_cancel_connection() const; - private: - bool _internal_has_cancel_connection() const; - public: - void clear_cancel_connection(); - const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& cancel_connection() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* release_cancel_connection(); - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* mutable_cancel_connection(); - void set_allocated_cancel_connection(::nearby::sharing::analytics::proto::SharingLog_CancelConnection* cancel_connection); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& _internal_cancel_connection() const; - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* _internal_mutable_cancel_connection(); - public: - void unsafe_arena_set_allocated_cancel_connection( - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* cancel_connection); - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* unsafe_arena_release_cancel_connection(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; - bool has_dismiss_privacy_notification() const; - private: - bool _internal_has_dismiss_privacy_notification() const; - public: - void clear_dismiss_privacy_notification(); - const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& dismiss_privacy_notification() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* release_dismiss_privacy_notification(); - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* mutable_dismiss_privacy_notification(); - void set_allocated_dismiss_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* dismiss_privacy_notification); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& _internal_dismiss_privacy_notification() const; - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* _internal_mutable_dismiss_privacy_notification(); - public: - void unsafe_arena_set_allocated_dismiss_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* dismiss_privacy_notification); - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* unsafe_arena_release_dismiss_privacy_notification(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; - bool has_tap_privacy_notification() const; - private: - bool _internal_has_tap_privacy_notification() const; - public: - void clear_tap_privacy_notification(); - const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& tap_privacy_notification() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* release_tap_privacy_notification(); - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* mutable_tap_privacy_notification(); - void set_allocated_tap_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* tap_privacy_notification); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& _internal_tap_privacy_notification() const; - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* _internal_mutable_tap_privacy_notification(); - public: - void unsafe_arena_set_allocated_tap_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* tap_privacy_notification); - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* unsafe_arena_release_tap_privacy_notification(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; - bool has_tap_help() const; - private: - bool _internal_has_tap_help() const; - public: - void clear_tap_help(); - const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& tap_help() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapHelp* release_tap_help(); - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* mutable_tap_help(); - void set_allocated_tap_help(::nearby::sharing::analytics::proto::SharingLog_TapHelp* tap_help); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& _internal_tap_help() const; - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* _internal_mutable_tap_help(); - public: - void unsafe_arena_set_allocated_tap_help( - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* tap_help); - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* unsafe_arena_release_tap_help(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; - bool has_tap_feedback() const; - private: - bool _internal_has_tap_feedback() const; - public: - void clear_tap_feedback(); - const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& tap_feedback() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* release_tap_feedback(); - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* mutable_tap_feedback(); - void set_allocated_tap_feedback(::nearby::sharing::analytics::proto::SharingLog_TapFeedback* tap_feedback); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& _internal_tap_feedback() const; - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* _internal_mutable_tap_feedback(); - public: - void unsafe_arena_set_allocated_tap_feedback( - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* tap_feedback); - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* unsafe_arena_release_tap_feedback(); - - // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; - bool has_add_quick_settings_tile() const; - private: - bool _internal_has_add_quick_settings_tile() const; - public: - void clear_add_quick_settings_tile(); - const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& add_quick_settings_tile() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* release_add_quick_settings_tile(); - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* mutable_add_quick_settings_tile(); - void set_allocated_add_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* add_quick_settings_tile); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& _internal_add_quick_settings_tile() const; - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* _internal_mutable_add_quick_settings_tile(); - public: - void unsafe_arena_set_allocated_add_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* add_quick_settings_tile); - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* unsafe_arena_release_add_quick_settings_tile(); - - // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; - bool has_remove_quick_settings_tile() const; - private: - bool _internal_has_remove_quick_settings_tile() const; - public: - void clear_remove_quick_settings_tile(); - const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& remove_quick_settings_tile() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* release_remove_quick_settings_tile(); - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* mutable_remove_quick_settings_tile(); - void set_allocated_remove_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* remove_quick_settings_tile); - private: - const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& _internal_remove_quick_settings_tile() const; - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* _internal_mutable_remove_quick_settings_tile(); - public: - void unsafe_arena_set_allocated_remove_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* remove_quick_settings_tile); - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* unsafe_arena_release_remove_quick_settings_tile(); - - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; - bool has_launch_phone_consent() const; - private: - bool _internal_has_launch_phone_consent() const; - public: - void clear_launch_phone_consent(); - const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& launch_phone_consent() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* release_launch_phone_consent(); - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* mutable_launch_phone_consent(); - void set_allocated_launch_phone_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* launch_phone_consent); - private: - const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& _internal_launch_phone_consent() const; - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* _internal_mutable_launch_phone_consent(); - public: - void unsafe_arena_set_allocated_launch_phone_consent( - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* launch_phone_consent); - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* unsafe_arena_release_launch_phone_consent(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; - bool has_tap_quick_settings_tile() const; - private: - bool _internal_has_tap_quick_settings_tile() const; - public: - void clear_tap_quick_settings_tile(); - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& tap_quick_settings_tile() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* release_tap_quick_settings_tile(); - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* mutable_tap_quick_settings_tile(); - void set_allocated_tap_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* tap_quick_settings_tile); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& _internal_tap_quick_settings_tile() const; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* _internal_mutable_tap_quick_settings_tile(); - public: - void unsafe_arena_set_allocated_tap_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* tap_quick_settings_tile); - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* unsafe_arena_release_tap_quick_settings_tile(); - - // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; - bool has_install_apk_status() const; - private: - bool _internal_has_install_apk_status() const; - public: - void clear_install_apk_status(); - const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& install_apk_status() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* release_install_apk_status(); - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* mutable_install_apk_status(); - void set_allocated_install_apk_status(::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* install_apk_status); - private: - const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& _internal_install_apk_status() const; - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* _internal_mutable_install_apk_status(); - public: - void unsafe_arena_set_allocated_install_apk_status( - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* install_apk_status); - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* unsafe_arena_release_install_apk_status(); - - // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; - bool has_verify_apk_status() const; - private: - bool _internal_has_verify_apk_status() const; - public: - void clear_verify_apk_status(); - const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& verify_apk_status() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* release_verify_apk_status(); - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* mutable_verify_apk_status(); - void set_allocated_verify_apk_status(::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* verify_apk_status); - private: - const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& _internal_verify_apk_status() const; - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* _internal_mutable_verify_apk_status(); - public: - void unsafe_arena_set_allocated_verify_apk_status( - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* verify_apk_status); - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* unsafe_arena_release_verify_apk_status(); - - // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; - bool has_launch_consent() const; - private: - bool _internal_has_launch_consent() const; - public: - void clear_launch_consent(); - const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& launch_consent() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* release_launch_consent(); - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* mutable_launch_consent(); - void set_allocated_launch_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* launch_consent); - private: - const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& _internal_launch_consent() const; - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* _internal_mutable_launch_consent(); - public: - void unsafe_arena_set_allocated_launch_consent( - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* launch_consent); - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* unsafe_arena_release_launch_consent(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; - bool has_process_received_attachments_end() const; - private: - bool _internal_has_process_received_attachments_end() const; - public: - void clear_process_received_attachments_end(); - const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& process_received_attachments_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* release_process_received_attachments_end(); - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* mutable_process_received_attachments_end(); - void set_allocated_process_received_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* process_received_attachments_end); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& _internal_process_received_attachments_end() const; - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* _internal_mutable_process_received_attachments_end(); - public: - void unsafe_arena_set_allocated_process_received_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* process_received_attachments_end); - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* unsafe_arena_release_process_received_attachments_end(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; - bool has_toggle_show_notification() const; - private: - bool _internal_has_toggle_show_notification() const; - public: - void clear_toggle_show_notification(); - const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& toggle_show_notification() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* release_toggle_show_notification(); - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* mutable_toggle_show_notification(); - void set_allocated_toggle_show_notification(::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* toggle_show_notification); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& _internal_toggle_show_notification() const; - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* _internal_mutable_toggle_show_notification(); - public: - void unsafe_arena_set_allocated_toggle_show_notification( - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* toggle_show_notification); - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* unsafe_arena_release_toggle_show_notification(); - - // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; - bool has_set_device_name() const; - private: - bool _internal_has_set_device_name() const; - public: - void clear_set_device_name(); - const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& set_device_name() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* release_set_device_name(); - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* mutable_set_device_name(); - void set_allocated_set_device_name(::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* set_device_name); - private: - const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& _internal_set_device_name() const; - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* _internal_mutable_set_device_name(); - public: - void unsafe_arena_set_allocated_set_device_name( - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* set_device_name); - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* unsafe_arena_release_set_device_name(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; - bool has_decline_agreements() const; - private: - bool _internal_has_decline_agreements() const; - public: - void clear_decline_agreements(); - const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& decline_agreements() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* release_decline_agreements(); - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* mutable_decline_agreements(); - void set_allocated_decline_agreements(::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* decline_agreements); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& _internal_decline_agreements() const; - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* _internal_mutable_decline_agreements(); - public: - void unsafe_arena_set_allocated_decline_agreements( - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* decline_agreements); - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* unsafe_arena_release_decline_agreements(); - - // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; - bool has_request_setting_permissions() const; - private: - bool _internal_has_request_setting_permissions() const; - public: - void clear_request_setting_permissions(); - const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& request_setting_permissions() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* release_request_setting_permissions(); - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* mutable_request_setting_permissions(); - void set_allocated_request_setting_permissions(::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* request_setting_permissions); - private: - const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& _internal_request_setting_permissions() const; - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* _internal_mutable_request_setting_permissions(); - public: - void unsafe_arena_set_allocated_request_setting_permissions( - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* request_setting_permissions); - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* unsafe_arena_release_request_setting_permissions(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; - bool has_device_settings() const; - private: - bool _internal_has_device_settings() const; - public: - void clear_device_settings(); - const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& device_settings() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* release_device_settings(); - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* mutable_device_settings(); - void set_allocated_device_settings(::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* device_settings); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& _internal_device_settings() const; - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* _internal_mutable_device_settings(); - public: - void unsafe_arena_set_allocated_device_settings( - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* device_settings); - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* unsafe_arena_release_device_settings(); - - // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; - bool has_establish_connection() const; - private: - bool _internal_has_establish_connection() const; - public: - void clear_establish_connection(); - const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& establish_connection() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* release_establish_connection(); - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* mutable_establish_connection(); - void set_allocated_establish_connection(::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* establish_connection); - private: - const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& _internal_establish_connection() const; - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* _internal_mutable_establish_connection(); - public: - void unsafe_arena_set_allocated_establish_connection( - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* establish_connection); - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* unsafe_arena_release_establish_connection(); - - // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; - bool has_auto_dismiss_fast_initialization() const; - private: - bool _internal_has_auto_dismiss_fast_initialization() const; - public: - void clear_auto_dismiss_fast_initialization(); - const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& auto_dismiss_fast_initialization() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* release_auto_dismiss_fast_initialization(); - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* mutable_auto_dismiss_fast_initialization(); - void set_allocated_auto_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* auto_dismiss_fast_initialization); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& _internal_auto_dismiss_fast_initialization() const; - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* _internal_mutable_auto_dismiss_fast_initialization(); - public: - void unsafe_arena_set_allocated_auto_dismiss_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* auto_dismiss_fast_initialization); - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* unsafe_arena_release_auto_dismiss_fast_initialization(); - - // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; - bool has_event_metadata() const; - private: - bool _internal_has_event_metadata() const; - public: - void clear_event_metadata(); - const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& event_metadata() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* release_event_metadata(); - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* mutable_event_metadata(); - void set_allocated_event_metadata(::nearby::sharing::analytics::proto::SharingLog_EventMetadata* event_metadata); - private: - const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& _internal_event_metadata() const; - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* _internal_mutable_event_metadata(); - public: - void unsafe_arena_set_allocated_event_metadata( - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* event_metadata); - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* unsafe_arena_release_event_metadata(); - - // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; - bool has_app_crash() const; - private: - bool _internal_has_app_crash() const; - public: - void clear_app_crash(); - const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& app_crash() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AppCrash* release_app_crash(); - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* mutable_app_crash(); - void set_allocated_app_crash(::nearby::sharing::analytics::proto::SharingLog_AppCrash* app_crash); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& _internal_app_crash() const; - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* _internal_mutable_app_crash(); - public: - void unsafe_arena_set_allocated_app_crash( - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* app_crash); - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* unsafe_arena_release_app_crash(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; - bool has_tap_quick_settings_file_share() const; - private: - bool _internal_has_tap_quick_settings_file_share() const; - public: - void clear_tap_quick_settings_file_share(); - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& tap_quick_settings_file_share() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* release_tap_quick_settings_file_share(); - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* mutable_tap_quick_settings_file_share(); - void set_allocated_tap_quick_settings_file_share(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* tap_quick_settings_file_share); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& _internal_tap_quick_settings_file_share() const; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* _internal_mutable_tap_quick_settings_file_share(); - public: - void unsafe_arena_set_allocated_tap_quick_settings_file_share( - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* tap_quick_settings_file_share); - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* unsafe_arena_release_tap_quick_settings_file_share(); - - // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; - bool has_app_info() const; - private: - bool _internal_has_app_info() const; - public: - void clear_app_info(); - const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& app_info() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_AppInfo* release_app_info(); - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* mutable_app_info(); - void set_allocated_app_info(::nearby::sharing::analytics::proto::SharingLog_AppInfo* app_info); - private: - const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& _internal_app_info() const; - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* _internal_mutable_app_info(); - public: - void unsafe_arena_set_allocated_app_info( - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* app_info); - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* unsafe_arena_release_app_info(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; - bool has_display_privacy_notification() const; - private: - bool _internal_has_display_privacy_notification() const; - public: - void clear_display_privacy_notification(); - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& display_privacy_notification() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* release_display_privacy_notification(); - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* mutable_display_privacy_notification(); - void set_allocated_display_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* display_privacy_notification); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& _internal_display_privacy_notification() const; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* _internal_mutable_display_privacy_notification(); - public: - void unsafe_arena_set_allocated_display_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* display_privacy_notification); - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* unsafe_arena_release_display_privacy_notification(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; - bool has_display_phone_consent() const; - private: - bool _internal_has_display_phone_consent() const; - public: - void clear_display_phone_consent(); - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& display_phone_consent() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* release_display_phone_consent(); - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* mutable_display_phone_consent(); - void set_allocated_display_phone_consent(::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* display_phone_consent); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& _internal_display_phone_consent() const; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* _internal_mutable_display_phone_consent(); - public: - void unsafe_arena_set_allocated_display_phone_consent( - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* display_phone_consent); - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* unsafe_arena_release_display_phone_consent(); - - // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; - bool has_preferences_usage() const; - private: - bool _internal_has_preferences_usage() const; - public: - void clear_preferences_usage(); - const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& preferences_usage() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* release_preferences_usage(); - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* mutable_preferences_usage(); - void set_allocated_preferences_usage(::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* preferences_usage); - private: - const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& _internal_preferences_usage() const; - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* _internal_mutable_preferences_usage(); - public: - void unsafe_arena_set_allocated_preferences_usage( - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* preferences_usage); - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* unsafe_arena_release_preferences_usage(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; - bool has_default_opt_in() const; - private: - bool _internal_has_default_opt_in() const; - public: - void clear_default_opt_in(); - const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& default_opt_in() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* release_default_opt_in(); - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* mutable_default_opt_in(); - void set_allocated_default_opt_in(::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* default_opt_in); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& _internal_default_opt_in() const; - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* _internal_mutable_default_opt_in(); - public: - void unsafe_arena_set_allocated_default_opt_in( - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* default_opt_in); - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* unsafe_arena_release_default_opt_in(); - - // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; - bool has_setup_wizard() const; - private: - bool _internal_has_setup_wizard() const; - public: - void clear_setup_wizard(); - const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& setup_wizard() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* release_setup_wizard(); - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* mutable_setup_wizard(); - void set_allocated_setup_wizard(::nearby::sharing::analytics::proto::SharingLog_SetupWizard* setup_wizard); - private: - const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& _internal_setup_wizard() const; - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* _internal_mutable_setup_wizard(); - public: - void unsafe_arena_set_allocated_setup_wizard( - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* setup_wizard); - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* unsafe_arena_release_setup_wizard(); - - // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; - bool has_tap_qr_code() const; - private: - bool _internal_has_tap_qr_code() const; - public: - void clear_tap_qr_code(); - const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& tap_qr_code() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* release_tap_qr_code(); - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* mutable_tap_qr_code(); - void set_allocated_tap_qr_code(::nearby::sharing::analytics::proto::SharingLog_TapQrCode* tap_qr_code); - private: - const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& _internal_tap_qr_code() const; - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* _internal_mutable_tap_qr_code(); - public: - void unsafe_arena_set_allocated_tap_qr_code( - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* tap_qr_code); - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* unsafe_arena_release_tap_qr_code(); - - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; - bool has_qr_code_link_shown() const; - private: - bool _internal_has_qr_code_link_shown() const; - public: - void clear_qr_code_link_shown(); - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& qr_code_link_shown() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* release_qr_code_link_shown(); - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* mutable_qr_code_link_shown(); - void set_allocated_qr_code_link_shown(::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* qr_code_link_shown); - private: - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& _internal_qr_code_link_shown() const; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* _internal_mutable_qr_code_link_shown(); - public: - void unsafe_arena_set_allocated_qr_code_link_shown( - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* qr_code_link_shown); - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* unsafe_arena_release_qr_code_link_shown(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; - bool has_parsing_failed_endpoint_id() const; - private: - bool _internal_has_parsing_failed_endpoint_id() const; - public: - void clear_parsing_failed_endpoint_id(); - const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& parsing_failed_endpoint_id() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* release_parsing_failed_endpoint_id(); - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* mutable_parsing_failed_endpoint_id(); - void set_allocated_parsing_failed_endpoint_id(::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* parsing_failed_endpoint_id); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& _internal_parsing_failed_endpoint_id() const; - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* _internal_mutable_parsing_failed_endpoint_id(); - public: - void unsafe_arena_set_allocated_parsing_failed_endpoint_id( - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* parsing_failed_endpoint_id); - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* unsafe_arena_release_parsing_failed_endpoint_id(); - - // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; - bool has_fast_init_discover_device() const; - private: - bool _internal_has_fast_init_discover_device() const; - public: - void clear_fast_init_discover_device(); - const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& fast_init_discover_device() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* release_fast_init_discover_device(); - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* mutable_fast_init_discover_device(); - void set_allocated_fast_init_discover_device(::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* fast_init_discover_device); - private: - const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& _internal_fast_init_discover_device() const; - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* _internal_mutable_fast_init_discover_device(); - public: - void unsafe_arena_set_allocated_fast_init_discover_device( - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* fast_init_discover_device); - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* unsafe_arena_release_fast_init_discover_device(); - - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; - bool has_send_desktop_notification() const; - private: - bool _internal_has_send_desktop_notification() const; - public: - void clear_send_desktop_notification(); - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& send_desktop_notification() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* release_send_desktop_notification(); - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* mutable_send_desktop_notification(); - void set_allocated_send_desktop_notification(::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* send_desktop_notification); - private: - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& _internal_send_desktop_notification() const; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* _internal_mutable_send_desktop_notification(); - public: - void unsafe_arena_set_allocated_send_desktop_notification( - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* send_desktop_notification); - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* unsafe_arena_release_send_desktop_notification(); - - // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; - bool has_send_desktop_transfer_event() const; - private: - bool _internal_has_send_desktop_transfer_event() const; - public: - void clear_send_desktop_transfer_event(); - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& send_desktop_transfer_event() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* release_send_desktop_transfer_event(); - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* mutable_send_desktop_transfer_event(); - void set_allocated_send_desktop_transfer_event(::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* send_desktop_transfer_event); - private: - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& _internal_send_desktop_transfer_event() const; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* _internal_mutable_send_desktop_transfer_event(); - public: - void unsafe_arena_set_allocated_send_desktop_transfer_event( - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* send_desktop_transfer_event); - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* unsafe_arena_release_send_desktop_transfer_event(); - - // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; - bool has_set_account() const; - private: - bool _internal_has_set_account() const; - public: - void clear_set_account(); - const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& set_account() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_SetAccount* release_set_account(); - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* mutable_set_account(); - void set_allocated_set_account(::nearby::sharing::analytics::proto::SharingLog_SetAccount* set_account); - private: - const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& _internal_set_account() const; - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* _internal_mutable_set_account(); - public: - void unsafe_arena_set_allocated_set_account( - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* set_account); - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* unsafe_arena_release_set_account(); - - // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; - bool has_decrypt_certificate_failure() const; - private: - bool _internal_has_decrypt_certificate_failure() const; - public: - void clear_decrypt_certificate_failure(); - const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& decrypt_certificate_failure() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* release_decrypt_certificate_failure(); - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* mutable_decrypt_certificate_failure(); - void set_allocated_decrypt_certificate_failure(::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* decrypt_certificate_failure); - private: - const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& _internal_decrypt_certificate_failure() const; - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* _internal_mutable_decrypt_certificate_failure(); - public: - void unsafe_arena_set_allocated_decrypt_certificate_failure( - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* decrypt_certificate_failure); - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* unsafe_arena_release_decrypt_certificate_failure(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; - bool has_show_allow_permission_auto_access() const; - private: - bool _internal_has_show_allow_permission_auto_access() const; - public: - void clear_show_allow_permission_auto_access(); - const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& show_allow_permission_auto_access() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* release_show_allow_permission_auto_access(); - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* mutable_show_allow_permission_auto_access(); - void set_allocated_show_allow_permission_auto_access(::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* show_allow_permission_auto_access); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& _internal_show_allow_permission_auto_access() const; - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* _internal_mutable_show_allow_permission_auto_access(); - public: - void unsafe_arena_set_allocated_show_allow_permission_auto_access( - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* show_allow_permission_auto_access); - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* unsafe_arena_release_show_allow_permission_auto_access(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; - bool has_show_waiting_for_accept() const; - private: - bool _internal_has_show_waiting_for_accept() const; - public: - void clear_show_waiting_for_accept(); - const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& show_waiting_for_accept() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* release_show_waiting_for_accept(); - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* mutable_show_waiting_for_accept(); - void set_allocated_show_waiting_for_accept(::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* show_waiting_for_accept); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& _internal_show_waiting_for_accept() const; - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* _internal_mutable_show_waiting_for_accept(); - public: - void unsafe_arena_set_allocated_show_waiting_for_accept( - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* show_waiting_for_accept); - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* unsafe_arena_release_show_waiting_for_accept(); - - // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; - bool has_high_quality_medium_setup() const; - private: - bool _internal_has_high_quality_medium_setup() const; - public: - void clear_high_quality_medium_setup(); - const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& high_quality_medium_setup() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* release_high_quality_medium_setup(); - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* mutable_high_quality_medium_setup(); - void set_allocated_high_quality_medium_setup(::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* high_quality_medium_setup); - private: - const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& _internal_high_quality_medium_setup() const; - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* _internal_mutable_high_quality_medium_setup(); - public: - void unsafe_arena_set_allocated_high_quality_medium_setup( - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* high_quality_medium_setup); - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* unsafe_arena_release_high_quality_medium_setup(); - - // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; - bool has_rpc_call_status() const; - private: - bool _internal_has_rpc_call_status() const; - public: - void clear_rpc_call_status(); - const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& rpc_call_status() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* release_rpc_call_status(); - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* mutable_rpc_call_status(); - void set_allocated_rpc_call_status(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* rpc_call_status); - private: - const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& _internal_rpc_call_status() const; - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* _internal_mutable_rpc_call_status(); - public: - void unsafe_arena_set_allocated_rpc_call_status( - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* rpc_call_status); - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* unsafe_arena_release_rpc_call_status(); - - // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; - bool has_start_qr_code_session() const; - private: - bool _internal_has_start_qr_code_session() const; - public: - void clear_start_qr_code_session(); - const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& start_qr_code_session() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* release_start_qr_code_session(); - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* mutable_start_qr_code_session(); - void set_allocated_start_qr_code_session(::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* start_qr_code_session); - private: - const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& _internal_start_qr_code_session() const; - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* _internal_mutable_start_qr_code_session(); - public: - void unsafe_arena_set_allocated_start_qr_code_session( - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* start_qr_code_session); - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* unsafe_arena_release_start_qr_code_session(); - - // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; - bool has_qr_code_opened_in_web_client() const; - private: - bool _internal_has_qr_code_opened_in_web_client() const; - public: - void clear_qr_code_opened_in_web_client(); - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& qr_code_opened_in_web_client() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* release_qr_code_opened_in_web_client(); - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* mutable_qr_code_opened_in_web_client(); - void set_allocated_qr_code_opened_in_web_client(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* qr_code_opened_in_web_client); - private: - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& _internal_qr_code_opened_in_web_client() const; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* _internal_mutable_qr_code_opened_in_web_client(); - public: - void unsafe_arena_set_allocated_qr_code_opened_in_web_client( - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* qr_code_opened_in_web_client); - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* unsafe_arena_release_qr_code_opened_in_web_client(); - - // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; - bool has_hats_joint_event() const; - private: - bool _internal_has_hats_joint_event() const; - public: - void clear_hats_joint_event(); - const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& hats_joint_event() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* release_hats_joint_event(); - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* mutable_hats_joint_event(); - void set_allocated_hats_joint_event(::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* hats_joint_event); - private: - const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& _internal_hats_joint_event() const; - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* _internal_mutable_hats_joint_event(); - public: - void unsafe_arena_set_allocated_hats_joint_event( - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* hats_joint_event); - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* unsafe_arena_release_hats_joint_event(); - - // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; - bool has_receive_previews() const; - private: - bool _internal_has_receive_previews() const; - public: - void clear_receive_previews(); - const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& receive_previews() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* release_receive_previews(); - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* mutable_receive_previews(); - void set_allocated_receive_previews(::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* receive_previews); - private: - const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& _internal_receive_previews() const; - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* _internal_mutable_receive_previews(); - public: - void unsafe_arena_set_allocated_receive_previews( - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* receive_previews); - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* unsafe_arena_release_receive_previews(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; - bool has_cloud_create_sharing_request() const; - private: - bool _internal_has_cloud_create_sharing_request() const; - public: - void clear_cloud_create_sharing_request(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& cloud_create_sharing_request() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* release_cloud_create_sharing_request(); - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* mutable_cloud_create_sharing_request(); - void set_allocated_cloud_create_sharing_request(::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* cloud_create_sharing_request); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& _internal_cloud_create_sharing_request() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* _internal_mutable_cloud_create_sharing_request(); - public: - void unsafe_arena_set_allocated_cloud_create_sharing_request( - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* cloud_create_sharing_request); - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* unsafe_arena_release_cloud_create_sharing_request(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; - bool has_cloud_register_receiver() const; - private: - bool _internal_has_cloud_register_receiver() const; - public: - void clear_cloud_register_receiver(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& cloud_register_receiver() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* release_cloud_register_receiver(); - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* mutable_cloud_register_receiver(); - void set_allocated_cloud_register_receiver(::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* cloud_register_receiver); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& _internal_cloud_register_receiver() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* _internal_mutable_cloud_register_receiver(); - public: - void unsafe_arena_set_allocated_cloud_register_receiver( - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* cloud_register_receiver); - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* unsafe_arena_release_cloud_register_receiver(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; - bool has_cloud_upload_start() const; - private: - bool _internal_has_cloud_upload_start() const; - public: - void clear_cloud_upload_start(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& cloud_upload_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* release_cloud_upload_start(); - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* mutable_cloud_upload_start(); - void set_allocated_cloud_upload_start(::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* cloud_upload_start); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& _internal_cloud_upload_start() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* _internal_mutable_cloud_upload_start(); - public: - void unsafe_arena_set_allocated_cloud_upload_start( - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* cloud_upload_start); - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* unsafe_arena_release_cloud_upload_start(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; - bool has_cloud_upload_end() const; - private: - bool _internal_has_cloud_upload_end() const; - public: - void clear_cloud_upload_end(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& cloud_upload_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* release_cloud_upload_end(); - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* mutable_cloud_upload_end(); - void set_allocated_cloud_upload_end(::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* cloud_upload_end); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& _internal_cloud_upload_end() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* _internal_mutable_cloud_upload_end(); - public: - void unsafe_arena_set_allocated_cloud_upload_end( - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* cloud_upload_end); - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* unsafe_arena_release_cloud_upload_end(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; - bool has_cloud_download_start() const; - private: - bool _internal_has_cloud_download_start() const; - public: - void clear_cloud_download_start(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& cloud_download_start() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* release_cloud_download_start(); - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* mutable_cloud_download_start(); - void set_allocated_cloud_download_start(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* cloud_download_start); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& _internal_cloud_download_start() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* _internal_mutable_cloud_download_start(); - public: - void unsafe_arena_set_allocated_cloud_download_start( - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* cloud_download_start); - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* unsafe_arena_release_cloud_download_start(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; - bool has_cloud_download_end() const; - private: - bool _internal_has_cloud_download_end() const; - public: - void clear_cloud_download_end(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& cloud_download_end() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* release_cloud_download_end(); - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* mutable_cloud_download_end(); - void set_allocated_cloud_download_end(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* cloud_download_end); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& _internal_cloud_download_end() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* _internal_mutable_cloud_download_end(); - public: - void unsafe_arena_set_allocated_cloud_download_end( - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* cloud_download_end); - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* unsafe_arena_release_cloud_download_end(); - - // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; - bool has_cloud_sharing_rpc_result() const; - private: - bool _internal_has_cloud_sharing_rpc_result() const; - public: - void clear_cloud_sharing_rpc_result(); - const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& cloud_sharing_rpc_result() const; - PROTOBUF_NODISCARD ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* release_cloud_sharing_rpc_result(); - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* mutable_cloud_sharing_rpc_result(); - void set_allocated_cloud_sharing_rpc_result(::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* cloud_sharing_rpc_result); - private: - const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& _internal_cloud_sharing_rpc_result() const; - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* _internal_mutable_cloud_sharing_rpc_result(); - public: - void unsafe_arena_set_allocated_cloud_sharing_rpc_result( - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* cloud_sharing_rpc_result); - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* unsafe_arena_release_cloud_sharing_rpc_result(); - // optional .location.nearby.proto.sharing.EventType event_type = 1; bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); + void clear_event_type() ; ::location::nearby::proto::sharing::EventType event_type() const; void set_event_type(::location::nearby::proto::sharing::EventType value); + private: ::location::nearby::proto::sharing::EventType _internal_event_type() const; void _internal_set_event_type(::location::nearby::proto::sharing::EventType value); - public: + public: // optional .location.nearby.proto.sharing.LogSource log_source = 27; bool has_log_source() const; - private: - bool _internal_has_log_source() const; - public: - void clear_log_source(); + void clear_log_source() ; ::location::nearby::proto::sharing::LogSource log_source() const; void set_log_source(::location::nearby::proto::sharing::LogSource value); + private: ::location::nearby::proto::sharing::LogSource _internal_log_source() const; void _internal_set_log_source(::location::nearby::proto::sharing::LogSource value); - public: + public: + // optional string version = 32; + bool has_version() const; + void clear_version() ; + const ::std::string& version() const; + template + void set_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version(); + void set_allocated_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_version(); + + public: + // optional string files_migration_phase = 50; + bool has_files_migration_phase() const; + void clear_files_migration_phase() ; + const ::std::string& files_migration_phase() const; + template + void set_files_migration_phase(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_files_migration_phase(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_files_migration_phase(); + void set_allocated_files_migration_phase(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_files_migration_phase() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_files_migration_phase(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_files_migration_phase(); + + public: + // optional string app_version = 57 [deprecated = true]; + [[deprecated]] bool has_app_version() const; + [[deprecated]] void clear_app_version() ; + [[deprecated]] const ::std::string& app_version() const; + template + [[deprecated]] void set_app_version(Arg_&& arg, Args_... args); + [[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_app_version(); + [[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_app_version(); + [[deprecated]] void set_allocated_app_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_app_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_app_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_app_version(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; + bool has_dismiss_fast_initialization() const; + void clear_dismiss_fast_initialization() ; + const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& dismiss_fast_initialization() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE release_dismiss_fast_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NONNULL mutable_dismiss_fast_initialization(); + void set_allocated_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE unsafe_arena_release_dismiss_fast_initialization(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& _internal_dismiss_fast_initialization() const; + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NONNULL _internal_mutable_dismiss_fast_initialization(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; + bool has_cancel_connection() const; + void clear_cancel_connection() ; + const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& cancel_connection() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE release_cancel_connection(); + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NONNULL mutable_cancel_connection(); + void set_allocated_cancel_connection(::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cancel_connection(::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE unsafe_arena_release_cancel_connection(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& _internal_cancel_connection() const; + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NONNULL _internal_mutable_cancel_connection(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; + bool has_dismiss_privacy_notification() const; + void clear_dismiss_privacy_notification() ; + const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& dismiss_privacy_notification() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE release_dismiss_privacy_notification(); + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL mutable_dismiss_privacy_notification(); + void set_allocated_dismiss_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dismiss_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE unsafe_arena_release_dismiss_privacy_notification(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& _internal_dismiss_privacy_notification() const; + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL _internal_mutable_dismiss_privacy_notification(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; + bool has_tap_privacy_notification() const; + void clear_tap_privacy_notification() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& tap_privacy_notification() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE release_tap_privacy_notification(); + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL mutable_tap_privacy_notification(); + void set_allocated_tap_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE unsafe_arena_release_tap_privacy_notification(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& _internal_tap_privacy_notification() const; + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL _internal_mutable_tap_privacy_notification(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; + bool has_tap_help() const; + void clear_tap_help() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& tap_help() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE release_tap_help(); + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NONNULL mutable_tap_help(); + void set_allocated_tap_help(::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_help(::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE unsafe_arena_release_tap_help(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& _internal_tap_help() const; + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NONNULL _internal_mutable_tap_help(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; + bool has_tap_feedback() const; + void clear_tap_feedback() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& tap_feedback() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE release_tap_feedback(); + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NONNULL mutable_tap_feedback(); + void set_allocated_tap_feedback(::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_feedback(::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE unsafe_arena_release_tap_feedback(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& _internal_tap_feedback() const; + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NONNULL _internal_mutable_tap_feedback(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; + bool has_add_quick_settings_tile() const; + void clear_add_quick_settings_tile() ; + const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& add_quick_settings_tile() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE release_add_quick_settings_tile(); + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL mutable_add_quick_settings_tile(); + void set_allocated_add_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_add_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE unsafe_arena_release_add_quick_settings_tile(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& _internal_add_quick_settings_tile() const; + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL _internal_mutable_add_quick_settings_tile(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; + bool has_remove_quick_settings_tile() const; + void clear_remove_quick_settings_tile() ; + const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& remove_quick_settings_tile() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE release_remove_quick_settings_tile(); + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL mutable_remove_quick_settings_tile(); + void set_allocated_remove_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE unsafe_arena_release_remove_quick_settings_tile(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& _internal_remove_quick_settings_tile() const; + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL _internal_mutable_remove_quick_settings_tile(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; + bool has_launch_phone_consent() const; + void clear_launch_phone_consent() ; + const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& launch_phone_consent() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE release_launch_phone_consent(); + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL mutable_launch_phone_consent(); + void set_allocated_launch_phone_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_launch_phone_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE unsafe_arena_release_launch_phone_consent(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& _internal_launch_phone_consent() const; + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL _internal_mutable_launch_phone_consent(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; + bool has_tap_quick_settings_tile() const; + void clear_tap_quick_settings_tile() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& tap_quick_settings_tile() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE release_tap_quick_settings_tile(); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL mutable_tap_quick_settings_tile(); + void set_allocated_tap_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE unsafe_arena_release_tap_quick_settings_tile(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& _internal_tap_quick_settings_tile() const; + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL _internal_mutable_tap_quick_settings_tile(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; + bool has_install_apk_status() const; + void clear_install_apk_status() ; + const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& install_apk_status() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE release_install_apk_status(); + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NONNULL mutable_install_apk_status(); + void set_allocated_install_apk_status(::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_install_apk_status(::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE unsafe_arena_release_install_apk_status(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& _internal_install_apk_status() const; + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NONNULL _internal_mutable_install_apk_status(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; + bool has_verify_apk_status() const; + void clear_verify_apk_status() ; + const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& verify_apk_status() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE release_verify_apk_status(); + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL mutable_verify_apk_status(); + void set_allocated_verify_apk_status(::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_verify_apk_status(::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE unsafe_arena_release_verify_apk_status(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& _internal_verify_apk_status() const; + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL _internal_mutable_verify_apk_status(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; + bool has_launch_consent() const; + void clear_launch_consent() ; + const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& launch_consent() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE release_launch_consent(); + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NONNULL mutable_launch_consent(); + void set_allocated_launch_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_launch_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE unsafe_arena_release_launch_consent(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& _internal_launch_consent() const; + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NONNULL _internal_mutable_launch_consent(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; + bool has_process_received_attachments_end() const; + void clear_process_received_attachments_end() ; + const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& process_received_attachments_end() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE release_process_received_attachments_end(); + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL mutable_process_received_attachments_end(); + void set_allocated_process_received_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_process_received_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE unsafe_arena_release_process_received_attachments_end(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& _internal_process_received_attachments_end() const; + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL _internal_mutable_process_received_attachments_end(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; + bool has_toggle_show_notification() const; + void clear_toggle_show_notification() ; + const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& toggle_show_notification() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE release_toggle_show_notification(); + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NONNULL mutable_toggle_show_notification(); + void set_allocated_toggle_show_notification(::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_toggle_show_notification(::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE unsafe_arena_release_toggle_show_notification(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& _internal_toggle_show_notification() const; + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NONNULL _internal_mutable_toggle_show_notification(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; + bool has_set_device_name() const; + void clear_set_device_name() ; + const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& set_device_name() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE release_set_device_name(); + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NONNULL mutable_set_device_name(); + void set_allocated_set_device_name(::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_set_device_name(::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE unsafe_arena_release_set_device_name(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& _internal_set_device_name() const; + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NONNULL _internal_mutable_set_device_name(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; + bool has_decline_agreements() const; + void clear_decline_agreements() ; + const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& decline_agreements() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE release_decline_agreements(); + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NONNULL mutable_decline_agreements(); + void set_allocated_decline_agreements(::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_decline_agreements(::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE unsafe_arena_release_decline_agreements(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& _internal_decline_agreements() const; + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NONNULL _internal_mutable_decline_agreements(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; + bool has_request_setting_permissions() const; + void clear_request_setting_permissions() ; + const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& request_setting_permissions() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE release_request_setting_permissions(); + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL mutable_request_setting_permissions(); + void set_allocated_request_setting_permissions(::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_request_setting_permissions(::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE unsafe_arena_release_request_setting_permissions(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& _internal_request_setting_permissions() const; + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL _internal_mutable_request_setting_permissions(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; + bool has_device_settings() const; + void clear_device_settings() ; + const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& device_settings() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE release_device_settings(); + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NONNULL mutable_device_settings(); + void set_allocated_device_settings(::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_device_settings(::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE unsafe_arena_release_device_settings(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& _internal_device_settings() const; + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NONNULL _internal_mutable_device_settings(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; + bool has_establish_connection() const; + void clear_establish_connection() ; + const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& establish_connection() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE release_establish_connection(); + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NONNULL mutable_establish_connection(); + void set_allocated_establish_connection(::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_establish_connection(::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE unsafe_arena_release_establish_connection(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& _internal_establish_connection() const; + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NONNULL _internal_mutable_establish_connection(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; + bool has_auto_dismiss_fast_initialization() const; + void clear_auto_dismiss_fast_initialization() ; + const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& auto_dismiss_fast_initialization() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE release_auto_dismiss_fast_initialization(); + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL mutable_auto_dismiss_fast_initialization(); + void set_allocated_auto_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_auto_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE unsafe_arena_release_auto_dismiss_fast_initialization(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& _internal_auto_dismiss_fast_initialization() const; + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL _internal_mutable_auto_dismiss_fast_initialization(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; + bool has_event_metadata() const; + void clear_event_metadata() ; + const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& event_metadata() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE release_event_metadata(); + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NONNULL mutable_event_metadata(); + void set_allocated_event_metadata(::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_event_metadata(::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE unsafe_arena_release_event_metadata(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& _internal_event_metadata() const; + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NONNULL _internal_mutable_event_metadata(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; + bool has_app_crash() const; + void clear_app_crash() ; + const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& app_crash() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE release_app_crash(); + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NONNULL mutable_app_crash(); + void set_allocated_app_crash(::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_app_crash(::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE unsafe_arena_release_app_crash(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& _internal_app_crash() const; + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NONNULL _internal_mutable_app_crash(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; + bool has_tap_quick_settings_file_share() const; + void clear_tap_quick_settings_file_share() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& tap_quick_settings_file_share() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE release_tap_quick_settings_file_share(); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL mutable_tap_quick_settings_file_share(); + void set_allocated_tap_quick_settings_file_share(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_quick_settings_file_share(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE unsafe_arena_release_tap_quick_settings_file_share(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& _internal_tap_quick_settings_file_share() const; + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL _internal_mutable_tap_quick_settings_file_share(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; + bool has_app_info() const; + void clear_app_info() ; + const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& app_info() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE release_app_info(); + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NONNULL mutable_app_info(); + void set_allocated_app_info(::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_app_info(::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE unsafe_arena_release_app_info(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& _internal_app_info() const; + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NONNULL _internal_mutable_app_info(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; + bool has_display_privacy_notification() const; + void clear_display_privacy_notification() ; + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& display_privacy_notification() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE release_display_privacy_notification(); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL mutable_display_privacy_notification(); + void set_allocated_display_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_display_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE unsafe_arena_release_display_privacy_notification(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& _internal_display_privacy_notification() const; + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL _internal_mutable_display_privacy_notification(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; + bool has_display_phone_consent() const; + void clear_display_phone_consent() ; + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& display_phone_consent() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE release_display_phone_consent(); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL mutable_display_phone_consent(); + void set_allocated_display_phone_consent(::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_display_phone_consent(::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE unsafe_arena_release_display_phone_consent(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& _internal_display_phone_consent() const; + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL _internal_mutable_display_phone_consent(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; + bool has_preferences_usage() const; + void clear_preferences_usage() ; + const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& preferences_usage() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE release_preferences_usage(); + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NONNULL mutable_preferences_usage(); + void set_allocated_preferences_usage(::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_preferences_usage(::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE unsafe_arena_release_preferences_usage(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& _internal_preferences_usage() const; + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NONNULL _internal_mutable_preferences_usage(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; + bool has_default_opt_in() const; + void clear_default_opt_in() ; + const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& default_opt_in() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE release_default_opt_in(); + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NONNULL mutable_default_opt_in(); + void set_allocated_default_opt_in(::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_default_opt_in(::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE unsafe_arena_release_default_opt_in(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& _internal_default_opt_in() const; + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NONNULL _internal_mutable_default_opt_in(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; + bool has_setup_wizard() const; + void clear_setup_wizard() ; + const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& setup_wizard() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE release_setup_wizard(); + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NONNULL mutable_setup_wizard(); + void set_allocated_setup_wizard(::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_setup_wizard(::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE unsafe_arena_release_setup_wizard(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& _internal_setup_wizard() const; + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NONNULL _internal_mutable_setup_wizard(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; + bool has_tap_qr_code() const; + void clear_tap_qr_code() ; + const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& tap_qr_code() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE release_tap_qr_code(); + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NONNULL mutable_tap_qr_code(); + void set_allocated_tap_qr_code(::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tap_qr_code(::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE unsafe_arena_release_tap_qr_code(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& _internal_tap_qr_code() const; + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NONNULL _internal_mutable_tap_qr_code(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; + bool has_qr_code_link_shown() const; + void clear_qr_code_link_shown() ; + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& qr_code_link_shown() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE release_qr_code_link_shown(); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL mutable_qr_code_link_shown(); + void set_allocated_qr_code_link_shown(::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_qr_code_link_shown(::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE unsafe_arena_release_qr_code_link_shown(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& _internal_qr_code_link_shown() const; + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL _internal_mutable_qr_code_link_shown(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; + bool has_parsing_failed_endpoint_id() const; + void clear_parsing_failed_endpoint_id() ; + const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& parsing_failed_endpoint_id() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE release_parsing_failed_endpoint_id(); + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL mutable_parsing_failed_endpoint_id(); + void set_allocated_parsing_failed_endpoint_id(::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_parsing_failed_endpoint_id(::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE unsafe_arena_release_parsing_failed_endpoint_id(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& _internal_parsing_failed_endpoint_id() const; + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL _internal_mutable_parsing_failed_endpoint_id(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; + bool has_fast_init_discover_device() const; + void clear_fast_init_discover_device() ; + const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& fast_init_discover_device() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE release_fast_init_discover_device(); + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL mutable_fast_init_discover_device(); + void set_allocated_fast_init_discover_device(::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_fast_init_discover_device(::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE unsafe_arena_release_fast_init_discover_device(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& _internal_fast_init_discover_device() const; + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL _internal_mutable_fast_init_discover_device(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; + bool has_send_desktop_notification() const; + void clear_send_desktop_notification() ; + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& send_desktop_notification() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE release_send_desktop_notification(); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NONNULL mutable_send_desktop_notification(); + void set_allocated_send_desktop_notification(::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_desktop_notification(::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE unsafe_arena_release_send_desktop_notification(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& _internal_send_desktop_notification() const; + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NONNULL _internal_mutable_send_desktop_notification(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; + bool has_send_desktop_transfer_event() const; + void clear_send_desktop_transfer_event() ; + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& send_desktop_transfer_event() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE release_send_desktop_transfer_event(); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL mutable_send_desktop_transfer_event(); + void set_allocated_send_desktop_transfer_event(::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_send_desktop_transfer_event(::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE unsafe_arena_release_send_desktop_transfer_event(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& _internal_send_desktop_transfer_event() const; + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL _internal_mutable_send_desktop_transfer_event(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; + bool has_set_account() const; + void clear_set_account() ; + const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& set_account() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE release_set_account(); + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NONNULL mutable_set_account(); + void set_allocated_set_account(::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_set_account(::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE unsafe_arena_release_set_account(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& _internal_set_account() const; + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NONNULL _internal_mutable_set_account(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; + bool has_decrypt_certificate_failure() const; + void clear_decrypt_certificate_failure() ; + const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& decrypt_certificate_failure() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE release_decrypt_certificate_failure(); + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL mutable_decrypt_certificate_failure(); + void set_allocated_decrypt_certificate_failure(::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_decrypt_certificate_failure(::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE unsafe_arena_release_decrypt_certificate_failure(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& _internal_decrypt_certificate_failure() const; + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL _internal_mutable_decrypt_certificate_failure(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; + bool has_show_allow_permission_auto_access() const; + void clear_show_allow_permission_auto_access() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& show_allow_permission_auto_access() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE release_show_allow_permission_auto_access(); + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL mutable_show_allow_permission_auto_access(); + void set_allocated_show_allow_permission_auto_access(::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_show_allow_permission_auto_access(::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE unsafe_arena_release_show_allow_permission_auto_access(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& _internal_show_allow_permission_auto_access() const; + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL _internal_mutable_show_allow_permission_auto_access(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; + bool has_show_waiting_for_accept() const; + void clear_show_waiting_for_accept() ; + const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& show_waiting_for_accept() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE release_show_waiting_for_accept(); + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL mutable_show_waiting_for_accept(); + void set_allocated_show_waiting_for_accept(::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_show_waiting_for_accept(::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE unsafe_arena_release_show_waiting_for_accept(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& _internal_show_waiting_for_accept() const; + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL _internal_mutable_show_waiting_for_accept(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; + bool has_high_quality_medium_setup() const; + void clear_high_quality_medium_setup() ; + const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& high_quality_medium_setup() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE release_high_quality_medium_setup(); + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL mutable_high_quality_medium_setup(); + void set_allocated_high_quality_medium_setup(::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_high_quality_medium_setup(::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE unsafe_arena_release_high_quality_medium_setup(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& _internal_high_quality_medium_setup() const; + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL _internal_mutable_high_quality_medium_setup(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; + bool has_rpc_call_status() const; + void clear_rpc_call_status() ; + const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& rpc_call_status() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE release_rpc_call_status(); + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NONNULL mutable_rpc_call_status(); + void set_allocated_rpc_call_status(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_rpc_call_status(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE unsafe_arena_release_rpc_call_status(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& _internal_rpc_call_status() const; + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NONNULL _internal_mutable_rpc_call_status(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; + bool has_start_qr_code_session() const; + void clear_start_qr_code_session() ; + const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& start_qr_code_session() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE release_start_qr_code_session(); + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NONNULL mutable_start_qr_code_session(); + void set_allocated_start_qr_code_session(::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_start_qr_code_session(::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE unsafe_arena_release_start_qr_code_session(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& _internal_start_qr_code_session() const; + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NONNULL _internal_mutable_start_qr_code_session(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; + bool has_qr_code_opened_in_web_client() const; + void clear_qr_code_opened_in_web_client() ; + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& qr_code_opened_in_web_client() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE release_qr_code_opened_in_web_client(); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL mutable_qr_code_opened_in_web_client(); + void set_allocated_qr_code_opened_in_web_client(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_qr_code_opened_in_web_client(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE unsafe_arena_release_qr_code_opened_in_web_client(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& _internal_qr_code_opened_in_web_client() const; + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL _internal_mutable_qr_code_opened_in_web_client(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; + bool has_hats_joint_event() const; + void clear_hats_joint_event() ; + const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& hats_joint_event() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE release_hats_joint_event(); + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NONNULL mutable_hats_joint_event(); + void set_allocated_hats_joint_event(::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_hats_joint_event(::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE unsafe_arena_release_hats_joint_event(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& _internal_hats_joint_event() const; + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NONNULL _internal_mutable_hats_joint_event(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; + bool has_receive_previews() const; + void clear_receive_previews() ; + const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& receive_previews() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE release_receive_previews(); + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NONNULL mutable_receive_previews(); + void set_allocated_receive_previews(::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receive_previews(::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE unsafe_arena_release_receive_previews(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& _internal_receive_previews() const; + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NONNULL _internal_mutable_receive_previews(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; + bool has_cloud_create_sharing_request() const; + void clear_cloud_create_sharing_request() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& cloud_create_sharing_request() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE release_cloud_create_sharing_request(); + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL mutable_cloud_create_sharing_request(); + void set_allocated_cloud_create_sharing_request(::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_create_sharing_request(::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE unsafe_arena_release_cloud_create_sharing_request(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& _internal_cloud_create_sharing_request() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL _internal_mutable_cloud_create_sharing_request(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; + bool has_cloud_register_receiver() const; + void clear_cloud_register_receiver() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& cloud_register_receiver() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE release_cloud_register_receiver(); + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL mutable_cloud_register_receiver(); + void set_allocated_cloud_register_receiver(::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_register_receiver(::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE unsafe_arena_release_cloud_register_receiver(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& _internal_cloud_register_receiver() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL _internal_mutable_cloud_register_receiver(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; + bool has_cloud_upload_start() const; + void clear_cloud_upload_start() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& cloud_upload_start() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE release_cloud_upload_start(); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NONNULL mutable_cloud_upload_start(); + void set_allocated_cloud_upload_start(::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_upload_start(::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE unsafe_arena_release_cloud_upload_start(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& _internal_cloud_upload_start() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NONNULL _internal_mutable_cloud_upload_start(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; + bool has_cloud_upload_end() const; + void clear_cloud_upload_end() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& cloud_upload_end() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE release_cloud_upload_end(); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NONNULL mutable_cloud_upload_end(); + void set_allocated_cloud_upload_end(::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_upload_end(::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE unsafe_arena_release_cloud_upload_end(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& _internal_cloud_upload_end() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NONNULL _internal_mutable_cloud_upload_end(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; + bool has_cloud_download_start() const; + void clear_cloud_download_start() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& cloud_download_start() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE release_cloud_download_start(); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NONNULL mutable_cloud_download_start(); + void set_allocated_cloud_download_start(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_download_start(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE unsafe_arena_release_cloud_download_start(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& _internal_cloud_download_start() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NONNULL _internal_mutable_cloud_download_start(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; + bool has_cloud_download_end() const; + void clear_cloud_download_end() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& cloud_download_end() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE release_cloud_download_end(); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL mutable_cloud_download_end(); + void set_allocated_cloud_download_end(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_download_end(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE unsafe_arena_release_cloud_download_end(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& _internal_cloud_download_end() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL _internal_mutable_cloud_download_end(); + + public: + // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; + bool has_cloud_sharing_rpc_result() const; + void clear_cloud_sharing_rpc_result() ; + const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& cloud_sharing_rpc_result() const; + [[nodiscard]] ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE release_cloud_sharing_rpc_result(); + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL mutable_cloud_sharing_rpc_result(); + void set_allocated_cloud_sharing_rpc_result(::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_cloud_sharing_rpc_result(::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE value); + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE unsafe_arena_release_cloud_sharing_rpc_result(); + + private: + const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& _internal_cloud_sharing_rpc_result() const; + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL _internal_mutable_cloud_sharing_rpc_result(); + + public: // optional .location.nearby.proto.sharing.EventCategory event_category = 33; bool has_event_category() const; - private: - bool _internal_has_event_category() const; - public: - void clear_event_category(); + void clear_event_category() ; ::location::nearby::proto::sharing::EventCategory event_category() const; void set_event_category(::location::nearby::proto::sharing::EventCategory value); + private: ::location::nearby::proto::sharing::EventCategory _internal_event_category() const; void _internal_set_event_category(::location::nearby::proto::sharing::EventCategory value); - public: + public: // @@protoc_insertion_point(class_scope:nearby.sharing.analytics.proto.SharingLog) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<5, 88, + 85, 0, + 13> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<3> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr files_migration_phase_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_; - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unknown_event_; - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* accept_agreements_; - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* enable_nearby_sharing_; - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* set_visibility_; - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* describe_attachments_; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* scan_for_share_targets_start_; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* scan_for_share_targets_end_; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* advertise_device_presence_start_; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* advertise_device_presence_end_; - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* send_initialization_; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* receive_initialization_; - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* discover_share_target_; - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* send_introduction_; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* receive_introduction_; - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* respond_introduction_; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* send_attachments_start_; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* send_attachments_end_; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* receive_attachments_start_; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* receive_attachments_end_; - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* cancel_sending_attachments_; - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* cancel_receiving_attachments_; - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* open_received_attachments_; - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* launch_activity_; - ::nearby::sharing::analytics::proto::SharingLog_AddContact* add_contact_; - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* remove_contact_; - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* fast_share_server_response_; - ::nearby::sharing::analytics::proto::SharingLog_SendStart* send_start_; - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* accept_fast_initialization_; - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* set_data_usage_; - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* dismiss_fast_initialization_; - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* cancel_connection_; - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* dismiss_privacy_notification_; - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* tap_privacy_notification_; - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* tap_help_; - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* tap_feedback_; - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* add_quick_settings_tile_; - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* remove_quick_settings_tile_; - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* launch_phone_consent_; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* tap_quick_settings_tile_; - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* install_apk_status_; - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* verify_apk_status_; - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* launch_consent_; - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* process_received_attachments_end_; - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* toggle_show_notification_; - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* set_device_name_; - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* decline_agreements_; - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* request_setting_permissions_; - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* device_settings_; - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* establish_connection_; - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* auto_dismiss_fast_initialization_; - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* event_metadata_; - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* app_crash_; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* tap_quick_settings_file_share_; - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* app_info_; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* display_privacy_notification_; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* display_phone_consent_; - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* preferences_usage_; - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* default_opt_in_; - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* setup_wizard_; - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* tap_qr_code_; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* qr_code_link_shown_; - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* parsing_failed_endpoint_id_; - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* fast_init_discover_device_; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* send_desktop_notification_; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* send_desktop_transfer_event_; - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* set_account_; - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* decrypt_certificate_failure_; - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* show_allow_permission_auto_access_; - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* show_waiting_for_accept_; - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* high_quality_medium_setup_; - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* rpc_call_status_; - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* start_qr_code_session_; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* qr_code_opened_in_web_client_; - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* hats_joint_event_; - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* receive_previews_; - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* cloud_create_sharing_request_; - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* cloud_register_receiver_; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* cloud_upload_start_; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* cloud_upload_end_; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* cloud_download_start_; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* cloud_download_end_; - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* cloud_sharing_rpc_result_; - int event_type_; - int log_source_; - int event_category_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SharingLog& from_msg); + ::google::protobuf::internal::HasBits<3> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE unknown_event_; + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE accept_agreements_; + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE enable_nearby_sharing_; + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE set_visibility_; + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE describe_attachments_; + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE scan_for_share_targets_start_; + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE scan_for_share_targets_end_; + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE advertise_device_presence_start_; + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE advertise_device_presence_end_; + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE send_initialization_; + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE receive_initialization_; + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE discover_share_target_; + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE send_introduction_; + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE receive_introduction_; + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE respond_introduction_; + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE send_attachments_start_; + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE send_attachments_end_; + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE receive_attachments_start_; + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE receive_attachments_end_; + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE cancel_sending_attachments_; + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE cancel_receiving_attachments_; + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE open_received_attachments_; + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE launch_activity_; + ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE add_contact_; + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE remove_contact_; + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE fast_share_server_response_; + ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE send_start_; + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE accept_fast_initialization_; + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE set_data_usage_; + int event_type_; + int log_source_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr files_migration_phase_; + ::google::protobuf::internal::ArenaStringPtr app_version_; + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE dismiss_fast_initialization_; + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE cancel_connection_; + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE dismiss_privacy_notification_; + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE tap_privacy_notification_; + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE tap_help_; + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE tap_feedback_; + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE add_quick_settings_tile_; + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE remove_quick_settings_tile_; + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE launch_phone_consent_; + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE tap_quick_settings_tile_; + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE install_apk_status_; + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE verify_apk_status_; + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE launch_consent_; + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE process_received_attachments_end_; + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE toggle_show_notification_; + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE set_device_name_; + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE decline_agreements_; + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE request_setting_permissions_; + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE device_settings_; + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE establish_connection_; + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE auto_dismiss_fast_initialization_; + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE event_metadata_; + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE app_crash_; + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE tap_quick_settings_file_share_; + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE app_info_; + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE display_privacy_notification_; + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE display_phone_consent_; + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE preferences_usage_; + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE default_opt_in_; + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE setup_wizard_; + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE tap_qr_code_; + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE qr_code_link_shown_; + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE parsing_failed_endpoint_id_; + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE fast_init_discover_device_; + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE send_desktop_notification_; + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE send_desktop_transfer_event_; + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE set_account_; + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE decrypt_certificate_failure_; + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE show_allow_permission_auto_access_; + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE show_waiting_for_accept_; + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE high_quality_medium_setup_; + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE rpc_call_status_; + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE start_qr_code_session_; + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE qr_code_opened_in_web_client_; + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE hats_joint_event_; + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE receive_previews_; + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE cloud_create_sharing_request_; + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE cloud_register_receiver_; + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE cloud_upload_start_; + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE cloud_upload_end_; + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE cloud_download_start_; + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE cloud_download_end_; + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE cloud_sharing_rpc_result_; + int event_category_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<42> SharingLog_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SharingLog_AppInfo // optional string app_version = 1; -inline bool SharingLog_AppInfo::_internal_has_app_version() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AppInfo::has_app_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AppInfo::has_app_version() const { - return _internal_has_app_version(); -} inline void SharingLog_AppInfo::clear_app_version() { - app_version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_AppInfo::app_version() const { +inline const ::std::string& SharingLog_AppInfo::app_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_version) return _internal_app_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AppInfo::set_app_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AppInfo::set_app_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.app_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_version) } -inline std::string* SharingLog_AppInfo::mutable_app_version() { - std::string* _s = _internal_mutable_app_version(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::mutable_app_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_app_version(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_version) return _s; } -inline const std::string& SharingLog_AppInfo::_internal_app_version() const { - return app_version_.Get(); +inline const ::std::string& SharingLog_AppInfo::_internal_app_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.app_version_.Get(); } -inline void SharingLog_AppInfo::_internal_set_app_version(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AppInfo::_internal_set_app_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_version_.Set(value, GetArena()); } -inline std::string* SharingLog_AppInfo::_internal_mutable_app_version() { - _has_bits_[0] |= 0x00000001u; - return app_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::_internal_mutable_app_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.app_version_.Mutable( GetArena()); } -inline std::string* SharingLog_AppInfo::release_app_version() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AppInfo::release_app_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_version) - if (!_internal_has_app_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = app_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.app_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.app_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AppInfo::set_allocated_app_version(std::string* app_version) { - if (app_version != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_AppInfo::set_allocated_app_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - app_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.app_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.app_version_.IsDefault()) { + _impl_.app_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_version) } // optional string app_language = 2; -inline bool SharingLog_AppInfo::_internal_has_app_language() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_AppInfo::has_app_language() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_AppInfo::has_app_language() const { - return _internal_has_app_language(); -} inline void SharingLog_AppInfo::clear_app_language() { - app_language_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_language_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharingLog_AppInfo::app_language() const { +inline const ::std::string& SharingLog_AppInfo::app_language() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_language) return _internal_app_language(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AppInfo::set_app_language(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - app_language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AppInfo::set_app_language(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.app_language_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_language) } -inline std::string* SharingLog_AppInfo::mutable_app_language() { - std::string* _s = _internal_mutable_app_language(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::mutable_app_language() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_app_language(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_language) return _s; } -inline const std::string& SharingLog_AppInfo::_internal_app_language() const { - return app_language_.Get(); +inline const ::std::string& SharingLog_AppInfo::_internal_app_language() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.app_language_.Get(); } -inline void SharingLog_AppInfo::_internal_set_app_language(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - app_language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AppInfo::_internal_set_app_language(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_language_.Set(value, GetArena()); } -inline std::string* SharingLog_AppInfo::_internal_mutable_app_language() { - _has_bits_[0] |= 0x00000002u; - return app_language_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::_internal_mutable_app_language() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.app_language_.Mutable( GetArena()); } -inline std::string* SharingLog_AppInfo::release_app_language() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AppInfo::release_app_language() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_language) - if (!_internal_has_app_language()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = app_language_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_language_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_language_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.app_language_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.app_language_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AppInfo::set_allocated_app_language(std::string* app_language) { - if (app_language != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog_AppInfo::set_allocated_app_language(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - app_language_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_language, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_language_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_language_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.app_language_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.app_language_.IsDefault()) { + _impl_.app_language_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AppInfo.app_language) } // optional string update_track = 3; -inline bool SharingLog_AppInfo::_internal_has_update_track() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_AppInfo::has_update_track() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_AppInfo::has_update_track() const { - return _internal_has_update_track(); -} inline void SharingLog_AppInfo::clear_update_track() { - update_track_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.update_track_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& SharingLog_AppInfo::update_track() const { +inline const ::std::string& SharingLog_AppInfo::update_track() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppInfo.update_track) return _internal_update_track(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AppInfo::set_update_track(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - update_track_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AppInfo::set_update_track(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.update_track_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppInfo.update_track) } -inline std::string* SharingLog_AppInfo::mutable_update_track() { - std::string* _s = _internal_mutable_update_track(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::mutable_update_track() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_update_track(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AppInfo.update_track) return _s; } -inline const std::string& SharingLog_AppInfo::_internal_update_track() const { - return update_track_.Get(); +inline const ::std::string& SharingLog_AppInfo::_internal_update_track() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.update_track_.Get(); } -inline void SharingLog_AppInfo::_internal_set_update_track(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - update_track_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AppInfo::_internal_set_update_track(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.update_track_.Set(value, GetArena()); } -inline std::string* SharingLog_AppInfo::_internal_mutable_update_track() { - _has_bits_[0] |= 0x00000004u; - return update_track_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppInfo::_internal_mutable_update_track() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.update_track_.Mutable( GetArena()); } -inline std::string* SharingLog_AppInfo::release_update_track() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AppInfo::release_update_track() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AppInfo.update_track) - if (!_internal_has_update_track()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = update_track_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (update_track_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - update_track_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.update_track_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.update_track_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AppInfo::set_allocated_update_track(std::string* update_track) { - if (update_track != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void SharingLog_AppInfo::set_allocated_update_track(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - update_track_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), update_track, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (update_track_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - update_track_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.update_track_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.update_track_.IsDefault()) { + _impl_.update_track_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AppInfo.update_track) } @@ -18519,464 +21400,496 @@ inline void SharingLog_AppInfo::set_allocated_update_track(std::string* update_t // SharingLog_DeviceSettings // optional .location.nearby.proto.sharing.Visibility visibility = 1; -inline bool SharingLog_DeviceSettings::_internal_has_visibility() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_DeviceSettings::has_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_DeviceSettings::has_visibility() const { - return _internal_has_visibility(); -} inline void SharingLog_DeviceSettings::clear_visibility() { - visibility_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_DeviceSettings::_internal_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_DeviceSettings::visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.visibility) return _internal_visibility(); } -inline void SharingLog_DeviceSettings::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - visibility_ = value; -} inline void SharingLog_DeviceSettings::set_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_DeviceSettings::_internal_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.visibility_); +} +inline void SharingLog_DeviceSettings::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.visibility_ = value; +} // optional .location.nearby.proto.sharing.DataUsage data_usage = 2; -inline bool SharingLog_DeviceSettings::_internal_has_data_usage() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_DeviceSettings::has_data_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_DeviceSettings::has_data_usage() const { - return _internal_has_data_usage(); -} inline void SharingLog_DeviceSettings::clear_data_usage() { - data_usage_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_DeviceSettings::_internal_data_usage() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(data_usage_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_usage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_DeviceSettings::data_usage() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.data_usage) return _internal_data_usage(); } -inline void SharingLog_DeviceSettings::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - data_usage_ = value; -} inline void SharingLog_DeviceSettings::set_data_usage(::location::nearby::proto::sharing::DataUsage value) { _internal_set_data_usage(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.data_usage) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_DeviceSettings::_internal_data_usage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.data_usage_); +} +inline void SharingLog_DeviceSettings::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.data_usage_ = value; +} // optional int32 device_name_size = 3; -inline bool SharingLog_DeviceSettings::_internal_has_device_name_size() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_DeviceSettings::has_device_name_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_DeviceSettings::has_device_name_size() const { - return _internal_has_device_name_size(); -} inline void SharingLog_DeviceSettings::clear_device_name_size() { - device_name_size_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t SharingLog_DeviceSettings::_internal_device_name_size() const { - return device_name_size_; -} -inline int32_t SharingLog_DeviceSettings::device_name_size() const { +inline ::int32_t SharingLog_DeviceSettings::device_name_size() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.device_name_size) return _internal_device_name_size(); } -inline void SharingLog_DeviceSettings::_internal_set_device_name_size(int32_t value) { - _has_bits_[0] |= 0x00000004u; - device_name_size_ = value; -} -inline void SharingLog_DeviceSettings::set_device_name_size(int32_t value) { +inline void SharingLog_DeviceSettings::set_device_name_size(::int32_t value) { _internal_set_device_name_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.device_name_size) } +inline ::int32_t SharingLog_DeviceSettings::_internal_device_name_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_size_; +} +inline void SharingLog_DeviceSettings::_internal_set_device_name_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = value; +} // optional bool is_show_notification_enabled = 4; -inline bool SharingLog_DeviceSettings::_internal_has_is_show_notification_enabled() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_DeviceSettings::has_is_show_notification_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_DeviceSettings::has_is_show_notification_enabled() const { - return _internal_has_is_show_notification_enabled(); -} inline void SharingLog_DeviceSettings::clear_is_show_notification_enabled() { - is_show_notification_enabled_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool SharingLog_DeviceSettings::_internal_is_show_notification_enabled() const { - return is_show_notification_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_show_notification_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool SharingLog_DeviceSettings::is_show_notification_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_show_notification_enabled) return _internal_is_show_notification_enabled(); } -inline void SharingLog_DeviceSettings::_internal_set_is_show_notification_enabled(bool value) { - _has_bits_[0] |= 0x00000008u; - is_show_notification_enabled_ = value; -} inline void SharingLog_DeviceSettings::set_is_show_notification_enabled(bool value) { _internal_set_is_show_notification_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_show_notification_enabled) } +inline bool SharingLog_DeviceSettings::_internal_is_show_notification_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_show_notification_enabled_; +} +inline void SharingLog_DeviceSettings::_internal_set_is_show_notification_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_show_notification_enabled_ = value; +} // optional bool is_bt_enabled = 5; -inline bool SharingLog_DeviceSettings::_internal_has_is_bt_enabled() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_DeviceSettings::has_is_bt_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_DeviceSettings::has_is_bt_enabled() const { - return _internal_has_is_bt_enabled(); -} inline void SharingLog_DeviceSettings::clear_is_bt_enabled() { - is_bt_enabled_ = false; - _has_bits_[0] &= ~0x00000010u; -} -inline bool SharingLog_DeviceSettings::_internal_is_bt_enabled() const { - return is_bt_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_bt_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool SharingLog_DeviceSettings::is_bt_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_bt_enabled) return _internal_is_bt_enabled(); } -inline void SharingLog_DeviceSettings::_internal_set_is_bt_enabled(bool value) { - _has_bits_[0] |= 0x00000010u; - is_bt_enabled_ = value; -} inline void SharingLog_DeviceSettings::set_is_bt_enabled(bool value) { _internal_set_is_bt_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_bt_enabled) } +inline bool SharingLog_DeviceSettings::_internal_is_bt_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_bt_enabled_; +} +inline void SharingLog_DeviceSettings::_internal_set_is_bt_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_bt_enabled_ = value; +} // optional bool is_location_enabled = 6; -inline bool SharingLog_DeviceSettings::_internal_has_is_location_enabled() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_DeviceSettings::has_is_location_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_DeviceSettings::has_is_location_enabled() const { - return _internal_has_is_location_enabled(); -} inline void SharingLog_DeviceSettings::clear_is_location_enabled() { - is_location_enabled_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool SharingLog_DeviceSettings::_internal_is_location_enabled() const { - return is_location_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_location_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool SharingLog_DeviceSettings::is_location_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_location_enabled) return _internal_is_location_enabled(); } -inline void SharingLog_DeviceSettings::_internal_set_is_location_enabled(bool value) { - _has_bits_[0] |= 0x00000020u; - is_location_enabled_ = value; -} inline void SharingLog_DeviceSettings::set_is_location_enabled(bool value) { _internal_set_is_location_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_location_enabled) } +inline bool SharingLog_DeviceSettings::_internal_is_location_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_location_enabled_; +} +inline void SharingLog_DeviceSettings::_internal_set_is_location_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_location_enabled_ = value; +} // optional bool is_wifi_enabled = 7; -inline bool SharingLog_DeviceSettings::_internal_has_is_wifi_enabled() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_DeviceSettings::has_is_wifi_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_DeviceSettings::has_is_wifi_enabled() const { - return _internal_has_is_wifi_enabled(); -} inline void SharingLog_DeviceSettings::clear_is_wifi_enabled() { - is_wifi_enabled_ = false; - _has_bits_[0] &= ~0x00000040u; -} -inline bool SharingLog_DeviceSettings::_internal_is_wifi_enabled() const { - return is_wifi_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_wifi_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool SharingLog_DeviceSettings::is_wifi_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_wifi_enabled) return _internal_is_wifi_enabled(); } -inline void SharingLog_DeviceSettings::_internal_set_is_wifi_enabled(bool value) { - _has_bits_[0] |= 0x00000040u; - is_wifi_enabled_ = value; -} inline void SharingLog_DeviceSettings::set_is_wifi_enabled(bool value) { _internal_set_is_wifi_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.is_wifi_enabled) } +inline bool SharingLog_DeviceSettings::_internal_is_wifi_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_wifi_enabled_; +} +inline void SharingLog_DeviceSettings::_internal_set_is_wifi_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_wifi_enabled_ = value; +} // optional int32 first_successful_transfer_date = 8; -inline bool SharingLog_DeviceSettings::_internal_has_first_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_DeviceSettings::has_first_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_DeviceSettings::has_first_successful_transfer_date() const { - return _internal_has_first_successful_transfer_date(); -} inline void SharingLog_DeviceSettings::clear_first_successful_transfer_date() { - first_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t SharingLog_DeviceSettings::_internal_first_successful_transfer_date() const { - return first_successful_transfer_date_; -} -inline int32_t SharingLog_DeviceSettings::first_successful_transfer_date() const { +inline ::int32_t SharingLog_DeviceSettings::first_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.first_successful_transfer_date) return _internal_first_successful_transfer_date(); } -inline void SharingLog_DeviceSettings::_internal_set_first_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000080u; - first_successful_transfer_date_ = value; -} -inline void SharingLog_DeviceSettings::set_first_successful_transfer_date(int32_t value) { +inline void SharingLog_DeviceSettings::set_first_successful_transfer_date(::int32_t value) { _internal_set_first_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.first_successful_transfer_date) } +inline ::int32_t SharingLog_DeviceSettings::_internal_first_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.first_successful_transfer_date_; +} +inline void SharingLog_DeviceSettings::_internal_set_first_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = value; +} // optional int32 previous_successful_transfer_date = 9; -inline bool SharingLog_DeviceSettings::_internal_has_previous_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_DeviceSettings::has_previous_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool SharingLog_DeviceSettings::has_previous_successful_transfer_date() const { - return _internal_has_previous_successful_transfer_date(); -} inline void SharingLog_DeviceSettings::clear_previous_successful_transfer_date() { - previous_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t SharingLog_DeviceSettings::_internal_previous_successful_transfer_date() const { - return previous_successful_transfer_date_; -} -inline int32_t SharingLog_DeviceSettings::previous_successful_transfer_date() const { +inline ::int32_t SharingLog_DeviceSettings::previous_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.previous_successful_transfer_date) return _internal_previous_successful_transfer_date(); } -inline void SharingLog_DeviceSettings::_internal_set_previous_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000100u; - previous_successful_transfer_date_ = value; -} -inline void SharingLog_DeviceSettings::set_previous_successful_transfer_date(int32_t value) { +inline void SharingLog_DeviceSettings::set_previous_successful_transfer_date(::int32_t value) { _internal_set_previous_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.previous_successful_transfer_date) } +inline ::int32_t SharingLog_DeviceSettings::_internal_previous_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.previous_successful_transfer_date_; +} +inline void SharingLog_DeviceSettings::_internal_set_previous_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = value; +} // optional int32 lifetime_transfer_count = 10; -inline bool SharingLog_DeviceSettings::_internal_has_lifetime_transfer_count() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_DeviceSettings::has_lifetime_transfer_count() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_DeviceSettings::has_lifetime_transfer_count() const { - return _internal_has_lifetime_transfer_count(); -} inline void SharingLog_DeviceSettings::clear_lifetime_transfer_count() { - lifetime_transfer_count_ = 0; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int32_t SharingLog_DeviceSettings::_internal_lifetime_transfer_count() const { - return lifetime_transfer_count_; -} -inline int32_t SharingLog_DeviceSettings::lifetime_transfer_count() const { +inline ::int32_t SharingLog_DeviceSettings::lifetime_transfer_count() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.lifetime_transfer_count) return _internal_lifetime_transfer_count(); } -inline void SharingLog_DeviceSettings::_internal_set_lifetime_transfer_count(int32_t value) { - _has_bits_[0] |= 0x00000200u; - lifetime_transfer_count_ = value; -} -inline void SharingLog_DeviceSettings::set_lifetime_transfer_count(int32_t value) { +inline void SharingLog_DeviceSettings::set_lifetime_transfer_count(::int32_t value) { _internal_set_lifetime_transfer_count(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.lifetime_transfer_count) } +inline ::int32_t SharingLog_DeviceSettings::_internal_lifetime_transfer_count() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.lifetime_transfer_count_; +} +inline void SharingLog_DeviceSettings::_internal_set_lifetime_transfer_count(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = value; +} // optional .location.nearby.proto.sharing.ContactAccess contact_access = 11; -inline bool SharingLog_DeviceSettings::_internal_has_contact_access() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool SharingLog_DeviceSettings::has_contact_access() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool SharingLog_DeviceSettings::has_contact_access() const { - return _internal_has_contact_access(); -} inline void SharingLog_DeviceSettings::clear_contact_access() { - contact_access_ = 0; - _has_bits_[0] &= ~0x00000400u; -} -inline ::location::nearby::proto::sharing::ContactAccess SharingLog_DeviceSettings::_internal_contact_access() const { - return static_cast< ::location::nearby::proto::sharing::ContactAccess >(contact_access_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.contact_access_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::location::nearby::proto::sharing::ContactAccess SharingLog_DeviceSettings::contact_access() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.contact_access) return _internal_contact_access(); } -inline void SharingLog_DeviceSettings::_internal_set_contact_access(::location::nearby::proto::sharing::ContactAccess value) { - assert(::location::nearby::proto::sharing::ContactAccess_IsValid(value)); - _has_bits_[0] |= 0x00000400u; - contact_access_ = value; -} inline void SharingLog_DeviceSettings::set_contact_access(::location::nearby::proto::sharing::ContactAccess value) { _internal_set_contact_access(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.contact_access) } +inline ::location::nearby::proto::sharing::ContactAccess SharingLog_DeviceSettings::_internal_contact_access() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ContactAccess>(_impl_.contact_access_); +} +inline void SharingLog_DeviceSettings::_internal_set_contact_access(::location::nearby::proto::sharing::ContactAccess value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ContactAccess_internal_data_)); + _impl_.contact_access_ = value; +} // optional .location.nearby.proto.sharing.IdentityVerification identity_verification = 12; -inline bool SharingLog_DeviceSettings::_internal_has_identity_verification() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool SharingLog_DeviceSettings::has_identity_verification() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool SharingLog_DeviceSettings::has_identity_verification() const { - return _internal_has_identity_verification(); -} inline void SharingLog_DeviceSettings::clear_identity_verification() { - identity_verification_ = 0; - _has_bits_[0] &= ~0x00000800u; -} -inline ::location::nearby::proto::sharing::IdentityVerification SharingLog_DeviceSettings::_internal_identity_verification() const { - return static_cast< ::location::nearby::proto::sharing::IdentityVerification >(identity_verification_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.identity_verification_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::location::nearby::proto::sharing::IdentityVerification SharingLog_DeviceSettings::identity_verification() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.identity_verification) return _internal_identity_verification(); } -inline void SharingLog_DeviceSettings::_internal_set_identity_verification(::location::nearby::proto::sharing::IdentityVerification value) { - assert(::location::nearby::proto::sharing::IdentityVerification_IsValid(value)); - _has_bits_[0] |= 0x00000800u; - identity_verification_ = value; -} inline void SharingLog_DeviceSettings::set_identity_verification(::location::nearby::proto::sharing::IdentityVerification value) { _internal_set_identity_verification(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DeviceSettings.identity_verification) } +inline ::location::nearby::proto::sharing::IdentityVerification SharingLog_DeviceSettings::_internal_identity_verification() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::IdentityVerification>(_impl_.identity_verification_); +} +inline void SharingLog_DeviceSettings::_internal_set_identity_verification(::location::nearby::proto::sharing::IdentityVerification value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::IdentityVerification_internal_data_)); + _impl_.identity_verification_ = value; +} // ------------------------------------------------------------------- // SharingLog_PreferencesUsage // optional .location.nearby.proto.sharing.PreferencesAction action = 1; -inline bool SharingLog_PreferencesUsage::_internal_has_action() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_PreferencesUsage::has_action() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_PreferencesUsage::has_action() const { - return _internal_has_action(); -} inline void SharingLog_PreferencesUsage::clear_action() { - action_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_action() const { - return static_cast< ::location::nearby::proto::sharing::PreferencesAction >(action_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::action() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.action) return _internal_action(); } -inline void SharingLog_PreferencesUsage::_internal_set_action(::location::nearby::proto::sharing::PreferencesAction value) { - assert(::location::nearby::proto::sharing::PreferencesAction_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - action_ = value; -} inline void SharingLog_PreferencesUsage::set_action(::location::nearby::proto::sharing::PreferencesAction value) { _internal_set_action(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.action) } +inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_action() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PreferencesAction>(_impl_.action_); +} +inline void SharingLog_PreferencesUsage::_internal_set_action(::location::nearby::proto::sharing::PreferencesAction value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PreferencesAction_internal_data_)); + _impl_.action_ = value; +} // optional .location.nearby.proto.sharing.PreferencesActionStatus action_status = 2; -inline bool SharingLog_PreferencesUsage::_internal_has_action_status() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_PreferencesUsage::has_action_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_PreferencesUsage::has_action_status() const { - return _internal_has_action_status(); -} inline void SharingLog_PreferencesUsage::clear_action_status() { - action_status_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::PreferencesActionStatus SharingLog_PreferencesUsage::_internal_action_status() const { - return static_cast< ::location::nearby::proto::sharing::PreferencesActionStatus >(action_status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::PreferencesActionStatus SharingLog_PreferencesUsage::action_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.action_status) return _internal_action_status(); } -inline void SharingLog_PreferencesUsage::_internal_set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value) { - assert(::location::nearby::proto::sharing::PreferencesActionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - action_status_ = value; -} inline void SharingLog_PreferencesUsage::set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value) { _internal_set_action_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.action_status) } +inline ::location::nearby::proto::sharing::PreferencesActionStatus SharingLog_PreferencesUsage::_internal_action_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PreferencesActionStatus>(_impl_.action_status_); +} +inline void SharingLog_PreferencesUsage::_internal_set_action_status(::location::nearby::proto::sharing::PreferencesActionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PreferencesActionStatus_internal_data_)); + _impl_.action_status_ = value; +} // optional .location.nearby.proto.sharing.PreferencesAction prev_sub_action = 3; -inline bool SharingLog_PreferencesUsage::_internal_has_prev_sub_action() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_PreferencesUsage::has_prev_sub_action() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_PreferencesUsage::has_prev_sub_action() const { - return _internal_has_prev_sub_action(); -} inline void SharingLog_PreferencesUsage::clear_prev_sub_action() { - prev_sub_action_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_prev_sub_action() const { - return static_cast< ::location::nearby::proto::sharing::PreferencesAction >(prev_sub_action_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.prev_sub_action_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::prev_sub_action() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.prev_sub_action) return _internal_prev_sub_action(); } -inline void SharingLog_PreferencesUsage::_internal_set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { - assert(::location::nearby::proto::sharing::PreferencesAction_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - prev_sub_action_ = value; -} inline void SharingLog_PreferencesUsage::set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { _internal_set_prev_sub_action(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.prev_sub_action) } +inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_prev_sub_action() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PreferencesAction>(_impl_.prev_sub_action_); +} +inline void SharingLog_PreferencesUsage::_internal_set_prev_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PreferencesAction_internal_data_)); + _impl_.prev_sub_action_ = value; +} // optional .location.nearby.proto.sharing.PreferencesAction next_sub_action = 4; -inline bool SharingLog_PreferencesUsage::_internal_has_next_sub_action() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_PreferencesUsage::has_next_sub_action() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_PreferencesUsage::has_next_sub_action() const { - return _internal_has_next_sub_action(); -} inline void SharingLog_PreferencesUsage::clear_next_sub_action() { - next_sub_action_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_next_sub_action() const { - return static_cast< ::location::nearby::proto::sharing::PreferencesAction >(next_sub_action_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_sub_action_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::next_sub_action() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.next_sub_action) return _internal_next_sub_action(); } -inline void SharingLog_PreferencesUsage::_internal_set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { - assert(::location::nearby::proto::sharing::PreferencesAction_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - next_sub_action_ = value; -} inline void SharingLog_PreferencesUsage::set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { _internal_set_next_sub_action(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.PreferencesUsage.next_sub_action) } +inline ::location::nearby::proto::sharing::PreferencesAction SharingLog_PreferencesUsage::_internal_next_sub_action() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PreferencesAction>(_impl_.next_sub_action_); +} +inline void SharingLog_PreferencesUsage::_internal_set_next_sub_action(::location::nearby::proto::sharing::PreferencesAction value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PreferencesAction_internal_data_)); + _impl_.next_sub_action_ = value; +} // ------------------------------------------------------------------- @@ -18987,446 +21900,469 @@ inline void SharingLog_PreferencesUsage::set_next_sub_action(::location::nearby: // SharingLog_EstablishConnection // optional .location.nearby.proto.sharing.EstablishConnectionStatus status = 1; -inline bool SharingLog_EstablishConnection::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_EstablishConnection::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_EstablishConnection::has_status() const { - return _internal_has_status(); -} inline void SharingLog_EstablishConnection::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::sharing::EstablishConnectionStatus SharingLog_EstablishConnection::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::EstablishConnectionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::EstablishConnectionStatus SharingLog_EstablishConnection::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.status) return _internal_status(); } -inline void SharingLog_EstablishConnection::_internal_set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value) { - assert(::location::nearby::proto::sharing::EstablishConnectionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - status_ = value; -} inline void SharingLog_EstablishConnection::set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.status) } +inline ::location::nearby::proto::sharing::EstablishConnectionStatus SharingLog_EstablishConnection::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::EstablishConnectionStatus>(_impl_.status_); +} +inline void SharingLog_EstablishConnection::_internal_set_status(::location::nearby::proto::sharing::EstablishConnectionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::EstablishConnectionStatus_internal_data_)); + _impl_.status_ = value; +} // optional int64 session_id = 2; -inline bool SharingLog_EstablishConnection::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_EstablishConnection::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_EstablishConnection::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_EstablishConnection::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_EstablishConnection::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_EstablishConnection::session_id() const { +inline ::int64_t SharingLog_EstablishConnection::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.session_id) return _internal_session_id(); } -inline void SharingLog_EstablishConnection::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000008u; - session_id_ = value; -} -inline void SharingLog_EstablishConnection::set_session_id(int64_t value) { +inline void SharingLog_EstablishConnection::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.session_id) } +inline ::int64_t SharingLog_EstablishConnection::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_EstablishConnection::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int32 transfer_position = 3; -inline bool SharingLog_EstablishConnection::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_EstablishConnection::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_EstablishConnection::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_EstablishConnection::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t SharingLog_EstablishConnection::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_EstablishConnection::transfer_position() const { +inline ::int32_t SharingLog_EstablishConnection::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_EstablishConnection::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000020u; - transfer_position_ = value; -} -inline void SharingLog_EstablishConnection::set_transfer_position(int32_t value) { +inline void SharingLog_EstablishConnection::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.transfer_position) } +inline ::int32_t SharingLog_EstablishConnection::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_EstablishConnection::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 4; -inline bool SharingLog_EstablishConnection::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_EstablishConnection::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_EstablishConnection::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_EstablishConnection::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t SharingLog_EstablishConnection::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_EstablishConnection::concurrent_connections() const { +inline ::int32_t SharingLog_EstablishConnection::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_EstablishConnection::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000080u; - concurrent_connections_ = value; -} -inline void SharingLog_EstablishConnection::set_concurrent_connections(int32_t value) { +inline void SharingLog_EstablishConnection::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.concurrent_connections) } +inline ::int32_t SharingLog_EstablishConnection::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_EstablishConnection::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // optional int64 duration_millis = 5; -inline bool SharingLog_EstablishConnection::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_EstablishConnection::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_EstablishConnection::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_EstablishConnection::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int64_t SharingLog_EstablishConnection::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_EstablishConnection::duration_millis() const { +inline ::int64_t SharingLog_EstablishConnection::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_EstablishConnection::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000040u; - duration_millis_ = value; -} -inline void SharingLog_EstablishConnection::set_duration_millis(int64_t value) { +inline void SharingLog_EstablishConnection::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.duration_millis) } +inline ::int64_t SharingLog_EstablishConnection::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_EstablishConnection::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; -inline bool SharingLog_EstablishConnection::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_EstablishConnection::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_EstablishConnection::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_EstablishConnection::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_EstablishConnection::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_EstablishConnection::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_EstablishConnection::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.share_target_info) return _internal_share_target_info(); } inline void SharingLog_EstablishConnection::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_EstablishConnection::release_share_target_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_EstablishConnection::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_EstablishConnection::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_EstablishConnection::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.share_target_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_EstablishConnection::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000002u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_EstablishConnection::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_EstablishConnection::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_EstablishConnection::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.share_target_info) return _msg; } -inline void SharingLog_EstablishConnection::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_EstablishConnection::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.share_target_info) } // optional string referrer_name = 7; -inline bool SharingLog_EstablishConnection::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_EstablishConnection::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_EstablishConnection::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_EstablishConnection::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_EstablishConnection::referrer_name() const { +inline const ::std::string& SharingLog_EstablishConnection::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_EstablishConnection::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_EstablishConnection::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.referrer_name) } -inline std::string* SharingLog_EstablishConnection::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EstablishConnection::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.referrer_name) return _s; } -inline const std::string& SharingLog_EstablishConnection::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_EstablishConnection::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_EstablishConnection::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_EstablishConnection::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_EstablishConnection::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EstablishConnection::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_EstablishConnection::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_EstablishConnection::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_EstablishConnection::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_EstablishConnection::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.referrer_name) } // optional bool qr_code_flow = 8 [deprecated = true]; -inline bool SharingLog_EstablishConnection::_internal_has_qr_code_flow() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_EstablishConnection::has_qr_code_flow() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool SharingLog_EstablishConnection::has_qr_code_flow() const { - return _internal_has_qr_code_flow(); -} inline void SharingLog_EstablishConnection::clear_qr_code_flow() { - qr_code_flow_ = false; - _has_bits_[0] &= ~0x00000100u; -} -inline bool SharingLog_EstablishConnection::_internal_qr_code_flow() const { - return qr_code_flow_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline bool SharingLog_EstablishConnection::qr_code_flow() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_flow) return _internal_qr_code_flow(); } -inline void SharingLog_EstablishConnection::_internal_set_qr_code_flow(bool value) { - _has_bits_[0] |= 0x00000100u; - qr_code_flow_ = value; -} inline void SharingLog_EstablishConnection::set_qr_code_flow(bool value) { _internal_set_qr_code_flow(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_flow) } +inline bool SharingLog_EstablishConnection::_internal_qr_code_flow() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.qr_code_flow_; +} +inline void SharingLog_EstablishConnection::_internal_set_qr_code_flow(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = value; +} // optional bool is_incoming_connection = 9; -inline bool SharingLog_EstablishConnection::_internal_has_is_incoming_connection() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_EstablishConnection::has_is_incoming_connection() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_EstablishConnection::has_is_incoming_connection() const { - return _internal_has_is_incoming_connection(); -} inline void SharingLog_EstablishConnection::clear_is_incoming_connection() { - is_incoming_connection_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool SharingLog_EstablishConnection::_internal_is_incoming_connection() const { - return is_incoming_connection_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_incoming_connection_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool SharingLog_EstablishConnection::is_incoming_connection() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.is_incoming_connection) return _internal_is_incoming_connection(); } -inline void SharingLog_EstablishConnection::_internal_set_is_incoming_connection(bool value) { - _has_bits_[0] |= 0x00000200u; - is_incoming_connection_ = value; -} inline void SharingLog_EstablishConnection::set_is_incoming_connection(bool value) { _internal_set_is_incoming_connection(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.is_incoming_connection) } +inline bool SharingLog_EstablishConnection::_internal_is_incoming_connection() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_incoming_connection_; +} +inline void SharingLog_EstablishConnection::_internal_set_is_incoming_connection(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_incoming_connection_ = value; +} // optional .google.protobuf.Duration qr_code_receiver_connect_latency = 10; -inline bool SharingLog_EstablishConnection::_internal_has_qr_code_receiver_connect_latency() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || qr_code_receiver_connect_latency_ != nullptr); +inline bool SharingLog_EstablishConnection::has_qr_code_receiver_connect_latency() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.qr_code_receiver_connect_latency_ != nullptr); return value; } -inline bool SharingLog_EstablishConnection::has_qr_code_receiver_connect_latency() const { - return _internal_has_qr_code_receiver_connect_latency(); +inline const ::google::protobuf::Duration& SharingLog_EstablishConnection::_internal_qr_code_receiver_connect_latency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.qr_code_receiver_connect_latency_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_EstablishConnection::_internal_qr_code_receiver_connect_latency() const { - const ::PROTOBUF_NAMESPACE_ID::Duration* p = qr_code_receiver_connect_latency_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_EstablishConnection::qr_code_receiver_connect_latency() const { +inline const ::google::protobuf::Duration& SharingLog_EstablishConnection::qr_code_receiver_connect_latency() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_receiver_connect_latency) return _internal_qr_code_receiver_connect_latency(); } inline void SharingLog_EstablishConnection::unsafe_arena_set_allocated_qr_code_receiver_connect_latency( - ::PROTOBUF_NAMESPACE_ID::Duration* qr_code_receiver_connect_latency) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(qr_code_receiver_connect_latency_); + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_receiver_connect_latency_); } - qr_code_receiver_connect_latency_ = qr_code_receiver_connect_latency; - if (qr_code_receiver_connect_latency) { - _has_bits_[0] |= 0x00000004u; + _impl_.qr_code_receiver_connect_latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_receiver_connect_latency) } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_EstablishConnection::release_qr_code_receiver_connect_latency() { - _has_bits_[0] &= ~0x00000004u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = qr_code_receiver_connect_latency_; - qr_code_receiver_connect_latency_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_EstablishConnection::release_qr_code_receiver_connect_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* released = _impl_.qr_code_receiver_connect_latency_; + _impl_.qr_code_receiver_connect_latency_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_EstablishConnection::unsafe_arena_release_qr_code_receiver_connect_latency() { +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_EstablishConnection::unsafe_arena_release_qr_code_receiver_connect_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_receiver_connect_latency) - _has_bits_[0] &= ~0x00000004u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = qr_code_receiver_connect_latency_; - qr_code_receiver_connect_latency_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* temp = _impl_.qr_code_receiver_connect_latency_; + _impl_.qr_code_receiver_connect_latency_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_EstablishConnection::_internal_mutable_qr_code_receiver_connect_latency() { - _has_bits_[0] |= 0x00000004u; - if (qr_code_receiver_connect_latency_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); - qr_code_receiver_connect_latency_ = p; +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_EstablishConnection::_internal_mutable_qr_code_receiver_connect_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_receiver_connect_latency_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.qr_code_receiver_connect_latency_ = reinterpret_cast<::google::protobuf::Duration*>(p); } - return qr_code_receiver_connect_latency_; + return _impl_.qr_code_receiver_connect_latency_; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_EstablishConnection::mutable_qr_code_receiver_connect_latency() { - ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_qr_code_receiver_connect_latency(); +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_EstablishConnection::mutable_qr_code_receiver_connect_latency() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* _msg = _internal_mutable_qr_code_receiver_connect_latency(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_receiver_connect_latency) return _msg; } -inline void SharingLog_EstablishConnection::set_allocated_qr_code_receiver_connect_latency(::PROTOBUF_NAMESPACE_ID::Duration* qr_code_receiver_connect_latency) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_EstablishConnection::set_allocated_qr_code_receiver_connect_latency(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(qr_code_receiver_connect_latency_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_receiver_connect_latency_); } - if (qr_code_receiver_connect_latency) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(qr_code_receiver_connect_latency)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - qr_code_receiver_connect_latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qr_code_receiver_connect_latency, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - qr_code_receiver_connect_latency_ = qr_code_receiver_connect_latency; + + _impl_.qr_code_receiver_connect_latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EstablishConnection.qr_code_receiver_connect_latency) } @@ -19443,827 +22379,876 @@ inline void SharingLog_EstablishConnection::set_allocated_qr_code_receiver_conne // SharingLog_EnableNearbySharing // optional .location.nearby.proto.sharing.NearbySharingStatus status = 1; -inline bool SharingLog_EnableNearbySharing::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_EnableNearbySharing::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_EnableNearbySharing::has_status() const { - return _internal_has_status(); -} inline void SharingLog_EnableNearbySharing::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::NearbySharingStatus SharingLog_EnableNearbySharing::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::NearbySharingStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::NearbySharingStatus SharingLog_EnableNearbySharing::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing.status) return _internal_status(); } -inline void SharingLog_EnableNearbySharing::_internal_set_status(::location::nearby::proto::sharing::NearbySharingStatus value) { - assert(::location::nearby::proto::sharing::NearbySharingStatus_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - status_ = value; -} inline void SharingLog_EnableNearbySharing::set_status(::location::nearby::proto::sharing::NearbySharingStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing.status) } +inline ::location::nearby::proto::sharing::NearbySharingStatus SharingLog_EnableNearbySharing::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::NearbySharingStatus>(_impl_.status_); +} +inline void SharingLog_EnableNearbySharing::_internal_set_status(::location::nearby::proto::sharing::NearbySharingStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::NearbySharingStatus_internal_data_)); + _impl_.status_ = value; +} // optional bool has_opted_in = 2; -inline bool SharingLog_EnableNearbySharing::_internal_has_has_opted_in() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_EnableNearbySharing::has_has_opted_in() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_EnableNearbySharing::has_has_opted_in() const { - return _internal_has_has_opted_in(); -} inline void SharingLog_EnableNearbySharing::clear_has_opted_in() { - has_opted_in_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_EnableNearbySharing::_internal_has_opted_in() const { - return has_opted_in_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_opted_in_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_EnableNearbySharing::has_opted_in() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing.has_opted_in) return _internal_has_opted_in(); } -inline void SharingLog_EnableNearbySharing::_internal_set_has_opted_in(bool value) { - _has_bits_[0] |= 0x00000002u; - has_opted_in_ = value; -} inline void SharingLog_EnableNearbySharing::set_has_opted_in(bool value) { _internal_set_has_opted_in(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing.has_opted_in) } +inline bool SharingLog_EnableNearbySharing::_internal_has_opted_in() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_opted_in_; +} +inline void SharingLog_EnableNearbySharing::_internal_set_has_opted_in(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_opted_in_ = value; +} // ------------------------------------------------------------------- // SharingLog_SetAccount // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; -inline bool SharingLog_SetAccount::_internal_has_activity_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SetAccount::has_activity_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SetAccount::has_activity_name() const { - return _internal_has_activity_name(); -} inline void SharingLog_SetAccount::clear_activity_name() { - activity_name_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetAccount::_internal_activity_name() const { - return static_cast< ::location::nearby::proto::sharing::ActivityName >(activity_name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.activity_name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetAccount::activity_name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetAccount.activity_name) return _internal_activity_name(); } -inline void SharingLog_SetAccount::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { - assert(::location::nearby::proto::sharing::ActivityName_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - activity_name_ = value; -} inline void SharingLog_SetAccount::set_activity_name(::location::nearby::proto::sharing::ActivityName value) { _internal_set_activity_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetAccount.activity_name) } +inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetAccount::_internal_activity_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ActivityName>(_impl_.activity_name_); +} +inline void SharingLog_SetAccount::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ActivityName_internal_data_)); + _impl_.activity_name_ = value; +} // ------------------------------------------------------------------- // SharingLog_SetVisibility // optional .location.nearby.proto.sharing.Visibility visibility = 1; -inline bool SharingLog_SetVisibility::_internal_has_visibility() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SetVisibility::has_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SetVisibility::has_visibility() const { - return _internal_has_visibility(); -} inline void SharingLog_SetVisibility::clear_visibility() { - visibility_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::_internal_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetVisibility.visibility) return _internal_visibility(); } -inline void SharingLog_SetVisibility::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - visibility_ = value; -} inline void SharingLog_SetVisibility::set_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetVisibility.visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::_internal_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.visibility_); +} +inline void SharingLog_SetVisibility::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.visibility_ = value; +} // optional .location.nearby.proto.sharing.Visibility source_visibility = 2; -inline bool SharingLog_SetVisibility::_internal_has_source_visibility() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_SetVisibility::has_source_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_SetVisibility::has_source_visibility() const { - return _internal_has_source_visibility(); -} inline void SharingLog_SetVisibility::clear_source_visibility() { - source_visibility_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::_internal_source_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(source_visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::source_visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetVisibility.source_visibility) return _internal_source_visibility(); } -inline void SharingLog_SetVisibility::_internal_set_source_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - source_visibility_ = value; -} inline void SharingLog_SetVisibility::set_source_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_source_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetVisibility.source_visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_SetVisibility::_internal_source_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.source_visibility_); +} +inline void SharingLog_SetVisibility::_internal_set_source_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.source_visibility_ = value; +} // optional int64 duration_millis = 3; -inline bool SharingLog_SetVisibility::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_SetVisibility::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_SetVisibility::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_SetVisibility::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_SetVisibility::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_SetVisibility::duration_millis() const { +inline ::int64_t SharingLog_SetVisibility::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetVisibility.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_SetVisibility::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - duration_millis_ = value; -} -inline void SharingLog_SetVisibility::set_duration_millis(int64_t value) { +inline void SharingLog_SetVisibility::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetVisibility.duration_millis) } +inline ::int64_t SharingLog_SetVisibility::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_SetVisibility::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 4; -inline bool SharingLog_SetVisibility::_internal_has_source_activity_name() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_SetVisibility::has_source_activity_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_SetVisibility::has_source_activity_name() const { - return _internal_has_source_activity_name(); -} inline void SharingLog_SetVisibility::clear_source_activity_name() { - source_activity_name_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetVisibility::_internal_source_activity_name() const { - return static_cast< ::location::nearby::proto::sharing::ActivityName >(source_activity_name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_activity_name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetVisibility::source_activity_name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetVisibility.source_activity_name) return _internal_source_activity_name(); } -inline void SharingLog_SetVisibility::_internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { - assert(::location::nearby::proto::sharing::ActivityName_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - source_activity_name_ = value; -} inline void SharingLog_SetVisibility::set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { _internal_set_source_activity_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetVisibility.source_activity_name) } +inline ::location::nearby::proto::sharing::ActivityName SharingLog_SetVisibility::_internal_source_activity_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ActivityName>(_impl_.source_activity_name_); +} +inline void SharingLog_SetVisibility::_internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ActivityName_internal_data_)); + _impl_.source_activity_name_ = value; +} // ------------------------------------------------------------------- // SharingLog_SetDataUsage // optional .location.nearby.proto.sharing.DataUsage original_preference = 1; -inline bool SharingLog_SetDataUsage::_internal_has_original_preference() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SetDataUsage::has_original_preference() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SetDataUsage::has_original_preference() const { - return _internal_has_original_preference(); -} inline void SharingLog_SetDataUsage::clear_original_preference() { - original_preference_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::_internal_original_preference() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(original_preference_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.original_preference_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::original_preference() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetDataUsage.original_preference) return _internal_original_preference(); } -inline void SharingLog_SetDataUsage::_internal_set_original_preference(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - original_preference_ = value; -} inline void SharingLog_SetDataUsage::set_original_preference(::location::nearby::proto::sharing::DataUsage value) { _internal_set_original_preference(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetDataUsage.original_preference) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::_internal_original_preference() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.original_preference_); +} +inline void SharingLog_SetDataUsage::_internal_set_original_preference(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.original_preference_ = value; +} // optional .location.nearby.proto.sharing.DataUsage preference = 2; -inline bool SharingLog_SetDataUsage::_internal_has_preference() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_SetDataUsage::has_preference() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_SetDataUsage::has_preference() const { - return _internal_has_preference(); -} inline void SharingLog_SetDataUsage::clear_preference() { - preference_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::_internal_preference() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(preference_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.preference_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::preference() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetDataUsage.preference) return _internal_preference(); } -inline void SharingLog_SetDataUsage::_internal_set_preference(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - preference_ = value; -} inline void SharingLog_SetDataUsage::set_preference(::location::nearby::proto::sharing::DataUsage value) { _internal_set_preference(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetDataUsage.preference) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_SetDataUsage::_internal_preference() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.preference_); +} +inline void SharingLog_SetDataUsage::_internal_set_preference(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.preference_ = value; +} // ------------------------------------------------------------------- // SharingLog_ScanForShareTargetsStart // optional int64 session_id = 1; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ScanForShareTargetsStart::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_ScanForShareTargetsStart::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ScanForShareTargetsStart::session_id() const { +inline ::int64_t SharingLog_ScanForShareTargetsStart::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.session_id) return _internal_session_id(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_ScanForShareTargetsStart::set_session_id(int64_t value) { +inline void SharingLog_ScanForShareTargetsStart::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.session_id) } +inline ::int64_t SharingLog_ScanForShareTargetsStart::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ScanForShareTargetsStart::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .location.nearby.proto.sharing.SessionStatus status = 2; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_status() const { - return _internal_has_status(); -} inline void SharingLog_ScanForShareTargetsStart::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::SessionStatus SharingLog_ScanForShareTargetsStart::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::SessionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::SessionStatus SharingLog_ScanForShareTargetsStart::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.status) return _internal_status(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_status(::location::nearby::proto::sharing::SessionStatus value) { - assert(::location::nearby::proto::sharing::SessionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - status_ = value; -} inline void SharingLog_ScanForShareTargetsStart::set_status(::location::nearby::proto::sharing::SessionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.status) } +inline ::location::nearby::proto::sharing::SessionStatus SharingLog_ScanForShareTargetsStart::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::SessionStatus>(_impl_.status_); +} +inline void SharingLog_ScanForShareTargetsStart::_internal_set_status(::location::nearby::proto::sharing::SessionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::SessionStatus_internal_data_)); + _impl_.status_ = value; +} // optional .location.nearby.proto.sharing.ScanType scan_type = 3; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_scan_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_scan_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_scan_type() const { - return _internal_has_scan_type(); -} inline void SharingLog_ScanForShareTargetsStart::clear_scan_type() { - scan_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::ScanType SharingLog_ScanForShareTargetsStart::_internal_scan_type() const { - return static_cast< ::location::nearby::proto::sharing::ScanType >(scan_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.scan_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::ScanType SharingLog_ScanForShareTargetsStart::scan_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.scan_type) return _internal_scan_type(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { - assert(::location::nearby::proto::sharing::ScanType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - scan_type_ = value; -} inline void SharingLog_ScanForShareTargetsStart::set_scan_type(::location::nearby::proto::sharing::ScanType value) { _internal_set_scan_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.scan_type) } +inline ::location::nearby::proto::sharing::ScanType SharingLog_ScanForShareTargetsStart::_internal_scan_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ScanType>(_impl_.scan_type_); +} +inline void SharingLog_ScanForShareTargetsStart::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ScanType_internal_data_)); + _impl_.scan_type_ = value; +} // optional int64 flow_id = 4; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_flow_id() const { - return _internal_has_flow_id(); -} inline void SharingLog_ScanForShareTargetsStart::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t SharingLog_ScanForShareTargetsStart::_internal_flow_id() const { - return flow_id_; -} -inline int64_t SharingLog_ScanForShareTargetsStart::flow_id() const { +inline ::int64_t SharingLog_ScanForShareTargetsStart::flow_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.flow_id) return _internal_flow_id(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - flow_id_ = value; -} -inline void SharingLog_ScanForShareTargetsStart::set_flow_id(int64_t value) { +inline void SharingLog_ScanForShareTargetsStart::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.flow_id) } +inline ::int64_t SharingLog_ScanForShareTargetsStart::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void SharingLog_ScanForShareTargetsStart::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // optional string referrer_name = 5; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_ScanForShareTargetsStart::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_ScanForShareTargetsStart::referrer_name() const { +inline const ::std::string& SharingLog_ScanForShareTargetsStart::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_ScanForShareTargetsStart::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_ScanForShareTargetsStart::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.referrer_name) } -inline std::string* SharingLog_ScanForShareTargetsStart::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.referrer_name) return _s; } -inline const std::string& SharingLog_ScanForShareTargetsStart::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_ScanForShareTargetsStart::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_ScanForShareTargetsStart::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_ScanForShareTargetsStart::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ScanForShareTargetsStart::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_ScanForShareTargetsStart::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_ScanForShareTargetsStart::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_ScanForShareTargetsStart::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_ScanForShareTargetsStart::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.referrer_name) } // optional bool use_qr_code = 6; -inline bool SharingLog_ScanForShareTargetsStart::_internal_has_use_qr_code() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_ScanForShareTargetsStart::has_use_qr_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_ScanForShareTargetsStart::has_use_qr_code() const { - return _internal_has_use_qr_code(); -} inline void SharingLog_ScanForShareTargetsStart::clear_use_qr_code() { - use_qr_code_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool SharingLog_ScanForShareTargetsStart::_internal_use_qr_code() const { - return use_qr_code_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.use_qr_code_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool SharingLog_ScanForShareTargetsStart::use_qr_code() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.use_qr_code) return _internal_use_qr_code(); } -inline void SharingLog_ScanForShareTargetsStart::_internal_set_use_qr_code(bool value) { - _has_bits_[0] |= 0x00000020u; - use_qr_code_ = value; -} inline void SharingLog_ScanForShareTargetsStart::set_use_qr_code(bool value) { _internal_set_use_qr_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart.use_qr_code) } +inline bool SharingLog_ScanForShareTargetsStart::_internal_use_qr_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.use_qr_code_; +} +inline void SharingLog_ScanForShareTargetsStart::_internal_set_use_qr_code(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.use_qr_code_ = value; +} // ------------------------------------------------------------------- // SharingLog_ScanForShareTargetsEnd // optional int64 session_id = 1; -inline bool SharingLog_ScanForShareTargetsEnd::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ScanForShareTargetsEnd::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ScanForShareTargetsEnd::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ScanForShareTargetsEnd::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_ScanForShareTargetsEnd::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ScanForShareTargetsEnd::session_id() const { +inline ::int64_t SharingLog_ScanForShareTargetsEnd::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd.session_id) return _internal_session_id(); } -inline void SharingLog_ScanForShareTargetsEnd::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - session_id_ = value; -} -inline void SharingLog_ScanForShareTargetsEnd::set_session_id(int64_t value) { +inline void SharingLog_ScanForShareTargetsEnd::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd.session_id) } +inline ::int64_t SharingLog_ScanForShareTargetsEnd::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ScanForShareTargetsEnd::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // ------------------------------------------------------------------- // SharingLog_AdvertiseDevicePresenceStart // optional int64 session_id = 1 [deprecated = true]; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_AdvertiseDevicePresenceStart::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_AdvertiseDevicePresenceStart::session_id() const { +inline ::int64_t SharingLog_AdvertiseDevicePresenceStart::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.session_id) return _internal_session_id(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_AdvertiseDevicePresenceStart::set_session_id(int64_t value) { +inline void SharingLog_AdvertiseDevicePresenceStart::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.session_id) } +inline ::int64_t SharingLog_AdvertiseDevicePresenceStart::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .location.nearby.proto.sharing.Visibility visibility = 2; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_visibility() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_visibility() const { - return _internal_has_visibility(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_visibility() { - visibility_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_AdvertiseDevicePresenceStart::_internal_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_AdvertiseDevicePresenceStart::visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.visibility) return _internal_visibility(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - visibility_ = value; -} inline void SharingLog_AdvertiseDevicePresenceStart::set_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_AdvertiseDevicePresenceStart::_internal_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.visibility_); +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.visibility_ = value; +} // optional .location.nearby.proto.sharing.SessionStatus status = 3; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_status() const { - return _internal_has_status(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::SessionStatus SharingLog_AdvertiseDevicePresenceStart::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::SessionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::SessionStatus SharingLog_AdvertiseDevicePresenceStart::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.status) return _internal_status(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_status(::location::nearby::proto::sharing::SessionStatus value) { - assert(::location::nearby::proto::sharing::SessionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - status_ = value; -} inline void SharingLog_AdvertiseDevicePresenceStart::set_status(::location::nearby::proto::sharing::SessionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.status) } +inline ::location::nearby::proto::sharing::SessionStatus SharingLog_AdvertiseDevicePresenceStart::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::SessionStatus>(_impl_.status_); +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_status(::location::nearby::proto::sharing::SessionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::SessionStatus_internal_data_)); + _impl_.status_ = value; +} // optional .location.nearby.proto.sharing.DataUsage data_usage = 4; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_data_usage() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_data_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_data_usage() const { - return _internal_has_data_usage(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_data_usage() { - data_usage_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_AdvertiseDevicePresenceStart::_internal_data_usage() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(data_usage_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_usage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_AdvertiseDevicePresenceStart::data_usage() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.data_usage) return _internal_data_usage(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - data_usage_ = value; -} inline void SharingLog_AdvertiseDevicePresenceStart::set_data_usage(::location::nearby::proto::sharing::DataUsage value) { _internal_set_data_usage(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.data_usage) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_AdvertiseDevicePresenceStart::_internal_data_usage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.data_usage_); +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.data_usage_ = value; +} // optional int32 device_name_size = 5 [deprecated = true]; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_device_name_size() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_device_name_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_device_name_size() const { - return _internal_has_device_name_size(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_device_name_size() { - device_name_size_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t SharingLog_AdvertiseDevicePresenceStart::_internal_device_name_size() const { - return device_name_size_; -} -inline int32_t SharingLog_AdvertiseDevicePresenceStart::device_name_size() const { +inline ::int32_t SharingLog_AdvertiseDevicePresenceStart::device_name_size() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.device_name_size) return _internal_device_name_size(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_device_name_size(int32_t value) { - _has_bits_[0] |= 0x00000020u; - device_name_size_ = value; -} -inline void SharingLog_AdvertiseDevicePresenceStart::set_device_name_size(int32_t value) { +inline void SharingLog_AdvertiseDevicePresenceStart::set_device_name_size(::int32_t value) { _internal_set_device_name_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.device_name_size) } +inline ::int32_t SharingLog_AdvertiseDevicePresenceStart::_internal_device_name_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_size_; +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_device_name_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = value; +} // optional string referrer_name = 6; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_AdvertiseDevicePresenceStart::referrer_name() const { +inline const ::std::string& SharingLog_AdvertiseDevicePresenceStart::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AdvertiseDevicePresenceStart::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AdvertiseDevicePresenceStart::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.referrer_name) } -inline std::string* SharingLog_AdvertiseDevicePresenceStart::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.referrer_name) return _s; } -inline const std::string& SharingLog_AdvertiseDevicePresenceStart::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_AdvertiseDevicePresenceStart::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_AdvertiseDevicePresenceStart::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AdvertiseDevicePresenceStart::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_AdvertiseDevicePresenceStart::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AdvertiseDevicePresenceStart::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AdvertiseDevicePresenceStart::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_AdvertiseDevicePresenceStart::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.referrer_name) } // optional .location.nearby.proto.sharing.AdvertisingMode advertising_mode = 7; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_advertising_mode() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_advertising_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_advertising_mode() const { - return _internal_has_advertising_mode(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_advertising_mode() { - advertising_mode_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::sharing::AdvertisingMode SharingLog_AdvertiseDevicePresenceStart::_internal_advertising_mode() const { - return static_cast< ::location::nearby::proto::sharing::AdvertisingMode >(advertising_mode_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advertising_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::sharing::AdvertisingMode SharingLog_AdvertiseDevicePresenceStart::advertising_mode() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.advertising_mode) return _internal_advertising_mode(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_advertising_mode(::location::nearby::proto::sharing::AdvertisingMode value) { - assert(::location::nearby::proto::sharing::AdvertisingMode_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - advertising_mode_ = value; -} inline void SharingLog_AdvertiseDevicePresenceStart::set_advertising_mode(::location::nearby::proto::sharing::AdvertisingMode value) { _internal_set_advertising_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.advertising_mode) } +inline ::location::nearby::proto::sharing::AdvertisingMode SharingLog_AdvertiseDevicePresenceStart::_internal_advertising_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AdvertisingMode>(_impl_.advertising_mode_); +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_advertising_mode(::location::nearby::proto::sharing::AdvertisingMode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AdvertisingMode_internal_data_)); + _impl_.advertising_mode_ = value; +} // optional bool qr_code_flow = 8; -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_has_qr_code_flow() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceStart::has_qr_code_flow() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceStart::has_qr_code_flow() const { - return _internal_has_qr_code_flow(); -} inline void SharingLog_AdvertiseDevicePresenceStart::clear_qr_code_flow() { - qr_code_flow_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_qr_code_flow() const { - return qr_code_flow_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool SharingLog_AdvertiseDevicePresenceStart::qr_code_flow() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.qr_code_flow) return _internal_qr_code_flow(); } -inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_qr_code_flow(bool value) { - _has_bits_[0] |= 0x00000080u; - qr_code_flow_ = value; -} inline void SharingLog_AdvertiseDevicePresenceStart::set_qr_code_flow(bool value) { _internal_set_qr_code_flow(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart.qr_code_flow) } +inline bool SharingLog_AdvertiseDevicePresenceStart::_internal_qr_code_flow() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.qr_code_flow_; +} +inline void SharingLog_AdvertiseDevicePresenceStart::_internal_set_qr_code_flow(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = value; +} // ------------------------------------------------------------------- // SharingLog_AdvertiseDevicePresenceEnd // optional int64 session_id = 1 [deprecated = true]; -inline bool SharingLog_AdvertiseDevicePresenceEnd::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AdvertiseDevicePresenceEnd::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AdvertiseDevicePresenceEnd::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_AdvertiseDevicePresenceEnd::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_AdvertiseDevicePresenceEnd::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_AdvertiseDevicePresenceEnd::session_id() const { +inline ::int64_t SharingLog_AdvertiseDevicePresenceEnd::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd.session_id) return _internal_session_id(); } -inline void SharingLog_AdvertiseDevicePresenceEnd::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - session_id_ = value; -} -inline void SharingLog_AdvertiseDevicePresenceEnd::set_session_id(int64_t value) { +inline void SharingLog_AdvertiseDevicePresenceEnd::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd.session_id) } +inline ::int64_t SharingLog_AdvertiseDevicePresenceEnd::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_AdvertiseDevicePresenceEnd::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // ------------------------------------------------------------------- @@ -20274,88 +23259,91 @@ inline void SharingLog_AdvertiseDevicePresenceEnd::set_session_id(int64_t value) // SharingLog_ReceiveFastInitialization // optional int64 time_elapse_since_screen_unlock_millis = 1; -inline bool SharingLog_ReceiveFastInitialization::_internal_has_time_elapse_since_screen_unlock_millis() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ReceiveFastInitialization::has_time_elapse_since_screen_unlock_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ReceiveFastInitialization::has_time_elapse_since_screen_unlock_millis() const { - return _internal_has_time_elapse_since_screen_unlock_millis(); -} inline void SharingLog_ReceiveFastInitialization::clear_time_elapse_since_screen_unlock_millis() { - time_elapse_since_screen_unlock_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.time_elapse_since_screen_unlock_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_ReceiveFastInitialization::_internal_time_elapse_since_screen_unlock_millis() const { - return time_elapse_since_screen_unlock_millis_; -} -inline int64_t SharingLog_ReceiveFastInitialization::time_elapse_since_screen_unlock_millis() const { +inline ::int64_t SharingLog_ReceiveFastInitialization::time_elapse_since_screen_unlock_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.time_elapse_since_screen_unlock_millis) return _internal_time_elapse_since_screen_unlock_millis(); } -inline void SharingLog_ReceiveFastInitialization::_internal_set_time_elapse_since_screen_unlock_millis(int64_t value) { - _has_bits_[0] |= 0x00000001u; - time_elapse_since_screen_unlock_millis_ = value; -} -inline void SharingLog_ReceiveFastInitialization::set_time_elapse_since_screen_unlock_millis(int64_t value) { +inline void SharingLog_ReceiveFastInitialization::set_time_elapse_since_screen_unlock_millis(::int64_t value) { _internal_set_time_elapse_since_screen_unlock_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.time_elapse_since_screen_unlock_millis) } +inline ::int64_t SharingLog_ReceiveFastInitialization::_internal_time_elapse_since_screen_unlock_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.time_elapse_since_screen_unlock_millis_; +} +inline void SharingLog_ReceiveFastInitialization::_internal_set_time_elapse_since_screen_unlock_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.time_elapse_since_screen_unlock_millis_ = value; +} // optional bool notifications_enabled = 2; -inline bool SharingLog_ReceiveFastInitialization::_internal_has_notifications_enabled() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ReceiveFastInitialization::has_notifications_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ReceiveFastInitialization::has_notifications_enabled() const { - return _internal_has_notifications_enabled(); -} inline void SharingLog_ReceiveFastInitialization::clear_notifications_enabled() { - notifications_enabled_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_ReceiveFastInitialization::_internal_notifications_enabled() const { - return notifications_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notifications_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_ReceiveFastInitialization::notifications_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.notifications_enabled) return _internal_notifications_enabled(); } -inline void SharingLog_ReceiveFastInitialization::_internal_set_notifications_enabled(bool value) { - _has_bits_[0] |= 0x00000002u; - notifications_enabled_ = value; -} inline void SharingLog_ReceiveFastInitialization::set_notifications_enabled(bool value) { _internal_set_notifications_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.notifications_enabled) } +inline bool SharingLog_ReceiveFastInitialization::_internal_notifications_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.notifications_enabled_; +} +inline void SharingLog_ReceiveFastInitialization::_internal_set_notifications_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notifications_enabled_ = value; +} // optional bool notifications_filtered = 3; -inline bool SharingLog_ReceiveFastInitialization::_internal_has_notifications_filtered() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ReceiveFastInitialization::has_notifications_filtered() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ReceiveFastInitialization::has_notifications_filtered() const { - return _internal_has_notifications_filtered(); -} inline void SharingLog_ReceiveFastInitialization::clear_notifications_filtered() { - notifications_filtered_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool SharingLog_ReceiveFastInitialization::_internal_notifications_filtered() const { - return notifications_filtered_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notifications_filtered_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool SharingLog_ReceiveFastInitialization::notifications_filtered() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.notifications_filtered) return _internal_notifications_filtered(); } -inline void SharingLog_ReceiveFastInitialization::_internal_set_notifications_filtered(bool value) { - _has_bits_[0] |= 0x00000004u; - notifications_filtered_ = value; -} inline void SharingLog_ReceiveFastInitialization::set_notifications_filtered(bool value) { _internal_set_notifications_filtered(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization.notifications_filtered) } +inline bool SharingLog_ReceiveFastInitialization::_internal_notifications_filtered() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.notifications_filtered_; +} +inline void SharingLog_ReceiveFastInitialization::_internal_set_notifications_filtered(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notifications_filtered_ = value; +} // ------------------------------------------------------------------- @@ -20370,908 +23358,966 @@ inline void SharingLog_ReceiveFastInitialization::set_notifications_filtered(boo // SharingLog_EventMetadata // optional .location.nearby.proto.sharing.SharingUseCase use_case = 1; -inline bool SharingLog_EventMetadata::_internal_has_use_case() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_EventMetadata::has_use_case() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_EventMetadata::has_use_case() const { - return _internal_has_use_case(); -} inline void SharingLog_EventMetadata::clear_use_case() { - use_case_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::sharing::SharingUseCase SharingLog_EventMetadata::_internal_use_case() const { - return static_cast< ::location::nearby::proto::sharing::SharingUseCase >(use_case_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.use_case_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::SharingUseCase SharingLog_EventMetadata::use_case() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.use_case) return _internal_use_case(); } -inline void SharingLog_EventMetadata::_internal_set_use_case(::location::nearby::proto::sharing::SharingUseCase value) { - assert(::location::nearby::proto::sharing::SharingUseCase_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - use_case_ = value; -} inline void SharingLog_EventMetadata::set_use_case(::location::nearby::proto::sharing::SharingUseCase value) { _internal_set_use_case(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.use_case) } +inline ::location::nearby::proto::sharing::SharingUseCase SharingLog_EventMetadata::_internal_use_case() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::SharingUseCase>(_impl_.use_case_); +} +inline void SharingLog_EventMetadata::_internal_set_use_case(::location::nearby::proto::sharing::SharingUseCase value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::SharingUseCase_internal_data_)); + _impl_.use_case_ = value; +} // optional bool initial_opt_in = 2 [deprecated = true]; -inline bool SharingLog_EventMetadata::_internal_has_initial_opt_in() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_EventMetadata::has_initial_opt_in() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_EventMetadata::has_initial_opt_in() const { - return _internal_has_initial_opt_in(); -} inline void SharingLog_EventMetadata::clear_initial_opt_in() { - initial_opt_in_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool SharingLog_EventMetadata::_internal_initial_opt_in() const { - return initial_opt_in_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.initial_opt_in_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool SharingLog_EventMetadata::initial_opt_in() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.initial_opt_in) return _internal_initial_opt_in(); } -inline void SharingLog_EventMetadata::_internal_set_initial_opt_in(bool value) { - _has_bits_[0] |= 0x00000020u; - initial_opt_in_ = value; -} inline void SharingLog_EventMetadata::set_initial_opt_in(bool value) { _internal_set_initial_opt_in(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.initial_opt_in) } +inline bool SharingLog_EventMetadata::_internal_initial_opt_in() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.initial_opt_in_; +} +inline void SharingLog_EventMetadata::_internal_set_initial_opt_in(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.initial_opt_in_ = value; +} // optional bool opt_in = 3 [deprecated = true]; -inline bool SharingLog_EventMetadata::_internal_has_opt_in() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_EventMetadata::has_opt_in() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_EventMetadata::has_opt_in() const { - return _internal_has_opt_in(); -} inline void SharingLog_EventMetadata::clear_opt_in() { - opt_in_ = false; - _has_bits_[0] &= ~0x00000040u; -} -inline bool SharingLog_EventMetadata::_internal_opt_in() const { - return opt_in_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.opt_in_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool SharingLog_EventMetadata::opt_in() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.opt_in) return _internal_opt_in(); } -inline void SharingLog_EventMetadata::_internal_set_opt_in(bool value) { - _has_bits_[0] |= 0x00000040u; - opt_in_ = value; -} inline void SharingLog_EventMetadata::set_opt_in(bool value) { _internal_set_opt_in(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.opt_in) } +inline bool SharingLog_EventMetadata::_internal_opt_in() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.opt_in_; +} +inline void SharingLog_EventMetadata::_internal_set_opt_in(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.opt_in_ = value; +} // optional bool initial_enable_status = 4 [deprecated = true]; -inline bool SharingLog_EventMetadata::_internal_has_initial_enable_status() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_EventMetadata::has_initial_enable_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_EventMetadata::has_initial_enable_status() const { - return _internal_has_initial_enable_status(); -} inline void SharingLog_EventMetadata::clear_initial_enable_status() { - initial_enable_status_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool SharingLog_EventMetadata::_internal_initial_enable_status() const { - return initial_enable_status_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.initial_enable_status_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool SharingLog_EventMetadata::initial_enable_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.initial_enable_status) return _internal_initial_enable_status(); } -inline void SharingLog_EventMetadata::_internal_set_initial_enable_status(bool value) { - _has_bits_[0] |= 0x00000080u; - initial_enable_status_ = value; -} inline void SharingLog_EventMetadata::set_initial_enable_status(bool value) { _internal_set_initial_enable_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.initial_enable_status) } +inline bool SharingLog_EventMetadata::_internal_initial_enable_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.initial_enable_status_; +} +inline void SharingLog_EventMetadata::_internal_set_initial_enable_status(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.initial_enable_status_ = value; +} // optional int64 flow_id = 5; -inline bool SharingLog_EventMetadata::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_EventMetadata::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_EventMetadata::has_flow_id() const { - return _internal_has_flow_id(); -} inline void SharingLog_EventMetadata::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int64_t SharingLog_EventMetadata::_internal_flow_id() const { - return flow_id_; -} -inline int64_t SharingLog_EventMetadata::flow_id() const { +inline ::int64_t SharingLog_EventMetadata::flow_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.flow_id) return _internal_flow_id(); } -inline void SharingLog_EventMetadata::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000100u; - flow_id_ = value; -} -inline void SharingLog_EventMetadata::set_flow_id(int64_t value) { +inline void SharingLog_EventMetadata::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.flow_id) } +inline ::int64_t SharingLog_EventMetadata::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void SharingLog_EventMetadata::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // optional int64 session_id = 6; -inline bool SharingLog_EventMetadata::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_EventMetadata::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool SharingLog_EventMetadata::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_EventMetadata::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline int64_t SharingLog_EventMetadata::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_EventMetadata::session_id() const { +inline ::int64_t SharingLog_EventMetadata::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.session_id) return _internal_session_id(); } -inline void SharingLog_EventMetadata::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000200u; - session_id_ = value; -} -inline void SharingLog_EventMetadata::set_session_id(int64_t value) { +inline void SharingLog_EventMetadata::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.session_id) } +inline ::int64_t SharingLog_EventMetadata::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_EventMetadata::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int32 vendor_id = 7; -inline bool SharingLog_EventMetadata::_internal_has_vendor_id() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool SharingLog_EventMetadata::has_vendor_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool SharingLog_EventMetadata::has_vendor_id() const { - return _internal_has_vendor_id(); -} inline void SharingLog_EventMetadata::clear_vendor_id() { - vendor_id_ = 0; - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vendor_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline int32_t SharingLog_EventMetadata::_internal_vendor_id() const { - return vendor_id_; -} -inline int32_t SharingLog_EventMetadata::vendor_id() const { +inline ::int32_t SharingLog_EventMetadata::vendor_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.vendor_id) return _internal_vendor_id(); } -inline void SharingLog_EventMetadata::_internal_set_vendor_id(int32_t value) { - _has_bits_[0] |= 0x00000400u; - vendor_id_ = value; -} -inline void SharingLog_EventMetadata::set_vendor_id(int32_t value) { +inline void SharingLog_EventMetadata::set_vendor_id(::int32_t value) { _internal_set_vendor_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.vendor_id) } +inline ::int32_t SharingLog_EventMetadata::_internal_vendor_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.vendor_id_; +} +inline void SharingLog_EventMetadata::_internal_set_vendor_id(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vendor_id_ = value; +} // optional string cloud_sharing_id = 8; -inline bool SharingLog_EventMetadata::_internal_has_cloud_sharing_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_EventMetadata::has_cloud_sharing_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_EventMetadata::has_cloud_sharing_id() const { - return _internal_has_cloud_sharing_id(); -} inline void SharingLog_EventMetadata::clear_cloud_sharing_id() { - cloud_sharing_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_sharing_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_EventMetadata::cloud_sharing_id() const { +inline const ::std::string& SharingLog_EventMetadata::cloud_sharing_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_sharing_id) return _internal_cloud_sharing_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_EventMetadata::set_cloud_sharing_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_EventMetadata::set_cloud_sharing_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.cloud_sharing_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_sharing_id) } -inline std::string* SharingLog_EventMetadata::mutable_cloud_sharing_id() { - std::string* _s = _internal_mutable_cloud_sharing_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::mutable_cloud_sharing_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_cloud_sharing_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_sharing_id) return _s; } -inline const std::string& SharingLog_EventMetadata::_internal_cloud_sharing_id() const { - return cloud_sharing_id_.Get(); +inline const ::std::string& SharingLog_EventMetadata::_internal_cloud_sharing_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cloud_sharing_id_.Get(); } -inline void SharingLog_EventMetadata::_internal_set_cloud_sharing_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_EventMetadata::_internal_set_cloud_sharing_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_sharing_id_.Set(value, GetArena()); } -inline std::string* SharingLog_EventMetadata::_internal_mutable_cloud_sharing_id() { - _has_bits_[0] |= 0x00000001u; - return cloud_sharing_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::_internal_mutable_cloud_sharing_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.cloud_sharing_id_.Mutable( GetArena()); } -inline std::string* SharingLog_EventMetadata::release_cloud_sharing_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_EventMetadata::release_cloud_sharing_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_sharing_id) - if (!_internal_has_cloud_sharing_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = cloud_sharing_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_sharing_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.cloud_sharing_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cloud_sharing_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_EventMetadata::set_allocated_cloud_sharing_id(std::string* cloud_sharing_id) { - if (cloud_sharing_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_EventMetadata::set_allocated_cloud_sharing_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - cloud_sharing_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cloud_sharing_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_sharing_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.cloud_sharing_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cloud_sharing_id_.IsDefault()) { + _impl_.cloud_sharing_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_sharing_id) } // optional string cloud_receiver_session_id = 9; -inline bool SharingLog_EventMetadata::_internal_has_cloud_receiver_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_EventMetadata::has_cloud_receiver_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_EventMetadata::has_cloud_receiver_session_id() const { - return _internal_has_cloud_receiver_session_id(); -} inline void SharingLog_EventMetadata::clear_cloud_receiver_session_id() { - cloud_receiver_session_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_receiver_session_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharingLog_EventMetadata::cloud_receiver_session_id() const { +inline const ::std::string& SharingLog_EventMetadata::cloud_receiver_session_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_receiver_session_id) return _internal_cloud_receiver_session_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_EventMetadata::set_cloud_receiver_session_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_EventMetadata::set_cloud_receiver_session_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.cloud_receiver_session_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_receiver_session_id) } -inline std::string* SharingLog_EventMetadata::mutable_cloud_receiver_session_id() { - std::string* _s = _internal_mutable_cloud_receiver_session_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::mutable_cloud_receiver_session_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_cloud_receiver_session_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_receiver_session_id) return _s; } -inline const std::string& SharingLog_EventMetadata::_internal_cloud_receiver_session_id() const { - return cloud_receiver_session_id_.Get(); +inline const ::std::string& SharingLog_EventMetadata::_internal_cloud_receiver_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cloud_receiver_session_id_.Get(); } -inline void SharingLog_EventMetadata::_internal_set_cloud_receiver_session_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_EventMetadata::_internal_set_cloud_receiver_session_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_receiver_session_id_.Set(value, GetArena()); } -inline std::string* SharingLog_EventMetadata::_internal_mutable_cloud_receiver_session_id() { - _has_bits_[0] |= 0x00000002u; - return cloud_receiver_session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::_internal_mutable_cloud_receiver_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.cloud_receiver_session_id_.Mutable( GetArena()); } -inline std::string* SharingLog_EventMetadata::release_cloud_receiver_session_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_EventMetadata::release_cloud_receiver_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_receiver_session_id) - if (!_internal_has_cloud_receiver_session_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = cloud_receiver_session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_receiver_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.cloud_receiver_session_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cloud_receiver_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_EventMetadata::set_allocated_cloud_receiver_session_id(std::string* cloud_receiver_session_id) { - if (cloud_receiver_session_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog_EventMetadata::set_allocated_cloud_receiver_session_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - cloud_receiver_session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cloud_receiver_session_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_receiver_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.cloud_receiver_session_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cloud_receiver_session_id_.IsDefault()) { + _impl_.cloud_receiver_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EventMetadata.cloud_receiver_session_id) } // optional string external_provider_name = 10; -inline bool SharingLog_EventMetadata::_internal_has_external_provider_name() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_EventMetadata::has_external_provider_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_EventMetadata::has_external_provider_name() const { - return _internal_has_external_provider_name(); -} inline void SharingLog_EventMetadata::clear_external_provider_name() { - external_provider_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.external_provider_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& SharingLog_EventMetadata::external_provider_name() const { +inline const ::std::string& SharingLog_EventMetadata::external_provider_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_name) return _internal_external_provider_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_EventMetadata::set_external_provider_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - external_provider_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_EventMetadata::set_external_provider_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.external_provider_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_name) } -inline std::string* SharingLog_EventMetadata::mutable_external_provider_name() { - std::string* _s = _internal_mutable_external_provider_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::mutable_external_provider_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_external_provider_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_name) return _s; } -inline const std::string& SharingLog_EventMetadata::_internal_external_provider_name() const { - return external_provider_name_.Get(); +inline const ::std::string& SharingLog_EventMetadata::_internal_external_provider_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.external_provider_name_.Get(); } -inline void SharingLog_EventMetadata::_internal_set_external_provider_name(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - external_provider_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_EventMetadata::_internal_set_external_provider_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.external_provider_name_.Set(value, GetArena()); } -inline std::string* SharingLog_EventMetadata::_internal_mutable_external_provider_name() { - _has_bits_[0] |= 0x00000004u; - return external_provider_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::_internal_mutable_external_provider_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.external_provider_name_.Mutable( GetArena()); } -inline std::string* SharingLog_EventMetadata::release_external_provider_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_EventMetadata::release_external_provider_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_name) - if (!_internal_has_external_provider_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = external_provider_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (external_provider_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - external_provider_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.external_provider_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.external_provider_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_EventMetadata::set_allocated_external_provider_name(std::string* external_provider_name) { - if (external_provider_name != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void SharingLog_EventMetadata::set_allocated_external_provider_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - external_provider_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), external_provider_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (external_provider_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - external_provider_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.external_provider_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.external_provider_name_.IsDefault()) { + _impl_.external_provider_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_name) } // optional string external_provider_id = 11; -inline bool SharingLog_EventMetadata::_internal_has_external_provider_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_EventMetadata::has_external_provider_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_EventMetadata::has_external_provider_id() const { - return _internal_has_external_provider_id(); -} inline void SharingLog_EventMetadata::clear_external_provider_id() { - external_provider_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.external_provider_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& SharingLog_EventMetadata::external_provider_id() const { +inline const ::std::string& SharingLog_EventMetadata::external_provider_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_id) return _internal_external_provider_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_EventMetadata::set_external_provider_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - external_provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_EventMetadata::set_external_provider_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.external_provider_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_id) } -inline std::string* SharingLog_EventMetadata::mutable_external_provider_id() { - std::string* _s = _internal_mutable_external_provider_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::mutable_external_provider_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_external_provider_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_id) return _s; } -inline const std::string& SharingLog_EventMetadata::_internal_external_provider_id() const { - return external_provider_id_.Get(); +inline const ::std::string& SharingLog_EventMetadata::_internal_external_provider_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.external_provider_id_.Get(); } -inline void SharingLog_EventMetadata::_internal_set_external_provider_id(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - external_provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_EventMetadata::_internal_set_external_provider_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.external_provider_id_.Set(value, GetArena()); } -inline std::string* SharingLog_EventMetadata::_internal_mutable_external_provider_id() { - _has_bits_[0] |= 0x00000008u; - return external_provider_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_EventMetadata::_internal_mutable_external_provider_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.external_provider_id_.Mutable( GetArena()); } -inline std::string* SharingLog_EventMetadata::release_external_provider_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_EventMetadata::release_external_provider_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_id) - if (!_internal_has_external_provider_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = external_provider_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (external_provider_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - external_provider_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.external_provider_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.external_provider_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_EventMetadata::set_allocated_external_provider_id(std::string* external_provider_id) { - if (external_provider_id != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void SharingLog_EventMetadata::set_allocated_external_provider_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - external_provider_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), external_provider_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (external_provider_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - external_provider_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.external_provider_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.external_provider_id_.IsDefault()) { + _impl_.external_provider_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.EventMetadata.external_provider_id) } +// optional bool is_direct_share = 12; +inline bool SharingLog_EventMetadata::has_is_direct_share() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + return value; +} +inline void SharingLog_EventMetadata::clear_is_direct_share() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_direct_share_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); +} +inline bool SharingLog_EventMetadata::is_direct_share() const { + // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.EventMetadata.is_direct_share) + return _internal_is_direct_share(); +} +inline void SharingLog_EventMetadata::set_is_direct_share(bool value) { + _internal_set_is_direct_share(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.EventMetadata.is_direct_share) +} +inline bool SharingLog_EventMetadata::_internal_is_direct_share() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_direct_share_; +} +inline void SharingLog_EventMetadata::_internal_set_is_direct_share(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_direct_share_ = value; +} + // ------------------------------------------------------------------- // SharingLog_DiscoverShareTarget // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; -inline bool SharingLog_DiscoverShareTarget::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_DiscoverShareTarget::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_DiscoverShareTarget::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_DiscoverShareTarget::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_DiscoverShareTarget::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_DiscoverShareTarget::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_DiscoverShareTarget::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.share_target_info) return _internal_share_target_info(); } inline void SharingLog_DiscoverShareTarget::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000004u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_DiscoverShareTarget::release_share_target_info() { - _has_bits_[0] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_DiscoverShareTarget::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.share_target_info) - _has_bits_[0] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_DiscoverShareTarget::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000004u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_DiscoverShareTarget::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.share_target_info) return _msg; } -inline void SharingLog_DiscoverShareTarget::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_DiscoverShareTarget::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.share_target_info) } // optional .google.protobuf.Duration duration_since_scanning = 2; -inline bool SharingLog_DiscoverShareTarget::_internal_has_duration_since_scanning() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || duration_since_scanning_ != nullptr); +inline bool SharingLog_DiscoverShareTarget::has_duration_since_scanning() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.duration_since_scanning_ != nullptr); return value; } -inline bool SharingLog_DiscoverShareTarget::has_duration_since_scanning() const { - return _internal_has_duration_since_scanning(); +inline const ::google::protobuf::Duration& SharingLog_DiscoverShareTarget::_internal_duration_since_scanning() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.duration_since_scanning_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_DiscoverShareTarget::_internal_duration_since_scanning() const { - const ::PROTOBUF_NAMESPACE_ID::Duration* p = duration_since_scanning_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_DiscoverShareTarget::duration_since_scanning() const { +inline const ::google::protobuf::Duration& SharingLog_DiscoverShareTarget::duration_since_scanning() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.duration_since_scanning) return _internal_duration_since_scanning(); } inline void SharingLog_DiscoverShareTarget::unsafe_arena_set_allocated_duration_since_scanning( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning_); + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_scanning_); } - duration_since_scanning_ = duration_since_scanning; - if (duration_since_scanning) { - _has_bits_[0] |= 0x00000008u; + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.duration_since_scanning) } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DiscoverShareTarget::release_duration_since_scanning() { - _has_bits_[0] &= ~0x00000008u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_scanning_; - duration_since_scanning_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::release_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* released = _impl_.duration_since_scanning_; + _impl_.duration_since_scanning_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DiscoverShareTarget::unsafe_arena_release_duration_since_scanning() { +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::unsafe_arena_release_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.duration_since_scanning) - _has_bits_[0] &= ~0x00000008u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_scanning_; - duration_since_scanning_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* temp = _impl_.duration_since_scanning_; + _impl_.duration_since_scanning_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DiscoverShareTarget::_internal_mutable_duration_since_scanning() { - _has_bits_[0] |= 0x00000008u; - if (duration_since_scanning_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); - duration_since_scanning_ = p; +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_internal_mutable_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_scanning_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(p); } - return duration_since_scanning_; + return _impl_.duration_since_scanning_; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DiscoverShareTarget::mutable_duration_since_scanning() { - ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration_since_scanning(); +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::mutable_duration_since_scanning() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* _msg = _internal_mutable_duration_since_scanning(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.duration_since_scanning) return _msg; } -inline void SharingLog_DiscoverShareTarget::set_allocated_duration_since_scanning(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_DiscoverShareTarget::set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_scanning_); } - if (duration_since_scanning) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - duration_since_scanning = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, duration_since_scanning, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - duration_since_scanning_ = duration_since_scanning; + + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.duration_since_scanning) } // optional int64 session_id = 3; -inline bool SharingLog_DiscoverShareTarget::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_DiscoverShareTarget::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t SharingLog_DiscoverShareTarget::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_DiscoverShareTarget::session_id() const { +inline ::int64_t SharingLog_DiscoverShareTarget::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.session_id) return _internal_session_id(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - session_id_ = value; -} -inline void SharingLog_DiscoverShareTarget::set_session_id(int64_t value) { +inline void SharingLog_DiscoverShareTarget::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.session_id) } +inline ::int64_t SharingLog_DiscoverShareTarget::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_DiscoverShareTarget::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int64 flow_id = 4; -inline bool SharingLog_DiscoverShareTarget::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_flow_id() const { - return _internal_has_flow_id(); -} inline void SharingLog_DiscoverShareTarget::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int64_t SharingLog_DiscoverShareTarget::_internal_flow_id() const { - return flow_id_; -} -inline int64_t SharingLog_DiscoverShareTarget::flow_id() const { +inline ::int64_t SharingLog_DiscoverShareTarget::flow_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.flow_id) return _internal_flow_id(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000020u; - flow_id_ = value; -} -inline void SharingLog_DiscoverShareTarget::set_flow_id(int64_t value) { +inline void SharingLog_DiscoverShareTarget::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.flow_id) } +inline ::int64_t SharingLog_DiscoverShareTarget::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void SharingLog_DiscoverShareTarget::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // optional string referrer_name = 5; -inline bool SharingLog_DiscoverShareTarget::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_DiscoverShareTarget::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_DiscoverShareTarget::referrer_name() const { +inline const ::std::string& SharingLog_DiscoverShareTarget::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_DiscoverShareTarget::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_DiscoverShareTarget::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.referrer_name) } -inline std::string* SharingLog_DiscoverShareTarget::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.referrer_name) return _s; } -inline const std::string& SharingLog_DiscoverShareTarget::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_DiscoverShareTarget::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_DiscoverShareTarget::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_DiscoverShareTarget::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_DiscoverShareTarget::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_DiscoverShareTarget::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_DiscoverShareTarget::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.referrer_name) } // optional int64 latency_since_activity_start_millis = 6 [default = -1]; -inline bool SharingLog_DiscoverShareTarget::_internal_has_latency_since_activity_start_millis() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_latency_since_activity_start_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_latency_since_activity_start_millis() const { - return _internal_has_latency_since_activity_start_millis(); -} inline void SharingLog_DiscoverShareTarget::clear_latency_since_activity_start_millis() { - latency_since_activity_start_millis_ = int64_t{-1}; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_since_activity_start_millis_ = ::int64_t{-1}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t SharingLog_DiscoverShareTarget::_internal_latency_since_activity_start_millis() const { - return latency_since_activity_start_millis_; -} -inline int64_t SharingLog_DiscoverShareTarget::latency_since_activity_start_millis() const { +inline ::int64_t SharingLog_DiscoverShareTarget::latency_since_activity_start_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.latency_since_activity_start_millis) return _internal_latency_since_activity_start_millis(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_latency_since_activity_start_millis(int64_t value) { - _has_bits_[0] |= 0x00000080u; - latency_since_activity_start_millis_ = value; -} -inline void SharingLog_DiscoverShareTarget::set_latency_since_activity_start_millis(int64_t value) { +inline void SharingLog_DiscoverShareTarget::set_latency_since_activity_start_millis(::int64_t value) { _internal_set_latency_since_activity_start_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.latency_since_activity_start_millis) } +inline ::int64_t SharingLog_DiscoverShareTarget::_internal_latency_since_activity_start_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_since_activity_start_millis_; +} +inline void SharingLog_DiscoverShareTarget::_internal_set_latency_since_activity_start_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_since_activity_start_millis_ = value; +} // optional .location.nearby.proto.sharing.ScanType scan_type = 7; -inline bool SharingLog_DiscoverShareTarget::_internal_has_scan_type() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_scan_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_scan_type() const { - return _internal_has_scan_type(); -} inline void SharingLog_DiscoverShareTarget::clear_scan_type() { - scan_type_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::sharing::ScanType SharingLog_DiscoverShareTarget::_internal_scan_type() const { - return static_cast< ::location::nearby::proto::sharing::ScanType >(scan_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.scan_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::sharing::ScanType SharingLog_DiscoverShareTarget::scan_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.scan_type) return _internal_scan_type(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { - assert(::location::nearby::proto::sharing::ScanType_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - scan_type_ = value; -} inline void SharingLog_DiscoverShareTarget::set_scan_type(::location::nearby::proto::sharing::ScanType value) { _internal_set_scan_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.scan_type) } +inline ::location::nearby::proto::sharing::ScanType SharingLog_DiscoverShareTarget::_internal_scan_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ScanType>(_impl_.scan_type_); +} +inline void SharingLog_DiscoverShareTarget::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ScanType_internal_data_)); + _impl_.scan_type_ = value; +} // optional string cloud_receiver_session_id = 8; -inline bool SharingLog_DiscoverShareTarget::_internal_has_cloud_receiver_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_DiscoverShareTarget::has_cloud_receiver_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_DiscoverShareTarget::has_cloud_receiver_session_id() const { - return _internal_has_cloud_receiver_session_id(); -} inline void SharingLog_DiscoverShareTarget::clear_cloud_receiver_session_id() { - cloud_receiver_session_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_receiver_session_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharingLog_DiscoverShareTarget::cloud_receiver_session_id() const { +inline const ::std::string& SharingLog_DiscoverShareTarget::cloud_receiver_session_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.cloud_receiver_session_id) return _internal_cloud_receiver_session_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_DiscoverShareTarget::set_cloud_receiver_session_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_DiscoverShareTarget::set_cloud_receiver_session_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.cloud_receiver_session_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.cloud_receiver_session_id) } -inline std::string* SharingLog_DiscoverShareTarget::mutable_cloud_receiver_session_id() { - std::string* _s = _internal_mutable_cloud_receiver_session_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::mutable_cloud_receiver_session_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_cloud_receiver_session_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.cloud_receiver_session_id) return _s; } -inline const std::string& SharingLog_DiscoverShareTarget::_internal_cloud_receiver_session_id() const { - return cloud_receiver_session_id_.Get(); +inline const ::std::string& SharingLog_DiscoverShareTarget::_internal_cloud_receiver_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cloud_receiver_session_id_.Get(); } -inline void SharingLog_DiscoverShareTarget::_internal_set_cloud_receiver_session_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - cloud_receiver_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_DiscoverShareTarget::_internal_set_cloud_receiver_session_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_receiver_session_id_.Set(value, GetArena()); } -inline std::string* SharingLog_DiscoverShareTarget::_internal_mutable_cloud_receiver_session_id() { - _has_bits_[0] |= 0x00000002u; - return cloud_receiver_session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_DiscoverShareTarget::_internal_mutable_cloud_receiver_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.cloud_receiver_session_id_.Mutable( GetArena()); } -inline std::string* SharingLog_DiscoverShareTarget::release_cloud_receiver_session_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_DiscoverShareTarget::release_cloud_receiver_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.cloud_receiver_session_id) - if (!_internal_has_cloud_receiver_session_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = cloud_receiver_session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_receiver_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.cloud_receiver_session_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cloud_receiver_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_DiscoverShareTarget::set_allocated_cloud_receiver_session_id(std::string* cloud_receiver_session_id) { - if (cloud_receiver_session_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog_DiscoverShareTarget::set_allocated_cloud_receiver_session_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - cloud_receiver_session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cloud_receiver_session_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_receiver_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_receiver_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.cloud_receiver_session_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cloud_receiver_session_id_.IsDefault()) { + _impl_.cloud_receiver_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget.cloud_receiver_session_id) } @@ -21280,669 +24326,705 @@ inline void SharingLog_DiscoverShareTarget::set_allocated_cloud_receiver_session // SharingLog_ParsingFailedEndpointId // optional string endpoint_id = 1; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} inline void SharingLog_ParsingFailedEndpointId::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_ParsingFailedEndpointId::endpoint_id() const { +inline const ::std::string& SharingLog_ParsingFailedEndpointId::endpoint_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.endpoint_id) return _internal_endpoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_ParsingFailedEndpointId::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_ParsingFailedEndpointId::set_endpoint_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.endpoint_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.endpoint_id) } -inline std::string* SharingLog_ParsingFailedEndpointId::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::mutable_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_endpoint_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.endpoint_id) return _s; } -inline const std::string& SharingLog_ParsingFailedEndpointId::_internal_endpoint_id() const { - return endpoint_id_.Get(); +inline const ::std::string& SharingLog_ParsingFailedEndpointId::_internal_endpoint_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endpoint_id_.Get(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_ParsingFailedEndpointId::_internal_set_endpoint_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endpoint_id_.Set(value, GetArena()); } -inline std::string* SharingLog_ParsingFailedEndpointId::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_internal_mutable_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endpoint_id_.Mutable( GetArena()); } -inline std::string* SharingLog_ParsingFailedEndpointId::release_endpoint_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::release_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.endpoint_id) - if (!_internal_has_endpoint_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.endpoint_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_ParsingFailedEndpointId::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_ParsingFailedEndpointId::set_allocated_endpoint_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.endpoint_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endpoint_id_.IsDefault()) { + _impl_.endpoint_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.endpoint_id) } // optional .google.protobuf.Duration duration_since_scanning = 2; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_duration_since_scanning() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || duration_since_scanning_ != nullptr); +inline bool SharingLog_ParsingFailedEndpointId::has_duration_since_scanning() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.duration_since_scanning_ != nullptr); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_duration_since_scanning() const { - return _internal_has_duration_since_scanning(); +inline const ::google::protobuf::Duration& SharingLog_ParsingFailedEndpointId::_internal_duration_since_scanning() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.duration_since_scanning_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_ParsingFailedEndpointId::_internal_duration_since_scanning() const { - const ::PROTOBUF_NAMESPACE_ID::Duration* p = duration_since_scanning_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_ParsingFailedEndpointId::duration_since_scanning() const { +inline const ::google::protobuf::Duration& SharingLog_ParsingFailedEndpointId::duration_since_scanning() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_scanning) return _internal_duration_since_scanning(); } inline void SharingLog_ParsingFailedEndpointId::unsafe_arena_set_allocated_duration_since_scanning( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning_); + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_scanning_); } - duration_since_scanning_ = duration_since_scanning; - if (duration_since_scanning) { - _has_bits_[0] |= 0x00000004u; + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_scanning) } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::release_duration_since_scanning() { - _has_bits_[0] &= ~0x00000004u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_scanning_; - duration_since_scanning_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::release_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* released = _impl_.duration_since_scanning_; + _impl_.duration_since_scanning_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::unsafe_arena_release_duration_since_scanning() { +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::unsafe_arena_release_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_scanning) - _has_bits_[0] &= ~0x00000004u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_scanning_; - duration_since_scanning_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* temp = _impl_.duration_since_scanning_; + _impl_.duration_since_scanning_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::_internal_mutable_duration_since_scanning() { - _has_bits_[0] |= 0x00000004u; - if (duration_since_scanning_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); - duration_since_scanning_ = p; +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_internal_mutable_duration_since_scanning() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_scanning_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(p); } - return duration_since_scanning_; + return _impl_.duration_since_scanning_; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::mutable_duration_since_scanning() { - ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration_since_scanning(); +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::mutable_duration_since_scanning() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::Duration* _msg = _internal_mutable_duration_since_scanning(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_scanning) return _msg; } -inline void SharingLog_ParsingFailedEndpointId::set_allocated_duration_since_scanning(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_scanning) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ParsingFailedEndpointId::set_allocated_duration_since_scanning(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_scanning_); } - if (duration_since_scanning) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_scanning)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - duration_since_scanning = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, duration_since_scanning, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - duration_since_scanning_ = duration_since_scanning; + + _impl_.duration_since_scanning_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_scanning) } // optional int64 session_id = 3; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ParsingFailedEndpointId::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t SharingLog_ParsingFailedEndpointId::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ParsingFailedEndpointId::session_id() const { +inline ::int64_t SharingLog_ParsingFailedEndpointId::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.session_id) return _internal_session_id(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - session_id_ = value; -} -inline void SharingLog_ParsingFailedEndpointId::set_session_id(int64_t value) { +inline void SharingLog_ParsingFailedEndpointId::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.session_id) } +inline ::int64_t SharingLog_ParsingFailedEndpointId::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int64 flow_id = 4; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_flow_id() const { - return _internal_has_flow_id(); -} inline void SharingLog_ParsingFailedEndpointId::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int64_t SharingLog_ParsingFailedEndpointId::_internal_flow_id() const { - return flow_id_; -} -inline int64_t SharingLog_ParsingFailedEndpointId::flow_id() const { +inline ::int64_t SharingLog_ParsingFailedEndpointId::flow_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.flow_id) return _internal_flow_id(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000020u; - flow_id_ = value; -} -inline void SharingLog_ParsingFailedEndpointId::set_flow_id(int64_t value) { +inline void SharingLog_ParsingFailedEndpointId::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.flow_id) } +inline ::int64_t SharingLog_ParsingFailedEndpointId::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // optional string referrer_name = 5; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_ParsingFailedEndpointId::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharingLog_ParsingFailedEndpointId::referrer_name() const { +inline const ::std::string& SharingLog_ParsingFailedEndpointId::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_ParsingFailedEndpointId::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_ParsingFailedEndpointId::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.referrer_name) } -inline std::string* SharingLog_ParsingFailedEndpointId::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.referrer_name) return _s; } -inline const std::string& SharingLog_ParsingFailedEndpointId::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_ParsingFailedEndpointId::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_ParsingFailedEndpointId::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_ParsingFailedEndpointId::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000002u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_ParsingFailedEndpointId::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_ParsingFailedEndpointId::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog_ParsingFailedEndpointId::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.referrer_name) } // optional int64 latency_since_activity_start_millis = 6 [default = -1]; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_latency_since_activity_start_millis() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_latency_since_activity_start_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_latency_since_activity_start_millis() const { - return _internal_has_latency_since_activity_start_millis(); -} inline void SharingLog_ParsingFailedEndpointId::clear_latency_since_activity_start_millis() { - latency_since_activity_start_millis_ = int64_t{-1}; - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_since_activity_start_millis_ = ::int64_t{-1}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline int64_t SharingLog_ParsingFailedEndpointId::_internal_latency_since_activity_start_millis() const { - return latency_since_activity_start_millis_; -} -inline int64_t SharingLog_ParsingFailedEndpointId::latency_since_activity_start_millis() const { +inline ::int64_t SharingLog_ParsingFailedEndpointId::latency_since_activity_start_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.latency_since_activity_start_millis) return _internal_latency_since_activity_start_millis(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_latency_since_activity_start_millis(int64_t value) { - _has_bits_[0] |= 0x00000200u; - latency_since_activity_start_millis_ = value; -} -inline void SharingLog_ParsingFailedEndpointId::set_latency_since_activity_start_millis(int64_t value) { +inline void SharingLog_ParsingFailedEndpointId::set_latency_since_activity_start_millis(::int64_t value) { _internal_set_latency_since_activity_start_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.latency_since_activity_start_millis) } +inline ::int64_t SharingLog_ParsingFailedEndpointId::_internal_latency_since_activity_start_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_since_activity_start_millis_; +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_latency_since_activity_start_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_since_activity_start_millis_ = value; +} // optional .location.nearby.proto.sharing.ScanType scan_type = 7; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_scan_type() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_scan_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_scan_type() const { - return _internal_has_scan_type(); -} inline void SharingLog_ParsingFailedEndpointId::clear_scan_type() { - scan_type_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::sharing::ScanType SharingLog_ParsingFailedEndpointId::_internal_scan_type() const { - return static_cast< ::location::nearby::proto::sharing::ScanType >(scan_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.scan_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::sharing::ScanType SharingLog_ParsingFailedEndpointId::scan_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.scan_type) return _internal_scan_type(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { - assert(::location::nearby::proto::sharing::ScanType_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - scan_type_ = value; -} inline void SharingLog_ParsingFailedEndpointId::set_scan_type(::location::nearby::proto::sharing::ScanType value) { _internal_set_scan_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.scan_type) } +inline ::location::nearby::proto::sharing::ScanType SharingLog_ParsingFailedEndpointId::_internal_scan_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ScanType>(_impl_.scan_type_); +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_scan_type(::location::nearby::proto::sharing::ScanType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ScanType_internal_data_)); + _impl_.scan_type_ = value; +} // optional .google.protobuf.Duration duration_since_last_sync = 8; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_duration_since_last_sync() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || duration_since_last_sync_ != nullptr); +inline bool SharingLog_ParsingFailedEndpointId::has_duration_since_last_sync() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.duration_since_last_sync_ != nullptr); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_duration_since_last_sync() const { - return _internal_has_duration_since_last_sync(); +inline const ::google::protobuf::Duration& SharingLog_ParsingFailedEndpointId::_internal_duration_since_last_sync() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.duration_since_last_sync_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_ParsingFailedEndpointId::_internal_duration_since_last_sync() const { - const ::PROTOBUF_NAMESPACE_ID::Duration* p = duration_since_last_sync_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_ParsingFailedEndpointId::duration_since_last_sync() const { +inline const ::google::protobuf::Duration& SharingLog_ParsingFailedEndpointId::duration_since_last_sync() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_last_sync) return _internal_duration_since_last_sync(); } inline void SharingLog_ParsingFailedEndpointId::unsafe_arena_set_allocated_duration_since_last_sync( - ::PROTOBUF_NAMESPACE_ID::Duration* duration_since_last_sync) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_last_sync_); + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_last_sync_); } - duration_since_last_sync_ = duration_since_last_sync; - if (duration_since_last_sync) { - _has_bits_[0] |= 0x00000008u; + _impl_.duration_since_last_sync_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_last_sync) } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::release_duration_since_last_sync() { - _has_bits_[0] &= ~0x00000008u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_last_sync_; - duration_since_last_sync_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::release_duration_since_last_sync() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* released = _impl_.duration_since_last_sync_; + _impl_.duration_since_last_sync_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::unsafe_arena_release_duration_since_last_sync() { +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_ParsingFailedEndpointId::unsafe_arena_release_duration_since_last_sync() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_last_sync) - _has_bits_[0] &= ~0x00000008u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_since_last_sync_; - duration_since_last_sync_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* temp = _impl_.duration_since_last_sync_; + _impl_.duration_since_last_sync_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::_internal_mutable_duration_since_last_sync() { - _has_bits_[0] |= 0x00000008u; - if (duration_since_last_sync_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); - duration_since_last_sync_ = p; +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::_internal_mutable_duration_since_last_sync() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.duration_since_last_sync_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.duration_since_last_sync_ = reinterpret_cast<::google::protobuf::Duration*>(p); } - return duration_since_last_sync_; + return _impl_.duration_since_last_sync_; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_ParsingFailedEndpointId::mutable_duration_since_last_sync() { - ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration_since_last_sync(); +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_ParsingFailedEndpointId::mutable_duration_since_last_sync() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::Duration* _msg = _internal_mutable_duration_since_last_sync(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_last_sync) return _msg; } -inline void SharingLog_ParsingFailedEndpointId::set_allocated_duration_since_last_sync(::PROTOBUF_NAMESPACE_ID::Duration* duration_since_last_sync) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ParsingFailedEndpointId::set_allocated_duration_since_last_sync(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_last_sync_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_since_last_sync_); } - if (duration_since_last_sync) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_since_last_sync)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - duration_since_last_sync = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, duration_since_last_sync, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - duration_since_last_sync_ = duration_since_last_sync; + + _impl_.duration_since_last_sync_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.duration_since_last_sync) } // optional .location.nearby.proto.sharing.ParsingFailedType parsing_failed_type = 9; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_parsing_failed_type() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_parsing_failed_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_parsing_failed_type() const { - return _internal_has_parsing_failed_type(); -} inline void SharingLog_ParsingFailedEndpointId::clear_parsing_failed_type() { - parsing_failed_type_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline ::location::nearby::proto::sharing::ParsingFailedType SharingLog_ParsingFailedEndpointId::_internal_parsing_failed_type() const { - return static_cast< ::location::nearby::proto::sharing::ParsingFailedType >(parsing_failed_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parsing_failed_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::location::nearby::proto::sharing::ParsingFailedType SharingLog_ParsingFailedEndpointId::parsing_failed_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.parsing_failed_type) return _internal_parsing_failed_type(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_parsing_failed_type(::location::nearby::proto::sharing::ParsingFailedType value) { - assert(::location::nearby::proto::sharing::ParsingFailedType_IsValid(value)); - _has_bits_[0] |= 0x00000080u; - parsing_failed_type_ = value; -} inline void SharingLog_ParsingFailedEndpointId::set_parsing_failed_type(::location::nearby::proto::sharing::ParsingFailedType value) { _internal_set_parsing_failed_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.parsing_failed_type) } +inline ::location::nearby::proto::sharing::ParsingFailedType SharingLog_ParsingFailedEndpointId::_internal_parsing_failed_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ParsingFailedType>(_impl_.parsing_failed_type_); +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_parsing_failed_type(::location::nearby::proto::sharing::ParsingFailedType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ParsingFailedType_internal_data_)); + _impl_.parsing_failed_type_ = value; +} // optional .location.nearby.proto.sharing.DiscoveryMode discovery_mode = 10; -inline bool SharingLog_ParsingFailedEndpointId::_internal_has_discovery_mode() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_ParsingFailedEndpointId::has_discovery_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool SharingLog_ParsingFailedEndpointId::has_discovery_mode() const { - return _internal_has_discovery_mode(); -} inline void SharingLog_ParsingFailedEndpointId::clear_discovery_mode() { - discovery_mode_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline ::location::nearby::proto::sharing::DiscoveryMode SharingLog_ParsingFailedEndpointId::_internal_discovery_mode() const { - return static_cast< ::location::nearby::proto::sharing::DiscoveryMode >(discovery_mode_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.discovery_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::location::nearby::proto::sharing::DiscoveryMode SharingLog_ParsingFailedEndpointId::discovery_mode() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.discovery_mode) return _internal_discovery_mode(); } -inline void SharingLog_ParsingFailedEndpointId::_internal_set_discovery_mode(::location::nearby::proto::sharing::DiscoveryMode value) { - assert(::location::nearby::proto::sharing::DiscoveryMode_IsValid(value)); - _has_bits_[0] |= 0x00000100u; - discovery_mode_ = value; -} inline void SharingLog_ParsingFailedEndpointId::set_discovery_mode(::location::nearby::proto::sharing::DiscoveryMode value) { _internal_set_discovery_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId.discovery_mode) } +inline ::location::nearby::proto::sharing::DiscoveryMode SharingLog_ParsingFailedEndpointId::_internal_discovery_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DiscoveryMode>(_impl_.discovery_mode_); +} +inline void SharingLog_ParsingFailedEndpointId::_internal_set_discovery_mode(::location::nearby::proto::sharing::DiscoveryMode value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DiscoveryMode_internal_data_)); + _impl_.discovery_mode_ = value; +} // ------------------------------------------------------------------- // SharingLog_DescribeAttachments // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; -inline bool SharingLog_DescribeAttachments::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_DescribeAttachments::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_DescribeAttachments::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_DescribeAttachments::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_DescribeAttachments::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_DescribeAttachments::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_DescribeAttachments::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.attachments_info) return _internal_attachments_info(); } inline void SharingLog_DescribeAttachments::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_DescribeAttachments::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_DescribeAttachments::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_DescribeAttachments::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_DescribeAttachments::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_DescribeAttachments::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_DescribeAttachments::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_DescribeAttachments::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.attachments_info) return _msg; } -inline void SharingLog_DescribeAttachments::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_DescribeAttachments::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.attachments_info) } // optional .google.protobuf.Duration download_duration = 2; -inline bool SharingLog_DescribeAttachments::_internal_has_download_duration() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || download_duration_ != nullptr); +inline bool SharingLog_DescribeAttachments::has_download_duration() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.download_duration_ != nullptr); return value; } -inline bool SharingLog_DescribeAttachments::has_download_duration() const { - return _internal_has_download_duration(); +inline const ::google::protobuf::Duration& SharingLog_DescribeAttachments::_internal_download_duration() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.download_duration_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_DescribeAttachments::_internal_download_duration() const { - const ::PROTOBUF_NAMESPACE_ID::Duration* p = download_duration_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Duration& SharingLog_DescribeAttachments::download_duration() const { +inline const ::google::protobuf::Duration& SharingLog_DescribeAttachments::download_duration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.download_duration) return _internal_download_duration(); } inline void SharingLog_DescribeAttachments::unsafe_arena_set_allocated_download_duration( - ::PROTOBUF_NAMESPACE_ID::Duration* download_duration) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(download_duration_); + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.download_duration_); } - download_duration_ = download_duration; - if (download_duration) { - _has_bits_[0] |= 0x00000002u; + _impl_.download_duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.download_duration) } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DescribeAttachments::release_download_duration() { - _has_bits_[0] &= ~0x00000002u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = download_duration_; - download_duration_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_DescribeAttachments::release_download_duration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::Duration* released = _impl_.download_duration_; + _impl_.download_duration_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DescribeAttachments::unsafe_arena_release_download_duration() { +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE SharingLog_DescribeAttachments::unsafe_arena_release_download_duration() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.download_duration) - _has_bits_[0] &= ~0x00000002u; - ::PROTOBUF_NAMESPACE_ID::Duration* temp = download_duration_; - download_duration_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::Duration* temp = _impl_.download_duration_; + _impl_.download_duration_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DescribeAttachments::_internal_mutable_download_duration() { - _has_bits_[0] |= 0x00000002u; - if (download_duration_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); - download_duration_ = p; +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_DescribeAttachments::_internal_mutable_download_duration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.download_duration_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.download_duration_ = reinterpret_cast<::google::protobuf::Duration*>(p); } - return download_duration_; + return _impl_.download_duration_; } -inline ::PROTOBUF_NAMESPACE_ID::Duration* SharingLog_DescribeAttachments::mutable_download_duration() { - ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_download_duration(); +inline ::google::protobuf::Duration* PROTOBUF_NONNULL SharingLog_DescribeAttachments::mutable_download_duration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::Duration* _msg = _internal_mutable_download_duration(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.download_duration) return _msg; } -inline void SharingLog_DescribeAttachments::set_allocated_download_duration(::PROTOBUF_NAMESPACE_ID::Duration* download_duration) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_DescribeAttachments::set_allocated_download_duration(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(download_duration_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.download_duration_); } - if (download_duration) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(download_duration)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - download_duration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, download_duration, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - download_duration_ = download_duration; + + _impl_.download_duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.DescribeAttachments.download_duration) } @@ -21951,367 +25033,389 @@ inline void SharingLog_DescribeAttachments::set_allocated_download_duration(::PR // SharingLog_SendIntroduction // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; -inline bool SharingLog_SendIntroduction::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_SendIntroduction::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_SendIntroduction::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_SendIntroduction::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendIntroduction::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendIntroduction::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendIntroduction::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.share_target_info) return _internal_share_target_info(); } inline void SharingLog_SendIntroduction::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendIntroduction::release_share_target_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendIntroduction::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendIntroduction::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendIntroduction::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.share_target_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendIntroduction::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000001u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendIntroduction::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendIntroduction::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendIntroduction::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.share_target_info) return _msg; } -inline void SharingLog_SendIntroduction::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendIntroduction::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.share_target_info) } // optional int64 session_id = 2; -inline bool SharingLog_SendIntroduction::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_SendIntroduction::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_SendIntroduction::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_SendIntroduction::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_SendIntroduction::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_SendIntroduction::session_id() const { +inline ::int64_t SharingLog_SendIntroduction::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.session_id) return _internal_session_id(); } -inline void SharingLog_SendIntroduction::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_SendIntroduction::set_session_id(int64_t value) { +inline void SharingLog_SendIntroduction::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.session_id) } +inline ::int64_t SharingLog_SendIntroduction::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_SendIntroduction::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int32 transfer_position = 3; -inline bool SharingLog_SendIntroduction::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_SendIntroduction::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_SendIntroduction::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_SendIntroduction::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t SharingLog_SendIntroduction::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_SendIntroduction::transfer_position() const { +inline ::int32_t SharingLog_SendIntroduction::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_SendIntroduction::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000004u; - transfer_position_ = value; -} -inline void SharingLog_SendIntroduction::set_transfer_position(int32_t value) { +inline void SharingLog_SendIntroduction::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.transfer_position) } +inline ::int32_t SharingLog_SendIntroduction::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_SendIntroduction::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 4; -inline bool SharingLog_SendIntroduction::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_SendIntroduction::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_SendIntroduction::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_SendIntroduction::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t SharingLog_SendIntroduction::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_SendIntroduction::concurrent_connections() const { +inline ::int32_t SharingLog_SendIntroduction::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_SendIntroduction::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000008u; - concurrent_connections_ = value; -} -inline void SharingLog_SendIntroduction::set_concurrent_connections(int32_t value) { +inline void SharingLog_SendIntroduction::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendIntroduction.concurrent_connections) } +inline ::int32_t SharingLog_SendIntroduction::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_SendIntroduction::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // ------------------------------------------------------------------- // SharingLog_ReceiveIntroduction // optional int64 session_id = 1; -inline bool SharingLog_ReceiveIntroduction::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ReceiveIntroduction::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ReceiveIntroduction::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ReceiveIntroduction::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_ReceiveIntroduction::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ReceiveIntroduction::session_id() const { +inline ::int64_t SharingLog_ReceiveIntroduction::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.session_id) return _internal_session_id(); } -inline void SharingLog_ReceiveIntroduction::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - session_id_ = value; -} -inline void SharingLog_ReceiveIntroduction::set_session_id(int64_t value) { +inline void SharingLog_ReceiveIntroduction::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.session_id) } +inline ::int64_t SharingLog_ReceiveIntroduction::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ReceiveIntroduction::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 2; -inline bool SharingLog_ReceiveIntroduction::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_ReceiveIntroduction::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_ReceiveIntroduction::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_ReceiveIntroduction::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveIntroduction::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveIntroduction::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveIntroduction::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.share_target_info) return _internal_share_target_info(); } inline void SharingLog_ReceiveIntroduction::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveIntroduction::release_share_target_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveIntroduction::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveIntroduction::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveIntroduction::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.share_target_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveIntroduction::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000002u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveIntroduction::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.share_target_info) return _msg; } -inline void SharingLog_ReceiveIntroduction::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ReceiveIntroduction::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.share_target_info) } // optional string referrer_name = 3; -inline bool SharingLog_ReceiveIntroduction::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ReceiveIntroduction::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ReceiveIntroduction::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_ReceiveIntroduction::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_ReceiveIntroduction::referrer_name() const { +inline const ::std::string& SharingLog_ReceiveIntroduction::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_ReceiveIntroduction::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_ReceiveIntroduction::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.referrer_name) } -inline std::string* SharingLog_ReceiveIntroduction::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.referrer_name) return _s; } -inline const std::string& SharingLog_ReceiveIntroduction::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_ReceiveIntroduction::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_ReceiveIntroduction::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_ReceiveIntroduction::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_ReceiveIntroduction::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ReceiveIntroduction::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_ReceiveIntroduction::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_ReceiveIntroduction::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_ReceiveIntroduction::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_ReceiveIntroduction::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction.referrer_name) } @@ -22320,1271 +25424,1356 @@ inline void SharingLog_ReceiveIntroduction::set_allocated_referrer_name(std::str // SharingLog_RespondToIntroduction // optional .location.nearby.proto.sharing.ResponseToIntroduction action = 1; -inline bool SharingLog_RespondToIntroduction::_internal_has_action() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_RespondToIntroduction::has_action() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_RespondToIntroduction::has_action() const { - return _internal_has_action(); -} inline void SharingLog_RespondToIntroduction::clear_action() { - action_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::ResponseToIntroduction SharingLog_RespondToIntroduction::_internal_action() const { - return static_cast< ::location::nearby::proto::sharing::ResponseToIntroduction >(action_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ResponseToIntroduction SharingLog_RespondToIntroduction::action() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.action) return _internal_action(); } -inline void SharingLog_RespondToIntroduction::_internal_set_action(::location::nearby::proto::sharing::ResponseToIntroduction value) { - assert(::location::nearby::proto::sharing::ResponseToIntroduction_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - action_ = value; -} inline void SharingLog_RespondToIntroduction::set_action(::location::nearby::proto::sharing::ResponseToIntroduction value) { _internal_set_action(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.action) } +inline ::location::nearby::proto::sharing::ResponseToIntroduction SharingLog_RespondToIntroduction::_internal_action() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ResponseToIntroduction>(_impl_.action_); +} +inline void SharingLog_RespondToIntroduction::_internal_set_action(::location::nearby::proto::sharing::ResponseToIntroduction value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ResponseToIntroduction_internal_data_)); + _impl_.action_ = value; +} // optional int64 session_id = 2; -inline bool SharingLog_RespondToIntroduction::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_RespondToIntroduction::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_RespondToIntroduction::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_RespondToIntroduction::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_RespondToIntroduction::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_RespondToIntroduction::session_id() const { +inline ::int64_t SharingLog_RespondToIntroduction::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.session_id) return _internal_session_id(); } -inline void SharingLog_RespondToIntroduction::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - session_id_ = value; -} -inline void SharingLog_RespondToIntroduction::set_session_id(int64_t value) { +inline void SharingLog_RespondToIntroduction::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.session_id) } +inline ::int64_t SharingLog_RespondToIntroduction::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_RespondToIntroduction::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional bool qr_code_flow = 3; -inline bool SharingLog_RespondToIntroduction::_internal_has_qr_code_flow() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_RespondToIntroduction::has_qr_code_flow() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_RespondToIntroduction::has_qr_code_flow() const { - return _internal_has_qr_code_flow(); -} inline void SharingLog_RespondToIntroduction::clear_qr_code_flow() { - qr_code_flow_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool SharingLog_RespondToIntroduction::_internal_qr_code_flow() const { - return qr_code_flow_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool SharingLog_RespondToIntroduction::qr_code_flow() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.qr_code_flow) return _internal_qr_code_flow(); } -inline void SharingLog_RespondToIntroduction::_internal_set_qr_code_flow(bool value) { - _has_bits_[0] |= 0x00000004u; - qr_code_flow_ = value; -} inline void SharingLog_RespondToIntroduction::set_qr_code_flow(bool value) { _internal_set_qr_code_flow(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction.qr_code_flow) } +inline bool SharingLog_RespondToIntroduction::_internal_qr_code_flow() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.qr_code_flow_; +} +inline void SharingLog_RespondToIntroduction::_internal_set_qr_code_flow(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = value; +} // ------------------------------------------------------------------- // SharingLog_SendAttachmentsStart // optional int64 session_id = 1; -inline bool SharingLog_SendAttachmentsStart::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_SendAttachmentsStart::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_SendAttachmentsStart::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_SendAttachmentsStart::session_id() const { +inline ::int64_t SharingLog_SendAttachmentsStart::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.session_id) return _internal_session_id(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - session_id_ = value; -} -inline void SharingLog_SendAttachmentsStart::set_session_id(int64_t value) { +inline void SharingLog_SendAttachmentsStart::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.session_id) } +inline ::int64_t SharingLog_SendAttachmentsStart::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; -inline bool SharingLog_SendAttachmentsStart::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_SendAttachmentsStart::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_SendAttachmentsStart::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_SendAttachmentsStart::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsStart::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsStart::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsStart::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.attachments_info) return _internal_attachments_info(); } inline void SharingLog_SendAttachmentsStart::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsStart::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsStart::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsStart::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsStart::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsStart::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsStart::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.attachments_info) return _msg; } -inline void SharingLog_SendAttachmentsStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendAttachmentsStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.attachments_info) } // optional int32 transfer_position = 3; -inline bool SharingLog_SendAttachmentsStart::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_SendAttachmentsStart::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t SharingLog_SendAttachmentsStart::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_SendAttachmentsStart::transfer_position() const { +inline ::int32_t SharingLog_SendAttachmentsStart::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000008u; - transfer_position_ = value; -} -inline void SharingLog_SendAttachmentsStart::set_transfer_position(int32_t value) { +inline void SharingLog_SendAttachmentsStart::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.transfer_position) } +inline ::int32_t SharingLog_SendAttachmentsStart::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 4; -inline bool SharingLog_SendAttachmentsStart::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_SendAttachmentsStart::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t SharingLog_SendAttachmentsStart::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_SendAttachmentsStart::concurrent_connections() const { +inline ::int32_t SharingLog_SendAttachmentsStart::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000010u; - concurrent_connections_ = value; -} -inline void SharingLog_SendAttachmentsStart::set_concurrent_connections(int32_t value) { +inline void SharingLog_SendAttachmentsStart::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.concurrent_connections) } +inline ::int32_t SharingLog_SendAttachmentsStart::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // optional bool qr_code_flow = 5 [deprecated = true]; -inline bool SharingLog_SendAttachmentsStart::_internal_has_qr_code_flow() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_qr_code_flow() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_qr_code_flow() const { - return _internal_has_qr_code_flow(); -} inline void SharingLog_SendAttachmentsStart::clear_qr_code_flow() { - qr_code_flow_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool SharingLog_SendAttachmentsStart::_internal_qr_code_flow() const { - return qr_code_flow_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool SharingLog_SendAttachmentsStart::qr_code_flow() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.qr_code_flow) return _internal_qr_code_flow(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_qr_code_flow(bool value) { - _has_bits_[0] |= 0x00000020u; - qr_code_flow_ = value; -} inline void SharingLog_SendAttachmentsStart::set_qr_code_flow(bool value) { _internal_set_qr_code_flow(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.qr_code_flow) } +inline bool SharingLog_SendAttachmentsStart::_internal_qr_code_flow() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.qr_code_flow_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_qr_code_flow(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.qr_code_flow_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 6; -inline bool SharingLog_SendAttachmentsStart::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_SendAttachmentsStart::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_SendAttachmentsStart::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_SendAttachmentsStart::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsStart::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsStart::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsStart::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.share_target_info) return _internal_share_target_info(); } inline void SharingLog_SendAttachmentsStart::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsStart::release_share_target_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsStart::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsStart::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsStart::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.share_target_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsStart::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000002u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsStart::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsStart::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.share_target_info) return _msg; } -inline void SharingLog_SendAttachmentsStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendAttachmentsStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.share_target_info) } // optional bool advanced_protection_enabled = 7; -inline bool SharingLog_SendAttachmentsStart::_internal_has_advanced_protection_enabled() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_advanced_protection_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_advanced_protection_enabled() const { - return _internal_has_advanced_protection_enabled(); -} inline void SharingLog_SendAttachmentsStart::clear_advanced_protection_enabled() { - advanced_protection_enabled_ = false; - _has_bits_[0] &= ~0x00000040u; -} -inline bool SharingLog_SendAttachmentsStart::_internal_advanced_protection_enabled() const { - return advanced_protection_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advanced_protection_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool SharingLog_SendAttachmentsStart::advanced_protection_enabled() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.advanced_protection_enabled) return _internal_advanced_protection_enabled(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_advanced_protection_enabled(bool value) { - _has_bits_[0] |= 0x00000040u; - advanced_protection_enabled_ = value; -} inline void SharingLog_SendAttachmentsStart::set_advanced_protection_enabled(bool value) { _internal_set_advanced_protection_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.advanced_protection_enabled) } +inline bool SharingLog_SendAttachmentsStart::_internal_advanced_protection_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.advanced_protection_enabled_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_advanced_protection_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advanced_protection_enabled_ = value; +} // optional bool advanced_protection_mismatch = 8; -inline bool SharingLog_SendAttachmentsStart::_internal_has_advanced_protection_mismatch() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_SendAttachmentsStart::has_advanced_protection_mismatch() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_SendAttachmentsStart::has_advanced_protection_mismatch() const { - return _internal_has_advanced_protection_mismatch(); -} inline void SharingLog_SendAttachmentsStart::clear_advanced_protection_mismatch() { - advanced_protection_mismatch_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool SharingLog_SendAttachmentsStart::_internal_advanced_protection_mismatch() const { - return advanced_protection_mismatch_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advanced_protection_mismatch_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool SharingLog_SendAttachmentsStart::advanced_protection_mismatch() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.advanced_protection_mismatch) return _internal_advanced_protection_mismatch(); } -inline void SharingLog_SendAttachmentsStart::_internal_set_advanced_protection_mismatch(bool value) { - _has_bits_[0] |= 0x00000080u; - advanced_protection_mismatch_ = value; -} inline void SharingLog_SendAttachmentsStart::set_advanced_protection_mismatch(bool value) { _internal_set_advanced_protection_mismatch(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart.advanced_protection_mismatch) } +inline bool SharingLog_SendAttachmentsStart::_internal_advanced_protection_mismatch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.advanced_protection_mismatch_; +} +inline void SharingLog_SendAttachmentsStart::_internal_set_advanced_protection_mismatch(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.advanced_protection_mismatch_ = value; +} // ------------------------------------------------------------------- // SharingLog_SendAttachmentsEnd // optional int64 session_id = 1; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_SendAttachmentsEnd::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_SendAttachmentsEnd::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_SendAttachmentsEnd::session_id() const { +inline ::int64_t SharingLog_SendAttachmentsEnd::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.session_id) return _internal_session_id(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000008u; - session_id_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_session_id(int64_t value) { +inline void SharingLog_SendAttachmentsEnd::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.session_id) } +inline ::int64_t SharingLog_SendAttachmentsEnd::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int64 sent_bytes = 2; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_sent_bytes() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_sent_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_sent_bytes() const { - return _internal_has_sent_bytes(); -} inline void SharingLog_SendAttachmentsEnd::clear_sent_bytes() { - sent_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sent_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t SharingLog_SendAttachmentsEnd::_internal_sent_bytes() const { - return sent_bytes_; -} -inline int64_t SharingLog_SendAttachmentsEnd::sent_bytes() const { +inline ::int64_t SharingLog_SendAttachmentsEnd::sent_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.sent_bytes) return _internal_sent_bytes(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_sent_bytes(int64_t value) { - _has_bits_[0] |= 0x00000010u; - sent_bytes_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_sent_bytes(int64_t value) { +inline void SharingLog_SendAttachmentsEnd::set_sent_bytes(::int64_t value) { _internal_set_sent_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.sent_bytes) } +inline ::int64_t SharingLog_SendAttachmentsEnd::_internal_sent_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sent_bytes_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_sent_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sent_bytes_ = value; +} // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_status() const { - return _internal_has_status(); -} inline void SharingLog_SendAttachmentsEnd::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_SendAttachmentsEnd::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_SendAttachmentsEnd::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.status) return _internal_status(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { - assert(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - status_ = value; -} inline void SharingLog_SendAttachmentsEnd::set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.status) } +inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_SendAttachmentsEnd::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(_impl_.status_); +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentTransmissionStatus_internal_data_)); + _impl_.status_ = value; +} // optional int32 transfer_position = 4; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_SendAttachmentsEnd::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_SendAttachmentsEnd::transfer_position() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000040u; - transfer_position_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_transfer_position(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.transfer_position) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 5; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_SendAttachmentsEnd::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_SendAttachmentsEnd::concurrent_connections() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000100u; - concurrent_connections_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_concurrent_connections(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.concurrent_connections) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 6; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_SendAttachmentsEnd::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_SendAttachmentsEnd::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsEnd::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsEnd::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_SendAttachmentsEnd::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.attachments_info) return _internal_attachments_info(); } inline void SharingLog_SendAttachmentsEnd::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsEnd::release_attachments_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsEnd::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsEnd::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsEnd::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.attachments_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsEnd::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000002u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_SendAttachmentsEnd::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.attachments_info) return _msg; } -inline void SharingLog_SendAttachmentsEnd::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendAttachmentsEnd::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.attachments_info) } // optional int64 duration_millis = 7; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_SendAttachmentsEnd::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int64_t SharingLog_SendAttachmentsEnd::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_SendAttachmentsEnd::duration_millis() const { +inline ::int64_t SharingLog_SendAttachmentsEnd::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000080u; - duration_millis_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_duration_millis(int64_t value) { +inline void SharingLog_SendAttachmentsEnd::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.duration_millis) } +inline ::int64_t SharingLog_SendAttachmentsEnd::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 8; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_SendAttachmentsEnd::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_SendAttachmentsEnd::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsEnd::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsEnd::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendAttachmentsEnd::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.share_target_info) return _internal_share_target_info(); } inline void SharingLog_SendAttachmentsEnd::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000004u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsEnd::release_share_target_info() { - _has_bits_[0] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsEnd::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsEnd::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendAttachmentsEnd::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.share_target_info) - _has_bits_[0] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsEnd::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000004u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendAttachmentsEnd::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.share_target_info) return _msg; } -inline void SharingLog_SendAttachmentsEnd::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendAttachmentsEnd::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.share_target_info) } // optional string referrer_name = 9; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_SendAttachmentsEnd::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_SendAttachmentsEnd::referrer_name() const { +inline const ::std::string& SharingLog_SendAttachmentsEnd::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_SendAttachmentsEnd::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_SendAttachmentsEnd::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.referrer_name) } -inline std::string* SharingLog_SendAttachmentsEnd::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.referrer_name) return _s; } -inline const std::string& SharingLog_SendAttachmentsEnd::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_SendAttachmentsEnd::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_SendAttachmentsEnd::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_SendAttachmentsEnd::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_SendAttachmentsEnd::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_SendAttachmentsEnd::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_SendAttachmentsEnd::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_SendAttachmentsEnd::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_SendAttachmentsEnd::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.referrer_name) } // optional .location.nearby.proto.sharing.ConnectionLayerStatus connection_layer_status = 10; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_connection_layer_status() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_connection_layer_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_connection_layer_status() const { - return _internal_has_connection_layer_status(); -} inline void SharingLog_SendAttachmentsEnd::clear_connection_layer_status() { - connection_layer_status_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::location::nearby::proto::sharing::ConnectionLayerStatus SharingLog_SendAttachmentsEnd::_internal_connection_layer_status() const { - return static_cast< ::location::nearby::proto::sharing::ConnectionLayerStatus >(connection_layer_status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_layer_status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::proto::sharing::ConnectionLayerStatus SharingLog_SendAttachmentsEnd::connection_layer_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.connection_layer_status) return _internal_connection_layer_status(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_connection_layer_status(::location::nearby::proto::sharing::ConnectionLayerStatus value) { - assert(::location::nearby::proto::sharing::ConnectionLayerStatus_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - connection_layer_status_ = value; -} inline void SharingLog_SendAttachmentsEnd::set_connection_layer_status(::location::nearby::proto::sharing::ConnectionLayerStatus value) { _internal_set_connection_layer_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.connection_layer_status) } +inline ::location::nearby::proto::sharing::ConnectionLayerStatus SharingLog_SendAttachmentsEnd::_internal_connection_layer_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ConnectionLayerStatus>(_impl_.connection_layer_status_); +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_connection_layer_status(::location::nearby::proto::sharing::ConnectionLayerStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ConnectionLayerStatus_internal_data_)); + _impl_.connection_layer_status_ = value; +} // optional int32 first_successful_transfer_date = 11; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_first_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_first_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_first_successful_transfer_date() const { - return _internal_has_first_successful_transfer_date(); -} inline void SharingLog_SendAttachmentsEnd::clear_first_successful_transfer_date() { - first_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_first_successful_transfer_date() const { - return first_successful_transfer_date_; -} -inline int32_t SharingLog_SendAttachmentsEnd::first_successful_transfer_date() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::first_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.first_successful_transfer_date) return _internal_first_successful_transfer_date(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_first_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000400u; - first_successful_transfer_date_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_first_successful_transfer_date(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_first_successful_transfer_date(::int32_t value) { _internal_set_first_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.first_successful_transfer_date) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_first_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.first_successful_transfer_date_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_first_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = value; +} // optional int32 previous_successful_transfer_date = 12; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_previous_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_previous_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_previous_successful_transfer_date() const { - return _internal_has_previous_successful_transfer_date(); -} inline void SharingLog_SendAttachmentsEnd::clear_previous_successful_transfer_date() { - previous_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_previous_successful_transfer_date() const { - return previous_successful_transfer_date_; -} -inline int32_t SharingLog_SendAttachmentsEnd::previous_successful_transfer_date() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::previous_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.previous_successful_transfer_date) return _internal_previous_successful_transfer_date(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_previous_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000800u; - previous_successful_transfer_date_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_previous_successful_transfer_date(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_previous_successful_transfer_date(::int32_t value) { _internal_set_previous_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.previous_successful_transfer_date) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_previous_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.previous_successful_transfer_date_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_previous_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = value; +} // optional int32 lifetime_transfer_count = 13; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_lifetime_transfer_count() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_lifetime_transfer_count() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_lifetime_transfer_count() const { - return _internal_has_lifetime_transfer_count(); -} inline void SharingLog_SendAttachmentsEnd::clear_lifetime_transfer_count() { - lifetime_transfer_count_ = 0; - _has_bits_[0] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_lifetime_transfer_count() const { - return lifetime_transfer_count_; -} -inline int32_t SharingLog_SendAttachmentsEnd::lifetime_transfer_count() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::lifetime_transfer_count() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.lifetime_transfer_count) return _internal_lifetime_transfer_count(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_lifetime_transfer_count(int32_t value) { - _has_bits_[0] |= 0x00001000u; - lifetime_transfer_count_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_lifetime_transfer_count(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_lifetime_transfer_count(::int32_t value) { _internal_set_lifetime_transfer_count(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.lifetime_transfer_count) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_lifetime_transfer_count() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.lifetime_transfer_count_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_lifetime_transfer_count(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = value; +} // optional int32 connection_medium = 14; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_connection_medium() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_connection_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_connection_medium() const { - return _internal_has_connection_medium(); -} inline void SharingLog_SendAttachmentsEnd::clear_connection_medium() { - connection_medium_ = 0; - _has_bits_[0] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } -inline int32_t SharingLog_SendAttachmentsEnd::_internal_connection_medium() const { - return connection_medium_; -} -inline int32_t SharingLog_SendAttachmentsEnd::connection_medium() const { +inline ::int32_t SharingLog_SendAttachmentsEnd::connection_medium() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.connection_medium) return _internal_connection_medium(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_connection_medium(int32_t value) { - _has_bits_[0] |= 0x00002000u; - connection_medium_ = value; -} -inline void SharingLog_SendAttachmentsEnd::set_connection_medium(int32_t value) { +inline void SharingLog_SendAttachmentsEnd::set_connection_medium(::int32_t value) { _internal_set_connection_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.connection_medium) } +inline ::int32_t SharingLog_SendAttachmentsEnd::_internal_connection_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_medium_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_connection_medium(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = value; +} // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_data_usage() const { - bool value = (_has_bits_[0] & 0x00004000u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_data_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_data_usage() const { - return _internal_has_data_usage(); -} inline void SharingLog_SendAttachmentsEnd::clear_data_usage() { - data_usage_ = 0; - _has_bits_[0] &= ~0x00004000u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_SendAttachmentsEnd::_internal_data_usage() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(data_usage_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_usage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_SendAttachmentsEnd::data_usage() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.data_usage) return _internal_data_usage(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00004000u; - data_usage_ = value; -} inline void SharingLog_SendAttachmentsEnd::set_data_usage(::location::nearby::proto::sharing::DataUsage value) { _internal_set_data_usage(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.data_usage) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_SendAttachmentsEnd::_internal_data_usage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.data_usage_); +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.data_usage_ = value; +} // optional bool is_mutual_contact = 16; -inline bool SharingLog_SendAttachmentsEnd::_internal_has_is_mutual_contact() const { - bool value = (_has_bits_[0] & 0x00008000u) != 0; +inline bool SharingLog_SendAttachmentsEnd::has_is_mutual_contact() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00008000U); return value; } -inline bool SharingLog_SendAttachmentsEnd::has_is_mutual_contact() const { - return _internal_has_is_mutual_contact(); -} inline void SharingLog_SendAttachmentsEnd::clear_is_mutual_contact() { - is_mutual_contact_ = false; - _has_bits_[0] &= ~0x00008000u; -} -inline bool SharingLog_SendAttachmentsEnd::_internal_is_mutual_contact() const { - return is_mutual_contact_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_mutual_contact_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } inline bool SharingLog_SendAttachmentsEnd::is_mutual_contact() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.is_mutual_contact) return _internal_is_mutual_contact(); } -inline void SharingLog_SendAttachmentsEnd::_internal_set_is_mutual_contact(bool value) { - _has_bits_[0] |= 0x00008000u; - is_mutual_contact_ = value; -} inline void SharingLog_SendAttachmentsEnd::set_is_mutual_contact(bool value) { _internal_set_is_mutual_contact(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd.is_mutual_contact) } +inline bool SharingLog_SendAttachmentsEnd::_internal_is_mutual_contact() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_mutual_contact_; +} +inline void SharingLog_SendAttachmentsEnd::_internal_set_is_mutual_contact(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_mutual_contact_ = value; +} // ------------------------------------------------------------------- // SharingLog_ReceiveAttachmentsStart // optional int64 session_id = 1; -inline bool SharingLog_ReceiveAttachmentsStart::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ReceiveAttachmentsStart::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ReceiveAttachmentsStart::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ReceiveAttachmentsStart::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_ReceiveAttachmentsStart::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ReceiveAttachmentsStart::session_id() const { +inline ::int64_t SharingLog_ReceiveAttachmentsStart::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.session_id) return _internal_session_id(); } -inline void SharingLog_ReceiveAttachmentsStart::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - session_id_ = value; -} -inline void SharingLog_ReceiveAttachmentsStart::set_session_id(int64_t value) { +inline void SharingLog_ReceiveAttachmentsStart::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.session_id) } +inline ::int64_t SharingLog_ReceiveAttachmentsStart::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ReceiveAttachmentsStart::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 2; -inline bool SharingLog_ReceiveAttachmentsStart::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_ReceiveAttachmentsStart::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_ReceiveAttachmentsStart::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_ReceiveAttachmentsStart::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_ReceiveAttachmentsStart::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_ReceiveAttachmentsStart::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_ReceiveAttachmentsStart::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.attachments_info) return _internal_attachments_info(); } inline void SharingLog_ReceiveAttachmentsStart::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_ReceiveAttachmentsStart::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsStart::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_ReceiveAttachmentsStart::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsStart::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_ReceiveAttachmentsStart::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_ReceiveAttachmentsStart::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.attachments_info) return _msg; } -inline void SharingLog_ReceiveAttachmentsStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ReceiveAttachmentsStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.attachments_info) } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 3; -inline bool SharingLog_ReceiveAttachmentsStart::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_ReceiveAttachmentsStart::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_ReceiveAttachmentsStart::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_ReceiveAttachmentsStart::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsStart::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsStart::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsStart::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.share_target_info) return _internal_share_target_info(); } inline void SharingLog_ReceiveAttachmentsStart::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsStart::release_share_target_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsStart::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsStart::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsStart::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.share_target_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsStart::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000002u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsStart::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsStart::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.share_target_info) return _msg; } -inline void SharingLog_ReceiveAttachmentsStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ReceiveAttachmentsStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart.share_target_info) } @@ -23593,477 +26782,501 @@ inline void SharingLog_ReceiveAttachmentsStart::set_allocated_share_target_info( // SharingLog_ReceiveAttachmentsEnd // optional int64 session_id = 1; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_ReceiveAttachmentsEnd::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ReceiveAttachmentsEnd::session_id() const { +inline ::int64_t SharingLog_ReceiveAttachmentsEnd::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.session_id) return _internal_session_id(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - session_id_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_session_id(int64_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.session_id) } +inline ::int64_t SharingLog_ReceiveAttachmentsEnd::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int64 received_bytes = 2; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_received_bytes() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_received_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_received_bytes() const { - return _internal_has_received_bytes(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_received_bytes() { - received_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_ReceiveAttachmentsEnd::_internal_received_bytes() const { - return received_bytes_; -} -inline int64_t SharingLog_ReceiveAttachmentsEnd::received_bytes() const { +inline ::int64_t SharingLog_ReceiveAttachmentsEnd::received_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.received_bytes) return _internal_received_bytes(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_received_bytes(int64_t value) { - _has_bits_[0] |= 0x00000008u; - received_bytes_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_received_bytes(int64_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_received_bytes(::int64_t value) { _internal_set_received_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.received_bytes) } +inline ::int64_t SharingLog_ReceiveAttachmentsEnd::_internal_received_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.received_bytes_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_received_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.received_bytes_ = value; +} // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 3; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_status() const { - return _internal_has_status(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_ReceiveAttachmentsEnd::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_ReceiveAttachmentsEnd::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.status) return _internal_status(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { - assert(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - status_ = value; -} inline void SharingLog_ReceiveAttachmentsEnd::set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.status) } +inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_ReceiveAttachmentsEnd::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(_impl_.status_); +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentTransmissionStatus_internal_data_)); + _impl_.status_ = value; +} // optional string referrer_name = 4; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_ReceiveAttachmentsEnd::referrer_name() const { +inline const ::std::string& SharingLog_ReceiveAttachmentsEnd::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_ReceiveAttachmentsEnd::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_ReceiveAttachmentsEnd::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.referrer_name) } -inline std::string* SharingLog_ReceiveAttachmentsEnd::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.referrer_name) return _s; } -inline const std::string& SharingLog_ReceiveAttachmentsEnd::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_ReceiveAttachmentsEnd::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_ReceiveAttachmentsEnd::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_ReceiveAttachmentsEnd::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsEnd::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_ReceiveAttachmentsEnd::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_ReceiveAttachmentsEnd::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.referrer_name) } // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 5; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_ReceiveAttachmentsEnd::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsEnd::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsEnd::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_ReceiveAttachmentsEnd::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.share_target_info) return _internal_share_target_info(); } inline void SharingLog_ReceiveAttachmentsEnd::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000002u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsEnd::release_share_target_info() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsEnd::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsEnd::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_ReceiveAttachmentsEnd::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.share_target_info) - _has_bits_[0] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsEnd::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000002u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_ReceiveAttachmentsEnd::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_ReceiveAttachmentsEnd::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.share_target_info) return _msg; } -inline void SharingLog_ReceiveAttachmentsEnd::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_ReceiveAttachmentsEnd::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.share_target_info) } // optional int32 first_successful_transfer_date = 6; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_first_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_first_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_first_successful_transfer_date() const { - return _internal_has_first_successful_transfer_date(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_first_successful_transfer_date() { - first_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t SharingLog_ReceiveAttachmentsEnd::_internal_first_successful_transfer_date() const { - return first_successful_transfer_date_; -} -inline int32_t SharingLog_ReceiveAttachmentsEnd::first_successful_transfer_date() const { +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::first_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.first_successful_transfer_date) return _internal_first_successful_transfer_date(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_first_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000020u; - first_successful_transfer_date_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_first_successful_transfer_date(int32_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_first_successful_transfer_date(::int32_t value) { _internal_set_first_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.first_successful_transfer_date) } +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::_internal_first_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.first_successful_transfer_date_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_first_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.first_successful_transfer_date_ = value; +} // optional int32 previous_successful_transfer_date = 7; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_previous_successful_transfer_date() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_previous_successful_transfer_date() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_previous_successful_transfer_date() const { - return _internal_has_previous_successful_transfer_date(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_previous_successful_transfer_date() { - previous_successful_transfer_date_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t SharingLog_ReceiveAttachmentsEnd::_internal_previous_successful_transfer_date() const { - return previous_successful_transfer_date_; -} -inline int32_t SharingLog_ReceiveAttachmentsEnd::previous_successful_transfer_date() const { +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::previous_successful_transfer_date() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.previous_successful_transfer_date) return _internal_previous_successful_transfer_date(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_previous_successful_transfer_date(int32_t value) { - _has_bits_[0] |= 0x00000040u; - previous_successful_transfer_date_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_previous_successful_transfer_date(int32_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_previous_successful_transfer_date(::int32_t value) { _internal_set_previous_successful_transfer_date(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.previous_successful_transfer_date) } +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::_internal_previous_successful_transfer_date() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.previous_successful_transfer_date_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_previous_successful_transfer_date(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_successful_transfer_date_ = value; +} // optional int32 lifetime_transfer_count = 8; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_lifetime_transfer_count() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_lifetime_transfer_count() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_lifetime_transfer_count() const { - return _internal_has_lifetime_transfer_count(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_lifetime_transfer_count() { - lifetime_transfer_count_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t SharingLog_ReceiveAttachmentsEnd::_internal_lifetime_transfer_count() const { - return lifetime_transfer_count_; -} -inline int32_t SharingLog_ReceiveAttachmentsEnd::lifetime_transfer_count() const { +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::lifetime_transfer_count() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.lifetime_transfer_count) return _internal_lifetime_transfer_count(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_lifetime_transfer_count(int32_t value) { - _has_bits_[0] |= 0x00000080u; - lifetime_transfer_count_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_lifetime_transfer_count(int32_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_lifetime_transfer_count(::int32_t value) { _internal_set_lifetime_transfer_count(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.lifetime_transfer_count) } +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::_internal_lifetime_transfer_count() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.lifetime_transfer_count_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_lifetime_transfer_count(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lifetime_transfer_count_ = value; +} // optional int32 connection_medium = 14; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_connection_medium() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_connection_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_connection_medium() const { - return _internal_has_connection_medium(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_connection_medium() { - connection_medium_ = 0; - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline int32_t SharingLog_ReceiveAttachmentsEnd::_internal_connection_medium() const { - return connection_medium_; -} -inline int32_t SharingLog_ReceiveAttachmentsEnd::connection_medium() const { +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::connection_medium() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.connection_medium) return _internal_connection_medium(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_connection_medium(int32_t value) { - _has_bits_[0] |= 0x00000100u; - connection_medium_ = value; -} -inline void SharingLog_ReceiveAttachmentsEnd::set_connection_medium(int32_t value) { +inline void SharingLog_ReceiveAttachmentsEnd::set_connection_medium(::int32_t value) { _internal_set_connection_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.connection_medium) } +inline ::int32_t SharingLog_ReceiveAttachmentsEnd::_internal_connection_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_medium_; +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_connection_medium(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = value; +} // optional .location.nearby.proto.sharing.DataUsage data_usage = 15; -inline bool SharingLog_ReceiveAttachmentsEnd::_internal_has_data_usage() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool SharingLog_ReceiveAttachmentsEnd::has_data_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool SharingLog_ReceiveAttachmentsEnd::has_data_usage() const { - return _internal_has_data_usage(); -} inline void SharingLog_ReceiveAttachmentsEnd::clear_data_usage() { - data_usage_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::location::nearby::proto::sharing::DataUsage SharingLog_ReceiveAttachmentsEnd::_internal_data_usage() const { - return static_cast< ::location::nearby::proto::sharing::DataUsage >(data_usage_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_usage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::location::nearby::proto::sharing::DataUsage SharingLog_ReceiveAttachmentsEnd::data_usage() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.data_usage) return _internal_data_usage(); } -inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { - assert(::location::nearby::proto::sharing::DataUsage_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - data_usage_ = value; -} inline void SharingLog_ReceiveAttachmentsEnd::set_data_usage(::location::nearby::proto::sharing::DataUsage value) { _internal_set_data_usage(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd.data_usage) } +inline ::location::nearby::proto::sharing::DataUsage SharingLog_ReceiveAttachmentsEnd::_internal_data_usage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DataUsage>(_impl_.data_usage_); +} +inline void SharingLog_ReceiveAttachmentsEnd::_internal_set_data_usage(::location::nearby::proto::sharing::DataUsage value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DataUsage_internal_data_)); + _impl_.data_usage_ = value; +} // ------------------------------------------------------------------- // SharingLog_CancelConnection // optional int64 session_id = 1; -inline bool SharingLog_CancelConnection::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CancelConnection::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_CancelConnection::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_CancelConnection::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_CancelConnection::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_CancelConnection::session_id() const { +inline ::int64_t SharingLog_CancelConnection::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CancelConnection.session_id) return _internal_session_id(); } -inline void SharingLog_CancelConnection::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - session_id_ = value; -} -inline void SharingLog_CancelConnection::set_session_id(int64_t value) { +inline void SharingLog_CancelConnection::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CancelConnection.session_id) } +inline ::int64_t SharingLog_CancelConnection::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_CancelConnection::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int32 transfer_position = 2; -inline bool SharingLog_CancelConnection::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CancelConnection::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CancelConnection::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_CancelConnection::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t SharingLog_CancelConnection::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_CancelConnection::transfer_position() const { +inline ::int32_t SharingLog_CancelConnection::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CancelConnection.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_CancelConnection::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000002u; - transfer_position_ = value; -} -inline void SharingLog_CancelConnection::set_transfer_position(int32_t value) { +inline void SharingLog_CancelConnection::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CancelConnection.transfer_position) } +inline ::int32_t SharingLog_CancelConnection::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_CancelConnection::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 3; -inline bool SharingLog_CancelConnection::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_CancelConnection::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_CancelConnection::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_CancelConnection::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t SharingLog_CancelConnection::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_CancelConnection::concurrent_connections() const { +inline ::int32_t SharingLog_CancelConnection::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CancelConnection.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_CancelConnection::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000004u; - concurrent_connections_ = value; -} -inline void SharingLog_CancelConnection::set_concurrent_connections(int32_t value) { +inline void SharingLog_CancelConnection::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CancelConnection.concurrent_connections) } +inline ::int32_t SharingLog_CancelConnection::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_CancelConnection::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // ------------------------------------------------------------------- @@ -24078,183 +27291,197 @@ inline void SharingLog_CancelConnection::set_concurrent_connections(int32_t valu // SharingLog_ProcessReceivedAttachmentsEnd // optional int64 session_id = 1; -inline bool SharingLog_ProcessReceivedAttachmentsEnd::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ProcessReceivedAttachmentsEnd::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ProcessReceivedAttachmentsEnd::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_ProcessReceivedAttachmentsEnd::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_ProcessReceivedAttachmentsEnd::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_ProcessReceivedAttachmentsEnd::session_id() const { +inline ::int64_t SharingLog_ProcessReceivedAttachmentsEnd::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd.session_id) return _internal_session_id(); } -inline void SharingLog_ProcessReceivedAttachmentsEnd::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - session_id_ = value; -} -inline void SharingLog_ProcessReceivedAttachmentsEnd::set_session_id(int64_t value) { +inline void SharingLog_ProcessReceivedAttachmentsEnd::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd.session_id) } +inline ::int64_t SharingLog_ProcessReceivedAttachmentsEnd::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_ProcessReceivedAttachmentsEnd::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional .location.nearby.proto.sharing.ProcessReceivedAttachmentsStatus status = 2; -inline bool SharingLog_ProcessReceivedAttachmentsEnd::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ProcessReceivedAttachmentsEnd::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ProcessReceivedAttachmentsEnd::has_status() const { - return _internal_has_status(); -} inline void SharingLog_ProcessReceivedAttachmentsEnd::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus SharingLog_ProcessReceivedAttachmentsEnd::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus SharingLog_ProcessReceivedAttachmentsEnd::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd.status) return _internal_status(); } -inline void SharingLog_ProcessReceivedAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value) { - assert(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - status_ = value; -} inline void SharingLog_ProcessReceivedAttachmentsEnd::set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd.status) } +inline ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus SharingLog_ProcessReceivedAttachmentsEnd::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus>(_impl_.status_); +} +inline void SharingLog_ProcessReceivedAttachmentsEnd::_internal_set_status(::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ProcessReceivedAttachmentsStatus_internal_data_)); + _impl_.status_ = value; +} // ------------------------------------------------------------------- // SharingLog_OpenReceivedAttachments // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 3; -inline bool SharingLog_OpenReceivedAttachments::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_OpenReceivedAttachments::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_OpenReceivedAttachments::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_OpenReceivedAttachments::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_OpenReceivedAttachments::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_OpenReceivedAttachments::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_OpenReceivedAttachments::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.attachments_info) return _internal_attachments_info(); } inline void SharingLog_OpenReceivedAttachments::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_OpenReceivedAttachments::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_OpenReceivedAttachments::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_OpenReceivedAttachments::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_OpenReceivedAttachments::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_OpenReceivedAttachments::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_OpenReceivedAttachments::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_OpenReceivedAttachments::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.attachments_info) return _msg; } -inline void SharingLog_OpenReceivedAttachments::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_OpenReceivedAttachments::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.attachments_info) } // optional int64 session_id = 4; -inline bool SharingLog_OpenReceivedAttachments::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_OpenReceivedAttachments::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_OpenReceivedAttachments::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_OpenReceivedAttachments::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_OpenReceivedAttachments::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_OpenReceivedAttachments::session_id() const { +inline ::int64_t SharingLog_OpenReceivedAttachments::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.session_id) return _internal_session_id(); } -inline void SharingLog_OpenReceivedAttachments::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_OpenReceivedAttachments::set_session_id(int64_t value) { +inline void SharingLog_OpenReceivedAttachments::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments.session_id) } +inline ::int64_t SharingLog_OpenReceivedAttachments::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_OpenReceivedAttachments::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // ------------------------------------------------------------------- @@ -24265,473 +27492,505 @@ inline void SharingLog_OpenReceivedAttachments::set_session_id(int64_t value) { // SharingLog_AddContact // optional bool was_phone_added = 1; -inline bool SharingLog_AddContact::_internal_has_was_phone_added() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AddContact::has_was_phone_added() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AddContact::has_was_phone_added() const { - return _internal_has_was_phone_added(); -} inline void SharingLog_AddContact::clear_was_phone_added() { - was_phone_added_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool SharingLog_AddContact::_internal_was_phone_added() const { - return was_phone_added_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_phone_added_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool SharingLog_AddContact::was_phone_added() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AddContact.was_phone_added) return _internal_was_phone_added(); } -inline void SharingLog_AddContact::_internal_set_was_phone_added(bool value) { - _has_bits_[0] |= 0x00000001u; - was_phone_added_ = value; -} inline void SharingLog_AddContact::set_was_phone_added(bool value) { _internal_set_was_phone_added(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AddContact.was_phone_added) } +inline bool SharingLog_AddContact::_internal_was_phone_added() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.was_phone_added_; +} +inline void SharingLog_AddContact::_internal_set_was_phone_added(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_phone_added_ = value; +} // optional bool was_email_added = 2; -inline bool SharingLog_AddContact::_internal_has_was_email_added() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_AddContact::has_was_email_added() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_AddContact::has_was_email_added() const { - return _internal_has_was_email_added(); -} inline void SharingLog_AddContact::clear_was_email_added() { - was_email_added_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_AddContact::_internal_was_email_added() const { - return was_email_added_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_email_added_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_AddContact::was_email_added() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AddContact.was_email_added) return _internal_was_email_added(); } -inline void SharingLog_AddContact::_internal_set_was_email_added(bool value) { - _has_bits_[0] |= 0x00000002u; - was_email_added_ = value; -} inline void SharingLog_AddContact::set_was_email_added(bool value) { _internal_set_was_email_added(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AddContact.was_email_added) } +inline bool SharingLog_AddContact::_internal_was_email_added() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.was_email_added_; +} +inline void SharingLog_AddContact::_internal_set_was_email_added(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_email_added_ = value; +} // ------------------------------------------------------------------- // SharingLog_RemoveContact // optional bool was_phone_removed = 1; -inline bool SharingLog_RemoveContact::_internal_has_was_phone_removed() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_RemoveContact::has_was_phone_removed() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_RemoveContact::has_was_phone_removed() const { - return _internal_has_was_phone_removed(); -} inline void SharingLog_RemoveContact::clear_was_phone_removed() { - was_phone_removed_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool SharingLog_RemoveContact::_internal_was_phone_removed() const { - return was_phone_removed_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_phone_removed_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline bool SharingLog_RemoveContact::was_phone_removed() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RemoveContact.was_phone_removed) return _internal_was_phone_removed(); } -inline void SharingLog_RemoveContact::_internal_set_was_phone_removed(bool value) { - _has_bits_[0] |= 0x00000001u; - was_phone_removed_ = value; -} inline void SharingLog_RemoveContact::set_was_phone_removed(bool value) { _internal_set_was_phone_removed(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RemoveContact.was_phone_removed) } +inline bool SharingLog_RemoveContact::_internal_was_phone_removed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.was_phone_removed_; +} +inline void SharingLog_RemoveContact::_internal_set_was_phone_removed(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_phone_removed_ = value; +} // optional bool was_email_removed = 2; -inline bool SharingLog_RemoveContact::_internal_has_was_email_removed() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_RemoveContact::has_was_email_removed() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_RemoveContact::has_was_email_removed() const { - return _internal_has_was_email_removed(); -} inline void SharingLog_RemoveContact::clear_was_email_removed() { - was_email_removed_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_RemoveContact::_internal_was_email_removed() const { - return was_email_removed_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_email_removed_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_RemoveContact::was_email_removed() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RemoveContact.was_email_removed) return _internal_was_email_removed(); } -inline void SharingLog_RemoveContact::_internal_set_was_email_removed(bool value) { - _has_bits_[0] |= 0x00000002u; - was_email_removed_ = value; -} inline void SharingLog_RemoveContact::set_was_email_removed(bool value) { _internal_set_was_email_removed(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RemoveContact.was_email_removed) } +inline bool SharingLog_RemoveContact::_internal_was_email_removed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.was_email_removed_; +} +inline void SharingLog_RemoveContact::_internal_set_was_email_removed(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.was_email_removed_ = value; +} // ------------------------------------------------------------------- // SharingLog_FastShareServerResponse // optional .location.nearby.proto.sharing.ServerResponseState status = 1; -inline bool SharingLog_FastShareServerResponse::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_FastShareServerResponse::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_FastShareServerResponse::has_status() const { - return _internal_has_status(); -} inline void SharingLog_FastShareServerResponse::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ServerResponseState SharingLog_FastShareServerResponse::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::ServerResponseState >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ServerResponseState SharingLog_FastShareServerResponse::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.status) return _internal_status(); } -inline void SharingLog_FastShareServerResponse::_internal_set_status(::location::nearby::proto::sharing::ServerResponseState value) { - assert(::location::nearby::proto::sharing::ServerResponseState_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - status_ = value; -} inline void SharingLog_FastShareServerResponse::set_status(::location::nearby::proto::sharing::ServerResponseState value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.status) } +inline ::location::nearby::proto::sharing::ServerResponseState SharingLog_FastShareServerResponse::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ServerResponseState>(_impl_.status_); +} +inline void SharingLog_FastShareServerResponse::_internal_set_status(::location::nearby::proto::sharing::ServerResponseState value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ServerResponseState_internal_data_)); + _impl_.status_ = value; +} // optional .location.nearby.proto.sharing.ServerActionName name = 2; -inline bool SharingLog_FastShareServerResponse::_internal_has_name() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_FastShareServerResponse::has_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_FastShareServerResponse::has_name() const { - return _internal_has_name(); -} inline void SharingLog_FastShareServerResponse::clear_name() { - name_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::ServerActionName SharingLog_FastShareServerResponse::_internal_name() const { - return static_cast< ::location::nearby::proto::sharing::ServerActionName >(name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ServerActionName SharingLog_FastShareServerResponse::name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.name) return _internal_name(); } -inline void SharingLog_FastShareServerResponse::_internal_set_name(::location::nearby::proto::sharing::ServerActionName value) { - assert(::location::nearby::proto::sharing::ServerActionName_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - name_ = value; -} inline void SharingLog_FastShareServerResponse::set_name(::location::nearby::proto::sharing::ServerActionName value) { _internal_set_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.name) } +inline ::location::nearby::proto::sharing::ServerActionName SharingLog_FastShareServerResponse::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ServerActionName>(_impl_.name_); +} +inline void SharingLog_FastShareServerResponse::_internal_set_name(::location::nearby::proto::sharing::ServerActionName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ServerActionName_internal_data_)); + _impl_.name_ = value; +} // optional int64 latency_millis = 3; -inline bool SharingLog_FastShareServerResponse::_internal_has_latency_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_FastShareServerResponse::has_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_FastShareServerResponse::has_latency_millis() const { - return _internal_has_latency_millis(); -} inline void SharingLog_FastShareServerResponse::clear_latency_millis() { - latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_FastShareServerResponse::_internal_latency_millis() const { - return latency_millis_; -} -inline int64_t SharingLog_FastShareServerResponse::latency_millis() const { +inline ::int64_t SharingLog_FastShareServerResponse::latency_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.latency_millis) return _internal_latency_millis(); } -inline void SharingLog_FastShareServerResponse::_internal_set_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - latency_millis_ = value; -} -inline void SharingLog_FastShareServerResponse::set_latency_millis(int64_t value) { +inline void SharingLog_FastShareServerResponse::set_latency_millis(::int64_t value) { _internal_set_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.latency_millis) } +inline ::int64_t SharingLog_FastShareServerResponse::_internal_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_millis_; +} +inline void SharingLog_FastShareServerResponse::_internal_set_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = value; +} // optional .location.nearby.proto.sharing.SyncPurpose purpose = 4; -inline bool SharingLog_FastShareServerResponse::_internal_has_purpose() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_FastShareServerResponse::has_purpose() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_FastShareServerResponse::has_purpose() const { - return _internal_has_purpose(); -} inline void SharingLog_FastShareServerResponse::clear_purpose() { - purpose_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::SyncPurpose SharingLog_FastShareServerResponse::_internal_purpose() const { - return static_cast< ::location::nearby::proto::sharing::SyncPurpose >(purpose_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.purpose_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::SyncPurpose SharingLog_FastShareServerResponse::purpose() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.purpose) return _internal_purpose(); } -inline void SharingLog_FastShareServerResponse::_internal_set_purpose(::location::nearby::proto::sharing::SyncPurpose value) { - assert(::location::nearby::proto::sharing::SyncPurpose_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - purpose_ = value; -} inline void SharingLog_FastShareServerResponse::set_purpose(::location::nearby::proto::sharing::SyncPurpose value) { _internal_set_purpose(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.purpose) } +inline ::location::nearby::proto::sharing::SyncPurpose SharingLog_FastShareServerResponse::_internal_purpose() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::SyncPurpose>(_impl_.purpose_); +} +inline void SharingLog_FastShareServerResponse::_internal_set_purpose(::location::nearby::proto::sharing::SyncPurpose value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::SyncPurpose_internal_data_)); + _impl_.purpose_ = value; +} // optional .location.nearby.proto.sharing.ClientRole requester = 5; -inline bool SharingLog_FastShareServerResponse::_internal_has_requester() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_FastShareServerResponse::has_requester() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_FastShareServerResponse::has_requester() const { - return _internal_has_requester(); -} inline void SharingLog_FastShareServerResponse::clear_requester() { - requester_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::proto::sharing::ClientRole SharingLog_FastShareServerResponse::_internal_requester() const { - return static_cast< ::location::nearby::proto::sharing::ClientRole >(requester_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.requester_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::ClientRole SharingLog_FastShareServerResponse::requester() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.requester) return _internal_requester(); } -inline void SharingLog_FastShareServerResponse::_internal_set_requester(::location::nearby::proto::sharing::ClientRole value) { - assert(::location::nearby::proto::sharing::ClientRole_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - requester_ = value; -} inline void SharingLog_FastShareServerResponse::set_requester(::location::nearby::proto::sharing::ClientRole value) { _internal_set_requester(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.requester) } +inline ::location::nearby::proto::sharing::ClientRole SharingLog_FastShareServerResponse::_internal_requester() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ClientRole>(_impl_.requester_); +} +inline void SharingLog_FastShareServerResponse::_internal_set_requester(::location::nearby::proto::sharing::ClientRole value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ClientRole_internal_data_)); + _impl_.requester_ = value; +} // optional .location.nearby.proto.sharing.DeviceType device_type = 6; -inline bool SharingLog_FastShareServerResponse::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_FastShareServerResponse::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_FastShareServerResponse::has_device_type() const { - return _internal_has_device_type(); -} inline void SharingLog_FastShareServerResponse::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline ::location::nearby::proto::sharing::DeviceType SharingLog_FastShareServerResponse::_internal_device_type() const { - return static_cast< ::location::nearby::proto::sharing::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::location::nearby::proto::sharing::DeviceType SharingLog_FastShareServerResponse::device_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.device_type) return _internal_device_type(); } -inline void SharingLog_FastShareServerResponse::_internal_set_device_type(::location::nearby::proto::sharing::DeviceType value) { - assert(::location::nearby::proto::sharing::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - device_type_ = value; -} inline void SharingLog_FastShareServerResponse::set_device_type(::location::nearby::proto::sharing::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse.device_type) } +inline ::location::nearby::proto::sharing::DeviceType SharingLog_FastShareServerResponse::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DeviceType>(_impl_.device_type_); +} +inline void SharingLog_FastShareServerResponse::_internal_set_device_type(::location::nearby::proto::sharing::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_SendStart // optional int64 session_id = 1; -inline bool SharingLog_SendStart::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_SendStart::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_SendStart::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_SendStart::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_SendStart::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_SendStart::session_id() const { +inline ::int64_t SharingLog_SendStart::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendStart.session_id) return _internal_session_id(); } -inline void SharingLog_SendStart::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_SendStart::set_session_id(int64_t value) { +inline void SharingLog_SendStart::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendStart.session_id) } +inline ::int64_t SharingLog_SendStart::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_SendStart::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int32 transfer_position = 2; -inline bool SharingLog_SendStart::_internal_has_transfer_position() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_SendStart::has_transfer_position() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_SendStart::has_transfer_position() const { - return _internal_has_transfer_position(); -} inline void SharingLog_SendStart::clear_transfer_position() { - transfer_position_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t SharingLog_SendStart::_internal_transfer_position() const { - return transfer_position_; -} -inline int32_t SharingLog_SendStart::transfer_position() const { +inline ::int32_t SharingLog_SendStart::transfer_position() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendStart.transfer_position) return _internal_transfer_position(); } -inline void SharingLog_SendStart::_internal_set_transfer_position(int32_t value) { - _has_bits_[0] |= 0x00000004u; - transfer_position_ = value; -} -inline void SharingLog_SendStart::set_transfer_position(int32_t value) { +inline void SharingLog_SendStart::set_transfer_position(::int32_t value) { _internal_set_transfer_position(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendStart.transfer_position) } +inline ::int32_t SharingLog_SendStart::_internal_transfer_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transfer_position_; +} +inline void SharingLog_SendStart::_internal_set_transfer_position(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transfer_position_ = value; +} // optional int32 concurrent_connections = 3; -inline bool SharingLog_SendStart::_internal_has_concurrent_connections() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_SendStart::has_concurrent_connections() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_SendStart::has_concurrent_connections() const { - return _internal_has_concurrent_connections(); -} inline void SharingLog_SendStart::clear_concurrent_connections() { - concurrent_connections_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t SharingLog_SendStart::_internal_concurrent_connections() const { - return concurrent_connections_; -} -inline int32_t SharingLog_SendStart::concurrent_connections() const { +inline ::int32_t SharingLog_SendStart::concurrent_connections() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendStart.concurrent_connections) return _internal_concurrent_connections(); } -inline void SharingLog_SendStart::_internal_set_concurrent_connections(int32_t value) { - _has_bits_[0] |= 0x00000008u; - concurrent_connections_ = value; -} -inline void SharingLog_SendStart::set_concurrent_connections(int32_t value) { +inline void SharingLog_SendStart::set_concurrent_connections(::int32_t value) { _internal_set_concurrent_connections(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendStart.concurrent_connections) } +inline ::int32_t SharingLog_SendStart::_internal_concurrent_connections() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.concurrent_connections_; +} +inline void SharingLog_SendStart::_internal_set_concurrent_connections(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.concurrent_connections_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 4; -inline bool SharingLog_SendStart::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_SendStart::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_SendStart::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_SendStart::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendStart::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendStart::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_SendStart::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendStart.share_target_info) return _internal_share_target_info(); } inline void SharingLog_SendStart::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendStart.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendStart::release_share_target_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendStart::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendStart::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_SendStart::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.SendStart.share_target_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendStart::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000001u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendStart::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_SendStart::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_SendStart::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.SendStart.share_target_info) return _msg; } -inline void SharingLog_SendStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_SendStart::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.SendStart.share_target_info) } @@ -24744,243 +28003,253 @@ inline void SharingLog_SendStart::set_allocated_share_target_info(::nearby::shar // SharingLog_LaunchActivity // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; -inline bool SharingLog_LaunchActivity::_internal_has_activity_name() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_LaunchActivity::has_activity_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_LaunchActivity::has_activity_name() const { - return _internal_has_activity_name(); -} inline void SharingLog_LaunchActivity::clear_activity_name() { - activity_name_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::_internal_activity_name() const { - return static_cast< ::location::nearby::proto::sharing::ActivityName >(activity_name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.activity_name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::activity_name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.activity_name) return _internal_activity_name(); } -inline void SharingLog_LaunchActivity::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { - assert(::location::nearby::proto::sharing::ActivityName_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - activity_name_ = value; -} inline void SharingLog_LaunchActivity::set_activity_name(::location::nearby::proto::sharing::ActivityName value) { _internal_set_activity_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.activity_name) } +inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::_internal_activity_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ActivityName>(_impl_.activity_name_); +} +inline void SharingLog_LaunchActivity::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ActivityName_internal_data_)); + _impl_.activity_name_ = value; +} // optional int64 duration_millis = 2; -inline bool SharingLog_LaunchActivity::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_LaunchActivity::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_LaunchActivity::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_LaunchActivity::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_LaunchActivity::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_LaunchActivity::duration_millis() const { +inline ::int64_t SharingLog_LaunchActivity::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_LaunchActivity::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000002u; - duration_millis_ = value; -} -inline void SharingLog_LaunchActivity::set_duration_millis(int64_t value) { +inline void SharingLog_LaunchActivity::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.duration_millis) } +inline ::int64_t SharingLog_LaunchActivity::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_LaunchActivity::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional string referrer_name = 3; -inline bool SharingLog_LaunchActivity::_internal_has_referrer_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_LaunchActivity::has_referrer_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_LaunchActivity::has_referrer_name() const { - return _internal_has_referrer_name(); -} inline void SharingLog_LaunchActivity::clear_referrer_name() { - referrer_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_LaunchActivity::referrer_name() const { +inline const ::std::string& SharingLog_LaunchActivity::referrer_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.referrer_name) return _internal_referrer_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_LaunchActivity::set_referrer_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_LaunchActivity::set_referrer_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.referrer_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.referrer_name) } -inline std::string* SharingLog_LaunchActivity::mutable_referrer_name() { - std::string* _s = _internal_mutable_referrer_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_LaunchActivity::mutable_referrer_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_referrer_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.referrer_name) return _s; } -inline const std::string& SharingLog_LaunchActivity::_internal_referrer_name() const { - return referrer_name_.Get(); +inline const ::std::string& SharingLog_LaunchActivity::_internal_referrer_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.referrer_name_.Get(); } -inline void SharingLog_LaunchActivity::_internal_set_referrer_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - referrer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_LaunchActivity::_internal_set_referrer_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.referrer_name_.Set(value, GetArena()); } -inline std::string* SharingLog_LaunchActivity::_internal_mutable_referrer_name() { - _has_bits_[0] |= 0x00000001u; - return referrer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_LaunchActivity::_internal_mutable_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.referrer_name_.Mutable( GetArena()); } -inline std::string* SharingLog_LaunchActivity::release_referrer_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_LaunchActivity::release_referrer_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.referrer_name) - if (!_internal_has_referrer_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = referrer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.referrer_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_LaunchActivity::set_allocated_referrer_name(std::string* referrer_name) { - if (referrer_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_LaunchActivity::set_allocated_referrer_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - referrer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), referrer_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (referrer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - referrer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.referrer_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.referrer_name_.IsDefault()) { + _impl_.referrer_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.referrer_name) } // optional bool previous_transfer_in_progress = 4; -inline bool SharingLog_LaunchActivity::_internal_has_previous_transfer_in_progress() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_LaunchActivity::has_previous_transfer_in_progress() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_LaunchActivity::has_previous_transfer_in_progress() const { - return _internal_has_previous_transfer_in_progress(); -} inline void SharingLog_LaunchActivity::clear_previous_transfer_in_progress() { - previous_transfer_in_progress_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool SharingLog_LaunchActivity::_internal_previous_transfer_in_progress() const { - return previous_transfer_in_progress_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_transfer_in_progress_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool SharingLog_LaunchActivity::previous_transfer_in_progress() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.previous_transfer_in_progress) return _internal_previous_transfer_in_progress(); } -inline void SharingLog_LaunchActivity::_internal_set_previous_transfer_in_progress(bool value) { - _has_bits_[0] |= 0x00000008u; - previous_transfer_in_progress_ = value; -} inline void SharingLog_LaunchActivity::set_previous_transfer_in_progress(bool value) { _internal_set_previous_transfer_in_progress(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.previous_transfer_in_progress) } +inline bool SharingLog_LaunchActivity::_internal_previous_transfer_in_progress() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.previous_transfer_in_progress_; +} +inline void SharingLog_LaunchActivity::_internal_set_previous_transfer_in_progress(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_transfer_in_progress_ = value; +} // optional bool has_opted_in = 5; -inline bool SharingLog_LaunchActivity::_internal_has_has_opted_in() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_LaunchActivity::has_has_opted_in() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_LaunchActivity::has_has_opted_in() const { - return _internal_has_has_opted_in(); -} inline void SharingLog_LaunchActivity::clear_has_opted_in() { - has_opted_in_ = false; - _has_bits_[0] &= ~0x00000010u; -} -inline bool SharingLog_LaunchActivity::_internal_has_opted_in() const { - return has_opted_in_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_opted_in_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool SharingLog_LaunchActivity::has_opted_in() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.has_opted_in) return _internal_has_opted_in(); } -inline void SharingLog_LaunchActivity::_internal_set_has_opted_in(bool value) { - _has_bits_[0] |= 0x00000010u; - has_opted_in_ = value; -} inline void SharingLog_LaunchActivity::set_has_opted_in(bool value) { _internal_set_has_opted_in(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.has_opted_in) } +inline bool SharingLog_LaunchActivity::_internal_has_opted_in() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_opted_in_; +} +inline void SharingLog_LaunchActivity::_internal_set_has_opted_in(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_opted_in_ = value; +} // optional .location.nearby.proto.sharing.ActivityName source_activity_name = 6; -inline bool SharingLog_LaunchActivity::_internal_has_source_activity_name() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_LaunchActivity::has_source_activity_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_LaunchActivity::has_source_activity_name() const { - return _internal_has_source_activity_name(); -} inline void SharingLog_LaunchActivity::clear_source_activity_name() { - source_activity_name_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::_internal_source_activity_name() const { - return static_cast< ::location::nearby::proto::sharing::ActivityName >(source_activity_name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_activity_name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::source_activity_name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.source_activity_name) return _internal_source_activity_name(); } -inline void SharingLog_LaunchActivity::_internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { - assert(::location::nearby::proto::sharing::ActivityName_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - source_activity_name_ = value; -} inline void SharingLog_LaunchActivity::set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { _internal_set_source_activity_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.source_activity_name) } +inline ::location::nearby::proto::sharing::ActivityName SharingLog_LaunchActivity::_internal_source_activity_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ActivityName>(_impl_.source_activity_name_); +} +inline void SharingLog_LaunchActivity::_internal_set_source_activity_name(::location::nearby::proto::sharing::ActivityName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ActivityName_internal_data_)); + _impl_.source_activity_name_ = value; +} // optional bool is_finishing = 7; -inline bool SharingLog_LaunchActivity::_internal_has_is_finishing() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_LaunchActivity::has_is_finishing() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_LaunchActivity::has_is_finishing() const { - return _internal_has_is_finishing(); -} inline void SharingLog_LaunchActivity::clear_is_finishing() { - is_finishing_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool SharingLog_LaunchActivity::_internal_is_finishing() const { - return is_finishing_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_finishing_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool SharingLog_LaunchActivity::is_finishing() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.is_finishing) return _internal_is_finishing(); } -inline void SharingLog_LaunchActivity::_internal_set_is_finishing(bool value) { - _has_bits_[0] |= 0x00000020u; - is_finishing_ = value; -} inline void SharingLog_LaunchActivity::set_is_finishing(bool value) { _internal_set_is_finishing(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchActivity.is_finishing) } +inline bool SharingLog_LaunchActivity::_internal_is_finishing() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_finishing_; +} +inline void SharingLog_LaunchActivity::_internal_set_is_finishing(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_finishing_ = value; +} // ------------------------------------------------------------------- @@ -25035,156 +28304,169 @@ inline void SharingLog_LaunchActivity::set_is_finishing(bool value) { // SharingLog_SetDeviceName // optional int32 device_name_size = 1; -inline bool SharingLog_SetDeviceName::_internal_has_device_name_size() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SetDeviceName::has_device_name_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SetDeviceName::has_device_name_size() const { - return _internal_has_device_name_size(); -} inline void SharingLog_SetDeviceName::clear_device_name_size() { - device_name_size_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t SharingLog_SetDeviceName::_internal_device_name_size() const { - return device_name_size_; -} -inline int32_t SharingLog_SetDeviceName::device_name_size() const { +inline ::int32_t SharingLog_SetDeviceName::device_name_size() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetDeviceName.device_name_size) return _internal_device_name_size(); } -inline void SharingLog_SetDeviceName::_internal_set_device_name_size(int32_t value) { - _has_bits_[0] |= 0x00000001u; - device_name_size_ = value; -} -inline void SharingLog_SetDeviceName::set_device_name_size(int32_t value) { +inline void SharingLog_SetDeviceName::set_device_name_size(::int32_t value) { _internal_set_device_name_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetDeviceName.device_name_size) } +inline ::int32_t SharingLog_SetDeviceName::_internal_device_name_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_name_size_; +} +inline void SharingLog_SetDeviceName::_internal_set_device_name_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_name_size_ = value; +} // ------------------------------------------------------------------- // SharingLog_RequestSettingPermissions // optional .location.nearby.proto.sharing.PermissionRequestType permission_type = 1; -inline bool SharingLog_RequestSettingPermissions::_internal_has_permission_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_RequestSettingPermissions::has_permission_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_RequestSettingPermissions::has_permission_type() const { - return _internal_has_permission_type(); -} inline void SharingLog_RequestSettingPermissions::clear_permission_type() { - permission_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::PermissionRequestType SharingLog_RequestSettingPermissions::_internal_permission_type() const { - return static_cast< ::location::nearby::proto::sharing::PermissionRequestType >(permission_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.permission_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::PermissionRequestType SharingLog_RequestSettingPermissions::permission_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions.permission_type) return _internal_permission_type(); } -inline void SharingLog_RequestSettingPermissions::_internal_set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value) { - assert(::location::nearby::proto::sharing::PermissionRequestType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - permission_type_ = value; -} inline void SharingLog_RequestSettingPermissions::set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value) { _internal_set_permission_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions.permission_type) } +inline ::location::nearby::proto::sharing::PermissionRequestType SharingLog_RequestSettingPermissions::_internal_permission_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PermissionRequestType>(_impl_.permission_type_); +} +inline void SharingLog_RequestSettingPermissions::_internal_set_permission_type(::location::nearby::proto::sharing::PermissionRequestType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PermissionRequestType_internal_data_)); + _impl_.permission_type_ = value; +} // optional .location.nearby.proto.sharing.PermissionRequestResult permission_request_result = 2; -inline bool SharingLog_RequestSettingPermissions::_internal_has_permission_request_result() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_RequestSettingPermissions::has_permission_request_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_RequestSettingPermissions::has_permission_request_result() const { - return _internal_has_permission_request_result(); -} inline void SharingLog_RequestSettingPermissions::clear_permission_request_result() { - permission_request_result_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::PermissionRequestResult SharingLog_RequestSettingPermissions::_internal_permission_request_result() const { - return static_cast< ::location::nearby::proto::sharing::PermissionRequestResult >(permission_request_result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.permission_request_result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::PermissionRequestResult SharingLog_RequestSettingPermissions::permission_request_result() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions.permission_request_result) return _internal_permission_request_result(); } -inline void SharingLog_RequestSettingPermissions::_internal_set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value) { - assert(::location::nearby::proto::sharing::PermissionRequestResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - permission_request_result_ = value; -} inline void SharingLog_RequestSettingPermissions::set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value) { _internal_set_permission_request_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions.permission_request_result) } +inline ::location::nearby::proto::sharing::PermissionRequestResult SharingLog_RequestSettingPermissions::_internal_permission_request_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::PermissionRequestResult>(_impl_.permission_request_result_); +} +inline void SharingLog_RequestSettingPermissions::_internal_set_permission_request_result(::location::nearby::proto::sharing::PermissionRequestResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::PermissionRequestResult_internal_data_)); + _impl_.permission_request_result_ = value; +} // ------------------------------------------------------------------- // SharingLog_LaunchConsent // optional .location.nearby.proto.sharing.ConsentType consent_type = 1; -inline bool SharingLog_LaunchConsent::_internal_has_consent_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_LaunchConsent::has_consent_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_LaunchConsent::has_consent_type() const { - return _internal_has_consent_type(); -} inline void SharingLog_LaunchConsent::clear_consent_type() { - consent_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ConsentType SharingLog_LaunchConsent::_internal_consent_type() const { - return static_cast< ::location::nearby::proto::sharing::ConsentType >(consent_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.consent_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ConsentType SharingLog_LaunchConsent::consent_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchConsent.consent_type) return _internal_consent_type(); } -inline void SharingLog_LaunchConsent::_internal_set_consent_type(::location::nearby::proto::sharing::ConsentType value) { - assert(::location::nearby::proto::sharing::ConsentType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - consent_type_ = value; -} inline void SharingLog_LaunchConsent::set_consent_type(::location::nearby::proto::sharing::ConsentType value) { _internal_set_consent_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchConsent.consent_type) } +inline ::location::nearby::proto::sharing::ConsentType SharingLog_LaunchConsent::_internal_consent_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ConsentType>(_impl_.consent_type_); +} +inline void SharingLog_LaunchConsent::_internal_set_consent_type(::location::nearby::proto::sharing::ConsentType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ConsentType_internal_data_)); + _impl_.consent_type_ = value; +} // optional .location.nearby.proto.sharing.ConsentAcceptanceStatus status = 2; -inline bool SharingLog_LaunchConsent::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_LaunchConsent::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_LaunchConsent::has_status() const { - return _internal_has_status(); -} inline void SharingLog_LaunchConsent::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::ConsentAcceptanceStatus SharingLog_LaunchConsent::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::ConsentAcceptanceStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ConsentAcceptanceStatus SharingLog_LaunchConsent::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.LaunchConsent.status) return _internal_status(); } -inline void SharingLog_LaunchConsent::_internal_set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value) { - assert(::location::nearby::proto::sharing::ConsentAcceptanceStatus_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - status_ = value; -} inline void SharingLog_LaunchConsent::set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.LaunchConsent.status) } +inline ::location::nearby::proto::sharing::ConsentAcceptanceStatus SharingLog_LaunchConsent::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ConsentAcceptanceStatus>(_impl_.status_); +} +inline void SharingLog_LaunchConsent::_internal_set_status(::location::nearby::proto::sharing::ConsentAcceptanceStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ConsentAcceptanceStatus_internal_data_)); + _impl_.status_ = value; +} // ------------------------------------------------------------------- @@ -25192,93 +28474,115 @@ inline void SharingLog_LaunchConsent::set_status(::location::nearby::proto::shar // repeated .location.nearby.proto.sharing.InstallAPKStatus status = 1 [packed = true]; inline int SharingLog_InstallAPKStatus::_internal_status_size() const { - return status_.size(); + return _internal_status().size(); } inline int SharingLog_InstallAPKStatus::status_size() const { return _internal_status_size(); } inline void SharingLog_InstallAPKStatus::clear_status() { - status_.Clear(); -} -inline ::location::nearby::proto::sharing::InstallAPKStatus SharingLog_InstallAPKStatus::_internal_status(int index) const { - return static_cast< ::location::nearby::proto::sharing::InstallAPKStatus >(status_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::InstallAPKStatus SharingLog_InstallAPKStatus::status(int index) const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.status) - return _internal_status(index); + return static_cast<::location::nearby::proto::sharing::InstallAPKStatus>(_internal_status().Get(index)); } inline void SharingLog_InstallAPKStatus::set_status(int index, ::location::nearby::proto::sharing::InstallAPKStatus value) { - assert(::location::nearby::proto::sharing::InstallAPKStatus_IsValid(value)); - status_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::InstallAPKStatus_internal_data_)); + _internal_mutable_status()->Set(index, value); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.status) } -inline void SharingLog_InstallAPKStatus::_internal_add_status(::location::nearby::proto::sharing::InstallAPKStatus value) { - assert(::location::nearby::proto::sharing::InstallAPKStatus_IsValid(value)); - status_.Add(value); -} inline void SharingLog_InstallAPKStatus::add_status(::location::nearby::proto::sharing::InstallAPKStatus value) { - _internal_add_status(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::InstallAPKStatus_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_status()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.status) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -SharingLog_InstallAPKStatus::status() const { +inline const ::google::protobuf::RepeatedField& SharingLog_InstallAPKStatus::status() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.status) - return status_; + return _internal_status(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_InstallAPKStatus::_internal_mutable_status() { - return &status_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_InstallAPKStatus::mutable_status() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::mutable_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.status) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_status(); } +inline const ::google::protobuf::RepeatedField& SharingLog_InstallAPKStatus::_internal_status() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.status_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +SharingLog_InstallAPKStatus::_internal_mutable_status() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.status_; +} // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; inline int SharingLog_InstallAPKStatus::_internal_source_size() const { - return source_.size(); + return _internal_source().size(); } inline int SharingLog_InstallAPKStatus::source_size() const { return _internal_source_size(); } inline void SharingLog_InstallAPKStatus::clear_source() { - source_.Clear(); -} -inline ::location::nearby::proto::sharing::ApkSource SharingLog_InstallAPKStatus::_internal_source(int index) const { - return static_cast< ::location::nearby::proto::sharing::ApkSource >(source_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ApkSource SharingLog_InstallAPKStatus::source(int index) const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.source) - return _internal_source(index); + return static_cast<::location::nearby::proto::sharing::ApkSource>(_internal_source().Get(index)); } inline void SharingLog_InstallAPKStatus::set_source(int index, ::location::nearby::proto::sharing::ApkSource value) { - assert(::location::nearby::proto::sharing::ApkSource_IsValid(value)); - source_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ApkSource_internal_data_)); + _internal_mutable_source()->Set(index, value); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.source) } -inline void SharingLog_InstallAPKStatus::_internal_add_source(::location::nearby::proto::sharing::ApkSource value) { - assert(::location::nearby::proto::sharing::ApkSource_IsValid(value)); - source_.Add(value); -} inline void SharingLog_InstallAPKStatus::add_source(::location::nearby::proto::sharing::ApkSource value) { - _internal_add_source(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ApkSource_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_source()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.source) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -SharingLog_InstallAPKStatus::source() const { +inline const ::google::protobuf::RepeatedField& SharingLog_InstallAPKStatus::source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.source) - return source_; + return _internal_source(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_InstallAPKStatus::_internal_mutable_source() { - return &source_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_InstallAPKStatus::mutable_source() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL SharingLog_InstallAPKStatus::mutable_source() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus.source) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_source(); } +inline const ::google::protobuf::RepeatedField& SharingLog_InstallAPKStatus::_internal_source() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.source_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +SharingLog_InstallAPKStatus::_internal_mutable_source() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.source_; +} // ------------------------------------------------------------------- @@ -25286,305 +28590,342 @@ SharingLog_InstallAPKStatus::mutable_source() { // repeated .location.nearby.proto.sharing.VerifyAPKStatus status = 1 [packed = true]; inline int SharingLog_VerifyAPKStatus::_internal_status_size() const { - return status_.size(); + return _internal_status().size(); } inline int SharingLog_VerifyAPKStatus::status_size() const { return _internal_status_size(); } inline void SharingLog_VerifyAPKStatus::clear_status() { - status_.Clear(); -} -inline ::location::nearby::proto::sharing::VerifyAPKStatus SharingLog_VerifyAPKStatus::_internal_status(int index) const { - return static_cast< ::location::nearby::proto::sharing::VerifyAPKStatus >(status_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::VerifyAPKStatus SharingLog_VerifyAPKStatus::status(int index) const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.status) - return _internal_status(index); + return static_cast<::location::nearby::proto::sharing::VerifyAPKStatus>(_internal_status().Get(index)); } inline void SharingLog_VerifyAPKStatus::set_status(int index, ::location::nearby::proto::sharing::VerifyAPKStatus value) { - assert(::location::nearby::proto::sharing::VerifyAPKStatus_IsValid(value)); - status_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::VerifyAPKStatus_internal_data_)); + _internal_mutable_status()->Set(index, value); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.status) } -inline void SharingLog_VerifyAPKStatus::_internal_add_status(::location::nearby::proto::sharing::VerifyAPKStatus value) { - assert(::location::nearby::proto::sharing::VerifyAPKStatus_IsValid(value)); - status_.Add(value); -} inline void SharingLog_VerifyAPKStatus::add_status(::location::nearby::proto::sharing::VerifyAPKStatus value) { - _internal_add_status(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::VerifyAPKStatus_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_status()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.status) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -SharingLog_VerifyAPKStatus::status() const { +inline const ::google::protobuf::RepeatedField& SharingLog_VerifyAPKStatus::status() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.status) - return status_; + return _internal_status(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_VerifyAPKStatus::_internal_mutable_status() { - return &status_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_VerifyAPKStatus::mutable_status() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::mutable_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.status) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_status(); } +inline const ::google::protobuf::RepeatedField& SharingLog_VerifyAPKStatus::_internal_status() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.status_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +SharingLog_VerifyAPKStatus::_internal_mutable_status() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.status_; +} // repeated .location.nearby.proto.sharing.ApkSource source = 2 [packed = true]; inline int SharingLog_VerifyAPKStatus::_internal_source_size() const { - return source_.size(); + return _internal_source().size(); } inline int SharingLog_VerifyAPKStatus::source_size() const { return _internal_source_size(); } inline void SharingLog_VerifyAPKStatus::clear_source() { - source_.Clear(); -} -inline ::location::nearby::proto::sharing::ApkSource SharingLog_VerifyAPKStatus::_internal_source(int index) const { - return static_cast< ::location::nearby::proto::sharing::ApkSource >(source_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ApkSource SharingLog_VerifyAPKStatus::source(int index) const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.source) - return _internal_source(index); + return static_cast<::location::nearby::proto::sharing::ApkSource>(_internal_source().Get(index)); } inline void SharingLog_VerifyAPKStatus::set_source(int index, ::location::nearby::proto::sharing::ApkSource value) { - assert(::location::nearby::proto::sharing::ApkSource_IsValid(value)); - source_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ApkSource_internal_data_)); + _internal_mutable_source()->Set(index, value); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.source) } -inline void SharingLog_VerifyAPKStatus::_internal_add_source(::location::nearby::proto::sharing::ApkSource value) { - assert(::location::nearby::proto::sharing::ApkSource_IsValid(value)); - source_.Add(value); -} inline void SharingLog_VerifyAPKStatus::add_source(::location::nearby::proto::sharing::ApkSource value) { - _internal_add_source(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ApkSource_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_source()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.source) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -SharingLog_VerifyAPKStatus::source() const { +inline const ::google::protobuf::RepeatedField& SharingLog_VerifyAPKStatus::source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.source) - return source_; + return _internal_source(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_VerifyAPKStatus::_internal_mutable_source() { - return &source_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -SharingLog_VerifyAPKStatus::mutable_source() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL SharingLog_VerifyAPKStatus::mutable_source() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus.source) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_source(); } +inline const ::google::protobuf::RepeatedField& SharingLog_VerifyAPKStatus::_internal_source() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.source_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +SharingLog_VerifyAPKStatus::_internal_mutable_source() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.source_; +} // ------------------------------------------------------------------- // SharingLog_ToggleShowNotification // optional .location.nearby.proto.sharing.ShowNotificationStatus previous_status = 1; -inline bool SharingLog_ToggleShowNotification::_internal_has_previous_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ToggleShowNotification::has_previous_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ToggleShowNotification::has_previous_status() const { - return _internal_has_previous_status(); -} inline void SharingLog_ToggleShowNotification::clear_previous_status() { - previous_status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::_internal_previous_status() const { - return static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(previous_status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::previous_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification.previous_status) return _internal_previous_status(); } -inline void SharingLog_ToggleShowNotification::_internal_set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { - assert(::location::nearby::proto::sharing::ShowNotificationStatus_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - previous_status_ = value; -} inline void SharingLog_ToggleShowNotification::set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { _internal_set_previous_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification.previous_status) } +inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::_internal_previous_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ShowNotificationStatus>(_impl_.previous_status_); +} +inline void SharingLog_ToggleShowNotification::_internal_set_previous_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ShowNotificationStatus_internal_data_)); + _impl_.previous_status_ = value; +} // optional .location.nearby.proto.sharing.ShowNotificationStatus current_status = 2; -inline bool SharingLog_ToggleShowNotification::_internal_has_current_status() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ToggleShowNotification::has_current_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ToggleShowNotification::has_current_status() const { - return _internal_has_current_status(); -} inline void SharingLog_ToggleShowNotification::clear_current_status() { - current_status_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::_internal_current_status() const { - return static_cast< ::location::nearby::proto::sharing::ShowNotificationStatus >(current_status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.current_status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::current_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification.current_status) return _internal_current_status(); } -inline void SharingLog_ToggleShowNotification::_internal_set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { - assert(::location::nearby::proto::sharing::ShowNotificationStatus_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - current_status_ = value; -} inline void SharingLog_ToggleShowNotification::set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { _internal_set_current_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification.current_status) } +inline ::location::nearby::proto::sharing::ShowNotificationStatus SharingLog_ToggleShowNotification::_internal_current_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ShowNotificationStatus>(_impl_.current_status_); +} +inline void SharingLog_ToggleShowNotification::_internal_set_current_status(::location::nearby::proto::sharing::ShowNotificationStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ShowNotificationStatus_internal_data_)); + _impl_.current_status_ = value; +} // ------------------------------------------------------------------- // SharingLog_DecryptCertificateFailure // optional .location.nearby.proto.sharing.DecryptCertificateFailureStatus status = 1; -inline bool SharingLog_DecryptCertificateFailure::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_DecryptCertificateFailure::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_DecryptCertificateFailure::has_status() const { - return _internal_has_status(); -} inline void SharingLog_DecryptCertificateFailure::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::DecryptCertificateFailureStatus SharingLog_DecryptCertificateFailure::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::DecryptCertificateFailureStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::DecryptCertificateFailureStatus SharingLog_DecryptCertificateFailure::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure.status) return _internal_status(); } -inline void SharingLog_DecryptCertificateFailure::_internal_set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value) { - assert(::location::nearby::proto::sharing::DecryptCertificateFailureStatus_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - status_ = value; -} inline void SharingLog_DecryptCertificateFailure::set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure.status) } +inline ::location::nearby::proto::sharing::DecryptCertificateFailureStatus SharingLog_DecryptCertificateFailure::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DecryptCertificateFailureStatus>(_impl_.status_); +} +inline void SharingLog_DecryptCertificateFailure::_internal_set_status(::location::nearby::proto::sharing::DecryptCertificateFailureStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DecryptCertificateFailureStatus_internal_data_)); + _impl_.status_ = value; +} // ------------------------------------------------------------------- // SharingLog_ShowAllowPermissionAutoAccess // optional .location.nearby.proto.sharing.ActivityName activity_name = 1; -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_has_activity_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ShowAllowPermissionAutoAccess::has_activity_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ShowAllowPermissionAutoAccess::has_activity_name() const { - return _internal_has_activity_name(); -} inline void SharingLog_ShowAllowPermissionAutoAccess::clear_activity_name() { - activity_name_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ActivityName SharingLog_ShowAllowPermissionAutoAccess::_internal_activity_name() const { - return static_cast< ::location::nearby::proto::sharing::ActivityName >(activity_name_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.activity_name_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ActivityName SharingLog_ShowAllowPermissionAutoAccess::activity_name() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.activity_name) return _internal_activity_name(); } -inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { - assert(::location::nearby::proto::sharing::ActivityName_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - activity_name_ = value; -} inline void SharingLog_ShowAllowPermissionAutoAccess::set_activity_name(::location::nearby::proto::sharing::ActivityName value) { _internal_set_activity_name(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.activity_name) } +inline ::location::nearby::proto::sharing::ActivityName SharingLog_ShowAllowPermissionAutoAccess::_internal_activity_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ActivityName>(_impl_.activity_name_); +} +inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_activity_name(::location::nearby::proto::sharing::ActivityName value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ActivityName_internal_data_)); + _impl_.activity_name_ = value; +} // optional bool allowed_auto_access = 2; -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_has_allowed_auto_access() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ShowAllowPermissionAutoAccess::has_allowed_auto_access() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ShowAllowPermissionAutoAccess::has_allowed_auto_access() const { - return _internal_has_allowed_auto_access(); -} inline void SharingLog_ShowAllowPermissionAutoAccess::clear_allowed_auto_access() { - allowed_auto_access_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_allowed_auto_access() const { - return allowed_auto_access_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.allowed_auto_access_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_ShowAllowPermissionAutoAccess::allowed_auto_access() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.allowed_auto_access) return _internal_allowed_auto_access(); } -inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_allowed_auto_access(bool value) { - _has_bits_[0] |= 0x00000002u; - allowed_auto_access_ = value; -} inline void SharingLog_ShowAllowPermissionAutoAccess::set_allowed_auto_access(bool value) { _internal_set_allowed_auto_access(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.allowed_auto_access) } +inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_allowed_auto_access() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.allowed_auto_access_; +} +inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_allowed_auto_access(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.allowed_auto_access_ = value; +} // optional bool is_wifi_missing = 3; -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_has_is_wifi_missing() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ShowAllowPermissionAutoAccess::has_is_wifi_missing() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ShowAllowPermissionAutoAccess::has_is_wifi_missing() const { - return _internal_has_is_wifi_missing(); -} inline void SharingLog_ShowAllowPermissionAutoAccess::clear_is_wifi_missing() { - is_wifi_missing_ = false; - _has_bits_[0] &= ~0x00000004u; -} -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_is_wifi_missing() const { - return is_wifi_missing_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_wifi_missing_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool SharingLog_ShowAllowPermissionAutoAccess::is_wifi_missing() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.is_wifi_missing) return _internal_is_wifi_missing(); } -inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_is_wifi_missing(bool value) { - _has_bits_[0] |= 0x00000004u; - is_wifi_missing_ = value; -} inline void SharingLog_ShowAllowPermissionAutoAccess::set_is_wifi_missing(bool value) { _internal_set_is_wifi_missing(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.is_wifi_missing) } +inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_is_wifi_missing() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_wifi_missing_; +} +inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_is_wifi_missing(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_wifi_missing_ = value; +} // optional bool is_bt_missing = 4; -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_has_is_bt_missing() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_ShowAllowPermissionAutoAccess::has_is_bt_missing() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_ShowAllowPermissionAutoAccess::has_is_bt_missing() const { - return _internal_has_is_bt_missing(); -} inline void SharingLog_ShowAllowPermissionAutoAccess::clear_is_bt_missing() { - is_bt_missing_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_is_bt_missing() const { - return is_bt_missing_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_bt_missing_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool SharingLog_ShowAllowPermissionAutoAccess::is_bt_missing() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.is_bt_missing) return _internal_is_bt_missing(); } -inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_is_bt_missing(bool value) { - _has_bits_[0] |= 0x00000008u; - is_bt_missing_ = value; -} inline void SharingLog_ShowAllowPermissionAutoAccess::set_is_bt_missing(bool value) { _internal_set_is_bt_missing(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess.is_bt_missing) } +inline bool SharingLog_ShowAllowPermissionAutoAccess::_internal_is_bt_missing() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_bt_missing_; +} +inline void SharingLog_ShowAllowPermissionAutoAccess::_internal_set_is_bt_missing(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_bt_missing_ = value; +} // ------------------------------------------------------------------- @@ -25599,209 +28940,226 @@ inline void SharingLog_ShowAllowPermissionAutoAccess::set_is_bt_missing(bool val // SharingLog_FastInitDiscoverDevice // optional .location.nearby.proto.sharing.FastInitType fast_init_type = 2; -inline bool SharingLog_FastInitDiscoverDevice::_internal_has_fast_init_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_FastInitDiscoverDevice::has_fast_init_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_FastInitDiscoverDevice::has_fast_init_type() const { - return _internal_has_fast_init_type(); -} inline void SharingLog_FastInitDiscoverDevice::clear_fast_init_type() { - fast_init_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::FastInitType SharingLog_FastInitDiscoverDevice::_internal_fast_init_type() const { - return static_cast< ::location::nearby::proto::sharing::FastInitType >(fast_init_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fast_init_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::FastInitType SharingLog_FastInitDiscoverDevice::fast_init_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice.fast_init_type) return _internal_fast_init_type(); } -inline void SharingLog_FastInitDiscoverDevice::_internal_set_fast_init_type(::location::nearby::proto::sharing::FastInitType value) { - assert(::location::nearby::proto::sharing::FastInitType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - fast_init_type_ = value; -} inline void SharingLog_FastInitDiscoverDevice::set_fast_init_type(::location::nearby::proto::sharing::FastInitType value) { _internal_set_fast_init_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice.fast_init_type) } +inline ::location::nearby::proto::sharing::FastInitType SharingLog_FastInitDiscoverDevice::_internal_fast_init_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::FastInitType>(_impl_.fast_init_type_); +} +inline void SharingLog_FastInitDiscoverDevice::_internal_set_fast_init_type(::location::nearby::proto::sharing::FastInitType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::FastInitType_internal_data_)); + _impl_.fast_init_type_ = value; +} // optional .location.nearby.proto.sharing.FastInitState fast_init_state = 3; -inline bool SharingLog_FastInitDiscoverDevice::_internal_has_fast_init_state() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_FastInitDiscoverDevice::has_fast_init_state() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_FastInitDiscoverDevice::has_fast_init_state() const { - return _internal_has_fast_init_state(); -} inline void SharingLog_FastInitDiscoverDevice::clear_fast_init_state() { - fast_init_state_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::FastInitState SharingLog_FastInitDiscoverDevice::_internal_fast_init_state() const { - return static_cast< ::location::nearby::proto::sharing::FastInitState >(fast_init_state_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fast_init_state_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::FastInitState SharingLog_FastInitDiscoverDevice::fast_init_state() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice.fast_init_state) return _internal_fast_init_state(); } -inline void SharingLog_FastInitDiscoverDevice::_internal_set_fast_init_state(::location::nearby::proto::sharing::FastInitState value) { - assert(::location::nearby::proto::sharing::FastInitState_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - fast_init_state_ = value; -} inline void SharingLog_FastInitDiscoverDevice::set_fast_init_state(::location::nearby::proto::sharing::FastInitState value) { _internal_set_fast_init_state(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice.fast_init_state) } +inline ::location::nearby::proto::sharing::FastInitState SharingLog_FastInitDiscoverDevice::_internal_fast_init_state() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::FastInitState>(_impl_.fast_init_state_); +} +inline void SharingLog_FastInitDiscoverDevice::_internal_set_fast_init_state(::location::nearby::proto::sharing::FastInitState value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::FastInitState_internal_data_)); + _impl_.fast_init_state_ = value; +} // ------------------------------------------------------------------- // SharingLog_ShareTargetInfo // optional .location.nearby.proto.sharing.DeviceType device_type = 1; -inline bool SharingLog_ShareTargetInfo::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ShareTargetInfo::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ShareTargetInfo::has_device_type() const { - return _internal_has_device_type(); -} inline void SharingLog_ShareTargetInfo::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::DeviceType SharingLog_ShareTargetInfo::_internal_device_type() const { - return static_cast< ::location::nearby::proto::sharing::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::DeviceType SharingLog_ShareTargetInfo::device_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.device_type) return _internal_device_type(); } -inline void SharingLog_ShareTargetInfo::_internal_set_device_type(::location::nearby::proto::sharing::DeviceType value) { - assert(::location::nearby::proto::sharing::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - device_type_ = value; -} inline void SharingLog_ShareTargetInfo::set_device_type(::location::nearby::proto::sharing::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.device_type) } +inline ::location::nearby::proto::sharing::DeviceType SharingLog_ShareTargetInfo::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DeviceType>(_impl_.device_type_); +} +inline void SharingLog_ShareTargetInfo::_internal_set_device_type(::location::nearby::proto::sharing::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional .location.nearby.proto.sharing.OSType os_type = 2; -inline bool SharingLog_ShareTargetInfo::_internal_has_os_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_ShareTargetInfo::has_os_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_ShareTargetInfo::has_os_type() const { - return _internal_has_os_type(); -} inline void SharingLog_ShareTargetInfo::clear_os_type() { - os_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::OSType SharingLog_ShareTargetInfo::_internal_os_type() const { - return static_cast< ::location::nearby::proto::sharing::OSType >(os_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.os_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::OSType SharingLog_ShareTargetInfo::os_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.os_type) return _internal_os_type(); } -inline void SharingLog_ShareTargetInfo::_internal_set_os_type(::location::nearby::proto::sharing::OSType value) { - assert(::location::nearby::proto::sharing::OSType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - os_type_ = value; -} inline void SharingLog_ShareTargetInfo::set_os_type(::location::nearby::proto::sharing::OSType value) { _internal_set_os_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.os_type) } +inline ::location::nearby::proto::sharing::OSType SharingLog_ShareTargetInfo::_internal_os_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::OSType>(_impl_.os_type_); +} +inline void SharingLog_ShareTargetInfo::_internal_set_os_type(::location::nearby::proto::sharing::OSType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::OSType_internal_data_)); + _impl_.os_type_ = value; +} // optional .location.nearby.proto.sharing.DeviceRelationship device_relationship = 3; -inline bool SharingLog_ShareTargetInfo::_internal_has_device_relationship() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_ShareTargetInfo::has_device_relationship() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_ShareTargetInfo::has_device_relationship() const { - return _internal_has_device_relationship(); -} inline void SharingLog_ShareTargetInfo::clear_device_relationship() { - device_relationship_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::DeviceRelationship SharingLog_ShareTargetInfo::_internal_device_relationship() const { - return static_cast< ::location::nearby::proto::sharing::DeviceRelationship >(device_relationship_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_relationship_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::DeviceRelationship SharingLog_ShareTargetInfo::device_relationship() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.device_relationship) return _internal_device_relationship(); } -inline void SharingLog_ShareTargetInfo::_internal_set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value) { - assert(::location::nearby::proto::sharing::DeviceRelationship_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - device_relationship_ = value; -} inline void SharingLog_ShareTargetInfo::set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value) { _internal_set_device_relationship(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.device_relationship) } +inline ::location::nearby::proto::sharing::DeviceRelationship SharingLog_ShareTargetInfo::_internal_device_relationship() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DeviceRelationship>(_impl_.device_relationship_); +} +inline void SharingLog_ShareTargetInfo::_internal_set_device_relationship(::location::nearby::proto::sharing::DeviceRelationship value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DeviceRelationship_internal_data_)); + _impl_.device_relationship_ = value; +} // optional bool has_matching_qr_code = 4; -inline bool SharingLog_ShareTargetInfo::_internal_has_has_matching_qr_code() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_ShareTargetInfo::has_has_matching_qr_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_ShareTargetInfo::has_has_matching_qr_code() const { - return _internal_has_has_matching_qr_code(); -} inline void SharingLog_ShareTargetInfo::clear_has_matching_qr_code() { - has_matching_qr_code_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool SharingLog_ShareTargetInfo::_internal_has_matching_qr_code() const { - return has_matching_qr_code_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_matching_qr_code_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool SharingLog_ShareTargetInfo::has_matching_qr_code() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.has_matching_qr_code) return _internal_has_matching_qr_code(); } -inline void SharingLog_ShareTargetInfo::_internal_set_has_matching_qr_code(bool value) { - _has_bits_[0] |= 0x00000008u; - has_matching_qr_code_ = value; -} inline void SharingLog_ShareTargetInfo::set_has_matching_qr_code(bool value) { _internal_set_has_matching_qr_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.has_matching_qr_code) } +inline bool SharingLog_ShareTargetInfo::_internal_has_matching_qr_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_matching_qr_code_; +} +inline void SharingLog_ShareTargetInfo::_internal_set_has_matching_qr_code(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_matching_qr_code_ = value; +} // optional bool is_external = 5; -inline bool SharingLog_ShareTargetInfo::_internal_has_is_external() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_ShareTargetInfo::has_is_external() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_ShareTargetInfo::has_is_external() const { - return _internal_has_is_external(); -} inline void SharingLog_ShareTargetInfo::clear_is_external() { - is_external_ = false; - _has_bits_[0] &= ~0x00000010u; -} -inline bool SharingLog_ShareTargetInfo::_internal_is_external() const { - return is_external_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_external_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool SharingLog_ShareTargetInfo::is_external() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.is_external) return _internal_is_external(); } -inline void SharingLog_ShareTargetInfo::_internal_set_is_external(bool value) { - _has_bits_[0] |= 0x00000010u; - is_external_ = value; -} inline void SharingLog_ShareTargetInfo::set_is_external(bool value) { _internal_set_is_external(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo.is_external) } +inline bool SharingLog_ShareTargetInfo::_internal_is_external() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_external_; +} +inline void SharingLog_ShareTargetInfo::_internal_set_is_external(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_external_ = value; +} // ------------------------------------------------------------------- @@ -25809,271 +29167,351 @@ inline void SharingLog_ShareTargetInfo::set_is_external(bool value) { // repeated .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 1; inline int SharingLog_AttachmentsInfo::_internal_text_attachment_size() const { - return text_attachment_.size(); + return _internal_text_attachment().size(); } inline int SharingLog_AttachmentsInfo::text_attachment_size() const { return _internal_text_attachment_size(); } inline void SharingLog_AttachmentsInfo::clear_text_attachment() { - text_attachment_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.text_attachment_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_AttachmentsInfo::mutable_text_attachment(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_text_attachment(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.text_attachment) - return text_attachment_.Mutable(index); + return _internal_mutable_text_attachment()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >* -SharingLog_AttachmentsInfo::mutable_text_attachment() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_text_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.text_attachment) - return &text_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_text_attachment(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_AttachmentsInfo::_internal_text_attachment(int index) const { - return text_attachment_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_AttachmentsInfo::text_attachment(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_AttachmentsInfo::text_attachment(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.text_attachment) - return _internal_text_attachment(index); + return _internal_text_attachment().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_AttachmentsInfo::_internal_add_text_attachment() { - return text_attachment_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_AttachmentsInfo::add_text_attachment() { - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* _add = _internal_add_text_attachment(); +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::add_text_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* _add = + _internal_mutable_text_attachment()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.text_attachment) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >& -SharingLog_AttachmentsInfo::text_attachment() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>& SharingLog_AttachmentsInfo::text_attachment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.text_attachment) - return text_attachment_; + return _internal_text_attachment(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>& +SharingLog_AttachmentsInfo::_internal_text_attachment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.text_attachment_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::_internal_mutable_text_attachment() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.text_attachment_; } // repeated .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 2; inline int SharingLog_AttachmentsInfo::_internal_file_attachment_size() const { - return file_attachment_.size(); + return _internal_file_attachment().size(); } inline int SharingLog_AttachmentsInfo::file_attachment_size() const { return _internal_file_attachment_size(); } inline void SharingLog_AttachmentsInfo::clear_file_attachment() { - file_attachment_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.file_attachment_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_AttachmentsInfo::mutable_file_attachment(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_file_attachment(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.file_attachment) - return file_attachment_.Mutable(index); + return _internal_mutable_file_attachment()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >* -SharingLog_AttachmentsInfo::mutable_file_attachment() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_file_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.file_attachment) - return &file_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_file_attachment(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_AttachmentsInfo::_internal_file_attachment(int index) const { - return file_attachment_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_AttachmentsInfo::file_attachment(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_AttachmentsInfo::file_attachment(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.file_attachment) - return _internal_file_attachment(index); + return _internal_file_attachment().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_AttachmentsInfo::_internal_add_file_attachment() { - return file_attachment_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_AttachmentsInfo::add_file_attachment() { - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* _add = _internal_add_file_attachment(); +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::add_file_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* _add = + _internal_mutable_file_attachment()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.file_attachment) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >& -SharingLog_AttachmentsInfo::file_attachment() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>& SharingLog_AttachmentsInfo::file_attachment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.file_attachment) - return file_attachment_; + return _internal_file_attachment(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>& +SharingLog_AttachmentsInfo::_internal_file_attachment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.file_attachment_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::_internal_mutable_file_attachment() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.file_attachment_; } // optional string required_app = 3; -inline bool SharingLog_AttachmentsInfo::_internal_has_required_app() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AttachmentsInfo::has_required_app() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_AttachmentsInfo::has_required_app() const { - return _internal_has_required_app(); -} inline void SharingLog_AttachmentsInfo::clear_required_app() { - required_app_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.required_app_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& SharingLog_AttachmentsInfo::required_app() const { +inline const ::std::string& SharingLog_AttachmentsInfo::required_app() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.required_app) return _internal_required_app(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AttachmentsInfo::set_required_app(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - required_app_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AttachmentsInfo::set_required_app(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.required_app_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.required_app) } -inline std::string* SharingLog_AttachmentsInfo::mutable_required_app() { - std::string* _s = _internal_mutable_required_app(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_required_app() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_required_app(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.required_app) return _s; } -inline const std::string& SharingLog_AttachmentsInfo::_internal_required_app() const { - return required_app_.Get(); +inline const ::std::string& SharingLog_AttachmentsInfo::_internal_required_app() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.required_app_.Get(); } -inline void SharingLog_AttachmentsInfo::_internal_set_required_app(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - required_app_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AttachmentsInfo::_internal_set_required_app(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.required_app_.Set(value, GetArena()); } -inline std::string* SharingLog_AttachmentsInfo::_internal_mutable_required_app() { - _has_bits_[0] |= 0x00000001u; - return required_app_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::_internal_mutable_required_app() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.required_app_.Mutable( GetArena()); } -inline std::string* SharingLog_AttachmentsInfo::release_required_app() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AttachmentsInfo::release_required_app() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.required_app) - if (!_internal_has_required_app()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = required_app_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (required_app_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - required_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.required_app_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.required_app_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AttachmentsInfo::set_allocated_required_app(std::string* required_app) { - if (required_app != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_AttachmentsInfo::set_allocated_required_app(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - required_app_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), required_app, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (required_app_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - required_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.required_app_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.required_app_.IsDefault()) { + _impl_.required_app_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.required_app) } // repeated .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; inline int SharingLog_AttachmentsInfo::_internal_wifi_credentials_attachment_size() const { - return wifi_credentials_attachment_.size(); + return _internal_wifi_credentials_attachment().size(); } inline int SharingLog_AttachmentsInfo::wifi_credentials_attachment_size() const { return _internal_wifi_credentials_attachment_size(); } inline void SharingLog_AttachmentsInfo::clear_wifi_credentials_attachment() { - wifi_credentials_attachment_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_credentials_attachment_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_AttachmentsInfo::mutable_wifi_credentials_attachment(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_wifi_credentials_attachment(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.wifi_credentials_attachment) - return wifi_credentials_attachment_.Mutable(index); + return _internal_mutable_wifi_credentials_attachment()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >* -SharingLog_AttachmentsInfo::mutable_wifi_credentials_attachment() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_wifi_credentials_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.wifi_credentials_attachment) - return &wifi_credentials_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_wifi_credentials_attachment(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_AttachmentsInfo::_internal_wifi_credentials_attachment(int index) const { - return wifi_credentials_attachment_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_AttachmentsInfo::wifi_credentials_attachment(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_AttachmentsInfo::wifi_credentials_attachment(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.wifi_credentials_attachment) - return _internal_wifi_credentials_attachment(index); + return _internal_wifi_credentials_attachment().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_AttachmentsInfo::_internal_add_wifi_credentials_attachment() { - return wifi_credentials_attachment_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_AttachmentsInfo::add_wifi_credentials_attachment() { - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* _add = _internal_add_wifi_credentials_attachment(); +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::add_wifi_credentials_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* _add = + _internal_mutable_wifi_credentials_attachment()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.wifi_credentials_attachment) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >& -SharingLog_AttachmentsInfo::wifi_credentials_attachment() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>& SharingLog_AttachmentsInfo::wifi_credentials_attachment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.wifi_credentials_attachment) - return wifi_credentials_attachment_; + return _internal_wifi_credentials_attachment(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>& +SharingLog_AttachmentsInfo::_internal_wifi_credentials_attachment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_credentials_attachment_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::_internal_mutable_wifi_credentials_attachment() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.wifi_credentials_attachment_; } // repeated .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; inline int SharingLog_AttachmentsInfo::_internal_app_attachment_size() const { - return app_attachment_.size(); + return _internal_app_attachment().size(); } inline int SharingLog_AttachmentsInfo::app_attachment_size() const { return _internal_app_attachment_size(); } inline void SharingLog_AttachmentsInfo::clear_app_attachment() { - app_attachment_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_attachment_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000008U); } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_AttachmentsInfo::mutable_app_attachment(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_app_attachment(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.app_attachment) - return app_attachment_.Mutable(index); + return _internal_mutable_app_attachment()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >* -SharingLog_AttachmentsInfo::mutable_app_attachment() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_app_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.app_attachment) - return &app_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_app_attachment(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_AttachmentsInfo::_internal_app_attachment(int index) const { - return app_attachment_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_AttachmentsInfo::app_attachment(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_AttachmentsInfo::app_attachment(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.app_attachment) - return _internal_app_attachment(index); + return _internal_app_attachment().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_AttachmentsInfo::_internal_add_app_attachment() { - return app_attachment_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_AttachmentsInfo::add_app_attachment() { - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* _add = _internal_add_app_attachment(); +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::add_app_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* _add = + _internal_mutable_app_attachment()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.app_attachment) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >& -SharingLog_AttachmentsInfo::app_attachment() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>& SharingLog_AttachmentsInfo::app_attachment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.app_attachment) - return app_attachment_; + return _internal_app_attachment(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>& +SharingLog_AttachmentsInfo::_internal_app_attachment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.app_attachment_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::_internal_mutable_app_attachment() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.app_attachment_; } // repeated .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; inline int SharingLog_AttachmentsInfo::_internal_stream_attachment_size() const { - return stream_attachment_.size(); + return _internal_stream_attachment().size(); } inline int SharingLog_AttachmentsInfo::stream_attachment_size() const { return _internal_stream_attachment_size(); } inline void SharingLog_AttachmentsInfo::clear_stream_attachment() { - stream_attachment_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.stream_attachment_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000010U); } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_AttachmentsInfo::mutable_stream_attachment(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_stream_attachment(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.stream_attachment) - return stream_attachment_.Mutable(index); + return _internal_mutable_stream_attachment()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >* -SharingLog_AttachmentsInfo::mutable_stream_attachment() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::mutable_stream_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.stream_attachment) - return &stream_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_stream_attachment(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_AttachmentsInfo::_internal_stream_attachment(int index) const { - return stream_attachment_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_AttachmentsInfo::stream_attachment(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_AttachmentsInfo::stream_attachment(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.stream_attachment) - return _internal_stream_attachment(index); + return _internal_stream_attachment().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_AttachmentsInfo::_internal_add_stream_attachment() { - return stream_attachment_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_AttachmentsInfo::add_stream_attachment() { - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* _add = _internal_add_stream_attachment(); +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL SharingLog_AttachmentsInfo::add_stream_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* _add = + _internal_mutable_stream_attachment()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.stream_attachment) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >& -SharingLog_AttachmentsInfo::stream_attachment() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>& SharingLog_AttachmentsInfo::stream_attachment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo.stream_attachment) - return stream_attachment_; + return _internal_stream_attachment(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>& +SharingLog_AttachmentsInfo::_internal_stream_attachment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.stream_attachment_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>* PROTOBUF_NONNULL +SharingLog_AttachmentsInfo::_internal_mutable_stream_attachment() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.stream_attachment_; } // ------------------------------------------------------------------- @@ -26081,1751 +29519,1876 @@ SharingLog_AttachmentsInfo::stream_attachment() const { // SharingLog_TextAttachment // optional .nearby.sharing.analytics.proto.SharingLog.TextAttachment.Type type = 1; -inline bool SharingLog_TextAttachment::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_TextAttachment::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_TextAttachment::has_type() const { - return _internal_has_type(); -} inline void SharingLog_TextAttachment::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type SharingLog_TextAttachment::_internal_type() const { - return static_cast< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type SharingLog_TextAttachment::type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.TextAttachment.type) return _internal_type(); } -inline void SharingLog_TextAttachment::_internal_set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value) { - assert(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - type_ = value; -} inline void SharingLog_TextAttachment::set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.TextAttachment.type) } +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type SharingLog_TextAttachment::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type>(_impl_.type_); +} +inline void SharingLog_TextAttachment::_internal_set_type(::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type_internal_data_)); + _impl_.type_ = value; +} // optional int64 size_bytes = 2; -inline bool SharingLog_TextAttachment::_internal_has_size_bytes() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_TextAttachment::has_size_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_TextAttachment::has_size_bytes() const { - return _internal_has_size_bytes(); -} inline void SharingLog_TextAttachment::clear_size_bytes() { - size_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_TextAttachment::_internal_size_bytes() const { - return size_bytes_; -} -inline int64_t SharingLog_TextAttachment::size_bytes() const { +inline ::int64_t SharingLog_TextAttachment::size_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.TextAttachment.size_bytes) return _internal_size_bytes(); } -inline void SharingLog_TextAttachment::_internal_set_size_bytes(int64_t value) { - _has_bits_[0] |= 0x00000001u; - size_bytes_ = value; -} -inline void SharingLog_TextAttachment::set_size_bytes(int64_t value) { +inline void SharingLog_TextAttachment::set_size_bytes(::int64_t value) { _internal_set_size_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.TextAttachment.size_bytes) } +inline ::int64_t SharingLog_TextAttachment::_internal_size_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.size_bytes_; +} +inline void SharingLog_TextAttachment::_internal_set_size_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_bytes_ = value; +} // optional int64 batch_id = 3; -inline bool SharingLog_TextAttachment::_internal_has_batch_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_TextAttachment::has_batch_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_TextAttachment::has_batch_id() const { - return _internal_has_batch_id(); -} inline void SharingLog_TextAttachment::clear_batch_id() { - batch_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_TextAttachment::_internal_batch_id() const { - return batch_id_; -} -inline int64_t SharingLog_TextAttachment::batch_id() const { +inline ::int64_t SharingLog_TextAttachment::batch_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.TextAttachment.batch_id) return _internal_batch_id(); } -inline void SharingLog_TextAttachment::_internal_set_batch_id(int64_t value) { - _has_bits_[0] |= 0x00000008u; - batch_id_ = value; -} -inline void SharingLog_TextAttachment::set_batch_id(int64_t value) { +inline void SharingLog_TextAttachment::set_batch_id(::int64_t value) { _internal_set_batch_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.TextAttachment.batch_id) } +inline ::int64_t SharingLog_TextAttachment::_internal_batch_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.batch_id_; +} +inline void SharingLog_TextAttachment::_internal_set_batch_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = value; +} // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; -inline bool SharingLog_TextAttachment::_internal_has_source_type() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_TextAttachment::has_source_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_TextAttachment::has_source_type() const { - return _internal_has_source_type(); -} inline void SharingLog_TextAttachment::clear_source_type() { - source_type_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_TextAttachment::_internal_source_type() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(source_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_TextAttachment::source_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.TextAttachment.source_type) return _internal_source_type(); } -inline void SharingLog_TextAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { - assert(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - source_type_ = value; -} inline void SharingLog_TextAttachment::set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { _internal_set_source_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.TextAttachment.source_type) } +inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_TextAttachment::_internal_source_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(_impl_.source_type_); +} +inline void SharingLog_TextAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentSourceType_internal_data_)); + _impl_.source_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_FileAttachment // optional .nearby.sharing.analytics.proto.SharingLog.FileAttachment.Type type = 1; -inline bool SharingLog_FileAttachment::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_FileAttachment::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_FileAttachment::has_type() const { - return _internal_has_type(); -} inline void SharingLog_FileAttachment::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type SharingLog_FileAttachment::_internal_type() const { - return static_cast< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type SharingLog_FileAttachment::type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FileAttachment.type) return _internal_type(); } -inline void SharingLog_FileAttachment::_internal_set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value) { - assert(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - type_ = value; -} inline void SharingLog_FileAttachment::set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FileAttachment.type) } +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type SharingLog_FileAttachment::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type>(_impl_.type_); +} +inline void SharingLog_FileAttachment::_internal_set_type(::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type_internal_data_)); + _impl_.type_ = value; +} // optional int64 size_bytes = 2; -inline bool SharingLog_FileAttachment::_internal_has_size_bytes() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_FileAttachment::has_size_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_FileAttachment::has_size_bytes() const { - return _internal_has_size_bytes(); -} inline void SharingLog_FileAttachment::clear_size_bytes() { - size_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_FileAttachment::_internal_size_bytes() const { - return size_bytes_; -} -inline int64_t SharingLog_FileAttachment::size_bytes() const { +inline ::int64_t SharingLog_FileAttachment::size_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FileAttachment.size_bytes) return _internal_size_bytes(); } -inline void SharingLog_FileAttachment::_internal_set_size_bytes(int64_t value) { - _has_bits_[0] |= 0x00000001u; - size_bytes_ = value; -} -inline void SharingLog_FileAttachment::set_size_bytes(int64_t value) { +inline void SharingLog_FileAttachment::set_size_bytes(::int64_t value) { _internal_set_size_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FileAttachment.size_bytes) } +inline ::int64_t SharingLog_FileAttachment::_internal_size_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.size_bytes_; +} +inline void SharingLog_FileAttachment::_internal_set_size_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_bytes_ = value; +} // optional int64 offset_bytes = 4; -inline bool SharingLog_FileAttachment::_internal_has_offset_bytes() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_FileAttachment::has_offset_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_FileAttachment::has_offset_bytes() const { - return _internal_has_offset_bytes(); -} inline void SharingLog_FileAttachment::clear_offset_bytes() { - offset_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_FileAttachment::_internal_offset_bytes() const { - return offset_bytes_; -} -inline int64_t SharingLog_FileAttachment::offset_bytes() const { +inline ::int64_t SharingLog_FileAttachment::offset_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FileAttachment.offset_bytes) return _internal_offset_bytes(); } -inline void SharingLog_FileAttachment::_internal_set_offset_bytes(int64_t value) { - _has_bits_[0] |= 0x00000008u; - offset_bytes_ = value; -} -inline void SharingLog_FileAttachment::set_offset_bytes(int64_t value) { +inline void SharingLog_FileAttachment::set_offset_bytes(::int64_t value) { _internal_set_offset_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FileAttachment.offset_bytes) } +inline ::int64_t SharingLog_FileAttachment::_internal_offset_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.offset_bytes_; +} +inline void SharingLog_FileAttachment::_internal_set_offset_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_bytes_ = value; +} // optional int64 batch_id = 5; -inline bool SharingLog_FileAttachment::_internal_has_batch_id() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_FileAttachment::has_batch_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_FileAttachment::has_batch_id() const { - return _internal_has_batch_id(); -} inline void SharingLog_FileAttachment::clear_batch_id() { - batch_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int64_t SharingLog_FileAttachment::_internal_batch_id() const { - return batch_id_; -} -inline int64_t SharingLog_FileAttachment::batch_id() const { +inline ::int64_t SharingLog_FileAttachment::batch_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FileAttachment.batch_id) return _internal_batch_id(); } -inline void SharingLog_FileAttachment::_internal_set_batch_id(int64_t value) { - _has_bits_[0] |= 0x00000010u; - batch_id_ = value; -} -inline void SharingLog_FileAttachment::set_batch_id(int64_t value) { +inline void SharingLog_FileAttachment::set_batch_id(::int64_t value) { _internal_set_batch_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FileAttachment.batch_id) } +inline ::int64_t SharingLog_FileAttachment::_internal_batch_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.batch_id_; +} +inline void SharingLog_FileAttachment::_internal_set_batch_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = value; +} // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 6; -inline bool SharingLog_FileAttachment::_internal_has_source_type() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_FileAttachment::has_source_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_FileAttachment::has_source_type() const { - return _internal_has_source_type(); -} inline void SharingLog_FileAttachment::clear_source_type() { - source_type_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_FileAttachment::_internal_source_type() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(source_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_FileAttachment::source_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.FileAttachment.source_type) return _internal_source_type(); } -inline void SharingLog_FileAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { - assert(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - source_type_ = value; -} inline void SharingLog_FileAttachment::set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { _internal_set_source_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.FileAttachment.source_type) } +inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_FileAttachment::_internal_source_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(_impl_.source_type_); +} +inline void SharingLog_FileAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentSourceType_internal_data_)); + _impl_.source_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_WifiCredentialsAttachment // optional int32 security_type = 1; -inline bool SharingLog_WifiCredentialsAttachment::_internal_has_security_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_WifiCredentialsAttachment::has_security_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_WifiCredentialsAttachment::has_security_type() const { - return _internal_has_security_type(); -} inline void SharingLog_WifiCredentialsAttachment::clear_security_type() { - security_type_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.security_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t SharingLog_WifiCredentialsAttachment::_internal_security_type() const { - return security_type_; -} -inline int32_t SharingLog_WifiCredentialsAttachment::security_type() const { +inline ::int32_t SharingLog_WifiCredentialsAttachment::security_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.security_type) return _internal_security_type(); } -inline void SharingLog_WifiCredentialsAttachment::_internal_set_security_type(int32_t value) { - _has_bits_[0] |= 0x00000002u; - security_type_ = value; -} -inline void SharingLog_WifiCredentialsAttachment::set_security_type(int32_t value) { +inline void SharingLog_WifiCredentialsAttachment::set_security_type(::int32_t value) { _internal_set_security_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.security_type) } +inline ::int32_t SharingLog_WifiCredentialsAttachment::_internal_security_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.security_type_; +} +inline void SharingLog_WifiCredentialsAttachment::_internal_set_security_type(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.security_type_ = value; +} // optional int64 batch_id = 2; -inline bool SharingLog_WifiCredentialsAttachment::_internal_has_batch_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_WifiCredentialsAttachment::has_batch_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_WifiCredentialsAttachment::has_batch_id() const { - return _internal_has_batch_id(); -} inline void SharingLog_WifiCredentialsAttachment::clear_batch_id() { - batch_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_WifiCredentialsAttachment::_internal_batch_id() const { - return batch_id_; -} -inline int64_t SharingLog_WifiCredentialsAttachment::batch_id() const { +inline ::int64_t SharingLog_WifiCredentialsAttachment::batch_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.batch_id) return _internal_batch_id(); } -inline void SharingLog_WifiCredentialsAttachment::_internal_set_batch_id(int64_t value) { - _has_bits_[0] |= 0x00000001u; - batch_id_ = value; -} -inline void SharingLog_WifiCredentialsAttachment::set_batch_id(int64_t value) { +inline void SharingLog_WifiCredentialsAttachment::set_batch_id(::int64_t value) { _internal_set_batch_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.batch_id) } +inline ::int64_t SharingLog_WifiCredentialsAttachment::_internal_batch_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.batch_id_; +} +inline void SharingLog_WifiCredentialsAttachment::_internal_set_batch_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = value; +} // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; -inline bool SharingLog_WifiCredentialsAttachment::_internal_has_source_type() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_WifiCredentialsAttachment::has_source_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_WifiCredentialsAttachment::has_source_type() const { - return _internal_has_source_type(); -} inline void SharingLog_WifiCredentialsAttachment::clear_source_type() { - source_type_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_WifiCredentialsAttachment::_internal_source_type() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(source_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_WifiCredentialsAttachment::source_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.source_type) return _internal_source_type(); } -inline void SharingLog_WifiCredentialsAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { - assert(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - source_type_ = value; -} inline void SharingLog_WifiCredentialsAttachment::set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { _internal_set_source_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment.source_type) } +inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_WifiCredentialsAttachment::_internal_source_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(_impl_.source_type_); +} +inline void SharingLog_WifiCredentialsAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentSourceType_internal_data_)); + _impl_.source_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_AppAttachment // optional string package_name = 1; -inline bool SharingLog_AppAttachment::_internal_has_package_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AppAttachment::has_package_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AppAttachment::has_package_name() const { - return _internal_has_package_name(); -} inline void SharingLog_AppAttachment::clear_package_name() { - package_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.package_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_AppAttachment::package_name() const { +inline const ::std::string& SharingLog_AppAttachment::package_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppAttachment.package_name) return _internal_package_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_AppAttachment::set_package_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_AppAttachment::set_package_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.package_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppAttachment.package_name) } -inline std::string* SharingLog_AppAttachment::mutable_package_name() { - std::string* _s = _internal_mutable_package_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppAttachment::mutable_package_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_package_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.AppAttachment.package_name) return _s; } -inline const std::string& SharingLog_AppAttachment::_internal_package_name() const { - return package_name_.Get(); +inline const ::std::string& SharingLog_AppAttachment::_internal_package_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.package_name_.Get(); } -inline void SharingLog_AppAttachment::_internal_set_package_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_AppAttachment::_internal_set_package_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.package_name_.Set(value, GetArena()); } -inline std::string* SharingLog_AppAttachment::_internal_mutable_package_name() { - _has_bits_[0] |= 0x00000001u; - return package_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_AppAttachment::_internal_mutable_package_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.package_name_.Mutable( GetArena()); } -inline std::string* SharingLog_AppAttachment::release_package_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_AppAttachment::release_package_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.AppAttachment.package_name) - if (!_internal_has_package_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = package_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (package_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.package_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.package_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_AppAttachment::set_allocated_package_name(std::string* package_name) { - if (package_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_AppAttachment::set_allocated_package_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - package_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), package_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (package_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.package_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.package_name_.IsDefault()) { + _impl_.package_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.AppAttachment.package_name) } // optional int64 size = 2; -inline bool SharingLog_AppAttachment::_internal_has_size() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_AppAttachment::has_size() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_AppAttachment::has_size() const { - return _internal_has_size(); -} inline void SharingLog_AppAttachment::clear_size() { - size_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_AppAttachment::_internal_size() const { - return size_; -} -inline int64_t SharingLog_AppAttachment::size() const { +inline ::int64_t SharingLog_AppAttachment::size() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppAttachment.size) return _internal_size(); } -inline void SharingLog_AppAttachment::_internal_set_size(int64_t value) { - _has_bits_[0] |= 0x00000002u; - size_ = value; -} -inline void SharingLog_AppAttachment::set_size(int64_t value) { +inline void SharingLog_AppAttachment::set_size(::int64_t value) { _internal_set_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppAttachment.size) } +inline ::int64_t SharingLog_AppAttachment::_internal_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.size_; +} +inline void SharingLog_AppAttachment::_internal_set_size(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.size_ = value; +} // optional int64 batch_id = 3; -inline bool SharingLog_AppAttachment::_internal_has_batch_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_AppAttachment::has_batch_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_AppAttachment::has_batch_id() const { - return _internal_has_batch_id(); -} inline void SharingLog_AppAttachment::clear_batch_id() { - batch_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_AppAttachment::_internal_batch_id() const { - return batch_id_; -} -inline int64_t SharingLog_AppAttachment::batch_id() const { +inline ::int64_t SharingLog_AppAttachment::batch_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppAttachment.batch_id) return _internal_batch_id(); } -inline void SharingLog_AppAttachment::_internal_set_batch_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - batch_id_ = value; -} -inline void SharingLog_AppAttachment::set_batch_id(int64_t value) { +inline void SharingLog_AppAttachment::set_batch_id(::int64_t value) { _internal_set_batch_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppAttachment.batch_id) } +inline ::int64_t SharingLog_AppAttachment::_internal_batch_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.batch_id_; +} +inline void SharingLog_AppAttachment::_internal_set_batch_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = value; +} // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 4; -inline bool SharingLog_AppAttachment::_internal_has_source_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_AppAttachment::has_source_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_AppAttachment::has_source_type() const { - return _internal_has_source_type(); -} inline void SharingLog_AppAttachment::clear_source_type() { - source_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_AppAttachment::_internal_source_type() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(source_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_AppAttachment::source_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppAttachment.source_type) return _internal_source_type(); } -inline void SharingLog_AppAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { - assert(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - source_type_ = value; -} inline void SharingLog_AppAttachment::set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { _internal_set_source_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppAttachment.source_type) } +inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_AppAttachment::_internal_source_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(_impl_.source_type_); +} +inline void SharingLog_AppAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentSourceType_internal_data_)); + _impl_.source_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_StreamAttachment // optional string package_name = 1; -inline bool SharingLog_StreamAttachment::_internal_has_package_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_StreamAttachment::has_package_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_StreamAttachment::has_package_name() const { - return _internal_has_package_name(); -} inline void SharingLog_StreamAttachment::clear_package_name() { - package_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.package_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_StreamAttachment::package_name() const { +inline const ::std::string& SharingLog_StreamAttachment::package_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.package_name) return _internal_package_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_StreamAttachment::set_package_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_StreamAttachment::set_package_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.package_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.package_name) } -inline std::string* SharingLog_StreamAttachment::mutable_package_name() { - std::string* _s = _internal_mutable_package_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_StreamAttachment::mutable_package_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_package_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.package_name) return _s; } -inline const std::string& SharingLog_StreamAttachment::_internal_package_name() const { - return package_name_.Get(); +inline const ::std::string& SharingLog_StreamAttachment::_internal_package_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.package_name_.Get(); } -inline void SharingLog_StreamAttachment::_internal_set_package_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - package_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_StreamAttachment::_internal_set_package_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.package_name_.Set(value, GetArena()); } -inline std::string* SharingLog_StreamAttachment::_internal_mutable_package_name() { - _has_bits_[0] |= 0x00000001u; - return package_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_StreamAttachment::_internal_mutable_package_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.package_name_.Mutable( GetArena()); } -inline std::string* SharingLog_StreamAttachment::release_package_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_StreamAttachment::release_package_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.package_name) - if (!_internal_has_package_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = package_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (package_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.package_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.package_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_StreamAttachment::set_allocated_package_name(std::string* package_name) { - if (package_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_StreamAttachment::set_allocated_package_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - package_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), package_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (package_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - package_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.package_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.package_name_.IsDefault()) { + _impl_.package_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.package_name) } // optional int64 batch_id = 2; -inline bool SharingLog_StreamAttachment::_internal_has_batch_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_StreamAttachment::has_batch_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_StreamAttachment::has_batch_id() const { - return _internal_has_batch_id(); -} inline void SharingLog_StreamAttachment::clear_batch_id() { - batch_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_StreamAttachment::_internal_batch_id() const { - return batch_id_; -} -inline int64_t SharingLog_StreamAttachment::batch_id() const { +inline ::int64_t SharingLog_StreamAttachment::batch_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.batch_id) return _internal_batch_id(); } -inline void SharingLog_StreamAttachment::_internal_set_batch_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - batch_id_ = value; -} -inline void SharingLog_StreamAttachment::set_batch_id(int64_t value) { +inline void SharingLog_StreamAttachment::set_batch_id(::int64_t value) { _internal_set_batch_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.batch_id) } +inline ::int64_t SharingLog_StreamAttachment::_internal_batch_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.batch_id_; +} +inline void SharingLog_StreamAttachment::_internal_set_batch_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.batch_id_ = value; +} // optional .location.nearby.proto.sharing.AttachmentSourceType source_type = 3; -inline bool SharingLog_StreamAttachment::_internal_has_source_type() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_StreamAttachment::has_source_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_StreamAttachment::has_source_type() const { - return _internal_has_source_type(); -} inline void SharingLog_StreamAttachment::clear_source_type() { - source_type_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_StreamAttachment::_internal_source_type() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentSourceType >(source_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_StreamAttachment::source_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.source_type) return _internal_source_type(); } -inline void SharingLog_StreamAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { - assert(::location::nearby::proto::sharing::AttachmentSourceType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - source_type_ = value; -} inline void SharingLog_StreamAttachment::set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { _internal_set_source_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.StreamAttachment.source_type) } +inline ::location::nearby::proto::sharing::AttachmentSourceType SharingLog_StreamAttachment::_internal_source_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentSourceType>(_impl_.source_type_); +} +inline void SharingLog_StreamAttachment::_internal_set_source_type(::location::nearby::proto::sharing::AttachmentSourceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentSourceType_internal_data_)); + _impl_.source_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudAttachmentInfo // optional .location.nearby.proto.sharing.AttachmentTransmissionStatus status = 1; -inline bool SharingLog_CloudAttachmentInfo::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CloudAttachmentInfo::has_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_CloudAttachmentInfo::has_status() const { - return _internal_has_status(); -} inline void SharingLog_CloudAttachmentInfo::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_CloudAttachmentInfo::_internal_status() const { - return static_cast< ::location::nearby::proto::sharing::AttachmentTransmissionStatus >(status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_CloudAttachmentInfo::status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.status) return _internal_status(); } -inline void SharingLog_CloudAttachmentInfo::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { - assert(::location::nearby::proto::sharing::AttachmentTransmissionStatus_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - status_ = value; -} inline void SharingLog_CloudAttachmentInfo::set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { _internal_set_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.status) } +inline ::location::nearby::proto::sharing::AttachmentTransmissionStatus SharingLog_CloudAttachmentInfo::_internal_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AttachmentTransmissionStatus>(_impl_.status_); +} +inline void SharingLog_CloudAttachmentInfo::_internal_set_status(::location::nearby::proto::sharing::AttachmentTransmissionStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AttachmentTransmissionStatus_internal_data_)); + _impl_.status_ = value; +} // .nearby.sharing.analytics.proto.SharingLog.TextAttachment text_attachment = 2; +inline bool SharingLog_CloudAttachmentInfo::has_text_attachment() const { + return CloudAttachment_case() == kTextAttachment; +} inline bool SharingLog_CloudAttachmentInfo::_internal_has_text_attachment() const { return CloudAttachment_case() == kTextAttachment; } -inline bool SharingLog_CloudAttachmentInfo::has_text_attachment() const { - return _internal_has_text_attachment(); -} inline void SharingLog_CloudAttachmentInfo::set_has_text_attachment() { - _oneof_case_[0] = kTextAttachment; + _impl_._oneof_case_[0] = kTextAttachment; } inline void SharingLog_CloudAttachmentInfo::clear_text_attachment() { - if (_internal_has_text_attachment()) { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.text_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (CloudAttachment_case() == kTextAttachment) { + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.text_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.text_attachment_ != nullptr) { + _impl_.CloudAttachment_.text_attachment_->Clear(); + } } clear_has_CloudAttachment(); } } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_CloudAttachmentInfo::release_text_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::release_text_attachment() { // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) - if (_internal_has_text_attachment()) { + if (CloudAttachment_case() == kTextAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* temp = CloudAttachment_.text_attachment_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment*>(_impl_.CloudAttachment_.text_attachment_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - CloudAttachment_.text_attachment_ = nullptr; + _impl_.CloudAttachment_.text_attachment_ = nullptr; return temp; } else { return nullptr; } } inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_CloudAttachmentInfo::_internal_text_attachment() const { - return _internal_has_text_attachment() - ? *CloudAttachment_.text_attachment_ - : reinterpret_cast< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment&>(::nearby::sharing::analytics::proto::_SharingLog_TextAttachment_default_instance_); + return CloudAttachment_case() == kTextAttachment ? static_cast(*reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment*>(_impl_.CloudAttachment_.text_attachment_)) + : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TextAttachment_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_CloudAttachmentInfo::text_attachment() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TextAttachment& SharingLog_CloudAttachmentInfo::text_attachment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) return _internal_text_attachment(); } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_CloudAttachmentInfo::unsafe_arena_release_text_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::unsafe_arena_release_text_attachment() { // @@protoc_insertion_point(field_unsafe_arena_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) - if (_internal_has_text_attachment()) { + if (CloudAttachment_case() == kTextAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* temp = CloudAttachment_.text_attachment_; - CloudAttachment_.text_attachment_ = nullptr; + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment*>(_impl_.CloudAttachment_.text_attachment_); + _impl_.CloudAttachment_.text_attachment_ = nullptr; return temp; } else { return nullptr; } } -inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_text_attachment(::nearby::sharing::analytics::proto::SharingLog_TextAttachment* text_attachment) { +inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_text_attachment( + ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_CloudAttachment(); - if (text_attachment) { + if (value) { set_has_text_attachment(); - CloudAttachment_.text_attachment_ = text_attachment; + _impl_.CloudAttachment_.text_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_CloudAttachmentInfo::_internal_mutable_text_attachment() { - if (!_internal_has_text_attachment()) { +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_internal_mutable_text_attachment() { + if (CloudAttachment_case() != kTextAttachment) { clear_CloudAttachment(); set_has_text_attachment(); - CloudAttachment_.text_attachment_ = CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment >(GetArenaForAllocation()); + _impl_.CloudAttachment_.text_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TextAttachment>(GetArena())); } - return CloudAttachment_.text_attachment_; + return reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TextAttachment*>(_impl_.CloudAttachment_.text_attachment_); } -inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* SharingLog_CloudAttachmentInfo::mutable_text_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::mutable_text_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::nearby::sharing::analytics::proto::SharingLog_TextAttachment* _msg = _internal_mutable_text_attachment(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.text_attachment) return _msg; } // .nearby.sharing.analytics.proto.SharingLog.FileAttachment file_attachment = 3; +inline bool SharingLog_CloudAttachmentInfo::has_file_attachment() const { + return CloudAttachment_case() == kFileAttachment; +} inline bool SharingLog_CloudAttachmentInfo::_internal_has_file_attachment() const { return CloudAttachment_case() == kFileAttachment; } -inline bool SharingLog_CloudAttachmentInfo::has_file_attachment() const { - return _internal_has_file_attachment(); -} inline void SharingLog_CloudAttachmentInfo::set_has_file_attachment() { - _oneof_case_[0] = kFileAttachment; + _impl_._oneof_case_[0] = kFileAttachment; } inline void SharingLog_CloudAttachmentInfo::clear_file_attachment() { - if (_internal_has_file_attachment()) { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.file_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (CloudAttachment_case() == kFileAttachment) { + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.file_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.file_attachment_ != nullptr) { + _impl_.CloudAttachment_.file_attachment_->Clear(); + } } clear_has_CloudAttachment(); } } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_CloudAttachmentInfo::release_file_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::release_file_attachment() { // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) - if (_internal_has_file_attachment()) { + if (CloudAttachment_case() == kFileAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* temp = CloudAttachment_.file_attachment_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment*>(_impl_.CloudAttachment_.file_attachment_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - CloudAttachment_.file_attachment_ = nullptr; + _impl_.CloudAttachment_.file_attachment_ = nullptr; return temp; } else { return nullptr; } } inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_CloudAttachmentInfo::_internal_file_attachment() const { - return _internal_has_file_attachment() - ? *CloudAttachment_.file_attachment_ - : reinterpret_cast< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment&>(::nearby::sharing::analytics::proto::_SharingLog_FileAttachment_default_instance_); + return CloudAttachment_case() == kFileAttachment ? static_cast(*reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment*>(_impl_.CloudAttachment_.file_attachment_)) + : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_FileAttachment_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_CloudAttachmentInfo::file_attachment() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_FileAttachment& SharingLog_CloudAttachmentInfo::file_attachment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) return _internal_file_attachment(); } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_CloudAttachmentInfo::unsafe_arena_release_file_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::unsafe_arena_release_file_attachment() { // @@protoc_insertion_point(field_unsafe_arena_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) - if (_internal_has_file_attachment()) { + if (CloudAttachment_case() == kFileAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* temp = CloudAttachment_.file_attachment_; - CloudAttachment_.file_attachment_ = nullptr; + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment*>(_impl_.CloudAttachment_.file_attachment_); + _impl_.CloudAttachment_.file_attachment_ = nullptr; return temp; } else { return nullptr; } } -inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_file_attachment(::nearby::sharing::analytics::proto::SharingLog_FileAttachment* file_attachment) { +inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_file_attachment( + ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_CloudAttachment(); - if (file_attachment) { + if (value) { set_has_file_attachment(); - CloudAttachment_.file_attachment_ = file_attachment; + _impl_.CloudAttachment_.file_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_CloudAttachmentInfo::_internal_mutable_file_attachment() { - if (!_internal_has_file_attachment()) { +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_internal_mutable_file_attachment() { + if (CloudAttachment_case() != kFileAttachment) { clear_CloudAttachment(); set_has_file_attachment(); - CloudAttachment_.file_attachment_ = CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment >(GetArenaForAllocation()); + _impl_.CloudAttachment_.file_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_FileAttachment>(GetArena())); } - return CloudAttachment_.file_attachment_; + return reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FileAttachment*>(_impl_.CloudAttachment_.file_attachment_); } -inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* SharingLog_CloudAttachmentInfo::mutable_file_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::mutable_file_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::nearby::sharing::analytics::proto::SharingLog_FileAttachment* _msg = _internal_mutable_file_attachment(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.file_attachment) return _msg; } // .nearby.sharing.analytics.proto.SharingLog.WifiCredentialsAttachment wifi_credentials_attachment = 4; +inline bool SharingLog_CloudAttachmentInfo::has_wifi_credentials_attachment() const { + return CloudAttachment_case() == kWifiCredentialsAttachment; +} inline bool SharingLog_CloudAttachmentInfo::_internal_has_wifi_credentials_attachment() const { return CloudAttachment_case() == kWifiCredentialsAttachment; } -inline bool SharingLog_CloudAttachmentInfo::has_wifi_credentials_attachment() const { - return _internal_has_wifi_credentials_attachment(); -} inline void SharingLog_CloudAttachmentInfo::set_has_wifi_credentials_attachment() { - _oneof_case_[0] = kWifiCredentialsAttachment; + _impl_._oneof_case_[0] = kWifiCredentialsAttachment; } inline void SharingLog_CloudAttachmentInfo::clear_wifi_credentials_attachment() { - if (_internal_has_wifi_credentials_attachment()) { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.wifi_credentials_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (CloudAttachment_case() == kWifiCredentialsAttachment) { + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.wifi_credentials_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.wifi_credentials_attachment_ != nullptr) { + _impl_.CloudAttachment_.wifi_credentials_attachment_->Clear(); + } } clear_has_CloudAttachment(); } } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_CloudAttachmentInfo::release_wifi_credentials_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::release_wifi_credentials_attachment() { // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) - if (_internal_has_wifi_credentials_attachment()) { + if (CloudAttachment_case() == kWifiCredentialsAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* temp = CloudAttachment_.wifi_credentials_attachment_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment*>(_impl_.CloudAttachment_.wifi_credentials_attachment_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - CloudAttachment_.wifi_credentials_attachment_ = nullptr; + _impl_.CloudAttachment_.wifi_credentials_attachment_ = nullptr; return temp; } else { return nullptr; } } inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_CloudAttachmentInfo::_internal_wifi_credentials_attachment() const { - return _internal_has_wifi_credentials_attachment() - ? *CloudAttachment_.wifi_credentials_attachment_ - : reinterpret_cast< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment&>(::nearby::sharing::analytics::proto::_SharingLog_WifiCredentialsAttachment_default_instance_); + return CloudAttachment_case() == kWifiCredentialsAttachment ? static_cast(*reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment*>(_impl_.CloudAttachment_.wifi_credentials_attachment_)) + : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_WifiCredentialsAttachment_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_CloudAttachmentInfo::wifi_credentials_attachment() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment& SharingLog_CloudAttachmentInfo::wifi_credentials_attachment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) return _internal_wifi_credentials_attachment(); } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_CloudAttachmentInfo::unsafe_arena_release_wifi_credentials_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::unsafe_arena_release_wifi_credentials_attachment() { // @@protoc_insertion_point(field_unsafe_arena_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) - if (_internal_has_wifi_credentials_attachment()) { + if (CloudAttachment_case() == kWifiCredentialsAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* temp = CloudAttachment_.wifi_credentials_attachment_; - CloudAttachment_.wifi_credentials_attachment_ = nullptr; + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment*>(_impl_.CloudAttachment_.wifi_credentials_attachment_); + _impl_.CloudAttachment_.wifi_credentials_attachment_ = nullptr; return temp; } else { return nullptr; } } -inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_wifi_credentials_attachment(::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* wifi_credentials_attachment) { +inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_wifi_credentials_attachment( + ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_CloudAttachment(); - if (wifi_credentials_attachment) { + if (value) { set_has_wifi_credentials_attachment(); - CloudAttachment_.wifi_credentials_attachment_ = wifi_credentials_attachment; + _impl_.CloudAttachment_.wifi_credentials_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_CloudAttachmentInfo::_internal_mutable_wifi_credentials_attachment() { - if (!_internal_has_wifi_credentials_attachment()) { +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_internal_mutable_wifi_credentials_attachment() { + if (CloudAttachment_case() != kWifiCredentialsAttachment) { clear_CloudAttachment(); set_has_wifi_credentials_attachment(); - CloudAttachment_.wifi_credentials_attachment_ = CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment >(GetArenaForAllocation()); + _impl_.CloudAttachment_.wifi_credentials_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment>(GetArena())); } - return CloudAttachment_.wifi_credentials_attachment_; + return reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment*>(_impl_.CloudAttachment_.wifi_credentials_attachment_); } -inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* SharingLog_CloudAttachmentInfo::mutable_wifi_credentials_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::mutable_wifi_credentials_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::nearby::sharing::analytics::proto::SharingLog_WifiCredentialsAttachment* _msg = _internal_mutable_wifi_credentials_attachment(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.wifi_credentials_attachment) return _msg; } // .nearby.sharing.analytics.proto.SharingLog.AppAttachment app_attachment = 5; +inline bool SharingLog_CloudAttachmentInfo::has_app_attachment() const { + return CloudAttachment_case() == kAppAttachment; +} inline bool SharingLog_CloudAttachmentInfo::_internal_has_app_attachment() const { return CloudAttachment_case() == kAppAttachment; } -inline bool SharingLog_CloudAttachmentInfo::has_app_attachment() const { - return _internal_has_app_attachment(); -} inline void SharingLog_CloudAttachmentInfo::set_has_app_attachment() { - _oneof_case_[0] = kAppAttachment; + _impl_._oneof_case_[0] = kAppAttachment; } inline void SharingLog_CloudAttachmentInfo::clear_app_attachment() { - if (_internal_has_app_attachment()) { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.app_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (CloudAttachment_case() == kAppAttachment) { + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.app_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.app_attachment_ != nullptr) { + _impl_.CloudAttachment_.app_attachment_->Clear(); + } } clear_has_CloudAttachment(); } } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_CloudAttachmentInfo::release_app_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::release_app_attachment() { // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) - if (_internal_has_app_attachment()) { + if (CloudAttachment_case() == kAppAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* temp = CloudAttachment_.app_attachment_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppAttachment*>(_impl_.CloudAttachment_.app_attachment_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - CloudAttachment_.app_attachment_ = nullptr; + _impl_.CloudAttachment_.app_attachment_ = nullptr; return temp; } else { return nullptr; } } inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_CloudAttachmentInfo::_internal_app_attachment() const { - return _internal_has_app_attachment() - ? *CloudAttachment_.app_attachment_ - : reinterpret_cast< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment&>(::nearby::sharing::analytics::proto::_SharingLog_AppAttachment_default_instance_); + return CloudAttachment_case() == kAppAttachment ? static_cast(*reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppAttachment*>(_impl_.CloudAttachment_.app_attachment_)) + : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AppAttachment_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_CloudAttachmentInfo::app_attachment() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AppAttachment& SharingLog_CloudAttachmentInfo::app_attachment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) return _internal_app_attachment(); } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_CloudAttachmentInfo::unsafe_arena_release_app_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::unsafe_arena_release_app_attachment() { // @@protoc_insertion_point(field_unsafe_arena_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) - if (_internal_has_app_attachment()) { + if (CloudAttachment_case() == kAppAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* temp = CloudAttachment_.app_attachment_; - CloudAttachment_.app_attachment_ = nullptr; + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppAttachment*>(_impl_.CloudAttachment_.app_attachment_); + _impl_.CloudAttachment_.app_attachment_ = nullptr; return temp; } else { return nullptr; } } -inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_app_attachment(::nearby::sharing::analytics::proto::SharingLog_AppAttachment* app_attachment) { +inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_app_attachment( + ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_CloudAttachment(); - if (app_attachment) { + if (value) { set_has_app_attachment(); - CloudAttachment_.app_attachment_ = app_attachment; + _impl_.CloudAttachment_.app_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_CloudAttachmentInfo::_internal_mutable_app_attachment() { - if (!_internal_has_app_attachment()) { +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_internal_mutable_app_attachment() { + if (CloudAttachment_case() != kAppAttachment) { clear_CloudAttachment(); set_has_app_attachment(); - CloudAttachment_.app_attachment_ = CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_AppAttachment >(GetArenaForAllocation()); + _impl_.CloudAttachment_.app_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AppAttachment>(GetArena())); } - return CloudAttachment_.app_attachment_; + return reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppAttachment*>(_impl_.CloudAttachment_.app_attachment_); } -inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* SharingLog_CloudAttachmentInfo::mutable_app_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::mutable_app_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::nearby::sharing::analytics::proto::SharingLog_AppAttachment* _msg = _internal_mutable_app_attachment(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.app_attachment) return _msg; } // .nearby.sharing.analytics.proto.SharingLog.StreamAttachment stream_attachment = 6; +inline bool SharingLog_CloudAttachmentInfo::has_stream_attachment() const { + return CloudAttachment_case() == kStreamAttachment; +} inline bool SharingLog_CloudAttachmentInfo::_internal_has_stream_attachment() const { return CloudAttachment_case() == kStreamAttachment; } -inline bool SharingLog_CloudAttachmentInfo::has_stream_attachment() const { - return _internal_has_stream_attachment(); -} inline void SharingLog_CloudAttachmentInfo::set_has_stream_attachment() { - _oneof_case_[0] = kStreamAttachment; + _impl_._oneof_case_[0] = kStreamAttachment; } inline void SharingLog_CloudAttachmentInfo::clear_stream_attachment() { - if (_internal_has_stream_attachment()) { - if (GetArenaForAllocation() == nullptr) { - delete CloudAttachment_.stream_attachment_; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (CloudAttachment_case() == kStreamAttachment) { + if (GetArena() == nullptr) { + delete _impl_.CloudAttachment_.stream_attachment_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + if (_impl_.CloudAttachment_.stream_attachment_ != nullptr) { + _impl_.CloudAttachment_.stream_attachment_->Clear(); + } } clear_has_CloudAttachment(); } } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_CloudAttachmentInfo::release_stream_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::release_stream_attachment() { // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) - if (_internal_has_stream_attachment()) { + if (CloudAttachment_case() == kStreamAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* temp = CloudAttachment_.stream_attachment_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment*>(_impl_.CloudAttachment_.stream_attachment_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - CloudAttachment_.stream_attachment_ = nullptr; + _impl_.CloudAttachment_.stream_attachment_ = nullptr; return temp; } else { return nullptr; } } inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_CloudAttachmentInfo::_internal_stream_attachment() const { - return _internal_has_stream_attachment() - ? *CloudAttachment_.stream_attachment_ - : reinterpret_cast< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment&>(::nearby::sharing::analytics::proto::_SharingLog_StreamAttachment_default_instance_); + return CloudAttachment_case() == kStreamAttachment ? static_cast(*reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment*>(_impl_.CloudAttachment_.stream_attachment_)) + : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_StreamAttachment_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_CloudAttachmentInfo::stream_attachment() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment& SharingLog_CloudAttachmentInfo::stream_attachment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) return _internal_stream_attachment(); } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_CloudAttachmentInfo::unsafe_arena_release_stream_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE SharingLog_CloudAttachmentInfo::unsafe_arena_release_stream_attachment() { // @@protoc_insertion_point(field_unsafe_arena_release:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) - if (_internal_has_stream_attachment()) { + if (CloudAttachment_case() == kStreamAttachment) { clear_has_CloudAttachment(); - ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* temp = CloudAttachment_.stream_attachment_; - CloudAttachment_.stream_attachment_ = nullptr; + auto* temp = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment*>(_impl_.CloudAttachment_.stream_attachment_); + _impl_.CloudAttachment_.stream_attachment_ = nullptr; return temp; } else { return nullptr; } } -inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_stream_attachment(::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* stream_attachment) { +inline void SharingLog_CloudAttachmentInfo::unsafe_arena_set_allocated_stream_attachment( + ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_CloudAttachment(); - if (stream_attachment) { + if (value) { set_has_stream_attachment(); - CloudAttachment_.stream_attachment_ = stream_attachment; + _impl_.CloudAttachment_.stream_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_CloudAttachmentInfo::_internal_mutable_stream_attachment() { - if (!_internal_has_stream_attachment()) { +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::_internal_mutable_stream_attachment() { + if (CloudAttachment_case() != kStreamAttachment) { clear_CloudAttachment(); set_has_stream_attachment(); - CloudAttachment_.stream_attachment_ = CreateMaybeMessage< ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment >(GetArenaForAllocation()); + _impl_.CloudAttachment_.stream_attachment_ = reinterpret_cast<::google::protobuf::MessageLite*>( + ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment>(GetArena())); } - return CloudAttachment_.stream_attachment_; + return reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StreamAttachment*>(_impl_.CloudAttachment_.stream_attachment_); } -inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* SharingLog_CloudAttachmentInfo::mutable_stream_attachment() { +inline ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* PROTOBUF_NONNULL SharingLog_CloudAttachmentInfo::mutable_stream_attachment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::nearby::sharing::analytics::proto::SharingLog_StreamAttachment* _msg = _internal_mutable_stream_attachment(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.stream_attachment) return _msg; } // optional int64 transferred_bytes = 7; -inline bool SharingLog_CloudAttachmentInfo::_internal_has_transferred_bytes() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CloudAttachmentInfo::has_transferred_bytes() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_CloudAttachmentInfo::has_transferred_bytes() const { - return _internal_has_transferred_bytes(); -} inline void SharingLog_CloudAttachmentInfo::clear_transferred_bytes() { - transferred_bytes_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transferred_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int64_t SharingLog_CloudAttachmentInfo::_internal_transferred_bytes() const { - return transferred_bytes_; -} -inline int64_t SharingLog_CloudAttachmentInfo::transferred_bytes() const { +inline ::int64_t SharingLog_CloudAttachmentInfo::transferred_bytes() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.transferred_bytes) return _internal_transferred_bytes(); } -inline void SharingLog_CloudAttachmentInfo::_internal_set_transferred_bytes(int64_t value) { - _has_bits_[0] |= 0x00000002u; - transferred_bytes_ = value; -} -inline void SharingLog_CloudAttachmentInfo::set_transferred_bytes(int64_t value) { +inline void SharingLog_CloudAttachmentInfo::set_transferred_bytes(::int64_t value) { _internal_set_transferred_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.transferred_bytes) } +inline ::int64_t SharingLog_CloudAttachmentInfo::_internal_transferred_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transferred_bytes_; +} +inline void SharingLog_CloudAttachmentInfo::_internal_set_transferred_bytes(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transferred_bytes_ = value; +} // optional int64 duration_millis = 8; -inline bool SharingLog_CloudAttachmentInfo::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_CloudAttachmentInfo::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudAttachmentInfo::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_CloudAttachmentInfo::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_CloudAttachmentInfo::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_CloudAttachmentInfo::duration_millis() const { +inline ::int64_t SharingLog_CloudAttachmentInfo::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_CloudAttachmentInfo::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - duration_millis_ = value; -} -inline void SharingLog_CloudAttachmentInfo::set_duration_millis(int64_t value) { +inline void SharingLog_CloudAttachmentInfo::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo.duration_millis) } +inline ::int64_t SharingLog_CloudAttachmentInfo::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_CloudAttachmentInfo::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} inline bool SharingLog_CloudAttachmentInfo::has_CloudAttachment() const { return CloudAttachment_case() != CLOUDATTACHMENT_NOT_SET; } inline void SharingLog_CloudAttachmentInfo::clear_has_CloudAttachment() { - _oneof_case_[0] = CLOUDATTACHMENT_NOT_SET; + _impl_._oneof_case_[0] = CLOUDATTACHMENT_NOT_SET; } inline SharingLog_CloudAttachmentInfo::CloudAttachmentCase SharingLog_CloudAttachmentInfo::CloudAttachment_case() const { - return SharingLog_CloudAttachmentInfo::CloudAttachmentCase(_oneof_case_[0]); + return SharingLog_CloudAttachmentInfo::CloudAttachmentCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- // SharingLog_AppCrash // optional .location.nearby.proto.sharing.AppCrashReason crash_reason = 1; -inline bool SharingLog_AppCrash::_internal_has_crash_reason() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_AppCrash::has_crash_reason() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_AppCrash::has_crash_reason() const { - return _internal_has_crash_reason(); -} inline void SharingLog_AppCrash::clear_crash_reason() { - crash_reason_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::AppCrashReason SharingLog_AppCrash::_internal_crash_reason() const { - return static_cast< ::location::nearby::proto::sharing::AppCrashReason >(crash_reason_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.crash_reason_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::AppCrashReason SharingLog_AppCrash::crash_reason() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.AppCrash.crash_reason) return _internal_crash_reason(); } -inline void SharingLog_AppCrash::_internal_set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value) { - assert(::location::nearby::proto::sharing::AppCrashReason_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - crash_reason_ = value; -} inline void SharingLog_AppCrash::set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value) { _internal_set_crash_reason(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.AppCrash.crash_reason) } +inline ::location::nearby::proto::sharing::AppCrashReason SharingLog_AppCrash::_internal_crash_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::AppCrashReason>(_impl_.crash_reason_); +} +inline void SharingLog_AppCrash::_internal_set_crash_reason(::location::nearby::proto::sharing::AppCrashReason value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::AppCrashReason_internal_data_)); + _impl_.crash_reason_ = value; +} // ------------------------------------------------------------------- // SharingLog_SetupWizard // optional .location.nearby.proto.sharing.Visibility visibility = 1; -inline bool SharingLog_SetupWizard::_internal_has_visibility() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SetupWizard::has_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SetupWizard::has_visibility() const { - return _internal_has_visibility(); -} inline void SharingLog_SetupWizard::clear_visibility() { - visibility_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::_internal_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetupWizard.visibility) return _internal_visibility(); } -inline void SharingLog_SetupWizard::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - visibility_ = value; -} inline void SharingLog_SetupWizard::set_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetupWizard.visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::_internal_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.visibility_); +} +inline void SharingLog_SetupWizard::_internal_set_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.visibility_ = value; +} // optional .location.nearby.proto.sharing.Visibility previous_visibility = 2; -inline bool SharingLog_SetupWizard::_internal_has_previous_visibility() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_SetupWizard::has_previous_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_SetupWizard::has_previous_visibility() const { - return _internal_has_previous_visibility(); -} inline void SharingLog_SetupWizard::clear_previous_visibility() { - previous_visibility_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::_internal_previous_visibility() const { - return static_cast< ::location::nearby::proto::sharing::Visibility >(previous_visibility_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.previous_visibility_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::previous_visibility() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SetupWizard.previous_visibility) return _internal_previous_visibility(); } -inline void SharingLog_SetupWizard::_internal_set_previous_visibility(::location::nearby::proto::sharing::Visibility value) { - assert(::location::nearby::proto::sharing::Visibility_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - previous_visibility_ = value; -} inline void SharingLog_SetupWizard::set_previous_visibility(::location::nearby::proto::sharing::Visibility value) { _internal_set_previous_visibility(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SetupWizard.previous_visibility) } +inline ::location::nearby::proto::sharing::Visibility SharingLog_SetupWizard::_internal_previous_visibility() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::Visibility>(_impl_.previous_visibility_); +} +inline void SharingLog_SetupWizard::_internal_set_previous_visibility(::location::nearby::proto::sharing::Visibility value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::Visibility_internal_data_)); + _impl_.previous_visibility_ = value; +} // ------------------------------------------------------------------- // SharingLog_SendDesktopNotification // optional .location.nearby.proto.sharing.DesktopNotification event = 1; -inline bool SharingLog_SendDesktopNotification::_internal_has_event() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SendDesktopNotification::has_event() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SendDesktopNotification::has_event() const { - return _internal_has_event(); -} inline void SharingLog_SendDesktopNotification::clear_event() { - event_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::DesktopNotification SharingLog_SendDesktopNotification::_internal_event() const { - return static_cast< ::location::nearby::proto::sharing::DesktopNotification >(event_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::DesktopNotification SharingLog_SendDesktopNotification::event() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification.event) return _internal_event(); } -inline void SharingLog_SendDesktopNotification::_internal_set_event(::location::nearby::proto::sharing::DesktopNotification value) { - assert(::location::nearby::proto::sharing::DesktopNotification_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - event_ = value; -} inline void SharingLog_SendDesktopNotification::set_event(::location::nearby::proto::sharing::DesktopNotification value) { _internal_set_event(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification.event) } +inline ::location::nearby::proto::sharing::DesktopNotification SharingLog_SendDesktopNotification::_internal_event() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DesktopNotification>(_impl_.event_); +} +inline void SharingLog_SendDesktopNotification::_internal_set_event(::location::nearby::proto::sharing::DesktopNotification value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DesktopNotification_internal_data_)); + _impl_.event_ = value; +} // ------------------------------------------------------------------- // SharingLog_SendDesktopTransferEvent // optional .location.nearby.proto.sharing.DesktopTransferEventType event = 1; -inline bool SharingLog_SendDesktopTransferEvent::_internal_has_event() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_SendDesktopTransferEvent::has_event() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_SendDesktopTransferEvent::has_event() const { - return _internal_has_event(); -} inline void SharingLog_SendDesktopTransferEvent::clear_event() { - event_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::DesktopTransferEventType SharingLog_SendDesktopTransferEvent::_internal_event() const { - return static_cast< ::location::nearby::proto::sharing::DesktopTransferEventType >(event_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::DesktopTransferEventType SharingLog_SendDesktopTransferEvent::event() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent.event) return _internal_event(); } -inline void SharingLog_SendDesktopTransferEvent::_internal_set_event(::location::nearby::proto::sharing::DesktopTransferEventType value) { - assert(::location::nearby::proto::sharing::DesktopTransferEventType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - event_ = value; -} inline void SharingLog_SendDesktopTransferEvent::set_event(::location::nearby::proto::sharing::DesktopTransferEventType value) { _internal_set_event(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent.event) } +inline ::location::nearby::proto::sharing::DesktopTransferEventType SharingLog_SendDesktopTransferEvent::_internal_event() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::DesktopTransferEventType>(_impl_.event_); +} +inline void SharingLog_SendDesktopTransferEvent::_internal_set_event(::location::nearby::proto::sharing::DesktopTransferEventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::DesktopTransferEventType_internal_data_)); + _impl_.event_ = value; +} // ------------------------------------------------------------------- // SharingLog_ShowWaitingForAccept // optional .location.nearby.proto.sharing.ButtonStatus button_status = 1; -inline bool SharingLog_ShowWaitingForAccept::_internal_has_button_status() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ShowWaitingForAccept::has_button_status() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ShowWaitingForAccept::has_button_status() const { - return _internal_has_button_status(); -} inline void SharingLog_ShowWaitingForAccept::clear_button_status() { - button_status_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::ButtonStatus SharingLog_ShowWaitingForAccept::_internal_button_status() const { - return static_cast< ::location::nearby::proto::sharing::ButtonStatus >(button_status_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.button_status_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::ButtonStatus SharingLog_ShowWaitingForAccept::button_status() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept.button_status) return _internal_button_status(); } -inline void SharingLog_ShowWaitingForAccept::_internal_set_button_status(::location::nearby::proto::sharing::ButtonStatus value) { - assert(::location::nearby::proto::sharing::ButtonStatus_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - button_status_ = value; -} inline void SharingLog_ShowWaitingForAccept::set_button_status(::location::nearby::proto::sharing::ButtonStatus value) { _internal_set_button_status(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept.button_status) } +inline ::location::nearby::proto::sharing::ButtonStatus SharingLog_ShowWaitingForAccept::_internal_button_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::ButtonStatus>(_impl_.button_status_); +} +inline void SharingLog_ShowWaitingForAccept::_internal_set_button_status(::location::nearby::proto::sharing::ButtonStatus value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::ButtonStatus_internal_data_)); + _impl_.button_status_ = value; +} // ------------------------------------------------------------------- // SharingLog_HighQualityMediumSetup // optional .nearby.sharing.analytics.proto.SharingLog.ShareTargetInfo share_target_info = 1; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_share_target_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || share_target_info_ != nullptr); +inline bool SharingLog_HighQualityMediumSetup::has_share_target_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.share_target_info_ != nullptr); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_share_target_info() const { - return _internal_has_share_target_info(); -} inline void SharingLog_HighQualityMediumSetup::clear_share_target_info() { - if (share_target_info_ != nullptr) share_target_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ != nullptr) _impl_.share_target_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_HighQualityMediumSetup::_internal_share_target_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = share_target_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* p = _impl_.share_target_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShareTargetInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_HighQualityMediumSetup::share_target_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo& SharingLog_HighQualityMediumSetup::share_target_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.share_target_info) return _internal_share_target_info(); } inline void SharingLog_HighQualityMediumSetup::unsafe_arena_set_allocated_share_target_info( - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(share_target_info_); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - share_target_info_ = share_target_info; - if (share_target_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.share_target_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_HighQualityMediumSetup::release_share_target_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_HighQualityMediumSetup::release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* released = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_HighQualityMediumSetup::unsafe_arena_release_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE SharingLog_HighQualityMediumSetup::unsafe_arena_release_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.share_target_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = share_target_info_; - share_target_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* temp = _impl_.share_target_info_; + _impl_.share_target_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_HighQualityMediumSetup::_internal_mutable_share_target_info() { - _has_bits_[0] |= 0x00000001u; - if (share_target_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArenaForAllocation()); - share_target_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::_internal_mutable_share_target_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.share_target_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>(GetArena()); + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(p); } - return share_target_info_; + return _impl_.share_target_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* SharingLog_HighQualityMediumSetup::mutable_share_target_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NONNULL SharingLog_HighQualityMediumSetup::mutable_share_target_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* _msg = _internal_mutable_share_target_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.share_target_info) return _msg; } -inline void SharingLog_HighQualityMediumSetup::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_HighQualityMediumSetup::set_allocated_share_target_info(::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete share_target_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.share_target_info_); } - if (share_target_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo>::GetOwningArena(share_target_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - share_target_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, share_target_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - share_target_info_ = share_target_info; + + _impl_.share_target_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShareTargetInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.share_target_info) } // optional int64 session_id = 2; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_session_id() const { - return _internal_has_session_id(); -} inline void SharingLog_HighQualityMediumSetup::clear_session_id() { - session_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_HighQualityMediumSetup::_internal_session_id() const { - return session_id_; -} -inline int64_t SharingLog_HighQualityMediumSetup::session_id() const { +inline ::int64_t SharingLog_HighQualityMediumSetup::session_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.session_id) return _internal_session_id(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_session_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - session_id_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_session_id(int64_t value) { +inline void SharingLog_HighQualityMediumSetup::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.session_id) } +inline ::int64_t SharingLog_HighQualityMediumSetup::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_session_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} // optional int64 duration_millis = 3; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_duration_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_duration_millis() const { - return _internal_has_duration_millis(); -} inline void SharingLog_HighQualityMediumSetup::clear_duration_millis() { - duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_HighQualityMediumSetup::_internal_duration_millis() const { - return duration_millis_; -} -inline int64_t SharingLog_HighQualityMediumSetup::duration_millis() const { +inline ::int64_t SharingLog_HighQualityMediumSetup::duration_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.duration_millis) return _internal_duration_millis(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - duration_millis_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_duration_millis(int64_t value) { +inline void SharingLog_HighQualityMediumSetup::set_duration_millis(::int64_t value) { _internal_set_duration_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.duration_millis) } +inline ::int64_t SharingLog_HighQualityMediumSetup::_internal_duration_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.duration_millis_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_duration_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.duration_millis_ = value; +} // optional bool is_timeout = 4; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_is_timeout() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_is_timeout() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_is_timeout() const { - return _internal_has_is_timeout(); -} inline void SharingLog_HighQualityMediumSetup::clear_is_timeout() { - is_timeout_ = false; - _has_bits_[0] &= ~0x00000008u; -} -inline bool SharingLog_HighQualityMediumSetup::_internal_is_timeout() const { - return is_timeout_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_timeout_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool SharingLog_HighQualityMediumSetup::is_timeout() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.is_timeout) return _internal_is_timeout(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_is_timeout(bool value) { - _has_bits_[0] |= 0x00000008u; - is_timeout_ = value; -} inline void SharingLog_HighQualityMediumSetup::set_is_timeout(bool value) { _internal_set_is_timeout(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.is_timeout) } +inline bool SharingLog_HighQualityMediumSetup::_internal_is_timeout() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_timeout_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_is_timeout(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_timeout_ = value; +} // optional int32 original_quality = 5; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_original_quality() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_original_quality() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_original_quality() const { - return _internal_has_original_quality(); -} inline void SharingLog_HighQualityMediumSetup::clear_original_quality() { - original_quality_ = 0; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.original_quality_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline int32_t SharingLog_HighQualityMediumSetup::_internal_original_quality() const { - return original_quality_; -} -inline int32_t SharingLog_HighQualityMediumSetup::original_quality() const { +inline ::int32_t SharingLog_HighQualityMediumSetup::original_quality() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.original_quality) return _internal_original_quality(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_original_quality(int32_t value) { - _has_bits_[0] |= 0x00000010u; - original_quality_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_original_quality(int32_t value) { +inline void SharingLog_HighQualityMediumSetup::set_original_quality(::int32_t value) { _internal_set_original_quality(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.original_quality) } +inline ::int32_t SharingLog_HighQualityMediumSetup::_internal_original_quality() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.original_quality_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_original_quality(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.original_quality_ = value; +} // optional int32 connection_medium = 6; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_connection_medium() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_connection_medium() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_connection_medium() const { - return _internal_has_connection_medium(); -} inline void SharingLog_HighQualityMediumSetup::clear_connection_medium() { - connection_medium_ = 0; - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline int32_t SharingLog_HighQualityMediumSetup::_internal_connection_medium() const { - return connection_medium_; -} -inline int32_t SharingLog_HighQualityMediumSetup::connection_medium() const { +inline ::int32_t SharingLog_HighQualityMediumSetup::connection_medium() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.connection_medium) return _internal_connection_medium(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_connection_medium(int32_t value) { - _has_bits_[0] |= 0x00000020u; - connection_medium_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_connection_medium(int32_t value) { +inline void SharingLog_HighQualityMediumSetup::set_connection_medium(::int32_t value) { _internal_set_connection_medium(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.connection_medium) } +inline ::int32_t SharingLog_HighQualityMediumSetup::_internal_connection_medium() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_medium_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_connection_medium(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_medium_ = value; +} // optional int32 connection_mode = 7; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_connection_mode() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_connection_mode() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_connection_mode() const { - return _internal_has_connection_mode(); -} inline void SharingLog_HighQualityMediumSetup::clear_connection_mode() { - connection_mode_ = 0; - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_mode_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline int32_t SharingLog_HighQualityMediumSetup::_internal_connection_mode() const { - return connection_mode_; -} -inline int32_t SharingLog_HighQualityMediumSetup::connection_mode() const { +inline ::int32_t SharingLog_HighQualityMediumSetup::connection_mode() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.connection_mode) return _internal_connection_mode(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_connection_mode(int32_t value) { - _has_bits_[0] |= 0x00000040u; - connection_mode_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_connection_mode(int32_t value) { +inline void SharingLog_HighQualityMediumSetup::set_connection_mode(::int32_t value) { _internal_set_connection_mode(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.connection_mode) } +inline ::int32_t SharingLog_HighQualityMediumSetup::_internal_connection_mode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.connection_mode_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_connection_mode(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.connection_mode_ = value; +} // optional int32 instant_connection_result = 8; -inline bool SharingLog_HighQualityMediumSetup::_internal_has_instant_connection_result() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool SharingLog_HighQualityMediumSetup::has_instant_connection_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool SharingLog_HighQualityMediumSetup::has_instant_connection_result() const { - return _internal_has_instant_connection_result(); -} inline void SharingLog_HighQualityMediumSetup::clear_instant_connection_result() { - instant_connection_result_ = 0; - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instant_connection_result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline int32_t SharingLog_HighQualityMediumSetup::_internal_instant_connection_result() const { - return instant_connection_result_; -} -inline int32_t SharingLog_HighQualityMediumSetup::instant_connection_result() const { +inline ::int32_t SharingLog_HighQualityMediumSetup::instant_connection_result() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.instant_connection_result) return _internal_instant_connection_result(); } -inline void SharingLog_HighQualityMediumSetup::_internal_set_instant_connection_result(int32_t value) { - _has_bits_[0] |= 0x00000080u; - instant_connection_result_ = value; -} -inline void SharingLog_HighQualityMediumSetup::set_instant_connection_result(int32_t value) { +inline void SharingLog_HighQualityMediumSetup::set_instant_connection_result(::int32_t value) { _internal_set_instant_connection_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup.instant_connection_result) } +inline ::int32_t SharingLog_HighQualityMediumSetup::_internal_instant_connection_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.instant_connection_result_; +} +inline void SharingLog_HighQualityMediumSetup::_internal_set_instant_connection_result(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.instant_connection_result_ = value; +} // ------------------------------------------------------------------- // SharingLog_RpcCallStatus // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.RpcDirection direction = 1; -inline bool SharingLog_RpcCallStatus::_internal_has_direction() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_RpcCallStatus::has_direction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_RpcCallStatus::has_direction() const { - return _internal_has_direction(); -} inline void SharingLog_RpcCallStatus::clear_direction() { - direction_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::_internal_direction() const { - return static_cast< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection >(direction_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.direction_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::direction() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.direction) return _internal_direction(); } -inline void SharingLog_RpcCallStatus::_internal_set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value) { - assert(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - direction_ = value; -} inline void SharingLog_RpcCallStatus::set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value) { _internal_set_direction(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.direction) } +inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection SharingLog_RpcCallStatus::_internal_direction() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection>(_impl_.direction_); +} +inline void SharingLog_RpcCallStatus::_internal_set_direction(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection_internal_data_)); + _impl_.direction_ = value; +} // optional string rpc_name = 2; -inline bool SharingLog_RpcCallStatus::_internal_has_rpc_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_RpcCallStatus::has_rpc_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_RpcCallStatus::has_rpc_name() const { - return _internal_has_rpc_name(); -} inline void SharingLog_RpcCallStatus::clear_rpc_name() { - rpc_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_RpcCallStatus::rpc_name() const { +inline const ::std::string& SharingLog_RpcCallStatus::rpc_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.rpc_name) return _internal_rpc_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_RpcCallStatus::set_rpc_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_RpcCallStatus::set_rpc_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.rpc_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.rpc_name) } -inline std::string* SharingLog_RpcCallStatus::mutable_rpc_name() { - std::string* _s = _internal_mutable_rpc_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_RpcCallStatus::mutable_rpc_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_rpc_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.rpc_name) return _s; } -inline const std::string& SharingLog_RpcCallStatus::_internal_rpc_name() const { - return rpc_name_.Get(); +inline const ::std::string& SharingLog_RpcCallStatus::_internal_rpc_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rpc_name_.Get(); } -inline void SharingLog_RpcCallStatus::_internal_set_rpc_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_RpcCallStatus::_internal_set_rpc_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_name_.Set(value, GetArena()); } -inline std::string* SharingLog_RpcCallStatus::_internal_mutable_rpc_name() { - _has_bits_[0] |= 0x00000001u; - return rpc_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_RpcCallStatus::_internal_mutable_rpc_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.rpc_name_.Mutable( GetArena()); } -inline std::string* SharingLog_RpcCallStatus::release_rpc_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_RpcCallStatus::release_rpc_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.rpc_name) - if (!_internal_has_rpc_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = rpc_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rpc_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.rpc_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rpc_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_RpcCallStatus::set_allocated_rpc_name(std::string* rpc_name) { - if (rpc_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_RpcCallStatus::set_allocated_rpc_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - rpc_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rpc_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rpc_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.rpc_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rpc_name_.IsDefault()) { + _impl_.rpc_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.rpc_name) } // optional int32 error_code = 3; -inline bool SharingLog_RpcCallStatus::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_RpcCallStatus::has_error_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_RpcCallStatus::has_error_code() const { - return _internal_has_error_code(); -} inline void SharingLog_RpcCallStatus::clear_error_code() { - error_code_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_code_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t SharingLog_RpcCallStatus::_internal_error_code() const { - return error_code_; -} -inline int32_t SharingLog_RpcCallStatus::error_code() const { +inline ::int32_t SharingLog_RpcCallStatus::error_code() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.error_code) return _internal_error_code(); } -inline void SharingLog_RpcCallStatus::_internal_set_error_code(int32_t value) { - _has_bits_[0] |= 0x00000004u; - error_code_ = value; -} -inline void SharingLog_RpcCallStatus::set_error_code(int32_t value) { +inline void SharingLog_RpcCallStatus::set_error_code(::int32_t value) { _internal_set_error_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.error_code) } +inline ::int32_t SharingLog_RpcCallStatus::_internal_error_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.error_code_; +} +inline void SharingLog_RpcCallStatus::_internal_set_error_code(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_code_ = value; +} // optional int64 latency_millis = 4; -inline bool SharingLog_RpcCallStatus::_internal_has_latency_millis() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_RpcCallStatus::has_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_RpcCallStatus::has_latency_millis() const { - return _internal_has_latency_millis(); -} inline void SharingLog_RpcCallStatus::clear_latency_millis() { - latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int64_t SharingLog_RpcCallStatus::_internal_latency_millis() const { - return latency_millis_; -} -inline int64_t SharingLog_RpcCallStatus::latency_millis() const { +inline ::int64_t SharingLog_RpcCallStatus::latency_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.latency_millis) return _internal_latency_millis(); } -inline void SharingLog_RpcCallStatus::_internal_set_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00000008u; - latency_millis_ = value; -} -inline void SharingLog_RpcCallStatus::set_latency_millis(int64_t value) { +inline void SharingLog_RpcCallStatus::set_latency_millis(::int64_t value) { _internal_set_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.RpcCallStatus.latency_millis) } +inline ::int64_t SharingLog_RpcCallStatus::_internal_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_millis_; +} +inline void SharingLog_RpcCallStatus::_internal_set_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = value; +} // ------------------------------------------------------------------- @@ -27836,160 +31399,165 @@ inline void SharingLog_RpcCallStatus::set_latency_millis(int64_t value) { // SharingLog_QrCodeOpenedInWebClient // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.ClientPlatform client_platform = 1; -inline bool SharingLog_QrCodeOpenedInWebClient::_internal_has_client_platform() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_QrCodeOpenedInWebClient::has_client_platform() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_QrCodeOpenedInWebClient::has_client_platform() const { - return _internal_has_client_platform(); -} inline void SharingLog_QrCodeOpenedInWebClient::clear_client_platform() { - client_platform_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::_internal_client_platform() const { - return static_cast< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform >(client_platform_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_platform_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::client_platform() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.client_platform) return _internal_client_platform(); } -inline void SharingLog_QrCodeOpenedInWebClient::_internal_set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) { - assert(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - client_platform_ = value; -} inline void SharingLog_QrCodeOpenedInWebClient::set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) { _internal_set_client_platform(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.client_platform) } +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform SharingLog_QrCodeOpenedInWebClient::_internal_client_platform() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform>(_impl_.client_platform_); +} +inline void SharingLog_QrCodeOpenedInWebClient::_internal_set_client_platform(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform_internal_data_)); + _impl_.client_platform_ = value; +} // optional bool is_retry = 2; -inline bool SharingLog_QrCodeOpenedInWebClient::_internal_has_is_retry() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_QrCodeOpenedInWebClient::has_is_retry() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_QrCodeOpenedInWebClient::has_is_retry() const { - return _internal_has_is_retry(); -} inline void SharingLog_QrCodeOpenedInWebClient::clear_is_retry() { - is_retry_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool SharingLog_QrCodeOpenedInWebClient::_internal_is_retry() const { - return is_retry_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_retry_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool SharingLog_QrCodeOpenedInWebClient::is_retry() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.is_retry) return _internal_is_retry(); } -inline void SharingLog_QrCodeOpenedInWebClient::_internal_set_is_retry(bool value) { - _has_bits_[0] |= 0x00000002u; - is_retry_ = value; -} inline void SharingLog_QrCodeOpenedInWebClient::set_is_retry(bool value) { _internal_set_is_retry(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient.is_retry) } +inline bool SharingLog_QrCodeOpenedInWebClient::_internal_is_retry() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_retry_; +} +inline void SharingLog_QrCodeOpenedInWebClient::_internal_set_is_retry(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_retry_ = value; +} // ------------------------------------------------------------------- // SharingLog_HatsJointEvent // optional int64 flow_id = 1; -inline bool SharingLog_HatsJointEvent::_internal_has_flow_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_HatsJointEvent::has_flow_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_HatsJointEvent::has_flow_id() const { - return _internal_has_flow_id(); -} inline void SharingLog_HatsJointEvent::clear_flow_id() { - flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int64_t SharingLog_HatsJointEvent::_internal_flow_id() const { - return flow_id_; -} -inline int64_t SharingLog_HatsJointEvent::flow_id() const { +inline ::int64_t SharingLog_HatsJointEvent::flow_id() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.flow_id) return _internal_flow_id(); } -inline void SharingLog_HatsJointEvent::_internal_set_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000002u; - flow_id_ = value; -} -inline void SharingLog_HatsJointEvent::set_flow_id(int64_t value) { +inline void SharingLog_HatsJointEvent::set_flow_id(::int64_t value) { _internal_set_flow_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.flow_id) } +inline ::int64_t SharingLog_HatsJointEvent::_internal_flow_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_id_; +} +inline void SharingLog_HatsJointEvent::_internal_set_flow_id(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_id_ = value; +} // optional string hats_session_id = 2; -inline bool SharingLog_HatsJointEvent::_internal_has_hats_session_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_HatsJointEvent::has_hats_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_HatsJointEvent::has_hats_session_id() const { - return _internal_has_hats_session_id(); -} inline void SharingLog_HatsJointEvent::clear_hats_session_id() { - hats_session_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hats_session_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_HatsJointEvent::hats_session_id() const { +inline const ::std::string& SharingLog_HatsJointEvent::hats_session_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.hats_session_id) return _internal_hats_session_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_HatsJointEvent::set_hats_session_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - hats_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_HatsJointEvent::set_hats_session_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.hats_session_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.hats_session_id) } -inline std::string* SharingLog_HatsJointEvent::mutable_hats_session_id() { - std::string* _s = _internal_mutable_hats_session_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_HatsJointEvent::mutable_hats_session_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_hats_session_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.hats_session_id) return _s; } -inline const std::string& SharingLog_HatsJointEvent::_internal_hats_session_id() const { - return hats_session_id_.Get(); +inline const ::std::string& SharingLog_HatsJointEvent::_internal_hats_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.hats_session_id_.Get(); } -inline void SharingLog_HatsJointEvent::_internal_set_hats_session_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - hats_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_HatsJointEvent::_internal_set_hats_session_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hats_session_id_.Set(value, GetArena()); } -inline std::string* SharingLog_HatsJointEvent::_internal_mutable_hats_session_id() { - _has_bits_[0] |= 0x00000001u; - return hats_session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_HatsJointEvent::_internal_mutable_hats_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.hats_session_id_.Mutable( GetArena()); } -inline std::string* SharingLog_HatsJointEvent::release_hats_session_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_HatsJointEvent::release_hats_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.hats_session_id) - if (!_internal_has_hats_session_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = hats_session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (hats_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - hats_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.hats_session_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hats_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_HatsJointEvent::set_allocated_hats_session_id(std::string* hats_session_id) { - if (hats_session_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_HatsJointEvent::set_allocated_hats_session_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - hats_session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hats_session_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (hats_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - hats_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.hats_session_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hats_session_id_.IsDefault()) { + _impl_.hats_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.HatsJointEvent.hats_session_id) } @@ -27998,311 +31566,426 @@ inline void SharingLog_HatsJointEvent::set_allocated_hats_session_id(std::string // SharingLog_ReceivePreviews // optional int32 num_previews = 1; -inline bool SharingLog_ReceivePreviews::_internal_has_num_previews() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_ReceivePreviews::has_num_previews() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_ReceivePreviews::has_num_previews() const { - return _internal_has_num_previews(); -} inline void SharingLog_ReceivePreviews::clear_num_previews() { - num_previews_ = 0; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_previews_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline int32_t SharingLog_ReceivePreviews::_internal_num_previews() const { - return num_previews_; -} -inline int32_t SharingLog_ReceivePreviews::num_previews() const { +inline ::int32_t SharingLog_ReceivePreviews::num_previews() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews.num_previews) return _internal_num_previews(); } -inline void SharingLog_ReceivePreviews::_internal_set_num_previews(int32_t value) { - _has_bits_[0] |= 0x00000001u; - num_previews_ = value; -} -inline void SharingLog_ReceivePreviews::set_num_previews(int32_t value) { +inline void SharingLog_ReceivePreviews::set_num_previews(::int32_t value) { _internal_set_num_previews(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.ReceivePreviews.num_previews) } +inline ::int32_t SharingLog_ReceivePreviews::_internal_num_previews() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.num_previews_; +} +inline void SharingLog_ReceivePreviews::_internal_set_num_previews(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.num_previews_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudCreateSharingRequest // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; -inline bool SharingLog_CloudCreateSharingRequest::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_CloudCreateSharingRequest::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_CloudCreateSharingRequest::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_CloudCreateSharingRequest::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudCreateSharingRequest::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudCreateSharingRequest::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudCreateSharingRequest::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachments_info) return _internal_attachments_info(); } inline void SharingLog_CloudCreateSharingRequest::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudCreateSharingRequest::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudCreateSharingRequest::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudCreateSharingRequest::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudCreateSharingRequest::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudCreateSharingRequest::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudCreateSharingRequest::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudCreateSharingRequest::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachments_info) return _msg; } -inline void SharingLog_CloudCreateSharingRequest::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_CloudCreateSharingRequest::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachments_info) } // optional .location.nearby.proto.sharing.CloudCreateSharingResult result = 2; -inline bool SharingLog_CloudCreateSharingRequest::_internal_has_result() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CloudCreateSharingRequest::has_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool SharingLog_CloudCreateSharingRequest::has_result() const { - return _internal_has_result(); -} inline void SharingLog_CloudCreateSharingRequest::clear_result() { - result_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::CloudCreateSharingResult SharingLog_CloudCreateSharingRequest::_internal_result() const { - return static_cast< ::location::nearby::proto::sharing::CloudCreateSharingResult >(result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::location::nearby::proto::sharing::CloudCreateSharingResult SharingLog_CloudCreateSharingRequest::result() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.result) return _internal_result(); } -inline void SharingLog_CloudCreateSharingRequest::_internal_set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value) { - assert(::location::nearby::proto::sharing::CloudCreateSharingResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - result_ = value; -} inline void SharingLog_CloudCreateSharingRequest::set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value) { _internal_set_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.result) } +inline ::location::nearby::proto::sharing::CloudCreateSharingResult SharingLog_CloudCreateSharingRequest::_internal_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudCreateSharingResult>(_impl_.result_); +} +inline void SharingLog_CloudCreateSharingRequest::_internal_set_result(::location::nearby::proto::sharing::CloudCreateSharingResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudCreateSharingResult_internal_data_)); + _impl_.result_ = value; +} + +// optional int64 attachment_download_latency_millis = 3; +inline bool SharingLog_CloudCreateSharingRequest::has_attachment_download_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void SharingLog_CloudCreateSharingRequest::clear_attachment_download_latency_millis() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.attachment_download_latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::attachment_download_latency_millis() const { + // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachment_download_latency_millis) + return _internal_attachment_download_latency_millis(); +} +inline void SharingLog_CloudCreateSharingRequest::set_attachment_download_latency_millis(::int64_t value) { + _internal_set_attachment_download_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.attachment_download_latency_millis) +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::_internal_attachment_download_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.attachment_download_latency_millis_; +} +inline void SharingLog_CloudCreateSharingRequest::_internal_set_attachment_download_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.attachment_download_latency_millis_ = value; +} + +// optional int64 preview_thumbnail_latency_millis = 4; +inline bool SharingLog_CloudCreateSharingRequest::has_preview_thumbnail_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void SharingLog_CloudCreateSharingRequest::clear_preview_thumbnail_latency_millis() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.preview_thumbnail_latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::preview_thumbnail_latency_millis() const { + // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.preview_thumbnail_latency_millis) + return _internal_preview_thumbnail_latency_millis(); +} +inline void SharingLog_CloudCreateSharingRequest::set_preview_thumbnail_latency_millis(::int64_t value) { + _internal_set_preview_thumbnail_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.preview_thumbnail_latency_millis) +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::_internal_preview_thumbnail_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.preview_thumbnail_latency_millis_; +} +inline void SharingLog_CloudCreateSharingRequest::_internal_set_preview_thumbnail_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.preview_thumbnail_latency_millis_ = value; +} + +// optional int64 rpc_latency_millis = 5; +inline bool SharingLog_CloudCreateSharingRequest::has_rpc_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void SharingLog_CloudCreateSharingRequest::clear_rpc_latency_millis() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::rpc_latency_millis() const { + // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.rpc_latency_millis) + return _internal_rpc_latency_millis(); +} +inline void SharingLog_CloudCreateSharingRequest::set_rpc_latency_millis(::int64_t value) { + _internal_set_rpc_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest.rpc_latency_millis) +} +inline ::int64_t SharingLog_CloudCreateSharingRequest::_internal_rpc_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rpc_latency_millis_; +} +inline void SharingLog_CloudCreateSharingRequest::_internal_set_rpc_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_latency_millis_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudRegisterReceiver // optional .location.nearby.proto.sharing.CloudRegisterReceiverResult result = 1; -inline bool SharingLog_CloudRegisterReceiver::_internal_has_result() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CloudRegisterReceiver::has_result() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_CloudRegisterReceiver::has_result() const { - return _internal_has_result(); -} inline void SharingLog_CloudRegisterReceiver::clear_result() { - result_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::CloudRegisterReceiverResult SharingLog_CloudRegisterReceiver::_internal_result() const { - return static_cast< ::location::nearby::proto::sharing::CloudRegisterReceiverResult >(result_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.result_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::location::nearby::proto::sharing::CloudRegisterReceiverResult SharingLog_CloudRegisterReceiver::result() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver.result) return _internal_result(); } -inline void SharingLog_CloudRegisterReceiver::_internal_set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value) { - assert(::location::nearby::proto::sharing::CloudRegisterReceiverResult_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - result_ = value; -} inline void SharingLog_CloudRegisterReceiver::set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value) { _internal_set_result(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver.result) } +inline ::location::nearby::proto::sharing::CloudRegisterReceiverResult SharingLog_CloudRegisterReceiver::_internal_result() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudRegisterReceiverResult>(_impl_.result_); +} +inline void SharingLog_CloudRegisterReceiver::_internal_set_result(::location::nearby::proto::sharing::CloudRegisterReceiverResult value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudRegisterReceiverResult_internal_data_)); + _impl_.result_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudUploadStart // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; -inline bool SharingLog_CloudUploadStart::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_CloudUploadStart::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_CloudUploadStart::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_CloudUploadStart::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudUploadStart::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudUploadStart::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudUploadStart::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.attachments_info) return _internal_attachments_info(); } inline void SharingLog_CloudUploadStart::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudUploadStart::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudUploadStart::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudUploadStart::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudUploadStart::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudUploadStart::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudUploadStart::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudUploadStart::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudUploadStart::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.attachments_info) return _msg; } -inline void SharingLog_CloudUploadStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_CloudUploadStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.attachments_info) } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; -inline bool SharingLog_CloudUploadStart::_internal_has_action_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CloudUploadStart::has_action_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudUploadStart::has_action_type() const { - return _internal_has_action_type(); -} inline void SharingLog_CloudUploadStart::clear_action_type() { - action_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadStart::_internal_action_type() const { - return static_cast< ::location::nearby::proto::sharing::CloudActionType >(action_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadStart::action_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.action_type) return _internal_action_type(); } -inline void SharingLog_CloudUploadStart::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { - assert(::location::nearby::proto::sharing::CloudActionType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - action_type_ = value; -} inline void SharingLog_CloudUploadStart::set_action_type(::location::nearby::proto::sharing::CloudActionType value) { _internal_set_action_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudUploadStart.action_type) } +inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadStart::_internal_action_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudActionType>(_impl_.action_type_); +} +inline void SharingLog_CloudUploadStart::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudActionType_internal_data_)); + _impl_.action_type_ = value; +} // ------------------------------------------------------------------- @@ -28310,195 +31993,226 @@ inline void SharingLog_CloudUploadStart::set_action_type(::location::nearby::pro // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo upload_infos = 1; inline int SharingLog_CloudUploadEnd::_internal_upload_infos_size() const { - return upload_infos_.size(); + return _internal_upload_infos().size(); } inline int SharingLog_CloudUploadEnd::upload_infos_size() const { return _internal_upload_infos_size(); } inline void SharingLog_CloudUploadEnd::clear_upload_infos() { - upload_infos_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.upload_infos_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudUploadEnd::mutable_upload_infos(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::mutable_upload_infos(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.upload_infos) - return upload_infos_.Mutable(index); + return _internal_mutable_upload_infos()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >* -SharingLog_CloudUploadEnd::mutable_upload_infos() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::mutable_upload_infos() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.upload_infos) - return &upload_infos_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_upload_infos(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudUploadEnd::_internal_upload_infos(int index) const { - return upload_infos_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudUploadEnd::upload_infos(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudUploadEnd::upload_infos(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.upload_infos) - return _internal_upload_infos(index); + return _internal_upload_infos().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudUploadEnd::_internal_add_upload_infos() { - return upload_infos_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudUploadEnd::add_upload_infos() { - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _add = _internal_add_upload_infos(); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL SharingLog_CloudUploadEnd::add_upload_infos() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _add = + _internal_mutable_upload_infos()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.upload_infos) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >& -SharingLog_CloudUploadEnd::upload_infos() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& SharingLog_CloudUploadEnd::upload_infos() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.upload_infos) - return upload_infos_; + return _internal_upload_infos(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& +SharingLog_CloudUploadEnd::_internal_upload_infos() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.upload_infos_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL +SharingLog_CloudUploadEnd::_internal_mutable_upload_infos() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.upload_infos_; } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; -inline bool SharingLog_CloudUploadEnd::_internal_has_action_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CloudUploadEnd::has_action_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudUploadEnd::has_action_type() const { - return _internal_has_action_type(); -} inline void SharingLog_CloudUploadEnd::clear_action_type() { - action_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadEnd::_internal_action_type() const { - return static_cast< ::location::nearby::proto::sharing::CloudActionType >(action_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadEnd::action_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.action_type) return _internal_action_type(); } -inline void SharingLog_CloudUploadEnd::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { - assert(::location::nearby::proto::sharing::CloudActionType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - action_type_ = value; -} inline void SharingLog_CloudUploadEnd::set_action_type(::location::nearby::proto::sharing::CloudActionType value) { _internal_set_action_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd.action_type) } +inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudUploadEnd::_internal_action_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudActionType>(_impl_.action_type_); +} +inline void SharingLog_CloudUploadEnd::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudActionType_internal_data_)); + _impl_.action_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudDownloadStart // optional .nearby.sharing.analytics.proto.SharingLog.AttachmentsInfo attachments_info = 1; -inline bool SharingLog_CloudDownloadStart::_internal_has_attachments_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || attachments_info_ != nullptr); +inline bool SharingLog_CloudDownloadStart::has_attachments_info() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.attachments_info_ != nullptr); return value; } -inline bool SharingLog_CloudDownloadStart::has_attachments_info() const { - return _internal_has_attachments_info(); -} inline void SharingLog_CloudDownloadStart::clear_attachments_info() { - if (attachments_info_ != nullptr) attachments_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ != nullptr) _impl_.attachments_info_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudDownloadStart::_internal_attachments_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = attachments_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* p = _impl_.attachments_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AttachmentsInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudDownloadStart::attachments_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo& SharingLog_CloudDownloadStart::attachments_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.attachments_info) return _internal_attachments_info(); } inline void SharingLog_CloudDownloadStart::unsafe_arena_set_allocated_attachments_info( - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attachments_info_); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - attachments_info_ = attachments_info; - if (attachments_info) { - _has_bits_[0] |= 0x00000001u; + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.attachments_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudDownloadStart::release_attachments_info() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudDownloadStart::release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* released = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudDownloadStart::unsafe_arena_release_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE SharingLog_CloudDownloadStart::unsafe_arena_release_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.attachments_info) - _has_bits_[0] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = attachments_info_; - attachments_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* temp = _impl_.attachments_info_; + _impl_.attachments_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudDownloadStart::_internal_mutable_attachments_info() { - _has_bits_[0] |= 0x00000001u; - if (attachments_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArenaForAllocation()); - attachments_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::_internal_mutable_attachments_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.attachments_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>(GetArena()); + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(p); } - return attachments_info_; + return _impl_.attachments_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* SharingLog_CloudDownloadStart::mutable_attachments_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NONNULL SharingLog_CloudDownloadStart::mutable_attachments_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* _msg = _internal_mutable_attachments_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.attachments_info) return _msg; } -inline void SharingLog_CloudDownloadStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog_CloudDownloadStart::set_allocated_attachments_info(::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete attachments_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attachments_info_); } - if (attachments_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo>::GetOwningArena(attachments_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - attachments_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attachments_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - attachments_info_ = attachments_info; + + _impl_.attachments_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AttachmentsInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.attachments_info) } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; -inline bool SharingLog_CloudDownloadStart::_internal_has_action_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CloudDownloadStart::has_action_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudDownloadStart::has_action_type() const { - return _internal_has_action_type(); -} inline void SharingLog_CloudDownloadStart::clear_action_type() { - action_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadStart::_internal_action_type() const { - return static_cast< ::location::nearby::proto::sharing::CloudActionType >(action_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadStart::action_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.action_type) return _internal_action_type(); } -inline void SharingLog_CloudDownloadStart::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { - assert(::location::nearby::proto::sharing::CloudActionType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - action_type_ = value; -} inline void SharingLog_CloudDownloadStart::set_action_type(::location::nearby::proto::sharing::CloudActionType value) { _internal_set_action_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart.action_type) } +inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadStart::_internal_action_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudActionType>(_impl_.action_type_); +} +inline void SharingLog_CloudDownloadStart::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudActionType_internal_data_)); + _impl_.action_type_ = value; +} // ------------------------------------------------------------------- @@ -28506,268 +32220,289 @@ inline void SharingLog_CloudDownloadStart::set_action_type(::location::nearby::p // repeated .nearby.sharing.analytics.proto.SharingLog.CloudAttachmentInfo download_infos = 1; inline int SharingLog_CloudDownloadEnd::_internal_download_infos_size() const { - return download_infos_.size(); + return _internal_download_infos().size(); } inline int SharingLog_CloudDownloadEnd::download_infos_size() const { return _internal_download_infos_size(); } inline void SharingLog_CloudDownloadEnd::clear_download_infos() { - download_infos_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.download_infos_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudDownloadEnd::mutable_download_infos(int index) { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::mutable_download_infos(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.download_infos) - return download_infos_.Mutable(index); + return _internal_mutable_download_infos()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >* -SharingLog_CloudDownloadEnd::mutable_download_infos() { +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::mutable_download_infos() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.download_infos) - return &download_infos_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_download_infos(); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudDownloadEnd::_internal_download_infos(int index) const { - return download_infos_.Get(index); -} -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudDownloadEnd::download_infos(int index) const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo& SharingLog_CloudDownloadEnd::download_infos(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.download_infos) - return _internal_download_infos(index); + return _internal_download_infos().Get(index); } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudDownloadEnd::_internal_add_download_infos() { - return download_infos_.Add(); -} -inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* SharingLog_CloudDownloadEnd::add_download_infos() { - ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _add = _internal_add_download_infos(); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* PROTOBUF_NONNULL SharingLog_CloudDownloadEnd::add_download_infos() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo* _add = + _internal_mutable_download_infos()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.download_infos) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo >& -SharingLog_CloudDownloadEnd::download_infos() const { +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& SharingLog_CloudDownloadEnd::download_infos() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.download_infos) - return download_infos_; + return _internal_download_infos(); +} +inline const ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>& +SharingLog_CloudDownloadEnd::_internal_download_infos() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.download_infos_; +} +inline ::google::protobuf::RepeatedPtrField<::nearby::sharing::analytics::proto::SharingLog_CloudAttachmentInfo>* PROTOBUF_NONNULL +SharingLog_CloudDownloadEnd::_internal_mutable_download_infos() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.download_infos_; } // optional .location.nearby.proto.sharing.CloudActionType action_type = 2; -inline bool SharingLog_CloudDownloadEnd::_internal_has_action_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CloudDownloadEnd::has_action_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudDownloadEnd::has_action_type() const { - return _internal_has_action_type(); -} inline void SharingLog_CloudDownloadEnd::clear_action_type() { - action_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadEnd::_internal_action_type() const { - return static_cast< ::location::nearby::proto::sharing::CloudActionType >(action_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.action_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadEnd::action_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.action_type) return _internal_action_type(); } -inline void SharingLog_CloudDownloadEnd::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { - assert(::location::nearby::proto::sharing::CloudActionType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - action_type_ = value; -} inline void SharingLog_CloudDownloadEnd::set_action_type(::location::nearby::proto::sharing::CloudActionType value) { _internal_set_action_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd.action_type) } +inline ::location::nearby::proto::sharing::CloudActionType SharingLog_CloudDownloadEnd::_internal_action_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::CloudActionType>(_impl_.action_type_); +} +inline void SharingLog_CloudDownloadEnd::_internal_set_action_type(::location::nearby::proto::sharing::CloudActionType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::CloudActionType_internal_data_)); + _impl_.action_type_ = value; +} // ------------------------------------------------------------------- // SharingLog_CloudSharingRpcResult // optional string rpc_name = 1; -inline bool SharingLog_CloudSharingRpcResult::_internal_has_rpc_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog_CloudSharingRpcResult::has_rpc_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SharingLog_CloudSharingRpcResult::has_rpc_name() const { - return _internal_has_rpc_name(); -} inline void SharingLog_CloudSharingRpcResult::clear_rpc_name() { - rpc_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SharingLog_CloudSharingRpcResult::rpc_name() const { +inline const ::std::string& SharingLog_CloudSharingRpcResult::rpc_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.rpc_name) return _internal_rpc_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_CloudSharingRpcResult::set_rpc_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_CloudSharingRpcResult::set_rpc_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.rpc_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.rpc_name) } -inline std::string* SharingLog_CloudSharingRpcResult::mutable_rpc_name() { - std::string* _s = _internal_mutable_rpc_name(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::mutable_rpc_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_rpc_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.rpc_name) return _s; } -inline const std::string& SharingLog_CloudSharingRpcResult::_internal_rpc_name() const { - return rpc_name_.Get(); +inline const ::std::string& SharingLog_CloudSharingRpcResult::_internal_rpc_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rpc_name_.Get(); } -inline void SharingLog_CloudSharingRpcResult::_internal_set_rpc_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - rpc_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_CloudSharingRpcResult::_internal_set_rpc_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rpc_name_.Set(value, GetArena()); } -inline std::string* SharingLog_CloudSharingRpcResult::_internal_mutable_rpc_name() { - _has_bits_[0] |= 0x00000001u; - return rpc_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_internal_mutable_rpc_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.rpc_name_.Mutable( GetArena()); } -inline std::string* SharingLog_CloudSharingRpcResult::release_rpc_name() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_CloudSharingRpcResult::release_rpc_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.rpc_name) - if (!_internal_has_rpc_name()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = rpc_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rpc_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.rpc_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rpc_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_CloudSharingRpcResult::set_allocated_rpc_name(std::string* rpc_name) { - if (rpc_name != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog_CloudSharingRpcResult::set_allocated_rpc_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - rpc_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rpc_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (rpc_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - rpc_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.rpc_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rpc_name_.IsDefault()) { + _impl_.rpc_name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.rpc_name) } // optional int32 status_code = 2; -inline bool SharingLog_CloudSharingRpcResult::_internal_has_status_code() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SharingLog_CloudSharingRpcResult::has_status_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SharingLog_CloudSharingRpcResult::has_status_code() const { - return _internal_has_status_code(); -} inline void SharingLog_CloudSharingRpcResult::clear_status_code() { - status_code_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_code_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t SharingLog_CloudSharingRpcResult::_internal_status_code() const { - return status_code_; -} -inline int32_t SharingLog_CloudSharingRpcResult::status_code() const { +inline ::int32_t SharingLog_CloudSharingRpcResult::status_code() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.status_code) return _internal_status_code(); } -inline void SharingLog_CloudSharingRpcResult::_internal_set_status_code(int32_t value) { - _has_bits_[0] |= 0x00000008u; - status_code_ = value; -} -inline void SharingLog_CloudSharingRpcResult::set_status_code(int32_t value) { +inline void SharingLog_CloudSharingRpcResult::set_status_code(::int32_t value) { _internal_set_status_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.status_code) } +inline ::int32_t SharingLog_CloudSharingRpcResult::_internal_status_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.status_code_; +} +inline void SharingLog_CloudSharingRpcResult::_internal_set_status_code(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.status_code_ = value; +} // optional int64 latency_millis = 3; -inline bool SharingLog_CloudSharingRpcResult::_internal_has_latency_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog_CloudSharingRpcResult::has_latency_millis() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool SharingLog_CloudSharingRpcResult::has_latency_millis() const { - return _internal_has_latency_millis(); -} inline void SharingLog_CloudSharingRpcResult::clear_latency_millis() { - latency_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int64_t SharingLog_CloudSharingRpcResult::_internal_latency_millis() const { - return latency_millis_; -} -inline int64_t SharingLog_CloudSharingRpcResult::latency_millis() const { +inline ::int64_t SharingLog_CloudSharingRpcResult::latency_millis() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.latency_millis) return _internal_latency_millis(); } -inline void SharingLog_CloudSharingRpcResult::_internal_set_latency_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; - latency_millis_ = value; -} -inline void SharingLog_CloudSharingRpcResult::set_latency_millis(int64_t value) { +inline void SharingLog_CloudSharingRpcResult::set_latency_millis(::int64_t value) { _internal_set_latency_millis(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.latency_millis) } +inline ::int64_t SharingLog_CloudSharingRpcResult::_internal_latency_millis() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.latency_millis_; +} +inline void SharingLog_CloudSharingRpcResult::_internal_set_latency_millis(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.latency_millis_ = value; +} // optional string cloud_sharing_id = 4; -inline bool SharingLog_CloudSharingRpcResult::_internal_has_cloud_sharing_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog_CloudSharingRpcResult::has_cloud_sharing_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SharingLog_CloudSharingRpcResult::has_cloud_sharing_id() const { - return _internal_has_cloud_sharing_id(); -} inline void SharingLog_CloudSharingRpcResult::clear_cloud_sharing_id() { - cloud_sharing_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_sharing_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SharingLog_CloudSharingRpcResult::cloud_sharing_id() const { +inline const ::std::string& SharingLog_CloudSharingRpcResult::cloud_sharing_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.cloud_sharing_id) return _internal_cloud_sharing_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog_CloudSharingRpcResult::set_cloud_sharing_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog_CloudSharingRpcResult::set_cloud_sharing_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.cloud_sharing_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.cloud_sharing_id) } -inline std::string* SharingLog_CloudSharingRpcResult::mutable_cloud_sharing_id() { - std::string* _s = _internal_mutable_cloud_sharing_id(); +inline ::std::string* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::mutable_cloud_sharing_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_cloud_sharing_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.cloud_sharing_id) return _s; } -inline const std::string& SharingLog_CloudSharingRpcResult::_internal_cloud_sharing_id() const { - return cloud_sharing_id_.Get(); +inline const ::std::string& SharingLog_CloudSharingRpcResult::_internal_cloud_sharing_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cloud_sharing_id_.Get(); } -inline void SharingLog_CloudSharingRpcResult::_internal_set_cloud_sharing_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - cloud_sharing_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog_CloudSharingRpcResult::_internal_set_cloud_sharing_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cloud_sharing_id_.Set(value, GetArena()); } -inline std::string* SharingLog_CloudSharingRpcResult::_internal_mutable_cloud_sharing_id() { - _has_bits_[0] |= 0x00000002u; - return cloud_sharing_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog_CloudSharingRpcResult::_internal_mutable_cloud_sharing_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.cloud_sharing_id_.Mutable( GetArena()); } -inline std::string* SharingLog_CloudSharingRpcResult::release_cloud_sharing_id() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog_CloudSharingRpcResult::release_cloud_sharing_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.cloud_sharing_id) - if (!_internal_has_cloud_sharing_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = cloud_sharing_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_sharing_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.cloud_sharing_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cloud_sharing_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog_CloudSharingRpcResult::set_allocated_cloud_sharing_id(std::string* cloud_sharing_id) { - if (cloud_sharing_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog_CloudSharingRpcResult::set_allocated_cloud_sharing_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - cloud_sharing_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cloud_sharing_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (cloud_sharing_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - cloud_sharing_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.cloud_sharing_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cloud_sharing_id_.IsDefault()) { + _impl_.cloud_sharing_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult.cloud_sharing_id) } @@ -28776,7882 +32511,8454 @@ inline void SharingLog_CloudSharingRpcResult::set_allocated_cloud_sharing_id(std // SharingLog // optional .location.nearby.proto.sharing.EventType event_type = 1; -inline bool SharingLog::_internal_has_event_type() const { - bool value = (_has_bits_[2] & 0x00200000u) != 0; +inline bool SharingLog::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x20000000U); return value; } -inline bool SharingLog::has_event_type() const { - return _internal_has_event_type(); -} inline void SharingLog::clear_event_type() { - event_type_ = 0; - _has_bits_[2] &= ~0x00200000u; -} -inline ::location::nearby::proto::sharing::EventType SharingLog::_internal_event_type() const { - return static_cast< ::location::nearby::proto::sharing::EventType >(event_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x20000000U); } inline ::location::nearby::proto::sharing::EventType SharingLog::event_type() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.event_type) return _internal_event_type(); } -inline void SharingLog::_internal_set_event_type(::location::nearby::proto::sharing::EventType value) { - assert(::location::nearby::proto::sharing::EventType_IsValid(value)); - _has_bits_[2] |= 0x00200000u; - event_type_ = value; -} inline void SharingLog::set_event_type(::location::nearby::proto::sharing::EventType value) { _internal_set_event_type(value); + SetHasBit(_impl_._has_bits_[0], 0x20000000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.event_type) } +inline ::location::nearby::proto::sharing::EventType SharingLog::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::EventType>(_impl_.event_type_); +} +inline void SharingLog::_internal_set_event_type(::location::nearby::proto::sharing::EventType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::EventType_internal_data_)); + _impl_.event_type_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.UnknownEvent unknown_event = 2; -inline bool SharingLog::_internal_has_unknown_event() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || unknown_event_ != nullptr); +inline bool SharingLog::has_unknown_event() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.unknown_event_ != nullptr); return value; } -inline bool SharingLog::has_unknown_event() const { - return _internal_has_unknown_event(); -} inline void SharingLog::clear_unknown_event() { - if (unknown_event_ != nullptr) unknown_event_->Clear(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.unknown_event_ != nullptr) _impl_.unknown_event_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& SharingLog::_internal_unknown_event() const { - const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* p = unknown_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_UnknownEvent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* p = _impl_.unknown_event_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_UnknownEvent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& SharingLog::unknown_event() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent& SharingLog::unknown_event() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.unknown_event) return _internal_unknown_event(); } inline void SharingLog::unsafe_arena_set_allocated_unknown_event( - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unknown_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(unknown_event_); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.unknown_event_); } - unknown_event_ = unknown_event; - if (unknown_event) { - _has_bits_[0] |= 0x00000008u; + _impl_.unknown_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.unknown_event) } -inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* SharingLog::release_unknown_event() { - _has_bits_[0] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* temp = unknown_event_; - unknown_event_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE SharingLog::release_unknown_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* released = _impl_.unknown_event_; + _impl_.unknown_event_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* SharingLog::unsafe_arena_release_unknown_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_unknown_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.unknown_event) - _has_bits_[0] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* temp = unknown_event_; - unknown_event_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* temp = _impl_.unknown_event_; + _impl_.unknown_event_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* SharingLog::_internal_mutable_unknown_event() { - _has_bits_[0] |= 0x00000008u; - if (unknown_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>(GetArenaForAllocation()); - unknown_event_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NONNULL SharingLog::_internal_mutable_unknown_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.unknown_event_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>(GetArena()); + _impl_.unknown_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent*>(p); } - return unknown_event_; + return _impl_.unknown_event_; } -inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* SharingLog::mutable_unknown_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NONNULL SharingLog::mutable_unknown_event() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* _msg = _internal_mutable_unknown_event(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.unknown_event) return _msg; } -inline void SharingLog::set_allocated_unknown_event(::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* unknown_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_unknown_event(::nearby::sharing::analytics::proto::SharingLog_UnknownEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete unknown_event_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.unknown_event_); } - if (unknown_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent>::GetOwningArena(unknown_event); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - unknown_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, unknown_event, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - unknown_event_ = unknown_event; + + _impl_.unknown_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_UnknownEvent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.unknown_event) } // optional .nearby.sharing.analytics.proto.SharingLog.AcceptAgreements accept_agreements = 3; -inline bool SharingLog::_internal_has_accept_agreements() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || accept_agreements_ != nullptr); +inline bool SharingLog::has_accept_agreements() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.accept_agreements_ != nullptr); return value; } -inline bool SharingLog::has_accept_agreements() const { - return _internal_has_accept_agreements(); -} inline void SharingLog::clear_accept_agreements() { - if (accept_agreements_ != nullptr) accept_agreements_->Clear(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.accept_agreements_ != nullptr) _impl_.accept_agreements_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& SharingLog::_internal_accept_agreements() const { - const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* p = accept_agreements_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AcceptAgreements_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* p = _impl_.accept_agreements_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AcceptAgreements_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& SharingLog::accept_agreements() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements& SharingLog::accept_agreements() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.accept_agreements) return _internal_accept_agreements(); } inline void SharingLog::unsafe_arena_set_allocated_accept_agreements( - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* accept_agreements) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(accept_agreements_); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accept_agreements_); } - accept_agreements_ = accept_agreements; - if (accept_agreements) { - _has_bits_[0] |= 0x00000010u; + _impl_.accept_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.accept_agreements) } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* SharingLog::release_accept_agreements() { - _has_bits_[0] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* temp = accept_agreements_; - accept_agreements_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE SharingLog::release_accept_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* released = _impl_.accept_agreements_; + _impl_.accept_agreements_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* SharingLog::unsafe_arena_release_accept_agreements() { +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_accept_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.accept_agreements) - _has_bits_[0] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* temp = accept_agreements_; - accept_agreements_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* temp = _impl_.accept_agreements_; + _impl_.accept_agreements_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* SharingLog::_internal_mutable_accept_agreements() { - _has_bits_[0] |= 0x00000010u; - if (accept_agreements_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>(GetArenaForAllocation()); - accept_agreements_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NONNULL SharingLog::_internal_mutable_accept_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.accept_agreements_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>(GetArena()); + _impl_.accept_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements*>(p); } - return accept_agreements_; + return _impl_.accept_agreements_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* SharingLog::mutable_accept_agreements() { +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NONNULL SharingLog::mutable_accept_agreements() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* _msg = _internal_mutable_accept_agreements(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.accept_agreements) return _msg; } -inline void SharingLog::set_allocated_accept_agreements(::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* accept_agreements) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_accept_agreements(::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete accept_agreements_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accept_agreements_); } - if (accept_agreements) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements>::GetOwningArena(accept_agreements); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - accept_agreements = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, accept_agreements, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - accept_agreements_ = accept_agreements; + + _impl_.accept_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptAgreements*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.accept_agreements) } // optional .nearby.sharing.analytics.proto.SharingLog.EnableNearbySharing enable_nearby_sharing = 4; -inline bool SharingLog::_internal_has_enable_nearby_sharing() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || enable_nearby_sharing_ != nullptr); +inline bool SharingLog::has_enable_nearby_sharing() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.enable_nearby_sharing_ != nullptr); return value; } -inline bool SharingLog::has_enable_nearby_sharing() const { - return _internal_has_enable_nearby_sharing(); -} inline void SharingLog::clear_enable_nearby_sharing() { - if (enable_nearby_sharing_ != nullptr) enable_nearby_sharing_->Clear(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.enable_nearby_sharing_ != nullptr) _impl_.enable_nearby_sharing_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& SharingLog::_internal_enable_nearby_sharing() const { - const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* p = enable_nearby_sharing_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_EnableNearbySharing_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* p = _impl_.enable_nearby_sharing_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_EnableNearbySharing_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& SharingLog::enable_nearby_sharing() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing& SharingLog::enable_nearby_sharing() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.enable_nearby_sharing) return _internal_enable_nearby_sharing(); } inline void SharingLog::unsafe_arena_set_allocated_enable_nearby_sharing( - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* enable_nearby_sharing) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(enable_nearby_sharing_); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.enable_nearby_sharing_); } - enable_nearby_sharing_ = enable_nearby_sharing; - if (enable_nearby_sharing) { - _has_bits_[0] |= 0x00000020u; + _impl_.enable_nearby_sharing_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.enable_nearby_sharing) } -inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* SharingLog::release_enable_nearby_sharing() { - _has_bits_[0] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* temp = enable_nearby_sharing_; - enable_nearby_sharing_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE SharingLog::release_enable_nearby_sharing() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* released = _impl_.enable_nearby_sharing_; + _impl_.enable_nearby_sharing_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* SharingLog::unsafe_arena_release_enable_nearby_sharing() { +inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_enable_nearby_sharing() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.enable_nearby_sharing) - _has_bits_[0] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* temp = enable_nearby_sharing_; - enable_nearby_sharing_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* temp = _impl_.enable_nearby_sharing_; + _impl_.enable_nearby_sharing_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* SharingLog::_internal_mutable_enable_nearby_sharing() { - _has_bits_[0] |= 0x00000020u; - if (enable_nearby_sharing_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>(GetArenaForAllocation()); - enable_nearby_sharing_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NONNULL SharingLog::_internal_mutable_enable_nearby_sharing() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.enable_nearby_sharing_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>(GetArena()); + _impl_.enable_nearby_sharing_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing*>(p); } - return enable_nearby_sharing_; + return _impl_.enable_nearby_sharing_; } -inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* SharingLog::mutable_enable_nearby_sharing() { +inline ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NONNULL SharingLog::mutable_enable_nearby_sharing() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* _msg = _internal_mutable_enable_nearby_sharing(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.enable_nearby_sharing) return _msg; } -inline void SharingLog::set_allocated_enable_nearby_sharing(::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* enable_nearby_sharing) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_enable_nearby_sharing(::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete enable_nearby_sharing_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.enable_nearby_sharing_); } - if (enable_nearby_sharing) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing>::GetOwningArena(enable_nearby_sharing); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - enable_nearby_sharing = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, enable_nearby_sharing, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - enable_nearby_sharing_ = enable_nearby_sharing; + + _impl_.enable_nearby_sharing_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EnableNearbySharing*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.enable_nearby_sharing) } // optional .nearby.sharing.analytics.proto.SharingLog.SetVisibility set_visibility = 5; -inline bool SharingLog::_internal_has_set_visibility() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || set_visibility_ != nullptr); +inline bool SharingLog::has_set_visibility() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.set_visibility_ != nullptr); return value; } -inline bool SharingLog::has_set_visibility() const { - return _internal_has_set_visibility(); -} inline void SharingLog::clear_set_visibility() { - if (set_visibility_ != nullptr) set_visibility_->Clear(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_visibility_ != nullptr) _impl_.set_visibility_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& SharingLog::_internal_set_visibility() const { - const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* p = set_visibility_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SetVisibility_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* p = _impl_.set_visibility_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SetVisibility_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& SharingLog::set_visibility() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SetVisibility& SharingLog::set_visibility() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.set_visibility) return _internal_set_visibility(); } inline void SharingLog::unsafe_arena_set_allocated_set_visibility( - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* set_visibility) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_visibility_); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_visibility_); } - set_visibility_ = set_visibility; - if (set_visibility) { - _has_bits_[0] |= 0x00000040u; + _impl_.set_visibility_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetVisibility*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_visibility) } -inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* SharingLog::release_set_visibility() { - _has_bits_[0] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* temp = set_visibility_; - set_visibility_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE SharingLog::release_set_visibility() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* released = _impl_.set_visibility_; + _impl_.set_visibility_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* SharingLog::unsafe_arena_release_set_visibility() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_set_visibility() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.set_visibility) - _has_bits_[0] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* temp = set_visibility_; - set_visibility_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* temp = _impl_.set_visibility_; + _impl_.set_visibility_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* SharingLog::_internal_mutable_set_visibility() { - _has_bits_[0] |= 0x00000040u; - if (set_visibility_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>(GetArenaForAllocation()); - set_visibility_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NONNULL SharingLog::_internal_mutable_set_visibility() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_visibility_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>(GetArena()); + _impl_.set_visibility_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetVisibility*>(p); } - return set_visibility_; + return _impl_.set_visibility_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* SharingLog::mutable_set_visibility() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NONNULL SharingLog::mutable_set_visibility() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::nearby::sharing::analytics::proto::SharingLog_SetVisibility* _msg = _internal_mutable_set_visibility(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.set_visibility) return _msg; } -inline void SharingLog::set_allocated_set_visibility(::nearby::sharing::analytics::proto::SharingLog_SetVisibility* set_visibility) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_set_visibility(::nearby::sharing::analytics::proto::SharingLog_SetVisibility* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete set_visibility_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_visibility_); } - if (set_visibility) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SetVisibility>::GetOwningArena(set_visibility); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - set_visibility = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_visibility, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - set_visibility_ = set_visibility; + + _impl_.set_visibility_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetVisibility*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_visibility) } // optional .nearby.sharing.analytics.proto.SharingLog.DescribeAttachments describe_attachments = 6; -inline bool SharingLog::_internal_has_describe_attachments() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || describe_attachments_ != nullptr); +inline bool SharingLog::has_describe_attachments() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.describe_attachments_ != nullptr); return value; } -inline bool SharingLog::has_describe_attachments() const { - return _internal_has_describe_attachments(); -} inline void SharingLog::clear_describe_attachments() { - if (describe_attachments_ != nullptr) describe_attachments_->Clear(); - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.describe_attachments_ != nullptr) _impl_.describe_attachments_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& SharingLog::_internal_describe_attachments() const { - const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* p = describe_attachments_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DescribeAttachments_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* p = _impl_.describe_attachments_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DescribeAttachments_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& SharingLog::describe_attachments() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments& SharingLog::describe_attachments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.describe_attachments) return _internal_describe_attachments(); } inline void SharingLog::unsafe_arena_set_allocated_describe_attachments( - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* describe_attachments) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(describe_attachments_); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.describe_attachments_); } - describe_attachments_ = describe_attachments; - if (describe_attachments) { - _has_bits_[0] |= 0x00000080u; + _impl_.describe_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.describe_attachments) } -inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* SharingLog::release_describe_attachments() { - _has_bits_[0] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* temp = describe_attachments_; - describe_attachments_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE SharingLog::release_describe_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* released = _impl_.describe_attachments_; + _impl_.describe_attachments_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* SharingLog::unsafe_arena_release_describe_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_describe_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.describe_attachments) - _has_bits_[0] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* temp = describe_attachments_; - describe_attachments_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* temp = _impl_.describe_attachments_; + _impl_.describe_attachments_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* SharingLog::_internal_mutable_describe_attachments() { - _has_bits_[0] |= 0x00000080u; - if (describe_attachments_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>(GetArenaForAllocation()); - describe_attachments_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NONNULL SharingLog::_internal_mutable_describe_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.describe_attachments_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>(GetArena()); + _impl_.describe_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments*>(p); } - return describe_attachments_; + return _impl_.describe_attachments_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* SharingLog::mutable_describe_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NONNULL SharingLog::mutable_describe_attachments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* _msg = _internal_mutable_describe_attachments(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.describe_attachments) return _msg; } -inline void SharingLog::set_allocated_describe_attachments(::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* describe_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_describe_attachments(::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete describe_attachments_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.describe_attachments_); } - if (describe_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments>::GetOwningArena(describe_attachments); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - describe_attachments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, describe_attachments, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - describe_attachments_ = describe_attachments; + + _impl_.describe_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DescribeAttachments*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.describe_attachments) } // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsStart scan_for_share_targets_start = 7; -inline bool SharingLog::_internal_has_scan_for_share_targets_start() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - PROTOBUF_ASSUME(!value || scan_for_share_targets_start_ != nullptr); +inline bool SharingLog::has_scan_for_share_targets_start() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.scan_for_share_targets_start_ != nullptr); return value; } -inline bool SharingLog::has_scan_for_share_targets_start() const { - return _internal_has_scan_for_share_targets_start(); -} inline void SharingLog::clear_scan_for_share_targets_start() { - if (scan_for_share_targets_start_ != nullptr) scan_for_share_targets_start_->Clear(); - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.scan_for_share_targets_start_ != nullptr) _impl_.scan_for_share_targets_start_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& SharingLog::_internal_scan_for_share_targets_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* p = scan_for_share_targets_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ScanForShareTargetsStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* p = _impl_.scan_for_share_targets_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ScanForShareTargetsStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& SharingLog::scan_for_share_targets_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart& SharingLog::scan_for_share_targets_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_start) return _internal_scan_for_share_targets_start(); } inline void SharingLog::unsafe_arena_set_allocated_scan_for_share_targets_start( - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* scan_for_share_targets_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(scan_for_share_targets_start_); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.scan_for_share_targets_start_); } - scan_for_share_targets_start_ = scan_for_share_targets_start; - if (scan_for_share_targets_start) { - _has_bits_[0] |= 0x00000100u; + _impl_.scan_for_share_targets_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* SharingLog::release_scan_for_share_targets_start() { - _has_bits_[0] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* temp = scan_for_share_targets_start_; - scan_for_share_targets_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE SharingLog::release_scan_for_share_targets_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* released = _impl_.scan_for_share_targets_start_; + _impl_.scan_for_share_targets_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* SharingLog::unsafe_arena_release_scan_for_share_targets_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_scan_for_share_targets_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_start) - _has_bits_[0] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* temp = scan_for_share_targets_start_; - scan_for_share_targets_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* temp = _impl_.scan_for_share_targets_start_; + _impl_.scan_for_share_targets_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* SharingLog::_internal_mutable_scan_for_share_targets_start() { - _has_bits_[0] |= 0x00000100u; - if (scan_for_share_targets_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>(GetArenaForAllocation()); - scan_for_share_targets_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_scan_for_share_targets_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.scan_for_share_targets_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>(GetArena()); + _impl_.scan_for_share_targets_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart*>(p); } - return scan_for_share_targets_start_; + return _impl_.scan_for_share_targets_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* SharingLog::mutable_scan_for_share_targets_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NONNULL SharingLog::mutable_scan_for_share_targets_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* _msg = _internal_mutable_scan_for_share_targets_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_start) return _msg; } -inline void SharingLog::set_allocated_scan_for_share_targets_start(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* scan_for_share_targets_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_scan_for_share_targets_start(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete scan_for_share_targets_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.scan_for_share_targets_start_); } - if (scan_for_share_targets_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart>::GetOwningArena(scan_for_share_targets_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - scan_for_share_targets_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, scan_for_share_targets_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000100u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - scan_for_share_targets_start_ = scan_for_share_targets_start; + + _impl_.scan_for_share_targets_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_start) } // optional .nearby.sharing.analytics.proto.SharingLog.ScanForShareTargetsEnd scan_for_share_targets_end = 8; -inline bool SharingLog::_internal_has_scan_for_share_targets_end() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - PROTOBUF_ASSUME(!value || scan_for_share_targets_end_ != nullptr); +inline bool SharingLog::has_scan_for_share_targets_end() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.scan_for_share_targets_end_ != nullptr); return value; } -inline bool SharingLog::has_scan_for_share_targets_end() const { - return _internal_has_scan_for_share_targets_end(); -} inline void SharingLog::clear_scan_for_share_targets_end() { - if (scan_for_share_targets_end_ != nullptr) scan_for_share_targets_end_->Clear(); - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.scan_for_share_targets_end_ != nullptr) _impl_.scan_for_share_targets_end_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& SharingLog::_internal_scan_for_share_targets_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* p = scan_for_share_targets_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ScanForShareTargetsEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* p = _impl_.scan_for_share_targets_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ScanForShareTargetsEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& SharingLog::scan_for_share_targets_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd& SharingLog::scan_for_share_targets_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_end) return _internal_scan_for_share_targets_end(); } inline void SharingLog::unsafe_arena_set_allocated_scan_for_share_targets_end( - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* scan_for_share_targets_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(scan_for_share_targets_end_); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.scan_for_share_targets_end_); } - scan_for_share_targets_end_ = scan_for_share_targets_end; - if (scan_for_share_targets_end) { - _has_bits_[0] |= 0x00000200u; + _impl_.scan_for_share_targets_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* SharingLog::release_scan_for_share_targets_end() { - _has_bits_[0] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* temp = scan_for_share_targets_end_; - scan_for_share_targets_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE SharingLog::release_scan_for_share_targets_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* released = _impl_.scan_for_share_targets_end_; + _impl_.scan_for_share_targets_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* SharingLog::unsafe_arena_release_scan_for_share_targets_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_scan_for_share_targets_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_end) - _has_bits_[0] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* temp = scan_for_share_targets_end_; - scan_for_share_targets_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* temp = _impl_.scan_for_share_targets_end_; + _impl_.scan_for_share_targets_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* SharingLog::_internal_mutable_scan_for_share_targets_end() { - _has_bits_[0] |= 0x00000200u; - if (scan_for_share_targets_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>(GetArenaForAllocation()); - scan_for_share_targets_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_scan_for_share_targets_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.scan_for_share_targets_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>(GetArena()); + _impl_.scan_for_share_targets_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd*>(p); } - return scan_for_share_targets_end_; + return _impl_.scan_for_share_targets_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* SharingLog::mutable_scan_for_share_targets_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NONNULL SharingLog::mutable_scan_for_share_targets_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* _msg = _internal_mutable_scan_for_share_targets_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_end) return _msg; } -inline void SharingLog::set_allocated_scan_for_share_targets_end(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* scan_for_share_targets_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_scan_for_share_targets_end(::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete scan_for_share_targets_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.scan_for_share_targets_end_); } - if (scan_for_share_targets_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd>::GetOwningArena(scan_for_share_targets_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - scan_for_share_targets_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, scan_for_share_targets_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000200u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - scan_for_share_targets_end_ = scan_for_share_targets_end; + + _impl_.scan_for_share_targets_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ScanForShareTargetsEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.scan_for_share_targets_end) } // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceStart advertise_device_presence_start = 9; -inline bool SharingLog::_internal_has_advertise_device_presence_start() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; - PROTOBUF_ASSUME(!value || advertise_device_presence_start_ != nullptr); +inline bool SharingLog::has_advertise_device_presence_start() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.advertise_device_presence_start_ != nullptr); return value; } -inline bool SharingLog::has_advertise_device_presence_start() const { - return _internal_has_advertise_device_presence_start(); -} inline void SharingLog::clear_advertise_device_presence_start() { - if (advertise_device_presence_start_ != nullptr) advertise_device_presence_start_->Clear(); - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertise_device_presence_start_ != nullptr) _impl_.advertise_device_presence_start_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& SharingLog::_internal_advertise_device_presence_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* p = advertise_device_presence_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AdvertiseDevicePresenceStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* p = _impl_.advertise_device_presence_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AdvertiseDevicePresenceStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& SharingLog::advertise_device_presence_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart& SharingLog::advertise_device_presence_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_start) return _internal_advertise_device_presence_start(); } inline void SharingLog::unsafe_arena_set_allocated_advertise_device_presence_start( - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* advertise_device_presence_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advertise_device_presence_start_); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertise_device_presence_start_); } - advertise_device_presence_start_ = advertise_device_presence_start; - if (advertise_device_presence_start) { - _has_bits_[0] |= 0x00000400u; + _impl_.advertise_device_presence_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* SharingLog::release_advertise_device_presence_start() { - _has_bits_[0] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* temp = advertise_device_presence_start_; - advertise_device_presence_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE SharingLog::release_advertise_device_presence_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* released = _impl_.advertise_device_presence_start_; + _impl_.advertise_device_presence_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* SharingLog::unsafe_arena_release_advertise_device_presence_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_advertise_device_presence_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_start) - _has_bits_[0] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* temp = advertise_device_presence_start_; - advertise_device_presence_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* temp = _impl_.advertise_device_presence_start_; + _impl_.advertise_device_presence_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* SharingLog::_internal_mutable_advertise_device_presence_start() { - _has_bits_[0] |= 0x00000400u; - if (advertise_device_presence_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>(GetArenaForAllocation()); - advertise_device_presence_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_advertise_device_presence_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertise_device_presence_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>(GetArena()); + _impl_.advertise_device_presence_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart*>(p); } - return advertise_device_presence_start_; + return _impl_.advertise_device_presence_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* SharingLog::mutable_advertise_device_presence_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NONNULL SharingLog::mutable_advertise_device_presence_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* _msg = _internal_mutable_advertise_device_presence_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_start) return _msg; } -inline void SharingLog::set_allocated_advertise_device_presence_start(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* advertise_device_presence_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_advertise_device_presence_start(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete advertise_device_presence_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertise_device_presence_start_); } - if (advertise_device_presence_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart>::GetOwningArena(advertise_device_presence_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - advertise_device_presence_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, advertise_device_presence_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000400u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - advertise_device_presence_start_ = advertise_device_presence_start; + + _impl_.advertise_device_presence_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_start) } // optional .nearby.sharing.analytics.proto.SharingLog.AdvertiseDevicePresenceEnd advertise_device_presence_end = 10; -inline bool SharingLog::_internal_has_advertise_device_presence_end() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; - PROTOBUF_ASSUME(!value || advertise_device_presence_end_ != nullptr); +inline bool SharingLog::has_advertise_device_presence_end() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + PROTOBUF_ASSUME(!value || _impl_.advertise_device_presence_end_ != nullptr); return value; } -inline bool SharingLog::has_advertise_device_presence_end() const { - return _internal_has_advertise_device_presence_end(); -} inline void SharingLog::clear_advertise_device_presence_end() { - if (advertise_device_presence_end_ != nullptr) advertise_device_presence_end_->Clear(); - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertise_device_presence_end_ != nullptr) _impl_.advertise_device_presence_end_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& SharingLog::_internal_advertise_device_presence_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* p = advertise_device_presence_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AdvertiseDevicePresenceEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* p = _impl_.advertise_device_presence_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AdvertiseDevicePresenceEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& SharingLog::advertise_device_presence_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd& SharingLog::advertise_device_presence_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_end) return _internal_advertise_device_presence_end(); } inline void SharingLog::unsafe_arena_set_allocated_advertise_device_presence_end( - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* advertise_device_presence_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advertise_device_presence_end_); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertise_device_presence_end_); } - advertise_device_presence_end_ = advertise_device_presence_end; - if (advertise_device_presence_end) { - _has_bits_[0] |= 0x00000800u; + _impl_.advertise_device_presence_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* SharingLog::release_advertise_device_presence_end() { - _has_bits_[0] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* temp = advertise_device_presence_end_; - advertise_device_presence_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE SharingLog::release_advertise_device_presence_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* released = _impl_.advertise_device_presence_end_; + _impl_.advertise_device_presence_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* SharingLog::unsafe_arena_release_advertise_device_presence_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_advertise_device_presence_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_end) - _has_bits_[0] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* temp = advertise_device_presence_end_; - advertise_device_presence_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* temp = _impl_.advertise_device_presence_end_; + _impl_.advertise_device_presence_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* SharingLog::_internal_mutable_advertise_device_presence_end() { - _has_bits_[0] |= 0x00000800u; - if (advertise_device_presence_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>(GetArenaForAllocation()); - advertise_device_presence_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_advertise_device_presence_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.advertise_device_presence_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>(GetArena()); + _impl_.advertise_device_presence_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd*>(p); } - return advertise_device_presence_end_; + return _impl_.advertise_device_presence_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* SharingLog::mutable_advertise_device_presence_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NONNULL SharingLog::mutable_advertise_device_presence_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* _msg = _internal_mutable_advertise_device_presence_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_end) return _msg; } -inline void SharingLog::set_allocated_advertise_device_presence_end(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* advertise_device_presence_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_advertise_device_presence_end(::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete advertise_device_presence_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertise_device_presence_end_); } - if (advertise_device_presence_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd>::GetOwningArena(advertise_device_presence_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - advertise_device_presence_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, advertise_device_presence_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000800u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } - advertise_device_presence_end_ = advertise_device_presence_end; + + _impl_.advertise_device_presence_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AdvertiseDevicePresenceEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.advertise_device_presence_end) } // optional .nearby.sharing.analytics.proto.SharingLog.SendFastInitialization send_initialization = 11; -inline bool SharingLog::_internal_has_send_initialization() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; - PROTOBUF_ASSUME(!value || send_initialization_ != nullptr); +inline bool SharingLog::has_send_initialization() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); + PROTOBUF_ASSUME(!value || _impl_.send_initialization_ != nullptr); return value; } -inline bool SharingLog::has_send_initialization() const { - return _internal_has_send_initialization(); -} inline void SharingLog::clear_send_initialization() { - if (send_initialization_ != nullptr) send_initialization_->Clear(); - _has_bits_[0] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_initialization_ != nullptr) _impl_.send_initialization_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& SharingLog::_internal_send_initialization() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* p = send_initialization_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendFastInitialization_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* p = _impl_.send_initialization_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendFastInitialization_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& SharingLog::send_initialization() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization& SharingLog::send_initialization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_initialization) return _internal_send_initialization(); } inline void SharingLog::unsafe_arena_set_allocated_send_initialization( - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* send_initialization) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_initialization_); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_initialization_); } - send_initialization_ = send_initialization; - if (send_initialization) { - _has_bits_[0] |= 0x00001000u; + _impl_.send_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _has_bits_[0] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_initialization) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* SharingLog::release_send_initialization() { - _has_bits_[0] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* temp = send_initialization_; - send_initialization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE SharingLog::release_send_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* released = _impl_.send_initialization_; + _impl_.send_initialization_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* SharingLog::unsafe_arena_release_send_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_initialization) - _has_bits_[0] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* temp = send_initialization_; - send_initialization_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* temp = _impl_.send_initialization_; + _impl_.send_initialization_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* SharingLog::_internal_mutable_send_initialization() { - _has_bits_[0] |= 0x00001000u; - if (send_initialization_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>(GetArenaForAllocation()); - send_initialization_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_initialization_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>(GetArena()); + _impl_.send_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization*>(p); } - return send_initialization_; + return _impl_.send_initialization_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* SharingLog::mutable_send_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NONNULL SharingLog::mutable_send_initialization() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); ::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* _msg = _internal_mutable_send_initialization(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_initialization) return _msg; } -inline void SharingLog::set_allocated_send_initialization(::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* send_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_initialization(::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_initialization_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_initialization_); } - if (send_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization>::GetOwningArena(send_initialization); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_initialization, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00001000u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _has_bits_[0] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } - send_initialization_ = send_initialization; + + _impl_.send_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendFastInitialization*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_initialization) } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveFastInitialization receive_initialization = 12; -inline bool SharingLog::_internal_has_receive_initialization() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; - PROTOBUF_ASSUME(!value || receive_initialization_ != nullptr); +inline bool SharingLog::has_receive_initialization() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); + PROTOBUF_ASSUME(!value || _impl_.receive_initialization_ != nullptr); return value; } -inline bool SharingLog::has_receive_initialization() const { - return _internal_has_receive_initialization(); -} inline void SharingLog::clear_receive_initialization() { - if (receive_initialization_ != nullptr) receive_initialization_->Clear(); - _has_bits_[0] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_initialization_ != nullptr) _impl_.receive_initialization_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& SharingLog::_internal_receive_initialization() const { - const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* p = receive_initialization_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ReceiveFastInitialization_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* p = _impl_.receive_initialization_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ReceiveFastInitialization_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& SharingLog::receive_initialization() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization& SharingLog::receive_initialization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.receive_initialization) return _internal_receive_initialization(); } inline void SharingLog::unsafe_arena_set_allocated_receive_initialization( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* receive_initialization) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(receive_initialization_); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_initialization_); } - receive_initialization_ = receive_initialization; - if (receive_initialization) { - _has_bits_[0] |= 0x00002000u; + _impl_.receive_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _has_bits_[0] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_initialization) } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* SharingLog::release_receive_initialization() { - _has_bits_[0] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* temp = receive_initialization_; - receive_initialization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE SharingLog::release_receive_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* released = _impl_.receive_initialization_; + _impl_.receive_initialization_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* SharingLog::unsafe_arena_release_receive_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_receive_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.receive_initialization) - _has_bits_[0] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* temp = receive_initialization_; - receive_initialization_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* temp = _impl_.receive_initialization_; + _impl_.receive_initialization_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* SharingLog::_internal_mutable_receive_initialization() { - _has_bits_[0] |= 0x00002000u; - if (receive_initialization_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>(GetArenaForAllocation()); - receive_initialization_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL SharingLog::_internal_mutable_receive_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_initialization_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>(GetArena()); + _impl_.receive_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization*>(p); } - return receive_initialization_; + return _impl_.receive_initialization_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* SharingLog::mutable_receive_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NONNULL SharingLog::mutable_receive_initialization() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); ::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* _msg = _internal_mutable_receive_initialization(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.receive_initialization) return _msg; } -inline void SharingLog::set_allocated_receive_initialization(::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* receive_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_receive_initialization(::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete receive_initialization_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_initialization_); } - if (receive_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization>::GetOwningArena(receive_initialization); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - receive_initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, receive_initialization, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00002000u; + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _has_bits_[0] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } - receive_initialization_ = receive_initialization; + + _impl_.receive_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveFastInitialization*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_initialization) } // optional .nearby.sharing.analytics.proto.SharingLog.DiscoverShareTarget discover_share_target = 13; -inline bool SharingLog::_internal_has_discover_share_target() const { - bool value = (_has_bits_[0] & 0x00004000u) != 0; - PROTOBUF_ASSUME(!value || discover_share_target_ != nullptr); +inline bool SharingLog::has_discover_share_target() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); + PROTOBUF_ASSUME(!value || _impl_.discover_share_target_ != nullptr); return value; } -inline bool SharingLog::has_discover_share_target() const { - return _internal_has_discover_share_target(); -} inline void SharingLog::clear_discover_share_target() { - if (discover_share_target_ != nullptr) discover_share_target_->Clear(); - _has_bits_[0] &= ~0x00004000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.discover_share_target_ != nullptr) _impl_.discover_share_target_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& SharingLog::_internal_discover_share_target() const { - const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* p = discover_share_target_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DiscoverShareTarget_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* p = _impl_.discover_share_target_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DiscoverShareTarget_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& SharingLog::discover_share_target() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget& SharingLog::discover_share_target() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.discover_share_target) return _internal_discover_share_target(); } inline void SharingLog::unsafe_arena_set_allocated_discover_share_target( - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* discover_share_target) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(discover_share_target_); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.discover_share_target_); } - discover_share_target_ = discover_share_target; - if (discover_share_target) { - _has_bits_[0] |= 0x00004000u; + _impl_.discover_share_target_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _has_bits_[0] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.discover_share_target) } -inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* SharingLog::release_discover_share_target() { - _has_bits_[0] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* temp = discover_share_target_; - discover_share_target_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE SharingLog::release_discover_share_target() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* released = _impl_.discover_share_target_; + _impl_.discover_share_target_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* SharingLog::unsafe_arena_release_discover_share_target() { +inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_discover_share_target() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.discover_share_target) - _has_bits_[0] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* temp = discover_share_target_; - discover_share_target_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* temp = _impl_.discover_share_target_; + _impl_.discover_share_target_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* SharingLog::_internal_mutable_discover_share_target() { - _has_bits_[0] |= 0x00004000u; - if (discover_share_target_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>(GetArenaForAllocation()); - discover_share_target_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL SharingLog::_internal_mutable_discover_share_target() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.discover_share_target_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>(GetArena()); + _impl_.discover_share_target_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget*>(p); } - return discover_share_target_; + return _impl_.discover_share_target_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* SharingLog::mutable_discover_share_target() { +inline ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NONNULL SharingLog::mutable_discover_share_target() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); ::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* _msg = _internal_mutable_discover_share_target(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.discover_share_target) return _msg; } -inline void SharingLog::set_allocated_discover_share_target(::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* discover_share_target) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_discover_share_target(::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete discover_share_target_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.discover_share_target_); } - if (discover_share_target) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget>::GetOwningArena(discover_share_target); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - discover_share_target = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, discover_share_target, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00004000u; + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _has_bits_[0] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } - discover_share_target_ = discover_share_target; + + _impl_.discover_share_target_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DiscoverShareTarget*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.discover_share_target) } // optional .nearby.sharing.analytics.proto.SharingLog.SendIntroduction send_introduction = 14; -inline bool SharingLog::_internal_has_send_introduction() const { - bool value = (_has_bits_[0] & 0x00008000u) != 0; - PROTOBUF_ASSUME(!value || send_introduction_ != nullptr); +inline bool SharingLog::has_send_introduction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); + PROTOBUF_ASSUME(!value || _impl_.send_introduction_ != nullptr); return value; } -inline bool SharingLog::has_send_introduction() const { - return _internal_has_send_introduction(); -} inline void SharingLog::clear_send_introduction() { - if (send_introduction_ != nullptr) send_introduction_->Clear(); - _has_bits_[0] &= ~0x00008000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_introduction_ != nullptr) _impl_.send_introduction_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& SharingLog::_internal_send_introduction() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* p = send_introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendIntroduction_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* p = _impl_.send_introduction_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendIntroduction_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& SharingLog::send_introduction() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction& SharingLog::send_introduction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_introduction) return _internal_send_introduction(); } inline void SharingLog::unsafe_arena_set_allocated_send_introduction( - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* send_introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_introduction_); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_introduction_); } - send_introduction_ = send_introduction; - if (send_introduction) { - _has_bits_[0] |= 0x00008000u; + _impl_.send_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); } else { - _has_bits_[0] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_introduction) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* SharingLog::release_send_introduction() { - _has_bits_[0] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* temp = send_introduction_; - send_introduction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE SharingLog::release_send_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* released = _impl_.send_introduction_; + _impl_.send_introduction_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* SharingLog::unsafe_arena_release_send_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_introduction) - _has_bits_[0] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* temp = send_introduction_; - send_introduction_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* temp = _impl_.send_introduction_; + _impl_.send_introduction_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* SharingLog::_internal_mutable_send_introduction() { - _has_bits_[0] |= 0x00008000u; - if (send_introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>(GetArenaForAllocation()); - send_introduction_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_introduction_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>(GetArena()); + _impl_.send_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction*>(p); } - return send_introduction_; + return _impl_.send_introduction_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* SharingLog::mutable_send_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NONNULL SharingLog::mutable_send_introduction() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); ::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* _msg = _internal_mutable_send_introduction(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_introduction) return _msg; } -inline void SharingLog::set_allocated_send_introduction(::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* send_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_introduction(::nearby::sharing::analytics::proto::SharingLog_SendIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_introduction_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_introduction_); } - if (send_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction>::GetOwningArena(send_introduction); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_introduction, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00008000u; + SetHasBit(_impl_._has_bits_[0], 0x00001000U); } else { - _has_bits_[0] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); } - send_introduction_ = send_introduction; + + _impl_.send_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendIntroduction*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_introduction) } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveIntroduction receive_introduction = 15; -inline bool SharingLog::_internal_has_receive_introduction() const { - bool value = (_has_bits_[0] & 0x00010000u) != 0; - PROTOBUF_ASSUME(!value || receive_introduction_ != nullptr); +inline bool SharingLog::has_receive_introduction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); + PROTOBUF_ASSUME(!value || _impl_.receive_introduction_ != nullptr); return value; } -inline bool SharingLog::has_receive_introduction() const { - return _internal_has_receive_introduction(); -} inline void SharingLog::clear_receive_introduction() { - if (receive_introduction_ != nullptr) receive_introduction_->Clear(); - _has_bits_[0] &= ~0x00010000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_introduction_ != nullptr) _impl_.receive_introduction_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& SharingLog::_internal_receive_introduction() const { - const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* p = receive_introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ReceiveIntroduction_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* p = _impl_.receive_introduction_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ReceiveIntroduction_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& SharingLog::receive_introduction() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction& SharingLog::receive_introduction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.receive_introduction) return _internal_receive_introduction(); } inline void SharingLog::unsafe_arena_set_allocated_receive_introduction( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* receive_introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(receive_introduction_); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_introduction_); } - receive_introduction_ = receive_introduction; - if (receive_introduction) { - _has_bits_[0] |= 0x00010000u; + _impl_.receive_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); } else { - _has_bits_[0] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_introduction) } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* SharingLog::release_receive_introduction() { - _has_bits_[0] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* temp = receive_introduction_; - receive_introduction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE SharingLog::release_receive_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* released = _impl_.receive_introduction_; + _impl_.receive_introduction_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* SharingLog::unsafe_arena_release_receive_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_receive_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.receive_introduction) - _has_bits_[0] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* temp = receive_introduction_; - receive_introduction_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* temp = _impl_.receive_introduction_; + _impl_.receive_introduction_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* SharingLog::_internal_mutable_receive_introduction() { - _has_bits_[0] |= 0x00010000u; - if (receive_introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>(GetArenaForAllocation()); - receive_introduction_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL SharingLog::_internal_mutable_receive_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_introduction_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>(GetArena()); + _impl_.receive_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction*>(p); } - return receive_introduction_; + return _impl_.receive_introduction_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* SharingLog::mutable_receive_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NONNULL SharingLog::mutable_receive_introduction() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); ::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* _msg = _internal_mutable_receive_introduction(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.receive_introduction) return _msg; } -inline void SharingLog::set_allocated_receive_introduction(::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* receive_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_receive_introduction(::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete receive_introduction_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_introduction_); } - if (receive_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction>::GetOwningArena(receive_introduction); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - receive_introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, receive_introduction, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00010000u; + SetHasBit(_impl_._has_bits_[0], 0x00002000U); } else { - _has_bits_[0] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); } - receive_introduction_ = receive_introduction; + + _impl_.receive_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveIntroduction*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_introduction) } // optional .nearby.sharing.analytics.proto.SharingLog.RespondToIntroduction respond_introduction = 16; -inline bool SharingLog::_internal_has_respond_introduction() const { - bool value = (_has_bits_[0] & 0x00020000u) != 0; - PROTOBUF_ASSUME(!value || respond_introduction_ != nullptr); +inline bool SharingLog::has_respond_introduction() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); + PROTOBUF_ASSUME(!value || _impl_.respond_introduction_ != nullptr); return value; } -inline bool SharingLog::has_respond_introduction() const { - return _internal_has_respond_introduction(); -} inline void SharingLog::clear_respond_introduction() { - if (respond_introduction_ != nullptr) respond_introduction_->Clear(); - _has_bits_[0] &= ~0x00020000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.respond_introduction_ != nullptr) _impl_.respond_introduction_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& SharingLog::_internal_respond_introduction() const { - const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* p = respond_introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_RespondToIntroduction_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* p = _impl_.respond_introduction_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_RespondToIntroduction_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& SharingLog::respond_introduction() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction& SharingLog::respond_introduction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.respond_introduction) return _internal_respond_introduction(); } inline void SharingLog::unsafe_arena_set_allocated_respond_introduction( - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* respond_introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(respond_introduction_); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.respond_introduction_); } - respond_introduction_ = respond_introduction; - if (respond_introduction) { - _has_bits_[0] |= 0x00020000u; + _impl_.respond_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); } else { - _has_bits_[0] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.respond_introduction) } -inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* SharingLog::release_respond_introduction() { - _has_bits_[0] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* temp = respond_introduction_; - respond_introduction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE SharingLog::release_respond_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* released = _impl_.respond_introduction_; + _impl_.respond_introduction_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* SharingLog::unsafe_arena_release_respond_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_respond_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.respond_introduction) - _has_bits_[0] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* temp = respond_introduction_; - respond_introduction_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* temp = _impl_.respond_introduction_; + _impl_.respond_introduction_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* SharingLog::_internal_mutable_respond_introduction() { - _has_bits_[0] |= 0x00020000u; - if (respond_introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>(GetArenaForAllocation()); - respond_introduction_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NONNULL SharingLog::_internal_mutable_respond_introduction() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.respond_introduction_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>(GetArena()); + _impl_.respond_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction*>(p); } - return respond_introduction_; + return _impl_.respond_introduction_; } -inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* SharingLog::mutable_respond_introduction() { +inline ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NONNULL SharingLog::mutable_respond_introduction() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); ::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* _msg = _internal_mutable_respond_introduction(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.respond_introduction) return _msg; } -inline void SharingLog::set_allocated_respond_introduction(::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* respond_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_respond_introduction(::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete respond_introduction_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.respond_introduction_); } - if (respond_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction>::GetOwningArena(respond_introduction); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - respond_introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, respond_introduction, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00020000u; + SetHasBit(_impl_._has_bits_[0], 0x00004000U); } else { - _has_bits_[0] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); } - respond_introduction_ = respond_introduction; + + _impl_.respond_introduction_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RespondToIntroduction*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.respond_introduction) } // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsStart send_attachments_start = 17; -inline bool SharingLog::_internal_has_send_attachments_start() const { - bool value = (_has_bits_[0] & 0x00040000u) != 0; - PROTOBUF_ASSUME(!value || send_attachments_start_ != nullptr); +inline bool SharingLog::has_send_attachments_start() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00008000U); + PROTOBUF_ASSUME(!value || _impl_.send_attachments_start_ != nullptr); return value; } -inline bool SharingLog::has_send_attachments_start() const { - return _internal_has_send_attachments_start(); -} inline void SharingLog::clear_send_attachments_start() { - if (send_attachments_start_ != nullptr) send_attachments_start_->Clear(); - _has_bits_[0] &= ~0x00040000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_attachments_start_ != nullptr) _impl_.send_attachments_start_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& SharingLog::_internal_send_attachments_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* p = send_attachments_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendAttachmentsStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* p = _impl_.send_attachments_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendAttachmentsStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& SharingLog::send_attachments_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart& SharingLog::send_attachments_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_attachments_start) return _internal_send_attachments_start(); } inline void SharingLog::unsafe_arena_set_allocated_send_attachments_start( - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* send_attachments_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_attachments_start_); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_attachments_start_); } - send_attachments_start_ = send_attachments_start; - if (send_attachments_start) { - _has_bits_[0] |= 0x00040000u; + _impl_.send_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00008000U); } else { - _has_bits_[0] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[0], 0x00008000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_attachments_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* SharingLog::release_send_attachments_start() { - _has_bits_[0] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* temp = send_attachments_start_; - send_attachments_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE SharingLog::release_send_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* released = _impl_.send_attachments_start_; + _impl_.send_attachments_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* SharingLog::unsafe_arena_release_send_attachments_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_attachments_start) - _has_bits_[0] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* temp = send_attachments_start_; - send_attachments_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* temp = _impl_.send_attachments_start_; + _impl_.send_attachments_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* SharingLog::_internal_mutable_send_attachments_start() { - _has_bits_[0] |= 0x00040000u; - if (send_attachments_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>(GetArenaForAllocation()); - send_attachments_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_attachments_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>(GetArena()); + _impl_.send_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart*>(p); } - return send_attachments_start_; + return _impl_.send_attachments_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* SharingLog::mutable_send_attachments_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NONNULL SharingLog::mutable_send_attachments_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00008000U); ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* _msg = _internal_mutable_send_attachments_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_attachments_start) return _msg; } -inline void SharingLog::set_allocated_send_attachments_start(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* send_attachments_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_attachments_start(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_attachments_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_attachments_start_); } - if (send_attachments_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart>::GetOwningArena(send_attachments_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_attachments_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_attachments_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00040000u; + SetHasBit(_impl_._has_bits_[0], 0x00008000U); } else { - _has_bits_[0] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[0], 0x00008000U); } - send_attachments_start_ = send_attachments_start; + + _impl_.send_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_attachments_start) } // optional .nearby.sharing.analytics.proto.SharingLog.SendAttachmentsEnd send_attachments_end = 18; -inline bool SharingLog::_internal_has_send_attachments_end() const { - bool value = (_has_bits_[0] & 0x00080000u) != 0; - PROTOBUF_ASSUME(!value || send_attachments_end_ != nullptr); +inline bool SharingLog::has_send_attachments_end() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00010000U); + PROTOBUF_ASSUME(!value || _impl_.send_attachments_end_ != nullptr); return value; } -inline bool SharingLog::has_send_attachments_end() const { - return _internal_has_send_attachments_end(); -} inline void SharingLog::clear_send_attachments_end() { - if (send_attachments_end_ != nullptr) send_attachments_end_->Clear(); - _has_bits_[0] &= ~0x00080000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_attachments_end_ != nullptr) _impl_.send_attachments_end_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& SharingLog::_internal_send_attachments_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* p = send_attachments_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendAttachmentsEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* p = _impl_.send_attachments_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendAttachmentsEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& SharingLog::send_attachments_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd& SharingLog::send_attachments_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_attachments_end) return _internal_send_attachments_end(); } inline void SharingLog::unsafe_arena_set_allocated_send_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* send_attachments_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_attachments_end_); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_attachments_end_); } - send_attachments_end_ = send_attachments_end; - if (send_attachments_end) { - _has_bits_[0] |= 0x00080000u; + _impl_.send_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00010000U); } else { - _has_bits_[0] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[0], 0x00010000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_attachments_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* SharingLog::release_send_attachments_end() { - _has_bits_[0] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* temp = send_attachments_end_; - send_attachments_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::release_send_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* released = _impl_.send_attachments_end_; + _impl_.send_attachments_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* SharingLog::unsafe_arena_release_send_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_attachments_end) - _has_bits_[0] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* temp = send_attachments_end_; - send_attachments_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* temp = _impl_.send_attachments_end_; + _impl_.send_attachments_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* SharingLog::_internal_mutable_send_attachments_end() { - _has_bits_[0] |= 0x00080000u; - if (send_attachments_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>(GetArenaForAllocation()); - send_attachments_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_attachments_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>(GetArena()); + _impl_.send_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd*>(p); } - return send_attachments_end_; + return _impl_.send_attachments_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* SharingLog::mutable_send_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NONNULL SharingLog::mutable_send_attachments_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00010000U); ::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* _msg = _internal_mutable_send_attachments_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_attachments_end) return _msg; } -inline void SharingLog::set_allocated_send_attachments_end(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* send_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_attachments_end(::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_attachments_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_attachments_end_); } - if (send_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd>::GetOwningArena(send_attachments_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_attachments_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_attachments_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00080000u; + SetHasBit(_impl_._has_bits_[0], 0x00010000U); } else { - _has_bits_[0] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[0], 0x00010000U); } - send_attachments_end_ = send_attachments_end; + + _impl_.send_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendAttachmentsEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_attachments_end) } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsStart receive_attachments_start = 19; -inline bool SharingLog::_internal_has_receive_attachments_start() const { - bool value = (_has_bits_[0] & 0x00100000u) != 0; - PROTOBUF_ASSUME(!value || receive_attachments_start_ != nullptr); +inline bool SharingLog::has_receive_attachments_start() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00020000U); + PROTOBUF_ASSUME(!value || _impl_.receive_attachments_start_ != nullptr); return value; } -inline bool SharingLog::has_receive_attachments_start() const { - return _internal_has_receive_attachments_start(); -} inline void SharingLog::clear_receive_attachments_start() { - if (receive_attachments_start_ != nullptr) receive_attachments_start_->Clear(); - _has_bits_[0] &= ~0x00100000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_attachments_start_ != nullptr) _impl_.receive_attachments_start_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00020000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& SharingLog::_internal_receive_attachments_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* p = receive_attachments_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ReceiveAttachmentsStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* p = _impl_.receive_attachments_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ReceiveAttachmentsStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& SharingLog::receive_attachments_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart& SharingLog::receive_attachments_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.receive_attachments_start) return _internal_receive_attachments_start(); } inline void SharingLog::unsafe_arena_set_allocated_receive_attachments_start( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* receive_attachments_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(receive_attachments_start_); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_attachments_start_); } - receive_attachments_start_ = receive_attachments_start; - if (receive_attachments_start) { - _has_bits_[0] |= 0x00100000u; + _impl_.receive_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00020000U); } else { - _has_bits_[0] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[0], 0x00020000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_attachments_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* SharingLog::release_receive_attachments_start() { - _has_bits_[0] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* temp = receive_attachments_start_; - receive_attachments_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE SharingLog::release_receive_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* released = _impl_.receive_attachments_start_; + _impl_.receive_attachments_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* SharingLog::unsafe_arena_release_receive_attachments_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_receive_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.receive_attachments_start) - _has_bits_[0] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* temp = receive_attachments_start_; - receive_attachments_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* temp = _impl_.receive_attachments_start_; + _impl_.receive_attachments_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* SharingLog::_internal_mutable_receive_attachments_start() { - _has_bits_[0] |= 0x00100000u; - if (receive_attachments_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>(GetArenaForAllocation()); - receive_attachments_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_receive_attachments_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_attachments_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>(GetArena()); + _impl_.receive_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart*>(p); } - return receive_attachments_start_; + return _impl_.receive_attachments_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* SharingLog::mutable_receive_attachments_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NONNULL SharingLog::mutable_receive_attachments_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00020000U); ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* _msg = _internal_mutable_receive_attachments_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.receive_attachments_start) return _msg; } -inline void SharingLog::set_allocated_receive_attachments_start(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* receive_attachments_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_receive_attachments_start(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete receive_attachments_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_attachments_start_); } - if (receive_attachments_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart>::GetOwningArena(receive_attachments_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - receive_attachments_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, receive_attachments_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00100000u; + SetHasBit(_impl_._has_bits_[0], 0x00020000U); } else { - _has_bits_[0] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[0], 0x00020000U); } - receive_attachments_start_ = receive_attachments_start; + + _impl_.receive_attachments_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_attachments_start) } // optional .nearby.sharing.analytics.proto.SharingLog.ReceiveAttachmentsEnd receive_attachments_end = 20; -inline bool SharingLog::_internal_has_receive_attachments_end() const { - bool value = (_has_bits_[0] & 0x00200000u) != 0; - PROTOBUF_ASSUME(!value || receive_attachments_end_ != nullptr); +inline bool SharingLog::has_receive_attachments_end() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00040000U); + PROTOBUF_ASSUME(!value || _impl_.receive_attachments_end_ != nullptr); return value; } -inline bool SharingLog::has_receive_attachments_end() const { - return _internal_has_receive_attachments_end(); -} inline void SharingLog::clear_receive_attachments_end() { - if (receive_attachments_end_ != nullptr) receive_attachments_end_->Clear(); - _has_bits_[0] &= ~0x00200000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_attachments_end_ != nullptr) _impl_.receive_attachments_end_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00040000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& SharingLog::_internal_receive_attachments_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* p = receive_attachments_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ReceiveAttachmentsEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* p = _impl_.receive_attachments_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ReceiveAttachmentsEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& SharingLog::receive_attachments_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd& SharingLog::receive_attachments_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.receive_attachments_end) return _internal_receive_attachments_end(); } inline void SharingLog::unsafe_arena_set_allocated_receive_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* receive_attachments_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(receive_attachments_end_); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_attachments_end_); } - receive_attachments_end_ = receive_attachments_end; - if (receive_attachments_end) { - _has_bits_[0] |= 0x00200000u; + _impl_.receive_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00040000U); } else { - _has_bits_[0] &= ~0x00200000u; + ClearHasBit(_impl_._has_bits_[0], 0x00040000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_attachments_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* SharingLog::release_receive_attachments_end() { - _has_bits_[0] &= ~0x00200000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* temp = receive_attachments_end_; - receive_attachments_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::release_receive_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* released = _impl_.receive_attachments_end_; + _impl_.receive_attachments_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* SharingLog::unsafe_arena_release_receive_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_receive_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.receive_attachments_end) - _has_bits_[0] &= ~0x00200000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* temp = receive_attachments_end_; - receive_attachments_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* temp = _impl_.receive_attachments_end_; + _impl_.receive_attachments_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* SharingLog::_internal_mutable_receive_attachments_end() { - _has_bits_[0] |= 0x00200000u; - if (receive_attachments_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>(GetArenaForAllocation()); - receive_attachments_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_receive_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_attachments_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>(GetArena()); + _impl_.receive_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd*>(p); } - return receive_attachments_end_; + return _impl_.receive_attachments_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* SharingLog::mutable_receive_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NONNULL SharingLog::mutable_receive_attachments_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00040000U); ::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* _msg = _internal_mutable_receive_attachments_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.receive_attachments_end) return _msg; } -inline void SharingLog::set_allocated_receive_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* receive_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_receive_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete receive_attachments_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_attachments_end_); } - if (receive_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd>::GetOwningArena(receive_attachments_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - receive_attachments_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, receive_attachments_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00200000u; + SetHasBit(_impl_._has_bits_[0], 0x00040000U); } else { - _has_bits_[0] &= ~0x00200000u; + ClearHasBit(_impl_._has_bits_[0], 0x00040000U); } - receive_attachments_end_ = receive_attachments_end; + + _impl_.receive_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceiveAttachmentsEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_attachments_end) } // optional .nearby.sharing.analytics.proto.SharingLog.CancelSendingAttachments cancel_sending_attachments = 21; -inline bool SharingLog::_internal_has_cancel_sending_attachments() const { - bool value = (_has_bits_[0] & 0x00400000u) != 0; - PROTOBUF_ASSUME(!value || cancel_sending_attachments_ != nullptr); +inline bool SharingLog::has_cancel_sending_attachments() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00080000U); + PROTOBUF_ASSUME(!value || _impl_.cancel_sending_attachments_ != nullptr); return value; } -inline bool SharingLog::has_cancel_sending_attachments() const { - return _internal_has_cancel_sending_attachments(); -} inline void SharingLog::clear_cancel_sending_attachments() { - if (cancel_sending_attachments_ != nullptr) cancel_sending_attachments_->Clear(); - _has_bits_[0] &= ~0x00400000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_sending_attachments_ != nullptr) _impl_.cancel_sending_attachments_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00080000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& SharingLog::_internal_cancel_sending_attachments() const { - const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* p = cancel_sending_attachments_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CancelSendingAttachments_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* p = _impl_.cancel_sending_attachments_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CancelSendingAttachments_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& SharingLog::cancel_sending_attachments() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments& SharingLog::cancel_sending_attachments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cancel_sending_attachments) return _internal_cancel_sending_attachments(); } inline void SharingLog::unsafe_arena_set_allocated_cancel_sending_attachments( - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* cancel_sending_attachments) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancel_sending_attachments_); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_sending_attachments_); } - cancel_sending_attachments_ = cancel_sending_attachments; - if (cancel_sending_attachments) { - _has_bits_[0] |= 0x00400000u; + _impl_.cancel_sending_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00080000U); } else { - _has_bits_[0] &= ~0x00400000u; + ClearHasBit(_impl_._has_bits_[0], 0x00080000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_sending_attachments) } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* SharingLog::release_cancel_sending_attachments() { - _has_bits_[0] &= ~0x00400000u; - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* temp = cancel_sending_attachments_; - cancel_sending_attachments_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE SharingLog::release_cancel_sending_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* released = _impl_.cancel_sending_attachments_; + _impl_.cancel_sending_attachments_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* SharingLog::unsafe_arena_release_cancel_sending_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cancel_sending_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cancel_sending_attachments) - _has_bits_[0] &= ~0x00400000u; - ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* temp = cancel_sending_attachments_; - cancel_sending_attachments_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* temp = _impl_.cancel_sending_attachments_; + _impl_.cancel_sending_attachments_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* SharingLog::_internal_mutable_cancel_sending_attachments() { - _has_bits_[0] |= 0x00400000u; - if (cancel_sending_attachments_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>(GetArenaForAllocation()); - cancel_sending_attachments_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL SharingLog::_internal_mutable_cancel_sending_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_sending_attachments_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>(GetArena()); + _impl_.cancel_sending_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments*>(p); } - return cancel_sending_attachments_; + return _impl_.cancel_sending_attachments_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* SharingLog::mutable_cancel_sending_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NONNULL SharingLog::mutable_cancel_sending_attachments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00080000U); ::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* _msg = _internal_mutable_cancel_sending_attachments(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cancel_sending_attachments) return _msg; } -inline void SharingLog::set_allocated_cancel_sending_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* cancel_sending_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cancel_sending_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cancel_sending_attachments_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_sending_attachments_); } - if (cancel_sending_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments>::GetOwningArena(cancel_sending_attachments); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cancel_sending_attachments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cancel_sending_attachments, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00400000u; + SetHasBit(_impl_._has_bits_[0], 0x00080000U); } else { - _has_bits_[0] &= ~0x00400000u; + ClearHasBit(_impl_._has_bits_[0], 0x00080000U); } - cancel_sending_attachments_ = cancel_sending_attachments; + + _impl_.cancel_sending_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelSendingAttachments*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_sending_attachments) } // optional .nearby.sharing.analytics.proto.SharingLog.CancelReceivingAttachments cancel_receiving_attachments = 22; -inline bool SharingLog::_internal_has_cancel_receiving_attachments() const { - bool value = (_has_bits_[0] & 0x00800000u) != 0; - PROTOBUF_ASSUME(!value || cancel_receiving_attachments_ != nullptr); +inline bool SharingLog::has_cancel_receiving_attachments() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00100000U); + PROTOBUF_ASSUME(!value || _impl_.cancel_receiving_attachments_ != nullptr); return value; } -inline bool SharingLog::has_cancel_receiving_attachments() const { - return _internal_has_cancel_receiving_attachments(); -} inline void SharingLog::clear_cancel_receiving_attachments() { - if (cancel_receiving_attachments_ != nullptr) cancel_receiving_attachments_->Clear(); - _has_bits_[0] &= ~0x00800000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_receiving_attachments_ != nullptr) _impl_.cancel_receiving_attachments_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00100000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& SharingLog::_internal_cancel_receiving_attachments() const { - const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* p = cancel_receiving_attachments_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CancelReceivingAttachments_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* p = _impl_.cancel_receiving_attachments_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CancelReceivingAttachments_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& SharingLog::cancel_receiving_attachments() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments& SharingLog::cancel_receiving_attachments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cancel_receiving_attachments) return _internal_cancel_receiving_attachments(); } inline void SharingLog::unsafe_arena_set_allocated_cancel_receiving_attachments( - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* cancel_receiving_attachments) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancel_receiving_attachments_); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_receiving_attachments_); } - cancel_receiving_attachments_ = cancel_receiving_attachments; - if (cancel_receiving_attachments) { - _has_bits_[0] |= 0x00800000u; + _impl_.cancel_receiving_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00100000U); } else { - _has_bits_[0] &= ~0x00800000u; + ClearHasBit(_impl_._has_bits_[0], 0x00100000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_receiving_attachments) } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* SharingLog::release_cancel_receiving_attachments() { - _has_bits_[0] &= ~0x00800000u; - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* temp = cancel_receiving_attachments_; - cancel_receiving_attachments_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE SharingLog::release_cancel_receiving_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* released = _impl_.cancel_receiving_attachments_; + _impl_.cancel_receiving_attachments_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* SharingLog::unsafe_arena_release_cancel_receiving_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cancel_receiving_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cancel_receiving_attachments) - _has_bits_[0] &= ~0x00800000u; - ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* temp = cancel_receiving_attachments_; - cancel_receiving_attachments_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* temp = _impl_.cancel_receiving_attachments_; + _impl_.cancel_receiving_attachments_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* SharingLog::_internal_mutable_cancel_receiving_attachments() { - _has_bits_[0] |= 0x00800000u; - if (cancel_receiving_attachments_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>(GetArenaForAllocation()); - cancel_receiving_attachments_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL SharingLog::_internal_mutable_cancel_receiving_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_receiving_attachments_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>(GetArena()); + _impl_.cancel_receiving_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments*>(p); } - return cancel_receiving_attachments_; + return _impl_.cancel_receiving_attachments_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* SharingLog::mutable_cancel_receiving_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NONNULL SharingLog::mutable_cancel_receiving_attachments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00100000U); ::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* _msg = _internal_mutable_cancel_receiving_attachments(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cancel_receiving_attachments) return _msg; } -inline void SharingLog::set_allocated_cancel_receiving_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* cancel_receiving_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cancel_receiving_attachments(::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cancel_receiving_attachments_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_receiving_attachments_); } - if (cancel_receiving_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments>::GetOwningArena(cancel_receiving_attachments); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cancel_receiving_attachments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cancel_receiving_attachments, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00800000u; + SetHasBit(_impl_._has_bits_[0], 0x00100000U); } else { - _has_bits_[0] &= ~0x00800000u; + ClearHasBit(_impl_._has_bits_[0], 0x00100000U); } - cancel_receiving_attachments_ = cancel_receiving_attachments; + + _impl_.cancel_receiving_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelReceivingAttachments*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_receiving_attachments) } // optional .nearby.sharing.analytics.proto.SharingLog.OpenReceivedAttachments open_received_attachments = 23; -inline bool SharingLog::_internal_has_open_received_attachments() const { - bool value = (_has_bits_[0] & 0x01000000u) != 0; - PROTOBUF_ASSUME(!value || open_received_attachments_ != nullptr); +inline bool SharingLog::has_open_received_attachments() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00200000U); + PROTOBUF_ASSUME(!value || _impl_.open_received_attachments_ != nullptr); return value; } -inline bool SharingLog::has_open_received_attachments() const { - return _internal_has_open_received_attachments(); -} inline void SharingLog::clear_open_received_attachments() { - if (open_received_attachments_ != nullptr) open_received_attachments_->Clear(); - _has_bits_[0] &= ~0x01000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.open_received_attachments_ != nullptr) _impl_.open_received_attachments_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00200000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& SharingLog::_internal_open_received_attachments() const { - const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* p = open_received_attachments_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_OpenReceivedAttachments_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* p = _impl_.open_received_attachments_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_OpenReceivedAttachments_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& SharingLog::open_received_attachments() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments& SharingLog::open_received_attachments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.open_received_attachments) return _internal_open_received_attachments(); } inline void SharingLog::unsafe_arena_set_allocated_open_received_attachments( - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* open_received_attachments) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(open_received_attachments_); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.open_received_attachments_); } - open_received_attachments_ = open_received_attachments; - if (open_received_attachments) { - _has_bits_[0] |= 0x01000000u; + _impl_.open_received_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00200000U); } else { - _has_bits_[0] &= ~0x01000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00200000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.open_received_attachments) } -inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* SharingLog::release_open_received_attachments() { - _has_bits_[0] &= ~0x01000000u; - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* temp = open_received_attachments_; - open_received_attachments_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE SharingLog::release_open_received_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* released = _impl_.open_received_attachments_; + _impl_.open_received_attachments_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* SharingLog::unsafe_arena_release_open_received_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_open_received_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.open_received_attachments) - _has_bits_[0] &= ~0x01000000u; - ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* temp = open_received_attachments_; - open_received_attachments_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* temp = _impl_.open_received_attachments_; + _impl_.open_received_attachments_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* SharingLog::_internal_mutable_open_received_attachments() { - _has_bits_[0] |= 0x01000000u; - if (open_received_attachments_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>(GetArenaForAllocation()); - open_received_attachments_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL SharingLog::_internal_mutable_open_received_attachments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.open_received_attachments_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>(GetArena()); + _impl_.open_received_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments*>(p); } - return open_received_attachments_; + return _impl_.open_received_attachments_; } -inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* SharingLog::mutable_open_received_attachments() { +inline ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NONNULL SharingLog::mutable_open_received_attachments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00200000U); ::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* _msg = _internal_mutable_open_received_attachments(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.open_received_attachments) return _msg; } -inline void SharingLog::set_allocated_open_received_attachments(::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* open_received_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_open_received_attachments(::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete open_received_attachments_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.open_received_attachments_); } - if (open_received_attachments) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments>::GetOwningArena(open_received_attachments); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - open_received_attachments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, open_received_attachments, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x01000000u; + SetHasBit(_impl_._has_bits_[0], 0x00200000U); } else { - _has_bits_[0] &= ~0x01000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00200000U); } - open_received_attachments_ = open_received_attachments; + + _impl_.open_received_attachments_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_OpenReceivedAttachments*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.open_received_attachments) } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchActivity launch_activity = 24; -inline bool SharingLog::_internal_has_launch_activity() const { - bool value = (_has_bits_[0] & 0x02000000u) != 0; - PROTOBUF_ASSUME(!value || launch_activity_ != nullptr); +inline bool SharingLog::has_launch_activity() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00400000U); + PROTOBUF_ASSUME(!value || _impl_.launch_activity_ != nullptr); return value; } -inline bool SharingLog::has_launch_activity() const { - return _internal_has_launch_activity(); -} inline void SharingLog::clear_launch_activity() { - if (launch_activity_ != nullptr) launch_activity_->Clear(); - _has_bits_[0] &= ~0x02000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_activity_ != nullptr) _impl_.launch_activity_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00400000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& SharingLog::_internal_launch_activity() const { - const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* p = launch_activity_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_LaunchActivity_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* p = _impl_.launch_activity_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_LaunchActivity_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& SharingLog::launch_activity() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity& SharingLog::launch_activity() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.launch_activity) return _internal_launch_activity(); } inline void SharingLog::unsafe_arena_set_allocated_launch_activity( - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* launch_activity) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(launch_activity_); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_activity_); } - launch_activity_ = launch_activity; - if (launch_activity) { - _has_bits_[0] |= 0x02000000u; + _impl_.launch_activity_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00400000U); } else { - _has_bits_[0] &= ~0x02000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00400000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_activity) } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* SharingLog::release_launch_activity() { - _has_bits_[0] &= ~0x02000000u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* temp = launch_activity_; - launch_activity_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE SharingLog::release_launch_activity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* released = _impl_.launch_activity_; + _impl_.launch_activity_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* SharingLog::unsafe_arena_release_launch_activity() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_launch_activity() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.launch_activity) - _has_bits_[0] &= ~0x02000000u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* temp = launch_activity_; - launch_activity_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* temp = _impl_.launch_activity_; + _impl_.launch_activity_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* SharingLog::_internal_mutable_launch_activity() { - _has_bits_[0] |= 0x02000000u; - if (launch_activity_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>(GetArenaForAllocation()); - launch_activity_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NONNULL SharingLog::_internal_mutable_launch_activity() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_activity_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>(GetArena()); + _impl_.launch_activity_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity*>(p); } - return launch_activity_; + return _impl_.launch_activity_; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* SharingLog::mutable_launch_activity() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NONNULL SharingLog::mutable_launch_activity() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00400000U); ::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* _msg = _internal_mutable_launch_activity(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.launch_activity) return _msg; } -inline void SharingLog::set_allocated_launch_activity(::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* launch_activity) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_launch_activity(::nearby::sharing::analytics::proto::SharingLog_LaunchActivity* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete launch_activity_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_activity_); } - if (launch_activity) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity>::GetOwningArena(launch_activity); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - launch_activity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, launch_activity, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x02000000u; + SetHasBit(_impl_._has_bits_[0], 0x00400000U); } else { - _has_bits_[0] &= ~0x02000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00400000U); } - launch_activity_ = launch_activity; + + _impl_.launch_activity_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchActivity*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_activity) } // optional .nearby.sharing.analytics.proto.SharingLog.AddContact add_contact = 25; -inline bool SharingLog::_internal_has_add_contact() const { - bool value = (_has_bits_[0] & 0x04000000u) != 0; - PROTOBUF_ASSUME(!value || add_contact_ != nullptr); +inline bool SharingLog::has_add_contact() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00800000U); + PROTOBUF_ASSUME(!value || _impl_.add_contact_ != nullptr); return value; } -inline bool SharingLog::has_add_contact() const { - return _internal_has_add_contact(); -} inline void SharingLog::clear_add_contact() { - if (add_contact_ != nullptr) add_contact_->Clear(); - _has_bits_[0] &= ~0x04000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.add_contact_ != nullptr) _impl_.add_contact_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00800000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AddContact& SharingLog::_internal_add_contact() const { - const ::nearby::sharing::analytics::proto::SharingLog_AddContact* p = add_contact_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AddContact_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AddContact* p = _impl_.add_contact_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AddContact_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AddContact& SharingLog::add_contact() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AddContact& SharingLog::add_contact() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.add_contact) return _internal_add_contact(); } inline void SharingLog::unsafe_arena_set_allocated_add_contact( - ::nearby::sharing::analytics::proto::SharingLog_AddContact* add_contact) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(add_contact_); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.add_contact_); } - add_contact_ = add_contact; - if (add_contact) { - _has_bits_[0] |= 0x04000000u; + _impl_.add_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddContact*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00800000U); } else { - _has_bits_[0] &= ~0x04000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00800000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.add_contact) } -inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* SharingLog::release_add_contact() { - _has_bits_[0] &= ~0x04000000u; - ::nearby::sharing::analytics::proto::SharingLog_AddContact* temp = add_contact_; - add_contact_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE SharingLog::release_add_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00800000U); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* released = _impl_.add_contact_; + _impl_.add_contact_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* SharingLog::unsafe_arena_release_add_contact() { +inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_add_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.add_contact) - _has_bits_[0] &= ~0x04000000u; - ::nearby::sharing::analytics::proto::SharingLog_AddContact* temp = add_contact_; - add_contact_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00800000U); + ::nearby::sharing::analytics::proto::SharingLog_AddContact* temp = _impl_.add_contact_; + _impl_.add_contact_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* SharingLog::_internal_mutable_add_contact() { - _has_bits_[0] |= 0x04000000u; - if (add_contact_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AddContact>(GetArenaForAllocation()); - add_contact_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NONNULL SharingLog::_internal_mutable_add_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.add_contact_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AddContact>(GetArena()); + _impl_.add_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddContact*>(p); } - return add_contact_; + return _impl_.add_contact_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* SharingLog::mutable_add_contact() { +inline ::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NONNULL SharingLog::mutable_add_contact() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00800000U); ::nearby::sharing::analytics::proto::SharingLog_AddContact* _msg = _internal_mutable_add_contact(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.add_contact) return _msg; } -inline void SharingLog::set_allocated_add_contact(::nearby::sharing::analytics::proto::SharingLog_AddContact* add_contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_add_contact(::nearby::sharing::analytics::proto::SharingLog_AddContact* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete add_contact_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.add_contact_); } - if (add_contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AddContact>::GetOwningArena(add_contact); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - add_contact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, add_contact, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x04000000u; + SetHasBit(_impl_._has_bits_[0], 0x00800000U); } else { - _has_bits_[0] &= ~0x04000000u; + ClearHasBit(_impl_._has_bits_[0], 0x00800000U); } - add_contact_ = add_contact; + + _impl_.add_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddContact*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.add_contact) } // optional .nearby.sharing.analytics.proto.SharingLog.RemoveContact remove_contact = 26; -inline bool SharingLog::_internal_has_remove_contact() const { - bool value = (_has_bits_[0] & 0x08000000u) != 0; - PROTOBUF_ASSUME(!value || remove_contact_ != nullptr); +inline bool SharingLog::has_remove_contact() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x01000000U); + PROTOBUF_ASSUME(!value || _impl_.remove_contact_ != nullptr); return value; } -inline bool SharingLog::has_remove_contact() const { - return _internal_has_remove_contact(); -} inline void SharingLog::clear_remove_contact() { - if (remove_contact_ != nullptr) remove_contact_->Clear(); - _has_bits_[0] &= ~0x08000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remove_contact_ != nullptr) _impl_.remove_contact_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x01000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& SharingLog::_internal_remove_contact() const { - const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* p = remove_contact_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_RemoveContact_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* p = _impl_.remove_contact_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_RemoveContact_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& SharingLog::remove_contact() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveContact& SharingLog::remove_contact() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.remove_contact) return _internal_remove_contact(); } inline void SharingLog::unsafe_arena_set_allocated_remove_contact( - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* remove_contact) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(remove_contact_); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remove_contact_); } - remove_contact_ = remove_contact; - if (remove_contact) { - _has_bits_[0] |= 0x08000000u; + _impl_.remove_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveContact*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x01000000U); } else { - _has_bits_[0] &= ~0x08000000u; + ClearHasBit(_impl_._has_bits_[0], 0x01000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.remove_contact) } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* SharingLog::release_remove_contact() { - _has_bits_[0] &= ~0x08000000u; - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* temp = remove_contact_; - remove_contact_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE SharingLog::release_remove_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x01000000U); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* released = _impl_.remove_contact_; + _impl_.remove_contact_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* SharingLog::unsafe_arena_release_remove_contact() { +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_remove_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.remove_contact) - _has_bits_[0] &= ~0x08000000u; - ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* temp = remove_contact_; - remove_contact_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x01000000U); + ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* temp = _impl_.remove_contact_; + _impl_.remove_contact_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* SharingLog::_internal_mutable_remove_contact() { - _has_bits_[0] |= 0x08000000u; - if (remove_contact_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>(GetArenaForAllocation()); - remove_contact_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NONNULL SharingLog::_internal_mutable_remove_contact() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remove_contact_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>(GetArena()); + _impl_.remove_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveContact*>(p); } - return remove_contact_; + return _impl_.remove_contact_; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* SharingLog::mutable_remove_contact() { +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NONNULL SharingLog::mutable_remove_contact() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x01000000U); ::nearby::sharing::analytics::proto::SharingLog_RemoveContact* _msg = _internal_mutable_remove_contact(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.remove_contact) return _msg; } -inline void SharingLog::set_allocated_remove_contact(::nearby::sharing::analytics::proto::SharingLog_RemoveContact* remove_contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_remove_contact(::nearby::sharing::analytics::proto::SharingLog_RemoveContact* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete remove_contact_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remove_contact_); } - if (remove_contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_RemoveContact>::GetOwningArena(remove_contact); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - remove_contact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remove_contact, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x08000000u; + SetHasBit(_impl_._has_bits_[0], 0x01000000U); } else { - _has_bits_[0] &= ~0x08000000u; + ClearHasBit(_impl_._has_bits_[0], 0x01000000U); } - remove_contact_ = remove_contact; + + _impl_.remove_contact_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveContact*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.remove_contact) } // optional .location.nearby.proto.sharing.LogSource log_source = 27; -inline bool SharingLog::_internal_has_log_source() const { - bool value = (_has_bits_[2] & 0x00400000u) != 0; +inline bool SharingLog::has_log_source() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x40000000U); return value; } -inline bool SharingLog::has_log_source() const { - return _internal_has_log_source(); -} inline void SharingLog::clear_log_source() { - log_source_ = 0; - _has_bits_[2] &= ~0x00400000u; -} -inline ::location::nearby::proto::sharing::LogSource SharingLog::_internal_log_source() const { - return static_cast< ::location::nearby::proto::sharing::LogSource >(log_source_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.log_source_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x40000000U); } inline ::location::nearby::proto::sharing::LogSource SharingLog::log_source() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.log_source) return _internal_log_source(); } -inline void SharingLog::_internal_set_log_source(::location::nearby::proto::sharing::LogSource value) { - assert(::location::nearby::proto::sharing::LogSource_IsValid(value)); - _has_bits_[2] |= 0x00400000u; - log_source_ = value; -} inline void SharingLog::set_log_source(::location::nearby::proto::sharing::LogSource value) { _internal_set_log_source(value); + SetHasBit(_impl_._has_bits_[0], 0x40000000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.log_source) } +inline ::location::nearby::proto::sharing::LogSource SharingLog::_internal_log_source() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::LogSource>(_impl_.log_source_); +} +inline void SharingLog::_internal_set_log_source(::location::nearby::proto::sharing::LogSource value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::LogSource_internal_data_)); + _impl_.log_source_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.FastShareServerResponse fast_share_server_response = 28; -inline bool SharingLog::_internal_has_fast_share_server_response() const { - bool value = (_has_bits_[0] & 0x10000000u) != 0; - PROTOBUF_ASSUME(!value || fast_share_server_response_ != nullptr); +inline bool SharingLog::has_fast_share_server_response() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x02000000U); + PROTOBUF_ASSUME(!value || _impl_.fast_share_server_response_ != nullptr); return value; } -inline bool SharingLog::has_fast_share_server_response() const { - return _internal_has_fast_share_server_response(); -} inline void SharingLog::clear_fast_share_server_response() { - if (fast_share_server_response_ != nullptr) fast_share_server_response_->Clear(); - _has_bits_[0] &= ~0x10000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.fast_share_server_response_ != nullptr) _impl_.fast_share_server_response_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x02000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& SharingLog::_internal_fast_share_server_response() const { - const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* p = fast_share_server_response_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_FastShareServerResponse_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* p = _impl_.fast_share_server_response_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_FastShareServerResponse_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& SharingLog::fast_share_server_response() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse& SharingLog::fast_share_server_response() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.fast_share_server_response) return _internal_fast_share_server_response(); } inline void SharingLog::unsafe_arena_set_allocated_fast_share_server_response( - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* fast_share_server_response) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fast_share_server_response_); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fast_share_server_response_); } - fast_share_server_response_ = fast_share_server_response; - if (fast_share_server_response) { - _has_bits_[0] |= 0x10000000u; + _impl_.fast_share_server_response_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x02000000U); } else { - _has_bits_[0] &= ~0x10000000u; + ClearHasBit(_impl_._has_bits_[0], 0x02000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.fast_share_server_response) } -inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* SharingLog::release_fast_share_server_response() { - _has_bits_[0] &= ~0x10000000u; - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* temp = fast_share_server_response_; - fast_share_server_response_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE SharingLog::release_fast_share_server_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x02000000U); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* released = _impl_.fast_share_server_response_; + _impl_.fast_share_server_response_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* SharingLog::unsafe_arena_release_fast_share_server_response() { +inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_fast_share_server_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.fast_share_server_response) - _has_bits_[0] &= ~0x10000000u; - ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* temp = fast_share_server_response_; - fast_share_server_response_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x02000000U); + ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* temp = _impl_.fast_share_server_response_; + _impl_.fast_share_server_response_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* SharingLog::_internal_mutable_fast_share_server_response() { - _has_bits_[0] |= 0x10000000u; - if (fast_share_server_response_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>(GetArenaForAllocation()); - fast_share_server_response_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NONNULL SharingLog::_internal_mutable_fast_share_server_response() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.fast_share_server_response_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>(GetArena()); + _impl_.fast_share_server_response_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse*>(p); } - return fast_share_server_response_; + return _impl_.fast_share_server_response_; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* SharingLog::mutable_fast_share_server_response() { +inline ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NONNULL SharingLog::mutable_fast_share_server_response() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x02000000U); ::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* _msg = _internal_mutable_fast_share_server_response(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.fast_share_server_response) return _msg; } -inline void SharingLog::set_allocated_fast_share_server_response(::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* fast_share_server_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_fast_share_server_response(::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete fast_share_server_response_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fast_share_server_response_); } - if (fast_share_server_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse>::GetOwningArena(fast_share_server_response); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - fast_share_server_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, fast_share_server_response, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x10000000u; + SetHasBit(_impl_._has_bits_[0], 0x02000000U); } else { - _has_bits_[0] &= ~0x10000000u; + ClearHasBit(_impl_._has_bits_[0], 0x02000000U); } - fast_share_server_response_ = fast_share_server_response; + + _impl_.fast_share_server_response_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastShareServerResponse*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.fast_share_server_response) } // optional .nearby.sharing.analytics.proto.SharingLog.SendStart send_start = 29; -inline bool SharingLog::_internal_has_send_start() const { - bool value = (_has_bits_[0] & 0x20000000u) != 0; - PROTOBUF_ASSUME(!value || send_start_ != nullptr); +inline bool SharingLog::has_send_start() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x04000000U); + PROTOBUF_ASSUME(!value || _impl_.send_start_ != nullptr); return value; } -inline bool SharingLog::has_send_start() const { - return _internal_has_send_start(); -} inline void SharingLog::clear_send_start() { - if (send_start_ != nullptr) send_start_->Clear(); - _has_bits_[0] &= ~0x20000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_start_ != nullptr) _impl_.send_start_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x04000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendStart& SharingLog::_internal_send_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendStart* p = send_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendStart* p = _impl_.send_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendStart& SharingLog::send_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendStart& SharingLog::send_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_start) return _internal_send_start(); } inline void SharingLog::unsafe_arena_set_allocated_send_start( - ::nearby::sharing::analytics::proto::SharingLog_SendStart* send_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_start_); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_start_); } - send_start_ = send_start; - if (send_start) { - _has_bits_[0] |= 0x20000000u; + _impl_.send_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); } else { - _has_bits_[0] &= ~0x20000000u; + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* SharingLog::release_send_start() { - _has_bits_[0] &= ~0x20000000u; - ::nearby::sharing::analytics::proto::SharingLog_SendStart* temp = send_start_; - send_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE SharingLog::release_send_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* released = _impl_.send_start_; + _impl_.send_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* SharingLog::unsafe_arena_release_send_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_start) - _has_bits_[0] &= ~0x20000000u; - ::nearby::sharing::analytics::proto::SharingLog_SendStart* temp = send_start_; - send_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); + ::nearby::sharing::analytics::proto::SharingLog_SendStart* temp = _impl_.send_start_; + _impl_.send_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* SharingLog::_internal_mutable_send_start() { - _has_bits_[0] |= 0x20000000u; - if (send_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendStart>(GetArenaForAllocation()); - send_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendStart>(GetArena()); + _impl_.send_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendStart*>(p); } - return send_start_; + return _impl_.send_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* SharingLog::mutable_send_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NONNULL SharingLog::mutable_send_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); ::nearby::sharing::analytics::proto::SharingLog_SendStart* _msg = _internal_mutable_send_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_start) return _msg; } -inline void SharingLog::set_allocated_send_start(::nearby::sharing::analytics::proto::SharingLog_SendStart* send_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_start(::nearby::sharing::analytics::proto::SharingLog_SendStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_start_); } - if (send_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendStart>::GetOwningArena(send_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x20000000u; + SetHasBit(_impl_._has_bits_[0], 0x04000000U); } else { - _has_bits_[0] &= ~0x20000000u; + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); } - send_start_ = send_start; + + _impl_.send_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_start) } // optional .nearby.sharing.analytics.proto.SharingLog.AcceptFastInitialization accept_fast_initialization = 30; -inline bool SharingLog::_internal_has_accept_fast_initialization() const { - bool value = (_has_bits_[0] & 0x40000000u) != 0; - PROTOBUF_ASSUME(!value || accept_fast_initialization_ != nullptr); +inline bool SharingLog::has_accept_fast_initialization() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x08000000U); + PROTOBUF_ASSUME(!value || _impl_.accept_fast_initialization_ != nullptr); return value; } -inline bool SharingLog::has_accept_fast_initialization() const { - return _internal_has_accept_fast_initialization(); -} inline void SharingLog::clear_accept_fast_initialization() { - if (accept_fast_initialization_ != nullptr) accept_fast_initialization_->Clear(); - _has_bits_[0] &= ~0x40000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.accept_fast_initialization_ != nullptr) _impl_.accept_fast_initialization_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x08000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& SharingLog::_internal_accept_fast_initialization() const { - const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* p = accept_fast_initialization_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AcceptFastInitialization_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* p = _impl_.accept_fast_initialization_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AcceptFastInitialization_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& SharingLog::accept_fast_initialization() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization& SharingLog::accept_fast_initialization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.accept_fast_initialization) return _internal_accept_fast_initialization(); } inline void SharingLog::unsafe_arena_set_allocated_accept_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* accept_fast_initialization) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(accept_fast_initialization_); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accept_fast_initialization_); } - accept_fast_initialization_ = accept_fast_initialization; - if (accept_fast_initialization) { - _has_bits_[0] |= 0x40000000u; + _impl_.accept_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); } else { - _has_bits_[0] &= ~0x40000000u; + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.accept_fast_initialization) } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* SharingLog::release_accept_fast_initialization() { - _has_bits_[0] &= ~0x40000000u; - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* temp = accept_fast_initialization_; - accept_fast_initialization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE SharingLog::release_accept_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* released = _impl_.accept_fast_initialization_; + _impl_.accept_fast_initialization_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* SharingLog::unsafe_arena_release_accept_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_accept_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.accept_fast_initialization) - _has_bits_[0] &= ~0x40000000u; - ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* temp = accept_fast_initialization_; - accept_fast_initialization_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); + ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* temp = _impl_.accept_fast_initialization_; + _impl_.accept_fast_initialization_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* SharingLog::_internal_mutable_accept_fast_initialization() { - _has_bits_[0] |= 0x40000000u; - if (accept_fast_initialization_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>(GetArenaForAllocation()); - accept_fast_initialization_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL SharingLog::_internal_mutable_accept_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.accept_fast_initialization_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>(GetArena()); + _impl_.accept_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization*>(p); } - return accept_fast_initialization_; + return _impl_.accept_fast_initialization_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* SharingLog::mutable_accept_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NONNULL SharingLog::mutable_accept_fast_initialization() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); ::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* _msg = _internal_mutable_accept_fast_initialization(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.accept_fast_initialization) return _msg; } -inline void SharingLog::set_allocated_accept_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* accept_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_accept_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete accept_fast_initialization_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accept_fast_initialization_); } - if (accept_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization>::GetOwningArena(accept_fast_initialization); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - accept_fast_initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, accept_fast_initialization, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x40000000u; + SetHasBit(_impl_._has_bits_[0], 0x08000000U); } else { - _has_bits_[0] &= ~0x40000000u; + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); } - accept_fast_initialization_ = accept_fast_initialization; + + _impl_.accept_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AcceptFastInitialization*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.accept_fast_initialization) } // optional .nearby.sharing.analytics.proto.SharingLog.SetDataUsage set_data_usage = 31; -inline bool SharingLog::_internal_has_set_data_usage() const { - bool value = (_has_bits_[0] & 0x80000000u) != 0; - PROTOBUF_ASSUME(!value || set_data_usage_ != nullptr); +inline bool SharingLog::has_set_data_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x10000000U); + PROTOBUF_ASSUME(!value || _impl_.set_data_usage_ != nullptr); return value; } -inline bool SharingLog::has_set_data_usage() const { - return _internal_has_set_data_usage(); -} inline void SharingLog::clear_set_data_usage() { - if (set_data_usage_ != nullptr) set_data_usage_->Clear(); - _has_bits_[0] &= ~0x80000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_data_usage_ != nullptr) _impl_.set_data_usage_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x10000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& SharingLog::_internal_set_data_usage() const { - const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* p = set_data_usage_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SetDataUsage_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* p = _impl_.set_data_usage_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SetDataUsage_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& SharingLog::set_data_usage() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage& SharingLog::set_data_usage() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.set_data_usage) return _internal_set_data_usage(); } inline void SharingLog::unsafe_arena_set_allocated_set_data_usage( - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* set_data_usage) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_data_usage_); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_data_usage_); } - set_data_usage_ = set_data_usage; - if (set_data_usage) { - _has_bits_[0] |= 0x80000000u; + _impl_.set_data_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); } else { - _has_bits_[0] &= ~0x80000000u; + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_data_usage) } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* SharingLog::release_set_data_usage() { - _has_bits_[0] &= ~0x80000000u; - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* temp = set_data_usage_; - set_data_usage_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE SharingLog::release_set_data_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* released = _impl_.set_data_usage_; + _impl_.set_data_usage_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* SharingLog::unsafe_arena_release_set_data_usage() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_set_data_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.set_data_usage) - _has_bits_[0] &= ~0x80000000u; - ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* temp = set_data_usage_; - set_data_usage_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); + ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* temp = _impl_.set_data_usage_; + _impl_.set_data_usage_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* SharingLog::_internal_mutable_set_data_usage() { - _has_bits_[0] |= 0x80000000u; - if (set_data_usage_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>(GetArenaForAllocation()); - set_data_usage_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NONNULL SharingLog::_internal_mutable_set_data_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_data_usage_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>(GetArena()); + _impl_.set_data_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage*>(p); } - return set_data_usage_; + return _impl_.set_data_usage_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* SharingLog::mutable_set_data_usage() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NONNULL SharingLog::mutable_set_data_usage() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); ::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* _msg = _internal_mutable_set_data_usage(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.set_data_usage) return _msg; } -inline void SharingLog::set_allocated_set_data_usage(::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* set_data_usage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_set_data_usage(::nearby::sharing::analytics::proto::SharingLog_SetDataUsage* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete set_data_usage_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_data_usage_); } - if (set_data_usage) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage>::GetOwningArena(set_data_usage); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - set_data_usage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_data_usage, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x80000000u; + SetHasBit(_impl_._has_bits_[0], 0x10000000U); } else { - _has_bits_[0] &= ~0x80000000u; + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); } - set_data_usage_ = set_data_usage; + + _impl_.set_data_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDataUsage*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_data_usage) } // optional string version = 32; -inline bool SharingLog::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SharingLog::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x80000000U); return value; } -inline bool SharingLog::has_version() const { - return _internal_has_version(); -} inline void SharingLog::clear_version() { - version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x80000000U); } -inline const std::string& SharingLog::version() const { +inline const ::std::string& SharingLog::version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog::set_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog::set_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x80000000U); + _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.version) } -inline std::string* SharingLog::mutable_version() { - std::string* _s = _internal_mutable_version(); +inline ::std::string* PROTOBUF_NONNULL SharingLog::mutable_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x80000000U); + ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.version) return _s; } -inline const std::string& SharingLog::_internal_version() const { - return version_.Get(); +inline const ::std::string& SharingLog::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_.Get(); } -inline void SharingLog::_internal_set_version(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog::_internal_set_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.Set(value, GetArena()); } -inline std::string* SharingLog::_internal_mutable_version() { - _has_bits_[0] |= 0x00000001u; - return version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog::_internal_mutable_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.version_.Mutable( GetArena()); } -inline std::string* SharingLog::release_version() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog::release_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.version) - if (!_internal_has_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x80000000U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x80000000U); + auto* released = _impl_.version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog::set_allocated_version(std::string* version) { - if (version != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SharingLog::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x80000000U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x80000000U); } - version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.version) } // optional .location.nearby.proto.sharing.EventCategory event_category = 33; -inline bool SharingLog::_internal_has_event_category() const { - bool value = (_has_bits_[2] & 0x00800000u) != 0; +inline bool SharingLog::has_event_category() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00800000U); return value; } -inline bool SharingLog::has_event_category() const { - return _internal_has_event_category(); -} inline void SharingLog::clear_event_category() { - event_category_ = 0; - _has_bits_[2] &= ~0x00800000u; -} -inline ::location::nearby::proto::sharing::EventCategory SharingLog::_internal_event_category() const { - return static_cast< ::location::nearby::proto::sharing::EventCategory >(event_category_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_category_ = 0; + ClearHasBit(_impl_._has_bits_[2], + 0x00800000U); } inline ::location::nearby::proto::sharing::EventCategory SharingLog::event_category() const { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.event_category) return _internal_event_category(); } -inline void SharingLog::_internal_set_event_category(::location::nearby::proto::sharing::EventCategory value) { - assert(::location::nearby::proto::sharing::EventCategory_IsValid(value)); - _has_bits_[2] |= 0x00800000u; - event_category_ = value; -} inline void SharingLog::set_event_category(::location::nearby::proto::sharing::EventCategory value) { _internal_set_event_category(value); + SetHasBit(_impl_._has_bits_[2], 0x00800000U); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.event_category) } +inline ::location::nearby::proto::sharing::EventCategory SharingLog::_internal_event_category() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::location::nearby::proto::sharing::EventCategory>(_impl_.event_category_); +} +inline void SharingLog::_internal_set_event_category(::location::nearby::proto::sharing::EventCategory value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::location::nearby::proto::sharing::EventCategory_internal_data_)); + _impl_.event_category_ = value; +} // optional .nearby.sharing.analytics.proto.SharingLog.DismissFastInitialization dismiss_fast_initialization = 34; -inline bool SharingLog::_internal_has_dismiss_fast_initialization() const { - bool value = (_has_bits_[1] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || dismiss_fast_initialization_ != nullptr); +inline bool SharingLog::has_dismiss_fast_initialization() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.dismiss_fast_initialization_ != nullptr); return value; } -inline bool SharingLog::has_dismiss_fast_initialization() const { - return _internal_has_dismiss_fast_initialization(); -} inline void SharingLog::clear_dismiss_fast_initialization() { - if (dismiss_fast_initialization_ != nullptr) dismiss_fast_initialization_->Clear(); - _has_bits_[1] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dismiss_fast_initialization_ != nullptr) _impl_.dismiss_fast_initialization_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000004U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& SharingLog::_internal_dismiss_fast_initialization() const { - const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* p = dismiss_fast_initialization_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DismissFastInitialization_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* p = _impl_.dismiss_fast_initialization_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DismissFastInitialization_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& SharingLog::dismiss_fast_initialization() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization& SharingLog::dismiss_fast_initialization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.dismiss_fast_initialization) return _internal_dismiss_fast_initialization(); } inline void SharingLog::unsafe_arena_set_allocated_dismiss_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* dismiss_fast_initialization) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dismiss_fast_initialization_); + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dismiss_fast_initialization_); } - dismiss_fast_initialization_ = dismiss_fast_initialization; - if (dismiss_fast_initialization) { - _has_bits_[1] |= 0x00000001u; + _impl_.dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000004U); } else { - _has_bits_[1] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[1], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.dismiss_fast_initialization) } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* SharingLog::release_dismiss_fast_initialization() { - _has_bits_[1] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* temp = dismiss_fast_initialization_; - dismiss_fast_initialization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE SharingLog::release_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* released = _impl_.dismiss_fast_initialization_; + _impl_.dismiss_fast_initialization_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* SharingLog::unsafe_arena_release_dismiss_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.dismiss_fast_initialization) - _has_bits_[1] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* temp = dismiss_fast_initialization_; - dismiss_fast_initialization_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* temp = _impl_.dismiss_fast_initialization_; + _impl_.dismiss_fast_initialization_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* SharingLog::_internal_mutable_dismiss_fast_initialization() { - _has_bits_[1] |= 0x00000001u; - if (dismiss_fast_initialization_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>(GetArenaForAllocation()); - dismiss_fast_initialization_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NONNULL SharingLog::_internal_mutable_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dismiss_fast_initialization_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>(GetArena()); + _impl_.dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization*>(p); } - return dismiss_fast_initialization_; + return _impl_.dismiss_fast_initialization_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* SharingLog::mutable_dismiss_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NONNULL SharingLog::mutable_dismiss_fast_initialization() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000004U); ::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* _msg = _internal_mutable_dismiss_fast_initialization(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.dismiss_fast_initialization) return _msg; } -inline void SharingLog::set_allocated_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* dismiss_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete dismiss_fast_initialization_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dismiss_fast_initialization_); } - if (dismiss_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization>::GetOwningArena(dismiss_fast_initialization); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - dismiss_fast_initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, dismiss_fast_initialization, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[1], 0x00000004U); } else { - _has_bits_[1] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[1], 0x00000004U); } - dismiss_fast_initialization_ = dismiss_fast_initialization; + + _impl_.dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissFastInitialization*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.dismiss_fast_initialization) } // optional .nearby.sharing.analytics.proto.SharingLog.CancelConnection cancel_connection = 35; -inline bool SharingLog::_internal_has_cancel_connection() const { - bool value = (_has_bits_[1] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || cancel_connection_ != nullptr); +inline bool SharingLog::has_cancel_connection() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.cancel_connection_ != nullptr); return value; } -inline bool SharingLog::has_cancel_connection() const { - return _internal_has_cancel_connection(); -} inline void SharingLog::clear_cancel_connection() { - if (cancel_connection_ != nullptr) cancel_connection_->Clear(); - _has_bits_[1] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_connection_ != nullptr) _impl_.cancel_connection_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000008U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& SharingLog::_internal_cancel_connection() const { - const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* p = cancel_connection_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CancelConnection_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* p = _impl_.cancel_connection_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CancelConnection_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& SharingLog::cancel_connection() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CancelConnection& SharingLog::cancel_connection() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cancel_connection) return _internal_cancel_connection(); } inline void SharingLog::unsafe_arena_set_allocated_cancel_connection( - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* cancel_connection) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancel_connection_); + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_connection_); } - cancel_connection_ = cancel_connection; - if (cancel_connection) { - _has_bits_[1] |= 0x00000002u; + _impl_.cancel_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelConnection*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000008U); } else { - _has_bits_[1] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[1], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_connection) } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* SharingLog::release_cancel_connection() { - _has_bits_[1] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* temp = cancel_connection_; - cancel_connection_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE SharingLog::release_cancel_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* released = _impl_.cancel_connection_; + _impl_.cancel_connection_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* SharingLog::unsafe_arena_release_cancel_connection() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cancel_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cancel_connection) - _has_bits_[1] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* temp = cancel_connection_; - cancel_connection_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* temp = _impl_.cancel_connection_; + _impl_.cancel_connection_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* SharingLog::_internal_mutable_cancel_connection() { - _has_bits_[1] |= 0x00000002u; - if (cancel_connection_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>(GetArenaForAllocation()); - cancel_connection_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NONNULL SharingLog::_internal_mutable_cancel_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cancel_connection_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>(GetArena()); + _impl_.cancel_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelConnection*>(p); } - return cancel_connection_; + return _impl_.cancel_connection_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* SharingLog::mutable_cancel_connection() { +inline ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NONNULL SharingLog::mutable_cancel_connection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000008U); ::nearby::sharing::analytics::proto::SharingLog_CancelConnection* _msg = _internal_mutable_cancel_connection(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cancel_connection) return _msg; } -inline void SharingLog::set_allocated_cancel_connection(::nearby::sharing::analytics::proto::SharingLog_CancelConnection* cancel_connection) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cancel_connection(::nearby::sharing::analytics::proto::SharingLog_CancelConnection* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cancel_connection_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cancel_connection_); } - if (cancel_connection) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CancelConnection>::GetOwningArena(cancel_connection); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cancel_connection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cancel_connection, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[1], 0x00000008U); } else { - _has_bits_[1] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[1], 0x00000008U); } - cancel_connection_ = cancel_connection; + + _impl_.cancel_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CancelConnection*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cancel_connection) } // optional .nearby.sharing.analytics.proto.SharingLog.DismissPrivacyNotification dismiss_privacy_notification = 36; -inline bool SharingLog::_internal_has_dismiss_privacy_notification() const { - bool value = (_has_bits_[1] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || dismiss_privacy_notification_ != nullptr); +inline bool SharingLog::has_dismiss_privacy_notification() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.dismiss_privacy_notification_ != nullptr); return value; } -inline bool SharingLog::has_dismiss_privacy_notification() const { - return _internal_has_dismiss_privacy_notification(); -} inline void SharingLog::clear_dismiss_privacy_notification() { - if (dismiss_privacy_notification_ != nullptr) dismiss_privacy_notification_->Clear(); - _has_bits_[1] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dismiss_privacy_notification_ != nullptr) _impl_.dismiss_privacy_notification_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000010U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& SharingLog::_internal_dismiss_privacy_notification() const { - const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* p = dismiss_privacy_notification_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DismissPrivacyNotification_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* p = _impl_.dismiss_privacy_notification_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DismissPrivacyNotification_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& SharingLog::dismiss_privacy_notification() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification& SharingLog::dismiss_privacy_notification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.dismiss_privacy_notification) return _internal_dismiss_privacy_notification(); } inline void SharingLog::unsafe_arena_set_allocated_dismiss_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* dismiss_privacy_notification) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dismiss_privacy_notification_); + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dismiss_privacy_notification_); } - dismiss_privacy_notification_ = dismiss_privacy_notification; - if (dismiss_privacy_notification) { - _has_bits_[1] |= 0x00000004u; + _impl_.dismiss_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000010U); } else { - _has_bits_[1] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[1], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.dismiss_privacy_notification) } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* SharingLog::release_dismiss_privacy_notification() { - _has_bits_[1] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* temp = dismiss_privacy_notification_; - dismiss_privacy_notification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE SharingLog::release_dismiss_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* released = _impl_.dismiss_privacy_notification_; + _impl_.dismiss_privacy_notification_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* SharingLog::unsafe_arena_release_dismiss_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_dismiss_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.dismiss_privacy_notification) - _has_bits_[1] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* temp = dismiss_privacy_notification_; - dismiss_privacy_notification_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* temp = _impl_.dismiss_privacy_notification_; + _impl_.dismiss_privacy_notification_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* SharingLog::_internal_mutable_dismiss_privacy_notification() { - _has_bits_[1] |= 0x00000004u; - if (dismiss_privacy_notification_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>(GetArenaForAllocation()); - dismiss_privacy_notification_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL SharingLog::_internal_mutable_dismiss_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dismiss_privacy_notification_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>(GetArena()); + _impl_.dismiss_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification*>(p); } - return dismiss_privacy_notification_; + return _impl_.dismiss_privacy_notification_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* SharingLog::mutable_dismiss_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NONNULL SharingLog::mutable_dismiss_privacy_notification() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000010U); ::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* _msg = _internal_mutable_dismiss_privacy_notification(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.dismiss_privacy_notification) return _msg; } -inline void SharingLog::set_allocated_dismiss_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* dismiss_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_dismiss_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete dismiss_privacy_notification_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dismiss_privacy_notification_); } - if (dismiss_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification>::GetOwningArena(dismiss_privacy_notification); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - dismiss_privacy_notification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, dismiss_privacy_notification, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[1], 0x00000010U); } else { - _has_bits_[1] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[1], 0x00000010U); } - dismiss_privacy_notification_ = dismiss_privacy_notification; + + _impl_.dismiss_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DismissPrivacyNotification*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.dismiss_privacy_notification) } // optional .nearby.sharing.analytics.proto.SharingLog.TapPrivacyNotification tap_privacy_notification = 37; -inline bool SharingLog::_internal_has_tap_privacy_notification() const { - bool value = (_has_bits_[1] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || tap_privacy_notification_ != nullptr); +inline bool SharingLog::has_tap_privacy_notification() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.tap_privacy_notification_ != nullptr); return value; } -inline bool SharingLog::has_tap_privacy_notification() const { - return _internal_has_tap_privacy_notification(); -} inline void SharingLog::clear_tap_privacy_notification() { - if (tap_privacy_notification_ != nullptr) tap_privacy_notification_->Clear(); - _has_bits_[1] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_privacy_notification_ != nullptr) _impl_.tap_privacy_notification_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000020U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& SharingLog::_internal_tap_privacy_notification() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* p = tap_privacy_notification_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapPrivacyNotification_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* p = _impl_.tap_privacy_notification_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapPrivacyNotification_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& SharingLog::tap_privacy_notification() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification& SharingLog::tap_privacy_notification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_privacy_notification) return _internal_tap_privacy_notification(); } inline void SharingLog::unsafe_arena_set_allocated_tap_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* tap_privacy_notification) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_privacy_notification_); + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_privacy_notification_); } - tap_privacy_notification_ = tap_privacy_notification; - if (tap_privacy_notification) { - _has_bits_[1] |= 0x00000008u; + _impl_.tap_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000020U); } else { - _has_bits_[1] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[1], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_privacy_notification) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* SharingLog::release_tap_privacy_notification() { - _has_bits_[1] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* temp = tap_privacy_notification_; - tap_privacy_notification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE SharingLog::release_tap_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* released = _impl_.tap_privacy_notification_; + _impl_.tap_privacy_notification_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* SharingLog::unsafe_arena_release_tap_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_privacy_notification) - _has_bits_[1] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* temp = tap_privacy_notification_; - tap_privacy_notification_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* temp = _impl_.tap_privacy_notification_; + _impl_.tap_privacy_notification_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* SharingLog::_internal_mutable_tap_privacy_notification() { - _has_bits_[1] |= 0x00000008u; - if (tap_privacy_notification_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>(GetArenaForAllocation()); - tap_privacy_notification_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_privacy_notification_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>(GetArena()); + _impl_.tap_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification*>(p); } - return tap_privacy_notification_; + return _impl_.tap_privacy_notification_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* SharingLog::mutable_tap_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NONNULL SharingLog::mutable_tap_privacy_notification() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000020U); ::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* _msg = _internal_mutable_tap_privacy_notification(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_privacy_notification) return _msg; } -inline void SharingLog::set_allocated_tap_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* tap_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_privacy_notification_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_privacy_notification_); } - if (tap_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification>::GetOwningArena(tap_privacy_notification); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_privacy_notification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_privacy_notification, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[1], 0x00000020U); } else { - _has_bits_[1] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[1], 0x00000020U); } - tap_privacy_notification_ = tap_privacy_notification; + + _impl_.tap_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapPrivacyNotification*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_privacy_notification) } // optional .nearby.sharing.analytics.proto.SharingLog.TapHelp tap_help = 38; -inline bool SharingLog::_internal_has_tap_help() const { - bool value = (_has_bits_[1] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || tap_help_ != nullptr); +inline bool SharingLog::has_tap_help() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.tap_help_ != nullptr); return value; } -inline bool SharingLog::has_tap_help() const { - return _internal_has_tap_help(); -} inline void SharingLog::clear_tap_help() { - if (tap_help_ != nullptr) tap_help_->Clear(); - _has_bits_[1] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_help_ != nullptr) _impl_.tap_help_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000040U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& SharingLog::_internal_tap_help() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapHelp* p = tap_help_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapHelp_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapHelp* p = _impl_.tap_help_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapHelp_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& SharingLog::tap_help() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapHelp& SharingLog::tap_help() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_help) return _internal_tap_help(); } inline void SharingLog::unsafe_arena_set_allocated_tap_help( - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* tap_help) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_help_); + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_help_); } - tap_help_ = tap_help; - if (tap_help) { - _has_bits_[1] |= 0x00000010u; + _impl_.tap_help_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapHelp*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000040U); } else { - _has_bits_[1] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[1], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_help) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* SharingLog::release_tap_help() { - _has_bits_[1] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* temp = tap_help_; - tap_help_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE SharingLog::release_tap_help() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* released = _impl_.tap_help_; + _impl_.tap_help_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* SharingLog::unsafe_arena_release_tap_help() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_help() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_help) - _has_bits_[1] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_TapHelp* temp = tap_help_; - tap_help_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_TapHelp* temp = _impl_.tap_help_; + _impl_.tap_help_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* SharingLog::_internal_mutable_tap_help() { - _has_bits_[1] |= 0x00000010u; - if (tap_help_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapHelp>(GetArenaForAllocation()); - tap_help_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_help() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_help_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapHelp>(GetArena()); + _impl_.tap_help_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapHelp*>(p); } - return tap_help_; + return _impl_.tap_help_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* SharingLog::mutable_tap_help() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NONNULL SharingLog::mutable_tap_help() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000040U); ::nearby::sharing::analytics::proto::SharingLog_TapHelp* _msg = _internal_mutable_tap_help(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_help) return _msg; } -inline void SharingLog::set_allocated_tap_help(::nearby::sharing::analytics::proto::SharingLog_TapHelp* tap_help) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_help(::nearby::sharing::analytics::proto::SharingLog_TapHelp* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_help_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_help_); } - if (tap_help) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapHelp>::GetOwningArena(tap_help); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_help = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_help, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[1], 0x00000040U); } else { - _has_bits_[1] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[1], 0x00000040U); } - tap_help_ = tap_help; + + _impl_.tap_help_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapHelp*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_help) } // optional .nearby.sharing.analytics.proto.SharingLog.TapFeedback tap_feedback = 39; -inline bool SharingLog::_internal_has_tap_feedback() const { - bool value = (_has_bits_[1] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || tap_feedback_ != nullptr); +inline bool SharingLog::has_tap_feedback() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.tap_feedback_ != nullptr); return value; } -inline bool SharingLog::has_tap_feedback() const { - return _internal_has_tap_feedback(); -} inline void SharingLog::clear_tap_feedback() { - if (tap_feedback_ != nullptr) tap_feedback_->Clear(); - _has_bits_[1] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_feedback_ != nullptr) _impl_.tap_feedback_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000080U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& SharingLog::_internal_tap_feedback() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* p = tap_feedback_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapFeedback_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* p = _impl_.tap_feedback_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapFeedback_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& SharingLog::tap_feedback() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapFeedback& SharingLog::tap_feedback() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_feedback) return _internal_tap_feedback(); } inline void SharingLog::unsafe_arena_set_allocated_tap_feedback( - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* tap_feedback) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_feedback_); + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_feedback_); } - tap_feedback_ = tap_feedback; - if (tap_feedback) { - _has_bits_[1] |= 0x00000020u; + _impl_.tap_feedback_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapFeedback*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000080U); } else { - _has_bits_[1] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[1], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_feedback) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* SharingLog::release_tap_feedback() { - _has_bits_[1] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* temp = tap_feedback_; - tap_feedback_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE SharingLog::release_tap_feedback() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* released = _impl_.tap_feedback_; + _impl_.tap_feedback_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* SharingLog::unsafe_arena_release_tap_feedback() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_feedback() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_feedback) - _has_bits_[1] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* temp = tap_feedback_; - tap_feedback_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* temp = _impl_.tap_feedback_; + _impl_.tap_feedback_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* SharingLog::_internal_mutable_tap_feedback() { - _has_bits_[1] |= 0x00000020u; - if (tap_feedback_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>(GetArenaForAllocation()); - tap_feedback_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_feedback() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_feedback_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>(GetArena()); + _impl_.tap_feedback_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapFeedback*>(p); } - return tap_feedback_; + return _impl_.tap_feedback_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* SharingLog::mutable_tap_feedback() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NONNULL SharingLog::mutable_tap_feedback() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000080U); ::nearby::sharing::analytics::proto::SharingLog_TapFeedback* _msg = _internal_mutable_tap_feedback(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_feedback) return _msg; } -inline void SharingLog::set_allocated_tap_feedback(::nearby::sharing::analytics::proto::SharingLog_TapFeedback* tap_feedback) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_feedback(::nearby::sharing::analytics::proto::SharingLog_TapFeedback* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_feedback_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_feedback_); } - if (tap_feedback) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapFeedback>::GetOwningArena(tap_feedback); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_feedback = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_feedback, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[1], 0x00000080U); } else { - _has_bits_[1] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[1], 0x00000080U); } - tap_feedback_ = tap_feedback; + + _impl_.tap_feedback_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapFeedback*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_feedback) } // optional .nearby.sharing.analytics.proto.SharingLog.AddQuickSettingsTile add_quick_settings_tile = 40; -inline bool SharingLog::_internal_has_add_quick_settings_tile() const { - bool value = (_has_bits_[1] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || add_quick_settings_tile_ != nullptr); +inline bool SharingLog::has_add_quick_settings_tile() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000100U); + PROTOBUF_ASSUME(!value || _impl_.add_quick_settings_tile_ != nullptr); return value; } -inline bool SharingLog::has_add_quick_settings_tile() const { - return _internal_has_add_quick_settings_tile(); -} inline void SharingLog::clear_add_quick_settings_tile() { - if (add_quick_settings_tile_ != nullptr) add_quick_settings_tile_->Clear(); - _has_bits_[1] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.add_quick_settings_tile_ != nullptr) _impl_.add_quick_settings_tile_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000100U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& SharingLog::_internal_add_quick_settings_tile() const { - const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* p = add_quick_settings_tile_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AddQuickSettingsTile_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* p = _impl_.add_quick_settings_tile_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AddQuickSettingsTile_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& SharingLog::add_quick_settings_tile() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile& SharingLog::add_quick_settings_tile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.add_quick_settings_tile) return _internal_add_quick_settings_tile(); } inline void SharingLog::unsafe_arena_set_allocated_add_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* add_quick_settings_tile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(add_quick_settings_tile_); + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.add_quick_settings_tile_); } - add_quick_settings_tile_ = add_quick_settings_tile; - if (add_quick_settings_tile) { - _has_bits_[1] |= 0x00000040u; + _impl_.add_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000100U); } else { - _has_bits_[1] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[1], 0x00000100U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.add_quick_settings_tile) } -inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* SharingLog::release_add_quick_settings_tile() { - _has_bits_[1] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* temp = add_quick_settings_tile_; - add_quick_settings_tile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::release_add_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* released = _impl_.add_quick_settings_tile_; + _impl_.add_quick_settings_tile_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* SharingLog::unsafe_arena_release_add_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_add_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.add_quick_settings_tile) - _has_bits_[1] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* temp = add_quick_settings_tile_; - add_quick_settings_tile_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* temp = _impl_.add_quick_settings_tile_; + _impl_.add_quick_settings_tile_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* SharingLog::_internal_mutable_add_quick_settings_tile() { - _has_bits_[1] |= 0x00000040u; - if (add_quick_settings_tile_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>(GetArenaForAllocation()); - add_quick_settings_tile_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL SharingLog::_internal_mutable_add_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.add_quick_settings_tile_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>(GetArena()); + _impl_.add_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile*>(p); } - return add_quick_settings_tile_; + return _impl_.add_quick_settings_tile_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* SharingLog::mutable_add_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NONNULL SharingLog::mutable_add_quick_settings_tile() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000100U); ::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* _msg = _internal_mutable_add_quick_settings_tile(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.add_quick_settings_tile) return _msg; } -inline void SharingLog::set_allocated_add_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* add_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_add_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete add_quick_settings_tile_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.add_quick_settings_tile_); } - if (add_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile>::GetOwningArena(add_quick_settings_tile); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - add_quick_settings_tile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, add_quick_settings_tile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[1], 0x00000100U); } else { - _has_bits_[1] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[1], 0x00000100U); } - add_quick_settings_tile_ = add_quick_settings_tile; + + _impl_.add_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AddQuickSettingsTile*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.add_quick_settings_tile) } // optional .nearby.sharing.analytics.proto.SharingLog.RemoveQuickSettingsTile remove_quick_settings_tile = 41; -inline bool SharingLog::_internal_has_remove_quick_settings_tile() const { - bool value = (_has_bits_[1] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || remove_quick_settings_tile_ != nullptr); +inline bool SharingLog::has_remove_quick_settings_tile() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000200U); + PROTOBUF_ASSUME(!value || _impl_.remove_quick_settings_tile_ != nullptr); return value; } -inline bool SharingLog::has_remove_quick_settings_tile() const { - return _internal_has_remove_quick_settings_tile(); -} inline void SharingLog::clear_remove_quick_settings_tile() { - if (remove_quick_settings_tile_ != nullptr) remove_quick_settings_tile_->Clear(); - _has_bits_[1] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remove_quick_settings_tile_ != nullptr) _impl_.remove_quick_settings_tile_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000200U); } inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& SharingLog::_internal_remove_quick_settings_tile() const { - const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* p = remove_quick_settings_tile_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_RemoveQuickSettingsTile_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* p = _impl_.remove_quick_settings_tile_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_RemoveQuickSettingsTile_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& SharingLog::remove_quick_settings_tile() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile& SharingLog::remove_quick_settings_tile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.remove_quick_settings_tile) return _internal_remove_quick_settings_tile(); } inline void SharingLog::unsafe_arena_set_allocated_remove_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* remove_quick_settings_tile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(remove_quick_settings_tile_); + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remove_quick_settings_tile_); } - remove_quick_settings_tile_ = remove_quick_settings_tile; - if (remove_quick_settings_tile) { - _has_bits_[1] |= 0x00000080u; + _impl_.remove_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000200U); } else { - _has_bits_[1] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[1], 0x00000200U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.remove_quick_settings_tile) } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* SharingLog::release_remove_quick_settings_tile() { - _has_bits_[1] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* temp = remove_quick_settings_tile_; - remove_quick_settings_tile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::release_remove_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* released = _impl_.remove_quick_settings_tile_; + _impl_.remove_quick_settings_tile_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* SharingLog::unsafe_arena_release_remove_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_remove_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.remove_quick_settings_tile) - _has_bits_[1] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* temp = remove_quick_settings_tile_; - remove_quick_settings_tile_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* temp = _impl_.remove_quick_settings_tile_; + _impl_.remove_quick_settings_tile_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* SharingLog::_internal_mutable_remove_quick_settings_tile() { - _has_bits_[1] |= 0x00000080u; - if (remove_quick_settings_tile_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>(GetArenaForAllocation()); - remove_quick_settings_tile_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL SharingLog::_internal_mutable_remove_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.remove_quick_settings_tile_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>(GetArena()); + _impl_.remove_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile*>(p); } - return remove_quick_settings_tile_; + return _impl_.remove_quick_settings_tile_; } -inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* SharingLog::mutable_remove_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NONNULL SharingLog::mutable_remove_quick_settings_tile() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000200U); ::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* _msg = _internal_mutable_remove_quick_settings_tile(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.remove_quick_settings_tile) return _msg; } -inline void SharingLog::set_allocated_remove_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* remove_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_remove_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete remove_quick_settings_tile_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.remove_quick_settings_tile_); } - if (remove_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile>::GetOwningArena(remove_quick_settings_tile); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - remove_quick_settings_tile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remove_quick_settings_tile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[1], 0x00000200U); } else { - _has_bits_[1] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[1], 0x00000200U); } - remove_quick_settings_tile_ = remove_quick_settings_tile; + + _impl_.remove_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RemoveQuickSettingsTile*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.remove_quick_settings_tile) } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchPhoneConsent launch_phone_consent = 42; -inline bool SharingLog::_internal_has_launch_phone_consent() const { - bool value = (_has_bits_[1] & 0x00000100u) != 0; - PROTOBUF_ASSUME(!value || launch_phone_consent_ != nullptr); +inline bool SharingLog::has_launch_phone_consent() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000400U); + PROTOBUF_ASSUME(!value || _impl_.launch_phone_consent_ != nullptr); return value; } -inline bool SharingLog::has_launch_phone_consent() const { - return _internal_has_launch_phone_consent(); -} inline void SharingLog::clear_launch_phone_consent() { - if (launch_phone_consent_ != nullptr) launch_phone_consent_->Clear(); - _has_bits_[1] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_phone_consent_ != nullptr) _impl_.launch_phone_consent_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000400U); } inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& SharingLog::_internal_launch_phone_consent() const { - const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* p = launch_phone_consent_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_LaunchPhoneConsent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* p = _impl_.launch_phone_consent_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_LaunchPhoneConsent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& SharingLog::launch_phone_consent() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent& SharingLog::launch_phone_consent() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.launch_phone_consent) return _internal_launch_phone_consent(); } inline void SharingLog::unsafe_arena_set_allocated_launch_phone_consent( - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* launch_phone_consent) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(launch_phone_consent_); + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_phone_consent_); } - launch_phone_consent_ = launch_phone_consent; - if (launch_phone_consent) { - _has_bits_[1] |= 0x00000100u; + _impl_.launch_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000400U); } else { - _has_bits_[1] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[1], 0x00000400U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_phone_consent) } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* SharingLog::release_launch_phone_consent() { - _has_bits_[1] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* temp = launch_phone_consent_; - launch_phone_consent_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE SharingLog::release_launch_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* released = _impl_.launch_phone_consent_; + _impl_.launch_phone_consent_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* SharingLog::unsafe_arena_release_launch_phone_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_launch_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.launch_phone_consent) - _has_bits_[1] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* temp = launch_phone_consent_; - launch_phone_consent_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* temp = _impl_.launch_phone_consent_; + _impl_.launch_phone_consent_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* SharingLog::_internal_mutable_launch_phone_consent() { - _has_bits_[1] |= 0x00000100u; - if (launch_phone_consent_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>(GetArenaForAllocation()); - launch_phone_consent_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL SharingLog::_internal_mutable_launch_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_phone_consent_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>(GetArena()); + _impl_.launch_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent*>(p); } - return launch_phone_consent_; + return _impl_.launch_phone_consent_; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* SharingLog::mutable_launch_phone_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NONNULL SharingLog::mutable_launch_phone_consent() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000400U); ::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* _msg = _internal_mutable_launch_phone_consent(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.launch_phone_consent) return _msg; } -inline void SharingLog::set_allocated_launch_phone_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* launch_phone_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_launch_phone_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete launch_phone_consent_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_phone_consent_); } - if (launch_phone_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent>::GetOwningArena(launch_phone_consent); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - launch_phone_consent = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, launch_phone_consent, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000100u; + SetHasBit(_impl_._has_bits_[1], 0x00000400U); } else { - _has_bits_[1] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[1], 0x00000400U); } - launch_phone_consent_ = launch_phone_consent; + + _impl_.launch_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchPhoneConsent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_phone_consent) } // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsTile tap_quick_settings_tile = 43; -inline bool SharingLog::_internal_has_tap_quick_settings_tile() const { - bool value = (_has_bits_[1] & 0x00000200u) != 0; - PROTOBUF_ASSUME(!value || tap_quick_settings_tile_ != nullptr); +inline bool SharingLog::has_tap_quick_settings_tile() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000800U); + PROTOBUF_ASSUME(!value || _impl_.tap_quick_settings_tile_ != nullptr); return value; } -inline bool SharingLog::has_tap_quick_settings_tile() const { - return _internal_has_tap_quick_settings_tile(); -} inline void SharingLog::clear_tap_quick_settings_tile() { - if (tap_quick_settings_tile_ != nullptr) tap_quick_settings_tile_->Clear(); - _has_bits_[1] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_quick_settings_tile_ != nullptr) _impl_.tap_quick_settings_tile_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000800U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& SharingLog::_internal_tap_quick_settings_tile() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* p = tap_quick_settings_tile_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapQuickSettingsTile_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* p = _impl_.tap_quick_settings_tile_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapQuickSettingsTile_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& SharingLog::tap_quick_settings_tile() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile& SharingLog::tap_quick_settings_tile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_tile) return _internal_tap_quick_settings_tile(); } inline void SharingLog::unsafe_arena_set_allocated_tap_quick_settings_tile( - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* tap_quick_settings_tile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_quick_settings_tile_); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_quick_settings_tile_); } - tap_quick_settings_tile_ = tap_quick_settings_tile; - if (tap_quick_settings_tile) { - _has_bits_[1] |= 0x00000200u; + _impl_.tap_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000800U); } else { - _has_bits_[1] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[1], 0x00000800U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_tile) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* SharingLog::release_tap_quick_settings_tile() { - _has_bits_[1] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* temp = tap_quick_settings_tile_; - tap_quick_settings_tile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::release_tap_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* released = _impl_.tap_quick_settings_tile_; + _impl_.tap_quick_settings_tile_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* SharingLog::unsafe_arena_release_tap_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_tile) - _has_bits_[1] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* temp = tap_quick_settings_tile_; - tap_quick_settings_tile_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* temp = _impl_.tap_quick_settings_tile_; + _impl_.tap_quick_settings_tile_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* SharingLog::_internal_mutable_tap_quick_settings_tile() { - _has_bits_[1] |= 0x00000200u; - if (tap_quick_settings_tile_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>(GetArenaForAllocation()); - tap_quick_settings_tile_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_quick_settings_tile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_quick_settings_tile_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>(GetArena()); + _impl_.tap_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile*>(p); } - return tap_quick_settings_tile_; + return _impl_.tap_quick_settings_tile_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* SharingLog::mutable_tap_quick_settings_tile() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NONNULL SharingLog::mutable_tap_quick_settings_tile() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000800U); ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* _msg = _internal_mutable_tap_quick_settings_tile(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_tile) return _msg; } -inline void SharingLog::set_allocated_tap_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* tap_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_quick_settings_tile(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_quick_settings_tile_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_quick_settings_tile_); } - if (tap_quick_settings_tile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile>::GetOwningArena(tap_quick_settings_tile); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_quick_settings_tile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_quick_settings_tile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000200u; + SetHasBit(_impl_._has_bits_[1], 0x00000800U); } else { - _has_bits_[1] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[1], 0x00000800U); } - tap_quick_settings_tile_ = tap_quick_settings_tile; + + _impl_.tap_quick_settings_tile_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsTile*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_tile) } // optional .nearby.sharing.analytics.proto.SharingLog.InstallAPKStatus install_apk_status = 44; -inline bool SharingLog::_internal_has_install_apk_status() const { - bool value = (_has_bits_[1] & 0x00000400u) != 0; - PROTOBUF_ASSUME(!value || install_apk_status_ != nullptr); +inline bool SharingLog::has_install_apk_status() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00001000U); + PROTOBUF_ASSUME(!value || _impl_.install_apk_status_ != nullptr); return value; } -inline bool SharingLog::has_install_apk_status() const { - return _internal_has_install_apk_status(); -} inline void SharingLog::clear_install_apk_status() { - if (install_apk_status_ != nullptr) install_apk_status_->Clear(); - _has_bits_[1] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.install_apk_status_ != nullptr) _impl_.install_apk_status_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00001000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& SharingLog::_internal_install_apk_status() const { - const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* p = install_apk_status_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_InstallAPKStatus_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* p = _impl_.install_apk_status_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_InstallAPKStatus_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& SharingLog::install_apk_status() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus& SharingLog::install_apk_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.install_apk_status) return _internal_install_apk_status(); } inline void SharingLog::unsafe_arena_set_allocated_install_apk_status( - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* install_apk_status) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(install_apk_status_); + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.install_apk_status_); } - install_apk_status_ = install_apk_status; - if (install_apk_status) { - _has_bits_[1] |= 0x00000400u; + _impl_.install_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00001000U); } else { - _has_bits_[1] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[1], 0x00001000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.install_apk_status) } -inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* SharingLog::release_install_apk_status() { - _has_bits_[1] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* temp = install_apk_status_; - install_apk_status_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE SharingLog::release_install_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* released = _impl_.install_apk_status_; + _impl_.install_apk_status_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* SharingLog::unsafe_arena_release_install_apk_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_install_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.install_apk_status) - _has_bits_[1] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* temp = install_apk_status_; - install_apk_status_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* temp = _impl_.install_apk_status_; + _impl_.install_apk_status_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* SharingLog::_internal_mutable_install_apk_status() { - _has_bits_[1] |= 0x00000400u; - if (install_apk_status_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>(GetArenaForAllocation()); - install_apk_status_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NONNULL SharingLog::_internal_mutable_install_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.install_apk_status_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>(GetArena()); + _impl_.install_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus*>(p); } - return install_apk_status_; + return _impl_.install_apk_status_; } -inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* SharingLog::mutable_install_apk_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NONNULL SharingLog::mutable_install_apk_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00001000U); ::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* _msg = _internal_mutable_install_apk_status(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.install_apk_status) return _msg; } -inline void SharingLog::set_allocated_install_apk_status(::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* install_apk_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_install_apk_status(::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete install_apk_status_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.install_apk_status_); } - if (install_apk_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus>::GetOwningArena(install_apk_status); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - install_apk_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, install_apk_status, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000400u; + SetHasBit(_impl_._has_bits_[1], 0x00001000U); } else { - _has_bits_[1] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[1], 0x00001000U); } - install_apk_status_ = install_apk_status; + + _impl_.install_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_InstallAPKStatus*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.install_apk_status) } // optional .nearby.sharing.analytics.proto.SharingLog.VerifyAPKStatus verify_apk_status = 45; -inline bool SharingLog::_internal_has_verify_apk_status() const { - bool value = (_has_bits_[1] & 0x00000800u) != 0; - PROTOBUF_ASSUME(!value || verify_apk_status_ != nullptr); +inline bool SharingLog::has_verify_apk_status() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00002000U); + PROTOBUF_ASSUME(!value || _impl_.verify_apk_status_ != nullptr); return value; } -inline bool SharingLog::has_verify_apk_status() const { - return _internal_has_verify_apk_status(); -} inline void SharingLog::clear_verify_apk_status() { - if (verify_apk_status_ != nullptr) verify_apk_status_->Clear(); - _has_bits_[1] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.verify_apk_status_ != nullptr) _impl_.verify_apk_status_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00002000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& SharingLog::_internal_verify_apk_status() const { - const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* p = verify_apk_status_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_VerifyAPKStatus_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* p = _impl_.verify_apk_status_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_VerifyAPKStatus_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& SharingLog::verify_apk_status() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus& SharingLog::verify_apk_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.verify_apk_status) return _internal_verify_apk_status(); } inline void SharingLog::unsafe_arena_set_allocated_verify_apk_status( - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* verify_apk_status) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(verify_apk_status_); + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.verify_apk_status_); } - verify_apk_status_ = verify_apk_status; - if (verify_apk_status) { - _has_bits_[1] |= 0x00000800u; + _impl_.verify_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00002000U); } else { - _has_bits_[1] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[1], 0x00002000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.verify_apk_status) } -inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* SharingLog::release_verify_apk_status() { - _has_bits_[1] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* temp = verify_apk_status_; - verify_apk_status_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE SharingLog::release_verify_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* released = _impl_.verify_apk_status_; + _impl_.verify_apk_status_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* SharingLog::unsafe_arena_release_verify_apk_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_verify_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.verify_apk_status) - _has_bits_[1] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* temp = verify_apk_status_; - verify_apk_status_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* temp = _impl_.verify_apk_status_; + _impl_.verify_apk_status_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* SharingLog::_internal_mutable_verify_apk_status() { - _has_bits_[1] |= 0x00000800u; - if (verify_apk_status_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>(GetArenaForAllocation()); - verify_apk_status_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL SharingLog::_internal_mutable_verify_apk_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.verify_apk_status_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>(GetArena()); + _impl_.verify_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus*>(p); } - return verify_apk_status_; + return _impl_.verify_apk_status_; } -inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* SharingLog::mutable_verify_apk_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NONNULL SharingLog::mutable_verify_apk_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00002000U); ::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* _msg = _internal_mutable_verify_apk_status(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.verify_apk_status) return _msg; } -inline void SharingLog::set_allocated_verify_apk_status(::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* verify_apk_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_verify_apk_status(::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete verify_apk_status_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.verify_apk_status_); } - if (verify_apk_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus>::GetOwningArena(verify_apk_status); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - verify_apk_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, verify_apk_status, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00000800u; + SetHasBit(_impl_._has_bits_[1], 0x00002000U); } else { - _has_bits_[1] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[1], 0x00002000U); } - verify_apk_status_ = verify_apk_status; + + _impl_.verify_apk_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_VerifyAPKStatus*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.verify_apk_status) } // optional .nearby.sharing.analytics.proto.SharingLog.LaunchConsent launch_consent = 46; -inline bool SharingLog::_internal_has_launch_consent() const { - bool value = (_has_bits_[1] & 0x00001000u) != 0; - PROTOBUF_ASSUME(!value || launch_consent_ != nullptr); +inline bool SharingLog::has_launch_consent() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00004000U); + PROTOBUF_ASSUME(!value || _impl_.launch_consent_ != nullptr); return value; } -inline bool SharingLog::has_launch_consent() const { - return _internal_has_launch_consent(); -} inline void SharingLog::clear_launch_consent() { - if (launch_consent_ != nullptr) launch_consent_->Clear(); - _has_bits_[1] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_consent_ != nullptr) _impl_.launch_consent_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00004000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& SharingLog::_internal_launch_consent() const { - const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* p = launch_consent_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_LaunchConsent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* p = _impl_.launch_consent_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_LaunchConsent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& SharingLog::launch_consent() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent& SharingLog::launch_consent() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.launch_consent) return _internal_launch_consent(); } inline void SharingLog::unsafe_arena_set_allocated_launch_consent( - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* launch_consent) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(launch_consent_); + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_consent_); } - launch_consent_ = launch_consent; - if (launch_consent) { - _has_bits_[1] |= 0x00001000u; + _impl_.launch_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00004000U); } else { - _has_bits_[1] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[1], 0x00004000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_consent) } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* SharingLog::release_launch_consent() { - _has_bits_[1] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* temp = launch_consent_; - launch_consent_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE SharingLog::release_launch_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* released = _impl_.launch_consent_; + _impl_.launch_consent_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* SharingLog::unsafe_arena_release_launch_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_launch_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.launch_consent) - _has_bits_[1] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* temp = launch_consent_; - launch_consent_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* temp = _impl_.launch_consent_; + _impl_.launch_consent_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* SharingLog::_internal_mutable_launch_consent() { - _has_bits_[1] |= 0x00001000u; - if (launch_consent_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>(GetArenaForAllocation()); - launch_consent_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NONNULL SharingLog::_internal_mutable_launch_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.launch_consent_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>(GetArena()); + _impl_.launch_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent*>(p); } - return launch_consent_; + return _impl_.launch_consent_; } -inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* SharingLog::mutable_launch_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NONNULL SharingLog::mutable_launch_consent() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00004000U); ::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* _msg = _internal_mutable_launch_consent(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.launch_consent) return _msg; } -inline void SharingLog::set_allocated_launch_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* launch_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_launch_consent(::nearby::sharing::analytics::proto::SharingLog_LaunchConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete launch_consent_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_consent_); } - if (launch_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent>::GetOwningArena(launch_consent); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - launch_consent = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, launch_consent, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00001000u; + SetHasBit(_impl_._has_bits_[1], 0x00004000U); } else { - _has_bits_[1] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[1], 0x00004000U); } - launch_consent_ = launch_consent; + + _impl_.launch_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_LaunchConsent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.launch_consent) } // optional .nearby.sharing.analytics.proto.SharingLog.ProcessReceivedAttachmentsEnd process_received_attachments_end = 47; -inline bool SharingLog::_internal_has_process_received_attachments_end() const { - bool value = (_has_bits_[1] & 0x00002000u) != 0; - PROTOBUF_ASSUME(!value || process_received_attachments_end_ != nullptr); +inline bool SharingLog::has_process_received_attachments_end() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00008000U); + PROTOBUF_ASSUME(!value || _impl_.process_received_attachments_end_ != nullptr); return value; } -inline bool SharingLog::has_process_received_attachments_end() const { - return _internal_has_process_received_attachments_end(); -} inline void SharingLog::clear_process_received_attachments_end() { - if (process_received_attachments_end_ != nullptr) process_received_attachments_end_->Clear(); - _has_bits_[1] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.process_received_attachments_end_ != nullptr) _impl_.process_received_attachments_end_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00008000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& SharingLog::_internal_process_received_attachments_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* p = process_received_attachments_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* p = _impl_.process_received_attachments_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ProcessReceivedAttachmentsEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& SharingLog::process_received_attachments_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd& SharingLog::process_received_attachments_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.process_received_attachments_end) return _internal_process_received_attachments_end(); } inline void SharingLog::unsafe_arena_set_allocated_process_received_attachments_end( - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* process_received_attachments_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(process_received_attachments_end_); + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.process_received_attachments_end_); } - process_received_attachments_end_ = process_received_attachments_end; - if (process_received_attachments_end) { - _has_bits_[1] |= 0x00002000u; + _impl_.process_received_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00008000U); } else { - _has_bits_[1] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[1], 0x00008000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.process_received_attachments_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* SharingLog::release_process_received_attachments_end() { - _has_bits_[1] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* temp = process_received_attachments_end_; - process_received_attachments_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::release_process_received_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* released = _impl_.process_received_attachments_end_; + _impl_.process_received_attachments_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* SharingLog::unsafe_arena_release_process_received_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_process_received_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.process_received_attachments_end) - _has_bits_[1] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* temp = process_received_attachments_end_; - process_received_attachments_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* temp = _impl_.process_received_attachments_end_; + _impl_.process_received_attachments_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* SharingLog::_internal_mutable_process_received_attachments_end() { - _has_bits_[1] |= 0x00002000u; - if (process_received_attachments_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>(GetArenaForAllocation()); - process_received_attachments_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_process_received_attachments_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.process_received_attachments_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>(GetArena()); + _impl_.process_received_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd*>(p); } - return process_received_attachments_end_; + return _impl_.process_received_attachments_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* SharingLog::mutable_process_received_attachments_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NONNULL SharingLog::mutable_process_received_attachments_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00008000U); ::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* _msg = _internal_mutable_process_received_attachments_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.process_received_attachments_end) return _msg; } -inline void SharingLog::set_allocated_process_received_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* process_received_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_process_received_attachments_end(::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete process_received_attachments_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.process_received_attachments_end_); } - if (process_received_attachments_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd>::GetOwningArena(process_received_attachments_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - process_received_attachments_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, process_received_attachments_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00002000u; + SetHasBit(_impl_._has_bits_[1], 0x00008000U); } else { - _has_bits_[1] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[1], 0x00008000U); } - process_received_attachments_end_ = process_received_attachments_end; + + _impl_.process_received_attachments_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ProcessReceivedAttachmentsEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.process_received_attachments_end) } // optional .nearby.sharing.analytics.proto.SharingLog.ToggleShowNotification toggle_show_notification = 48; -inline bool SharingLog::_internal_has_toggle_show_notification() const { - bool value = (_has_bits_[1] & 0x00004000u) != 0; - PROTOBUF_ASSUME(!value || toggle_show_notification_ != nullptr); +inline bool SharingLog::has_toggle_show_notification() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00010000U); + PROTOBUF_ASSUME(!value || _impl_.toggle_show_notification_ != nullptr); return value; } -inline bool SharingLog::has_toggle_show_notification() const { - return _internal_has_toggle_show_notification(); -} inline void SharingLog::clear_toggle_show_notification() { - if (toggle_show_notification_ != nullptr) toggle_show_notification_->Clear(); - _has_bits_[1] &= ~0x00004000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.toggle_show_notification_ != nullptr) _impl_.toggle_show_notification_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00010000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& SharingLog::_internal_toggle_show_notification() const { - const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* p = toggle_show_notification_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ToggleShowNotification_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* p = _impl_.toggle_show_notification_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ToggleShowNotification_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& SharingLog::toggle_show_notification() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification& SharingLog::toggle_show_notification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.toggle_show_notification) return _internal_toggle_show_notification(); } inline void SharingLog::unsafe_arena_set_allocated_toggle_show_notification( - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* toggle_show_notification) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(toggle_show_notification_); + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.toggle_show_notification_); } - toggle_show_notification_ = toggle_show_notification; - if (toggle_show_notification) { - _has_bits_[1] |= 0x00004000u; + _impl_.toggle_show_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00010000U); } else { - _has_bits_[1] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[1], 0x00010000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.toggle_show_notification) } -inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* SharingLog::release_toggle_show_notification() { - _has_bits_[1] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* temp = toggle_show_notification_; - toggle_show_notification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE SharingLog::release_toggle_show_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* released = _impl_.toggle_show_notification_; + _impl_.toggle_show_notification_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* SharingLog::unsafe_arena_release_toggle_show_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_toggle_show_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.toggle_show_notification) - _has_bits_[1] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* temp = toggle_show_notification_; - toggle_show_notification_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* temp = _impl_.toggle_show_notification_; + _impl_.toggle_show_notification_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* SharingLog::_internal_mutable_toggle_show_notification() { - _has_bits_[1] |= 0x00004000u; - if (toggle_show_notification_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>(GetArenaForAllocation()); - toggle_show_notification_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NONNULL SharingLog::_internal_mutable_toggle_show_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.toggle_show_notification_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>(GetArena()); + _impl_.toggle_show_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification*>(p); } - return toggle_show_notification_; + return _impl_.toggle_show_notification_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* SharingLog::mutable_toggle_show_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NONNULL SharingLog::mutable_toggle_show_notification() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00010000U); ::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* _msg = _internal_mutable_toggle_show_notification(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.toggle_show_notification) return _msg; } -inline void SharingLog::set_allocated_toggle_show_notification(::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* toggle_show_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_toggle_show_notification(::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete toggle_show_notification_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.toggle_show_notification_); } - if (toggle_show_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification>::GetOwningArena(toggle_show_notification); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - toggle_show_notification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, toggle_show_notification, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00004000u; + SetHasBit(_impl_._has_bits_[1], 0x00010000U); } else { - _has_bits_[1] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[1], 0x00010000U); } - toggle_show_notification_ = toggle_show_notification; + + _impl_.toggle_show_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ToggleShowNotification*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.toggle_show_notification) } // optional .nearby.sharing.analytics.proto.SharingLog.SetDeviceName set_device_name = 49; -inline bool SharingLog::_internal_has_set_device_name() const { - bool value = (_has_bits_[1] & 0x00008000u) != 0; - PROTOBUF_ASSUME(!value || set_device_name_ != nullptr); +inline bool SharingLog::has_set_device_name() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00020000U); + PROTOBUF_ASSUME(!value || _impl_.set_device_name_ != nullptr); return value; } -inline bool SharingLog::has_set_device_name() const { - return _internal_has_set_device_name(); -} inline void SharingLog::clear_set_device_name() { - if (set_device_name_ != nullptr) set_device_name_->Clear(); - _has_bits_[1] &= ~0x00008000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_device_name_ != nullptr) _impl_.set_device_name_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00020000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& SharingLog::_internal_set_device_name() const { - const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* p = set_device_name_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SetDeviceName_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* p = _impl_.set_device_name_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SetDeviceName_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& SharingLog::set_device_name() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName& SharingLog::set_device_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.set_device_name) return _internal_set_device_name(); } inline void SharingLog::unsafe_arena_set_allocated_set_device_name( - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* set_device_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_device_name_); + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_device_name_); } - set_device_name_ = set_device_name; - if (set_device_name) { - _has_bits_[1] |= 0x00008000u; + _impl_.set_device_name_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00020000U); } else { - _has_bits_[1] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[1], 0x00020000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_device_name) } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* SharingLog::release_set_device_name() { - _has_bits_[1] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* temp = set_device_name_; - set_device_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE SharingLog::release_set_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* released = _impl_.set_device_name_; + _impl_.set_device_name_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* SharingLog::unsafe_arena_release_set_device_name() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_set_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.set_device_name) - _has_bits_[1] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* temp = set_device_name_; - set_device_name_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* temp = _impl_.set_device_name_; + _impl_.set_device_name_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* SharingLog::_internal_mutable_set_device_name() { - _has_bits_[1] |= 0x00008000u; - if (set_device_name_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>(GetArenaForAllocation()); - set_device_name_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NONNULL SharingLog::_internal_mutable_set_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_device_name_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>(GetArena()); + _impl_.set_device_name_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName*>(p); } - return set_device_name_; + return _impl_.set_device_name_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* SharingLog::mutable_set_device_name() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NONNULL SharingLog::mutable_set_device_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00020000U); ::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* _msg = _internal_mutable_set_device_name(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.set_device_name) return _msg; } -inline void SharingLog::set_allocated_set_device_name(::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* set_device_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_set_device_name(::nearby::sharing::analytics::proto::SharingLog_SetDeviceName* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete set_device_name_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_device_name_); } - if (set_device_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName>::GetOwningArena(set_device_name); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - set_device_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_device_name, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00008000u; + SetHasBit(_impl_._has_bits_[1], 0x00020000U); } else { - _has_bits_[1] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[1], 0x00020000U); } - set_device_name_ = set_device_name; + + _impl_.set_device_name_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetDeviceName*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_device_name) } // optional string files_migration_phase = 50; -inline bool SharingLog::_internal_has_files_migration_phase() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SharingLog::has_files_migration_phase() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000001U); return value; } -inline bool SharingLog::has_files_migration_phase() const { - return _internal_has_files_migration_phase(); -} inline void SharingLog::clear_files_migration_phase() { - files_migration_phase_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.files_migration_phase_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000001U); } -inline const std::string& SharingLog::files_migration_phase() const { +inline const ::std::string& SharingLog::files_migration_phase() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.files_migration_phase) return _internal_files_migration_phase(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog::set_files_migration_phase(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog::set_files_migration_phase(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[1], 0x00000001U); + _impl_.files_migration_phase_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.files_migration_phase) } -inline std::string* SharingLog::mutable_files_migration_phase() { - std::string* _s = _internal_mutable_files_migration_phase(); +inline ::std::string* PROTOBUF_NONNULL SharingLog::mutable_files_migration_phase() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000001U); + ::std::string* _s = _internal_mutable_files_migration_phase(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.files_migration_phase) return _s; } -inline const std::string& SharingLog::_internal_files_migration_phase() const { - return files_migration_phase_.Get(); +inline const ::std::string& SharingLog::_internal_files_migration_phase() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.files_migration_phase_.Get(); } -inline void SharingLog::_internal_set_files_migration_phase(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - files_migration_phase_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog::_internal_set_files_migration_phase(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.files_migration_phase_.Set(value, GetArena()); } -inline std::string* SharingLog::_internal_mutable_files_migration_phase() { - _has_bits_[0] |= 0x00000002u; - return files_migration_phase_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog::_internal_mutable_files_migration_phase() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.files_migration_phase_.Mutable( GetArena()); } -inline std::string* SharingLog::release_files_migration_phase() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog::release_files_migration_phase() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.files_migration_phase) - if (!_internal_has_files_migration_phase()) { + if (!CheckHasBit(_impl_._has_bits_[1], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = files_migration_phase_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (files_migration_phase_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[1], 0x00000001U); + auto* released = _impl_.files_migration_phase_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.files_migration_phase_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog::set_allocated_files_migration_phase(std::string* files_migration_phase) { - if (files_migration_phase != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SharingLog::set_allocated_files_migration_phase(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[1], 0x00000001U); } - files_migration_phase_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), files_migration_phase, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (files_migration_phase_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - files_migration_phase_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.files_migration_phase_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.files_migration_phase_.IsDefault()) { + _impl_.files_migration_phase_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.files_migration_phase) } // optional .nearby.sharing.analytics.proto.SharingLog.DeclineAgreements decline_agreements = 51; -inline bool SharingLog::_internal_has_decline_agreements() const { - bool value = (_has_bits_[1] & 0x00010000u) != 0; - PROTOBUF_ASSUME(!value || decline_agreements_ != nullptr); +inline bool SharingLog::has_decline_agreements() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00040000U); + PROTOBUF_ASSUME(!value || _impl_.decline_agreements_ != nullptr); return value; } -inline bool SharingLog::has_decline_agreements() const { - return _internal_has_decline_agreements(); -} inline void SharingLog::clear_decline_agreements() { - if (decline_agreements_ != nullptr) decline_agreements_->Clear(); - _has_bits_[1] &= ~0x00010000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.decline_agreements_ != nullptr) _impl_.decline_agreements_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00040000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& SharingLog::_internal_decline_agreements() const { - const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* p = decline_agreements_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DeclineAgreements_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* p = _impl_.decline_agreements_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DeclineAgreements_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& SharingLog::decline_agreements() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements& SharingLog::decline_agreements() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.decline_agreements) return _internal_decline_agreements(); } inline void SharingLog::unsafe_arena_set_allocated_decline_agreements( - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* decline_agreements) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(decline_agreements_); + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.decline_agreements_); } - decline_agreements_ = decline_agreements; - if (decline_agreements) { - _has_bits_[1] |= 0x00010000u; + _impl_.decline_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00040000U); } else { - _has_bits_[1] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[1], 0x00040000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.decline_agreements) } -inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* SharingLog::release_decline_agreements() { - _has_bits_[1] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* temp = decline_agreements_; - decline_agreements_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE SharingLog::release_decline_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* released = _impl_.decline_agreements_; + _impl_.decline_agreements_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* SharingLog::unsafe_arena_release_decline_agreements() { +inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_decline_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.decline_agreements) - _has_bits_[1] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* temp = decline_agreements_; - decline_agreements_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* temp = _impl_.decline_agreements_; + _impl_.decline_agreements_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* SharingLog::_internal_mutable_decline_agreements() { - _has_bits_[1] |= 0x00010000u; - if (decline_agreements_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>(GetArenaForAllocation()); - decline_agreements_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NONNULL SharingLog::_internal_mutable_decline_agreements() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.decline_agreements_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>(GetArena()); + _impl_.decline_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements*>(p); } - return decline_agreements_; + return _impl_.decline_agreements_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* SharingLog::mutable_decline_agreements() { +inline ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NONNULL SharingLog::mutable_decline_agreements() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00040000U); ::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* _msg = _internal_mutable_decline_agreements(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.decline_agreements) return _msg; } -inline void SharingLog::set_allocated_decline_agreements(::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* decline_agreements) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_decline_agreements(::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete decline_agreements_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.decline_agreements_); } - if (decline_agreements) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements>::GetOwningArena(decline_agreements); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - decline_agreements = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, decline_agreements, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00010000u; + SetHasBit(_impl_._has_bits_[1], 0x00040000U); } else { - _has_bits_[1] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[1], 0x00040000U); } - decline_agreements_ = decline_agreements; + + _impl_.decline_agreements_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeclineAgreements*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.decline_agreements) } // optional .nearby.sharing.analytics.proto.SharingLog.RequestSettingPermissions request_setting_permissions = 52; -inline bool SharingLog::_internal_has_request_setting_permissions() const { - bool value = (_has_bits_[1] & 0x00020000u) != 0; - PROTOBUF_ASSUME(!value || request_setting_permissions_ != nullptr); +inline bool SharingLog::has_request_setting_permissions() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00080000U); + PROTOBUF_ASSUME(!value || _impl_.request_setting_permissions_ != nullptr); return value; } -inline bool SharingLog::has_request_setting_permissions() const { - return _internal_has_request_setting_permissions(); -} inline void SharingLog::clear_request_setting_permissions() { - if (request_setting_permissions_ != nullptr) request_setting_permissions_->Clear(); - _has_bits_[1] &= ~0x00020000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.request_setting_permissions_ != nullptr) _impl_.request_setting_permissions_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00080000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& SharingLog::_internal_request_setting_permissions() const { - const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* p = request_setting_permissions_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_RequestSettingPermissions_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* p = _impl_.request_setting_permissions_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_RequestSettingPermissions_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& SharingLog::request_setting_permissions() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions& SharingLog::request_setting_permissions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.request_setting_permissions) return _internal_request_setting_permissions(); } inline void SharingLog::unsafe_arena_set_allocated_request_setting_permissions( - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* request_setting_permissions) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(request_setting_permissions_); + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_setting_permissions_); } - request_setting_permissions_ = request_setting_permissions; - if (request_setting_permissions) { - _has_bits_[1] |= 0x00020000u; + _impl_.request_setting_permissions_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00080000U); } else { - _has_bits_[1] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.request_setting_permissions) } -inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* SharingLog::release_request_setting_permissions() { - _has_bits_[1] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* temp = request_setting_permissions_; - request_setting_permissions_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE SharingLog::release_request_setting_permissions() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* released = _impl_.request_setting_permissions_; + _impl_.request_setting_permissions_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* SharingLog::unsafe_arena_release_request_setting_permissions() { +inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_request_setting_permissions() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.request_setting_permissions) - _has_bits_[1] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* temp = request_setting_permissions_; - request_setting_permissions_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* temp = _impl_.request_setting_permissions_; + _impl_.request_setting_permissions_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* SharingLog::_internal_mutable_request_setting_permissions() { - _has_bits_[1] |= 0x00020000u; - if (request_setting_permissions_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>(GetArenaForAllocation()); - request_setting_permissions_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL SharingLog::_internal_mutable_request_setting_permissions() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.request_setting_permissions_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>(GetArena()); + _impl_.request_setting_permissions_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions*>(p); } - return request_setting_permissions_; + return _impl_.request_setting_permissions_; } -inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* SharingLog::mutable_request_setting_permissions() { +inline ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NONNULL SharingLog::mutable_request_setting_permissions() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00080000U); ::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* _msg = _internal_mutable_request_setting_permissions(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.request_setting_permissions) return _msg; } -inline void SharingLog::set_allocated_request_setting_permissions(::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* request_setting_permissions) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_request_setting_permissions(::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete request_setting_permissions_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_setting_permissions_); } - if (request_setting_permissions) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions>::GetOwningArena(request_setting_permissions); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - request_setting_permissions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, request_setting_permissions, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00020000u; + SetHasBit(_impl_._has_bits_[1], 0x00080000U); } else { - _has_bits_[1] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); } - request_setting_permissions_ = request_setting_permissions; + + _impl_.request_setting_permissions_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RequestSettingPermissions*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.request_setting_permissions) } // optional .nearby.sharing.analytics.proto.SharingLog.DeviceSettings device_settings = 53; -inline bool SharingLog::_internal_has_device_settings() const { - bool value = (_has_bits_[1] & 0x00040000u) != 0; - PROTOBUF_ASSUME(!value || device_settings_ != nullptr); +inline bool SharingLog::has_device_settings() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00100000U); + PROTOBUF_ASSUME(!value || _impl_.device_settings_ != nullptr); return value; } -inline bool SharingLog::has_device_settings() const { - return _internal_has_device_settings(); -} inline void SharingLog::clear_device_settings() { - if (device_settings_ != nullptr) device_settings_->Clear(); - _has_bits_[1] &= ~0x00040000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.device_settings_ != nullptr) _impl_.device_settings_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00100000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& SharingLog::_internal_device_settings() const { - const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* p = device_settings_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DeviceSettings_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* p = _impl_.device_settings_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DeviceSettings_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& SharingLog::device_settings() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings& SharingLog::device_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.device_settings) return _internal_device_settings(); } inline void SharingLog::unsafe_arena_set_allocated_device_settings( - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* device_settings) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(device_settings_); + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.device_settings_); } - device_settings_ = device_settings; - if (device_settings) { - _has_bits_[1] |= 0x00040000u; + _impl_.device_settings_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00100000U); } else { - _has_bits_[1] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.device_settings) } -inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* SharingLog::release_device_settings() { - _has_bits_[1] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* temp = device_settings_; - device_settings_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE SharingLog::release_device_settings() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* released = _impl_.device_settings_; + _impl_.device_settings_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* SharingLog::unsafe_arena_release_device_settings() { +inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_device_settings() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.device_settings) - _has_bits_[1] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* temp = device_settings_; - device_settings_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* temp = _impl_.device_settings_; + _impl_.device_settings_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* SharingLog::_internal_mutable_device_settings() { - _has_bits_[1] |= 0x00040000u; - if (device_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>(GetArenaForAllocation()); - device_settings_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NONNULL SharingLog::_internal_mutable_device_settings() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.device_settings_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>(GetArena()); + _impl_.device_settings_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings*>(p); } - return device_settings_; + return _impl_.device_settings_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* SharingLog::mutable_device_settings() { +inline ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NONNULL SharingLog::mutable_device_settings() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00100000U); ::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* _msg = _internal_mutable_device_settings(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.device_settings) return _msg; } -inline void SharingLog::set_allocated_device_settings(::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* device_settings) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_device_settings(::nearby::sharing::analytics::proto::SharingLog_DeviceSettings* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete device_settings_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.device_settings_); } - if (device_settings) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings>::GetOwningArena(device_settings); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - device_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, device_settings, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00040000u; + SetHasBit(_impl_._has_bits_[1], 0x00100000U); } else { - _has_bits_[1] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); } - device_settings_ = device_settings; + + _impl_.device_settings_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DeviceSettings*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.device_settings) } // optional .nearby.sharing.analytics.proto.SharingLog.EstablishConnection establish_connection = 54; -inline bool SharingLog::_internal_has_establish_connection() const { - bool value = (_has_bits_[1] & 0x00080000u) != 0; - PROTOBUF_ASSUME(!value || establish_connection_ != nullptr); +inline bool SharingLog::has_establish_connection() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00200000U); + PROTOBUF_ASSUME(!value || _impl_.establish_connection_ != nullptr); return value; } -inline bool SharingLog::has_establish_connection() const { - return _internal_has_establish_connection(); -} inline void SharingLog::clear_establish_connection() { - if (establish_connection_ != nullptr) establish_connection_->Clear(); - _has_bits_[1] &= ~0x00080000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.establish_connection_ != nullptr) _impl_.establish_connection_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00200000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& SharingLog::_internal_establish_connection() const { - const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* p = establish_connection_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_EstablishConnection_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* p = _impl_.establish_connection_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_EstablishConnection_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& SharingLog::establish_connection() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection& SharingLog::establish_connection() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.establish_connection) return _internal_establish_connection(); } inline void SharingLog::unsafe_arena_set_allocated_establish_connection( - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* establish_connection) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(establish_connection_); + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.establish_connection_); } - establish_connection_ = establish_connection; - if (establish_connection) { - _has_bits_[1] |= 0x00080000u; + _impl_.establish_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00200000U); } else { - _has_bits_[1] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.establish_connection) } -inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* SharingLog::release_establish_connection() { - _has_bits_[1] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* temp = establish_connection_; - establish_connection_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE SharingLog::release_establish_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* released = _impl_.establish_connection_; + _impl_.establish_connection_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* SharingLog::unsafe_arena_release_establish_connection() { +inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_establish_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.establish_connection) - _has_bits_[1] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* temp = establish_connection_; - establish_connection_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* temp = _impl_.establish_connection_; + _impl_.establish_connection_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* SharingLog::_internal_mutable_establish_connection() { - _has_bits_[1] |= 0x00080000u; - if (establish_connection_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>(GetArenaForAllocation()); - establish_connection_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NONNULL SharingLog::_internal_mutable_establish_connection() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.establish_connection_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>(GetArena()); + _impl_.establish_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection*>(p); } - return establish_connection_; + return _impl_.establish_connection_; } -inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* SharingLog::mutable_establish_connection() { +inline ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NONNULL SharingLog::mutable_establish_connection() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00200000U); ::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* _msg = _internal_mutable_establish_connection(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.establish_connection) return _msg; } -inline void SharingLog::set_allocated_establish_connection(::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* establish_connection) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_establish_connection(::nearby::sharing::analytics::proto::SharingLog_EstablishConnection* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete establish_connection_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.establish_connection_); } - if (establish_connection) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection>::GetOwningArena(establish_connection); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - establish_connection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, establish_connection, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00080000u; + SetHasBit(_impl_._has_bits_[1], 0x00200000U); } else { - _has_bits_[1] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); } - establish_connection_ = establish_connection; + + _impl_.establish_connection_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EstablishConnection*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.establish_connection) } // optional .nearby.sharing.analytics.proto.SharingLog.AutoDismissFastInitialization auto_dismiss_fast_initialization = 55; -inline bool SharingLog::_internal_has_auto_dismiss_fast_initialization() const { - bool value = (_has_bits_[1] & 0x00100000u) != 0; - PROTOBUF_ASSUME(!value || auto_dismiss_fast_initialization_ != nullptr); +inline bool SharingLog::has_auto_dismiss_fast_initialization() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00400000U); + PROTOBUF_ASSUME(!value || _impl_.auto_dismiss_fast_initialization_ != nullptr); return value; } -inline bool SharingLog::has_auto_dismiss_fast_initialization() const { - return _internal_has_auto_dismiss_fast_initialization(); -} inline void SharingLog::clear_auto_dismiss_fast_initialization() { - if (auto_dismiss_fast_initialization_ != nullptr) auto_dismiss_fast_initialization_->Clear(); - _has_bits_[1] &= ~0x00100000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_dismiss_fast_initialization_ != nullptr) _impl_.auto_dismiss_fast_initialization_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00400000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& SharingLog::_internal_auto_dismiss_fast_initialization() const { - const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* p = auto_dismiss_fast_initialization_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AutoDismissFastInitialization_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* p = _impl_.auto_dismiss_fast_initialization_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AutoDismissFastInitialization_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& SharingLog::auto_dismiss_fast_initialization() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization& SharingLog::auto_dismiss_fast_initialization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.auto_dismiss_fast_initialization) return _internal_auto_dismiss_fast_initialization(); } inline void SharingLog::unsafe_arena_set_allocated_auto_dismiss_fast_initialization( - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* auto_dismiss_fast_initialization) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auto_dismiss_fast_initialization_); + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_dismiss_fast_initialization_); } - auto_dismiss_fast_initialization_ = auto_dismiss_fast_initialization; - if (auto_dismiss_fast_initialization) { - _has_bits_[1] |= 0x00100000u; + _impl_.auto_dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00400000U); } else { - _has_bits_[1] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.auto_dismiss_fast_initialization) } -inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* SharingLog::release_auto_dismiss_fast_initialization() { - _has_bits_[1] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* temp = auto_dismiss_fast_initialization_; - auto_dismiss_fast_initialization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE SharingLog::release_auto_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* released = _impl_.auto_dismiss_fast_initialization_; + _impl_.auto_dismiss_fast_initialization_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* SharingLog::unsafe_arena_release_auto_dismiss_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_auto_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.auto_dismiss_fast_initialization) - _has_bits_[1] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* temp = auto_dismiss_fast_initialization_; - auto_dismiss_fast_initialization_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* temp = _impl_.auto_dismiss_fast_initialization_; + _impl_.auto_dismiss_fast_initialization_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* SharingLog::_internal_mutable_auto_dismiss_fast_initialization() { - _has_bits_[1] |= 0x00100000u; - if (auto_dismiss_fast_initialization_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>(GetArenaForAllocation()); - auto_dismiss_fast_initialization_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL SharingLog::_internal_mutable_auto_dismiss_fast_initialization() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.auto_dismiss_fast_initialization_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>(GetArena()); + _impl_.auto_dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization*>(p); } - return auto_dismiss_fast_initialization_; + return _impl_.auto_dismiss_fast_initialization_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* SharingLog::mutable_auto_dismiss_fast_initialization() { +inline ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NONNULL SharingLog::mutable_auto_dismiss_fast_initialization() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00400000U); ::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* _msg = _internal_mutable_auto_dismiss_fast_initialization(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.auto_dismiss_fast_initialization) return _msg; } -inline void SharingLog::set_allocated_auto_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* auto_dismiss_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_auto_dismiss_fast_initialization(::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete auto_dismiss_fast_initialization_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auto_dismiss_fast_initialization_); } - if (auto_dismiss_fast_initialization) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization>::GetOwningArena(auto_dismiss_fast_initialization); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - auto_dismiss_fast_initialization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, auto_dismiss_fast_initialization, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00100000u; + SetHasBit(_impl_._has_bits_[1], 0x00400000U); } else { - _has_bits_[1] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); } - auto_dismiss_fast_initialization_ = auto_dismiss_fast_initialization; + + _impl_.auto_dismiss_fast_initialization_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AutoDismissFastInitialization*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.auto_dismiss_fast_initialization) } // optional .nearby.sharing.analytics.proto.SharingLog.EventMetadata event_metadata = 56; -inline bool SharingLog::_internal_has_event_metadata() const { - bool value = (_has_bits_[1] & 0x00200000u) != 0; - PROTOBUF_ASSUME(!value || event_metadata_ != nullptr); +inline bool SharingLog::has_event_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00800000U); + PROTOBUF_ASSUME(!value || _impl_.event_metadata_ != nullptr); return value; } -inline bool SharingLog::has_event_metadata() const { - return _internal_has_event_metadata(); -} inline void SharingLog::clear_event_metadata() { - if (event_metadata_ != nullptr) event_metadata_->Clear(); - _has_bits_[1] &= ~0x00200000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.event_metadata_ != nullptr) _impl_.event_metadata_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x00800000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& SharingLog::_internal_event_metadata() const { - const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* p = event_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_EventMetadata_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* p = _impl_.event_metadata_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_EventMetadata_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& SharingLog::event_metadata() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_EventMetadata& SharingLog::event_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.event_metadata) return _internal_event_metadata(); } inline void SharingLog::unsafe_arena_set_allocated_event_metadata( - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* event_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(event_metadata_); + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.event_metadata_); } - event_metadata_ = event_metadata; - if (event_metadata) { - _has_bits_[1] |= 0x00200000u; + _impl_.event_metadata_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EventMetadata*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00800000U); } else { - _has_bits_[1] &= ~0x00200000u; + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.event_metadata) } -inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* SharingLog::release_event_metadata() { - _has_bits_[1] &= ~0x00200000u; - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* temp = event_metadata_; - event_metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE SharingLog::release_event_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* released = _impl_.event_metadata_; + _impl_.event_metadata_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* SharingLog::unsafe_arena_release_event_metadata() { +inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_event_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.event_metadata) - _has_bits_[1] &= ~0x00200000u; - ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* temp = event_metadata_; - event_metadata_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* temp = _impl_.event_metadata_; + _impl_.event_metadata_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* SharingLog::_internal_mutable_event_metadata() { - _has_bits_[1] |= 0x00200000u; - if (event_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>(GetArenaForAllocation()); - event_metadata_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NONNULL SharingLog::_internal_mutable_event_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.event_metadata_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>(GetArena()); + _impl_.event_metadata_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EventMetadata*>(p); } - return event_metadata_; + return _impl_.event_metadata_; } -inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* SharingLog::mutable_event_metadata() { +inline ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NONNULL SharingLog::mutable_event_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00800000U); ::nearby::sharing::analytics::proto::SharingLog_EventMetadata* _msg = _internal_mutable_event_metadata(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.event_metadata) return _msg; } -inline void SharingLog::set_allocated_event_metadata(::nearby::sharing::analytics::proto::SharingLog_EventMetadata* event_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_event_metadata(::nearby::sharing::analytics::proto::SharingLog_EventMetadata* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete event_metadata_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.event_metadata_); } - if (event_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_EventMetadata>::GetOwningArena(event_metadata); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - event_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, event_metadata, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00200000u; + SetHasBit(_impl_._has_bits_[1], 0x00800000U); } else { - _has_bits_[1] &= ~0x00200000u; + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } - event_metadata_ = event_metadata; + + _impl_.event_metadata_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_EventMetadata*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.event_metadata) } // optional string app_version = 57 [deprecated = true]; -inline bool SharingLog::_internal_has_app_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool SharingLog::has_app_version() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000002U); return value; } -inline bool SharingLog::has_app_version() const { - return _internal_has_app_version(); -} inline void SharingLog::clear_app_version() { - app_version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[1], + 0x00000002U); } -inline const std::string& SharingLog::app_version() const { +inline const ::std::string& SharingLog::app_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.app_version) return _internal_app_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SharingLog::set_app_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SharingLog::set_app_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[1], 0x00000002U); + _impl_.app_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.sharing.analytics.proto.SharingLog.app_version) } -inline std::string* SharingLog::mutable_app_version() { - std::string* _s = _internal_mutable_app_version(); +inline ::std::string* PROTOBUF_NONNULL SharingLog::mutable_app_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00000002U); + ::std::string* _s = _internal_mutable_app_version(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.app_version) return _s; } -inline const std::string& SharingLog::_internal_app_version() const { - return app_version_.Get(); +inline const ::std::string& SharingLog::_internal_app_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.app_version_.Get(); } -inline void SharingLog::_internal_set_app_version(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SharingLog::_internal_set_app_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.app_version_.Set(value, GetArena()); } -inline std::string* SharingLog::_internal_mutable_app_version() { - _has_bits_[0] |= 0x00000004u; - return app_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SharingLog::_internal_mutable_app_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.app_version_.Mutable( GetArena()); } -inline std::string* SharingLog::release_app_version() { +inline ::std::string* PROTOBUF_NULLABLE SharingLog::release_app_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.app_version) - if (!_internal_has_app_version()) { + if (!CheckHasBit(_impl_._has_bits_[1], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = app_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[1], 0x00000002U); + auto* released = _impl_.app_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.app_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SharingLog::set_allocated_app_version(std::string* app_version) { - if (app_version != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void SharingLog::set_allocated_app_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[1], 0x00000002U); } - app_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (app_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - app_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.app_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.app_version_.IsDefault()) { + _impl_.app_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.app_version) } // optional .nearby.sharing.analytics.proto.SharingLog.AppCrash app_crash = 58; -inline bool SharingLog::_internal_has_app_crash() const { - bool value = (_has_bits_[1] & 0x00400000u) != 0; - PROTOBUF_ASSUME(!value || app_crash_ != nullptr); +inline bool SharingLog::has_app_crash() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x01000000U); + PROTOBUF_ASSUME(!value || _impl_.app_crash_ != nullptr); return value; } -inline bool SharingLog::has_app_crash() const { - return _internal_has_app_crash(); -} inline void SharingLog::clear_app_crash() { - if (app_crash_ != nullptr) app_crash_->Clear(); - _has_bits_[1] &= ~0x00400000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.app_crash_ != nullptr) _impl_.app_crash_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x01000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& SharingLog::_internal_app_crash() const { - const ::nearby::sharing::analytics::proto::SharingLog_AppCrash* p = app_crash_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AppCrash_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AppCrash* p = _impl_.app_crash_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AppCrash_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& SharingLog::app_crash() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AppCrash& SharingLog::app_crash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.app_crash) return _internal_app_crash(); } inline void SharingLog::unsafe_arena_set_allocated_app_crash( - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* app_crash) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_crash_); + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.app_crash_); } - app_crash_ = app_crash; - if (app_crash) { - _has_bits_[1] |= 0x00400000u; + _impl_.app_crash_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppCrash*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x01000000U); } else { - _has_bits_[1] &= ~0x00400000u; + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.app_crash) } -inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* SharingLog::release_app_crash() { - _has_bits_[1] &= ~0x00400000u; - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* temp = app_crash_; - app_crash_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE SharingLog::release_app_crash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* released = _impl_.app_crash_; + _impl_.app_crash_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* SharingLog::unsafe_arena_release_app_crash() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_app_crash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.app_crash) - _has_bits_[1] &= ~0x00400000u; - ::nearby::sharing::analytics::proto::SharingLog_AppCrash* temp = app_crash_; - app_crash_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ::nearby::sharing::analytics::proto::SharingLog_AppCrash* temp = _impl_.app_crash_; + _impl_.app_crash_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* SharingLog::_internal_mutable_app_crash() { - _has_bits_[1] |= 0x00400000u; - if (app_crash_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AppCrash>(GetArenaForAllocation()); - app_crash_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NONNULL SharingLog::_internal_mutable_app_crash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.app_crash_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AppCrash>(GetArena()); + _impl_.app_crash_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppCrash*>(p); } - return app_crash_; + return _impl_.app_crash_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* SharingLog::mutable_app_crash() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NONNULL SharingLog::mutable_app_crash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x01000000U); ::nearby::sharing::analytics::proto::SharingLog_AppCrash* _msg = _internal_mutable_app_crash(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.app_crash) return _msg; } -inline void SharingLog::set_allocated_app_crash(::nearby::sharing::analytics::proto::SharingLog_AppCrash* app_crash) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_app_crash(::nearby::sharing::analytics::proto::SharingLog_AppCrash* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete app_crash_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.app_crash_); } - if (app_crash) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AppCrash>::GetOwningArena(app_crash); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - app_crash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, app_crash, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00400000u; + SetHasBit(_impl_._has_bits_[1], 0x01000000U); } else { - _has_bits_[1] &= ~0x00400000u; + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); } - app_crash_ = app_crash; + + _impl_.app_crash_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppCrash*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.app_crash) } // optional .nearby.sharing.analytics.proto.SharingLog.TapQuickSettingsFileShare tap_quick_settings_file_share = 59; -inline bool SharingLog::_internal_has_tap_quick_settings_file_share() const { - bool value = (_has_bits_[1] & 0x00800000u) != 0; - PROTOBUF_ASSUME(!value || tap_quick_settings_file_share_ != nullptr); +inline bool SharingLog::has_tap_quick_settings_file_share() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x02000000U); + PROTOBUF_ASSUME(!value || _impl_.tap_quick_settings_file_share_ != nullptr); return value; } -inline bool SharingLog::has_tap_quick_settings_file_share() const { - return _internal_has_tap_quick_settings_file_share(); -} inline void SharingLog::clear_tap_quick_settings_file_share() { - if (tap_quick_settings_file_share_ != nullptr) tap_quick_settings_file_share_->Clear(); - _has_bits_[1] &= ~0x00800000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_quick_settings_file_share_ != nullptr) _impl_.tap_quick_settings_file_share_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x02000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& SharingLog::_internal_tap_quick_settings_file_share() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* p = tap_quick_settings_file_share_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapQuickSettingsFileShare_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* p = _impl_.tap_quick_settings_file_share_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapQuickSettingsFileShare_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& SharingLog::tap_quick_settings_file_share() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare& SharingLog::tap_quick_settings_file_share() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_file_share) return _internal_tap_quick_settings_file_share(); } inline void SharingLog::unsafe_arena_set_allocated_tap_quick_settings_file_share( - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* tap_quick_settings_file_share) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_quick_settings_file_share_); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_quick_settings_file_share_); } - tap_quick_settings_file_share_ = tap_quick_settings_file_share; - if (tap_quick_settings_file_share) { - _has_bits_[1] |= 0x00800000u; + _impl_.tap_quick_settings_file_share_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - _has_bits_[1] &= ~0x00800000u; + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_file_share) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* SharingLog::release_tap_quick_settings_file_share() { - _has_bits_[1] &= ~0x00800000u; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* temp = tap_quick_settings_file_share_; - tap_quick_settings_file_share_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE SharingLog::release_tap_quick_settings_file_share() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* released = _impl_.tap_quick_settings_file_share_; + _impl_.tap_quick_settings_file_share_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* SharingLog::unsafe_arena_release_tap_quick_settings_file_share() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_quick_settings_file_share() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_file_share) - _has_bits_[1] &= ~0x00800000u; - ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* temp = tap_quick_settings_file_share_; - tap_quick_settings_file_share_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* temp = _impl_.tap_quick_settings_file_share_; + _impl_.tap_quick_settings_file_share_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* SharingLog::_internal_mutable_tap_quick_settings_file_share() { - _has_bits_[1] |= 0x00800000u; - if (tap_quick_settings_file_share_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>(GetArenaForAllocation()); - tap_quick_settings_file_share_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_quick_settings_file_share() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_quick_settings_file_share_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>(GetArena()); + _impl_.tap_quick_settings_file_share_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare*>(p); } - return tap_quick_settings_file_share_; + return _impl_.tap_quick_settings_file_share_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* SharingLog::mutable_tap_quick_settings_file_share() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NONNULL SharingLog::mutable_tap_quick_settings_file_share() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x02000000U); ::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* _msg = _internal_mutable_tap_quick_settings_file_share(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_file_share) return _msg; } -inline void SharingLog::set_allocated_tap_quick_settings_file_share(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* tap_quick_settings_file_share) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_quick_settings_file_share(::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_quick_settings_file_share_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_quick_settings_file_share_); } - if (tap_quick_settings_file_share) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare>::GetOwningArena(tap_quick_settings_file_share); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_quick_settings_file_share = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_quick_settings_file_share, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x00800000u; + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - _has_bits_[1] &= ~0x00800000u; + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } - tap_quick_settings_file_share_ = tap_quick_settings_file_share; + + _impl_.tap_quick_settings_file_share_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQuickSettingsFileShare*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_quick_settings_file_share) } // optional .nearby.sharing.analytics.proto.SharingLog.AppInfo app_info = 60; -inline bool SharingLog::_internal_has_app_info() const { - bool value = (_has_bits_[1] & 0x01000000u) != 0; - PROTOBUF_ASSUME(!value || app_info_ != nullptr); +inline bool SharingLog::has_app_info() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x04000000U); + PROTOBUF_ASSUME(!value || _impl_.app_info_ != nullptr); return value; } -inline bool SharingLog::has_app_info() const { - return _internal_has_app_info(); -} inline void SharingLog::clear_app_info() { - if (app_info_ != nullptr) app_info_->Clear(); - _has_bits_[1] &= ~0x01000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.app_info_ != nullptr) _impl_.app_info_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x04000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& SharingLog::_internal_app_info() const { - const ::nearby::sharing::analytics::proto::SharingLog_AppInfo* p = app_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_AppInfo_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_AppInfo* p = _impl_.app_info_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_AppInfo_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& SharingLog::app_info() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_AppInfo& SharingLog::app_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.app_info) return _internal_app_info(); } inline void SharingLog::unsafe_arena_set_allocated_app_info( - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* app_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_info_); + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.app_info_); } - app_info_ = app_info; - if (app_info) { - _has_bits_[1] |= 0x01000000u; + _impl_.app_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppInfo*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - _has_bits_[1] &= ~0x01000000u; + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.app_info) } -inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* SharingLog::release_app_info() { - _has_bits_[1] &= ~0x01000000u; - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* temp = app_info_; - app_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE SharingLog::release_app_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* released = _impl_.app_info_; + _impl_.app_info_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* SharingLog::unsafe_arena_release_app_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_app_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.app_info) - _has_bits_[1] &= ~0x01000000u; - ::nearby::sharing::analytics::proto::SharingLog_AppInfo* temp = app_info_; - app_info_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ::nearby::sharing::analytics::proto::SharingLog_AppInfo* temp = _impl_.app_info_; + _impl_.app_info_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* SharingLog::_internal_mutable_app_info() { - _has_bits_[1] |= 0x01000000u; - if (app_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_AppInfo>(GetArenaForAllocation()); - app_info_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NONNULL SharingLog::_internal_mutable_app_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.app_info_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_AppInfo>(GetArena()); + _impl_.app_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppInfo*>(p); } - return app_info_; + return _impl_.app_info_; } -inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* SharingLog::mutable_app_info() { +inline ::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NONNULL SharingLog::mutable_app_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x04000000U); ::nearby::sharing::analytics::proto::SharingLog_AppInfo* _msg = _internal_mutable_app_info(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.app_info) return _msg; } -inline void SharingLog::set_allocated_app_info(::nearby::sharing::analytics::proto::SharingLog_AppInfo* app_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_app_info(::nearby::sharing::analytics::proto::SharingLog_AppInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete app_info_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.app_info_); } - if (app_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_AppInfo>::GetOwningArena(app_info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - app_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, app_info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x01000000u; + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - _has_bits_[1] &= ~0x01000000u; + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } - app_info_ = app_info; + + _impl_.app_info_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_AppInfo*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.app_info) } // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPrivacyNotification display_privacy_notification = 61; -inline bool SharingLog::_internal_has_display_privacy_notification() const { - bool value = (_has_bits_[1] & 0x02000000u) != 0; - PROTOBUF_ASSUME(!value || display_privacy_notification_ != nullptr); +inline bool SharingLog::has_display_privacy_notification() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x08000000U); + PROTOBUF_ASSUME(!value || _impl_.display_privacy_notification_ != nullptr); return value; } -inline bool SharingLog::has_display_privacy_notification() const { - return _internal_has_display_privacy_notification(); -} inline void SharingLog::clear_display_privacy_notification() { - if (display_privacy_notification_ != nullptr) display_privacy_notification_->Clear(); - _has_bits_[1] &= ~0x02000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.display_privacy_notification_ != nullptr) _impl_.display_privacy_notification_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x08000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& SharingLog::_internal_display_privacy_notification() const { - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* p = display_privacy_notification_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DisplayPrivacyNotification_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* p = _impl_.display_privacy_notification_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DisplayPrivacyNotification_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& SharingLog::display_privacy_notification() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification& SharingLog::display_privacy_notification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.display_privacy_notification) return _internal_display_privacy_notification(); } inline void SharingLog::unsafe_arena_set_allocated_display_privacy_notification( - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* display_privacy_notification) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(display_privacy_notification_); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.display_privacy_notification_); } - display_privacy_notification_ = display_privacy_notification; - if (display_privacy_notification) { - _has_bits_[1] |= 0x02000000u; + _impl_.display_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - _has_bits_[1] &= ~0x02000000u; + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.display_privacy_notification) } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* SharingLog::release_display_privacy_notification() { - _has_bits_[1] &= ~0x02000000u; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* temp = display_privacy_notification_; - display_privacy_notification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE SharingLog::release_display_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* released = _impl_.display_privacy_notification_; + _impl_.display_privacy_notification_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* SharingLog::unsafe_arena_release_display_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_display_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.display_privacy_notification) - _has_bits_[1] &= ~0x02000000u; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* temp = display_privacy_notification_; - display_privacy_notification_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* temp = _impl_.display_privacy_notification_; + _impl_.display_privacy_notification_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* SharingLog::_internal_mutable_display_privacy_notification() { - _has_bits_[1] |= 0x02000000u; - if (display_privacy_notification_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>(GetArenaForAllocation()); - display_privacy_notification_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL SharingLog::_internal_mutable_display_privacy_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.display_privacy_notification_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>(GetArena()); + _impl_.display_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification*>(p); } - return display_privacy_notification_; + return _impl_.display_privacy_notification_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* SharingLog::mutable_display_privacy_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NONNULL SharingLog::mutable_display_privacy_notification() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x08000000U); ::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* _msg = _internal_mutable_display_privacy_notification(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.display_privacy_notification) return _msg; } -inline void SharingLog::set_allocated_display_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* display_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_display_privacy_notification(::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete display_privacy_notification_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.display_privacy_notification_); } - if (display_privacy_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification>::GetOwningArena(display_privacy_notification); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - display_privacy_notification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, display_privacy_notification, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x02000000u; + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - _has_bits_[1] &= ~0x02000000u; + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } - display_privacy_notification_ = display_privacy_notification; + + _impl_.display_privacy_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPrivacyNotification*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.display_privacy_notification) } // optional .nearby.sharing.analytics.proto.SharingLog.DisplayPhoneConsent display_phone_consent = 62; -inline bool SharingLog::_internal_has_display_phone_consent() const { - bool value = (_has_bits_[1] & 0x04000000u) != 0; - PROTOBUF_ASSUME(!value || display_phone_consent_ != nullptr); +inline bool SharingLog::has_display_phone_consent() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x10000000U); + PROTOBUF_ASSUME(!value || _impl_.display_phone_consent_ != nullptr); return value; } -inline bool SharingLog::has_display_phone_consent() const { - return _internal_has_display_phone_consent(); -} inline void SharingLog::clear_display_phone_consent() { - if (display_phone_consent_ != nullptr) display_phone_consent_->Clear(); - _has_bits_[1] &= ~0x04000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.display_phone_consent_ != nullptr) _impl_.display_phone_consent_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x10000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& SharingLog::_internal_display_phone_consent() const { - const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* p = display_phone_consent_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DisplayPhoneConsent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* p = _impl_.display_phone_consent_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DisplayPhoneConsent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& SharingLog::display_phone_consent() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent& SharingLog::display_phone_consent() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.display_phone_consent) return _internal_display_phone_consent(); } inline void SharingLog::unsafe_arena_set_allocated_display_phone_consent( - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* display_phone_consent) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(display_phone_consent_); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.display_phone_consent_); } - display_phone_consent_ = display_phone_consent; - if (display_phone_consent) { - _has_bits_[1] |= 0x04000000u; + _impl_.display_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - _has_bits_[1] &= ~0x04000000u; + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.display_phone_consent) } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* SharingLog::release_display_phone_consent() { - _has_bits_[1] &= ~0x04000000u; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* temp = display_phone_consent_; - display_phone_consent_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE SharingLog::release_display_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* released = _impl_.display_phone_consent_; + _impl_.display_phone_consent_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* SharingLog::unsafe_arena_release_display_phone_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_display_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.display_phone_consent) - _has_bits_[1] &= ~0x04000000u; - ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* temp = display_phone_consent_; - display_phone_consent_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* temp = _impl_.display_phone_consent_; + _impl_.display_phone_consent_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* SharingLog::_internal_mutable_display_phone_consent() { - _has_bits_[1] |= 0x04000000u; - if (display_phone_consent_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>(GetArenaForAllocation()); - display_phone_consent_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL SharingLog::_internal_mutable_display_phone_consent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.display_phone_consent_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>(GetArena()); + _impl_.display_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent*>(p); } - return display_phone_consent_; + return _impl_.display_phone_consent_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* SharingLog::mutable_display_phone_consent() { +inline ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NONNULL SharingLog::mutable_display_phone_consent() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x10000000U); ::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* _msg = _internal_mutable_display_phone_consent(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.display_phone_consent) return _msg; } -inline void SharingLog::set_allocated_display_phone_consent(::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* display_phone_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_display_phone_consent(::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete display_phone_consent_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.display_phone_consent_); } - if (display_phone_consent) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent>::GetOwningArena(display_phone_consent); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - display_phone_consent = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, display_phone_consent, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x04000000u; + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - _has_bits_[1] &= ~0x04000000u; + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } - display_phone_consent_ = display_phone_consent; + + _impl_.display_phone_consent_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DisplayPhoneConsent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.display_phone_consent) } // optional .nearby.sharing.analytics.proto.SharingLog.PreferencesUsage preferences_usage = 63; -inline bool SharingLog::_internal_has_preferences_usage() const { - bool value = (_has_bits_[1] & 0x08000000u) != 0; - PROTOBUF_ASSUME(!value || preferences_usage_ != nullptr); +inline bool SharingLog::has_preferences_usage() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x20000000U); + PROTOBUF_ASSUME(!value || _impl_.preferences_usage_ != nullptr); return value; } -inline bool SharingLog::has_preferences_usage() const { - return _internal_has_preferences_usage(); -} inline void SharingLog::clear_preferences_usage() { - if (preferences_usage_ != nullptr) preferences_usage_->Clear(); - _has_bits_[1] &= ~0x08000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.preferences_usage_ != nullptr) _impl_.preferences_usage_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x20000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& SharingLog::_internal_preferences_usage() const { - const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* p = preferences_usage_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_PreferencesUsage_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* p = _impl_.preferences_usage_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_PreferencesUsage_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& SharingLog::preferences_usage() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage& SharingLog::preferences_usage() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.preferences_usage) return _internal_preferences_usage(); } inline void SharingLog::unsafe_arena_set_allocated_preferences_usage( - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* preferences_usage) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(preferences_usage_); + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.preferences_usage_); } - preferences_usage_ = preferences_usage; - if (preferences_usage) { - _has_bits_[1] |= 0x08000000u; + _impl_.preferences_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - _has_bits_[1] &= ~0x08000000u; + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.preferences_usage) } -inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* SharingLog::release_preferences_usage() { - _has_bits_[1] &= ~0x08000000u; - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* temp = preferences_usage_; - preferences_usage_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE SharingLog::release_preferences_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* released = _impl_.preferences_usage_; + _impl_.preferences_usage_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* SharingLog::unsafe_arena_release_preferences_usage() { +inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_preferences_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.preferences_usage) - _has_bits_[1] &= ~0x08000000u; - ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* temp = preferences_usage_; - preferences_usage_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* temp = _impl_.preferences_usage_; + _impl_.preferences_usage_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* SharingLog::_internal_mutable_preferences_usage() { - _has_bits_[1] |= 0x08000000u; - if (preferences_usage_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>(GetArenaForAllocation()); - preferences_usage_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NONNULL SharingLog::_internal_mutable_preferences_usage() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.preferences_usage_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>(GetArena()); + _impl_.preferences_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage*>(p); } - return preferences_usage_; + return _impl_.preferences_usage_; } -inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* SharingLog::mutable_preferences_usage() { +inline ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NONNULL SharingLog::mutable_preferences_usage() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x20000000U); ::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* _msg = _internal_mutable_preferences_usage(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.preferences_usage) return _msg; } -inline void SharingLog::set_allocated_preferences_usage(::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* preferences_usage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_preferences_usage(::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete preferences_usage_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.preferences_usage_); } - if (preferences_usage) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage>::GetOwningArena(preferences_usage); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - preferences_usage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, preferences_usage, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x08000000u; + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - _has_bits_[1] &= ~0x08000000u; + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } - preferences_usage_ = preferences_usage; + + _impl_.preferences_usage_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_PreferencesUsage*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.preferences_usage) } // optional .nearby.sharing.analytics.proto.SharingLog.DefaultOptIn default_opt_in = 64; -inline bool SharingLog::_internal_has_default_opt_in() const { - bool value = (_has_bits_[1] & 0x10000000u) != 0; - PROTOBUF_ASSUME(!value || default_opt_in_ != nullptr); +inline bool SharingLog::has_default_opt_in() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x40000000U); + PROTOBUF_ASSUME(!value || _impl_.default_opt_in_ != nullptr); return value; } -inline bool SharingLog::has_default_opt_in() const { - return _internal_has_default_opt_in(); -} inline void SharingLog::clear_default_opt_in() { - if (default_opt_in_ != nullptr) default_opt_in_->Clear(); - _has_bits_[1] &= ~0x10000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.default_opt_in_ != nullptr) _impl_.default_opt_in_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x40000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& SharingLog::_internal_default_opt_in() const { - const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* p = default_opt_in_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DefaultOptIn_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* p = _impl_.default_opt_in_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DefaultOptIn_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& SharingLog::default_opt_in() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn& SharingLog::default_opt_in() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.default_opt_in) return _internal_default_opt_in(); } inline void SharingLog::unsafe_arena_set_allocated_default_opt_in( - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* default_opt_in) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_opt_in_); + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.default_opt_in_); } - default_opt_in_ = default_opt_in; - if (default_opt_in) { - _has_bits_[1] |= 0x10000000u; + _impl_.default_opt_in_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - _has_bits_[1] &= ~0x10000000u; + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.default_opt_in) } -inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* SharingLog::release_default_opt_in() { - _has_bits_[1] &= ~0x10000000u; - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* temp = default_opt_in_; - default_opt_in_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE SharingLog::release_default_opt_in() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* released = _impl_.default_opt_in_; + _impl_.default_opt_in_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* SharingLog::unsafe_arena_release_default_opt_in() { +inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_default_opt_in() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.default_opt_in) - _has_bits_[1] &= ~0x10000000u; - ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* temp = default_opt_in_; - default_opt_in_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* temp = _impl_.default_opt_in_; + _impl_.default_opt_in_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* SharingLog::_internal_mutable_default_opt_in() { - _has_bits_[1] |= 0x10000000u; - if (default_opt_in_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>(GetArenaForAllocation()); - default_opt_in_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NONNULL SharingLog::_internal_mutable_default_opt_in() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.default_opt_in_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>(GetArena()); + _impl_.default_opt_in_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn*>(p); } - return default_opt_in_; + return _impl_.default_opt_in_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* SharingLog::mutable_default_opt_in() { +inline ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NONNULL SharingLog::mutable_default_opt_in() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x40000000U); ::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* _msg = _internal_mutable_default_opt_in(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.default_opt_in) return _msg; } -inline void SharingLog::set_allocated_default_opt_in(::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* default_opt_in) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_default_opt_in(::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete default_opt_in_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.default_opt_in_); } - if (default_opt_in) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn>::GetOwningArena(default_opt_in); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - default_opt_in = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, default_opt_in, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x10000000u; + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - _has_bits_[1] &= ~0x10000000u; + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } - default_opt_in_ = default_opt_in; + + _impl_.default_opt_in_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DefaultOptIn*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.default_opt_in) } // optional .nearby.sharing.analytics.proto.SharingLog.SetupWizard setup_wizard = 65; -inline bool SharingLog::_internal_has_setup_wizard() const { - bool value = (_has_bits_[1] & 0x20000000u) != 0; - PROTOBUF_ASSUME(!value || setup_wizard_ != nullptr); +inline bool SharingLog::has_setup_wizard() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x80000000U); + PROTOBUF_ASSUME(!value || _impl_.setup_wizard_ != nullptr); return value; } -inline bool SharingLog::has_setup_wizard() const { - return _internal_has_setup_wizard(); -} inline void SharingLog::clear_setup_wizard() { - if (setup_wizard_ != nullptr) setup_wizard_->Clear(); - _has_bits_[1] &= ~0x20000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.setup_wizard_ != nullptr) _impl_.setup_wizard_->Clear(); + ClearHasBit(_impl_._has_bits_[1], + 0x80000000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& SharingLog::_internal_setup_wizard() const { - const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* p = setup_wizard_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SetupWizard_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* p = _impl_.setup_wizard_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SetupWizard_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& SharingLog::setup_wizard() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SetupWizard& SharingLog::setup_wizard() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.setup_wizard) return _internal_setup_wizard(); } inline void SharingLog::unsafe_arena_set_allocated_setup_wizard( - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* setup_wizard) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(setup_wizard_); + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.setup_wizard_); } - setup_wizard_ = setup_wizard; - if (setup_wizard) { - _has_bits_[1] |= 0x20000000u; + _impl_.setup_wizard_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetupWizard*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - _has_bits_[1] &= ~0x20000000u; + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.setup_wizard) } -inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* SharingLog::release_setup_wizard() { - _has_bits_[1] &= ~0x20000000u; - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* temp = setup_wizard_; - setup_wizard_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE SharingLog::release_setup_wizard() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* released = _impl_.setup_wizard_; + _impl_.setup_wizard_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* SharingLog::unsafe_arena_release_setup_wizard() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_setup_wizard() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.setup_wizard) - _has_bits_[1] &= ~0x20000000u; - ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* temp = setup_wizard_; - setup_wizard_ = nullptr; + + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* temp = _impl_.setup_wizard_; + _impl_.setup_wizard_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* SharingLog::_internal_mutable_setup_wizard() { - _has_bits_[1] |= 0x20000000u; - if (setup_wizard_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>(GetArenaForAllocation()); - setup_wizard_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NONNULL SharingLog::_internal_mutable_setup_wizard() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.setup_wizard_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>(GetArena()); + _impl_.setup_wizard_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetupWizard*>(p); } - return setup_wizard_; + return _impl_.setup_wizard_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* SharingLog::mutable_setup_wizard() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NONNULL SharingLog::mutable_setup_wizard() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x80000000U); ::nearby::sharing::analytics::proto::SharingLog_SetupWizard* _msg = _internal_mutable_setup_wizard(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.setup_wizard) return _msg; } -inline void SharingLog::set_allocated_setup_wizard(::nearby::sharing::analytics::proto::SharingLog_SetupWizard* setup_wizard) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_setup_wizard(::nearby::sharing::analytics::proto::SharingLog_SetupWizard* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete setup_wizard_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.setup_wizard_); } - if (setup_wizard) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SetupWizard>::GetOwningArena(setup_wizard); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - setup_wizard = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, setup_wizard, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x20000000u; + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - _has_bits_[1] &= ~0x20000000u; + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } - setup_wizard_ = setup_wizard; + + _impl_.setup_wizard_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetupWizard*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.setup_wizard) } // optional .nearby.sharing.analytics.proto.SharingLog.TapQrCode tap_qr_code = 66; -inline bool SharingLog::_internal_has_tap_qr_code() const { - bool value = (_has_bits_[1] & 0x40000000u) != 0; - PROTOBUF_ASSUME(!value || tap_qr_code_ != nullptr); +inline bool SharingLog::has_tap_qr_code() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.tap_qr_code_ != nullptr); return value; } -inline bool SharingLog::has_tap_qr_code() const { - return _internal_has_tap_qr_code(); -} inline void SharingLog::clear_tap_qr_code() { - if (tap_qr_code_ != nullptr) tap_qr_code_->Clear(); - _has_bits_[1] &= ~0x40000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_qr_code_ != nullptr) _impl_.tap_qr_code_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000001U); } inline const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& SharingLog::_internal_tap_qr_code() const { - const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* p = tap_qr_code_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_TapQrCode_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* p = _impl_.tap_qr_code_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_TapQrCode_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& SharingLog::tap_qr_code() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_TapQrCode& SharingLog::tap_qr_code() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.tap_qr_code) return _internal_tap_qr_code(); } inline void SharingLog::unsafe_arena_set_allocated_tap_qr_code( - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* tap_qr_code) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tap_qr_code_); + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_qr_code_); } - tap_qr_code_ = tap_qr_code; - if (tap_qr_code) { - _has_bits_[1] |= 0x40000000u; + _impl_.tap_qr_code_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQrCode*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000001U); } else { - _has_bits_[1] &= ~0x40000000u; + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_qr_code) } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* SharingLog::release_tap_qr_code() { - _has_bits_[1] &= ~0x40000000u; - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* temp = tap_qr_code_; - tap_qr_code_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE SharingLog::release_tap_qr_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* released = _impl_.tap_qr_code_; + _impl_.tap_qr_code_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* SharingLog::unsafe_arena_release_tap_qr_code() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_tap_qr_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.tap_qr_code) - _has_bits_[1] &= ~0x40000000u; - ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* temp = tap_qr_code_; - tap_qr_code_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); + ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* temp = _impl_.tap_qr_code_; + _impl_.tap_qr_code_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* SharingLog::_internal_mutable_tap_qr_code() { - _has_bits_[1] |= 0x40000000u; - if (tap_qr_code_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>(GetArenaForAllocation()); - tap_qr_code_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NONNULL SharingLog::_internal_mutable_tap_qr_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tap_qr_code_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>(GetArena()); + _impl_.tap_qr_code_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQrCode*>(p); } - return tap_qr_code_; + return _impl_.tap_qr_code_; } -inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* SharingLog::mutable_tap_qr_code() { +inline ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NONNULL SharingLog::mutable_tap_qr_code() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000001U); ::nearby::sharing::analytics::proto::SharingLog_TapQrCode* _msg = _internal_mutable_tap_qr_code(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.tap_qr_code) return _msg; } -inline void SharingLog::set_allocated_tap_qr_code(::nearby::sharing::analytics::proto::SharingLog_TapQrCode* tap_qr_code) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_tap_qr_code(::nearby::sharing::analytics::proto::SharingLog_TapQrCode* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete tap_qr_code_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tap_qr_code_); } - if (tap_qr_code) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_TapQrCode>::GetOwningArena(tap_qr_code); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - tap_qr_code = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tap_qr_code, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x40000000u; + SetHasBit(_impl_._has_bits_[2], 0x00000001U); } else { - _has_bits_[1] &= ~0x40000000u; + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } - tap_qr_code_ = tap_qr_code; + + _impl_.tap_qr_code_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_TapQrCode*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.tap_qr_code) } // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeLinkShown qr_code_link_shown = 67; -inline bool SharingLog::_internal_has_qr_code_link_shown() const { - bool value = (_has_bits_[1] & 0x80000000u) != 0; - PROTOBUF_ASSUME(!value || qr_code_link_shown_ != nullptr); +inline bool SharingLog::has_qr_code_link_shown() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.qr_code_link_shown_ != nullptr); return value; } -inline bool SharingLog::has_qr_code_link_shown() const { - return _internal_has_qr_code_link_shown(); -} inline void SharingLog::clear_qr_code_link_shown() { - if (qr_code_link_shown_ != nullptr) qr_code_link_shown_->Clear(); - _has_bits_[1] &= ~0x80000000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_link_shown_ != nullptr) _impl_.qr_code_link_shown_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000002U); } inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& SharingLog::_internal_qr_code_link_shown() const { - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* p = qr_code_link_shown_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_QrCodeLinkShown_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* p = _impl_.qr_code_link_shown_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_QrCodeLinkShown_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& SharingLog::qr_code_link_shown() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown& SharingLog::qr_code_link_shown() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.qr_code_link_shown) return _internal_qr_code_link_shown(); } inline void SharingLog::unsafe_arena_set_allocated_qr_code_link_shown( - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* qr_code_link_shown) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(qr_code_link_shown_); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_link_shown_); } - qr_code_link_shown_ = qr_code_link_shown; - if (qr_code_link_shown) { - _has_bits_[1] |= 0x80000000u; + _impl_.qr_code_link_shown_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000002U); } else { - _has_bits_[1] &= ~0x80000000u; + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.qr_code_link_shown) } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* SharingLog::release_qr_code_link_shown() { - _has_bits_[1] &= ~0x80000000u; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* temp = qr_code_link_shown_; - qr_code_link_shown_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE SharingLog::release_qr_code_link_shown() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* released = _impl_.qr_code_link_shown_; + _impl_.qr_code_link_shown_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* SharingLog::unsafe_arena_release_qr_code_link_shown() { +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_qr_code_link_shown() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.qr_code_link_shown) - _has_bits_[1] &= ~0x80000000u; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* temp = qr_code_link_shown_; - qr_code_link_shown_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* temp = _impl_.qr_code_link_shown_; + _impl_.qr_code_link_shown_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* SharingLog::_internal_mutable_qr_code_link_shown() { - _has_bits_[1] |= 0x80000000u; - if (qr_code_link_shown_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>(GetArenaForAllocation()); - qr_code_link_shown_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL SharingLog::_internal_mutable_qr_code_link_shown() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_link_shown_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>(GetArena()); + _impl_.qr_code_link_shown_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown*>(p); } - return qr_code_link_shown_; + return _impl_.qr_code_link_shown_; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* SharingLog::mutable_qr_code_link_shown() { +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NONNULL SharingLog::mutable_qr_code_link_shown() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000002U); ::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* _msg = _internal_mutable_qr_code_link_shown(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.qr_code_link_shown) return _msg; } -inline void SharingLog::set_allocated_qr_code_link_shown(::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* qr_code_link_shown) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_qr_code_link_shown(::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete qr_code_link_shown_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_link_shown_); } - if (qr_code_link_shown) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown>::GetOwningArena(qr_code_link_shown); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - qr_code_link_shown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qr_code_link_shown, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[1] |= 0x80000000u; + SetHasBit(_impl_._has_bits_[2], 0x00000002U); } else { - _has_bits_[1] &= ~0x80000000u; + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); } - qr_code_link_shown_ = qr_code_link_shown; + + _impl_.qr_code_link_shown_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeLinkShown*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.qr_code_link_shown) } // optional .nearby.sharing.analytics.proto.SharingLog.ParsingFailedEndpointId parsing_failed_endpoint_id = 68; -inline bool SharingLog::_internal_has_parsing_failed_endpoint_id() const { - bool value = (_has_bits_[2] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || parsing_failed_endpoint_id_ != nullptr); +inline bool SharingLog::has_parsing_failed_endpoint_id() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.parsing_failed_endpoint_id_ != nullptr); return value; } -inline bool SharingLog::has_parsing_failed_endpoint_id() const { - return _internal_has_parsing_failed_endpoint_id(); -} inline void SharingLog::clear_parsing_failed_endpoint_id() { - if (parsing_failed_endpoint_id_ != nullptr) parsing_failed_endpoint_id_->Clear(); - _has_bits_[2] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.parsing_failed_endpoint_id_ != nullptr) _impl_.parsing_failed_endpoint_id_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000004U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& SharingLog::_internal_parsing_failed_endpoint_id() const { - const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* p = parsing_failed_endpoint_id_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ParsingFailedEndpointId_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* p = _impl_.parsing_failed_endpoint_id_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ParsingFailedEndpointId_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& SharingLog::parsing_failed_endpoint_id() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId& SharingLog::parsing_failed_endpoint_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.parsing_failed_endpoint_id) return _internal_parsing_failed_endpoint_id(); } inline void SharingLog::unsafe_arena_set_allocated_parsing_failed_endpoint_id( - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* parsing_failed_endpoint_id) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(parsing_failed_endpoint_id_); + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parsing_failed_endpoint_id_); } - parsing_failed_endpoint_id_ = parsing_failed_endpoint_id; - if (parsing_failed_endpoint_id) { - _has_bits_[2] |= 0x00000001u; + _impl_.parsing_failed_endpoint_id_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000004U); } else { - _has_bits_[2] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.parsing_failed_endpoint_id) } -inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* SharingLog::release_parsing_failed_endpoint_id() { - _has_bits_[2] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* temp = parsing_failed_endpoint_id_; - parsing_failed_endpoint_id_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE SharingLog::release_parsing_failed_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* released = _impl_.parsing_failed_endpoint_id_; + _impl_.parsing_failed_endpoint_id_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* SharingLog::unsafe_arena_release_parsing_failed_endpoint_id() { +inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_parsing_failed_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.parsing_failed_endpoint_id) - _has_bits_[2] &= ~0x00000001u; - ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* temp = parsing_failed_endpoint_id_; - parsing_failed_endpoint_id_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); + ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* temp = _impl_.parsing_failed_endpoint_id_; + _impl_.parsing_failed_endpoint_id_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* SharingLog::_internal_mutable_parsing_failed_endpoint_id() { - _has_bits_[2] |= 0x00000001u; - if (parsing_failed_endpoint_id_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>(GetArenaForAllocation()); - parsing_failed_endpoint_id_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL SharingLog::_internal_mutable_parsing_failed_endpoint_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.parsing_failed_endpoint_id_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>(GetArena()); + _impl_.parsing_failed_endpoint_id_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId*>(p); } - return parsing_failed_endpoint_id_; + return _impl_.parsing_failed_endpoint_id_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* SharingLog::mutable_parsing_failed_endpoint_id() { +inline ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NONNULL SharingLog::mutable_parsing_failed_endpoint_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000004U); ::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* _msg = _internal_mutable_parsing_failed_endpoint_id(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.parsing_failed_endpoint_id) return _msg; } -inline void SharingLog::set_allocated_parsing_failed_endpoint_id(::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* parsing_failed_endpoint_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_parsing_failed_endpoint_id(::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete parsing_failed_endpoint_id_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parsing_failed_endpoint_id_); } - if (parsing_failed_endpoint_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId>::GetOwningArena(parsing_failed_endpoint_id); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - parsing_failed_endpoint_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, parsing_failed_endpoint_id, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[2], 0x00000004U); } else { - _has_bits_[2] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); } - parsing_failed_endpoint_id_ = parsing_failed_endpoint_id; + + _impl_.parsing_failed_endpoint_id_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ParsingFailedEndpointId*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.parsing_failed_endpoint_id) } // optional .nearby.sharing.analytics.proto.SharingLog.FastInitDiscoverDevice fast_init_discover_device = 69; -inline bool SharingLog::_internal_has_fast_init_discover_device() const { - bool value = (_has_bits_[2] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || fast_init_discover_device_ != nullptr); +inline bool SharingLog::has_fast_init_discover_device() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.fast_init_discover_device_ != nullptr); return value; } -inline bool SharingLog::has_fast_init_discover_device() const { - return _internal_has_fast_init_discover_device(); -} inline void SharingLog::clear_fast_init_discover_device() { - if (fast_init_discover_device_ != nullptr) fast_init_discover_device_->Clear(); - _has_bits_[2] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.fast_init_discover_device_ != nullptr) _impl_.fast_init_discover_device_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000008U); } inline const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& SharingLog::_internal_fast_init_discover_device() const { - const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* p = fast_init_discover_device_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_FastInitDiscoverDevice_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* p = _impl_.fast_init_discover_device_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_FastInitDiscoverDevice_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& SharingLog::fast_init_discover_device() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice& SharingLog::fast_init_discover_device() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.fast_init_discover_device) return _internal_fast_init_discover_device(); } inline void SharingLog::unsafe_arena_set_allocated_fast_init_discover_device( - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* fast_init_discover_device) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fast_init_discover_device_); + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fast_init_discover_device_); } - fast_init_discover_device_ = fast_init_discover_device; - if (fast_init_discover_device) { - _has_bits_[2] |= 0x00000002u; + _impl_.fast_init_discover_device_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000008U); } else { - _has_bits_[2] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.fast_init_discover_device) } -inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* SharingLog::release_fast_init_discover_device() { - _has_bits_[2] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* temp = fast_init_discover_device_; - fast_init_discover_device_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE SharingLog::release_fast_init_discover_device() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* released = _impl_.fast_init_discover_device_; + _impl_.fast_init_discover_device_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* SharingLog::unsafe_arena_release_fast_init_discover_device() { +inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_fast_init_discover_device() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.fast_init_discover_device) - _has_bits_[2] &= ~0x00000002u; - ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* temp = fast_init_discover_device_; - fast_init_discover_device_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); + ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* temp = _impl_.fast_init_discover_device_; + _impl_.fast_init_discover_device_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* SharingLog::_internal_mutable_fast_init_discover_device() { - _has_bits_[2] |= 0x00000002u; - if (fast_init_discover_device_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>(GetArenaForAllocation()); - fast_init_discover_device_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL SharingLog::_internal_mutable_fast_init_discover_device() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.fast_init_discover_device_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>(GetArena()); + _impl_.fast_init_discover_device_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice*>(p); } - return fast_init_discover_device_; + return _impl_.fast_init_discover_device_; } -inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* SharingLog::mutable_fast_init_discover_device() { +inline ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NONNULL SharingLog::mutable_fast_init_discover_device() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000008U); ::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* _msg = _internal_mutable_fast_init_discover_device(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.fast_init_discover_device) return _msg; } -inline void SharingLog::set_allocated_fast_init_discover_device(::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* fast_init_discover_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_fast_init_discover_device(::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete fast_init_discover_device_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fast_init_discover_device_); } - if (fast_init_discover_device) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice>::GetOwningArena(fast_init_discover_device); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - fast_init_discover_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, fast_init_discover_device, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[2], 0x00000008U); } else { - _has_bits_[2] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); } - fast_init_discover_device_ = fast_init_discover_device; + + _impl_.fast_init_discover_device_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_FastInitDiscoverDevice*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.fast_init_discover_device) } // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopNotification send_desktop_notification = 70; -inline bool SharingLog::_internal_has_send_desktop_notification() const { - bool value = (_has_bits_[2] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || send_desktop_notification_ != nullptr); +inline bool SharingLog::has_send_desktop_notification() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.send_desktop_notification_ != nullptr); return value; } -inline bool SharingLog::has_send_desktop_notification() const { - return _internal_has_send_desktop_notification(); -} inline void SharingLog::clear_send_desktop_notification() { - if (send_desktop_notification_ != nullptr) send_desktop_notification_->Clear(); - _has_bits_[2] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_desktop_notification_ != nullptr) _impl_.send_desktop_notification_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000010U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& SharingLog::_internal_send_desktop_notification() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* p = send_desktop_notification_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendDesktopNotification_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* p = _impl_.send_desktop_notification_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendDesktopNotification_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& SharingLog::send_desktop_notification() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification& SharingLog::send_desktop_notification() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_desktop_notification) return _internal_send_desktop_notification(); } inline void SharingLog::unsafe_arena_set_allocated_send_desktop_notification( - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* send_desktop_notification) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_desktop_notification_); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_desktop_notification_); } - send_desktop_notification_ = send_desktop_notification; - if (send_desktop_notification) { - _has_bits_[2] |= 0x00000004u; + _impl_.send_desktop_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000010U); } else { - _has_bits_[2] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_desktop_notification) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* SharingLog::release_send_desktop_notification() { - _has_bits_[2] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* temp = send_desktop_notification_; - send_desktop_notification_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE SharingLog::release_send_desktop_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* released = _impl_.send_desktop_notification_; + _impl_.send_desktop_notification_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* SharingLog::unsafe_arena_release_send_desktop_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_desktop_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_desktop_notification) - _has_bits_[2] &= ~0x00000004u; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* temp = send_desktop_notification_; - send_desktop_notification_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* temp = _impl_.send_desktop_notification_; + _impl_.send_desktop_notification_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* SharingLog::_internal_mutable_send_desktop_notification() { - _has_bits_[2] |= 0x00000004u; - if (send_desktop_notification_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>(GetArenaForAllocation()); - send_desktop_notification_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_desktop_notification() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_desktop_notification_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>(GetArena()); + _impl_.send_desktop_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification*>(p); } - return send_desktop_notification_; + return _impl_.send_desktop_notification_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* SharingLog::mutable_send_desktop_notification() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NONNULL SharingLog::mutable_send_desktop_notification() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000010U); ::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* _msg = _internal_mutable_send_desktop_notification(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_desktop_notification) return _msg; } -inline void SharingLog::set_allocated_send_desktop_notification(::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* send_desktop_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_desktop_notification(::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_desktop_notification_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_desktop_notification_); } - if (send_desktop_notification) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification>::GetOwningArena(send_desktop_notification); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_desktop_notification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_desktop_notification, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[2], 0x00000010U); } else { - _has_bits_[2] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); } - send_desktop_notification_ = send_desktop_notification; + + _impl_.send_desktop_notification_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopNotification*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_desktop_notification) } // optional .nearby.sharing.analytics.proto.SharingLog.SendDesktopTransferEvent send_desktop_transfer_event = 72; -inline bool SharingLog::_internal_has_send_desktop_transfer_event() const { - bool value = (_has_bits_[2] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || send_desktop_transfer_event_ != nullptr); +inline bool SharingLog::has_send_desktop_transfer_event() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.send_desktop_transfer_event_ != nullptr); return value; } -inline bool SharingLog::has_send_desktop_transfer_event() const { - return _internal_has_send_desktop_transfer_event(); -} inline void SharingLog::clear_send_desktop_transfer_event() { - if (send_desktop_transfer_event_ != nullptr) send_desktop_transfer_event_->Clear(); - _has_bits_[2] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_desktop_transfer_event_ != nullptr) _impl_.send_desktop_transfer_event_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000020U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& SharingLog::_internal_send_desktop_transfer_event() const { - const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* p = send_desktop_transfer_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SendDesktopTransferEvent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* p = _impl_.send_desktop_transfer_event_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SendDesktopTransferEvent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& SharingLog::send_desktop_transfer_event() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent& SharingLog::send_desktop_transfer_event() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.send_desktop_transfer_event) return _internal_send_desktop_transfer_event(); } inline void SharingLog::unsafe_arena_set_allocated_send_desktop_transfer_event( - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* send_desktop_transfer_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(send_desktop_transfer_event_); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_desktop_transfer_event_); } - send_desktop_transfer_event_ = send_desktop_transfer_event; - if (send_desktop_transfer_event) { - _has_bits_[2] |= 0x00000008u; + _impl_.send_desktop_transfer_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000020U); } else { - _has_bits_[2] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_desktop_transfer_event) } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* SharingLog::release_send_desktop_transfer_event() { - _has_bits_[2] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* temp = send_desktop_transfer_event_; - send_desktop_transfer_event_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE SharingLog::release_send_desktop_transfer_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* released = _impl_.send_desktop_transfer_event_; + _impl_.send_desktop_transfer_event_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* SharingLog::unsafe_arena_release_send_desktop_transfer_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_send_desktop_transfer_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.send_desktop_transfer_event) - _has_bits_[2] &= ~0x00000008u; - ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* temp = send_desktop_transfer_event_; - send_desktop_transfer_event_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); + ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* temp = _impl_.send_desktop_transfer_event_; + _impl_.send_desktop_transfer_event_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* SharingLog::_internal_mutable_send_desktop_transfer_event() { - _has_bits_[2] |= 0x00000008u; - if (send_desktop_transfer_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>(GetArenaForAllocation()); - send_desktop_transfer_event_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL SharingLog::_internal_mutable_send_desktop_transfer_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.send_desktop_transfer_event_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>(GetArena()); + _impl_.send_desktop_transfer_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent*>(p); } - return send_desktop_transfer_event_; + return _impl_.send_desktop_transfer_event_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* SharingLog::mutable_send_desktop_transfer_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NONNULL SharingLog::mutable_send_desktop_transfer_event() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000020U); ::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* _msg = _internal_mutable_send_desktop_transfer_event(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.send_desktop_transfer_event) return _msg; } -inline void SharingLog::set_allocated_send_desktop_transfer_event(::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* send_desktop_transfer_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_send_desktop_transfer_event(::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete send_desktop_transfer_event_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.send_desktop_transfer_event_); } - if (send_desktop_transfer_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent>::GetOwningArena(send_desktop_transfer_event); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - send_desktop_transfer_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, send_desktop_transfer_event, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[2], 0x00000020U); } else { - _has_bits_[2] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); } - send_desktop_transfer_event_ = send_desktop_transfer_event; + + _impl_.send_desktop_transfer_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SendDesktopTransferEvent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.send_desktop_transfer_event) } // optional .nearby.sharing.analytics.proto.SharingLog.SetAccount set_account = 73; -inline bool SharingLog::_internal_has_set_account() const { - bool value = (_has_bits_[2] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || set_account_ != nullptr); +inline bool SharingLog::has_set_account() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000040U); + PROTOBUF_ASSUME(!value || _impl_.set_account_ != nullptr); return value; } -inline bool SharingLog::has_set_account() const { - return _internal_has_set_account(); -} inline void SharingLog::clear_set_account() { - if (set_account_ != nullptr) set_account_->Clear(); - _has_bits_[2] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_account_ != nullptr) _impl_.set_account_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000040U); } inline const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& SharingLog::_internal_set_account() const { - const ::nearby::sharing::analytics::proto::SharingLog_SetAccount* p = set_account_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_SetAccount_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_SetAccount* p = _impl_.set_account_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_SetAccount_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& SharingLog::set_account() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_SetAccount& SharingLog::set_account() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.set_account) return _internal_set_account(); } inline void SharingLog::unsafe_arena_set_allocated_set_account( - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* set_account) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_account_); + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_account_); } - set_account_ = set_account; - if (set_account) { - _has_bits_[2] |= 0x00000010u; + _impl_.set_account_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetAccount*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000040U); } else { - _has_bits_[2] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_account) } -inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* SharingLog::release_set_account() { - _has_bits_[2] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* temp = set_account_; - set_account_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE SharingLog::release_set_account() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* released = _impl_.set_account_; + _impl_.set_account_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* SharingLog::unsafe_arena_release_set_account() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_set_account() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.set_account) - _has_bits_[2] &= ~0x00000010u; - ::nearby::sharing::analytics::proto::SharingLog_SetAccount* temp = set_account_; - set_account_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); + ::nearby::sharing::analytics::proto::SharingLog_SetAccount* temp = _impl_.set_account_; + _impl_.set_account_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* SharingLog::_internal_mutable_set_account() { - _has_bits_[2] |= 0x00000010u; - if (set_account_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_SetAccount>(GetArenaForAllocation()); - set_account_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NONNULL SharingLog::_internal_mutable_set_account() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.set_account_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_SetAccount>(GetArena()); + _impl_.set_account_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetAccount*>(p); } - return set_account_; + return _impl_.set_account_; } -inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* SharingLog::mutable_set_account() { +inline ::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NONNULL SharingLog::mutable_set_account() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000040U); ::nearby::sharing::analytics::proto::SharingLog_SetAccount* _msg = _internal_mutable_set_account(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.set_account) return _msg; } -inline void SharingLog::set_allocated_set_account(::nearby::sharing::analytics::proto::SharingLog_SetAccount* set_account) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_set_account(::nearby::sharing::analytics::proto::SharingLog_SetAccount* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete set_account_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.set_account_); } - if (set_account) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_SetAccount>::GetOwningArena(set_account); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - set_account = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_account, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[2], 0x00000040U); } else { - _has_bits_[2] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); } - set_account_ = set_account; + + _impl_.set_account_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_SetAccount*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.set_account) } // optional .nearby.sharing.analytics.proto.SharingLog.DecryptCertificateFailure decrypt_certificate_failure = 74; -inline bool SharingLog::_internal_has_decrypt_certificate_failure() const { - bool value = (_has_bits_[2] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || decrypt_certificate_failure_ != nullptr); +inline bool SharingLog::has_decrypt_certificate_failure() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000080U); + PROTOBUF_ASSUME(!value || _impl_.decrypt_certificate_failure_ != nullptr); return value; } -inline bool SharingLog::has_decrypt_certificate_failure() const { - return _internal_has_decrypt_certificate_failure(); -} inline void SharingLog::clear_decrypt_certificate_failure() { - if (decrypt_certificate_failure_ != nullptr) decrypt_certificate_failure_->Clear(); - _has_bits_[2] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.decrypt_certificate_failure_ != nullptr) _impl_.decrypt_certificate_failure_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000080U); } inline const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& SharingLog::_internal_decrypt_certificate_failure() const { - const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* p = decrypt_certificate_failure_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_DecryptCertificateFailure_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* p = _impl_.decrypt_certificate_failure_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_DecryptCertificateFailure_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& SharingLog::decrypt_certificate_failure() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure& SharingLog::decrypt_certificate_failure() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.decrypt_certificate_failure) return _internal_decrypt_certificate_failure(); } inline void SharingLog::unsafe_arena_set_allocated_decrypt_certificate_failure( - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* decrypt_certificate_failure) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(decrypt_certificate_failure_); + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.decrypt_certificate_failure_); } - decrypt_certificate_failure_ = decrypt_certificate_failure; - if (decrypt_certificate_failure) { - _has_bits_[2] |= 0x00000020u; + _impl_.decrypt_certificate_failure_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000080U); } else { - _has_bits_[2] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.decrypt_certificate_failure) } -inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* SharingLog::release_decrypt_certificate_failure() { - _has_bits_[2] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* temp = decrypt_certificate_failure_; - decrypt_certificate_failure_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE SharingLog::release_decrypt_certificate_failure() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* released = _impl_.decrypt_certificate_failure_; + _impl_.decrypt_certificate_failure_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* SharingLog::unsafe_arena_release_decrypt_certificate_failure() { +inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_decrypt_certificate_failure() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.decrypt_certificate_failure) - _has_bits_[2] &= ~0x00000020u; - ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* temp = decrypt_certificate_failure_; - decrypt_certificate_failure_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); + ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* temp = _impl_.decrypt_certificate_failure_; + _impl_.decrypt_certificate_failure_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* SharingLog::_internal_mutable_decrypt_certificate_failure() { - _has_bits_[2] |= 0x00000020u; - if (decrypt_certificate_failure_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>(GetArenaForAllocation()); - decrypt_certificate_failure_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL SharingLog::_internal_mutable_decrypt_certificate_failure() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.decrypt_certificate_failure_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>(GetArena()); + _impl_.decrypt_certificate_failure_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure*>(p); } - return decrypt_certificate_failure_; + return _impl_.decrypt_certificate_failure_; } -inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* SharingLog::mutable_decrypt_certificate_failure() { +inline ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NONNULL SharingLog::mutable_decrypt_certificate_failure() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000080U); ::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* _msg = _internal_mutable_decrypt_certificate_failure(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.decrypt_certificate_failure) return _msg; } -inline void SharingLog::set_allocated_decrypt_certificate_failure(::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* decrypt_certificate_failure) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_decrypt_certificate_failure(::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete decrypt_certificate_failure_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.decrypt_certificate_failure_); } - if (decrypt_certificate_failure) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure>::GetOwningArena(decrypt_certificate_failure); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - decrypt_certificate_failure = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, decrypt_certificate_failure, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[2], 0x00000080U); } else { - _has_bits_[2] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); } - decrypt_certificate_failure_ = decrypt_certificate_failure; + + _impl_.decrypt_certificate_failure_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_DecryptCertificateFailure*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.decrypt_certificate_failure) } // optional .nearby.sharing.analytics.proto.SharingLog.ShowAllowPermissionAutoAccess show_allow_permission_auto_access = 75; -inline bool SharingLog::_internal_has_show_allow_permission_auto_access() const { - bool value = (_has_bits_[2] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || show_allow_permission_auto_access_ != nullptr); +inline bool SharingLog::has_show_allow_permission_auto_access() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000100U); + PROTOBUF_ASSUME(!value || _impl_.show_allow_permission_auto_access_ != nullptr); return value; } -inline bool SharingLog::has_show_allow_permission_auto_access() const { - return _internal_has_show_allow_permission_auto_access(); -} inline void SharingLog::clear_show_allow_permission_auto_access() { - if (show_allow_permission_auto_access_ != nullptr) show_allow_permission_auto_access_->Clear(); - _has_bits_[2] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.show_allow_permission_auto_access_ != nullptr) _impl_.show_allow_permission_auto_access_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000100U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& SharingLog::_internal_show_allow_permission_auto_access() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* p = show_allow_permission_auto_access_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShowAllowPermissionAutoAccess_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* p = _impl_.show_allow_permission_auto_access_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShowAllowPermissionAutoAccess_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& SharingLog::show_allow_permission_auto_access() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess& SharingLog::show_allow_permission_auto_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.show_allow_permission_auto_access) return _internal_show_allow_permission_auto_access(); } inline void SharingLog::unsafe_arena_set_allocated_show_allow_permission_auto_access( - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* show_allow_permission_auto_access) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(show_allow_permission_auto_access_); + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.show_allow_permission_auto_access_); } - show_allow_permission_auto_access_ = show_allow_permission_auto_access; - if (show_allow_permission_auto_access) { - _has_bits_[2] |= 0x00000040u; + _impl_.show_allow_permission_auto_access_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000100U); } else { - _has_bits_[2] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.show_allow_permission_auto_access) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* SharingLog::release_show_allow_permission_auto_access() { - _has_bits_[2] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* temp = show_allow_permission_auto_access_; - show_allow_permission_auto_access_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE SharingLog::release_show_allow_permission_auto_access() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* released = _impl_.show_allow_permission_auto_access_; + _impl_.show_allow_permission_auto_access_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* SharingLog::unsafe_arena_release_show_allow_permission_auto_access() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_show_allow_permission_auto_access() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.show_allow_permission_auto_access) - _has_bits_[2] &= ~0x00000040u; - ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* temp = show_allow_permission_auto_access_; - show_allow_permission_auto_access_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); + ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* temp = _impl_.show_allow_permission_auto_access_; + _impl_.show_allow_permission_auto_access_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* SharingLog::_internal_mutable_show_allow_permission_auto_access() { - _has_bits_[2] |= 0x00000040u; - if (show_allow_permission_auto_access_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>(GetArenaForAllocation()); - show_allow_permission_auto_access_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL SharingLog::_internal_mutable_show_allow_permission_auto_access() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.show_allow_permission_auto_access_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>(GetArena()); + _impl_.show_allow_permission_auto_access_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess*>(p); } - return show_allow_permission_auto_access_; + return _impl_.show_allow_permission_auto_access_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* SharingLog::mutable_show_allow_permission_auto_access() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NONNULL SharingLog::mutable_show_allow_permission_auto_access() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000100U); ::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* _msg = _internal_mutable_show_allow_permission_auto_access(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.show_allow_permission_auto_access) return _msg; } -inline void SharingLog::set_allocated_show_allow_permission_auto_access(::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* show_allow_permission_auto_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_show_allow_permission_auto_access(::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete show_allow_permission_auto_access_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.show_allow_permission_auto_access_); } - if (show_allow_permission_auto_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess>::GetOwningArena(show_allow_permission_auto_access); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - show_allow_permission_auto_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, show_allow_permission_auto_access, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[2], 0x00000100U); } else { - _has_bits_[2] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); } - show_allow_permission_auto_access_ = show_allow_permission_auto_access; + + _impl_.show_allow_permission_auto_access_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowAllowPermissionAutoAccess*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.show_allow_permission_auto_access) } // optional .nearby.sharing.analytics.proto.SharingLog.ShowWaitingForAccept show_waiting_for_accept = 76; -inline bool SharingLog::_internal_has_show_waiting_for_accept() const { - bool value = (_has_bits_[2] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || show_waiting_for_accept_ != nullptr); +inline bool SharingLog::has_show_waiting_for_accept() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000200U); + PROTOBUF_ASSUME(!value || _impl_.show_waiting_for_accept_ != nullptr); return value; } -inline bool SharingLog::has_show_waiting_for_accept() const { - return _internal_has_show_waiting_for_accept(); -} inline void SharingLog::clear_show_waiting_for_accept() { - if (show_waiting_for_accept_ != nullptr) show_waiting_for_accept_->Clear(); - _has_bits_[2] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.show_waiting_for_accept_ != nullptr) _impl_.show_waiting_for_accept_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000200U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& SharingLog::_internal_show_waiting_for_accept() const { - const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* p = show_waiting_for_accept_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ShowWaitingForAccept_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* p = _impl_.show_waiting_for_accept_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ShowWaitingForAccept_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& SharingLog::show_waiting_for_accept() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept& SharingLog::show_waiting_for_accept() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.show_waiting_for_accept) return _internal_show_waiting_for_accept(); } inline void SharingLog::unsafe_arena_set_allocated_show_waiting_for_accept( - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* show_waiting_for_accept) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(show_waiting_for_accept_); + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.show_waiting_for_accept_); } - show_waiting_for_accept_ = show_waiting_for_accept; - if (show_waiting_for_accept) { - _has_bits_[2] |= 0x00000080u; + _impl_.show_waiting_for_accept_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000200U); } else { - _has_bits_[2] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.show_waiting_for_accept) } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* SharingLog::release_show_waiting_for_accept() { - _has_bits_[2] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* temp = show_waiting_for_accept_; - show_waiting_for_accept_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE SharingLog::release_show_waiting_for_accept() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* released = _impl_.show_waiting_for_accept_; + _impl_.show_waiting_for_accept_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* SharingLog::unsafe_arena_release_show_waiting_for_accept() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_show_waiting_for_accept() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.show_waiting_for_accept) - _has_bits_[2] &= ~0x00000080u; - ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* temp = show_waiting_for_accept_; - show_waiting_for_accept_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); + ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* temp = _impl_.show_waiting_for_accept_; + _impl_.show_waiting_for_accept_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* SharingLog::_internal_mutable_show_waiting_for_accept() { - _has_bits_[2] |= 0x00000080u; - if (show_waiting_for_accept_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>(GetArenaForAllocation()); - show_waiting_for_accept_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL SharingLog::_internal_mutable_show_waiting_for_accept() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.show_waiting_for_accept_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>(GetArena()); + _impl_.show_waiting_for_accept_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept*>(p); } - return show_waiting_for_accept_; + return _impl_.show_waiting_for_accept_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* SharingLog::mutable_show_waiting_for_accept() { +inline ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NONNULL SharingLog::mutable_show_waiting_for_accept() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000200U); ::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* _msg = _internal_mutable_show_waiting_for_accept(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.show_waiting_for_accept) return _msg; } -inline void SharingLog::set_allocated_show_waiting_for_accept(::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* show_waiting_for_accept) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_show_waiting_for_accept(::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete show_waiting_for_accept_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.show_waiting_for_accept_); } - if (show_waiting_for_accept) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept>::GetOwningArena(show_waiting_for_accept); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - show_waiting_for_accept = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, show_waiting_for_accept, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[2], 0x00000200U); } else { - _has_bits_[2] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); } - show_waiting_for_accept_ = show_waiting_for_accept; + + _impl_.show_waiting_for_accept_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ShowWaitingForAccept*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.show_waiting_for_accept) } // optional .nearby.sharing.analytics.proto.SharingLog.HighQualityMediumSetup high_quality_medium_setup = 77; -inline bool SharingLog::_internal_has_high_quality_medium_setup() const { - bool value = (_has_bits_[2] & 0x00000100u) != 0; - PROTOBUF_ASSUME(!value || high_quality_medium_setup_ != nullptr); +inline bool SharingLog::has_high_quality_medium_setup() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000400U); + PROTOBUF_ASSUME(!value || _impl_.high_quality_medium_setup_ != nullptr); return value; } -inline bool SharingLog::has_high_quality_medium_setup() const { - return _internal_has_high_quality_medium_setup(); -} inline void SharingLog::clear_high_quality_medium_setup() { - if (high_quality_medium_setup_ != nullptr) high_quality_medium_setup_->Clear(); - _has_bits_[2] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.high_quality_medium_setup_ != nullptr) _impl_.high_quality_medium_setup_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000400U); } inline const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& SharingLog::_internal_high_quality_medium_setup() const { - const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* p = high_quality_medium_setup_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_HighQualityMediumSetup_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* p = _impl_.high_quality_medium_setup_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_HighQualityMediumSetup_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& SharingLog::high_quality_medium_setup() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup& SharingLog::high_quality_medium_setup() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.high_quality_medium_setup) return _internal_high_quality_medium_setup(); } inline void SharingLog::unsafe_arena_set_allocated_high_quality_medium_setup( - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* high_quality_medium_setup) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(high_quality_medium_setup_); + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.high_quality_medium_setup_); } - high_quality_medium_setup_ = high_quality_medium_setup; - if (high_quality_medium_setup) { - _has_bits_[2] |= 0x00000100u; + _impl_.high_quality_medium_setup_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000400U); } else { - _has_bits_[2] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.high_quality_medium_setup) } -inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* SharingLog::release_high_quality_medium_setup() { - _has_bits_[2] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* temp = high_quality_medium_setup_; - high_quality_medium_setup_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE SharingLog::release_high_quality_medium_setup() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* released = _impl_.high_quality_medium_setup_; + _impl_.high_quality_medium_setup_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* SharingLog::unsafe_arena_release_high_quality_medium_setup() { +inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_high_quality_medium_setup() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.high_quality_medium_setup) - _has_bits_[2] &= ~0x00000100u; - ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* temp = high_quality_medium_setup_; - high_quality_medium_setup_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); + ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* temp = _impl_.high_quality_medium_setup_; + _impl_.high_quality_medium_setup_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* SharingLog::_internal_mutable_high_quality_medium_setup() { - _has_bits_[2] |= 0x00000100u; - if (high_quality_medium_setup_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>(GetArenaForAllocation()); - high_quality_medium_setup_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL SharingLog::_internal_mutable_high_quality_medium_setup() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.high_quality_medium_setup_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>(GetArena()); + _impl_.high_quality_medium_setup_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup*>(p); } - return high_quality_medium_setup_; + return _impl_.high_quality_medium_setup_; } -inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* SharingLog::mutable_high_quality_medium_setup() { +inline ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NONNULL SharingLog::mutable_high_quality_medium_setup() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000400U); ::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* _msg = _internal_mutable_high_quality_medium_setup(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.high_quality_medium_setup) return _msg; } -inline void SharingLog::set_allocated_high_quality_medium_setup(::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* high_quality_medium_setup) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_high_quality_medium_setup(::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete high_quality_medium_setup_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.high_quality_medium_setup_); } - if (high_quality_medium_setup) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup>::GetOwningArena(high_quality_medium_setup); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - high_quality_medium_setup = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, high_quality_medium_setup, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000100u; + SetHasBit(_impl_._has_bits_[2], 0x00000400U); } else { - _has_bits_[2] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); } - high_quality_medium_setup_ = high_quality_medium_setup; + + _impl_.high_quality_medium_setup_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HighQualityMediumSetup*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.high_quality_medium_setup) } // optional .nearby.sharing.analytics.proto.SharingLog.RpcCallStatus rpc_call_status = 78; -inline bool SharingLog::_internal_has_rpc_call_status() const { - bool value = (_has_bits_[2] & 0x00000200u) != 0; - PROTOBUF_ASSUME(!value || rpc_call_status_ != nullptr); +inline bool SharingLog::has_rpc_call_status() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000800U); + PROTOBUF_ASSUME(!value || _impl_.rpc_call_status_ != nullptr); return value; } -inline bool SharingLog::has_rpc_call_status() const { - return _internal_has_rpc_call_status(); -} inline void SharingLog::clear_rpc_call_status() { - if (rpc_call_status_ != nullptr) rpc_call_status_->Clear(); - _has_bits_[2] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rpc_call_status_ != nullptr) _impl_.rpc_call_status_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00000800U); } inline const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& SharingLog::_internal_rpc_call_status() const { - const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* p = rpc_call_status_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_RpcCallStatus_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* p = _impl_.rpc_call_status_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_RpcCallStatus_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& SharingLog::rpc_call_status() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus& SharingLog::rpc_call_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.rpc_call_status) return _internal_rpc_call_status(); } inline void SharingLog::unsafe_arena_set_allocated_rpc_call_status( - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* rpc_call_status) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rpc_call_status_); + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rpc_call_status_); } - rpc_call_status_ = rpc_call_status; - if (rpc_call_status) { - _has_bits_[2] |= 0x00000200u; + _impl_.rpc_call_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00000800U); } else { - _has_bits_[2] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.rpc_call_status) } -inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* SharingLog::release_rpc_call_status() { - _has_bits_[2] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* temp = rpc_call_status_; - rpc_call_status_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE SharingLog::release_rpc_call_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* released = _impl_.rpc_call_status_; + _impl_.rpc_call_status_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* SharingLog::unsafe_arena_release_rpc_call_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_rpc_call_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.rpc_call_status) - _has_bits_[2] &= ~0x00000200u; - ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* temp = rpc_call_status_; - rpc_call_status_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); + ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* temp = _impl_.rpc_call_status_; + _impl_.rpc_call_status_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* SharingLog::_internal_mutable_rpc_call_status() { - _has_bits_[2] |= 0x00000200u; - if (rpc_call_status_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>(GetArenaForAllocation()); - rpc_call_status_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NONNULL SharingLog::_internal_mutable_rpc_call_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rpc_call_status_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>(GetArena()); + _impl_.rpc_call_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus*>(p); } - return rpc_call_status_; + return _impl_.rpc_call_status_; } -inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* SharingLog::mutable_rpc_call_status() { +inline ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NONNULL SharingLog::mutable_rpc_call_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00000800U); ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* _msg = _internal_mutable_rpc_call_status(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.rpc_call_status) return _msg; } -inline void SharingLog::set_allocated_rpc_call_status(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* rpc_call_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_rpc_call_status(::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete rpc_call_status_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rpc_call_status_); } - if (rpc_call_status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus>::GetOwningArena(rpc_call_status); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - rpc_call_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rpc_call_status, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000200u; + SetHasBit(_impl_._has_bits_[2], 0x00000800U); } else { - _has_bits_[2] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); } - rpc_call_status_ = rpc_call_status; + + _impl_.rpc_call_status_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.rpc_call_status) } // optional .nearby.sharing.analytics.proto.SharingLog.StartQrCodeSession start_qr_code_session = 79; -inline bool SharingLog::_internal_has_start_qr_code_session() const { - bool value = (_has_bits_[2] & 0x00000400u) != 0; - PROTOBUF_ASSUME(!value || start_qr_code_session_ != nullptr); +inline bool SharingLog::has_start_qr_code_session() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00001000U); + PROTOBUF_ASSUME(!value || _impl_.start_qr_code_session_ != nullptr); return value; } -inline bool SharingLog::has_start_qr_code_session() const { - return _internal_has_start_qr_code_session(); -} inline void SharingLog::clear_start_qr_code_session() { - if (start_qr_code_session_ != nullptr) start_qr_code_session_->Clear(); - _has_bits_[2] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.start_qr_code_session_ != nullptr) _impl_.start_qr_code_session_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00001000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& SharingLog::_internal_start_qr_code_session() const { - const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* p = start_qr_code_session_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_StartQrCodeSession_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* p = _impl_.start_qr_code_session_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_StartQrCodeSession_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& SharingLog::start_qr_code_session() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession& SharingLog::start_qr_code_session() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.start_qr_code_session) return _internal_start_qr_code_session(); } inline void SharingLog::unsafe_arena_set_allocated_start_qr_code_session( - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* start_qr_code_session) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_qr_code_session_); + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_qr_code_session_); } - start_qr_code_session_ = start_qr_code_session; - if (start_qr_code_session) { - _has_bits_[2] |= 0x00000400u; + _impl_.start_qr_code_session_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00001000U); } else { - _has_bits_[2] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.start_qr_code_session) } -inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* SharingLog::release_start_qr_code_session() { - _has_bits_[2] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* temp = start_qr_code_session_; - start_qr_code_session_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE SharingLog::release_start_qr_code_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* released = _impl_.start_qr_code_session_; + _impl_.start_qr_code_session_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* SharingLog::unsafe_arena_release_start_qr_code_session() { +inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_start_qr_code_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.start_qr_code_session) - _has_bits_[2] &= ~0x00000400u; - ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* temp = start_qr_code_session_; - start_qr_code_session_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); + ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* temp = _impl_.start_qr_code_session_; + _impl_.start_qr_code_session_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* SharingLog::_internal_mutable_start_qr_code_session() { - _has_bits_[2] |= 0x00000400u; - if (start_qr_code_session_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>(GetArenaForAllocation()); - start_qr_code_session_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NONNULL SharingLog::_internal_mutable_start_qr_code_session() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.start_qr_code_session_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>(GetArena()); + _impl_.start_qr_code_session_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession*>(p); } - return start_qr_code_session_; + return _impl_.start_qr_code_session_; } -inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* SharingLog::mutable_start_qr_code_session() { +inline ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NONNULL SharingLog::mutable_start_qr_code_session() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00001000U); ::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* _msg = _internal_mutable_start_qr_code_session(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.start_qr_code_session) return _msg; } -inline void SharingLog::set_allocated_start_qr_code_session(::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* start_qr_code_session) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_start_qr_code_session(::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete start_qr_code_session_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_qr_code_session_); } - if (start_qr_code_session) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession>::GetOwningArena(start_qr_code_session); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - start_qr_code_session = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, start_qr_code_session, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000400u; + SetHasBit(_impl_._has_bits_[2], 0x00001000U); } else { - _has_bits_[2] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); } - start_qr_code_session_ = start_qr_code_session; + + _impl_.start_qr_code_session_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_StartQrCodeSession*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.start_qr_code_session) } // optional .nearby.sharing.analytics.proto.SharingLog.QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; -inline bool SharingLog::_internal_has_qr_code_opened_in_web_client() const { - bool value = (_has_bits_[2] & 0x00000800u) != 0; - PROTOBUF_ASSUME(!value || qr_code_opened_in_web_client_ != nullptr); +inline bool SharingLog::has_qr_code_opened_in_web_client() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00002000U); + PROTOBUF_ASSUME(!value || _impl_.qr_code_opened_in_web_client_ != nullptr); return value; } -inline bool SharingLog::has_qr_code_opened_in_web_client() const { - return _internal_has_qr_code_opened_in_web_client(); -} inline void SharingLog::clear_qr_code_opened_in_web_client() { - if (qr_code_opened_in_web_client_ != nullptr) qr_code_opened_in_web_client_->Clear(); - _has_bits_[2] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_opened_in_web_client_ != nullptr) _impl_.qr_code_opened_in_web_client_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00002000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& SharingLog::_internal_qr_code_opened_in_web_client() const { - const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* p = qr_code_opened_in_web_client_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_QrCodeOpenedInWebClient_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* p = _impl_.qr_code_opened_in_web_client_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_QrCodeOpenedInWebClient_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& SharingLog::qr_code_opened_in_web_client() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient& SharingLog::qr_code_opened_in_web_client() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.qr_code_opened_in_web_client) return _internal_qr_code_opened_in_web_client(); } inline void SharingLog::unsafe_arena_set_allocated_qr_code_opened_in_web_client( - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* qr_code_opened_in_web_client) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(qr_code_opened_in_web_client_); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_opened_in_web_client_); } - qr_code_opened_in_web_client_ = qr_code_opened_in_web_client; - if (qr_code_opened_in_web_client) { - _has_bits_[2] |= 0x00000800u; + _impl_.qr_code_opened_in_web_client_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00002000U); } else { - _has_bits_[2] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.qr_code_opened_in_web_client) } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* SharingLog::release_qr_code_opened_in_web_client() { - _has_bits_[2] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* temp = qr_code_opened_in_web_client_; - qr_code_opened_in_web_client_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE SharingLog::release_qr_code_opened_in_web_client() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* released = _impl_.qr_code_opened_in_web_client_; + _impl_.qr_code_opened_in_web_client_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* SharingLog::unsafe_arena_release_qr_code_opened_in_web_client() { +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_qr_code_opened_in_web_client() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.qr_code_opened_in_web_client) - _has_bits_[2] &= ~0x00000800u; - ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* temp = qr_code_opened_in_web_client_; - qr_code_opened_in_web_client_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); + ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* temp = _impl_.qr_code_opened_in_web_client_; + _impl_.qr_code_opened_in_web_client_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* SharingLog::_internal_mutable_qr_code_opened_in_web_client() { - _has_bits_[2] |= 0x00000800u; - if (qr_code_opened_in_web_client_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>(GetArenaForAllocation()); - qr_code_opened_in_web_client_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL SharingLog::_internal_mutable_qr_code_opened_in_web_client() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qr_code_opened_in_web_client_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>(GetArena()); + _impl_.qr_code_opened_in_web_client_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient*>(p); } - return qr_code_opened_in_web_client_; + return _impl_.qr_code_opened_in_web_client_; } -inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* SharingLog::mutable_qr_code_opened_in_web_client() { +inline ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NONNULL SharingLog::mutable_qr_code_opened_in_web_client() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00002000U); ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* _msg = _internal_mutable_qr_code_opened_in_web_client(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.qr_code_opened_in_web_client) return _msg; } -inline void SharingLog::set_allocated_qr_code_opened_in_web_client(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* qr_code_opened_in_web_client) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_qr_code_opened_in_web_client(::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete qr_code_opened_in_web_client_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qr_code_opened_in_web_client_); } - if (qr_code_opened_in_web_client) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient>::GetOwningArena(qr_code_opened_in_web_client); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - qr_code_opened_in_web_client = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qr_code_opened_in_web_client, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00000800u; + SetHasBit(_impl_._has_bits_[2], 0x00002000U); } else { - _has_bits_[2] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); } - qr_code_opened_in_web_client_ = qr_code_opened_in_web_client; + + _impl_.qr_code_opened_in_web_client_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.qr_code_opened_in_web_client) } // optional .nearby.sharing.analytics.proto.SharingLog.HatsJointEvent hats_joint_event = 81; -inline bool SharingLog::_internal_has_hats_joint_event() const { - bool value = (_has_bits_[2] & 0x00001000u) != 0; - PROTOBUF_ASSUME(!value || hats_joint_event_ != nullptr); +inline bool SharingLog::has_hats_joint_event() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00004000U); + PROTOBUF_ASSUME(!value || _impl_.hats_joint_event_ != nullptr); return value; } -inline bool SharingLog::has_hats_joint_event() const { - return _internal_has_hats_joint_event(); -} inline void SharingLog::clear_hats_joint_event() { - if (hats_joint_event_ != nullptr) hats_joint_event_->Clear(); - _has_bits_[2] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.hats_joint_event_ != nullptr) _impl_.hats_joint_event_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00004000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& SharingLog::_internal_hats_joint_event() const { - const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* p = hats_joint_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_HatsJointEvent_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* p = _impl_.hats_joint_event_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_HatsJointEvent_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& SharingLog::hats_joint_event() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent& SharingLog::hats_joint_event() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.hats_joint_event) return _internal_hats_joint_event(); } inline void SharingLog::unsafe_arena_set_allocated_hats_joint_event( - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* hats_joint_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hats_joint_event_); + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hats_joint_event_); } - hats_joint_event_ = hats_joint_event; - if (hats_joint_event) { - _has_bits_[2] |= 0x00001000u; + _impl_.hats_joint_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00004000U); } else { - _has_bits_[2] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.hats_joint_event) } -inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* SharingLog::release_hats_joint_event() { - _has_bits_[2] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* temp = hats_joint_event_; - hats_joint_event_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE SharingLog::release_hats_joint_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* released = _impl_.hats_joint_event_; + _impl_.hats_joint_event_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* SharingLog::unsafe_arena_release_hats_joint_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_hats_joint_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.hats_joint_event) - _has_bits_[2] &= ~0x00001000u; - ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* temp = hats_joint_event_; - hats_joint_event_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); + ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* temp = _impl_.hats_joint_event_; + _impl_.hats_joint_event_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* SharingLog::_internal_mutable_hats_joint_event() { - _has_bits_[2] |= 0x00001000u; - if (hats_joint_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>(GetArenaForAllocation()); - hats_joint_event_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NONNULL SharingLog::_internal_mutable_hats_joint_event() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.hats_joint_event_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>(GetArena()); + _impl_.hats_joint_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent*>(p); } - return hats_joint_event_; + return _impl_.hats_joint_event_; } -inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* SharingLog::mutable_hats_joint_event() { +inline ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NONNULL SharingLog::mutable_hats_joint_event() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00004000U); ::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* _msg = _internal_mutable_hats_joint_event(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.hats_joint_event) return _msg; } -inline void SharingLog::set_allocated_hats_joint_event(::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* hats_joint_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_hats_joint_event(::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete hats_joint_event_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hats_joint_event_); } - if (hats_joint_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent>::GetOwningArena(hats_joint_event); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - hats_joint_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, hats_joint_event, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00001000u; + SetHasBit(_impl_._has_bits_[2], 0x00004000U); } else { - _has_bits_[2] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); } - hats_joint_event_ = hats_joint_event; + + _impl_.hats_joint_event_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_HatsJointEvent*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.hats_joint_event) } // optional .nearby.sharing.analytics.proto.SharingLog.ReceivePreviews receive_previews = 82; -inline bool SharingLog::_internal_has_receive_previews() const { - bool value = (_has_bits_[2] & 0x00002000u) != 0; - PROTOBUF_ASSUME(!value || receive_previews_ != nullptr); +inline bool SharingLog::has_receive_previews() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00008000U); + PROTOBUF_ASSUME(!value || _impl_.receive_previews_ != nullptr); return value; } -inline bool SharingLog::has_receive_previews() const { - return _internal_has_receive_previews(); -} inline void SharingLog::clear_receive_previews() { - if (receive_previews_ != nullptr) receive_previews_->Clear(); - _has_bits_[2] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_previews_ != nullptr) _impl_.receive_previews_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00008000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& SharingLog::_internal_receive_previews() const { - const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* p = receive_previews_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_ReceivePreviews_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* p = _impl_.receive_previews_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_ReceivePreviews_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& SharingLog::receive_previews() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews& SharingLog::receive_previews() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.receive_previews) return _internal_receive_previews(); } inline void SharingLog::unsafe_arena_set_allocated_receive_previews( - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* receive_previews) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(receive_previews_); + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_previews_); } - receive_previews_ = receive_previews; - if (receive_previews) { - _has_bits_[2] |= 0x00002000u; + _impl_.receive_previews_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00008000U); } else { - _has_bits_[2] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_previews) } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* SharingLog::release_receive_previews() { - _has_bits_[2] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* temp = receive_previews_; - receive_previews_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE SharingLog::release_receive_previews() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* released = _impl_.receive_previews_; + _impl_.receive_previews_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* SharingLog::unsafe_arena_release_receive_previews() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_receive_previews() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.receive_previews) - _has_bits_[2] &= ~0x00002000u; - ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* temp = receive_previews_; - receive_previews_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); + ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* temp = _impl_.receive_previews_; + _impl_.receive_previews_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* SharingLog::_internal_mutable_receive_previews() { - _has_bits_[2] |= 0x00002000u; - if (receive_previews_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>(GetArenaForAllocation()); - receive_previews_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NONNULL SharingLog::_internal_mutable_receive_previews() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.receive_previews_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>(GetArena()); + _impl_.receive_previews_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews*>(p); } - return receive_previews_; + return _impl_.receive_previews_; } -inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* SharingLog::mutable_receive_previews() { +inline ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NONNULL SharingLog::mutable_receive_previews() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00008000U); ::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* _msg = _internal_mutable_receive_previews(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.receive_previews) return _msg; } -inline void SharingLog::set_allocated_receive_previews(::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* receive_previews) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_receive_previews(::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete receive_previews_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receive_previews_); } - if (receive_previews) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews>::GetOwningArena(receive_previews); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - receive_previews = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, receive_previews, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00002000u; + SetHasBit(_impl_._has_bits_[2], 0x00008000U); } else { - _has_bits_[2] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); } - receive_previews_ = receive_previews; + + _impl_.receive_previews_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_ReceivePreviews*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.receive_previews) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudCreateSharingRequest cloud_create_sharing_request = 83; -inline bool SharingLog::_internal_has_cloud_create_sharing_request() const { - bool value = (_has_bits_[2] & 0x00004000u) != 0; - PROTOBUF_ASSUME(!value || cloud_create_sharing_request_ != nullptr); +inline bool SharingLog::has_cloud_create_sharing_request() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00010000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_create_sharing_request_ != nullptr); return value; } -inline bool SharingLog::has_cloud_create_sharing_request() const { - return _internal_has_cloud_create_sharing_request(); -} inline void SharingLog::clear_cloud_create_sharing_request() { - if (cloud_create_sharing_request_ != nullptr) cloud_create_sharing_request_->Clear(); - _has_bits_[2] &= ~0x00004000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_create_sharing_request_ != nullptr) _impl_.cloud_create_sharing_request_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00010000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& SharingLog::_internal_cloud_create_sharing_request() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* p = cloud_create_sharing_request_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudCreateSharingRequest_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* p = _impl_.cloud_create_sharing_request_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudCreateSharingRequest_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& SharingLog::cloud_create_sharing_request() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest& SharingLog::cloud_create_sharing_request() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_create_sharing_request) return _internal_cloud_create_sharing_request(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_create_sharing_request( - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* cloud_create_sharing_request) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_create_sharing_request_); + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_create_sharing_request_); } - cloud_create_sharing_request_ = cloud_create_sharing_request; - if (cloud_create_sharing_request) { - _has_bits_[2] |= 0x00004000u; + _impl_.cloud_create_sharing_request_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00010000U); } else { - _has_bits_[2] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_create_sharing_request) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* SharingLog::release_cloud_create_sharing_request() { - _has_bits_[2] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* temp = cloud_create_sharing_request_; - cloud_create_sharing_request_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE SharingLog::release_cloud_create_sharing_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* released = _impl_.cloud_create_sharing_request_; + _impl_.cloud_create_sharing_request_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* SharingLog::unsafe_arena_release_cloud_create_sharing_request() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_create_sharing_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_create_sharing_request) - _has_bits_[2] &= ~0x00004000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* temp = cloud_create_sharing_request_; - cloud_create_sharing_request_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* temp = _impl_.cloud_create_sharing_request_; + _impl_.cloud_create_sharing_request_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* SharingLog::_internal_mutable_cloud_create_sharing_request() { - _has_bits_[2] |= 0x00004000u; - if (cloud_create_sharing_request_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>(GetArenaForAllocation()); - cloud_create_sharing_request_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_create_sharing_request() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_create_sharing_request_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>(GetArena()); + _impl_.cloud_create_sharing_request_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest*>(p); } - return cloud_create_sharing_request_; + return _impl_.cloud_create_sharing_request_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* SharingLog::mutable_cloud_create_sharing_request() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NONNULL SharingLog::mutable_cloud_create_sharing_request() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00010000U); ::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* _msg = _internal_mutable_cloud_create_sharing_request(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_create_sharing_request) return _msg; } -inline void SharingLog::set_allocated_cloud_create_sharing_request(::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* cloud_create_sharing_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_create_sharing_request(::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_create_sharing_request_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_create_sharing_request_); } - if (cloud_create_sharing_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest>::GetOwningArena(cloud_create_sharing_request); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_create_sharing_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_create_sharing_request, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00004000u; + SetHasBit(_impl_._has_bits_[2], 0x00010000U); } else { - _has_bits_[2] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); } - cloud_create_sharing_request_ = cloud_create_sharing_request; + + _impl_.cloud_create_sharing_request_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudCreateSharingRequest*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_create_sharing_request) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudRegisterReceiver cloud_register_receiver = 84; -inline bool SharingLog::_internal_has_cloud_register_receiver() const { - bool value = (_has_bits_[2] & 0x00008000u) != 0; - PROTOBUF_ASSUME(!value || cloud_register_receiver_ != nullptr); +inline bool SharingLog::has_cloud_register_receiver() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00020000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_register_receiver_ != nullptr); return value; } -inline bool SharingLog::has_cloud_register_receiver() const { - return _internal_has_cloud_register_receiver(); -} inline void SharingLog::clear_cloud_register_receiver() { - if (cloud_register_receiver_ != nullptr) cloud_register_receiver_->Clear(); - _has_bits_[2] &= ~0x00008000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_register_receiver_ != nullptr) _impl_.cloud_register_receiver_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00020000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& SharingLog::_internal_cloud_register_receiver() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* p = cloud_register_receiver_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudRegisterReceiver_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* p = _impl_.cloud_register_receiver_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudRegisterReceiver_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& SharingLog::cloud_register_receiver() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver& SharingLog::cloud_register_receiver() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_register_receiver) return _internal_cloud_register_receiver(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_register_receiver( - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* cloud_register_receiver) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_register_receiver_); + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_register_receiver_); } - cloud_register_receiver_ = cloud_register_receiver; - if (cloud_register_receiver) { - _has_bits_[2] |= 0x00008000u; + _impl_.cloud_register_receiver_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00020000U); } else { - _has_bits_[2] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_register_receiver) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* SharingLog::release_cloud_register_receiver() { - _has_bits_[2] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* temp = cloud_register_receiver_; - cloud_register_receiver_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE SharingLog::release_cloud_register_receiver() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* released = _impl_.cloud_register_receiver_; + _impl_.cloud_register_receiver_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* SharingLog::unsafe_arena_release_cloud_register_receiver() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_register_receiver() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_register_receiver) - _has_bits_[2] &= ~0x00008000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* temp = cloud_register_receiver_; - cloud_register_receiver_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* temp = _impl_.cloud_register_receiver_; + _impl_.cloud_register_receiver_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* SharingLog::_internal_mutable_cloud_register_receiver() { - _has_bits_[2] |= 0x00008000u; - if (cloud_register_receiver_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>(GetArenaForAllocation()); - cloud_register_receiver_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_register_receiver() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_register_receiver_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>(GetArena()); + _impl_.cloud_register_receiver_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver*>(p); } - return cloud_register_receiver_; + return _impl_.cloud_register_receiver_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* SharingLog::mutable_cloud_register_receiver() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NONNULL SharingLog::mutable_cloud_register_receiver() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00020000U); ::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* _msg = _internal_mutable_cloud_register_receiver(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_register_receiver) return _msg; } -inline void SharingLog::set_allocated_cloud_register_receiver(::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* cloud_register_receiver) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_register_receiver(::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_register_receiver_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_register_receiver_); } - if (cloud_register_receiver) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver>::GetOwningArena(cloud_register_receiver); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_register_receiver = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_register_receiver, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00008000u; + SetHasBit(_impl_._has_bits_[2], 0x00020000U); } else { - _has_bits_[2] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); } - cloud_register_receiver_ = cloud_register_receiver; + + _impl_.cloud_register_receiver_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudRegisterReceiver*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_register_receiver) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadStart cloud_upload_start = 85; -inline bool SharingLog::_internal_has_cloud_upload_start() const { - bool value = (_has_bits_[2] & 0x00010000u) != 0; - PROTOBUF_ASSUME(!value || cloud_upload_start_ != nullptr); +inline bool SharingLog::has_cloud_upload_start() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00040000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_upload_start_ != nullptr); return value; } -inline bool SharingLog::has_cloud_upload_start() const { - return _internal_has_cloud_upload_start(); -} inline void SharingLog::clear_cloud_upload_start() { - if (cloud_upload_start_ != nullptr) cloud_upload_start_->Clear(); - _has_bits_[2] &= ~0x00010000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_upload_start_ != nullptr) _impl_.cloud_upload_start_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00040000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& SharingLog::_internal_cloud_upload_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* p = cloud_upload_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudUploadStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* p = _impl_.cloud_upload_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudUploadStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& SharingLog::cloud_upload_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart& SharingLog::cloud_upload_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_upload_start) return _internal_cloud_upload_start(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_upload_start( - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* cloud_upload_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_upload_start_); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_upload_start_); } - cloud_upload_start_ = cloud_upload_start; - if (cloud_upload_start) { - _has_bits_[2] |= 0x00010000u; + _impl_.cloud_upload_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00040000U); } else { - _has_bits_[2] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_upload_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* SharingLog::release_cloud_upload_start() { - _has_bits_[2] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* temp = cloud_upload_start_; - cloud_upload_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE SharingLog::release_cloud_upload_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* released = _impl_.cloud_upload_start_; + _impl_.cloud_upload_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* SharingLog::unsafe_arena_release_cloud_upload_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_upload_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_upload_start) - _has_bits_[2] &= ~0x00010000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* temp = cloud_upload_start_; - cloud_upload_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* temp = _impl_.cloud_upload_start_; + _impl_.cloud_upload_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* SharingLog::_internal_mutable_cloud_upload_start() { - _has_bits_[2] |= 0x00010000u; - if (cloud_upload_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>(GetArenaForAllocation()); - cloud_upload_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_upload_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_upload_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>(GetArena()); + _impl_.cloud_upload_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart*>(p); } - return cloud_upload_start_; + return _impl_.cloud_upload_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* SharingLog::mutable_cloud_upload_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NONNULL SharingLog::mutable_cloud_upload_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00040000U); ::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* _msg = _internal_mutable_cloud_upload_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_upload_start) return _msg; } -inline void SharingLog::set_allocated_cloud_upload_start(::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* cloud_upload_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_upload_start(::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_upload_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_upload_start_); } - if (cloud_upload_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart>::GetOwningArena(cloud_upload_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_upload_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_upload_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00010000u; + SetHasBit(_impl_._has_bits_[2], 0x00040000U); } else { - _has_bits_[2] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); } - cloud_upload_start_ = cloud_upload_start; + + _impl_.cloud_upload_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_upload_start) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudUploadEnd cloud_upload_end = 86; -inline bool SharingLog::_internal_has_cloud_upload_end() const { - bool value = (_has_bits_[2] & 0x00020000u) != 0; - PROTOBUF_ASSUME(!value || cloud_upload_end_ != nullptr); +inline bool SharingLog::has_cloud_upload_end() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00080000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_upload_end_ != nullptr); return value; } -inline bool SharingLog::has_cloud_upload_end() const { - return _internal_has_cloud_upload_end(); -} inline void SharingLog::clear_cloud_upload_end() { - if (cloud_upload_end_ != nullptr) cloud_upload_end_->Clear(); - _has_bits_[2] &= ~0x00020000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_upload_end_ != nullptr) _impl_.cloud_upload_end_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00080000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& SharingLog::_internal_cloud_upload_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* p = cloud_upload_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudUploadEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* p = _impl_.cloud_upload_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudUploadEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& SharingLog::cloud_upload_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd& SharingLog::cloud_upload_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_upload_end) return _internal_cloud_upload_end(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_upload_end( - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* cloud_upload_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_upload_end_); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_upload_end_); } - cloud_upload_end_ = cloud_upload_end; - if (cloud_upload_end) { - _has_bits_[2] |= 0x00020000u; + _impl_.cloud_upload_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00080000U); } else { - _has_bits_[2] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_upload_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* SharingLog::release_cloud_upload_end() { - _has_bits_[2] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* temp = cloud_upload_end_; - cloud_upload_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE SharingLog::release_cloud_upload_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* released = _impl_.cloud_upload_end_; + _impl_.cloud_upload_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* SharingLog::unsafe_arena_release_cloud_upload_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_upload_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_upload_end) - _has_bits_[2] &= ~0x00020000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* temp = cloud_upload_end_; - cloud_upload_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* temp = _impl_.cloud_upload_end_; + _impl_.cloud_upload_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* SharingLog::_internal_mutable_cloud_upload_end() { - _has_bits_[2] |= 0x00020000u; - if (cloud_upload_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>(GetArenaForAllocation()); - cloud_upload_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_upload_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_upload_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>(GetArena()); + _impl_.cloud_upload_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd*>(p); } - return cloud_upload_end_; + return _impl_.cloud_upload_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* SharingLog::mutable_cloud_upload_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NONNULL SharingLog::mutable_cloud_upload_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00080000U); ::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* _msg = _internal_mutable_cloud_upload_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_upload_end) return _msg; } -inline void SharingLog::set_allocated_cloud_upload_end(::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* cloud_upload_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_upload_end(::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_upload_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_upload_end_); } - if (cloud_upload_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd>::GetOwningArena(cloud_upload_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_upload_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_upload_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00020000u; + SetHasBit(_impl_._has_bits_[2], 0x00080000U); } else { - _has_bits_[2] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); } - cloud_upload_end_ = cloud_upload_end; + + _impl_.cloud_upload_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudUploadEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_upload_end) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadStart cloud_download_start = 87; -inline bool SharingLog::_internal_has_cloud_download_start() const { - bool value = (_has_bits_[2] & 0x00040000u) != 0; - PROTOBUF_ASSUME(!value || cloud_download_start_ != nullptr); +inline bool SharingLog::has_cloud_download_start() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00100000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_download_start_ != nullptr); return value; } -inline bool SharingLog::has_cloud_download_start() const { - return _internal_has_cloud_download_start(); -} inline void SharingLog::clear_cloud_download_start() { - if (cloud_download_start_ != nullptr) cloud_download_start_->Clear(); - _has_bits_[2] &= ~0x00040000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_download_start_ != nullptr) _impl_.cloud_download_start_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00100000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& SharingLog::_internal_cloud_download_start() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* p = cloud_download_start_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudDownloadStart_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* p = _impl_.cloud_download_start_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudDownloadStart_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& SharingLog::cloud_download_start() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart& SharingLog::cloud_download_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_download_start) return _internal_cloud_download_start(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_download_start( - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* cloud_download_start) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_download_start_); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_download_start_); } - cloud_download_start_ = cloud_download_start; - if (cloud_download_start) { - _has_bits_[2] |= 0x00040000u; + _impl_.cloud_download_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00100000U); } else { - _has_bits_[2] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_download_start) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* SharingLog::release_cloud_download_start() { - _has_bits_[2] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* temp = cloud_download_start_; - cloud_download_start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE SharingLog::release_cloud_download_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* released = _impl_.cloud_download_start_; + _impl_.cloud_download_start_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* SharingLog::unsafe_arena_release_cloud_download_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_download_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_download_start) - _has_bits_[2] &= ~0x00040000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* temp = cloud_download_start_; - cloud_download_start_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* temp = _impl_.cloud_download_start_; + _impl_.cloud_download_start_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* SharingLog::_internal_mutable_cloud_download_start() { - _has_bits_[2] |= 0x00040000u; - if (cloud_download_start_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>(GetArenaForAllocation()); - cloud_download_start_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_download_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_download_start_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>(GetArena()); + _impl_.cloud_download_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart*>(p); } - return cloud_download_start_; + return _impl_.cloud_download_start_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* SharingLog::mutable_cloud_download_start() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NONNULL SharingLog::mutable_cloud_download_start() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00100000U); ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* _msg = _internal_mutable_cloud_download_start(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_download_start) return _msg; } -inline void SharingLog::set_allocated_cloud_download_start(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* cloud_download_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_download_start(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_download_start_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_download_start_); } - if (cloud_download_start) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart>::GetOwningArena(cloud_download_start); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_download_start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_download_start, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00040000u; + SetHasBit(_impl_._has_bits_[2], 0x00100000U); } else { - _has_bits_[2] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); } - cloud_download_start_ = cloud_download_start; + + _impl_.cloud_download_start_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadStart*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_download_start) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudDownloadEnd cloud_download_end = 88; -inline bool SharingLog::_internal_has_cloud_download_end() const { - bool value = (_has_bits_[2] & 0x00080000u) != 0; - PROTOBUF_ASSUME(!value || cloud_download_end_ != nullptr); +inline bool SharingLog::has_cloud_download_end() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00200000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_download_end_ != nullptr); return value; } -inline bool SharingLog::has_cloud_download_end() const { - return _internal_has_cloud_download_end(); -} inline void SharingLog::clear_cloud_download_end() { - if (cloud_download_end_ != nullptr) cloud_download_end_->Clear(); - _has_bits_[2] &= ~0x00080000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_download_end_ != nullptr) _impl_.cloud_download_end_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00200000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& SharingLog::_internal_cloud_download_end() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* p = cloud_download_end_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudDownloadEnd_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* p = _impl_.cloud_download_end_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudDownloadEnd_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& SharingLog::cloud_download_end() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd& SharingLog::cloud_download_end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_download_end) return _internal_cloud_download_end(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_download_end( - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* cloud_download_end) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_download_end_); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_download_end_); } - cloud_download_end_ = cloud_download_end; - if (cloud_download_end) { - _has_bits_[2] |= 0x00080000u; + _impl_.cloud_download_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00200000U); } else { - _has_bits_[2] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_download_end) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* SharingLog::release_cloud_download_end() { - _has_bits_[2] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* temp = cloud_download_end_; - cloud_download_end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE SharingLog::release_cloud_download_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* released = _impl_.cloud_download_end_; + _impl_.cloud_download_end_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* SharingLog::unsafe_arena_release_cloud_download_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_download_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_download_end) - _has_bits_[2] &= ~0x00080000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* temp = cloud_download_end_; - cloud_download_end_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* temp = _impl_.cloud_download_end_; + _impl_.cloud_download_end_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* SharingLog::_internal_mutable_cloud_download_end() { - _has_bits_[2] |= 0x00080000u; - if (cloud_download_end_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>(GetArenaForAllocation()); - cloud_download_end_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_download_end() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_download_end_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>(GetArena()); + _impl_.cloud_download_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd*>(p); } - return cloud_download_end_; + return _impl_.cloud_download_end_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* SharingLog::mutable_cloud_download_end() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NONNULL SharingLog::mutable_cloud_download_end() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00200000U); ::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* _msg = _internal_mutable_cloud_download_end(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_download_end) return _msg; } -inline void SharingLog::set_allocated_cloud_download_end(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* cloud_download_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_download_end(::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_download_end_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_download_end_); } - if (cloud_download_end) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd>::GetOwningArena(cloud_download_end); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_download_end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_download_end, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00080000u; + SetHasBit(_impl_._has_bits_[2], 0x00200000U); } else { - _has_bits_[2] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); } - cloud_download_end_ = cloud_download_end; + + _impl_.cloud_download_end_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudDownloadEnd*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_download_end) } // optional .nearby.sharing.analytics.proto.SharingLog.CloudSharingRpcResult cloud_sharing_rpc_result = 89; -inline bool SharingLog::_internal_has_cloud_sharing_rpc_result() const { - bool value = (_has_bits_[2] & 0x00100000u) != 0; - PROTOBUF_ASSUME(!value || cloud_sharing_rpc_result_ != nullptr); +inline bool SharingLog::has_cloud_sharing_rpc_result() const { + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00400000U); + PROTOBUF_ASSUME(!value || _impl_.cloud_sharing_rpc_result_ != nullptr); return value; } -inline bool SharingLog::has_cloud_sharing_rpc_result() const { - return _internal_has_cloud_sharing_rpc_result(); -} inline void SharingLog::clear_cloud_sharing_rpc_result() { - if (cloud_sharing_rpc_result_ != nullptr) cloud_sharing_rpc_result_->Clear(); - _has_bits_[2] &= ~0x00100000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_sharing_rpc_result_ != nullptr) _impl_.cloud_sharing_rpc_result_->Clear(); + ClearHasBit(_impl_._has_bits_[2], + 0x00400000U); } inline const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& SharingLog::_internal_cloud_sharing_rpc_result() const { - const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* p = cloud_sharing_rpc_result_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::sharing::analytics::proto::_SharingLog_CloudSharingRpcResult_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* p = _impl_.cloud_sharing_rpc_result_; + return p != nullptr ? *p : reinterpret_cast(::nearby::sharing::analytics::proto::_SharingLog_CloudSharingRpcResult_default_instance_); } -inline const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& SharingLog::cloud_sharing_rpc_result() const { +inline const ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult& SharingLog::cloud_sharing_rpc_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.sharing.analytics.proto.SharingLog.cloud_sharing_rpc_result) return _internal_cloud_sharing_rpc_result(); } inline void SharingLog::unsafe_arena_set_allocated_cloud_sharing_rpc_result( - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* cloud_sharing_rpc_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_sharing_rpc_result_); + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_sharing_rpc_result_); } - cloud_sharing_rpc_result_ = cloud_sharing_rpc_result; - if (cloud_sharing_rpc_result) { - _has_bits_[2] |= 0x00100000u; + _impl_.cloud_sharing_rpc_result_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[2], 0x00400000U); } else { - _has_bits_[2] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_sharing_rpc_result) } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* SharingLog::release_cloud_sharing_rpc_result() { - _has_bits_[2] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* temp = cloud_sharing_rpc_result_; - cloud_sharing_rpc_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE SharingLog::release_cloud_sharing_rpc_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* released = _impl_.cloud_sharing_rpc_result_; + _impl_.cloud_sharing_rpc_result_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* SharingLog::unsafe_arena_release_cloud_sharing_rpc_result() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE SharingLog::unsafe_arena_release_cloud_sharing_rpc_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.sharing.analytics.proto.SharingLog.cloud_sharing_rpc_result) - _has_bits_[2] &= ~0x00100000u; - ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* temp = cloud_sharing_rpc_result_; - cloud_sharing_rpc_result_ = nullptr; + + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); + ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* temp = _impl_.cloud_sharing_rpc_result_; + _impl_.cloud_sharing_rpc_result_ = nullptr; return temp; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* SharingLog::_internal_mutable_cloud_sharing_rpc_result() { - _has_bits_[2] |= 0x00100000u; - if (cloud_sharing_rpc_result_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>(GetArenaForAllocation()); - cloud_sharing_rpc_result_ = p; +inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL SharingLog::_internal_mutable_cloud_sharing_rpc_result() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.cloud_sharing_rpc_result_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>(GetArena()); + _impl_.cloud_sharing_rpc_result_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult*>(p); } - return cloud_sharing_rpc_result_; + return _impl_.cloud_sharing_rpc_result_; } -inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* SharingLog::mutable_cloud_sharing_rpc_result() { +inline ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NONNULL SharingLog::mutable_cloud_sharing_rpc_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[2], 0x00400000U); ::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* _msg = _internal_mutable_cloud_sharing_rpc_result(); // @@protoc_insertion_point(field_mutable:nearby.sharing.analytics.proto.SharingLog.cloud_sharing_rpc_result) return _msg; } -inline void SharingLog::set_allocated_cloud_sharing_rpc_result(::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* cloud_sharing_rpc_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SharingLog::set_allocated_cloud_sharing_rpc_result(::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete cloud_sharing_rpc_result_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_sharing_rpc_result_); } - if (cloud_sharing_rpc_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult>::GetOwningArena(cloud_sharing_rpc_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - cloud_sharing_rpc_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cloud_sharing_rpc_result, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[2] |= 0x00100000u; + SetHasBit(_impl_._has_bits_[2], 0x00400000U); } else { - _has_bits_[2] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); } - cloud_sharing_rpc_result_ = cloud_sharing_rpc_result; + + _impl_.cloud_sharing_rpc_result_ = reinterpret_cast<::nearby::sharing::analytics::proto::SharingLog_CloudSharingRpcResult*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.sharing.analytics.proto.SharingLog.cloud_sharing_rpc_result) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace proto } // namespace analytics } // namespace sharing } // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::nearby::sharing::analytics::proto::SharingLog_TextAttachment_Type> : std::true_type {}; +template <> +struct is_proto_enum<::nearby::sharing::analytics::proto::SharingLog_FileAttachment_Type> : std::true_type {}; +template <> +struct is_proto_enum<::nearby::sharing::analytics::proto::SharingLog_RpcCallStatus_RpcDirection> : std::true_type {}; +template <> +struct is_proto_enum<::nearby::sharing::analytics::proto::SharingLog_QrCodeOpenedInWebClient_ClientPlatform> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // sharing_2fproto_2fanalytics_2fnearby_5fsharing_5flog_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc new file mode 100644 index 00000000..562d4a52 --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc @@ -0,0 +1,1834 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/device_to_device_messages.proto +// Protobuf C++ Version: 6.33.3 + +#include "proto/device_to_device_messages.pb.h" + +#include +#include +#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 securegcm { + +inline constexpr EcPoint::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + x_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + curve_{static_cast< ::securegcm::Curve >(1)} {} + +template +PROTOBUF_CONSTEXPR EcPoint::EcPoint(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(EcPoint_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EcPointDefaultTypeInternal { + PROTOBUF_CONSTEXPR EcPointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EcPointDefaultTypeInternal() {} + union { + EcPoint _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcPointDefaultTypeInternal _EcPoint_default_instance_; + +inline constexpr DeviceToDeviceMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + message_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + sequence_number_{0} {} + +template +PROTOBUF_CONSTEXPR DeviceToDeviceMessage::DeviceToDeviceMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DeviceToDeviceMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DeviceToDeviceMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeviceToDeviceMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DeviceToDeviceMessageDefaultTypeInternal() {} + union { + DeviceToDeviceMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; + +inline constexpr SpakeHandshakeMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + hash_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + payload_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ec_point_{nullptr}, + flow_number_{0} {} + +template +PROTOBUF_CONSTEXPR SpakeHandshakeMessage::SpakeHandshakeMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SpakeHandshakeMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SpakeHandshakeMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpakeHandshakeMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SpakeHandshakeMessageDefaultTypeInternal() {} + union { + SpakeHandshakeMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; + +inline constexpr ResponderHello::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_dh_key_{nullptr}, + protocol_version_{0} {} + +template +PROTOBUF_CONSTEXPR ResponderHello::ResponderHello(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ResponderHello_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ResponderHelloDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponderHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponderHelloDefaultTypeInternal() {} + union { + ResponderHello _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; + +inline constexpr InitiatorHello::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_dh_key_{nullptr}, + protocol_version_{0} {} + +template +PROTOBUF_CONSTEXPR InitiatorHello::InitiatorHello(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(InitiatorHello_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct InitiatorHelloDefaultTypeInternal { + PROTOBUF_CONSTEXPR InitiatorHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InitiatorHelloDefaultTypeInternal() {} + union { + InitiatorHello _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; +} // namespace securegcm +namespace securegcm { +PROTOBUF_CONSTINIT const uint32_t Curve_internal_data_[] = { + 65537u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Curve_strings[1] = {}; + +static const char Curve_names[] = { + "ED_25519" +}; + +static const ::google::protobuf::internal::EnumEntry Curve_entries[] = { + {{&Curve_names[0], 8}, 1}, +}; + +static const int Curve_entries_by_number[] = { + 0, // 1 -> ED_25519 +}; + +const ::std::string& Curve_Name(Curve value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Curve_entries, Curve_entries_by_number, 1, + Curve_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Curve_entries, + Curve_entries_by_number, + 1, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Curve_strings[idx].get(); +} + +bool Curve_Parse(::absl::string_view name, Curve* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + Curve_entries, 1, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +// =================================================================== + +class DeviceToDeviceMessage::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_); +}; + +DeviceToDeviceMessage::DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.DeviceToDeviceMessage) +} +PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::DeviceToDeviceMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + message_(arena, from.message_) {} + +DeviceToDeviceMessage::DeviceToDeviceMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DeviceToDeviceMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DeviceToDeviceMessage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.sequence_number_ = from._impl_.sequence_number_; + + // @@protoc_insertion_point(copy_constructor:securegcm.DeviceToDeviceMessage) +} +PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + message_(arena) {} + +inline void DeviceToDeviceMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.sequence_number_ = {}; +} +DeviceToDeviceMessage::~DeviceToDeviceMessage() { + // @@protoc_insertion_point(destructor:securegcm.DeviceToDeviceMessage) + SharedDtor(*this); +} +inline void DeviceToDeviceMessage::SharedDtor(MessageLite& self) { + DeviceToDeviceMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.message_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL DeviceToDeviceMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DeviceToDeviceMessage(arena); +} +constexpr auto DeviceToDeviceMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DeviceToDeviceMessage), + alignof(DeviceToDeviceMessage)); +} +constexpr auto DeviceToDeviceMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_DeviceToDeviceMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DeviceToDeviceMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DeviceToDeviceMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DeviceToDeviceMessage::ByteSizeLong, + &DeviceToDeviceMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._cached_size_), + true, + }, + "securegcm.DeviceToDeviceMessage", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_ = + DeviceToDeviceMessage::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DeviceToDeviceMessage::GetClassData() const { + return DeviceToDeviceMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +DeviceToDeviceMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DeviceToDeviceMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::DeviceToDeviceMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 sequence_number = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_)}}, + // optional bytes message = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes message = 1; + {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 sequence_number = 2; + {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DeviceToDeviceMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.DeviceToDeviceMessage) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.message_.ClearNonDefaultToEmpty(); + } + _impl_.sequence_number_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DeviceToDeviceMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DeviceToDeviceMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.DeviceToDeviceMessage) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional bytes message = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_message(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // optional int32 sequence_number = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_sequence_number(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.DeviceToDeviceMessage) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DeviceToDeviceMessage::ByteSizeLong(const MessageLite& base) { + const DeviceToDeviceMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DeviceToDeviceMessage::ByteSizeLong() const { + const DeviceToDeviceMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceToDeviceMessage) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // optional bytes message = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_message()); + } + // optional int32 sequence_number = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_sequence_number()); + } + } + 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 DeviceToDeviceMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceToDeviceMessage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_message(from._internal_message()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.sequence_number_ = from._impl_.sequence_number_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void DeviceToDeviceMessage::CopyFrom(const DeviceToDeviceMessage& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceToDeviceMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void DeviceToDeviceMessage::InternalSwap(DeviceToDeviceMessage* 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_.message_, &other->_impl_.message_, arena); + swap(_impl_.sequence_number_, other->_impl_.sequence_number_); +} + +// =================================================================== + +class InitiatorHello::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._has_bits_); +}; + +void InitiatorHello::clear_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +InitiatorHello::InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.InitiatorHello) +} +PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::InitiatorHello& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +InitiatorHello::InitiatorHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const InitiatorHello& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + InitiatorHello* 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_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) + : nullptr; + _impl_.protocol_version_ = from._impl_.protocol_version_; + + // @@protoc_insertion_point(copy_constructor:securegcm.InitiatorHello) +} +PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void InitiatorHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, public_dh_key_), + 0, + offsetof(Impl_, protocol_version_) - + offsetof(Impl_, public_dh_key_) + + sizeof(Impl_::protocol_version_)); +} +InitiatorHello::~InitiatorHello() { + // @@protoc_insertion_point(destructor:securegcm.InitiatorHello) + SharedDtor(*this); +} +inline void InitiatorHello::SharedDtor(MessageLite& self) { + InitiatorHello& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.public_dh_key_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL InitiatorHello::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) InitiatorHello(arena); +} +constexpr auto InitiatorHello::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InitiatorHello), + alignof(InitiatorHello)); +} +constexpr auto InitiatorHello::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_InitiatorHello_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + InitiatorHello::IsInitializedImpl, + &InitiatorHello::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InitiatorHello::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &InitiatorHello::ByteSizeLong, + &InitiatorHello::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._cached_size_), + true, + }, + "securegcm.InitiatorHello", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_ = + InitiatorHello::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +InitiatorHello::GetClassData() const { + return InitiatorHello_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +InitiatorHello::_table_ = { + { + PROTOBUF_FIELD_OFFSET(InitiatorHello, _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), + InitiatorHello_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::InitiatorHello>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 protocol_version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_)}}, + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 protocol_version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void InitiatorHello::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.InitiatorHello) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); + _impl_.public_dh_key_->Clear(); + } + _impl_.protocol_version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const InitiatorHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const InitiatorHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.InitiatorHello) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, + stream); + } + + // optional int32 protocol_version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_protocol_version(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.InitiatorHello) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t InitiatorHello::ByteSizeLong(const MessageLite& base) { + const InitiatorHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t InitiatorHello::ByteSizeLong() const { + const InitiatorHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.InitiatorHello) + ::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 .securemessage.GenericPublicKey public_dh_key = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); + } + // optional int32 protocol_version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_protocol_version()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void InitiatorHello::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.InitiatorHello) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); + if (_this->_impl_.public_dh_key_ == nullptr) { + _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); + } else { + _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.protocol_version_ = from._impl_.protocol_version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void InitiatorHello::CopyFrom(const InitiatorHello& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.InitiatorHello) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool InitiatorHello::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.public_dh_key_->IsInitialized()) return false; + } + return true; +} + +void InitiatorHello::InternalSwap(InitiatorHello* 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(InitiatorHello, _impl_.protocol_version_) + + sizeof(InitiatorHello::_impl_.protocol_version_) + - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)>( + reinterpret_cast(&_impl_.public_dh_key_), + reinterpret_cast(&other->_impl_.public_dh_key_)); +} + +// =================================================================== + +class ResponderHello::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._has_bits_); +}; + +void ResponderHello::clear_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +ResponderHello::ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.ResponderHello) +} +PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::ResponderHello& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +ResponderHello::ResponderHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ResponderHello& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ResponderHello* 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_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) + : nullptr; + _impl_.protocol_version_ = from._impl_.protocol_version_; + + // @@protoc_insertion_point(copy_constructor:securegcm.ResponderHello) +} +PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void ResponderHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, public_dh_key_), + 0, + offsetof(Impl_, protocol_version_) - + offsetof(Impl_, public_dh_key_) + + sizeof(Impl_::protocol_version_)); +} +ResponderHello::~ResponderHello() { + // @@protoc_insertion_point(destructor:securegcm.ResponderHello) + SharedDtor(*this); +} +inline void ResponderHello::SharedDtor(MessageLite& self) { + ResponderHello& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.public_dh_key_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ResponderHello::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ResponderHello(arena); +} +constexpr auto ResponderHello::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ResponderHello), + alignof(ResponderHello)); +} +constexpr auto ResponderHello::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_ResponderHello_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + ResponderHello::IsInitializedImpl, + &ResponderHello::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResponderHello::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ResponderHello::ByteSizeLong, + &ResponderHello::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._cached_size_), + true, + }, + "securegcm.ResponderHello", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_ = + ResponderHello::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ResponderHello::GetClassData() const { + return ResponderHello_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +ResponderHello::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ResponderHello, _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), + ResponderHello_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::ResponderHello>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 protocol_version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_)}}, + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 protocol_version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ResponderHello::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.ResponderHello) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); + _impl_.public_dh_key_->Clear(); + } + _impl_.protocol_version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ResponderHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ResponderHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.ResponderHello) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, + stream); + } + + // optional int32 protocol_version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_protocol_version(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.ResponderHello) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ResponderHello::ByteSizeLong(const MessageLite& base) { + const ResponderHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ResponderHello::ByteSizeLong() const { + const ResponderHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.ResponderHello) + ::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 .securemessage.GenericPublicKey public_dh_key = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); + } + // optional int32 protocol_version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_protocol_version()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void ResponderHello::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.ResponderHello) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); + if (_this->_impl_.public_dh_key_ == nullptr) { + _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); + } else { + _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.protocol_version_ = from._impl_.protocol_version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void ResponderHello::CopyFrom(const ResponderHello& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.ResponderHello) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ResponderHello::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.public_dh_key_->IsInitialized()) return false; + } + return true; +} + +void ResponderHello::InternalSwap(ResponderHello* 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(ResponderHello, _impl_.protocol_version_) + + sizeof(ResponderHello::_impl_.protocol_version_) + - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)>( + reinterpret_cast(&_impl_.public_dh_key_), + reinterpret_cast(&other->_impl_.public_dh_key_)); +} + +// =================================================================== + +class EcPoint::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +EcPoint::EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.EcPoint) +} +PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::EcPoint& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + x_(arena, from.x_), + y_(arena, from.y_) {} + +EcPoint::EcPoint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EcPoint& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EcPoint* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.curve_ = from._impl_.curve_; + + // @@protoc_insertion_point(copy_constructor:securegcm.EcPoint) +} +PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + x_(arena), + y_(arena), + curve_{static_cast< ::securegcm::Curve >(1)} {} + +inline void EcPoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +EcPoint::~EcPoint() { + // @@protoc_insertion_point(destructor:securegcm.EcPoint) + SharedDtor(*this); +} +inline void EcPoint::SharedDtor(MessageLite& self) { + EcPoint& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.x_.Destroy(); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL EcPoint::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EcPoint(arena); +} +constexpr auto EcPoint::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcPoint), + alignof(EcPoint)); +} +constexpr auto EcPoint::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<18>{ + { + &_EcPoint_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + EcPoint::IsInitializedImpl, + &EcPoint::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EcPoint::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &EcPoint::ByteSizeLong, + &EcPoint::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._cached_size_), + true, + }, + "securegcm.EcPoint", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_ = + EcPoint::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EcPoint::GetClassData() const { + return EcPoint_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +EcPoint::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + EcPoint_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::EcPoint>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // required .securegcm.Curve curve = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 2, 1, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_)}}, + // required bytes x = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_)}}, + // required bytes y = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securegcm.Curve curve = 1; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // required bytes x = 2; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes y = 3; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {1, 1}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void EcPoint::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.EcPoint) + ::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_.x_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.y_.ClearNonDefaultToEmpty(); + } + _impl_.curve_ = 1; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EcPoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EcPoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.EcPoint) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required .securegcm.Curve curve = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_curve(), target); + } + + // required bytes x = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_x(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // required bytes y = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.EcPoint) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EcPoint::ByteSizeLong(const MessageLite& base) { + const EcPoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EcPoint::ByteSizeLong() const { + const EcPoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.EcPoint) + ::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)) { + // required bytes x = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_x()); + } + // required bytes y = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } + // required .securegcm.Curve curve = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_curve()); + } + } + 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 EcPoint::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.EcPoint) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_x(from._internal_x()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_y(from._internal_y()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.curve_ = from._impl_.curve_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void EcPoint::CopyFrom(const EcPoint& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.EcPoint) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool EcPoint::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void EcPoint::InternalSwap(EcPoint* 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_.x_, &other->_impl_.x_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); + swap(_impl_.curve_, other->_impl_.curve_); +} + +// =================================================================== + +class SpakeHandshakeMessage::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._has_bits_); +}; + +SpakeHandshakeMessage::SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.SpakeHandshakeMessage) +} +PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::SpakeHandshakeMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + hash_value_(arena, from.hash_value_), + payload_(arena, from.payload_) {} + +SpakeHandshakeMessage::SpakeHandshakeMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SpakeHandshakeMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SpakeHandshakeMessage* 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_.ec_point_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_) + : nullptr; + _impl_.flow_number_ = from._impl_.flow_number_; + + // @@protoc_insertion_point(copy_constructor:securegcm.SpakeHandshakeMessage) +} +PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + hash_value_(arena), + payload_(arena) {} + +inline void SpakeHandshakeMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, ec_point_), + 0, + offsetof(Impl_, flow_number_) - + offsetof(Impl_, ec_point_) + + sizeof(Impl_::flow_number_)); +} +SpakeHandshakeMessage::~SpakeHandshakeMessage() { + // @@protoc_insertion_point(destructor:securegcm.SpakeHandshakeMessage) + SharedDtor(*this); +} +inline void SpakeHandshakeMessage::SharedDtor(MessageLite& self) { + SpakeHandshakeMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hash_value_.Destroy(); + this_._impl_.payload_.Destroy(); + delete this_._impl_.ec_point_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SpakeHandshakeMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SpakeHandshakeMessage(arena); +} +constexpr auto SpakeHandshakeMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SpakeHandshakeMessage), + alignof(SpakeHandshakeMessage)); +} +constexpr auto SpakeHandshakeMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_SpakeHandshakeMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SpakeHandshakeMessage::IsInitializedImpl, + &SpakeHandshakeMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SpakeHandshakeMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SpakeHandshakeMessage::ByteSizeLong, + &SpakeHandshakeMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._cached_size_), + true, + }, + "securegcm.SpakeHandshakeMessage", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_ = + SpakeHandshakeMessage::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SpakeHandshakeMessage::GetClassData() const { + return SpakeHandshakeMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SpakeHandshakeMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _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), + SpakeHandshakeMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::SpakeHandshakeMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes payload = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_)}}, + // optional int32 flow_number = 1; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_)}}, + // optional .securegcm.EcPoint ec_point = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)}}, + // optional bytes hash_value = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 flow_number = 1; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .securegcm.EcPoint ec_point = 2; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bytes hash_value = 3; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes payload = 4; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securegcm::EcPoint>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SpakeHandshakeMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.SpakeHandshakeMessage) + ::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_.hash_value_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.payload_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.ec_point_ != nullptr); + _impl_.ec_point_->Clear(); + } + } + _impl_.flow_number_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SpakeHandshakeMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SpakeHandshakeMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.SpakeHandshakeMessage) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional int32 flow_number = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_flow_number(), target); + } + + // optional .securegcm.EcPoint ec_point = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.ec_point_, this_._impl_.ec_point_->GetCachedSize(), target, + stream); + } + + // optional bytes hash_value = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_hash_value(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // optional bytes payload = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_payload(); + target = stream->WriteBytesMaybeAliased(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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.SpakeHandshakeMessage) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SpakeHandshakeMessage::ByteSizeLong(const MessageLite& base) { + const SpakeHandshakeMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SpakeHandshakeMessage::ByteSizeLong() const { + const SpakeHandshakeMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.SpakeHandshakeMessage) + ::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 bytes hash_value = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash_value()); + } + // optional bytes payload = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_payload()); + } + // optional .securegcm.EcPoint ec_point = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_point_); + } + // optional int32 flow_number = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_flow_number()); + } + } + 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 SpakeHandshakeMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.SpakeHandshakeMessage) + 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_hash_value(from._internal_hash_value()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_payload(from._internal_payload()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.ec_point_ != nullptr); + if (_this->_impl_.ec_point_ == nullptr) { + _this->_impl_.ec_point_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_); + } else { + _this->_impl_.ec_point_->MergeFrom(*from._impl_.ec_point_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.flow_number_ = from._impl_.flow_number_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void SpakeHandshakeMessage::CopyFrom(const SpakeHandshakeMessage& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.SpakeHandshakeMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SpakeHandshakeMessage::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { + if (!this_._impl_.ec_point_->IsInitialized()) return false; + } + return true; +} + +void SpakeHandshakeMessage::InternalSwap(SpakeHandshakeMessage* 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_.hash_value_, &other->_impl_.hash_value_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_) + + sizeof(SpakeHandshakeMessage::_impl_.flow_number_) + - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)>( + reinterpret_cast(&_impl_.ec_point_), + reinterpret_cast(&other->_impl_.ec_point_)); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h new file mode 100644 index 00000000..11d4df2a --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h @@ -0,0 +1,1999 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/device_to_device_messages.proto +// Protobuf C++ Version: 6.33.3 + +#ifndef proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh +#define proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +#include "securemessage.pb.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto + +namespace google { +namespace protobuf { +namespace internal { +template +::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto { + static const ::uint32_t offsets[]; +}; +namespace securegcm { +enum Curve : int; +extern const uint32_t Curve_internal_data_[]; +class DeviceToDeviceMessage; +struct DeviceToDeviceMessageDefaultTypeInternal; +extern DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; +class EcPoint; +struct EcPointDefaultTypeInternal; +extern EcPointDefaultTypeInternal _EcPoint_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; +class InitiatorHello; +struct InitiatorHelloDefaultTypeInternal; +extern InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; +class ResponderHello; +struct ResponderHelloDefaultTypeInternal; +extern ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; +class SpakeHandshakeMessage; +struct SpakeHandshakeMessageDefaultTypeInternal; +extern SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; +} // namespace securegcm +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::Curve_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Curve>; +} // namespace protobuf +} // namespace google + +namespace securegcm { +enum Curve : int { + ED_25519 = 1, +}; + +extern const uint32_t Curve_internal_data_[]; +inline constexpr Curve Curve_MIN = + static_cast(1); +inline constexpr Curve Curve_MAX = + static_cast(1); +inline bool Curve_IsValid(int value) { + return 1 <= value && value <= 1; +} +inline constexpr int Curve_ARRAYSIZE = 1 + 1; +const ::std::string& Curve_Name(Curve value); +template +const ::std::string& Curve_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to Curve_Name()."); + return Curve_Name(static_cast(value)); +} +bool Curve_Parse( + ::absl::string_view name, Curve* PROTOBUF_NONNULL value); + +// =================================================================== + + +// ------------------------------------------------------------------- + +class EcPoint final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.EcPoint) */ { + public: + inline EcPoint() : EcPoint(nullptr) {} + ~EcPoint() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EcPoint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EcPoint)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EcPoint(::google::protobuf::internal::ConstantInitialized); + + inline EcPoint(const EcPoint& from) : EcPoint(nullptr, from) {} + inline EcPoint(EcPoint&& from) noexcept + : EcPoint(nullptr, ::std::move(from)) {} + inline EcPoint& operator=(const EcPoint& from) { + CopyFrom(from); + return *this; + } + inline EcPoint& operator=(EcPoint&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const EcPoint& default_instance() { + return *reinterpret_cast( + &_EcPoint_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(EcPoint& a, EcPoint& b) { a.Swap(&b); } + inline void Swap(EcPoint* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EcPoint* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EcPoint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const EcPoint& from); + void MergeFrom(const EcPoint& from) { EcPoint::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EcPoint* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.EcPoint"; } + + explicit EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcPoint& from); + EcPoint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcPoint&& from) noexcept + : EcPoint(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kXFieldNumber = 2, + kYFieldNumber = 3, + kCurveFieldNumber = 1, + }; + // required bytes x = 2; + bool has_x() const; + void clear_x() ; + const ::std::string& x() const; + template + void set_x(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_x(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); + void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_x() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); + + public: + // required bytes y = 3; + bool has_y() const; + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: + // required .securegcm.Curve curve = 1; + bool has_curve() const; + void clear_curve() ; + ::securegcm::Curve curve() const; + void set_curve(::securegcm::Curve value); + + private: + ::securegcm::Curve _internal_curve() const; + void _internal_set_curve(::securegcm::Curve value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.EcPoint) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EcPoint& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr x_; + ::google::protobuf::internal::ArenaStringPtr y_; + int curve_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; +// ------------------------------------------------------------------- + +class DeviceToDeviceMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.DeviceToDeviceMessage) */ { + public: + inline DeviceToDeviceMessage() : DeviceToDeviceMessage(nullptr) {} + ~DeviceToDeviceMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DeviceToDeviceMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DeviceToDeviceMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DeviceToDeviceMessage(::google::protobuf::internal::ConstantInitialized); + + inline DeviceToDeviceMessage(const DeviceToDeviceMessage& from) : DeviceToDeviceMessage(nullptr, from) {} + inline DeviceToDeviceMessage(DeviceToDeviceMessage&& from) noexcept + : DeviceToDeviceMessage(nullptr, ::std::move(from)) {} + inline DeviceToDeviceMessage& operator=(const DeviceToDeviceMessage& from) { + CopyFrom(from); + return *this; + } + inline DeviceToDeviceMessage& operator=(DeviceToDeviceMessage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DeviceToDeviceMessage& default_instance() { + return *reinterpret_cast( + &_DeviceToDeviceMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(DeviceToDeviceMessage& a, DeviceToDeviceMessage& b) { a.Swap(&b); } + inline void Swap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeviceToDeviceMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DeviceToDeviceMessage& from); + void MergeFrom(const DeviceToDeviceMessage& from) { DeviceToDeviceMessage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.DeviceToDeviceMessage"; } + + explicit DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeviceToDeviceMessage& from); + DeviceToDeviceMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DeviceToDeviceMessage&& from) noexcept + : DeviceToDeviceMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kMessageFieldNumber = 1, + kSequenceNumberFieldNumber = 2, + }; + // optional bytes message = 1; + bool has_message() const; + void clear_message() ; + const ::std::string& message() const; + template + void set_message(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_message(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message(); + void set_allocated_message(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_message() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_message(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_message(); + + public: + // optional int32 sequence_number = 2; + bool has_sequence_number() const; + void clear_sequence_number() ; + ::int32_t sequence_number() const; + void set_sequence_number(::int32_t value); + + private: + ::int32_t _internal_sequence_number() const; + void _internal_set_sequence_number(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.DeviceToDeviceMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DeviceToDeviceMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::int32_t sequence_number_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; +// ------------------------------------------------------------------- + +class SpakeHandshakeMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.SpakeHandshakeMessage) */ { + public: + inline SpakeHandshakeMessage() : SpakeHandshakeMessage(nullptr) {} + ~SpakeHandshakeMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SpakeHandshakeMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SpakeHandshakeMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SpakeHandshakeMessage(::google::protobuf::internal::ConstantInitialized); + + inline SpakeHandshakeMessage(const SpakeHandshakeMessage& from) : SpakeHandshakeMessage(nullptr, from) {} + inline SpakeHandshakeMessage(SpakeHandshakeMessage&& from) noexcept + : SpakeHandshakeMessage(nullptr, ::std::move(from)) {} + inline SpakeHandshakeMessage& operator=(const SpakeHandshakeMessage& from) { + CopyFrom(from); + return *this; + } + inline SpakeHandshakeMessage& operator=(SpakeHandshakeMessage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SpakeHandshakeMessage& default_instance() { + return *reinterpret_cast( + &_SpakeHandshakeMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(SpakeHandshakeMessage& a, SpakeHandshakeMessage& b) { a.Swap(&b); } + inline void Swap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SpakeHandshakeMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SpakeHandshakeMessage& from); + void MergeFrom(const SpakeHandshakeMessage& from) { SpakeHandshakeMessage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.SpakeHandshakeMessage"; } + + explicit SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SpakeHandshakeMessage& from); + SpakeHandshakeMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SpakeHandshakeMessage&& from) noexcept + : SpakeHandshakeMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kHashValueFieldNumber = 3, + kPayloadFieldNumber = 4, + kEcPointFieldNumber = 2, + kFlowNumberFieldNumber = 1, + }; + // optional bytes hash_value = 3; + bool has_hash_value() const; + void clear_hash_value() ; + const ::std::string& hash_value() const; + template + void set_hash_value(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_hash_value(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash_value(); + void set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_hash_value() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash_value(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash_value(); + + public: + // optional bytes payload = 4; + bool has_payload() const; + void clear_payload() ; + const ::std::string& payload() const; + template + void set_payload(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_payload(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload(); + void set_allocated_payload(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_payload() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_payload(); + + public: + // optional .securegcm.EcPoint ec_point = 2; + bool has_ec_point() const; + void clear_ec_point() ; + const ::securegcm::EcPoint& ec_point() const; + [[nodiscard]] ::securegcm::EcPoint* PROTOBUF_NULLABLE release_ec_point(); + ::securegcm::EcPoint* PROTOBUF_NONNULL mutable_ec_point(); + void set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); + ::securegcm::EcPoint* PROTOBUF_NULLABLE unsafe_arena_release_ec_point(); + + private: + const ::securegcm::EcPoint& _internal_ec_point() const; + ::securegcm::EcPoint* PROTOBUF_NONNULL _internal_mutable_ec_point(); + + public: + // optional int32 flow_number = 1; + bool has_flow_number() const; + void clear_flow_number() ; + ::int32_t flow_number() const; + void set_flow_number(::int32_t value); + + private: + ::int32_t _internal_flow_number() const; + void _internal_set_flow_number(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.SpakeHandshakeMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SpakeHandshakeMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr hash_value_; + ::google::protobuf::internal::ArenaStringPtr payload_; + ::securegcm::EcPoint* PROTOBUF_NULLABLE ec_point_; + ::int32_t flow_number_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; +// ------------------------------------------------------------------- + +class ResponderHello final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.ResponderHello) */ { + public: + inline ResponderHello() : ResponderHello(nullptr) {} + ~ResponderHello() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ResponderHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ResponderHello)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ResponderHello(::google::protobuf::internal::ConstantInitialized); + + inline ResponderHello(const ResponderHello& from) : ResponderHello(nullptr, from) {} + inline ResponderHello(ResponderHello&& from) noexcept + : ResponderHello(nullptr, ::std::move(from)) {} + inline ResponderHello& operator=(const ResponderHello& from) { + CopyFrom(from); + return *this; + } + inline ResponderHello& operator=(ResponderHello&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ResponderHello& default_instance() { + return *reinterpret_cast( + &_ResponderHello_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ResponderHello& a, ResponderHello& b) { a.Swap(&b); } + inline void Swap(ResponderHello* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ResponderHello* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResponderHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ResponderHello& from); + void MergeFrom(const ResponderHello& from) { ResponderHello::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ResponderHello* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.ResponderHello"; } + + explicit ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ResponderHello& from); + ResponderHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ResponderHello&& from) noexcept + : ResponderHello(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicDhKeyFieldNumber = 1, + kProtocolVersionFieldNumber = 2, + }; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + bool has_public_dh_key() const; + void clear_public_dh_key() ; + const ::securemessage::GenericPublicKey& public_dh_key() const; + [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); + void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); + + private: + const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); + + public: + // optional int32 protocol_version = 2 [default = 0]; + bool has_protocol_version() const; + void clear_protocol_version() ; + ::int32_t protocol_version() const; + void set_protocol_version(::int32_t value); + + private: + ::int32_t _internal_protocol_version() const; + void _internal_set_protocol_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.ResponderHello) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ResponderHello& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; + ::int32_t protocol_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; +// ------------------------------------------------------------------- + +class InitiatorHello final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.InitiatorHello) */ { + public: + inline InitiatorHello() : InitiatorHello(nullptr) {} + ~InitiatorHello() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(InitiatorHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(InitiatorHello)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR InitiatorHello(::google::protobuf::internal::ConstantInitialized); + + inline InitiatorHello(const InitiatorHello& from) : InitiatorHello(nullptr, from) {} + inline InitiatorHello(InitiatorHello&& from) noexcept + : InitiatorHello(nullptr, ::std::move(from)) {} + inline InitiatorHello& operator=(const InitiatorHello& from) { + CopyFrom(from); + return *this; + } + inline InitiatorHello& operator=(InitiatorHello&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const InitiatorHello& default_instance() { + return *reinterpret_cast( + &_InitiatorHello_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(InitiatorHello& a, InitiatorHello& b) { a.Swap(&b); } + inline void Swap(InitiatorHello* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitiatorHello* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InitiatorHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const InitiatorHello& from); + void MergeFrom(const InitiatorHello& from) { InitiatorHello::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(InitiatorHello* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.InitiatorHello"; } + + explicit InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitiatorHello& from); + InitiatorHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitiatorHello&& from) noexcept + : InitiatorHello(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicDhKeyFieldNumber = 1, + kProtocolVersionFieldNumber = 2, + }; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + bool has_public_dh_key() const; + void clear_public_dh_key() ; + const ::securemessage::GenericPublicKey& public_dh_key() const; + [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); + void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); + + private: + const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); + + public: + // optional int32 protocol_version = 2 [default = 0]; + bool has_protocol_version() const; + void clear_protocol_version() ; + ::int32_t protocol_version() const; + void set_protocol_version(::int32_t value); + + private: + ::int32_t _internal_protocol_version() const; + void _internal_set_protocol_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.InitiatorHello) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const InitiatorHello& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; + ::int32_t protocol_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// DeviceToDeviceMessage + +// optional bytes message = 1; +inline bool DeviceToDeviceMessage::has_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void DeviceToDeviceMessage::clear_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& DeviceToDeviceMessage::message() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.message) + return _internal_message(); +} +template +PROTOBUF_ALWAYS_INLINE void DeviceToDeviceMessage::set_message(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.message_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.message) +} +inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::mutable_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:securegcm.DeviceToDeviceMessage.message) + return _s; +} +inline const ::std::string& DeviceToDeviceMessage::_internal_message() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.message_.Get(); +} +inline void DeviceToDeviceMessage::_internal_set_message(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::_internal_mutable_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.message_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DeviceToDeviceMessage::release_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.DeviceToDeviceMessage.message) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.message_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.message_.Set("", GetArena()); + } + return released; +} +inline void DeviceToDeviceMessage::set_allocated_message(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.message_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.DeviceToDeviceMessage.message) +} + +// optional int32 sequence_number = 2; +inline bool DeviceToDeviceMessage::has_sequence_number() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void DeviceToDeviceMessage::clear_sequence_number() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sequence_number_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t DeviceToDeviceMessage::sequence_number() const { + // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.sequence_number) + return _internal_sequence_number(); +} +inline void DeviceToDeviceMessage::set_sequence_number(::int32_t value) { + _internal_set_sequence_number(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.sequence_number) +} +inline ::int32_t DeviceToDeviceMessage::_internal_sequence_number() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sequence_number_; +} +inline void DeviceToDeviceMessage::_internal_set_sequence_number(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sequence_number_ = value; +} + +// ------------------------------------------------------------------- + +// InitiatorHello + +// optional .securemessage.GenericPublicKey public_dh_key = 1; +inline bool InitiatorHello::has_public_dh_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); + return value; +} +inline const ::securemessage::GenericPublicKey& InitiatorHello::_internal_public_dh_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); +} +inline const ::securemessage::GenericPublicKey& InitiatorHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.public_dh_key) + return _internal_public_dh_key(); +} +inline void InitiatorHello::unsafe_arena_set_allocated_public_dh_key( + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); + } + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.InitiatorHello.public_dh_key) +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::unsafe_arena_release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.InitiatorHello.public_dh_key) + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + return temp; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::_internal_mutable_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); + } + return _impl_.public_dh_key_; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::mutable_public_dh_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); + // @@protoc_insertion_point(field_mutable:securegcm.InitiatorHello.public_dh_key) + return _msg; +} +inline void InitiatorHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + // @@protoc_insertion_point(field_set_allocated:securegcm.InitiatorHello.public_dh_key) +} + +// optional int32 protocol_version = 2 [default = 0]; +inline bool InitiatorHello::has_protocol_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void InitiatorHello::clear_protocol_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t InitiatorHello::protocol_version() const { + // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.protocol_version) + return _internal_protocol_version(); +} +inline void InitiatorHello::set_protocol_version(::int32_t value) { + _internal_set_protocol_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.InitiatorHello.protocol_version) +} +inline ::int32_t InitiatorHello::_internal_protocol_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.protocol_version_; +} +inline void InitiatorHello::_internal_set_protocol_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = value; +} + +// ------------------------------------------------------------------- + +// ResponderHello + +// optional .securemessage.GenericPublicKey public_dh_key = 1; +inline bool ResponderHello::has_public_dh_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); + return value; +} +inline const ::securemessage::GenericPublicKey& ResponderHello::_internal_public_dh_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); +} +inline const ::securemessage::GenericPublicKey& ResponderHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.ResponderHello.public_dh_key) + return _internal_public_dh_key(); +} +inline void ResponderHello::unsafe_arena_set_allocated_public_dh_key( + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); + } + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.ResponderHello.public_dh_key) +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::unsafe_arena_release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.ResponderHello.public_dh_key) + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + return temp; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::_internal_mutable_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); + } + return _impl_.public_dh_key_; +} +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::mutable_public_dh_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); + // @@protoc_insertion_point(field_mutable:securegcm.ResponderHello.public_dh_key) + return _msg; +} +inline void ResponderHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + // @@protoc_insertion_point(field_set_allocated:securegcm.ResponderHello.public_dh_key) +} + +// optional int32 protocol_version = 2 [default = 0]; +inline bool ResponderHello::has_protocol_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void ResponderHello::clear_protocol_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t ResponderHello::protocol_version() const { + // @@protoc_insertion_point(field_get:securegcm.ResponderHello.protocol_version) + return _internal_protocol_version(); +} +inline void ResponderHello::set_protocol_version(::int32_t value) { + _internal_set_protocol_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.ResponderHello.protocol_version) +} +inline ::int32_t ResponderHello::_internal_protocol_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.protocol_version_; +} +inline void ResponderHello::_internal_set_protocol_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = value; +} + +// ------------------------------------------------------------------- + +// EcPoint + +// required .securegcm.Curve curve = 1; +inline bool EcPoint::has_curve() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void EcPoint::clear_curve() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.curve_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::securegcm::Curve EcPoint::curve() const { + // @@protoc_insertion_point(field_get:securegcm.EcPoint.curve) + return _internal_curve(); +} +inline void EcPoint::set_curve(::securegcm::Curve value) { + _internal_set_curve(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:securegcm.EcPoint.curve) +} +inline ::securegcm::Curve EcPoint::_internal_curve() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Curve>(_impl_.curve_); +} +inline void EcPoint::_internal_set_curve(::securegcm::Curve value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Curve_internal_data_)); + _impl_.curve_ = value; +} + +// required bytes x = 2; +inline bool EcPoint::has_x() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void EcPoint::clear_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& EcPoint::x() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.EcPoint.x) + return _internal_x(); +} +template +PROTOBUF_ALWAYS_INLINE void EcPoint::set_x(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.EcPoint.x) +} +inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_x() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_x(); + // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.x) + return _s; +} +inline const ::std::string& EcPoint::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_.Get(); +} +inline void EcPoint::_internal_set_x(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.x_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.EcPoint.x) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.x_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.x_.Set("", GetArena()); + } + return released; +} +inline void EcPoint::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.x_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { + _impl_.x_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.x) +} + +// required bytes y = 3; +inline bool EcPoint::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void EcPoint::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& EcPoint::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.EcPoint.y) + return _internal_y(); +} +template +PROTOBUF_ALWAYS_INLINE void EcPoint::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.EcPoint.y) +} +inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_y(); + // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.y) + return _s; +} +inline const ::std::string& EcPoint::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); +} +inline void EcPoint::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.EcPoint.y) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); + } + return released; +} +inline void EcPoint::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.y) +} + +// ------------------------------------------------------------------- + +// SpakeHandshakeMessage + +// optional int32 flow_number = 1; +inline bool SpakeHandshakeMessage::has_flow_number() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void SpakeHandshakeMessage::clear_flow_number() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_number_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline ::int32_t SpakeHandshakeMessage::flow_number() const { + // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.flow_number) + return _internal_flow_number(); +} +inline void SpakeHandshakeMessage::set_flow_number(::int32_t value) { + _internal_set_flow_number(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.flow_number) +} +inline ::int32_t SpakeHandshakeMessage::_internal_flow_number() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_number_; +} +inline void SpakeHandshakeMessage::_internal_set_flow_number(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_number_ = value; +} + +// optional .securegcm.EcPoint ec_point = 2; +inline bool SpakeHandshakeMessage::has_ec_point() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.ec_point_ != nullptr); + return value; +} +inline void SpakeHandshakeMessage::clear_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_point_ != nullptr) _impl_.ec_point_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::securegcm::EcPoint& SpakeHandshakeMessage::_internal_ec_point() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securegcm::EcPoint* p = _impl_.ec_point_; + return p != nullptr ? *p : reinterpret_cast(::securegcm::_EcPoint_default_instance_); +} +inline const ::securegcm::EcPoint& SpakeHandshakeMessage::ec_point() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.ec_point) + return _internal_ec_point(); +} +inline void SpakeHandshakeMessage::unsafe_arena_set_allocated_ec_point( + ::securegcm::EcPoint* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); + } + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) +} +inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securegcm::EcPoint* released = _impl_.ec_point_; + _impl_.ec_point_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::unsafe_arena_release_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.ec_point) + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securegcm::EcPoint* temp = _impl_.ec_point_; + _impl_.ec_point_ = nullptr; + return temp; +} +inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_point_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securegcm::EcPoint>(GetArena()); + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(p); + } + return _impl_.ec_point_; +} +inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_ec_point() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securegcm::EcPoint* _msg = _internal_mutable_ec_point(); + // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.ec_point) + return _msg; +} +inline void SpakeHandshakeMessage::set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); + // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) +} + +// optional bytes hash_value = 3; +inline bool SpakeHandshakeMessage::has_hash_value() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void SpakeHandshakeMessage::clear_hash_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hash_value_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& SpakeHandshakeMessage::hash_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.hash_value) + return _internal_hash_value(); +} +template +PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_hash_value(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.hash_value_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.hash_value) +} +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_hash_value() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_hash_value(); + // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.hash_value) + return _s; +} +inline const ::std::string& SpakeHandshakeMessage::_internal_hash_value() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.hash_value_.Get(); +} +inline void SpakeHandshakeMessage::_internal_set_hash_value(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hash_value_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_hash_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.hash_value_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_hash_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.hash_value) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.hash_value_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_value_.Set("", GetArena()); + } + return released; +} +inline void SpakeHandshakeMessage::set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.hash_value_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_value_.IsDefault()) { + _impl_.hash_value_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.hash_value) +} + +// optional bytes payload = 4; +inline bool SpakeHandshakeMessage::has_payload() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void SpakeHandshakeMessage::clear_payload() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payload_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& SpakeHandshakeMessage::payload() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.payload) + return _internal_payload(); +} +template +PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_payload(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.payload_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.payload) +} +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_payload(); + // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.payload) + return _s; +} +inline const ::std::string& SpakeHandshakeMessage::_internal_payload() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payload_.Get(); +} +inline void SpakeHandshakeMessage::_internal_set_payload(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payload_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_payload() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.payload_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_payload() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.payload) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.payload_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.payload_.Set("", GetArena()); + } + return released; +} +inline void SpakeHandshakeMessage::set_allocated_payload(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.payload_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.payload) +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::securegcm::Curve> : std::true_type {}; + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc b/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc new file mode 100644 index 00000000..11648b95 --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc @@ -0,0 +1,2620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/securegcm.proto +// Protobuf C++ Version: 6.33.3 + +#include "proto/securegcm.pb.h" + +#include +#include +#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 securegcm { + +inline constexpr Tickle::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + expiry_time_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR Tickle::Tickle(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Tickle_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct TickleDefaultTypeInternal { + PROTOBUF_CONSTEXPR TickleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TickleDefaultTypeInternal() {} + union { + Tickle _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TickleDefaultTypeInternal _Tickle_default_instance_; + +inline constexpr LoginNotificationInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + email_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + host_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + source_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + event_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + creation_time_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR LoginNotificationInfo::LoginNotificationInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LoginNotificationInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct LoginNotificationInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR LoginNotificationInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LoginNotificationInfoDefaultTypeInternal() {} + union { + LoginNotificationInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; + +inline constexpr GcmMetadata::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_{static_cast< ::securegcm::Type >(0)}, + version_{0} {} + +template +PROTOBUF_CONSTEXPR GcmMetadata::GcmMetadata(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GcmMetadata_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GcmMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcmMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GcmMetadataDefaultTypeInternal() {} + union { + GcmMetadata _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; + +inline constexpr GcmDeviceInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + enabled_software_features_{}, + user_public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_model_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + locale_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + key_handle_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_release_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_codename_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_software_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_software_package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + long_device_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_manufacturer_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_master_key_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + apn_registration_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + bluetooth_mac_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + android_device_id_{::uint64_t{0u}}, + counter_{::int64_t{0}}, + device_os_version_code_{::int64_t{0}}, + device_software_version_code_{::int64_t{0}}, + device_display_diagonal_mils_{0}, + device_authzen_version_{0}, + bluetooth_radio_enabled_{false}, + mobile_data_supported_{false}, + arc_plus_plus_{false}, + notification_enabled_{true}, + supported_software_features_{}, + gcm_registration_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + enrollment_session_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + oauth_token_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + using_secure_screenlock_{false}, + auto_unlock_screenlock_supported_{false}, + auto_unlock_screenlock_enabled_{false}, + bluetooth_radio_supported_{false}, + tethering_supported_{false}, + ble_radio_supported_{false}, + pixel_experience_{false}, + is_screenlock_state_flaky_{false}, + device_type_{static_cast< ::securegcm::DeviceType >(1)} {} + +template +PROTOBUF_CONSTEXPR GcmDeviceInfo::GcmDeviceInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GcmDeviceInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GcmDeviceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcmDeviceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GcmDeviceInfoDefaultTypeInternal() {} + union { + GcmDeviceInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; +} // namespace securegcm +namespace securegcm { +PROTOBUF_CONSTINIT const uint32_t AppleDeviceDiagonalMils_internal_data_[] = { + 69536u, 65536u, 7900u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AppleDeviceDiagonalMils_strings[2] = {}; + +static const char AppleDeviceDiagonalMils_names[] = { + "APPLE_PAD" + "APPLE_PHONE" +}; + +static const ::google::protobuf::internal::EnumEntry AppleDeviceDiagonalMils_entries[] = { + {{&AppleDeviceDiagonalMils_names[0], 9}, 7900}, + {{&AppleDeviceDiagonalMils_names[9], 11}, 4000}, +}; + +static const int AppleDeviceDiagonalMils_entries_by_number[] = { + 1, // 4000 -> APPLE_PHONE + 0, // 7900 -> APPLE_PAD +}; + +const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AppleDeviceDiagonalMils_entries, AppleDeviceDiagonalMils_entries_by_number, 2, + AppleDeviceDiagonalMils_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AppleDeviceDiagonalMils_entries, + AppleDeviceDiagonalMils_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AppleDeviceDiagonalMils_strings[idx].get(); +} + +bool AppleDeviceDiagonalMils_Parse(::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + AppleDeviceDiagonalMils_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceType_strings[6] = {}; + +static const char DeviceType_names[] = { + "ANDROID" + "BROWSER" + "CHROME" + "IOS" + "OSX" + "UNKNOWN" +}; + +static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { + {{&DeviceType_names[0], 7}, 1}, + {{&DeviceType_names[7], 7}, 4}, + {{&DeviceType_names[14], 6}, 2}, + {{&DeviceType_names[20], 3}, 3}, + {{&DeviceType_names[23], 3}, 5}, + {{&DeviceType_names[26], 7}, 0}, +}; + +static const int DeviceType_entries_by_number[] = { + 5, // 0 -> UNKNOWN + 0, // 1 -> ANDROID + 2, // 2 -> CHROME + 3, // 3 -> IOS + 1, // 4 -> BROWSER + 4, // 5 -> OSX +}; + +const ::std::string& DeviceType_Name(DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceType_entries, DeviceType_entries_by_number, 6, + DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, + DeviceType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); +} + +bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + DeviceType_entries, 6, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t SoftwareFeature_internal_data_[] = { + 589824u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SoftwareFeature_strings[9] = {}; + +static const char SoftwareFeature_names[] = { + "BETTER_TOGETHER_CLIENT" + "BETTER_TOGETHER_HOST" + "EASY_UNLOCK_CLIENT" + "EASY_UNLOCK_HOST" + "MAGIC_TETHER_CLIENT" + "MAGIC_TETHER_HOST" + "SMS_CONNECT_CLIENT" + "SMS_CONNECT_HOST" + "UNKNOWN_FEATURE" +}; + +static const ::google::protobuf::internal::EnumEntry SoftwareFeature_entries[] = { + {{&SoftwareFeature_names[0], 22}, 2}, + {{&SoftwareFeature_names[22], 20}, 1}, + {{&SoftwareFeature_names[42], 18}, 4}, + {{&SoftwareFeature_names[60], 16}, 3}, + {{&SoftwareFeature_names[76], 19}, 6}, + {{&SoftwareFeature_names[95], 17}, 5}, + {{&SoftwareFeature_names[112], 18}, 8}, + {{&SoftwareFeature_names[130], 16}, 7}, + {{&SoftwareFeature_names[146], 15}, 0}, +}; + +static const int SoftwareFeature_entries_by_number[] = { + 8, // 0 -> UNKNOWN_FEATURE + 1, // 1 -> BETTER_TOGETHER_HOST + 0, // 2 -> BETTER_TOGETHER_CLIENT + 3, // 3 -> EASY_UNLOCK_HOST + 2, // 4 -> EASY_UNLOCK_CLIENT + 5, // 5 -> MAGIC_TETHER_HOST + 4, // 6 -> MAGIC_TETHER_CLIENT + 7, // 7 -> SMS_CONNECT_HOST + 6, // 8 -> SMS_CONNECT_CLIENT +}; + +const ::std::string& SoftwareFeature_Name(SoftwareFeature value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SoftwareFeature_entries, SoftwareFeature_entries_by_number, 9, + SoftwareFeature_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SoftwareFeature_entries, + SoftwareFeature_entries_by_number, + 9, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SoftwareFeature_strings[idx].get(); +} + +bool SoftwareFeature_Parse(::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + SoftwareFeature_entries, 9, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t InvocationReason_internal_data_[] = { + 1048576u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + InvocationReason_strings[16] = {}; + +static const char InvocationReason_names[] = { + "REASON_ADDRESS_CHANGE" + "REASON_CHANGED_ACCOUNT" + "REASON_CUSTOM_KEY_INVALIDATION" + "REASON_EXPIRATION" + "REASON_FAILURE_RECOVERY" + "REASON_FAST_PERIODIC" + "REASON_FEATURE_TOGGLED" + "REASON_INITIALIZATION" + "REASON_MANUAL" + "REASON_NEW_ACCOUNT" + "REASON_PERIODIC" + "REASON_PROXIMITY_PERIODIC" + "REASON_SERVER_INITIATED" + "REASON_SLOW_PERIODIC" + "REASON_SOFTWARE_UPDATE" + "REASON_UNKNOWN" +}; + +static const ::google::protobuf::internal::EnumEntry InvocationReason_entries[] = { + {{&InvocationReason_names[0], 21}, 11}, + {{&InvocationReason_names[21], 22}, 8}, + {{&InvocationReason_names[43], 30}, 14}, + {{&InvocationReason_names[73], 17}, 5}, + {{&InvocationReason_names[90], 23}, 6}, + {{&InvocationReason_names[113], 20}, 4}, + {{&InvocationReason_names[133], 22}, 9}, + {{&InvocationReason_names[155], 21}, 1}, + {{&InvocationReason_names[176], 13}, 13}, + {{&InvocationReason_names[189], 18}, 7}, + {{&InvocationReason_names[207], 15}, 2}, + {{&InvocationReason_names[222], 25}, 15}, + {{&InvocationReason_names[247], 23}, 10}, + {{&InvocationReason_names[270], 20}, 3}, + {{&InvocationReason_names[290], 22}, 12}, + {{&InvocationReason_names[312], 14}, 0}, +}; + +static const int InvocationReason_entries_by_number[] = { + 15, // 0 -> REASON_UNKNOWN + 7, // 1 -> REASON_INITIALIZATION + 10, // 2 -> REASON_PERIODIC + 13, // 3 -> REASON_SLOW_PERIODIC + 5, // 4 -> REASON_FAST_PERIODIC + 3, // 5 -> REASON_EXPIRATION + 4, // 6 -> REASON_FAILURE_RECOVERY + 9, // 7 -> REASON_NEW_ACCOUNT + 1, // 8 -> REASON_CHANGED_ACCOUNT + 6, // 9 -> REASON_FEATURE_TOGGLED + 12, // 10 -> REASON_SERVER_INITIATED + 0, // 11 -> REASON_ADDRESS_CHANGE + 14, // 12 -> REASON_SOFTWARE_UPDATE + 8, // 13 -> REASON_MANUAL + 2, // 14 -> REASON_CUSTOM_KEY_INVALIDATION + 11, // 15 -> REASON_PROXIMITY_PERIODIC +}; + +const ::std::string& InvocationReason_Name(InvocationReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + InvocationReason_entries, InvocationReason_entries_by_number, 16, + InvocationReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(InvocationReason_entries, + InvocationReason_entries_by_number, + 16, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InvocationReason_strings[idx].get(); +} + +bool InvocationReason_Parse(::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + InvocationReason_entries, 16, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t Type_internal_data_[] = { + 589824u, 65568u, 126u, 101u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Type_strings[16] = {}; + +static const char Type_names[] = { + "DEVICE_INFO_UPDATE" + "DEVICE_PROXIMITY_CALLBACK" + "DEVICE_TO_DEVICE_MESSAGE" + "DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD" + "ENROLLMENT" + "GCMV1_IDENTITY_ASSERTION" + "LOGIN_NOTIFICATION" + "PROXIMITYAUTH_PAIRING" + "TICKLE" + "TX_CANCEL_REQUEST" + "TX_PING" + "TX_REPLY" + "TX_REQUEST" + "TX_SYNC_REQUEST" + "TX_SYNC_RESPONSE" + "UNLOCK_KEY_SIGNED_CHALLENGE" +}; + +static const ::google::protobuf::internal::EnumEntry Type_entries[] = { + {{&Type_names[0], 18}, 7}, + {{&Type_names[18], 25}, 14}, + {{&Type_names[43], 24}, 13}, + {{&Type_names[67], 40}, 12}, + {{&Type_names[107], 10}, 0}, + {{&Type_names[117], 24}, 11}, + {{&Type_names[141], 18}, 101}, + {{&Type_names[159], 21}, 10}, + {{&Type_names[180], 6}, 1}, + {{&Type_names[186], 17}, 8}, + {{&Type_names[203], 7}, 6}, + {{&Type_names[210], 8}, 3}, + {{&Type_names[218], 10}, 2}, + {{&Type_names[228], 15}, 4}, + {{&Type_names[243], 16}, 5}, + {{&Type_names[259], 27}, 15}, +}; + +static const int Type_entries_by_number[] = { + 4, // 0 -> ENROLLMENT + 8, // 1 -> TICKLE + 12, // 2 -> TX_REQUEST + 11, // 3 -> TX_REPLY + 13, // 4 -> TX_SYNC_REQUEST + 14, // 5 -> TX_SYNC_RESPONSE + 10, // 6 -> TX_PING + 0, // 7 -> DEVICE_INFO_UPDATE + 9, // 8 -> TX_CANCEL_REQUEST + 7, // 10 -> PROXIMITYAUTH_PAIRING + 5, // 11 -> GCMV1_IDENTITY_ASSERTION + 3, // 12 -> DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD + 2, // 13 -> DEVICE_TO_DEVICE_MESSAGE + 1, // 14 -> DEVICE_PROXIMITY_CALLBACK + 15, // 15 -> UNLOCK_KEY_SIGNED_CHALLENGE + 6, // 101 -> LOGIN_NOTIFICATION +}; + +const ::std::string& Type_Name(Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Type_entries, Type_entries_by_number, 16, + Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Type_entries, + Type_entries_by_number, + 16, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Type_strings[idx].get(); +} + +bool Type_Parse(::absl::string_view name, Type* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + Type_entries, 16, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +// =================================================================== + +class GcmDeviceInfo::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; + } +}; + +GcmDeviceInfo::GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.GcmDeviceInfo) +} +PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::GcmDeviceInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + enabled_software_features_{visibility, arena, from.enabled_software_features_}, + user_public_key_(arena, from.user_public_key_), + device_model_(arena, from.device_model_), + locale_(arena, from.locale_), + key_handle_(arena, from.key_handle_), + device_os_version_(arena, from.device_os_version_), + device_os_release_(arena, from.device_os_release_), + device_os_codename_(arena, from.device_os_codename_), + device_software_version_(arena, from.device_software_version_), + device_software_package_(arena, from.device_software_package_), + long_device_id_(arena, from.long_device_id_), + device_manufacturer_(arena, from.device_manufacturer_), + device_master_key_hash_(arena, from.device_master_key_hash_), + apn_registration_id_(arena, from.apn_registration_id_), + bluetooth_mac_address_(arena, from.bluetooth_mac_address_), + supported_software_features_{visibility, arena, from.supported_software_features_}, + gcm_registration_id_(arena, from.gcm_registration_id_), + enrollment_session_id_(arena, from.enrollment_session_id_), + oauth_token_(arena, from.oauth_token_) {} + +GcmDeviceInfo::GcmDeviceInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GcmDeviceInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GcmDeviceInfo* 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(&_impl_) + + offsetof(Impl_, android_device_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, android_device_id_), + offsetof(Impl_, notification_enabled_) - + offsetof(Impl_, android_device_id_) + + sizeof(Impl_::notification_enabled_)); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, using_secure_screenlock_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, using_secure_screenlock_), + offsetof(Impl_, device_type_) - + offsetof(Impl_, using_secure_screenlock_) + + sizeof(Impl_::device_type_)); + + // @@protoc_insertion_point(copy_constructor:securegcm.GcmDeviceInfo) +} +PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + enabled_software_features_{visibility, arena}, + user_public_key_(arena), + device_model_(arena), + locale_(arena), + key_handle_(arena), + device_os_version_(arena), + device_os_release_(arena), + device_os_codename_(arena), + device_software_version_(arena), + device_software_package_(arena), + long_device_id_(arena), + device_manufacturer_(arena), + device_master_key_hash_(arena), + apn_registration_id_(arena), + bluetooth_mac_address_(arena), + notification_enabled_{true}, + supported_software_features_{visibility, arena}, + gcm_registration_id_(arena), + enrollment_session_id_(arena), + oauth_token_(arena), + device_type_{static_cast< ::securegcm::DeviceType >(1)} {} + +inline void GcmDeviceInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, android_device_id_), + 0, + offsetof(Impl_, arc_plus_plus_) - + offsetof(Impl_, android_device_id_) + + sizeof(Impl_::arc_plus_plus_)); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, using_secure_screenlock_), + 0, + offsetof(Impl_, is_screenlock_state_flaky_) - + offsetof(Impl_, using_secure_screenlock_) + + sizeof(Impl_::is_screenlock_state_flaky_)); +} +GcmDeviceInfo::~GcmDeviceInfo() { + // @@protoc_insertion_point(destructor:securegcm.GcmDeviceInfo) + SharedDtor(*this); +} +inline void GcmDeviceInfo::SharedDtor(MessageLite& self) { + GcmDeviceInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.user_public_key_.Destroy(); + this_._impl_.device_model_.Destroy(); + this_._impl_.locale_.Destroy(); + this_._impl_.key_handle_.Destroy(); + this_._impl_.device_os_version_.Destroy(); + this_._impl_.device_os_release_.Destroy(); + this_._impl_.device_os_codename_.Destroy(); + this_._impl_.device_software_version_.Destroy(); + this_._impl_.device_software_package_.Destroy(); + this_._impl_.long_device_id_.Destroy(); + this_._impl_.device_manufacturer_.Destroy(); + this_._impl_.device_master_key_hash_.Destroy(); + this_._impl_.apn_registration_id_.Destroy(); + this_._impl_.bluetooth_mac_address_.Destroy(); + this_._impl_.gcm_registration_id_.Destroy(); + this_._impl_.enrollment_session_id_.Destroy(); + this_._impl_.oauth_token_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GcmDeviceInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GcmDeviceInfo(arena); +} +constexpr auto GcmDeviceInfo::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_) + + decltype(GcmDeviceInfo::_impl_.supported_software_features_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_) + + decltype(GcmDeviceInfo::_impl_.enabled_software_features_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GcmDeviceInfo), alignof(GcmDeviceInfo), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GcmDeviceInfo::PlacementNew_, + sizeof(GcmDeviceInfo), + alignof(GcmDeviceInfo)); + } +} +constexpr auto GcmDeviceInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<24>{ + { + &_GcmDeviceInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GcmDeviceInfo::IsInitializedImpl, + &GcmDeviceInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GcmDeviceInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GcmDeviceInfo::ByteSizeLong, + &GcmDeviceInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._cached_size_), + true, + }, + "securegcm.GcmDeviceInfo", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_ = + GcmDeviceInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GcmDeviceInfo::GetClassData() const { + return GcmDeviceInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 38, 3, 0, 27> +GcmDeviceInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_), + 0, // no _extensions_ + 1001, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 794297910, // skipmap + offsetof(decltype(_table_), field_entries), + 38, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GcmDeviceInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::GcmDeviceInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional fixed64 android_device_id = 1; + {::_pbi::TcParser::FastF64S1, + {9, 15, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // required bytes user_public_key = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional string device_model = 7; + {::_pbi::TcParser::FastBS1, + {58, 2, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_)}}, + // optional string locale = 8; + {::_pbi::TcParser::FastBS1, + {66, 3, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_)}}, + // optional bytes key_handle = 9; + {::_pbi::TcParser::FastBS1, + {74, 4, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 counter = 12 [default = 0]; + {::_pbi::TcParser::FastV64S1, + {96, 16, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_)}}, + // optional string device_os_version = 13; + {::_pbi::TcParser::FastBS1, + {106, 5, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_)}}, + // optional int64 device_os_version_code = 14; + {::_pbi::TcParser::FastV64S1, + {112, 17, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_)}}, + // optional string device_os_release = 15; + {::_pbi::TcParser::FastBS1, + {122, 6, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_)}}, + // optional string device_os_codename = 16; + {::_pbi::TcParser::FastBS2, + {386, 7, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_)}}, + // optional string device_software_version = 17; + {::_pbi::TcParser::FastBS2, + {394, 8, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_)}}, + // optional int64 device_software_version_code = 18; + {::_pbi::TcParser::FastV64S2, + {400, 18, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_)}}, + // optional string device_software_package = 19; + {::_pbi::TcParser::FastBS2, + {410, 9, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_)}}, + // optional bool bluetooth_radio_enabled = 404 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6560, 21, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_)}}, + // optional bool mobile_data_supported = 405 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6568, 22, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_)}}, + // optional int32 device_display_diagonal_mils = 22; + {::_pbi::TcParser::FastV32S2, + {432, 19, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_)}}, + // optional bytes device_master_key_hash = 103; + {::_pbi::TcParser::FastBS2, + {1722, 12, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_)}}, + // optional int32 device_authzen_version = 24; + {::_pbi::TcParser::FastV32S2, + {448, 20, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_)}}, + // optional bool arc_plus_plus = 409 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6600, 23, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_)}}, + // optional bytes apn_registration_id = 202; + {::_pbi::TcParser::FastBS2, + {3282, 13, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_)}}, + // optional bool notification_enabled = 203 [default = true]; + {::_pbi::TcParser::FastV8S2, + {3288, 24, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_)}}, + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + {::_pbi::TcParser::FastEr0R2, + {6624, 0, 8, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_)}}, + // optional bytes long_device_id = 29; + {::_pbi::TcParser::FastBS2, + {490, 10, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_)}}, + // optional string bluetooth_mac_address = 302; + {::_pbi::TcParser::FastBS2, + {4850, 14, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_)}}, + // optional string device_manufacturer = 31; + {::_pbi::TcParser::FastBS2, + {506, 11, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_)}}, + }}, {{ + 102, 0, 1, + 65532, 18, + 202, 0, 1, + 65532, 20, + 302, 0, 1, + 65534, 22, + 400, 0, 1, + 57344, 23, + 1000, 0, 1, + 65532, 36, + 65535, 65535 + }}, {{ + // optional fixed64 android_device_id = 1; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + // required bytes user_public_key = 4; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_model = 7; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string locale = 8; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes key_handle = 9; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 counter = 12 [default = 0]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_os_version = 13; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 device_os_version_code = 14; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_os_release = 15; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_os_codename = 16; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_software_version = 17; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 device_software_version_code = 18; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_software_package = 19; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 device_display_diagonal_mils = 22; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 device_authzen_version = 24; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes long_device_id = 29; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_manufacturer = 31; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_), _Internal::kHasBitsOffset + 37, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes gcm_registration_id = 102; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.gcm_registration_id_), _Internal::kHasBitsOffset + 26, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes device_master_key_hash = 103; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes apn_registration_id = 202; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool notification_enabled = 203 [default = true]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string bluetooth_mac_address = 302; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool using_secure_screenlock = 400 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_), _Internal::kHasBitsOffset + 29, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool auto_unlock_screenlock_supported = 401 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_supported_), _Internal::kHasBitsOffset + 30, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_enabled_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool bluetooth_radio_supported = 403 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_supported_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool bluetooth_radio_enabled = 404 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool mobile_data_supported = 405 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool tethering_supported = 406 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.tethering_supported_), _Internal::kHasBitsOffset + 33, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool ble_radio_supported = 407 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.ble_radio_supported_), _Internal::kHasBitsOffset + 34, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool pixel_experience = 408 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.pixel_experience_), _Internal::kHasBitsOffset + 35, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool arc_plus_plus = 409 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_screenlock_state_flaky = 410 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.is_screenlock_state_flaky_), _Internal::kHasBitsOffset + 36, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_), _Internal::kHasBitsOffset + 25, 1, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // optional bytes enrollment_session_id = 1000; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enrollment_session_id_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string oauth_token = 1001; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.oauth_token_), _Internal::kHasBitsOffset + 28, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 5}, + {0, 8}, + {0, 8}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GcmDeviceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.GcmDeviceInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.enabled_software_features_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.user_public_key_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.device_model_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.locale_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.key_handle_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.device_os_version_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _impl_.device_os_release_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _impl_.device_os_codename_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _impl_.device_software_version_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _impl_.device_software_package_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _impl_.long_device_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _impl_.device_manufacturer_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _impl_.device_master_key_hash_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _impl_.apn_registration_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + _impl_.bluetooth_mac_address_.ClearNonDefaultToEmpty(); + } + } + _impl_.android_device_id_ = ::uint64_t{0u}; + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + ::memset(&_impl_.counter_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.arc_plus_plus_) - + reinterpret_cast(&_impl_.counter_)) + sizeof(_impl_.arc_plus_plus_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x1f000000U)) { + _impl_.notification_enabled_ = true; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + _impl_.supported_software_features_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + _impl_.gcm_registration_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + _impl_.enrollment_session_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + _impl_.oauth_token_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0xe0000000U)) { + ::memset(&_impl_.using_secure_screenlock_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.auto_unlock_screenlock_enabled_) - + reinterpret_cast(&_impl_.using_secure_screenlock_)) + sizeof(_impl_.auto_unlock_screenlock_enabled_)); + } + cached_has_bits = _impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + ::memset(&_impl_.bluetooth_radio_supported_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_screenlock_state_flaky_) - + reinterpret_cast(&_impl_.bluetooth_radio_supported_)) + sizeof(_impl_.is_screenlock_state_flaky_)); + _impl_.device_type_ = 1; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GcmDeviceInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GcmDeviceInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmDeviceInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional fixed64 android_device_id = 1; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 1, this_._internal_android_device_id(), target); + } + + // required bytes user_public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_user_public_key(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + + // optional string device_model = 7; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_device_model(); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // optional string locale = 8; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_locale(); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + // optional bytes key_handle = 9; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + const ::std::string& _s = this_._internal_key_handle(); + target = stream->WriteBytesMaybeAliased(9, _s, target); + } + + // optional int64 counter = 12 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>( + stream, this_._internal_counter(), target); + } + + // optional string device_os_version = 13; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_device_os_version(); + target = stream->WriteStringMaybeAliased(13, _s, target); + } + + // optional int64 device_os_version_code = 14; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>( + stream, this_._internal_device_os_version_code(), target); + } + + // optional string device_os_release = 15; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + const ::std::string& _s = this_._internal_device_os_release(); + target = stream->WriteStringMaybeAliased(15, _s, target); + } + + // optional string device_os_codename = 16; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + const ::std::string& _s = this_._internal_device_os_codename(); + target = stream->WriteStringMaybeAliased(16, _s, target); + } + + // optional string device_software_version = 17; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + const ::std::string& _s = this_._internal_device_software_version(); + target = stream->WriteStringMaybeAliased(17, _s, target); + } + + // optional int64 device_software_version_code = 18; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 18, this_._internal_device_software_version_code(), target); + } + + // optional string device_software_package = 19; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + const ::std::string& _s = this_._internal_device_software_package(); + target = stream->WriteStringMaybeAliased(19, _s, target); + } + + // optional int32 device_display_diagonal_mils = 22; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 22, this_._internal_device_display_diagonal_mils(), target); + } + + // optional int32 device_authzen_version = 24; + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 24, this_._internal_device_authzen_version(), target); + } + + // optional bytes long_device_id = 29; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + const ::std::string& _s = this_._internal_long_device_id(); + target = stream->WriteBytesMaybeAliased(29, _s, target); + } + + // optional string device_manufacturer = 31; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + const ::std::string& _s = this_._internal_device_manufacturer(); + target = stream->WriteStringMaybeAliased(31, _s, target); + } + + cached_has_bits = this_._impl_._has_bits_[1]; + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 32, this_._internal_device_type(), target); + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional bytes gcm_registration_id = 102; + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + const ::std::string& _s = this_._internal_gcm_registration_id(); + target = stream->WriteBytesMaybeAliased(102, _s, target); + } + + // optional bytes device_master_key_hash = 103; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + const ::std::string& _s = this_._internal_device_master_key_hash(); + target = stream->WriteBytesMaybeAliased(103, _s, target); + } + + // optional bytes apn_registration_id = 202; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + const ::std::string& _s = this_._internal_apn_registration_id(); + target = stream->WriteBytesMaybeAliased(202, _s, target); + } + + // optional bool notification_enabled = 203 [default = true]; + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 203, this_._internal_notification_enabled(), target); + } + + // optional string bluetooth_mac_address = 302; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + const ::std::string& _s = this_._internal_bluetooth_mac_address(); + target = stream->WriteStringMaybeAliased(302, _s, target); + } + + // optional bool using_secure_screenlock = 400 [default = false]; + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 400, this_._internal_using_secure_screenlock(), target); + } + + // optional bool auto_unlock_screenlock_supported = 401 [default = false]; + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 401, this_._internal_auto_unlock_screenlock_supported(), target); + } + + // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 402, this_._internal_auto_unlock_screenlock_enabled(), target); + } + + cached_has_bits = this_._impl_._has_bits_[1]; + // optional bool bluetooth_radio_supported = 403 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 403, this_._internal_bluetooth_radio_supported(), target); + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional bool bluetooth_radio_enabled = 404 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 404, this_._internal_bluetooth_radio_enabled(), target); + } + + // optional bool mobile_data_supported = 405 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 405, this_._internal_mobile_data_supported(), target); + } + + cached_has_bits = this_._impl_._has_bits_[1]; + // optional bool tethering_supported = 406 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 406, this_._internal_tethering_supported(), target); + } + + // optional bool ble_radio_supported = 407 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 407, this_._internal_ble_radio_supported(), target); + } + + // optional bool pixel_experience = 408 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 408, this_._internal_pixel_experience(), target); + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional bool arc_plus_plus = 409 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 409, this_._internal_arc_plus_plus(), target); + } + + cached_has_bits = this_._impl_._has_bits_[1]; + // optional bool is_screenlock_state_flaky = 410 [default = false]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 410, this_._internal_is_screenlock_state_flaky(), target); + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + for (int i = 0, n = this_._internal_supported_software_features_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 411, static_cast<::securegcm::SoftwareFeature>(this_._internal_supported_software_features().Get(i)), + target); + } + } + + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_enabled_software_features_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 412, static_cast<::securegcm::SoftwareFeature>(this_._internal_enabled_software_features().Get(i)), + target); + } + } + + // optional bytes enrollment_session_id = 1000; + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + const ::std::string& _s = this_._internal_enrollment_session_id(); + target = stream->WriteBytesMaybeAliased(1000, _s, target); + } + + // optional string oauth_token = 1001; + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + const ::std::string& _s = this_._internal_oauth_token(); + target = stream->WriteStringMaybeAliased(1001, _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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmDeviceInfo) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GcmDeviceInfo::ByteSizeLong(const MessageLite& base) { + const GcmDeviceInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GcmDeviceInfo::ByteSizeLong() const { + const GcmDeviceInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmDeviceInfo) + ::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(0x00008000U & cached_has_bits) * 9; + total_size += ::absl::popcount(0xe1e00000U & cached_has_bits) * 3; + { + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_enabled_software_features()); + ::size_t tag_size = ::size_t{2} * + ::_pbi::FromIntSize(this_._internal_enabled_software_features_size()); + total_size += data_size + tag_size; + } + } + { + // required bytes user_public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_user_public_key()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + // optional string device_model = 7; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_model()); + } + // optional string locale = 8; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_locale()); + } + // optional bytes key_handle = 9; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_key_handle()); + } + // optional string device_os_version = 13; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_version()); + } + // optional string device_os_release = 15; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_release()); + } + // optional string device_os_codename = 16; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_codename()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + // optional string device_software_version = 17; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_software_version()); + } + // optional string device_software_package = 19; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_software_package()); + } + // optional bytes long_device_id = 29; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_long_device_id()); + } + // optional string device_manufacturer = 31; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_manufacturer()); + } + // optional bytes device_master_key_hash = 103; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_device_master_key_hash()); + } + // optional bytes apn_registration_id = 202; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_apn_registration_id()); + } + // optional string bluetooth_mac_address = 302; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_bluetooth_mac_address()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) { + // optional int64 counter = 12 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_counter()); + } + // optional int64 device_os_version_code = 14; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_device_os_version_code()); + } + // optional int64 device_software_version_code = 18; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int64Size( + this_._internal_device_software_version_code()); + } + // optional int32 device_display_diagonal_mils = 22; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_device_display_diagonal_mils()); + } + // optional int32 device_authzen_version = 24; + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_device_authzen_version()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x1e000000U)) { + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_software_features()); + ::size_t tag_size = ::size_t{2} * + ::_pbi::FromIntSize(this_._internal_supported_software_features_size()); + total_size += data_size + tag_size; + } + // optional bytes gcm_registration_id = 102; + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_gcm_registration_id()); + } + // optional bytes enrollment_session_id = 1000; + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_enrollment_session_id()); + } + // optional string oauth_token = 1001; + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_oauth_token()); + } + } + cached_has_bits = this_._impl_._has_bits_[1]; + total_size += ::absl::popcount(0x0000001fU & cached_has_bits) * 3; + { + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 2 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void GcmDeviceInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmDeviceInfo) + 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_enabled_software_features()->MergeFrom(from._internal_enabled_software_features()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_user_public_key(from._internal_user_public_key()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_device_model(from._internal_device_model()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_locale(from._internal_locale()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_set_key_handle(from._internal_key_handle()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_device_os_version(from._internal_device_os_version()); + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_internal_set_device_os_release(from._internal_device_os_release()); + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_internal_set_device_os_codename(from._internal_device_os_codename()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_internal_set_device_software_version(from._internal_device_software_version()); + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_internal_set_device_software_package(from._internal_device_software_package()); + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_internal_set_long_device_id(from._internal_long_device_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_internal_set_device_manufacturer(from._internal_device_manufacturer()); + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_internal_set_device_master_key_hash(from._internal_device_master_key_hash()); + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _this->_internal_set_apn_registration_id(from._internal_apn_registration_id()); + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + _this->_internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + _this->_impl_.android_device_id_ = from._impl_.android_device_id_; + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + _this->_impl_.counter_ = from._impl_.counter_; + } + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + _this->_impl_.device_os_version_code_ = from._impl_.device_os_version_code_; + } + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + _this->_impl_.device_software_version_code_ = from._impl_.device_software_version_code_; + } + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + _this->_impl_.device_display_diagonal_mils_ = from._impl_.device_display_diagonal_mils_; + } + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + _this->_impl_.device_authzen_version_ = from._impl_.device_authzen_version_; + } + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + _this->_impl_.bluetooth_radio_enabled_ = from._impl_.bluetooth_radio_enabled_; + } + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + _this->_impl_.mobile_data_supported_ = from._impl_.mobile_data_supported_; + } + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + _this->_impl_.arc_plus_plus_ = from._impl_.arc_plus_plus_; + } + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + _this->_impl_.notification_enabled_ = from._impl_.notification_enabled_; + } + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + _this->_internal_mutable_supported_software_features()->MergeFrom(from._internal_supported_software_features()); + } + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + _this->_internal_set_gcm_registration_id(from._internal_gcm_registration_id()); + } + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + _this->_internal_set_enrollment_session_id(from._internal_enrollment_session_id()); + } + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + _this->_internal_set_oauth_token(from._internal_oauth_token()); + } + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + _this->_impl_.using_secure_screenlock_ = from._impl_.using_secure_screenlock_; + } + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + _this->_impl_.auto_unlock_screenlock_supported_ = from._impl_.auto_unlock_screenlock_supported_; + } + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + _this->_impl_.auto_unlock_screenlock_enabled_ = from._impl_.auto_unlock_screenlock_enabled_; + } + } + cached_has_bits = from._impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.bluetooth_radio_supported_ = from._impl_.bluetooth_radio_supported_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.tethering_supported_ = from._impl_.tethering_supported_; + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.ble_radio_supported_ = from._impl_.ble_radio_supported_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.pixel_experience_ = from._impl_.pixel_experience_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.is_screenlock_state_flaky_ = from._impl_.is_screenlock_state_flaky_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; + } + } + _this->_impl_._has_bits_.Or(from._impl_._has_bits_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void GcmDeviceInfo::CopyFrom(const GcmDeviceInfo& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmDeviceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GcmDeviceInfo::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void GcmDeviceInfo::InternalSwap(GcmDeviceInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); + _impl_.enabled_software_features_.InternalSwap(&other->_impl_.enabled_software_features_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_public_key_, &other->_impl_.user_public_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_model_, &other->_impl_.device_model_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.locale_, &other->_impl_.locale_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_handle_, &other->_impl_.key_handle_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_version_, &other->_impl_.device_os_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_release_, &other->_impl_.device_os_release_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_codename_, &other->_impl_.device_os_codename_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_version_, &other->_impl_.device_software_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_package_, &other->_impl_.device_software_package_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.long_device_id_, &other->_impl_.long_device_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_manufacturer_, &other->_impl_.device_manufacturer_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_master_key_hash_, &other->_impl_.device_master_key_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.apn_registration_id_, &other->_impl_.apn_registration_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bluetooth_mac_address_, &other->_impl_.bluetooth_mac_address_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_) + + sizeof(GcmDeviceInfo::_impl_.notification_enabled_) + - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)>( + reinterpret_cast(&_impl_.android_device_id_), + reinterpret_cast(&other->_impl_.android_device_id_)); + _impl_.supported_software_features_.InternalSwap(&other->_impl_.supported_software_features_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.gcm_registration_id_, &other->_impl_.gcm_registration_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.enrollment_session_id_, &other->_impl_.enrollment_session_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.oauth_token_, &other->_impl_.oauth_token_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_) + + sizeof(GcmDeviceInfo::_impl_.device_type_) + - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_)>( + reinterpret_cast(&_impl_.using_secure_screenlock_), + reinterpret_cast(&other->_impl_.using_secure_screenlock_)); +} + +// =================================================================== + +class GcmMetadata::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +GcmMetadata::GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.GcmMetadata) +} +GcmMetadata::GcmMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmMetadata_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 GcmMetadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void GcmMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, version_) - + offsetof(Impl_, type_) + + sizeof(Impl_::version_)); +} +GcmMetadata::~GcmMetadata() { + // @@protoc_insertion_point(destructor:securegcm.GcmMetadata) + SharedDtor(*this); +} +inline void GcmMetadata::SharedDtor(MessageLite& self) { + GcmMetadata& this_ = static_cast(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 GcmMetadata::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GcmMetadata(arena); +} +constexpr auto GcmMetadata::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GcmMetadata), + alignof(GcmMetadata)); +} +constexpr auto GcmMetadata::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<22>{ + { + &_GcmMetadata_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GcmMetadata::IsInitializedImpl, + &GcmMetadata::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GcmMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GcmMetadata::ByteSizeLong, + &GcmMetadata::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._cached_size_), + true, + }, + "securegcm.GcmMetadata", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_ = + GcmMetadata::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GcmMetadata::GetClassData() const { + return GcmMetadata_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +GcmMetadata::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GcmMetadata, _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), + GcmMetadata_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::GcmMetadata>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_)}}, + // required .securegcm.Type type = 1; + {::_pbi::TcParser::FastEvS1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securegcm.Type type = 1; + {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional int32 version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Type_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GcmMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.GcmMetadata) + ::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_.type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GcmMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GcmMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmMetadata) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required .securegcm.Type type = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional int32 version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_version(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmMetadata) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GcmMetadata::ByteSizeLong(const MessageLite& base) { + const GcmMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GcmMetadata::ByteSizeLong() const { + const GcmMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmMetadata) + ::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_); + { + // required .securegcm.Type type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + } + { + // optional int32 version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void GcmMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmMetadata) + 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_.type_ = from._impl_.type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void GcmMetadata::CopyFrom(const GcmMetadata& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GcmMetadata::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void GcmMetadata::InternalSwap(GcmMetadata* 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(GcmMetadata, _impl_.version_) + + sizeof(GcmMetadata::_impl_.version_) + - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_)); +} + +// =================================================================== + +class Tickle::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_); +}; + +Tickle::Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Tickle_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Tickle) +} +Tickle::Tickle( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Tickle_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 Tickle::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void Tickle::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.expiry_time_ = {}; +} +Tickle::~Tickle() { + // @@protoc_insertion_point(destructor:securegcm.Tickle) + SharedDtor(*this); +} +inline void Tickle::SharedDtor(MessageLite& self) { + Tickle& this_ = static_cast(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 Tickle::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Tickle(arena); +} +constexpr auto Tickle::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Tickle), + alignof(Tickle)); +} +constexpr auto Tickle::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<17>{ + { + &_Tickle_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Tickle::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Tickle::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Tickle::ByteSizeLong, + &Tickle::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Tickle, _impl_._cached_size_), + true, + }, + "securegcm.Tickle", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_ = + Tickle::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Tickle::GetClassData() const { + return Tickle_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +Tickle::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Tickle_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Tickle>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional fixed64 expiry_time = 1; + {::_pbi::TcParser::FastF64S1, + {9, 0, 0, + PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional fixed64 expiry_time = 1; + {PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void Tickle::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Tickle) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.expiry_time_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Tickle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Tickle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Tickle) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional fixed64 expiry_time = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 1, this_._internal_expiry_time(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Tickle) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Tickle::ByteSizeLong(const MessageLite& base) { + const Tickle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Tickle::ByteSizeLong() const { + const Tickle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Tickle) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000001U & cached_has_bits) * 9; + 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 Tickle::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Tickle) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.expiry_time_ = from._impl_.expiry_time_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Tickle::CopyFrom(const Tickle& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Tickle) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Tickle::InternalSwap(Tickle* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.expiry_time_, other->_impl_.expiry_time_); +} + +// =================================================================== + +class LoginNotificationInfo::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_); +}; + +LoginNotificationInfo::LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.LoginNotificationInfo) +} +PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::LoginNotificationInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + email_(arena, from.email_), + host_(arena, from.host_), + source_(arena, from.source_), + event_type_(arena, from.event_type_) {} + +LoginNotificationInfo::LoginNotificationInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LoginNotificationInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LoginNotificationInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.creation_time_ = from._impl_.creation_time_; + + // @@protoc_insertion_point(copy_constructor:securegcm.LoginNotificationInfo) +} +PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + email_(arena), + host_(arena), + source_(arena), + event_type_(arena) {} + +inline void LoginNotificationInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.creation_time_ = {}; +} +LoginNotificationInfo::~LoginNotificationInfo() { + // @@protoc_insertion_point(destructor:securegcm.LoginNotificationInfo) + SharedDtor(*this); +} +inline void LoginNotificationInfo::SharedDtor(MessageLite& self) { + LoginNotificationInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.email_.Destroy(); + this_._impl_.host_.Destroy(); + this_._impl_.source_.Destroy(); + this_._impl_.event_type_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL LoginNotificationInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LoginNotificationInfo(arena); +} +constexpr auto LoginNotificationInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LoginNotificationInfo), + alignof(LoginNotificationInfo)); +} +constexpr auto LoginNotificationInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_LoginNotificationInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LoginNotificationInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LoginNotificationInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LoginNotificationInfo::ByteSizeLong, + &LoginNotificationInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._cached_size_), + true, + }, + "securegcm.LoginNotificationInfo", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_ = + LoginNotificationInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LoginNotificationInfo::GetClassData() const { + return LoginNotificationInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +LoginNotificationInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967233, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + LoginNotificationInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::LoginNotificationInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional fixed64 creation_time = 2; + {::_pbi::TcParser::FastF64S1, + {17, 4, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_)}}, + // optional string email = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_)}}, + // optional string host = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_)}}, + // optional string source = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_)}}, + // optional string event_type = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional fixed64 creation_time = 2; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + // optional string email = 3; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string host = 4; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string source = 5; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string event_type = 6; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void LoginNotificationInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.LoginNotificationInfo) + ::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_.email_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.host_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.source_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.event_type_.ClearNonDefaultToEmpty(); + } + } + _impl_.creation_time_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LoginNotificationInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LoginNotificationInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.LoginNotificationInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional fixed64 creation_time = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 2, this_._internal_creation_time(), target); + } + + // optional string email = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_email(); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // optional string host = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_host(); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + // optional string source = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_source(); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // optional string event_type = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_event_type(); + 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.LoginNotificationInfo) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LoginNotificationInfo::ByteSizeLong(const MessageLite& base) { + const LoginNotificationInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LoginNotificationInfo::ByteSizeLong() const { + const LoginNotificationInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.LoginNotificationInfo) + ::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(0x00000010U & cached_has_bits) * 9; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // optional string email = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_email()); + } + // optional string host = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_host()); + } + // optional string source = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_source()); + } + // optional string event_type = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_event_type()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void LoginNotificationInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.LoginNotificationInfo) + 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->_internal_set_email(from._internal_email()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_host(from._internal_host()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_source(from._internal_source()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_event_type(from._internal_event_type()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.creation_time_ = from._impl_.creation_time_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void LoginNotificationInfo::CopyFrom(const LoginNotificationInfo& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.LoginNotificationInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void LoginNotificationInfo::InternalSwap(LoginNotificationInfo* 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_.email_, &other->_impl_.email_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.event_type_, &other->_impl_.event_type_, arena); + swap(_impl_.creation_time_, other->_impl_.creation_time_); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/securegcm.pb.h b/third_party/ukey2/compiled_proto/proto/securegcm.pb.h new file mode 100644 index 00000000..aba02b55 --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/securegcm.pb.h @@ -0,0 +1,3947 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/securegcm.proto +// Protobuf C++ Version: 6.33.3 + +#ifndef proto_2fsecuregcm_2eproto_2epb_2eh +#define proto_2fsecuregcm_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuregcm_2eproto + +namespace google { +namespace protobuf { +namespace internal { +template +::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_proto_2fsecuregcm_2eproto { + static const ::uint32_t offsets[]; +}; +namespace securegcm { +enum AppleDeviceDiagonalMils : int; +extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; +enum DeviceType : int; +extern const uint32_t DeviceType_internal_data_[]; +enum InvocationReason : int; +extern const uint32_t InvocationReason_internal_data_[]; +enum SoftwareFeature : int; +extern const uint32_t SoftwareFeature_internal_data_[]; +enum Type : int; +extern const uint32_t Type_internal_data_[]; +class GcmDeviceInfo; +struct GcmDeviceInfoDefaultTypeInternal; +extern GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; +class GcmMetadata; +struct GcmMetadataDefaultTypeInternal; +extern GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; +class LoginNotificationInfo; +struct LoginNotificationInfoDefaultTypeInternal; +extern LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; +class Tickle; +struct TickleDefaultTypeInternal; +extern TickleDefaultTypeInternal _Tickle_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; +} // namespace securegcm +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::AppleDeviceDiagonalMils_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::AppleDeviceDiagonalMils>; +template <> +internal::EnumTraitsT<::securegcm::DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::DeviceType>; +template <> +internal::EnumTraitsT<::securegcm::InvocationReason_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::InvocationReason>; +template <> +internal::EnumTraitsT<::securegcm::SoftwareFeature_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::SoftwareFeature>; +template <> +internal::EnumTraitsT<::securegcm::Type_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Type>; +} // namespace protobuf +} // namespace google + +namespace securegcm { +enum AppleDeviceDiagonalMils : int { + APPLE_PHONE = 4000, + APPLE_PAD = 7900, +}; + +extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; +inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MIN = + static_cast(4000); +inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MAX = + static_cast(7900); +inline bool AppleDeviceDiagonalMils_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, AppleDeviceDiagonalMils_internal_data_); +} +inline constexpr int AppleDeviceDiagonalMils_ARRAYSIZE = 7900 + 1; +const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value); +template +const ::std::string& AppleDeviceDiagonalMils_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to AppleDeviceDiagonalMils_Name()."); + return AppleDeviceDiagonalMils_Name(static_cast(value)); +} +bool AppleDeviceDiagonalMils_Parse( + ::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value); +enum DeviceType : int { + UNKNOWN = 0, + ANDROID = 1, + CHROME = 2, + IOS = 3, + BROWSER = 4, + OSX = 5, +}; + +extern const uint32_t DeviceType_internal_data_[]; +inline constexpr DeviceType DeviceType_MIN = + static_cast(0); +inline constexpr DeviceType DeviceType_MAX = + static_cast(5); +inline bool DeviceType_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int DeviceType_ARRAYSIZE = 5 + 1; +const ::std::string& DeviceType_Name(DeviceType value); +template +const ::std::string& DeviceType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return DeviceType_Name(static_cast(value)); +} +bool DeviceType_Parse( + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); +enum SoftwareFeature : int { + UNKNOWN_FEATURE = 0, + BETTER_TOGETHER_HOST = 1, + BETTER_TOGETHER_CLIENT = 2, + EASY_UNLOCK_HOST = 3, + EASY_UNLOCK_CLIENT = 4, + MAGIC_TETHER_HOST = 5, + MAGIC_TETHER_CLIENT = 6, + SMS_CONNECT_HOST = 7, + SMS_CONNECT_CLIENT = 8, +}; + +extern const uint32_t SoftwareFeature_internal_data_[]; +inline constexpr SoftwareFeature SoftwareFeature_MIN = + static_cast(0); +inline constexpr SoftwareFeature SoftwareFeature_MAX = + static_cast(8); +inline bool SoftwareFeature_IsValid(int value) { + return 0 <= value && value <= 8; +} +inline constexpr int SoftwareFeature_ARRAYSIZE = 8 + 1; +const ::std::string& SoftwareFeature_Name(SoftwareFeature value); +template +const ::std::string& SoftwareFeature_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to SoftwareFeature_Name()."); + return SoftwareFeature_Name(static_cast(value)); +} +bool SoftwareFeature_Parse( + ::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value); +enum InvocationReason : int { + REASON_UNKNOWN = 0, + REASON_INITIALIZATION = 1, + REASON_PERIODIC = 2, + REASON_SLOW_PERIODIC = 3, + REASON_FAST_PERIODIC = 4, + REASON_EXPIRATION = 5, + REASON_FAILURE_RECOVERY = 6, + REASON_NEW_ACCOUNT = 7, + REASON_CHANGED_ACCOUNT = 8, + REASON_FEATURE_TOGGLED = 9, + REASON_SERVER_INITIATED = 10, + REASON_ADDRESS_CHANGE = 11, + REASON_SOFTWARE_UPDATE = 12, + REASON_MANUAL = 13, + REASON_CUSTOM_KEY_INVALIDATION = 14, + REASON_PROXIMITY_PERIODIC = 15, +}; + +extern const uint32_t InvocationReason_internal_data_[]; +inline constexpr InvocationReason InvocationReason_MIN = + static_cast(0); +inline constexpr InvocationReason InvocationReason_MAX = + static_cast(15); +inline bool InvocationReason_IsValid(int value) { + return 0 <= value && value <= 15; +} +inline constexpr int InvocationReason_ARRAYSIZE = 15 + 1; +const ::std::string& InvocationReason_Name(InvocationReason value); +template +const ::std::string& InvocationReason_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to InvocationReason_Name()."); + return InvocationReason_Name(static_cast(value)); +} +bool InvocationReason_Parse( + ::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value); +enum Type : int { + ENROLLMENT = 0, + TICKLE = 1, + TX_REQUEST = 2, + TX_REPLY = 3, + TX_SYNC_REQUEST = 4, + TX_SYNC_RESPONSE = 5, + TX_PING = 6, + DEVICE_INFO_UPDATE = 7, + TX_CANCEL_REQUEST = 8, + PROXIMITYAUTH_PAIRING = 10, + GCMV1_IDENTITY_ASSERTION = 11, + DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD = 12, + DEVICE_TO_DEVICE_MESSAGE = 13, + DEVICE_PROXIMITY_CALLBACK = 14, + UNLOCK_KEY_SIGNED_CHALLENGE = 15, + LOGIN_NOTIFICATION = 101, +}; + +extern const uint32_t Type_internal_data_[]; +inline constexpr Type Type_MIN = + static_cast(0); +inline constexpr Type Type_MAX = + static_cast(101); +inline bool Type_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Type_internal_data_); +} +inline constexpr int Type_ARRAYSIZE = 101 + 1; +const ::std::string& Type_Name(Type value); +template +const ::std::string& Type_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return Type_Name(static_cast(value)); +} +bool Type_Parse( + ::absl::string_view name, Type* PROTOBUF_NONNULL value); + +// =================================================================== + + +// ------------------------------------------------------------------- + +class Tickle final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Tickle) */ { + public: + inline Tickle() : Tickle(nullptr) {} + ~Tickle() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Tickle* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Tickle)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Tickle(::google::protobuf::internal::ConstantInitialized); + + inline Tickle(const Tickle& from) : Tickle(nullptr, from) {} + inline Tickle(Tickle&& from) noexcept + : Tickle(nullptr, ::std::move(from)) {} + inline Tickle& operator=(const Tickle& from) { + CopyFrom(from); + return *this; + } + inline Tickle& operator=(Tickle&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Tickle& default_instance() { + return *reinterpret_cast( + &_Tickle_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Tickle& a, Tickle& b) { a.Swap(&b); } + inline void Swap(Tickle* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Tickle* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Tickle* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Tickle& from); + void MergeFrom(const Tickle& from) { Tickle::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Tickle* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Tickle"; } + + explicit Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from); + Tickle( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Tickle&& from) noexcept + : Tickle(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kExpiryTimeFieldNumber = 1, + }; + // optional fixed64 expiry_time = 1; + bool has_expiry_time() const; + void clear_expiry_time() ; + ::uint64_t expiry_time() const; + void set_expiry_time(::uint64_t value); + + private: + ::uint64_t _internal_expiry_time() const; + void _internal_set_expiry_time(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Tickle) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Tickle& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t expiry_time_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; +// ------------------------------------------------------------------- + +class LoginNotificationInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.LoginNotificationInfo) */ { + public: + inline LoginNotificationInfo() : LoginNotificationInfo(nullptr) {} + ~LoginNotificationInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LoginNotificationInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LoginNotificationInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LoginNotificationInfo(::google::protobuf::internal::ConstantInitialized); + + inline LoginNotificationInfo(const LoginNotificationInfo& from) : LoginNotificationInfo(nullptr, from) {} + inline LoginNotificationInfo(LoginNotificationInfo&& from) noexcept + : LoginNotificationInfo(nullptr, ::std::move(from)) {} + inline LoginNotificationInfo& operator=(const LoginNotificationInfo& from) { + CopyFrom(from); + return *this; + } + inline LoginNotificationInfo& operator=(LoginNotificationInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const LoginNotificationInfo& default_instance() { + return *reinterpret_cast( + &_LoginNotificationInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(LoginNotificationInfo& a, LoginNotificationInfo& b) { a.Swap(&b); } + inline void Swap(LoginNotificationInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LoginNotificationInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LoginNotificationInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const LoginNotificationInfo& from); + void MergeFrom(const LoginNotificationInfo& from) { LoginNotificationInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LoginNotificationInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.LoginNotificationInfo"; } + + explicit LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LoginNotificationInfo& from); + LoginNotificationInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LoginNotificationInfo&& from) noexcept + : LoginNotificationInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEmailFieldNumber = 3, + kHostFieldNumber = 4, + kSourceFieldNumber = 5, + kEventTypeFieldNumber = 6, + kCreationTimeFieldNumber = 2, + }; + // optional string email = 3; + bool has_email() const; + void clear_email() ; + const ::std::string& email() const; + template + void set_email(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_email(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_email(); + void set_allocated_email(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_email() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_email(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_email(); + + public: + // optional string host = 4; + bool has_host() const; + void clear_host() ; + const ::std::string& host() const; + template + void set_host(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_host(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_host(); + void set_allocated_host(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_host() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_host(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_host(); + + public: + // optional string source = 5; + bool has_source() const; + void clear_source() ; + const ::std::string& source() const; + template + void set_source(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_source(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_source(); + void set_allocated_source(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_source() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_source(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_source(); + + public: + // optional string event_type = 6; + bool has_event_type() const; + void clear_event_type() ; + const ::std::string& event_type() const; + template + void set_event_type(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_event_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_event_type(); + void set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_event_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_event_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_event_type(); + + public: + // optional fixed64 creation_time = 2; + bool has_creation_time() const; + void clear_creation_time() ; + ::uint64_t creation_time() const; + void set_creation_time(::uint64_t value); + + private: + ::uint64_t _internal_creation_time() const; + void _internal_set_creation_time(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.LoginNotificationInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LoginNotificationInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr email_; + ::google::protobuf::internal::ArenaStringPtr host_; + ::google::protobuf::internal::ArenaStringPtr source_; + ::google::protobuf::internal::ArenaStringPtr event_type_; + ::uint64_t creation_time_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; +// ------------------------------------------------------------------- + +class GcmMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.GcmMetadata) */ { + public: + inline GcmMetadata() : GcmMetadata(nullptr) {} + ~GcmMetadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GcmMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmMetadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GcmMetadata(::google::protobuf::internal::ConstantInitialized); + + inline GcmMetadata(const GcmMetadata& from) : GcmMetadata(nullptr, from) {} + inline GcmMetadata(GcmMetadata&& from) noexcept + : GcmMetadata(nullptr, ::std::move(from)) {} + inline GcmMetadata& operator=(const GcmMetadata& from) { + CopyFrom(from); + return *this; + } + inline GcmMetadata& operator=(GcmMetadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const GcmMetadata& default_instance() { + return *reinterpret_cast( + &_GcmMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(GcmMetadata& a, GcmMetadata& b) { a.Swap(&b); } + inline void Swap(GcmMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcmMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcmMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const GcmMetadata& from); + void MergeFrom(const GcmMetadata& from) { GcmMetadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GcmMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.GcmMetadata"; } + + explicit GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from); + GcmMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmMetadata&& from) noexcept + : GcmMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTypeFieldNumber = 1, + kVersionFieldNumber = 2, + }; + // required .securegcm.Type type = 1; + bool has_type() const; + void clear_type() ; + ::securegcm::Type type() const; + void set_type(::securegcm::Type value); + + private: + ::securegcm::Type _internal_type() const; + void _internal_set_type(::securegcm::Type value); + + public: + // optional int32 version = 2 [default = 0]; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.GcmMetadata) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GcmMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + ::int32_t version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; +// ------------------------------------------------------------------- + +class GcmDeviceInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.GcmDeviceInfo) */ { + public: + inline GcmDeviceInfo() : GcmDeviceInfo(nullptr) {} + ~GcmDeviceInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GcmDeviceInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmDeviceInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GcmDeviceInfo(::google::protobuf::internal::ConstantInitialized); + + inline GcmDeviceInfo(const GcmDeviceInfo& from) : GcmDeviceInfo(nullptr, from) {} + inline GcmDeviceInfo(GcmDeviceInfo&& from) noexcept + : GcmDeviceInfo(nullptr, ::std::move(from)) {} + inline GcmDeviceInfo& operator=(const GcmDeviceInfo& from) { + CopyFrom(from); + return *this; + } + inline GcmDeviceInfo& operator=(GcmDeviceInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const GcmDeviceInfo& default_instance() { + return *reinterpret_cast( + &_GcmDeviceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(GcmDeviceInfo& a, GcmDeviceInfo& b) { a.Swap(&b); } + inline void Swap(GcmDeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcmDeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcmDeviceInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const GcmDeviceInfo& from); + void MergeFrom(const GcmDeviceInfo& from) { GcmDeviceInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GcmDeviceInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.GcmDeviceInfo"; } + + explicit GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmDeviceInfo& from); + GcmDeviceInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmDeviceInfo&& from) noexcept + : GcmDeviceInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEnabledSoftwareFeaturesFieldNumber = 412, + kUserPublicKeyFieldNumber = 4, + kDeviceModelFieldNumber = 7, + kLocaleFieldNumber = 8, + kKeyHandleFieldNumber = 9, + kDeviceOsVersionFieldNumber = 13, + kDeviceOsReleaseFieldNumber = 15, + kDeviceOsCodenameFieldNumber = 16, + kDeviceSoftwareVersionFieldNumber = 17, + kDeviceSoftwarePackageFieldNumber = 19, + kLongDeviceIdFieldNumber = 29, + kDeviceManufacturerFieldNumber = 31, + kDeviceMasterKeyHashFieldNumber = 103, + kApnRegistrationIdFieldNumber = 202, + kBluetoothMacAddressFieldNumber = 302, + kAndroidDeviceIdFieldNumber = 1, + kCounterFieldNumber = 12, + kDeviceOsVersionCodeFieldNumber = 14, + kDeviceSoftwareVersionCodeFieldNumber = 18, + kDeviceDisplayDiagonalMilsFieldNumber = 22, + kDeviceAuthzenVersionFieldNumber = 24, + kBluetoothRadioEnabledFieldNumber = 404, + kMobileDataSupportedFieldNumber = 405, + kArcPlusPlusFieldNumber = 409, + kNotificationEnabledFieldNumber = 203, + kSupportedSoftwareFeaturesFieldNumber = 411, + kGcmRegistrationIdFieldNumber = 102, + kEnrollmentSessionIdFieldNumber = 1000, + kOauthTokenFieldNumber = 1001, + kUsingSecureScreenlockFieldNumber = 400, + kAutoUnlockScreenlockSupportedFieldNumber = 401, + kAutoUnlockScreenlockEnabledFieldNumber = 402, + kBluetoothRadioSupportedFieldNumber = 403, + kTetheringSupportedFieldNumber = 406, + kBleRadioSupportedFieldNumber = 407, + kPixelExperienceFieldNumber = 408, + kIsScreenlockStateFlakyFieldNumber = 410, + kDeviceTypeFieldNumber = 32, + }; + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + int enabled_software_features_size() const; + private: + int _internal_enabled_software_features_size() const; + + public: + void clear_enabled_software_features() ; + public: + ::securegcm::SoftwareFeature enabled_software_features(int index) const; + void set_enabled_software_features(int index, ::securegcm::SoftwareFeature value); + void add_enabled_software_features(::securegcm::SoftwareFeature value); + const ::google::protobuf::RepeatedField& enabled_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_enabled_software_features(); + + private: + const ::google::protobuf::RepeatedField& _internal_enabled_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_enabled_software_features(); + + public: + // required bytes user_public_key = 4; + bool has_user_public_key() const; + void clear_user_public_key() ; + const ::std::string& user_public_key() const; + template + void set_user_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_user_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_public_key(); + void set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_user_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_user_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_user_public_key(); + + public: + // optional string device_model = 7; + bool has_device_model() const; + void clear_device_model() ; + const ::std::string& device_model() const; + template + void set_device_model(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_model(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model(); + void set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_model() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model(); + + public: + // optional string locale = 8; + bool has_locale() const; + void clear_locale() ; + const ::std::string& locale() const; + template + void set_locale(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_locale(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_locale(); + void set_allocated_locale(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_locale() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_locale(); + + public: + // optional bytes key_handle = 9; + bool has_key_handle() const; + void clear_key_handle() ; + const ::std::string& key_handle() const; + template + void set_key_handle(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_key_handle(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_handle(); + void set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_key_handle() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_key_handle(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_key_handle(); + + public: + // optional string device_os_version = 13; + bool has_device_os_version() const; + void clear_device_os_version() ; + const ::std::string& device_os_version() const; + template + void set_device_os_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_version(); + void set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_os_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_version(); + + public: + // optional string device_os_release = 15; + bool has_device_os_release() const; + void clear_device_os_release() ; + const ::std::string& device_os_release() const; + template + void set_device_os_release(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_release(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_release(); + void set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_os_release() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_release(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_release(); + + public: + // optional string device_os_codename = 16; + bool has_device_os_codename() const; + void clear_device_os_codename() ; + const ::std::string& device_os_codename() const; + template + void set_device_os_codename(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_codename(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_codename(); + void set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_os_codename() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_codename(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_codename(); + + public: + // optional string device_software_version = 17; + bool has_device_software_version() const; + void clear_device_software_version() ; + const ::std::string& device_software_version() const; + template + void set_device_software_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_software_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_version(); + void set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_software_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_version(); + + public: + // optional string device_software_package = 19; + bool has_device_software_package() const; + void clear_device_software_package() ; + const ::std::string& device_software_package() const; + template + void set_device_software_package(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_software_package(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_package(); + void set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_software_package() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_package(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_package(); + + public: + // optional bytes long_device_id = 29; + bool has_long_device_id() const; + void clear_long_device_id() ; + const ::std::string& long_device_id() const; + template + void set_long_device_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_long_device_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_long_device_id(); + void set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_long_device_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_long_device_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_long_device_id(); + + public: + // optional string device_manufacturer = 31; + bool has_device_manufacturer() const; + void clear_device_manufacturer() ; + const ::std::string& device_manufacturer() const; + template + void set_device_manufacturer(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_manufacturer(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_manufacturer(); + void set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_manufacturer() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_manufacturer(); + + public: + // optional bytes device_master_key_hash = 103; + bool has_device_master_key_hash() const; + void clear_device_master_key_hash() ; + const ::std::string& device_master_key_hash() const; + template + void set_device_master_key_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_master_key_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_master_key_hash(); + void set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_device_master_key_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_master_key_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_master_key_hash(); + + public: + // optional bytes apn_registration_id = 202; + bool has_apn_registration_id() const; + void clear_apn_registration_id() ; + const ::std::string& apn_registration_id() const; + template + void set_apn_registration_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_apn_registration_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_apn_registration_id(); + void set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_apn_registration_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_apn_registration_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_apn_registration_id(); + + public: + // optional string bluetooth_mac_address = 302; + bool has_bluetooth_mac_address() const; + void clear_bluetooth_mac_address() ; + const ::std::string& bluetooth_mac_address() const; + template + void set_bluetooth_mac_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); + void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_bluetooth_mac_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); + + public: + // optional fixed64 android_device_id = 1; + bool has_android_device_id() const; + void clear_android_device_id() ; + ::uint64_t android_device_id() const; + void set_android_device_id(::uint64_t value); + + private: + ::uint64_t _internal_android_device_id() const; + void _internal_set_android_device_id(::uint64_t value); + + public: + // optional int64 counter = 12 [default = 0]; + bool has_counter() const; + void clear_counter() ; + ::int64_t counter() const; + void set_counter(::int64_t value); + + private: + ::int64_t _internal_counter() const; + void _internal_set_counter(::int64_t value); + + public: + // optional int64 device_os_version_code = 14; + bool has_device_os_version_code() const; + void clear_device_os_version_code() ; + ::int64_t device_os_version_code() const; + void set_device_os_version_code(::int64_t value); + + private: + ::int64_t _internal_device_os_version_code() const; + void _internal_set_device_os_version_code(::int64_t value); + + public: + // optional int64 device_software_version_code = 18; + bool has_device_software_version_code() const; + void clear_device_software_version_code() ; + ::int64_t device_software_version_code() const; + void set_device_software_version_code(::int64_t value); + + private: + ::int64_t _internal_device_software_version_code() const; + void _internal_set_device_software_version_code(::int64_t value); + + public: + // optional int32 device_display_diagonal_mils = 22; + bool has_device_display_diagonal_mils() const; + void clear_device_display_diagonal_mils() ; + ::int32_t device_display_diagonal_mils() const; + void set_device_display_diagonal_mils(::int32_t value); + + private: + ::int32_t _internal_device_display_diagonal_mils() const; + void _internal_set_device_display_diagonal_mils(::int32_t value); + + public: + // optional int32 device_authzen_version = 24; + bool has_device_authzen_version() const; + void clear_device_authzen_version() ; + ::int32_t device_authzen_version() const; + void set_device_authzen_version(::int32_t value); + + private: + ::int32_t _internal_device_authzen_version() const; + void _internal_set_device_authzen_version(::int32_t value); + + public: + // optional bool bluetooth_radio_enabled = 404 [default = false]; + bool has_bluetooth_radio_enabled() const; + void clear_bluetooth_radio_enabled() ; + bool bluetooth_radio_enabled() const; + void set_bluetooth_radio_enabled(bool value); + + private: + bool _internal_bluetooth_radio_enabled() const; + void _internal_set_bluetooth_radio_enabled(bool value); + + public: + // optional bool mobile_data_supported = 405 [default = false]; + bool has_mobile_data_supported() const; + void clear_mobile_data_supported() ; + bool mobile_data_supported() const; + void set_mobile_data_supported(bool value); + + private: + bool _internal_mobile_data_supported() const; + void _internal_set_mobile_data_supported(bool value); + + public: + // optional bool arc_plus_plus = 409 [default = false]; + bool has_arc_plus_plus() const; + void clear_arc_plus_plus() ; + bool arc_plus_plus() const; + void set_arc_plus_plus(bool value); + + private: + bool _internal_arc_plus_plus() const; + void _internal_set_arc_plus_plus(bool value); + + public: + // optional bool notification_enabled = 203 [default = true]; + bool has_notification_enabled() const; + void clear_notification_enabled() ; + bool notification_enabled() const; + void set_notification_enabled(bool value); + + private: + bool _internal_notification_enabled() const; + void _internal_set_notification_enabled(bool value); + + public: + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + int supported_software_features_size() const; + private: + int _internal_supported_software_features_size() const; + + public: + void clear_supported_software_features() ; + public: + ::securegcm::SoftwareFeature supported_software_features(int index) const; + void set_supported_software_features(int index, ::securegcm::SoftwareFeature value); + void add_supported_software_features(::securegcm::SoftwareFeature value); + const ::google::protobuf::RepeatedField& supported_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_supported_software_features(); + + private: + const ::google::protobuf::RepeatedField& _internal_supported_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_supported_software_features(); + + public: + // optional bytes gcm_registration_id = 102; + bool has_gcm_registration_id() const; + void clear_gcm_registration_id() ; + const ::std::string& gcm_registration_id() const; + template + void set_gcm_registration_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_gcm_registration_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_gcm_registration_id(); + void set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_gcm_registration_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_gcm_registration_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_gcm_registration_id(); + + public: + // optional bytes enrollment_session_id = 1000; + bool has_enrollment_session_id() const; + void clear_enrollment_session_id() ; + const ::std::string& enrollment_session_id() const; + template + void set_enrollment_session_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_enrollment_session_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_enrollment_session_id(); + void set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_enrollment_session_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_enrollment_session_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_enrollment_session_id(); + + public: + // optional string oauth_token = 1001; + bool has_oauth_token() const; + void clear_oauth_token() ; + const ::std::string& oauth_token() const; + template + void set_oauth_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_oauth_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_oauth_token(); + void set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_oauth_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_oauth_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_oauth_token(); + + public: + // optional bool using_secure_screenlock = 400 [default = false]; + bool has_using_secure_screenlock() const; + void clear_using_secure_screenlock() ; + bool using_secure_screenlock() const; + void set_using_secure_screenlock(bool value); + + private: + bool _internal_using_secure_screenlock() const; + void _internal_set_using_secure_screenlock(bool value); + + public: + // optional bool auto_unlock_screenlock_supported = 401 [default = false]; + bool has_auto_unlock_screenlock_supported() const; + void clear_auto_unlock_screenlock_supported() ; + bool auto_unlock_screenlock_supported() const; + void set_auto_unlock_screenlock_supported(bool value); + + private: + bool _internal_auto_unlock_screenlock_supported() const; + void _internal_set_auto_unlock_screenlock_supported(bool value); + + public: + // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; + bool has_auto_unlock_screenlock_enabled() const; + void clear_auto_unlock_screenlock_enabled() ; + bool auto_unlock_screenlock_enabled() const; + void set_auto_unlock_screenlock_enabled(bool value); + + private: + bool _internal_auto_unlock_screenlock_enabled() const; + void _internal_set_auto_unlock_screenlock_enabled(bool value); + + public: + // optional bool bluetooth_radio_supported = 403 [default = false]; + bool has_bluetooth_radio_supported() const; + void clear_bluetooth_radio_supported() ; + bool bluetooth_radio_supported() const; + void set_bluetooth_radio_supported(bool value); + + private: + bool _internal_bluetooth_radio_supported() const; + void _internal_set_bluetooth_radio_supported(bool value); + + public: + // optional bool tethering_supported = 406 [default = false]; + bool has_tethering_supported() const; + void clear_tethering_supported() ; + bool tethering_supported() const; + void set_tethering_supported(bool value); + + private: + bool _internal_tethering_supported() const; + void _internal_set_tethering_supported(bool value); + + public: + // optional bool ble_radio_supported = 407 [default = false]; + bool has_ble_radio_supported() const; + void clear_ble_radio_supported() ; + bool ble_radio_supported() const; + void set_ble_radio_supported(bool value); + + private: + bool _internal_ble_radio_supported() const; + void _internal_set_ble_radio_supported(bool value); + + public: + // optional bool pixel_experience = 408 [default = false]; + bool has_pixel_experience() const; + void clear_pixel_experience() ; + bool pixel_experience() const; + void set_pixel_experience(bool value); + + private: + bool _internal_pixel_experience() const; + void _internal_set_pixel_experience(bool value); + + public: + // optional bool is_screenlock_state_flaky = 410 [default = false]; + bool has_is_screenlock_state_flaky() const; + void clear_is_screenlock_state_flaky() ; + bool is_screenlock_state_flaky() const; + void set_is_screenlock_state_flaky(bool value); + + private: + bool _internal_is_screenlock_state_flaky() const; + void _internal_set_is_screenlock_state_flaky(bool value); + + public: + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + bool has_device_type() const; + void clear_device_type() ; + ::securegcm::DeviceType device_type() const; + void set_device_type(::securegcm::DeviceType value); + + private: + ::securegcm::DeviceType _internal_device_type() const; + void _internal_set_device_type(::securegcm::DeviceType value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.GcmDeviceInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<5, 38, + 3, 0, + 27> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GcmDeviceInfo& from_msg); + ::google::protobuf::internal::HasBits<2> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField enabled_software_features_; + ::google::protobuf::internal::ArenaStringPtr user_public_key_; + ::google::protobuf::internal::ArenaStringPtr device_model_; + ::google::protobuf::internal::ArenaStringPtr locale_; + ::google::protobuf::internal::ArenaStringPtr key_handle_; + ::google::protobuf::internal::ArenaStringPtr device_os_version_; + ::google::protobuf::internal::ArenaStringPtr device_os_release_; + ::google::protobuf::internal::ArenaStringPtr device_os_codename_; + ::google::protobuf::internal::ArenaStringPtr device_software_version_; + ::google::protobuf::internal::ArenaStringPtr device_software_package_; + ::google::protobuf::internal::ArenaStringPtr long_device_id_; + ::google::protobuf::internal::ArenaStringPtr device_manufacturer_; + ::google::protobuf::internal::ArenaStringPtr device_master_key_hash_; + ::google::protobuf::internal::ArenaStringPtr apn_registration_id_; + ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; + ::uint64_t android_device_id_; + ::int64_t counter_; + ::int64_t device_os_version_code_; + ::int64_t device_software_version_code_; + ::int32_t device_display_diagonal_mils_; + ::int32_t device_authzen_version_; + bool bluetooth_radio_enabled_; + bool mobile_data_supported_; + bool arc_plus_plus_; + bool notification_enabled_; + ::google::protobuf::RepeatedField supported_software_features_; + ::google::protobuf::internal::ArenaStringPtr gcm_registration_id_; + ::google::protobuf::internal::ArenaStringPtr enrollment_session_id_; + ::google::protobuf::internal::ArenaStringPtr oauth_token_; + bool using_secure_screenlock_; + bool auto_unlock_screenlock_supported_; + bool auto_unlock_screenlock_enabled_; + bool bluetooth_radio_supported_; + bool tethering_supported_; + bool ble_radio_supported_; + bool pixel_experience_; + bool is_screenlock_state_flaky_; + int device_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// GcmDeviceInfo + +// optional fixed64 android_device_id = 1; +inline bool GcmDeviceInfo::has_android_device_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00008000U); + return value; +} +inline void GcmDeviceInfo::clear_android_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.android_device_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); +} +inline ::uint64_t GcmDeviceInfo::android_device_id() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.android_device_id) + return _internal_android_device_id(); +} +inline void GcmDeviceInfo::set_android_device_id(::uint64_t value) { + _internal_set_android_device_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.android_device_id) +} +inline ::uint64_t GcmDeviceInfo::_internal_android_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.android_device_id_; +} +inline void GcmDeviceInfo::_internal_set_android_device_id(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.android_device_id_ = value; +} + +// optional bytes gcm_registration_id = 102; +inline bool GcmDeviceInfo::has_gcm_registration_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x04000000U); + return value; +} +inline void GcmDeviceInfo::clear_gcm_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gcm_registration_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x04000000U); +} +inline const ::std::string& GcmDeviceInfo::gcm_registration_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.gcm_registration_id) + return _internal_gcm_registration_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_gcm_registration_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x04000000U); + _impl_.gcm_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.gcm_registration_id) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_gcm_registration_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); + ::std::string* _s = _internal_mutable_gcm_registration_id(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.gcm_registration_id) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_gcm_registration_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.gcm_registration_id_.Get(); +} +inline void GcmDeviceInfo::_internal_set_gcm_registration_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gcm_registration_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_gcm_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.gcm_registration_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_gcm_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.gcm_registration_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x04000000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); + auto* released = _impl_.gcm_registration_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.gcm_registration_id_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); + } + _impl_.gcm_registration_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.gcm_registration_id_.IsDefault()) { + _impl_.gcm_registration_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.gcm_registration_id) +} + +// optional bytes apn_registration_id = 202; +inline bool GcmDeviceInfo::has_apn_registration_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); + return value; +} +inline void GcmDeviceInfo::clear_apn_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apn_registration_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); +} +inline const ::std::string& GcmDeviceInfo::apn_registration_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.apn_registration_id) + return _internal_apn_registration_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_apn_registration_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + _impl_.apn_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.apn_registration_id) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_apn_registration_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + ::std::string* _s = _internal_mutable_apn_registration_id(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.apn_registration_id) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_apn_registration_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apn_registration_id_.Get(); +} +inline void GcmDeviceInfo::_internal_set_apn_registration_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apn_registration_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_apn_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.apn_registration_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_apn_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.apn_registration_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00002000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + auto* released = _impl_.apn_registration_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.apn_registration_id_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + } + _impl_.apn_registration_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.apn_registration_id_.IsDefault()) { + _impl_.apn_registration_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.apn_registration_id) +} + +// optional bool notification_enabled = 203 [default = true]; +inline bool GcmDeviceInfo::has_notification_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x01000000U); + return value; +} +inline void GcmDeviceInfo::clear_notification_enabled() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notification_enabled_ = true; + ClearHasBit(_impl_._has_bits_[0], + 0x01000000U); +} +inline bool GcmDeviceInfo::notification_enabled() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.notification_enabled) + return _internal_notification_enabled(); +} +inline void GcmDeviceInfo::set_notification_enabled(bool value) { + _internal_set_notification_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x01000000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.notification_enabled) +} +inline bool GcmDeviceInfo::_internal_notification_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.notification_enabled_; +} +inline void GcmDeviceInfo::_internal_set_notification_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notification_enabled_ = value; +} + +// optional string bluetooth_mac_address = 302; +inline bool GcmDeviceInfo::has_bluetooth_mac_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); + return value; +} +inline void GcmDeviceInfo::clear_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); +} +inline const ::std::string& GcmDeviceInfo::bluetooth_mac_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_mac_address) + return _internal_bluetooth_mac_address(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); + _impl_.bluetooth_mac_address_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_mac_address) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_bluetooth_mac_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); + ::std::string* _s = _internal_mutable_bluetooth_mac_address(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.bluetooth_mac_address) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_bluetooth_mac_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_mac_address_.Get(); +} +inline void GcmDeviceInfo::_internal_set_bluetooth_mac_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bluetooth_mac_address_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.bluetooth_mac_address) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00004000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + auto* released = _impl_.bluetooth_mac_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + } + _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.bluetooth_mac_address) +} + +// optional bytes device_master_key_hash = 103; +inline bool GcmDeviceInfo::has_device_master_key_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); + return value; +} +inline void GcmDeviceInfo::clear_device_master_key_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_master_key_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); +} +inline const ::std::string& GcmDeviceInfo::device_master_key_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_master_key_hash) + return _internal_device_master_key_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_master_key_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + _impl_.device_master_key_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_master_key_hash) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_master_key_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + ::std::string* _s = _internal_mutable_device_master_key_hash(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_master_key_hash) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_master_key_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_master_key_hash_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_master_key_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_master_key_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_master_key_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_master_key_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_master_key_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_master_key_hash) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00001000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + auto* released = _impl_.device_master_key_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_master_key_hash_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + } + _impl_.device_master_key_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_master_key_hash_.IsDefault()) { + _impl_.device_master_key_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_master_key_hash) +} + +// required bytes user_public_key = 4; +inline bool GcmDeviceInfo::has_user_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void GcmDeviceInfo::clear_user_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& GcmDeviceInfo::user_public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.user_public_key) + return _internal_user_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_user_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.user_public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.user_public_key) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_user_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_user_public_key(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.user_public_key) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_user_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.user_public_key_.Get(); +} +inline void GcmDeviceInfo::_internal_set_user_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_user_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.user_public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_user_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.user_public_key) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.user_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.user_public_key_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.user_public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_public_key_.IsDefault()) { + _impl_.user_public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.user_public_key) +} + +// optional string device_model = 7; +inline bool GcmDeviceInfo::has_device_model() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void GcmDeviceInfo::clear_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& GcmDeviceInfo::device_model() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_model) + return _internal_device_model(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_model(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.device_model_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_model) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_model() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_device_model(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_model) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_model() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_model_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_model(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_model_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_model) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.device_model_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_model_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.device_model_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_.IsDefault()) { + _impl_.device_model_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_model) +} + +// optional string locale = 8; +inline bool GcmDeviceInfo::has_locale() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void GcmDeviceInfo::clear_locale() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locale_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& GcmDeviceInfo::locale() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.locale) + return _internal_locale(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_locale(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.locale_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.locale) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_locale() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_locale(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.locale) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_locale() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locale_.Get(); +} +inline void GcmDeviceInfo::_internal_set_locale(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locale_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_locale() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.locale_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_locale() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.locale) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.locale_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.locale_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_locale(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.locale_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.locale_.IsDefault()) { + _impl_.locale_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.locale) +} + +// optional bytes key_handle = 9; +inline bool GcmDeviceInfo::has_key_handle() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + return value; +} +inline void GcmDeviceInfo::clear_key_handle() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_handle_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); +} +inline const ::std::string& GcmDeviceInfo::key_handle() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.key_handle) + return _internal_key_handle(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_key_handle(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.key_handle_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.key_handle) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_key_handle() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_key_handle(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.key_handle) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_key_handle() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.key_handle_.Get(); +} +inline void GcmDeviceInfo::_internal_set_key_handle(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_handle_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_key_handle() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.key_handle_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_key_handle() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.key_handle) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.key_handle_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.key_handle_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + } + _impl_.key_handle_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_handle_.IsDefault()) { + _impl_.key_handle_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.key_handle) +} + +// optional int64 counter = 12 [default = 0]; +inline bool GcmDeviceInfo::has_counter() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00010000U); + return value; +} +inline void GcmDeviceInfo::clear_counter() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.counter_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); +} +inline ::int64_t GcmDeviceInfo::counter() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.counter) + return _internal_counter(); +} +inline void GcmDeviceInfo::set_counter(::int64_t value) { + _internal_set_counter(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.counter) +} +inline ::int64_t GcmDeviceInfo::_internal_counter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.counter_; +} +inline void GcmDeviceInfo::_internal_set_counter(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.counter_ = value; +} + +// optional string device_os_version = 13; +inline bool GcmDeviceInfo::has_device_os_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + return value; +} +inline void GcmDeviceInfo::clear_device_os_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); +} +inline const ::std::string& GcmDeviceInfo::device_os_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version) + return _internal_device_os_version(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.device_os_version_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_device_os_version(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_version) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_os_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_version_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_os_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_version_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_version) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.device_os_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_version_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + } + _impl_.device_os_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_version_.IsDefault()) { + _impl_.device_os_version_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_version) +} + +// optional int64 device_os_version_code = 14; +inline bool GcmDeviceInfo::has_device_os_version_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00020000U); + return value; +} +inline void GcmDeviceInfo::clear_device_os_version_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_code_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00020000U); +} +inline ::int64_t GcmDeviceInfo::device_os_version_code() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version_code) + return _internal_device_os_version_code(); +} +inline void GcmDeviceInfo::set_device_os_version_code(::int64_t value) { + _internal_set_device_os_version_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00020000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version_code) +} +inline ::int64_t GcmDeviceInfo::_internal_device_os_version_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_version_code_; +} +inline void GcmDeviceInfo::_internal_set_device_os_version_code(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_code_ = value; +} + +// optional string device_os_release = 15; +inline bool GcmDeviceInfo::has_device_os_release() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + return value; +} +inline void GcmDeviceInfo::clear_device_os_release() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_release_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); +} +inline const ::std::string& GcmDeviceInfo::device_os_release() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_release) + return _internal_device_os_release(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_release(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_.device_os_release_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_release) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_release() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + ::std::string* _s = _internal_mutable_device_os_release(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_release) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_os_release() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_release_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_os_release(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_release_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_release() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_release_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_release() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_release) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + auto* released = _impl_.device_os_release_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_release_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + } + _impl_.device_os_release_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_release_.IsDefault()) { + _impl_.device_os_release_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_release) +} + +// optional string device_os_codename = 16; +inline bool GcmDeviceInfo::has_device_os_codename() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + return value; +} +inline void GcmDeviceInfo::clear_device_os_codename() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_codename_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); +} +inline const ::std::string& GcmDeviceInfo::device_os_codename() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_codename) + return _internal_device_os_codename(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_codename(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_.device_os_codename_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_codename) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_codename() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + ::std::string* _s = _internal_mutable_device_os_codename(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_codename) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_os_codename() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_codename_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_os_codename(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_codename_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_codename() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_codename_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_codename() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_codename) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + auto* released = _impl_.device_os_codename_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_codename_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + } + _impl_.device_os_codename_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_codename_.IsDefault()) { + _impl_.device_os_codename_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_codename) +} + +// optional string device_software_version = 17; +inline bool GcmDeviceInfo::has_device_software_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + return value; +} +inline void GcmDeviceInfo::clear_device_software_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); +} +inline const ::std::string& GcmDeviceInfo::device_software_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version) + return _internal_device_software_version(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_.device_software_version_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + ::std::string* _s = _internal_mutable_device_software_version(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_version) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_software_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_version_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_software_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_software_version_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_version) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + auto* released = _impl_.device_software_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_software_version_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + } + _impl_.device_software_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_version_.IsDefault()) { + _impl_.device_software_version_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_version) +} + +// optional int64 device_software_version_code = 18; +inline bool GcmDeviceInfo::has_device_software_version_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00040000U); + return value; +} +inline void GcmDeviceInfo::clear_device_software_version_code() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_code_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00040000U); +} +inline ::int64_t GcmDeviceInfo::device_software_version_code() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version_code) + return _internal_device_software_version_code(); +} +inline void GcmDeviceInfo::set_device_software_version_code(::int64_t value) { + _internal_set_device_software_version_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00040000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version_code) +} +inline ::int64_t GcmDeviceInfo::_internal_device_software_version_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_version_code_; +} +inline void GcmDeviceInfo::_internal_set_device_software_version_code(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_code_ = value; +} + +// optional string device_software_package = 19; +inline bool GcmDeviceInfo::has_device_software_package() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); + return value; +} +inline void GcmDeviceInfo::clear_device_software_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_package_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); +} +inline const ::std::string& GcmDeviceInfo::device_software_package() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_package) + return _internal_device_software_package(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_package(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_.device_software_package_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_package) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_package() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + ::std::string* _s = _internal_mutable_device_software_package(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_package) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_software_package() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_package_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_software_package(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_package_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_software_package_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_package) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + auto* released = _impl_.device_software_package_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_software_package_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + } + _impl_.device_software_package_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_package_.IsDefault()) { + _impl_.device_software_package_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_package) +} + +// optional int32 device_display_diagonal_mils = 22; +inline bool GcmDeviceInfo::has_device_display_diagonal_mils() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00080000U); + return value; +} +inline void GcmDeviceInfo::clear_device_display_diagonal_mils() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_display_diagonal_mils_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00080000U); +} +inline ::int32_t GcmDeviceInfo::device_display_diagonal_mils() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_display_diagonal_mils) + return _internal_device_display_diagonal_mils(); +} +inline void GcmDeviceInfo::set_device_display_diagonal_mils(::int32_t value) { + _internal_set_device_display_diagonal_mils(value); + SetHasBit(_impl_._has_bits_[0], 0x00080000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_display_diagonal_mils) +} +inline ::int32_t GcmDeviceInfo::_internal_device_display_diagonal_mils() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_display_diagonal_mils_; +} +inline void GcmDeviceInfo::_internal_set_device_display_diagonal_mils(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_display_diagonal_mils_ = value; +} + +// optional int32 device_authzen_version = 24; +inline bool GcmDeviceInfo::has_device_authzen_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00100000U); + return value; +} +inline void GcmDeviceInfo::clear_device_authzen_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_authzen_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00100000U); +} +inline ::int32_t GcmDeviceInfo::device_authzen_version() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_authzen_version) + return _internal_device_authzen_version(); +} +inline void GcmDeviceInfo::set_device_authzen_version(::int32_t value) { + _internal_set_device_authzen_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00100000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_authzen_version) +} +inline ::int32_t GcmDeviceInfo::_internal_device_authzen_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_authzen_version_; +} +inline void GcmDeviceInfo::_internal_set_device_authzen_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_authzen_version_ = value; +} + +// optional bytes long_device_id = 29; +inline bool GcmDeviceInfo::has_long_device_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); + return value; +} +inline void GcmDeviceInfo::clear_long_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.long_device_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); +} +inline const ::std::string& GcmDeviceInfo::long_device_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.long_device_id) + return _internal_long_device_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_long_device_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_.long_device_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.long_device_id) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_long_device_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + ::std::string* _s = _internal_mutable_long_device_id(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.long_device_id) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_long_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.long_device_id_.Get(); +} +inline void GcmDeviceInfo::_internal_set_long_device_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.long_device_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_long_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.long_device_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_long_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.long_device_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + auto* released = _impl_.long_device_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.long_device_id_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + } + _impl_.long_device_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.long_device_id_.IsDefault()) { + _impl_.long_device_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.long_device_id) +} + +// optional string device_manufacturer = 31; +inline bool GcmDeviceInfo::has_device_manufacturer() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); + return value; +} +inline void GcmDeviceInfo::clear_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); +} +inline const ::std::string& GcmDeviceInfo::device_manufacturer() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_manufacturer) + return _internal_device_manufacturer(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_manufacturer(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_.device_manufacturer_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_manufacturer) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_manufacturer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + ::std::string* _s = _internal_mutable_device_manufacturer(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_manufacturer) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_device_manufacturer() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_manufacturer_.Get(); +} +inline void GcmDeviceInfo::_internal_set_device_manufacturer(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_manufacturer_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_manufacturer) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000800U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + auto* released = _impl_.device_manufacturer_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_manufacturer_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + } + _impl_.device_manufacturer_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_manufacturer_.IsDefault()) { + _impl_.device_manufacturer_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_manufacturer) +} + +// optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; +inline bool GcmDeviceInfo::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000020U); + return value; +} +inline void GcmDeviceInfo::clear_device_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 1; + ClearHasBit(_impl_._has_bits_[1], + 0x00000020U); +} +inline ::securegcm::DeviceType GcmDeviceInfo::device_type() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_type) + return _internal_device_type(); +} +inline void GcmDeviceInfo::set_device_type(::securegcm::DeviceType value) { + _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[1], 0x00000020U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_type) +} +inline ::securegcm::DeviceType GcmDeviceInfo::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::DeviceType>(_impl_.device_type_); +} +inline void GcmDeviceInfo::_internal_set_device_type(::securegcm::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} + +// optional bool using_secure_screenlock = 400 [default = false]; +inline bool GcmDeviceInfo::has_using_secure_screenlock() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x20000000U); + return value; +} +inline void GcmDeviceInfo::clear_using_secure_screenlock() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.using_secure_screenlock_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x20000000U); +} +inline bool GcmDeviceInfo::using_secure_screenlock() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.using_secure_screenlock) + return _internal_using_secure_screenlock(); +} +inline void GcmDeviceInfo::set_using_secure_screenlock(bool value) { + _internal_set_using_secure_screenlock(value); + SetHasBit(_impl_._has_bits_[0], 0x20000000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.using_secure_screenlock) +} +inline bool GcmDeviceInfo::_internal_using_secure_screenlock() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.using_secure_screenlock_; +} +inline void GcmDeviceInfo::_internal_set_using_secure_screenlock(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.using_secure_screenlock_ = value; +} + +// optional bool auto_unlock_screenlock_supported = 401 [default = false]; +inline bool GcmDeviceInfo::has_auto_unlock_screenlock_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x40000000U); + return value; +} +inline void GcmDeviceInfo::clear_auto_unlock_screenlock_supported() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_supported_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x40000000U); +} +inline bool GcmDeviceInfo::auto_unlock_screenlock_supported() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) + return _internal_auto_unlock_screenlock_supported(); +} +inline void GcmDeviceInfo::set_auto_unlock_screenlock_supported(bool value) { + _internal_set_auto_unlock_screenlock_supported(value); + SetHasBit(_impl_._has_bits_[0], 0x40000000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) +} +inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.auto_unlock_screenlock_supported_; +} +inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_supported_ = value; +} + +// optional bool auto_unlock_screenlock_enabled = 402 [default = false]; +inline bool GcmDeviceInfo::has_auto_unlock_screenlock_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x80000000U); + return value; +} +inline void GcmDeviceInfo::clear_auto_unlock_screenlock_enabled() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x80000000U); +} +inline bool GcmDeviceInfo::auto_unlock_screenlock_enabled() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) + return _internal_auto_unlock_screenlock_enabled(); +} +inline void GcmDeviceInfo::set_auto_unlock_screenlock_enabled(bool value) { + _internal_set_auto_unlock_screenlock_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x80000000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) +} +inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.auto_unlock_screenlock_enabled_; +} +inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_enabled_ = value; +} + +// optional bool bluetooth_radio_supported = 403 [default = false]; +inline bool GcmDeviceInfo::has_bluetooth_radio_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000001U); + return value; +} +inline void GcmDeviceInfo::clear_bluetooth_radio_supported() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000001U); +} +inline bool GcmDeviceInfo::bluetooth_radio_supported() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_supported) + return _internal_bluetooth_radio_supported(); +} +inline void GcmDeviceInfo::set_bluetooth_radio_supported(bool value) { + _internal_set_bluetooth_radio_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000001U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_supported) +} +inline bool GcmDeviceInfo::_internal_bluetooth_radio_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_radio_supported_; +} +inline void GcmDeviceInfo::_internal_set_bluetooth_radio_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_supported_ = value; +} + +// optional bool bluetooth_radio_enabled = 404 [default = false]; +inline bool GcmDeviceInfo::has_bluetooth_radio_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00200000U); + return value; +} +inline void GcmDeviceInfo::clear_bluetooth_radio_enabled() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00200000U); +} +inline bool GcmDeviceInfo::bluetooth_radio_enabled() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) + return _internal_bluetooth_radio_enabled(); +} +inline void GcmDeviceInfo::set_bluetooth_radio_enabled(bool value) { + _internal_set_bluetooth_radio_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00200000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) +} +inline bool GcmDeviceInfo::_internal_bluetooth_radio_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_radio_enabled_; +} +inline void GcmDeviceInfo::_internal_set_bluetooth_radio_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_enabled_ = value; +} + +// optional bool mobile_data_supported = 405 [default = false]; +inline bool GcmDeviceInfo::has_mobile_data_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00400000U); + return value; +} +inline void GcmDeviceInfo::clear_mobile_data_supported() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_data_supported_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00400000U); +} +inline bool GcmDeviceInfo::mobile_data_supported() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.mobile_data_supported) + return _internal_mobile_data_supported(); +} +inline void GcmDeviceInfo::set_mobile_data_supported(bool value) { + _internal_set_mobile_data_supported(value); + SetHasBit(_impl_._has_bits_[0], 0x00400000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.mobile_data_supported) +} +inline bool GcmDeviceInfo::_internal_mobile_data_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mobile_data_supported_; +} +inline void GcmDeviceInfo::_internal_set_mobile_data_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_data_supported_ = value; +} + +// optional bool tethering_supported = 406 [default = false]; +inline bool GcmDeviceInfo::has_tethering_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000002U); + return value; +} +inline void GcmDeviceInfo::clear_tethering_supported() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tethering_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000002U); +} +inline bool GcmDeviceInfo::tethering_supported() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.tethering_supported) + return _internal_tethering_supported(); +} +inline void GcmDeviceInfo::set_tethering_supported(bool value) { + _internal_set_tethering_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.tethering_supported) +} +inline bool GcmDeviceInfo::_internal_tethering_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.tethering_supported_; +} +inline void GcmDeviceInfo::_internal_set_tethering_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tethering_supported_ = value; +} + +// optional bool ble_radio_supported = 407 [default = false]; +inline bool GcmDeviceInfo::has_ble_radio_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000004U); + return value; +} +inline void GcmDeviceInfo::clear_ble_radio_supported() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ble_radio_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000004U); +} +inline bool GcmDeviceInfo::ble_radio_supported() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.ble_radio_supported) + return _internal_ble_radio_supported(); +} +inline void GcmDeviceInfo::set_ble_radio_supported(bool value) { + _internal_set_ble_radio_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000004U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.ble_radio_supported) +} +inline bool GcmDeviceInfo::_internal_ble_radio_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ble_radio_supported_; +} +inline void GcmDeviceInfo::_internal_set_ble_radio_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ble_radio_supported_ = value; +} + +// optional bool pixel_experience = 408 [default = false]; +inline bool GcmDeviceInfo::has_pixel_experience() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000008U); + return value; +} +inline void GcmDeviceInfo::clear_pixel_experience() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pixel_experience_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000008U); +} +inline bool GcmDeviceInfo::pixel_experience() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.pixel_experience) + return _internal_pixel_experience(); +} +inline void GcmDeviceInfo::set_pixel_experience(bool value) { + _internal_set_pixel_experience(value); + SetHasBit(_impl_._has_bits_[1], 0x00000008U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.pixel_experience) +} +inline bool GcmDeviceInfo::_internal_pixel_experience() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pixel_experience_; +} +inline void GcmDeviceInfo::_internal_set_pixel_experience(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pixel_experience_ = value; +} + +// optional bool arc_plus_plus = 409 [default = false]; +inline bool GcmDeviceInfo::has_arc_plus_plus() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00800000U); + return value; +} +inline void GcmDeviceInfo::clear_arc_plus_plus() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arc_plus_plus_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00800000U); +} +inline bool GcmDeviceInfo::arc_plus_plus() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.arc_plus_plus) + return _internal_arc_plus_plus(); +} +inline void GcmDeviceInfo::set_arc_plus_plus(bool value) { + _internal_set_arc_plus_plus(value); + SetHasBit(_impl_._has_bits_[0], 0x00800000U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.arc_plus_plus) +} +inline bool GcmDeviceInfo::_internal_arc_plus_plus() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.arc_plus_plus_; +} +inline void GcmDeviceInfo::_internal_set_arc_plus_plus(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arc_plus_plus_ = value; +} + +// optional bool is_screenlock_state_flaky = 410 [default = false]; +inline bool GcmDeviceInfo::has_is_screenlock_state_flaky() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000010U); + return value; +} +inline void GcmDeviceInfo::clear_is_screenlock_state_flaky() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_screenlock_state_flaky_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000010U); +} +inline bool GcmDeviceInfo::is_screenlock_state_flaky() const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) + return _internal_is_screenlock_state_flaky(); +} +inline void GcmDeviceInfo::set_is_screenlock_state_flaky(bool value) { + _internal_set_is_screenlock_state_flaky(value); + SetHasBit(_impl_._has_bits_[1], 0x00000010U); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) +} +inline bool GcmDeviceInfo::_internal_is_screenlock_state_flaky() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_screenlock_state_flaky_; +} +inline void GcmDeviceInfo::_internal_set_is_screenlock_state_flaky(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_screenlock_state_flaky_ = value; +} + +// repeated .securegcm.SoftwareFeature supported_software_features = 411; +inline int GcmDeviceInfo::_internal_supported_software_features_size() const { + return _internal_supported_software_features().size(); +} +inline int GcmDeviceInfo::supported_software_features_size() const { + return _internal_supported_software_features_size(); +} +inline void GcmDeviceInfo::clear_supported_software_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_software_features_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x02000000U); +} +inline ::securegcm::SoftwareFeature GcmDeviceInfo::supported_software_features(int index) const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.supported_software_features) + return static_cast<::securegcm::SoftwareFeature>(_internal_supported_software_features().Get(index)); +} +inline void GcmDeviceInfo::set_supported_software_features(int index, ::securegcm::SoftwareFeature value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + _internal_mutable_supported_software_features()->Set(index, value); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.supported_software_features) +} +inline void GcmDeviceInfo::add_supported_software_features(::securegcm::SoftwareFeature value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_supported_software_features()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); + // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.supported_software_features) +} +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::supported_software_features() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.supported_software_features) + return _internal_supported_software_features(); +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_supported_software_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); + // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.supported_software_features) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_supported_software_features(); +} +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_supported_software_features() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supported_software_features_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +GcmDeviceInfo::_internal_mutable_supported_software_features() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.supported_software_features_; +} + +// repeated .securegcm.SoftwareFeature enabled_software_features = 412; +inline int GcmDeviceInfo::_internal_enabled_software_features_size() const { + return _internal_enabled_software_features().size(); +} +inline int GcmDeviceInfo::enabled_software_features_size() const { + return _internal_enabled_software_features_size(); +} +inline void GcmDeviceInfo::clear_enabled_software_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enabled_software_features_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); +} +inline ::securegcm::SoftwareFeature GcmDeviceInfo::enabled_software_features(int index) const { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enabled_software_features) + return static_cast<::securegcm::SoftwareFeature>(_internal_enabled_software_features().Get(index)); +} +inline void GcmDeviceInfo::set_enabled_software_features(int index, ::securegcm::SoftwareFeature value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + _internal_mutable_enabled_software_features()->Set(index, value); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enabled_software_features) +} +inline void GcmDeviceInfo::add_enabled_software_features(::securegcm::SoftwareFeature value) { + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_enabled_software_features()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.enabled_software_features) +} +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::enabled_software_features() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.enabled_software_features) + return _internal_enabled_software_features(); +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enabled_software_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.enabled_software_features) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_enabled_software_features(); +} +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_enabled_software_features() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.enabled_software_features_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +GcmDeviceInfo::_internal_mutable_enabled_software_features() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.enabled_software_features_; +} + +// optional bytes enrollment_session_id = 1000; +inline bool GcmDeviceInfo::has_enrollment_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x08000000U); + return value; +} +inline void GcmDeviceInfo::clear_enrollment_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enrollment_session_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x08000000U); +} +inline const ::std::string& GcmDeviceInfo::enrollment_session_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enrollment_session_id) + return _internal_enrollment_session_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_enrollment_session_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x08000000U); + _impl_.enrollment_session_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enrollment_session_id) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enrollment_session_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); + ::std::string* _s = _internal_mutable_enrollment_session_id(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.enrollment_session_id) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_enrollment_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.enrollment_session_id_.Get(); +} +inline void GcmDeviceInfo::_internal_set_enrollment_session_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enrollment_session_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_enrollment_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.enrollment_session_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_enrollment_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.enrollment_session_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x08000000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); + auto* released = _impl_.enrollment_session_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.enrollment_session_id_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); + } + _impl_.enrollment_session_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.enrollment_session_id_.IsDefault()) { + _impl_.enrollment_session_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.enrollment_session_id) +} + +// optional string oauth_token = 1001; +inline bool GcmDeviceInfo::has_oauth_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x10000000U); + return value; +} +inline void GcmDeviceInfo::clear_oauth_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oauth_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x10000000U); +} +inline const ::std::string& GcmDeviceInfo::oauth_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.oauth_token) + return _internal_oauth_token(); +} +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_oauth_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x10000000U); + _impl_.oauth_token_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.oauth_token) +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_oauth_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); + ::std::string* _s = _internal_mutable_oauth_token(); + // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.oauth_token) + return _s; +} +inline const ::std::string& GcmDeviceInfo::_internal_oauth_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.oauth_token_.Get(); +} +inline void GcmDeviceInfo::_internal_set_oauth_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oauth_token_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_oauth_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.oauth_token_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_oauth_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.oauth_token) + if (!CheckHasBit(_impl_._has_bits_[0], 0x10000000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); + auto* released = _impl_.oauth_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.oauth_token_.Set("", GetArena()); + } + return released; +} +inline void GcmDeviceInfo::set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); + } + _impl_.oauth_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.oauth_token_.IsDefault()) { + _impl_.oauth_token_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.oauth_token) +} + +// ------------------------------------------------------------------- + +// GcmMetadata + +// required .securegcm.Type type = 1; +inline bool GcmMetadata::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void GcmMetadata::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline ::securegcm::Type GcmMetadata::type() const { + // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.type) + return _internal_type(); +} +inline void GcmMetadata::set_type(::securegcm::Type value) { + _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.type) +} +inline ::securegcm::Type GcmMetadata::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Type>(_impl_.type_); +} +inline void GcmMetadata::_internal_set_type(::securegcm::Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Type_internal_data_)); + _impl_.type_ = value; +} + +// optional int32 version = 2 [default = 0]; +inline bool GcmMetadata::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void GcmMetadata::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t GcmMetadata::version() const { + // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.version) + return _internal_version(); +} +inline void GcmMetadata::set_version(::int32_t value) { + _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.version) +} +inline ::int32_t GcmMetadata::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void GcmMetadata::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} + +// ------------------------------------------------------------------- + +// Tickle + +// optional fixed64 expiry_time = 1; +inline bool Tickle::has_expiry_time() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Tickle::clear_expiry_time() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.expiry_time_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline ::uint64_t Tickle::expiry_time() const { + // @@protoc_insertion_point(field_get:securegcm.Tickle.expiry_time) + return _internal_expiry_time(); +} +inline void Tickle::set_expiry_time(::uint64_t value) { + _internal_set_expiry_time(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_set:securegcm.Tickle.expiry_time) +} +inline ::uint64_t Tickle::_internal_expiry_time() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.expiry_time_; +} +inline void Tickle::_internal_set_expiry_time(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.expiry_time_ = value; +} + +// ------------------------------------------------------------------- + +// LoginNotificationInfo + +// optional fixed64 creation_time = 2; +inline bool LoginNotificationInfo::has_creation_time() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + return value; +} +inline void LoginNotificationInfo::clear_creation_time() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.creation_time_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); +} +inline ::uint64_t LoginNotificationInfo::creation_time() const { + // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.creation_time) + return _internal_creation_time(); +} +inline void LoginNotificationInfo::set_creation_time(::uint64_t value) { + _internal_set_creation_time(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.creation_time) +} +inline ::uint64_t LoginNotificationInfo::_internal_creation_time() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.creation_time_; +} +inline void LoginNotificationInfo::_internal_set_creation_time(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.creation_time_ = value; +} + +// optional string email = 3; +inline bool LoginNotificationInfo::has_email() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void LoginNotificationInfo::clear_email() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.email_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& LoginNotificationInfo::email() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.email) + return _internal_email(); +} +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_email(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.email_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.email) +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_email() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.email) + return _s; +} +inline const ::std::string& LoginNotificationInfo::_internal_email() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.email_.Get(); +} +inline void LoginNotificationInfo::_internal_set_email(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.email_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_email() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.email_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_email() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.email) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.email_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.email_.Set("", GetArena()); + } + return released; +} +inline void LoginNotificationInfo::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.email_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.email_.IsDefault()) { + _impl_.email_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.email) +} + +// optional string host = 4; +inline bool LoginNotificationInfo::has_host() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void LoginNotificationInfo::clear_host() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.host_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& LoginNotificationInfo::host() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.host) + return _internal_host(); +} +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_host(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.host_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.host) +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_host() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_host(); + // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.host) + return _s; +} +inline const ::std::string& LoginNotificationInfo::_internal_host() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.host_.Get(); +} +inline void LoginNotificationInfo::_internal_set_host(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.host_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_host() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.host_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_host() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.host) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.host_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.host_.Set("", GetArena()); + } + return released; +} +inline void LoginNotificationInfo::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.host_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.host_.IsDefault()) { + _impl_.host_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.host) +} + +// optional string source = 5; +inline bool LoginNotificationInfo::has_source() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void LoginNotificationInfo::clear_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& LoginNotificationInfo::source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.source) + return _internal_source(); +} +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_source(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.source_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.source) +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_source() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_source(); + // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.source) + return _s; +} +inline const ::std::string& LoginNotificationInfo::_internal_source() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.source_.Get(); +} +inline void LoginNotificationInfo::_internal_set_source(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.source_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.source) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.source_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.source_.Set("", GetArena()); + } + return released; +} +inline void LoginNotificationInfo::set_allocated_source(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.source_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.source_.IsDefault()) { + _impl_.source_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.source) +} + +// optional string event_type = 6; +inline bool LoginNotificationInfo::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void LoginNotificationInfo::clear_event_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& LoginNotificationInfo::event_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.event_type) + return _internal_event_type(); +} +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_event_type(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.event_type_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.event_type) +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_event_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_event_type(); + // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.event_type) + return _s; +} +inline const ::std::string& LoginNotificationInfo::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.event_type_.Get(); +} +inline void LoginNotificationInfo::_internal_set_event_type(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_event_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.event_type_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_event_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.event_type) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.event_type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.event_type_.Set("", GetArena()); + } + return released; +} +inline void LoginNotificationInfo::set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.event_type_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.event_type_.IsDefault()) { + _impl_.event_type_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.event_type) +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::securegcm::AppleDeviceDiagonalMils> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::SoftwareFeature> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::InvocationReason> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Type> : std::true_type {}; + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fsecuregcm_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc b/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc new file mode 100644 index 00000000..fcc0c213 --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc @@ -0,0 +1,3031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/securemessage.proto +// Protobuf C++ Version: 6.33.3 + +#include "proto/securemessage.pb.h" + +#include +#include +#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 securemessage { + +inline constexpr SimpleRsaPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + n_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + e_{65537} {} + +template +PROTOBUF_CONSTEXPR SimpleRsaPublicKey::SimpleRsaPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SimpleRsaPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SimpleRsaPublicKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR SimpleRsaPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SimpleRsaPublicKeyDefaultTypeInternal() {} + union { + SimpleRsaPublicKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; + +inline constexpr SecureMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_and_body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR SecureMessage::SecureMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SecureMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SecureMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecureMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecureMessageDefaultTypeInternal() {} + union { + SecureMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; + +inline constexpr HeaderAndBodyInternal::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR HeaderAndBodyInternal::HeaderAndBodyInternal(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(HeaderAndBodyInternal_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderAndBodyInternalDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderAndBodyInternalDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderAndBodyInternalDefaultTypeInternal() {} + union { + HeaderAndBodyInternal _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; + +inline constexpr Header::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + verification_key_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + decryption_key_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + iv_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_metadata_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + associated_data_length_{0u}, + signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, + encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} + +template +PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Header_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderDefaultTypeInternal() {} + union { + Header _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; + +inline constexpr EcP256PublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + x_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR EcP256PublicKey::EcP256PublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(EcP256PublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EcP256PublicKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR EcP256PublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EcP256PublicKeyDefaultTypeInternal() {} + union { + EcP256PublicKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; + +inline constexpr DhPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR DhPublicKey::DhPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DhPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DhPublicKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR DhPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DhPublicKeyDefaultTypeInternal() {} + union { + DhPublicKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; + +inline constexpr HeaderAndBody::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + header_{nullptr} {} + +template +PROTOBUF_CONSTEXPR HeaderAndBody::HeaderAndBody(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(HeaderAndBody_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderAndBodyDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderAndBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderAndBodyDefaultTypeInternal() {} + union { + HeaderAndBody _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; + +inline constexpr GenericPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ec_p256_public_key_{nullptr}, + rsa2048_public_key_{nullptr}, + dh2048_public_key_{nullptr}, + type_{static_cast< ::securemessage::PublicKeyType >(1)} {} + +template +PROTOBUF_CONSTEXPR GenericPublicKey::GenericPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GenericPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GenericPublicKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR GenericPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GenericPublicKeyDefaultTypeInternal() {} + union { + GenericPublicKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; +} // namespace securemessage +namespace securemessage { +PROTOBUF_CONSTINIT const uint32_t SigScheme_internal_data_[] = { + 196609u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SigScheme_strings[3] = {}; + +static const char SigScheme_names[] = { + "ECDSA_P256_SHA256" + "HMAC_SHA256" + "RSA2048_SHA256" +}; + +static const ::google::protobuf::internal::EnumEntry SigScheme_entries[] = { + {{&SigScheme_names[0], 17}, 2}, + {{&SigScheme_names[17], 11}, 1}, + {{&SigScheme_names[28], 14}, 3}, +}; + +static const int SigScheme_entries_by_number[] = { + 1, // 1 -> HMAC_SHA256 + 0, // 2 -> ECDSA_P256_SHA256 + 2, // 3 -> RSA2048_SHA256 +}; + +const ::std::string& SigScheme_Name(SigScheme value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SigScheme_entries, SigScheme_entries_by_number, 3, + SigScheme_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SigScheme_entries, + SigScheme_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SigScheme_strings[idx].get(); +} + +bool SigScheme_Parse(::absl::string_view name, SigScheme* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + SigScheme_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t EncScheme_internal_data_[] = { + 131073u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EncScheme_strings[2] = {}; + +static const char EncScheme_names[] = { + "AES_256_CBC" + "NONE" +}; + +static const ::google::protobuf::internal::EnumEntry EncScheme_entries[] = { + {{&EncScheme_names[0], 11}, 2}, + {{&EncScheme_names[11], 4}, 1}, +}; + +static const int EncScheme_entries_by_number[] = { + 1, // 1 -> NONE + 0, // 2 -> AES_256_CBC +}; + +const ::std::string& EncScheme_Name(EncScheme value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EncScheme_entries, EncScheme_entries_by_number, 2, + EncScheme_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EncScheme_entries, + EncScheme_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EncScheme_strings[idx].get(); +} + +bool EncScheme_Parse(::absl::string_view name, EncScheme* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + EncScheme_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t PublicKeyType_internal_data_[] = { + 196609u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PublicKeyType_strings[3] = {}; + +static const char PublicKeyType_names[] = { + "DH2048_MODP" + "EC_P256" + "RSA2048" +}; + +static const ::google::protobuf::internal::EnumEntry PublicKeyType_entries[] = { + {{&PublicKeyType_names[0], 11}, 3}, + {{&PublicKeyType_names[11], 7}, 1}, + {{&PublicKeyType_names[18], 7}, 2}, +}; + +static const int PublicKeyType_entries_by_number[] = { + 1, // 1 -> EC_P256 + 2, // 2 -> RSA2048 + 0, // 3 -> DH2048_MODP +}; + +const ::std::string& PublicKeyType_Name(PublicKeyType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PublicKeyType_entries, PublicKeyType_entries_by_number, 3, + PublicKeyType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PublicKeyType_entries, + PublicKeyType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PublicKeyType_strings[idx].get(); +} + +bool PublicKeyType_Parse(::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + PublicKeyType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +// =================================================================== + +class SecureMessage::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +SecureMessage::SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.SecureMessage) +} +PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::SecureMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_and_body_(arena, from.header_and_body_), + signature_(arena, from.signature_) {} + +SecureMessage::SecureMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SecureMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SecureMessage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:securemessage.SecureMessage) +} +PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_and_body_(arena), + signature_(arena) {} + +inline void SecureMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +SecureMessage::~SecureMessage() { + // @@protoc_insertion_point(destructor:securemessage.SecureMessage) + SharedDtor(*this); +} +inline void SecureMessage::SharedDtor(MessageLite& self) { + SecureMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_and_body_.Destroy(); + this_._impl_.signature_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SecureMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecureMessage(arena); +} +constexpr auto SecureMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecureMessage), + alignof(SecureMessage)); +} +constexpr auto SecureMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_SecureMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SecureMessage::IsInitializedImpl, + &SecureMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecureMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SecureMessage::ByteSizeLong, + &SecureMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._cached_size_), + true, + }, + "securemessage.SecureMessage", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_ = + SecureMessage::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecureMessage::GetClassData() const { + return SecureMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SecureMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SecureMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::SecureMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes signature = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_)}}, + // required bytes header_and_body = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes header_and_body = 1; + {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes signature = 2; + {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SecureMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.SecureMessage) + ::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_.header_and_body_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.signature_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SecureMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SecureMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.SecureMessage) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required bytes header_and_body = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_header_and_body(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // required bytes signature = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_signature(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.SecureMessage) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SecureMessage::ByteSizeLong(const MessageLite& base) { + const SecureMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SecureMessage::ByteSizeLong() const { + const SecureMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.SecureMessage) + ::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)) { + // required bytes header_and_body = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header_and_body()); + } + // required bytes signature = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_signature()); + } + } + 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 SecureMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SecureMessage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_header_and_body(from._internal_header_and_body()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_signature(from._internal_signature()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void SecureMessage::CopyFrom(const SecureMessage& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SecureMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SecureMessage::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void SecureMessage::InternalSwap(SecureMessage* 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_.header_and_body_, &other->_impl_.header_and_body_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_, &other->_impl_.signature_, arena); +} + +// =================================================================== + +class Header::_Internal { + public: + using HasBits = + decltype(::std::declval
()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000060) ^ 0x00000060) != 0; + } +}; + +Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.Header) +} +PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::Header& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + verification_key_id_(arena, from.verification_key_id_), + decryption_key_id_(arena, from.decryption_key_id_), + iv_(arena, from.iv_), + public_metadata_(arena, from.public_metadata_) {} + +Header::Header( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Header& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Header* 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(&_impl_) + + offsetof(Impl_, associated_data_length_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, associated_data_length_), + offsetof(Impl_, encryption_scheme_) - + offsetof(Impl_, associated_data_length_) + + sizeof(Impl_::encryption_scheme_)); + + // @@protoc_insertion_point(copy_constructor:securemessage.Header) +} +PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + verification_key_id_(arena), + decryption_key_id_(arena), + iv_(arena), + public_metadata_(arena), + signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, + encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} + +inline void Header::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.associated_data_length_ = {}; +} +Header::~Header() { + // @@protoc_insertion_point(destructor:securemessage.Header) + SharedDtor(*this); +} +inline void Header::SharedDtor(MessageLite& self) { + Header& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.verification_key_id_.Destroy(); + this_._impl_.decryption_key_id_.Destroy(); + this_._impl_.iv_.Destroy(); + this_._impl_.public_metadata_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Header::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Header(arena); +} +constexpr auto Header::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), + alignof(Header)); +} +constexpr auto Header::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<21>{ + { + &_Header_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + Header::IsInitializedImpl, + &Header::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl
(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Header::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl
(), &Header::ByteSizeLong, + &Header::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), + true, + }, + "securemessage.Header", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_ = + Header::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Header::GetClassData() const { + return Header_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 2, 0, 2> +Header::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + Header_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::Header>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // required .securemessage.SigScheme signature_scheme = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 5, 3, + PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_)}}, + // required .securemessage.EncScheme encryption_scheme = 2; + {::_pbi::TcParser::FastEr1S1, + {16, 6, 2, + PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_)}}, + // optional bytes verification_key_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_)}}, + // optional bytes decryption_key_id = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_)}}, + // optional bytes iv = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_)}}, + // optional bytes public_metadata = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_)}}, + // optional uint32 associated_data_length = 7 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {56, 4, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.SigScheme signature_scheme = 1; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // required .securemessage.EncScheme encryption_scheme = 2; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes verification_key_id = 3; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes decryption_key_id = 4; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes iv = 5; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes public_metadata = 6; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional uint32 associated_data_length = 7 [default = 0]; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + {{ + {1, 3}, + {1, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Header::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.Header) + ::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_.verification_key_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.decryption_key_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.iv_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.public_metadata_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) { + _impl_.associated_data_length_ = 0u; + _impl_.signature_scheme_ = 1; + _impl_.encryption_scheme_ = 1; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Header& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Header& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.Header) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required .securemessage.SigScheme signature_scheme = 1; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_signature_scheme(), target); + } + + // required .securemessage.EncScheme encryption_scheme = 2; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_encryption_scheme(), target); + } + + // optional bytes verification_key_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_verification_key_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // optional bytes decryption_key_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_decryption_key_id(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + + // optional bytes iv = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_iv(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } + + // optional bytes public_metadata = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_public_metadata(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } + + // optional uint32 associated_data_length = 7 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 7, this_._internal_associated_data_length(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.Header) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Header::ByteSizeLong(const MessageLite& base) { + const Header& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Header::ByteSizeLong() const { + const Header& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.Header) + ::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 bytes verification_key_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_verification_key_id()); + } + // optional bytes decryption_key_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_decryption_key_id()); + } + // optional bytes iv = 5; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_iv()); + } + // optional bytes public_metadata = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_metadata()); + } + // optional uint32 associated_data_length = 7 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_associated_data_length()); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000060U)) { + // required .securemessage.SigScheme signature_scheme = 1; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_signature_scheme()); + } + // required .securemessage.EncScheme encryption_scheme = 2; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_encryption_scheme()); + } + } + 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 Header::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.Header) + 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_verification_key_id(from._internal_verification_key_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_decryption_key_id(from._internal_decryption_key_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_iv(from._internal_iv()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_public_metadata(from._internal_public_metadata()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.associated_data_length_ = from._impl_.associated_data_length_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.signature_scheme_ = from._impl_.signature_scheme_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.encryption_scheme_ = from._impl_.encryption_scheme_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Header::CopyFrom(const Header& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.Header) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Header::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void Header::InternalSwap(Header* 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_.verification_key_id_, &other->_impl_.verification_key_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.decryption_key_id_, &other->_impl_.decryption_key_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iv_, &other->_impl_.iv_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_metadata_, &other->_impl_.public_metadata_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_) + + sizeof(Header::_impl_.encryption_scheme_) + - PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)>( + reinterpret_cast(&_impl_.associated_data_length_), + reinterpret_cast(&other->_impl_.associated_data_length_)); +} + +// =================================================================== + +class HeaderAndBody::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +HeaderAndBody::HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBody) +} +PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::HeaderAndBody& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + body_(arena, from.body_) {} + +HeaderAndBody::HeaderAndBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const HeaderAndBody& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + HeaderAndBody* 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_.header_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBody) +} +PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + body_(arena) {} + +inline void HeaderAndBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.header_ = {}; +} +HeaderAndBody::~HeaderAndBody() { + // @@protoc_insertion_point(destructor:securemessage.HeaderAndBody) + SharedDtor(*this); +} +inline void HeaderAndBody::SharedDtor(MessageLite& self) { + HeaderAndBody& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.body_.Destroy(); + delete this_._impl_.header_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL HeaderAndBody::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HeaderAndBody(arena); +} +constexpr auto HeaderAndBody::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBody), + alignof(HeaderAndBody)); +} +constexpr auto HeaderAndBody::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_HeaderAndBody_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + HeaderAndBody::IsInitializedImpl, + &HeaderAndBody::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HeaderAndBody::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBody::ByteSizeLong, + &HeaderAndBody::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._cached_size_), + true, + }, + "securemessage.HeaderAndBody", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_ = + HeaderAndBody::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HeaderAndBody::GetClassData() const { + return HeaderAndBody_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +HeaderAndBody::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _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), + HeaderAndBody_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBody>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes body = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_)}}, + // required .securemessage.Header header = 1; + {::_pbi::TcParser::FastMtS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.Header header = 1; + {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // required bytes body = 2; + {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::Header>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void HeaderAndBody::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBody) + ::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_.body_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HeaderAndBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HeaderAndBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBody) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required .securemessage.Header header = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); + } + + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_body(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBody) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HeaderAndBody::ByteSizeLong(const MessageLite& base) { + const HeaderAndBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t HeaderAndBody::ByteSizeLong() const { + const HeaderAndBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBody) + ::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)) { + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body()); + } + // required .securemessage.Header header = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } + } + 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 HeaderAndBody::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBody) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_body(from._internal_body()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void HeaderAndBody::CopyFrom(const HeaderAndBody& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBody) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool HeaderAndBody::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { + if (!this_._impl_.header_->IsInitialized()) return false; + } + return true; +} + +void HeaderAndBody::InternalSwap(HeaderAndBody* 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_.body_, &other->_impl_.body_, arena); + swap(_impl_.header_, other->_impl_.header_); +} + +// =================================================================== + +class HeaderAndBodyInternal::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +HeaderAndBodyInternal::HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBodyInternal) +} +PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::HeaderAndBodyInternal& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_(arena, from.header_), + body_(arena, from.body_) {} + +HeaderAndBodyInternal::HeaderAndBodyInternal( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const HeaderAndBodyInternal& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + HeaderAndBodyInternal* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBodyInternal) +} +PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_(arena), + body_(arena) {} + +inline void HeaderAndBodyInternal::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +HeaderAndBodyInternal::~HeaderAndBodyInternal() { + // @@protoc_insertion_point(destructor:securemessage.HeaderAndBodyInternal) + SharedDtor(*this); +} +inline void HeaderAndBodyInternal::SharedDtor(MessageLite& self) { + HeaderAndBodyInternal& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_.Destroy(); + this_._impl_.body_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL HeaderAndBodyInternal::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HeaderAndBodyInternal(arena); +} +constexpr auto HeaderAndBodyInternal::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBodyInternal), + alignof(HeaderAndBodyInternal)); +} +constexpr auto HeaderAndBodyInternal::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<36>{ + { + &_HeaderAndBodyInternal_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + HeaderAndBodyInternal::IsInitializedImpl, + &HeaderAndBodyInternal::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HeaderAndBodyInternal::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBodyInternal::ByteSizeLong, + &HeaderAndBodyInternal::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._cached_size_), + true, + }, + "securemessage.HeaderAndBodyInternal", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_ = + HeaderAndBodyInternal::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HeaderAndBodyInternal::GetClassData() const { + return HeaderAndBodyInternal_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +HeaderAndBodyInternal::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + HeaderAndBodyInternal_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBodyInternal>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes body = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_)}}, + // required bytes header = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes header = 1; + {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes body = 2; + {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void HeaderAndBodyInternal::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBodyInternal) + ::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_.header_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.body_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HeaderAndBodyInternal& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HeaderAndBodyInternal& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBodyInternal) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required bytes header = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_header(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_body(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBodyInternal) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HeaderAndBodyInternal::ByteSizeLong(const MessageLite& base) { + const HeaderAndBodyInternal& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t HeaderAndBodyInternal::ByteSizeLong() const { + const HeaderAndBodyInternal& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBodyInternal) + ::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)) { + // required bytes header = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header()); + } + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body()); + } + } + 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 HeaderAndBodyInternal::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBodyInternal) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_header(from._internal_header()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_body(from._internal_body()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void HeaderAndBodyInternal::CopyFrom(const HeaderAndBodyInternal& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBodyInternal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool HeaderAndBodyInternal::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void HeaderAndBodyInternal::InternalSwap(HeaderAndBodyInternal* 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_.header_, &other->_impl_.header_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); +} + +// =================================================================== + +class EcP256PublicKey::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +EcP256PublicKey::EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.EcP256PublicKey) +} +PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::EcP256PublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + x_(arena, from.x_), + y_(arena, from.y_) {} + +EcP256PublicKey::EcP256PublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EcP256PublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EcP256PublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:securemessage.EcP256PublicKey) +} +PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + x_(arena), + y_(arena) {} + +inline void EcP256PublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +EcP256PublicKey::~EcP256PublicKey() { + // @@protoc_insertion_point(destructor:securemessage.EcP256PublicKey) + SharedDtor(*this); +} +inline void EcP256PublicKey::SharedDtor(MessageLite& self) { + EcP256PublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.x_.Destroy(); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL EcP256PublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EcP256PublicKey(arena); +} +constexpr auto EcP256PublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcP256PublicKey), + alignof(EcP256PublicKey)); +} +constexpr auto EcP256PublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<30>{ + { + &_EcP256PublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + EcP256PublicKey::IsInitializedImpl, + &EcP256PublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EcP256PublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &EcP256PublicKey::ByteSizeLong, + &EcP256PublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._cached_size_), + true, + }, + "securemessage.EcP256PublicKey", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_ = + EcP256PublicKey::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EcP256PublicKey::GetClassData() const { + return EcP256PublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +EcP256PublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + EcP256PublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes y = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_)}}, + // required bytes x = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes x = 1; + {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes y = 2; + {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void EcP256PublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.EcP256PublicKey) + ::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_.x_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.y_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EcP256PublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EcP256PublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.EcP256PublicKey) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required bytes x = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_x(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // required bytes y = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.EcP256PublicKey) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EcP256PublicKey::ByteSizeLong(const MessageLite& base) { + const EcP256PublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EcP256PublicKey::ByteSizeLong() const { + const EcP256PublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.EcP256PublicKey) + ::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)) { + // required bytes x = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_x()); + } + // required bytes y = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } + } + 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 EcP256PublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.EcP256PublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_x(from._internal_x()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_y(from._internal_y()); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void EcP256PublicKey::CopyFrom(const EcP256PublicKey& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.EcP256PublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool EcP256PublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void EcP256PublicKey::InternalSwap(EcP256PublicKey* 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_.x_, &other->_impl_.x_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); +} + +// =================================================================== + +class SimpleRsaPublicKey::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +SimpleRsaPublicKey::SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.SimpleRsaPublicKey) +} +PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::SimpleRsaPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + n_(arena, from.n_) {} + +SimpleRsaPublicKey::SimpleRsaPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SimpleRsaPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SimpleRsaPublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.e_ = from._impl_.e_; + + // @@protoc_insertion_point(copy_constructor:securemessage.SimpleRsaPublicKey) +} +PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + n_(arena), + e_{65537} {} + +inline void SimpleRsaPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +SimpleRsaPublicKey::~SimpleRsaPublicKey() { + // @@protoc_insertion_point(destructor:securemessage.SimpleRsaPublicKey) + SharedDtor(*this); +} +inline void SimpleRsaPublicKey::SharedDtor(MessageLite& self) { + SimpleRsaPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.n_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SimpleRsaPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SimpleRsaPublicKey(arena); +} +constexpr auto SimpleRsaPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SimpleRsaPublicKey), + alignof(SimpleRsaPublicKey)); +} +constexpr auto SimpleRsaPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<33>{ + { + &_SimpleRsaPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SimpleRsaPublicKey::IsInitializedImpl, + &SimpleRsaPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SimpleRsaPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SimpleRsaPublicKey::ByteSizeLong, + &SimpleRsaPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.SimpleRsaPublicKey", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_ = + SimpleRsaPublicKey::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SimpleRsaPublicKey::GetClassData() const { + return SimpleRsaPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SimpleRsaPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SimpleRsaPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 e = 2 [default = 65537]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_)}}, + // required bytes n = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes n = 1; + {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 e = 2 [default = 65537]; + {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SimpleRsaPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.SimpleRsaPublicKey) + ::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_.n_.ClearNonDefaultToEmpty(); + } + _impl_.e_ = 65537; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SimpleRsaPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SimpleRsaPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.SimpleRsaPublicKey) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required bytes n = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_n(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // optional int32 e = 2 [default = 65537]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_e(), 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.SimpleRsaPublicKey) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SimpleRsaPublicKey::ByteSizeLong(const MessageLite& base) { + const SimpleRsaPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SimpleRsaPublicKey::ByteSizeLong() const { + const SimpleRsaPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.SimpleRsaPublicKey) + ::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_); + { + // required bytes n = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_n()); + } + } + { + // optional int32 e = 2 [default = 65537]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_e()); + } + } + 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 SimpleRsaPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SimpleRsaPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_n(from._internal_n()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.e_ = from._impl_.e_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void SimpleRsaPublicKey::CopyFrom(const SimpleRsaPublicKey& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SimpleRsaPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SimpleRsaPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void SimpleRsaPublicKey::InternalSwap(SimpleRsaPublicKey* 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_.n_, &other->_impl_.n_, arena); + swap(_impl_.e_, other->_impl_.e_); +} + +// =================================================================== + +class DhPublicKey::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +DhPublicKey::DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.DhPublicKey) +} +PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::DhPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + y_(arena, from.y_) {} + +DhPublicKey::DhPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DhPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DhPublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:securemessage.DhPublicKey) +} +PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + y_(arena) {} + +inline void DhPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +DhPublicKey::~DhPublicKey() { + // @@protoc_insertion_point(destructor:securemessage.DhPublicKey) + SharedDtor(*this); +} +inline void DhPublicKey::SharedDtor(MessageLite& self) { + DhPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL DhPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DhPublicKey(arena); +} +constexpr auto DhPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DhPublicKey), + alignof(DhPublicKey)); +} +constexpr auto DhPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_DhPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + DhPublicKey::IsInitializedImpl, + &DhPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DhPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DhPublicKey::ByteSizeLong, + &DhPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.DhPublicKey", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_ = + DhPublicKey::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DhPublicKey::GetClassData() const { + return DhPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +DhPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DhPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes y = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes y = 1; + {PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DhPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.DhPublicKey) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.y_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DhPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DhPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.DhPublicKey) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required bytes y = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.DhPublicKey) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DhPublicKey::ByteSizeLong(const MessageLite& base) { + const DhPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DhPublicKey::ByteSizeLong() const { + const DhPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.DhPublicKey) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // required bytes y = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } + } + 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 DhPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.DhPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_y(from._internal_y()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void DhPublicKey::CopyFrom(const DhPublicKey& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.DhPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool DhPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + return true; +} + +void DhPublicKey::InternalSwap(DhPublicKey* 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_.y_, &other->_impl_.y_, arena); +} + +// =================================================================== + +class GenericPublicKey::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_); + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000008) ^ 0x00000008) != 0; + } +}; + +GenericPublicKey::GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securemessage.GenericPublicKey) +} +PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::GenericPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GenericPublicKey::GenericPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GenericPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GenericPublicKey* 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_.ec_p256_public_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_) + : nullptr; + _impl_.rsa2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_) + : nullptr; + _impl_.dh2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_) + : nullptr; + _impl_.type_ = from._impl_.type_; + + // @@protoc_insertion_point(copy_constructor:securemessage.GenericPublicKey) +} +PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + type_{static_cast< ::securemessage::PublicKeyType >(1)} {} + +inline void GenericPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, ec_p256_public_key_), + 0, + offsetof(Impl_, dh2048_public_key_) - + offsetof(Impl_, ec_p256_public_key_) + + sizeof(Impl_::dh2048_public_key_)); +} +GenericPublicKey::~GenericPublicKey() { + // @@protoc_insertion_point(destructor:securemessage.GenericPublicKey) + SharedDtor(*this); +} +inline void GenericPublicKey::SharedDtor(MessageLite& self) { + GenericPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.ec_p256_public_key_; + delete this_._impl_.rsa2048_public_key_; + delete this_._impl_.dh2048_public_key_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GenericPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GenericPublicKey(arena); +} +constexpr auto GenericPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GenericPublicKey), + alignof(GenericPublicKey)); +} +constexpr auto GenericPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<31>{ + { + &_GenericPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GenericPublicKey::IsInitializedImpl, + &GenericPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GenericPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GenericPublicKey::ByteSizeLong, + &GenericPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.GenericPublicKey", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_ = + GenericPublicKey::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GenericPublicKey::GetClassData() const { + return GenericPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> +GenericPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GenericPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_)}}, + // required .securemessage.PublicKeyType type = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 3, 3, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_)}}, + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)}}, + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.PublicKeyType type = 1; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>()}, + {::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>()}, + {::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>()}, + {1, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GenericPublicKey::Clear() { +// @@protoc_insertion_point(message_clear_start:securemessage.GenericPublicKey) + ::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)) { + ABSL_DCHECK(_impl_.ec_p256_public_key_ != nullptr); + _impl_.ec_p256_public_key_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.rsa2048_public_key_ != nullptr); + _impl_.rsa2048_public_key_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.dh2048_public_key_ != nullptr); + _impl_.dh2048_public_key_->Clear(); + } + _impl_.type_ = 1; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GenericPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GenericPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securemessage.GenericPublicKey) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // required .securemessage.PublicKeyType type = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.ec_p256_public_key_, this_._impl_.ec_p256_public_key_->GetCachedSize(), target, + stream); + } + + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.rsa2048_public_key_, this_._impl_.rsa2048_public_key_->GetCachedSize(), target, + stream); + } + + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.dh2048_public_key_, this_._impl_.dh2048_public_key_->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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securemessage.GenericPublicKey) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GenericPublicKey::ByteSizeLong(const MessageLite& base) { + const GenericPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GenericPublicKey::ByteSizeLong() const { + const GenericPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.GenericPublicKey) + ::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 .securemessage.EcP256PublicKey ec_p256_public_key = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_p256_public_key_); + } + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rsa2048_public_key_); + } + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dh2048_public_key_); + } + } + { + // required .securemessage.PublicKeyType type = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void GenericPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.GenericPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.ec_p256_public_key_ != nullptr); + if (_this->_impl_.ec_p256_public_key_ == nullptr) { + _this->_impl_.ec_p256_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_); + } else { + _this->_impl_.ec_p256_public_key_->MergeFrom(*from._impl_.ec_p256_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.rsa2048_public_key_ != nullptr); + if (_this->_impl_.rsa2048_public_key_ == nullptr) { + _this->_impl_.rsa2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_); + } else { + _this->_impl_.rsa2048_public_key_->MergeFrom(*from._impl_.rsa2048_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.dh2048_public_key_ != nullptr); + if (_this->_impl_.dh2048_public_key_ == nullptr) { + _this->_impl_.dh2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_); + } else { + _this->_impl_.dh2048_public_key_->MergeFrom(*from._impl_.dh2048_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.type_ = from._impl_.type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void GenericPublicKey::CopyFrom(const GenericPublicKey& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.GenericPublicKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GenericPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.ec_p256_public_key_->IsInitialized()) return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { + if (!this_._impl_.rsa2048_public_key_->IsInitialized()) return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { + if (!this_._impl_.dh2048_public_key_->IsInitialized()) return false; + } + return true; +} + +void GenericPublicKey::InternalSwap(GenericPublicKey* 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(GenericPublicKey, _impl_.type_) + + sizeof(GenericPublicKey::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)>( + reinterpret_cast(&_impl_.ec_p256_public_key_), + reinterpret_cast(&other->_impl_.ec_p256_public_key_)); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace securemessage +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/securemessage.pb.h b/third_party/ukey2/compiled_proto/proto/securemessage.pb.h new file mode 100644 index 00000000..0cf34d7d --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/securemessage.pb.h @@ -0,0 +1,3435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/securemessage.proto +// Protobuf C++ Version: 6.33.3 + +#ifndef proto_2fsecuremessage_2eproto_2epb_2eh +#define proto_2fsecuremessage_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuremessage_2eproto + +namespace google { +namespace protobuf { +namespace internal { +template +::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_proto_2fsecuremessage_2eproto { + static const ::uint32_t offsets[]; +}; +namespace securemessage { +enum EncScheme : int; +extern const uint32_t EncScheme_internal_data_[]; +enum PublicKeyType : int; +extern const uint32_t PublicKeyType_internal_data_[]; +enum SigScheme : int; +extern const uint32_t SigScheme_internal_data_[]; +class DhPublicKey; +struct DhPublicKeyDefaultTypeInternal; +extern DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; +class EcP256PublicKey; +struct EcP256PublicKeyDefaultTypeInternal; +extern EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; +class GenericPublicKey; +struct GenericPublicKeyDefaultTypeInternal; +extern GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; +class Header; +struct HeaderDefaultTypeInternal; +extern HeaderDefaultTypeInternal _Header_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; +class HeaderAndBody; +struct HeaderAndBodyDefaultTypeInternal; +extern HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; +class HeaderAndBodyInternal; +struct HeaderAndBodyInternalDefaultTypeInternal; +extern HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; +class SecureMessage; +struct SecureMessageDefaultTypeInternal; +extern SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; +class SimpleRsaPublicKey; +struct SimpleRsaPublicKeyDefaultTypeInternal; +extern SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; +} // namespace securemessage +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securemessage::EncScheme_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::EncScheme>; +template <> +internal::EnumTraitsT<::securemessage::PublicKeyType_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::PublicKeyType>; +template <> +internal::EnumTraitsT<::securemessage::SigScheme_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::SigScheme>; +} // namespace protobuf +} // namespace google + +namespace securemessage { +enum SigScheme : int { + HMAC_SHA256 = 1, + ECDSA_P256_SHA256 = 2, + RSA2048_SHA256 = 3, +}; + +extern const uint32_t SigScheme_internal_data_[]; +inline constexpr SigScheme SigScheme_MIN = + static_cast(1); +inline constexpr SigScheme SigScheme_MAX = + static_cast(3); +inline bool SigScheme_IsValid(int value) { + return 1 <= value && value <= 3; +} +inline constexpr int SigScheme_ARRAYSIZE = 3 + 1; +const ::std::string& SigScheme_Name(SigScheme value); +template +const ::std::string& SigScheme_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to SigScheme_Name()."); + return SigScheme_Name(static_cast(value)); +} +bool SigScheme_Parse( + ::absl::string_view name, SigScheme* PROTOBUF_NONNULL value); +enum EncScheme : int { + NONE = 1, + AES_256_CBC = 2, +}; + +extern const uint32_t EncScheme_internal_data_[]; +inline constexpr EncScheme EncScheme_MIN = + static_cast(1); +inline constexpr EncScheme EncScheme_MAX = + static_cast(2); +inline bool EncScheme_IsValid(int value) { + return 1 <= value && value <= 2; +} +inline constexpr int EncScheme_ARRAYSIZE = 2 + 1; +const ::std::string& EncScheme_Name(EncScheme value); +template +const ::std::string& EncScheme_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to EncScheme_Name()."); + return EncScheme_Name(static_cast(value)); +} +bool EncScheme_Parse( + ::absl::string_view name, EncScheme* PROTOBUF_NONNULL value); +enum PublicKeyType : int { + EC_P256 = 1, + RSA2048 = 2, + DH2048_MODP = 3, +}; + +extern const uint32_t PublicKeyType_internal_data_[]; +inline constexpr PublicKeyType PublicKeyType_MIN = + static_cast(1); +inline constexpr PublicKeyType PublicKeyType_MAX = + static_cast(3); +inline bool PublicKeyType_IsValid(int value) { + return 1 <= value && value <= 3; +} +inline constexpr int PublicKeyType_ARRAYSIZE = 3 + 1; +const ::std::string& PublicKeyType_Name(PublicKeyType value); +template +const ::std::string& PublicKeyType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to PublicKeyType_Name()."); + return PublicKeyType_Name(static_cast(value)); +} +bool PublicKeyType_Parse( + ::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value); + +// =================================================================== + + +// ------------------------------------------------------------------- + +class SimpleRsaPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.SimpleRsaPublicKey) */ { + public: + inline SimpleRsaPublicKey() : SimpleRsaPublicKey(nullptr) {} + ~SimpleRsaPublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SimpleRsaPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SimpleRsaPublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SimpleRsaPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline SimpleRsaPublicKey(const SimpleRsaPublicKey& from) : SimpleRsaPublicKey(nullptr, from) {} + inline SimpleRsaPublicKey(SimpleRsaPublicKey&& from) noexcept + : SimpleRsaPublicKey(nullptr, ::std::move(from)) {} + inline SimpleRsaPublicKey& operator=(const SimpleRsaPublicKey& from) { + CopyFrom(from); + return *this; + } + inline SimpleRsaPublicKey& operator=(SimpleRsaPublicKey&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SimpleRsaPublicKey& default_instance() { + return *reinterpret_cast( + &_SimpleRsaPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SimpleRsaPublicKey& a, SimpleRsaPublicKey& b) { a.Swap(&b); } + inline void Swap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SimpleRsaPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SimpleRsaPublicKey& from); + void MergeFrom(const SimpleRsaPublicKey& from) { SimpleRsaPublicKey::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.SimpleRsaPublicKey"; } + + explicit SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SimpleRsaPublicKey& from); + SimpleRsaPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SimpleRsaPublicKey&& from) noexcept + : SimpleRsaPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kNFieldNumber = 1, + kEFieldNumber = 2, + }; + // required bytes n = 1; + bool has_n() const; + void clear_n() ; + const ::std::string& n() const; + template + void set_n(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_n(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_n(); + void set_allocated_n(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_n() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_n(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_n(); + + public: + // optional int32 e = 2 [default = 65537]; + bool has_e() const; + void clear_e() ; + ::int32_t e() const; + void set_e(::int32_t value); + + private: + ::int32_t _internal_e() const; + void _internal_set_e(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securemessage.SimpleRsaPublicKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SimpleRsaPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr n_; + ::int32_t e_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; +// ------------------------------------------------------------------- + +class SecureMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.SecureMessage) */ { + public: + inline SecureMessage() : SecureMessage(nullptr) {} + ~SecureMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SecureMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SecureMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SecureMessage(::google::protobuf::internal::ConstantInitialized); + + inline SecureMessage(const SecureMessage& from) : SecureMessage(nullptr, from) {} + inline SecureMessage(SecureMessage&& from) noexcept + : SecureMessage(nullptr, ::std::move(from)) {} + inline SecureMessage& operator=(const SecureMessage& from) { + CopyFrom(from); + return *this; + } + inline SecureMessage& operator=(SecureMessage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SecureMessage& default_instance() { + return *reinterpret_cast( + &_SecureMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SecureMessage& a, SecureMessage& b) { a.Swap(&b); } + inline void Swap(SecureMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SecureMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SecureMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SecureMessage& from); + void MergeFrom(const SecureMessage& from) { SecureMessage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SecureMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.SecureMessage"; } + + explicit SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecureMessage& from); + SecureMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SecureMessage&& from) noexcept + : SecureMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kHeaderAndBodyFieldNumber = 1, + kSignatureFieldNumber = 2, + }; + // required bytes header_and_body = 1; + bool has_header_and_body() const; + void clear_header_and_body() ; + const ::std::string& header_and_body() const; + template + void set_header_and_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header_and_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_and_body(); + void set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_header_and_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header_and_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header_and_body(); + + public: + // required bytes signature = 2; + bool has_signature() const; + void clear_signature() ; + const ::std::string& signature() const; + template + void set_signature(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_signature(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature(); + void set_allocated_signature(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_signature() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signature(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.SecureMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SecureMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr header_and_body_; + ::google::protobuf::internal::ArenaStringPtr signature_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; +// ------------------------------------------------------------------- + +class HeaderAndBodyInternal final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBodyInternal) */ { + public: + inline HeaderAndBodyInternal() : HeaderAndBodyInternal(nullptr) {} + ~HeaderAndBodyInternal() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HeaderAndBodyInternal* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBodyInternal)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR HeaderAndBodyInternal(::google::protobuf::internal::ConstantInitialized); + + inline HeaderAndBodyInternal(const HeaderAndBodyInternal& from) : HeaderAndBodyInternal(nullptr, from) {} + inline HeaderAndBodyInternal(HeaderAndBodyInternal&& from) noexcept + : HeaderAndBodyInternal(nullptr, ::std::move(from)) {} + inline HeaderAndBodyInternal& operator=(const HeaderAndBodyInternal& from) { + CopyFrom(from); + return *this; + } + inline HeaderAndBodyInternal& operator=(HeaderAndBodyInternal&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const HeaderAndBodyInternal& default_instance() { + return *reinterpret_cast( + &_HeaderAndBodyInternal_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(HeaderAndBodyInternal& a, HeaderAndBodyInternal& b) { a.Swap(&b); } + inline void Swap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HeaderAndBodyInternal* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const HeaderAndBodyInternal& from); + void MergeFrom(const HeaderAndBodyInternal& from) { HeaderAndBodyInternal::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBodyInternal"; } + + explicit HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBodyInternal& from); + HeaderAndBodyInternal( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBodyInternal&& from) noexcept + : HeaderAndBodyInternal(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kHeaderFieldNumber = 1, + kBodyFieldNumber = 2, + }; + // required bytes header = 1; + bool has_header() const; + void clear_header() ; + const ::std::string& header() const; + template + void set_header(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header(); + void set_allocated_header(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_header() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // required bytes body = 2; + bool has_body() const; + void clear_body() ; + const ::std::string& body() const; + template + void set_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); + void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBodyInternal) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HeaderAndBodyInternal& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr header_; + ::google::protobuf::internal::ArenaStringPtr body_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; +// ------------------------------------------------------------------- + +class Header final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.Header) */ { + public: + inline Header() : Header(nullptr) {} + ~Header() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Header* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Header)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Header(::google::protobuf::internal::ConstantInitialized); + + inline Header(const Header& from) : Header(nullptr, from) {} + inline Header(Header&& from) noexcept + : Header(nullptr, ::std::move(from)) {} + inline Header& operator=(const Header& from) { + CopyFrom(from); + return *this; + } + inline Header& operator=(Header&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Header& default_instance() { + return *reinterpret_cast( + &_Header_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Header& a, Header& b) { a.Swap(&b); } + inline void Swap(Header* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Header* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Header* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct
(arena); + } + void CopyFrom(const Header& from); + void MergeFrom(const Header& from) { Header::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Header* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.Header"; } + + explicit Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from); + Header( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Header&& from) noexcept + : Header(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kVerificationKeyIdFieldNumber = 3, + kDecryptionKeyIdFieldNumber = 4, + kIvFieldNumber = 5, + kPublicMetadataFieldNumber = 6, + kAssociatedDataLengthFieldNumber = 7, + kSignatureSchemeFieldNumber = 1, + kEncryptionSchemeFieldNumber = 2, + }; + // optional bytes verification_key_id = 3; + bool has_verification_key_id() const; + void clear_verification_key_id() ; + const ::std::string& verification_key_id() const; + template + void set_verification_key_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_verification_key_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_verification_key_id(); + void set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_verification_key_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_verification_key_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_verification_key_id(); + + public: + // optional bytes decryption_key_id = 4; + bool has_decryption_key_id() const; + void clear_decryption_key_id() ; + const ::std::string& decryption_key_id() const; + template + void set_decryption_key_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_decryption_key_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_decryption_key_id(); + void set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_decryption_key_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_decryption_key_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_decryption_key_id(); + + public: + // optional bytes iv = 5; + bool has_iv() const; + void clear_iv() ; + const ::std::string& iv() const; + template + void set_iv(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_iv(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_iv(); + void set_allocated_iv(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_iv() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_iv(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_iv(); + + public: + // optional bytes public_metadata = 6; + bool has_public_metadata() const; + void clear_public_metadata() ; + const ::std::string& public_metadata() const; + template + void set_public_metadata(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_metadata(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_metadata(); + void set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_metadata() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_metadata(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_metadata(); + + public: + // optional uint32 associated_data_length = 7 [default = 0]; + bool has_associated_data_length() const; + void clear_associated_data_length() ; + ::uint32_t associated_data_length() const; + void set_associated_data_length(::uint32_t value); + + private: + ::uint32_t _internal_associated_data_length() const; + void _internal_set_associated_data_length(::uint32_t value); + + public: + // required .securemessage.SigScheme signature_scheme = 1; + bool has_signature_scheme() const; + void clear_signature_scheme() ; + ::securemessage::SigScheme signature_scheme() const; + void set_signature_scheme(::securemessage::SigScheme value); + + private: + ::securemessage::SigScheme _internal_signature_scheme() const; + void _internal_set_signature_scheme(::securemessage::SigScheme value); + + public: + // required .securemessage.EncScheme encryption_scheme = 2; + bool has_encryption_scheme() const; + void clear_encryption_scheme() ; + ::securemessage::EncScheme encryption_scheme() const; + void set_encryption_scheme(::securemessage::EncScheme value); + + private: + ::securemessage::EncScheme _internal_encryption_scheme() const; + void _internal_set_encryption_scheme(::securemessage::EncScheme value); + + public: + // @@protoc_insertion_point(class_scope:securemessage.Header) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 2, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Header& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr verification_key_id_; + ::google::protobuf::internal::ArenaStringPtr decryption_key_id_; + ::google::protobuf::internal::ArenaStringPtr iv_; + ::google::protobuf::internal::ArenaStringPtr public_metadata_; + ::uint32_t associated_data_length_; + int signature_scheme_; + int encryption_scheme_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; +// ------------------------------------------------------------------- + +class EcP256PublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.EcP256PublicKey) */ { + public: + inline EcP256PublicKey() : EcP256PublicKey(nullptr) {} + ~EcP256PublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EcP256PublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EcP256PublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EcP256PublicKey(::google::protobuf::internal::ConstantInitialized); + + inline EcP256PublicKey(const EcP256PublicKey& from) : EcP256PublicKey(nullptr, from) {} + inline EcP256PublicKey(EcP256PublicKey&& from) noexcept + : EcP256PublicKey(nullptr, ::std::move(from)) {} + inline EcP256PublicKey& operator=(const EcP256PublicKey& from) { + CopyFrom(from); + return *this; + } + inline EcP256PublicKey& operator=(EcP256PublicKey&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const EcP256PublicKey& default_instance() { + return *reinterpret_cast( + &_EcP256PublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(EcP256PublicKey& a, EcP256PublicKey& b) { a.Swap(&b); } + inline void Swap(EcP256PublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EcP256PublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EcP256PublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const EcP256PublicKey& from); + void MergeFrom(const EcP256PublicKey& from) { EcP256PublicKey::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EcP256PublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.EcP256PublicKey"; } + + explicit EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcP256PublicKey& from); + EcP256PublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcP256PublicKey&& from) noexcept + : EcP256PublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kXFieldNumber = 1, + kYFieldNumber = 2, + }; + // required bytes x = 1; + bool has_x() const; + void clear_x() ; + const ::std::string& x() const; + template + void set_x(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_x(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); + void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_x() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); + + public: + // required bytes y = 2; + bool has_y() const; + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.EcP256PublicKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EcP256PublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr x_; + ::google::protobuf::internal::ArenaStringPtr y_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; +// ------------------------------------------------------------------- + +class DhPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.DhPublicKey) */ { + public: + inline DhPublicKey() : DhPublicKey(nullptr) {} + ~DhPublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DhPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DhPublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DhPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline DhPublicKey(const DhPublicKey& from) : DhPublicKey(nullptr, from) {} + inline DhPublicKey(DhPublicKey&& from) noexcept + : DhPublicKey(nullptr, ::std::move(from)) {} + inline DhPublicKey& operator=(const DhPublicKey& from) { + CopyFrom(from); + return *this; + } + inline DhPublicKey& operator=(DhPublicKey&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const DhPublicKey& default_instance() { + return *reinterpret_cast( + &_DhPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 6; + friend void swap(DhPublicKey& a, DhPublicKey& b) { a.Swap(&b); } + inline void Swap(DhPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DhPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DhPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const DhPublicKey& from); + void MergeFrom(const DhPublicKey& from) { DhPublicKey::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DhPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.DhPublicKey"; } + + explicit DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DhPublicKey& from); + DhPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DhPublicKey&& from) noexcept + : DhPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kYFieldNumber = 1, + }; + // required bytes y = 1; + bool has_y() const; + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.DhPublicKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DhPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr y_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; +// ------------------------------------------------------------------- + +class HeaderAndBody final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBody) */ { + public: + inline HeaderAndBody() : HeaderAndBody(nullptr) {} + ~HeaderAndBody() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HeaderAndBody* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBody)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR HeaderAndBody(::google::protobuf::internal::ConstantInitialized); + + inline HeaderAndBody(const HeaderAndBody& from) : HeaderAndBody(nullptr, from) {} + inline HeaderAndBody(HeaderAndBody&& from) noexcept + : HeaderAndBody(nullptr, ::std::move(from)) {} + inline HeaderAndBody& operator=(const HeaderAndBody& from) { + CopyFrom(from); + return *this; + } + inline HeaderAndBody& operator=(HeaderAndBody&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const HeaderAndBody& default_instance() { + return *reinterpret_cast( + &_HeaderAndBody_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(HeaderAndBody& a, HeaderAndBody& b) { a.Swap(&b); } + inline void Swap(HeaderAndBody* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HeaderAndBody* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HeaderAndBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const HeaderAndBody& from); + void MergeFrom(const HeaderAndBody& from) { HeaderAndBody::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HeaderAndBody* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBody"; } + + explicit HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBody& from); + HeaderAndBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBody&& from) noexcept + : HeaderAndBody(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kBodyFieldNumber = 2, + kHeaderFieldNumber = 1, + }; + // required bytes body = 2; + bool has_body() const; + void clear_body() ; + const ::std::string& body() const; + template + void set_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); + void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); + + public: + // required .securemessage.Header header = 1; + bool has_header() const; + void clear_header() ; + const ::securemessage::Header& header() const; + [[nodiscard]] ::securemessage::Header* PROTOBUF_NULLABLE release_header(); + ::securemessage::Header* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); + ::securemessage::Header* PROTOBUF_NULLABLE unsafe_arena_release_header(); + + private: + const ::securemessage::Header& _internal_header() const; + ::securemessage::Header* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBody) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HeaderAndBody& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr body_; + ::securemessage::Header* PROTOBUF_NULLABLE header_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; +// ------------------------------------------------------------------- + +class GenericPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.GenericPublicKey) */ { + public: + inline GenericPublicKey() : GenericPublicKey(nullptr) {} + ~GenericPublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GenericPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GenericPublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GenericPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline GenericPublicKey(const GenericPublicKey& from) : GenericPublicKey(nullptr, from) {} + inline GenericPublicKey(GenericPublicKey&& from) noexcept + : GenericPublicKey(nullptr, ::std::move(from)) {} + inline GenericPublicKey& operator=(const GenericPublicKey& from) { + CopyFrom(from); + return *this; + } + inline GenericPublicKey& operator=(GenericPublicKey&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const GenericPublicKey& default_instance() { + return *reinterpret_cast( + &_GenericPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(GenericPublicKey& a, GenericPublicKey& b) { a.Swap(&b); } + inline void Swap(GenericPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GenericPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GenericPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const GenericPublicKey& from); + void MergeFrom(const GenericPublicKey& from) { GenericPublicKey::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GenericPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.GenericPublicKey"; } + + explicit GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GenericPublicKey& from); + GenericPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GenericPublicKey&& from) noexcept + : GenericPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEcP256PublicKeyFieldNumber = 2, + kRsa2048PublicKeyFieldNumber = 3, + kDh2048PublicKeyFieldNumber = 4, + kTypeFieldNumber = 1, + }; + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + bool has_ec_p256_public_key() const; + void clear_ec_p256_public_key() ; + const ::securemessage::EcP256PublicKey& ec_p256_public_key() const; + [[nodiscard]] ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE release_ec_p256_public_key(); + ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL mutable_ec_p256_public_key(); + void set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE unsafe_arena_release_ec_p256_public_key(); + + private: + const ::securemessage::EcP256PublicKey& _internal_ec_p256_public_key() const; + ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL _internal_mutable_ec_p256_public_key(); + + public: + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + bool has_rsa2048_public_key() const; + void clear_rsa2048_public_key() ; + const ::securemessage::SimpleRsaPublicKey& rsa2048_public_key() const; + [[nodiscard]] ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE release_rsa2048_public_key(); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL mutable_rsa2048_public_key(); + void set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_rsa2048_public_key(); + + private: + const ::securemessage::SimpleRsaPublicKey& _internal_rsa2048_public_key() const; + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL _internal_mutable_rsa2048_public_key(); + + public: + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + bool has_dh2048_public_key() const; + void clear_dh2048_public_key() ; + const ::securemessage::DhPublicKey& dh2048_public_key() const; + [[nodiscard]] ::securemessage::DhPublicKey* PROTOBUF_NULLABLE release_dh2048_public_key(); + ::securemessage::DhPublicKey* PROTOBUF_NONNULL mutable_dh2048_public_key(); + void set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_dh2048_public_key(); + + private: + const ::securemessage::DhPublicKey& _internal_dh2048_public_key() const; + ::securemessage::DhPublicKey* PROTOBUF_NONNULL _internal_mutable_dh2048_public_key(); + + public: + // required .securemessage.PublicKeyType type = 1; + bool has_type() const; + void clear_type() ; + ::securemessage::PublicKeyType type() const; + void set_type(::securemessage::PublicKeyType value); + + private: + ::securemessage::PublicKeyType _internal_type() const; + void _internal_set_type(::securemessage::PublicKeyType value); + + public: + // @@protoc_insertion_point(class_scope:securemessage.GenericPublicKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 4, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GenericPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE ec_p256_public_key_; + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE rsa2048_public_key_; + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE dh2048_public_key_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// SecureMessage + +// required bytes header_and_body = 1; +inline bool SecureMessage::has_header_and_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void SecureMessage::clear_header_and_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_and_body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& SecureMessage::header_and_body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.SecureMessage.header_and_body) + return _internal_header_and_body(); +} +template +PROTOBUF_ALWAYS_INLINE void SecureMessage::set_header_and_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.header_and_body_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.SecureMessage.header_and_body) +} +inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_header_and_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_header_and_body(); + // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.header_and_body) + return _s; +} +inline const ::std::string& SecureMessage::_internal_header_and_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_and_body_.Get(); +} +inline void SecureMessage::_internal_set_header_and_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_and_body_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_header_and_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.header_and_body_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_header_and_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.SecureMessage.header_and_body) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.header_and_body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_and_body_.Set("", GetArena()); + } + return released; +} +inline void SecureMessage::set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.header_and_body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_and_body_.IsDefault()) { + _impl_.header_and_body_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.header_and_body) +} + +// required bytes signature = 2; +inline bool SecureMessage::has_signature() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void SecureMessage::clear_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& SecureMessage::signature() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.SecureMessage.signature) + return _internal_signature(); +} +template +PROTOBUF_ALWAYS_INLINE void SecureMessage::set_signature(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.SecureMessage.signature) +} +inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_signature(); + // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.signature) + return _s; +} +inline const ::std::string& SecureMessage::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signature_.Get(); +} +inline void SecureMessage::_internal_set_signature(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.signature_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.SecureMessage.signature) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.signature_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signature_.Set("", GetArena()); + } + return released; +} +inline void SecureMessage::set_allocated_signature(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.signature_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_.IsDefault()) { + _impl_.signature_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.signature) +} + +// ------------------------------------------------------------------- + +// Header + +// required .securemessage.SigScheme signature_scheme = 1; +inline bool Header::has_signature_scheme() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + return value; +} +inline void Header::clear_signature_scheme() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_scheme_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); +} +inline ::securemessage::SigScheme Header::signature_scheme() const { + // @@protoc_insertion_point(field_get:securemessage.Header.signature_scheme) + return _internal_signature_scheme(); +} +inline void Header::set_signature_scheme(::securemessage::SigScheme value) { + _internal_set_signature_scheme(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + // @@protoc_insertion_point(field_set:securemessage.Header.signature_scheme) +} +inline ::securemessage::SigScheme Header::_internal_signature_scheme() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::SigScheme>(_impl_.signature_scheme_); +} +inline void Header::_internal_set_signature_scheme(::securemessage::SigScheme value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::SigScheme_internal_data_)); + _impl_.signature_scheme_ = value; +} + +// required .securemessage.EncScheme encryption_scheme = 2; +inline bool Header::has_encryption_scheme() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + return value; +} +inline void Header::clear_encryption_scheme() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encryption_scheme_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); +} +inline ::securemessage::EncScheme Header::encryption_scheme() const { + // @@protoc_insertion_point(field_get:securemessage.Header.encryption_scheme) + return _internal_encryption_scheme(); +} +inline void Header::set_encryption_scheme(::securemessage::EncScheme value) { + _internal_set_encryption_scheme(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + // @@protoc_insertion_point(field_set:securemessage.Header.encryption_scheme) +} +inline ::securemessage::EncScheme Header::_internal_encryption_scheme() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::EncScheme>(_impl_.encryption_scheme_); +} +inline void Header::_internal_set_encryption_scheme(::securemessage::EncScheme value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::EncScheme_internal_data_)); + _impl_.encryption_scheme_ = value; +} + +// optional bytes verification_key_id = 3; +inline bool Header::has_verification_key_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Header::clear_verification_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.verification_key_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Header::verification_key_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.Header.verification_key_id) + return _internal_verification_key_id(); +} +template +PROTOBUF_ALWAYS_INLINE void Header::set_verification_key_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.verification_key_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.Header.verification_key_id) +} +inline ::std::string* PROTOBUF_NONNULL Header::mutable_verification_key_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_verification_key_id(); + // @@protoc_insertion_point(field_mutable:securemessage.Header.verification_key_id) + return _s; +} +inline const ::std::string& Header::_internal_verification_key_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.verification_key_id_.Get(); +} +inline void Header::_internal_set_verification_key_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.verification_key_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_verification_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.verification_key_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Header::release_verification_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.Header.verification_key_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.verification_key_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.verification_key_id_.Set("", GetArena()); + } + return released; +} +inline void Header::set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.verification_key_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.verification_key_id_.IsDefault()) { + _impl_.verification_key_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.Header.verification_key_id) +} + +// optional bytes decryption_key_id = 4; +inline bool Header::has_decryption_key_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Header::clear_decryption_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decryption_key_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& Header::decryption_key_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.Header.decryption_key_id) + return _internal_decryption_key_id(); +} +template +PROTOBUF_ALWAYS_INLINE void Header::set_decryption_key_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.decryption_key_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.Header.decryption_key_id) +} +inline ::std::string* PROTOBUF_NONNULL Header::mutable_decryption_key_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_decryption_key_id(); + // @@protoc_insertion_point(field_mutable:securemessage.Header.decryption_key_id) + return _s; +} +inline const ::std::string& Header::_internal_decryption_key_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.decryption_key_id_.Get(); +} +inline void Header::_internal_set_decryption_key_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decryption_key_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_decryption_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.decryption_key_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Header::release_decryption_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.Header.decryption_key_id) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.decryption_key_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.decryption_key_id_.Set("", GetArena()); + } + return released; +} +inline void Header::set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.decryption_key_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.decryption_key_id_.IsDefault()) { + _impl_.decryption_key_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.Header.decryption_key_id) +} + +// optional bytes iv = 5; +inline bool Header::has_iv() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void Header::clear_iv() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.iv_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& Header::iv() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.Header.iv) + return _internal_iv(); +} +template +PROTOBUF_ALWAYS_INLINE void Header::set_iv(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.iv_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.Header.iv) +} +inline ::std::string* PROTOBUF_NONNULL Header::mutable_iv() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_iv(); + // @@protoc_insertion_point(field_mutable:securemessage.Header.iv) + return _s; +} +inline const ::std::string& Header::_internal_iv() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.iv_.Get(); +} +inline void Header::_internal_set_iv(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.iv_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_iv() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.iv_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Header::release_iv() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.Header.iv) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.iv_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.iv_.Set("", GetArena()); + } + return released; +} +inline void Header::set_allocated_iv(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.iv_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.iv_.IsDefault()) { + _impl_.iv_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.Header.iv) +} + +// optional bytes public_metadata = 6; +inline bool Header::has_public_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void Header::clear_public_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_metadata_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline const ::std::string& Header::public_metadata() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.Header.public_metadata) + return _internal_public_metadata(); +} +template +PROTOBUF_ALWAYS_INLINE void Header::set_public_metadata(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.public_metadata_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.Header.public_metadata) +} +inline ::std::string* PROTOBUF_NONNULL Header::mutable_public_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_public_metadata(); + // @@protoc_insertion_point(field_mutable:securemessage.Header.public_metadata) + return _s; +} +inline const ::std::string& Header::_internal_public_metadata() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_metadata_.Get(); +} +inline void Header::_internal_set_public_metadata(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_metadata_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_public_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_metadata_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Header::release_public_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.Header.public_metadata) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.public_metadata_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_metadata_.Set("", GetArena()); + } + return released; +} +inline void Header::set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.public_metadata_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_metadata_.IsDefault()) { + _impl_.public_metadata_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.Header.public_metadata) +} + +// optional uint32 associated_data_length = 7 [default = 0]; +inline bool Header::has_associated_data_length() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + return value; +} +inline void Header::clear_associated_data_length() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.associated_data_length_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); +} +inline ::uint32_t Header::associated_data_length() const { + // @@protoc_insertion_point(field_get:securemessage.Header.associated_data_length) + return _internal_associated_data_length(); +} +inline void Header::set_associated_data_length(::uint32_t value) { + _internal_set_associated_data_length(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + // @@protoc_insertion_point(field_set:securemessage.Header.associated_data_length) +} +inline ::uint32_t Header::_internal_associated_data_length() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.associated_data_length_; +} +inline void Header::_internal_set_associated_data_length(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.associated_data_length_ = value; +} + +// ------------------------------------------------------------------- + +// HeaderAndBody + +// required .securemessage.Header header = 1; +inline bool HeaderAndBody::has_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); + return value; +} +inline void HeaderAndBody::clear_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ != nullptr) _impl_.header_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::securemessage::Header& HeaderAndBody::_internal_header() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::Header* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_Header_default_instance_); +} +inline const ::securemessage::Header& HeaderAndBody::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.header) + return _internal_header(); +} +inline void HeaderAndBody::unsafe_arena_set_allocated_header( + ::securemessage::Header* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); + } + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.HeaderAndBody.header) +} +inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::Header* released = _impl_.header_; + _impl_.header_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.header) + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::Header* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::Header>(GetArena()); + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(p); + } + return _impl_.header_; +} +inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::Header* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.header) + return _msg; +} +inline void HeaderAndBody::set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); + // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.header) +} + +// required bytes body = 2; +inline bool HeaderAndBody::has_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void HeaderAndBody::clear_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& HeaderAndBody::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.body) + return _internal_body(); +} +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBody::set_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.HeaderAndBody.body) +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_body(); + // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.body) + return _s; +} +inline const ::std::string& HeaderAndBody::_internal_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.body_.Get(); +} +inline void HeaderAndBody::_internal_set_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.body_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBody::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.body) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_.Set("", GetArena()); + } + return released; +} +inline void HeaderAndBody::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.body) +} + +// ------------------------------------------------------------------- + +// HeaderAndBodyInternal + +// required bytes header = 1; +inline bool HeaderAndBodyInternal::has_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void HeaderAndBodyInternal::clear_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& HeaderAndBodyInternal::header() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.header) + return _internal_header(); +} +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_header(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.header) +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.header) + return _s; +} +inline const ::std::string& HeaderAndBodyInternal::_internal_header() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_.Get(); +} +inline void HeaderAndBodyInternal::_internal_set_header(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.header_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.header) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.header_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_.Set("", GetArena()); + } + return released; +} +inline void HeaderAndBodyInternal::set_allocated_header(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.header_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_.IsDefault()) { + _impl_.header_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.header) +} + +// required bytes body = 2; +inline bool HeaderAndBodyInternal::has_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void HeaderAndBodyInternal::clear_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& HeaderAndBodyInternal::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.body) + return _internal_body(); +} +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.body) +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_body(); + // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.body) + return _s; +} +inline const ::std::string& HeaderAndBodyInternal::_internal_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.body_.Get(); +} +inline void HeaderAndBodyInternal::_internal_set_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.body_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.body) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_.Set("", GetArena()); + } + return released; +} +inline void HeaderAndBodyInternal::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.body) +} + +// ------------------------------------------------------------------- + +// EcP256PublicKey + +// required bytes x = 1; +inline bool EcP256PublicKey::has_x() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void EcP256PublicKey::clear_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& EcP256PublicKey::x() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.x) + return _internal_x(); +} +template +PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_x(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.x) +} +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_x() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_x(); + // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.x) + return _s; +} +inline const ::std::string& EcP256PublicKey::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_.Get(); +} +inline void EcP256PublicKey::_internal_set_x(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.x_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.x) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.x_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.x_.Set("", GetArena()); + } + return released; +} +inline void EcP256PublicKey::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.x_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { + _impl_.x_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.x) +} + +// required bytes y = 2; +inline bool EcP256PublicKey::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void EcP256PublicKey::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& EcP256PublicKey::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.y) + return _internal_y(); +} +template +PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.y) +} +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_y(); + // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.y) + return _s; +} +inline const ::std::string& EcP256PublicKey::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); +} +inline void EcP256PublicKey::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.y) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); + } + return released; +} +inline void EcP256PublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.y) +} + +// ------------------------------------------------------------------- + +// SimpleRsaPublicKey + +// required bytes n = 1; +inline bool SimpleRsaPublicKey::has_n() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void SimpleRsaPublicKey::clear_n() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.n_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& SimpleRsaPublicKey::n() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.n) + return _internal_n(); +} +template +PROTOBUF_ALWAYS_INLINE void SimpleRsaPublicKey::set_n(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.n_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.n) +} +inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::mutable_n() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_n(); + // @@protoc_insertion_point(field_mutable:securemessage.SimpleRsaPublicKey.n) + return _s; +} +inline const ::std::string& SimpleRsaPublicKey::_internal_n() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.n_.Get(); +} +inline void SimpleRsaPublicKey::_internal_set_n(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.n_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::_internal_mutable_n() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.n_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SimpleRsaPublicKey::release_n() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.SimpleRsaPublicKey.n) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.n_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.n_.Set("", GetArena()); + } + return released; +} +inline void SimpleRsaPublicKey::set_allocated_n(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.n_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.n_.IsDefault()) { + _impl_.n_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.SimpleRsaPublicKey.n) +} + +// optional int32 e = 2 [default = 65537]; +inline bool SimpleRsaPublicKey::has_e() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void SimpleRsaPublicKey::clear_e() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.e_ = 65537; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t SimpleRsaPublicKey::e() const { + // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.e) + return _internal_e(); +} +inline void SimpleRsaPublicKey::set_e(::int32_t value) { + _internal_set_e(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.e) +} +inline ::int32_t SimpleRsaPublicKey::_internal_e() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.e_; +} +inline void SimpleRsaPublicKey::_internal_set_e(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.e_ = value; +} + +// ------------------------------------------------------------------- + +// DhPublicKey + +// required bytes y = 1; +inline bool DhPublicKey::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void DhPublicKey::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& DhPublicKey::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.DhPublicKey.y) + return _internal_y(); +} +template +PROTOBUF_ALWAYS_INLINE void DhPublicKey::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securemessage.DhPublicKey.y) +} +inline ::std::string* PROTOBUF_NONNULL DhPublicKey::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_y(); + // @@protoc_insertion_point(field_mutable:securemessage.DhPublicKey.y) + return _s; +} +inline const ::std::string& DhPublicKey::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); +} +inline void DhPublicKey::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL DhPublicKey::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE DhPublicKey::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.DhPublicKey.y) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); + } + return released; +} +inline void DhPublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securemessage.DhPublicKey.y) +} + +// ------------------------------------------------------------------- + +// GenericPublicKey + +// required .securemessage.PublicKeyType type = 1; +inline bool GenericPublicKey::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void GenericPublicKey::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline ::securemessage::PublicKeyType GenericPublicKey::type() const { + // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.type) + return _internal_type(); +} +inline void GenericPublicKey::set_type(::securemessage::PublicKeyType value) { + _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_set:securemessage.GenericPublicKey.type) +} +inline ::securemessage::PublicKeyType GenericPublicKey::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::PublicKeyType>(_impl_.type_); +} +inline void GenericPublicKey::_internal_set_type(::securemessage::PublicKeyType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::PublicKeyType_internal_data_)); + _impl_.type_ = value; +} + +// optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; +inline bool GenericPublicKey::has_ec_p256_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.ec_p256_public_key_ != nullptr); + return value; +} +inline void GenericPublicKey::clear_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_p256_public_key_ != nullptr) _impl_.ec_p256_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::securemessage::EcP256PublicKey& GenericPublicKey::_internal_ec_p256_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::EcP256PublicKey* p = _impl_.ec_p256_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_EcP256PublicKey_default_instance_); +} +inline const ::securemessage::EcP256PublicKey& GenericPublicKey::ec_p256_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.ec_p256_public_key) + return _internal_ec_p256_public_key(); +} +inline void GenericPublicKey::unsafe_arena_set_allocated_ec_p256_public_key( + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); + } + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) +} +inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::EcP256PublicKey* released = _impl_.ec_p256_public_key_; + _impl_.ec_p256_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.ec_p256_public_key) + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::EcP256PublicKey* temp = _impl_.ec_p256_public_key_; + _impl_.ec_p256_public_key_ = nullptr; + return temp; +} +inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_p256_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::EcP256PublicKey>(GetArena()); + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(p); + } + return _impl_.ec_p256_public_key_; +} +inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_ec_p256_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::EcP256PublicKey* _msg = _internal_mutable_ec_p256_public_key(); + // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.ec_p256_public_key) + return _msg; +} +inline void GenericPublicKey::set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); + // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) +} + +// optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; +inline bool GenericPublicKey::has_rsa2048_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.rsa2048_public_key_ != nullptr); + return value; +} +inline void GenericPublicKey::clear_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rsa2048_public_key_ != nullptr) _impl_.rsa2048_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::_internal_rsa2048_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::SimpleRsaPublicKey* p = _impl_.rsa2048_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_SimpleRsaPublicKey_default_instance_); +} +inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::rsa2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.rsa2048_public_key) + return _internal_rsa2048_public_key(); +} +inline void GenericPublicKey::unsafe_arena_set_allocated_rsa2048_public_key( + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); + } + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) +} +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::SimpleRsaPublicKey* released = _impl_.rsa2048_public_key_; + _impl_.rsa2048_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.rsa2048_public_key) + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::SimpleRsaPublicKey* temp = _impl_.rsa2048_public_key_; + _impl_.rsa2048_public_key_ = nullptr; + return temp; +} +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rsa2048_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::SimpleRsaPublicKey>(GetArena()); + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(p); + } + return _impl_.rsa2048_public_key_; +} +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_rsa2048_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::SimpleRsaPublicKey* _msg = _internal_mutable_rsa2048_public_key(); + // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.rsa2048_public_key) + return _msg; +} +inline void GenericPublicKey::set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); + // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) +} + +// optional .securemessage.DhPublicKey dh2048_public_key = 4; +inline bool GenericPublicKey::has_dh2048_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.dh2048_public_key_ != nullptr); + return value; +} +inline void GenericPublicKey::clear_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dh2048_public_key_ != nullptr) _impl_.dh2048_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::securemessage::DhPublicKey& GenericPublicKey::_internal_dh2048_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::DhPublicKey* p = _impl_.dh2048_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_DhPublicKey_default_instance_); +} +inline const ::securemessage::DhPublicKey& GenericPublicKey::dh2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.dh2048_public_key) + return _internal_dh2048_public_key(); +} +inline void GenericPublicKey::unsafe_arena_set_allocated_dh2048_public_key( + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); + } + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) +} +inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securemessage::DhPublicKey* released = _impl_.dh2048_public_key_; + _impl_.dh2048_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.dh2048_public_key) + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securemessage::DhPublicKey* temp = _impl_.dh2048_public_key_; + _impl_.dh2048_public_key_ = nullptr; + return temp; +} +inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dh2048_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::DhPublicKey>(GetArena()); + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(p); + } + return _impl_.dh2048_public_key_; +} +inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_dh2048_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securemessage::DhPublicKey* _msg = _internal_mutable_dh2048_public_key(); + // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.dh2048_public_key) + return _msg; +} +inline void GenericPublicKey::set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); + // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace securemessage + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::securemessage::SigScheme> : std::true_type {}; +template <> +struct is_proto_enum<::securemessage::EncScheme> : std::true_type {}; +template <> +struct is_proto_enum<::securemessage::PublicKeyType> : std::true_type {}; + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fsecuremessage_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/ukey.pb.cc b/third_party/ukey2/compiled_proto/proto/ukey.pb.cc new file mode 100644 index 00000000..58121f3f --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/ukey.pb.cc @@ -0,0 +1,2211 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/ukey.proto +// Protobuf C++ Version: 6.33.3 + +#include "proto/ukey.pb.h" + +#include +#include +#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 securegcm { + +inline constexpr Ukey2ServerInit::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + random_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_{0}, + handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2ServerInit::Ukey2ServerInit(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ServerInit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ServerInitDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ServerInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ServerInitDefaultTypeInternal() {} + union { + Ukey2ServerInit _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; + +inline constexpr Ukey2Message::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + message_data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + message_type_{static_cast< ::securegcm::Ukey2Message_Type >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2Message::Ukey2Message(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2Message_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2MessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2MessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2MessageDefaultTypeInternal() {} + union { + Ukey2Message _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; + +inline constexpr Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + commitment_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientInit_CipherCommitment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() {} + union { + Ukey2ClientInit_CipherCommitment _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; + +inline constexpr Ukey2ClientFinished::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientFinished::Ukey2ClientFinished(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientFinished_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ClientFinishedDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ClientFinishedDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ClientFinishedDefaultTypeInternal() {} + union { + Ukey2ClientFinished _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; + +inline constexpr Ukey2Alert::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + error_message_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} + +template +PROTOBUF_CONSTEXPR Ukey2Alert::Ukey2Alert(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2Alert_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2AlertDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2AlertDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2AlertDefaultTypeInternal() {} + union { + Ukey2Alert _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; + +inline constexpr Ukey2ClientInit::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + cipher_commitments_{}, + random_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + next_protocol_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_{0} {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientInit::Ukey2ClientInit(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientInit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ClientInitDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ClientInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ClientInitDefaultTypeInternal() {} + union { + Ukey2ClientInit _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; +} // namespace securegcm +namespace securegcm { +PROTOBUF_CONSTINIT const uint32_t Ukey2Message_Type_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2Message_Type_strings[5] = {}; + +static const char Ukey2Message_Type_names[] = { + "ALERT" + "CLIENT_FINISH" + "CLIENT_INIT" + "SERVER_INIT" + "UNKNOWN_DO_NOT_USE" +}; + +static const ::google::protobuf::internal::EnumEntry Ukey2Message_Type_entries[] = { + {{&Ukey2Message_Type_names[0], 5}, 1}, + {{&Ukey2Message_Type_names[5], 13}, 4}, + {{&Ukey2Message_Type_names[18], 11}, 2}, + {{&Ukey2Message_Type_names[29], 11}, 3}, + {{&Ukey2Message_Type_names[40], 18}, 0}, +}; + +static const int Ukey2Message_Type_entries_by_number[] = { + 4, // 0 -> UNKNOWN_DO_NOT_USE + 0, // 1 -> ALERT + 2, // 2 -> CLIENT_INIT + 3, // 3 -> SERVER_INIT + 1, // 4 -> CLIENT_FINISH +}; + +const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2Message_Type_entries, Ukey2Message_Type_entries_by_number, 5, + Ukey2Message_Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Message_Type_entries, + Ukey2Message_Type_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Message_Type_strings[idx].get(); +} + +bool Ukey2Message_Type_Parse(::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + Ukey2Message_Type_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t Ukey2Alert_AlertType_internal_data_[] = { + 262145u, 65664u, 0u, 0u, 2147483648u, 15u, 200u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2Alert_AlertType_strings[10] = {}; + +static const char Ukey2Alert_AlertType_names[] = { + "BAD_HANDSHAKE_CIPHER" + "BAD_MESSAGE" + "BAD_MESSAGE_DATA" + "BAD_MESSAGE_TYPE" + "BAD_NEXT_PROTOCOL" + "BAD_PUBLIC_KEY" + "BAD_RANDOM" + "BAD_VERSION" + "INCORRECT_MESSAGE" + "INTERNAL_ERROR" +}; + +static const ::google::protobuf::internal::EnumEntry Ukey2Alert_AlertType_entries[] = { + {{&Ukey2Alert_AlertType_names[0], 20}, 102}, + {{&Ukey2Alert_AlertType_names[20], 11}, 1}, + {{&Ukey2Alert_AlertType_names[31], 16}, 4}, + {{&Ukey2Alert_AlertType_names[47], 16}, 2}, + {{&Ukey2Alert_AlertType_names[63], 17}, 103}, + {{&Ukey2Alert_AlertType_names[80], 14}, 104}, + {{&Ukey2Alert_AlertType_names[94], 10}, 101}, + {{&Ukey2Alert_AlertType_names[104], 11}, 100}, + {{&Ukey2Alert_AlertType_names[115], 17}, 3}, + {{&Ukey2Alert_AlertType_names[132], 14}, 200}, +}; + +static const int Ukey2Alert_AlertType_entries_by_number[] = { + 1, // 1 -> BAD_MESSAGE + 3, // 2 -> BAD_MESSAGE_TYPE + 8, // 3 -> INCORRECT_MESSAGE + 2, // 4 -> BAD_MESSAGE_DATA + 7, // 100 -> BAD_VERSION + 6, // 101 -> BAD_RANDOM + 0, // 102 -> BAD_HANDSHAKE_CIPHER + 4, // 103 -> BAD_NEXT_PROTOCOL + 5, // 104 -> BAD_PUBLIC_KEY + 9, // 200 -> INTERNAL_ERROR +}; + +const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2Alert_AlertType_entries, Ukey2Alert_AlertType_entries_by_number, 10, + Ukey2Alert_AlertType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Alert_AlertType_entries, + Ukey2Alert_AlertType_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Alert_AlertType_strings[idx].get(); +} + +bool Ukey2Alert_AlertType_Parse(::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + Ukey2Alert_AlertType_entries, 10, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +PROTOBUF_CONSTINIT const uint32_t Ukey2HandshakeCipher_internal_data_[] = { + 65536u, 131072u, 200u, 100u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2HandshakeCipher_strings[3] = {}; + +static const char Ukey2HandshakeCipher_names[] = { + "CURVE25519_SHA512" + "P256_SHA512" + "RESERVED" +}; + +static const ::google::protobuf::internal::EnumEntry Ukey2HandshakeCipher_entries[] = { + {{&Ukey2HandshakeCipher_names[0], 17}, 200}, + {{&Ukey2HandshakeCipher_names[17], 11}, 100}, + {{&Ukey2HandshakeCipher_names[28], 8}, 0}, +}; + +static const int Ukey2HandshakeCipher_entries_by_number[] = { + 2, // 0 -> RESERVED + 1, // 100 -> P256_SHA512 + 0, // 200 -> CURVE25519_SHA512 +}; + +const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2HandshakeCipher_entries, Ukey2HandshakeCipher_entries_by_number, 3, + Ukey2HandshakeCipher_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2HandshakeCipher_entries, + Ukey2HandshakeCipher_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2HandshakeCipher_strings[idx].get(); +} + +bool Ukey2HandshakeCipher_Parse(::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value) { + int int_value; + bool success = ::google::protobuf::internal::LookUpEnumValue( + Ukey2HandshakeCipher_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +// =================================================================== + +class Ukey2Message::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._has_bits_); +}; + +Ukey2Message::Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Message) +} +PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2Message& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + message_data_(arena, from.message_data_) {} + +Ukey2Message::Ukey2Message( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2Message& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2Message* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.message_type_ = from._impl_.message_type_; + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Message) +} +PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + message_data_(arena) {} + +inline void Ukey2Message::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.message_type_ = {}; +} +Ukey2Message::~Ukey2Message() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2Message) + SharedDtor(*this); +} +inline void Ukey2Message::SharedDtor(MessageLite& self) { + Ukey2Message& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.message_data_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2Message::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2Message(arena); +} +constexpr auto Ukey2Message::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Message), + alignof(Ukey2Message)); +} +constexpr auto Ukey2Message::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<23>{ + { + &_Ukey2Message_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2Message::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2Message::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Message::ByteSizeLong, + &Ukey2Message::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2Message", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_ = + Ukey2Message::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2Message::GetClassData() const { + return Ukey2Message_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2Message::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2Message, _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), + Ukey2Message_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2Message>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes message_data = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_)}}, + // optional .securegcm.Ukey2Message.Type message_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 4, + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2Message.Type message_type = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes message_data = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2Message::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Message) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.message_data_.ClearNonDefaultToEmpty(); + } + _impl_.message_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2Message& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2Message& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Message) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .securegcm.Ukey2Message.Type message_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_message_type(), target); + } + + // optional bytes message_data = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_message_data(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Message) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2Message::ByteSizeLong(const MessageLite& base) { + const Ukey2Message& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2Message::ByteSizeLong() const { + const Ukey2Message& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Message) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // optional bytes message_data = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_message_data()); + } + // optional .securegcm.Ukey2Message.Type message_type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_message_type()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void Ukey2Message::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Message) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_message_data(from._internal_message_data()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.message_type_ = from._impl_.message_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2Message::CopyFrom(const Ukey2Message& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Message) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2Message::InternalSwap(Ukey2Message* 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_.message_data_, &other->_impl_.message_data_, arena); + swap(_impl_.message_type_, other->_impl_.message_type_); +} + +// =================================================================== + +class Ukey2Alert::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._has_bits_); +}; + +Ukey2Alert::Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Alert) +} +PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2Alert& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + error_message_(arena, from.error_message_) {} + +Ukey2Alert::Ukey2Alert( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2Alert& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2Alert* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.type_ = from._impl_.type_; + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Alert) +} +PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_message_(arena), + type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} + +inline void Ukey2Alert::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +Ukey2Alert::~Ukey2Alert() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2Alert) + SharedDtor(*this); +} +inline void Ukey2Alert::SharedDtor(MessageLite& self) { + Ukey2Alert& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.error_message_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2Alert::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2Alert(arena); +} +constexpr auto Ukey2Alert::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Alert), + alignof(Ukey2Alert)); +} +constexpr auto Ukey2Alert::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<21>{ + { + &_Ukey2Alert_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2Alert::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2Alert::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Alert::ByteSizeLong, + &Ukey2Alert::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2Alert", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_ = + Ukey2Alert::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2Alert::GetClassData() const { + return Ukey2Alert_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2Alert::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _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), + Ukey2Alert_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2Alert>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string error_message = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_)}}, + // optional .securegcm.Ukey2Alert.AlertType type = 1; + {::_pbi::TcParser::FastEvS1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2Alert.AlertType type = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional string error_message = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2Alert_AlertType_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2Alert::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Alert) + ::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_.error_message_.ClearNonDefaultToEmpty(); + } + _impl_.type_ = 1; + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2Alert& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2Alert& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Alert) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .securegcm.Ukey2Alert.AlertType type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional string error_message = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_error_message(); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Alert) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2Alert::ByteSizeLong(const MessageLite& base) { + const Ukey2Alert& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2Alert::ByteSizeLong() const { + const Ukey2Alert& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Alert) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // optional string error_message = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error_message()); + } + // optional .securegcm.Ukey2Alert.AlertType type = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void Ukey2Alert::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Alert) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_error_message(from._internal_error_message()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.type_ = from._impl_.type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2Alert::CopyFrom(const Ukey2Alert& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Alert) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2Alert::InternalSwap(Ukey2Alert* 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_.error_message_, &other->_impl_.error_message_, arena); + swap(_impl_.type_, other->_impl_.type_); +} + +// =================================================================== + +class Ukey2ClientInit_CipherCommitment::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._has_bits_); +}; + +Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit.CipherCommitment) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientInit_CipherCommitment& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + commitment_(arena, from.commitment_) {} + +Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientInit_CipherCommitment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientInit_CipherCommitment* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit.CipherCommitment) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + commitment_(arena) {} + +inline void Ukey2ClientInit_CipherCommitment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.handshake_cipher_ = {}; +} +Ukey2ClientInit_CipherCommitment::~Ukey2ClientInit_CipherCommitment() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit.CipherCommitment) + SharedDtor(*this); +} +inline void Ukey2ClientInit_CipherCommitment::SharedDtor(MessageLite& self) { + Ukey2ClientInit_CipherCommitment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.commitment_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientInit_CipherCommitment(arena); +} +constexpr auto Ukey2ClientInit_CipherCommitment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientInit_CipherCommitment), + alignof(Ukey2ClientInit_CipherCommitment)); +} +constexpr auto Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_Ukey2ClientInit_CipherCommitment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientInit_CipherCommitment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientInit_CipherCommitment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit_CipherCommitment::ByteSizeLong, + &Ukey2ClientInit_CipherCommitment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientInit.CipherCommitment", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_ = + Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientInit_CipherCommitment::GetClassData() const { + return Ukey2ClientInit_CipherCommitment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2ClientInit_CipherCommitment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _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), + Ukey2ClientInit_CipherCommitment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes commitment = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_)}}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + {::_pbi::TcParser::FastEvS1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional bytes commitment = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientInit_CipherCommitment::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit.CipherCommitment) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.commitment_.ClearNonDefaultToEmpty(); + } + _impl_.handshake_cipher_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientInit_CipherCommitment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit.CipherCommitment) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_handshake_cipher(), target); + } + + // optional bytes commitment = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_commitment(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit.CipherCommitment) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong() const { + const Ukey2ClientInit_CipherCommitment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit.CipherCommitment) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // optional bytes commitment = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitment()); + } + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); + } + } + 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 Ukey2ClientInit_CipherCommitment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit.CipherCommitment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_commitment(from._internal_commitment()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2ClientInit_CipherCommitment::CopyFrom(const Ukey2ClientInit_CipherCommitment& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit.CipherCommitment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2ClientInit_CipherCommitment::InternalSwap(Ukey2ClientInit_CipherCommitment* 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_.commitment_, &other->_impl_.commitment_, arena); + swap(_impl_.handshake_cipher_, other->_impl_.handshake_cipher_); +} + +// =================================================================== + +class Ukey2ClientInit::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._has_bits_); +}; + +Ukey2ClientInit::Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientInit& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + cipher_commitments_{visibility, arena, from.cipher_commitments_}, + random_(arena, from.random_), + next_protocol_(arena, from.next_protocol_) {} + +Ukey2ClientInit::Ukey2ClientInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientInit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientInit* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.version_ = from._impl_.version_; + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + cipher_commitments_{visibility, arena}, + random_(arena), + next_protocol_(arena) {} + +inline void Ukey2ClientInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.version_ = {}; +} +Ukey2ClientInit::~Ukey2ClientInit() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit) + SharedDtor(*this); +} +inline void Ukey2ClientInit::SharedDtor(MessageLite& self) { + Ukey2ClientInit& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.random_.Destroy(); + this_._impl_.next_protocol_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2ClientInit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientInit(arena); +} +constexpr auto Ukey2ClientInit::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_) + + decltype(Ukey2ClientInit::_impl_.cipher_commitments_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Ukey2ClientInit), alignof(Ukey2ClientInit), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Ukey2ClientInit::PlacementNew_, + sizeof(Ukey2ClientInit), + alignof(Ukey2ClientInit)); + } +} +constexpr auto Ukey2ClientInit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_Ukey2ClientInit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientInit::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientInit::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit::ByteSizeLong, + &Ukey2ClientInit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientInit", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_ = + Ukey2ClientInit::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientInit::GetClassData() const { + return Ukey2ClientInit_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +Ukey2ClientInit::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _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), + Ukey2ClientInit_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string next_protocol = 4; + {::_pbi::TcParser::FastBS1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_)}}, + // optional int32 version = 1; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_)}}, + // optional bytes random = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_)}}, + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + {::_pbi::TcParser::FastMtR1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 version = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes random = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string next_protocol = 4; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientInit::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit) + ::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 (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.cipher_commitments_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.random_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.next_protocol_.ClearNonDefaultToEmpty(); + } + } + _impl_.version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional int32 version = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_version(), target); + } + + // optional bytes random = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_random(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_cipher_commitments_size()); + i < n; i++) { + const auto& repfield = this_._internal_cipher_commitments().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + // optional string next_protocol = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_next_protocol(); + 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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientInit::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientInit::ByteSizeLong() const { + const Ukey2ClientInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit) + ::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 .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_cipher_commitments_size(); + for (const auto& msg : this_._internal_cipher_commitments()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // optional bytes random = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_random()); + } + // optional string next_protocol = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_next_protocol()); + } + // optional int32 version = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void Ukey2ClientInit::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit) + 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_cipher_commitments()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_cipher_commitments()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_random(from._internal_random()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_next_protocol(from._internal_next_protocol()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2ClientInit::CopyFrom(const Ukey2ClientInit& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2ClientInit::InternalSwap(Ukey2ClientInit* 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_.cipher_commitments_.InternalSwap(&other->_impl_.cipher_commitments_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.random_, &other->_impl_.random_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_protocol_, &other->_impl_.next_protocol_, arena); + swap(_impl_.version_, other->_impl_.version_); +} + +// =================================================================== + +class Ukey2ServerInit::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._has_bits_); +}; + +Ukey2ServerInit::Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ServerInit) +} +PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ServerInit& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + random_(arena, from.random_), + public_key_(arena, from.public_key_) {} + +Ukey2ServerInit::Ukey2ServerInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ServerInit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ServerInit* 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(&_impl_) + + offsetof(Impl_, version_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, version_), + offsetof(Impl_, handshake_cipher_) - + offsetof(Impl_, version_) + + sizeof(Impl_::handshake_cipher_)); + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ServerInit) +} +PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + random_(arena), + public_key_(arena) {} + +inline void Ukey2ServerInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, version_), + 0, + offsetof(Impl_, handshake_cipher_) - + offsetof(Impl_, version_) + + sizeof(Impl_::handshake_cipher_)); +} +Ukey2ServerInit::~Ukey2ServerInit() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2ServerInit) + SharedDtor(*this); +} +inline void Ukey2ServerInit::SharedDtor(MessageLite& self) { + Ukey2ServerInit& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.random_.Destroy(); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2ServerInit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ServerInit(arena); +} +constexpr auto Ukey2ServerInit::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ServerInit), + alignof(Ukey2ServerInit)); +} +constexpr auto Ukey2ServerInit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_Ukey2ServerInit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ServerInit::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ServerInit::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ServerInit::ByteSizeLong, + &Ukey2ServerInit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ServerInit", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_ = + Ukey2ServerInit::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ServerInit::GetClassData() const { + return Ukey2ServerInit_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +Ukey2ServerInit::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _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), + Ukey2ServerInit_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ServerInit>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes public_key = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_)}}, + // optional int32 version = 1; + {::_pbi::TcParser::FastV32S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)}}, + // optional bytes random = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_)}}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + {::_pbi::TcParser::FastEvS1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 version = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes random = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional bytes public_key = 4; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ServerInit::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ServerInit) + ::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_.random_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { + ::memset(&_impl_.version_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.handshake_cipher_) - + reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.handshake_cipher_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ServerInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ServerInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ServerInit) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional int32 version = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_version(), target); + } + + // optional bytes random = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_random(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_handshake_cipher(), target); + } + + // optional bytes public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ServerInit) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ServerInit::ByteSizeLong(const MessageLite& base) { + const Ukey2ServerInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ServerInit::ByteSizeLong() const { + const Ukey2ServerInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ServerInit) + ::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 bytes random = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_random()); + } + // optional bytes public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + // optional int32 version = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); + } + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); + } + } + 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 Ukey2ServerInit::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ServerInit) + 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_random(from._internal_random()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_public_key(from._internal_public_key()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.version_ = from._impl_.version_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2ServerInit::CopyFrom(const Ukey2ServerInit& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ServerInit) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2ServerInit::InternalSwap(Ukey2ServerInit* 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_.random_, &other->_impl_.random_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_) + + sizeof(Ukey2ServerInit::_impl_.handshake_cipher_) + - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)>( + reinterpret_cast(&_impl_.version_), + reinterpret_cast(&other->_impl_.version_)); +} + +// =================================================================== + +class Ukey2ClientFinished::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_); +}; + +Ukey2ClientFinished::Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientFinished) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientFinished& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +Ukey2ClientFinished::Ukey2ClientFinished( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientFinished& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientFinished* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientFinished) +} +PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void Ukey2ClientFinished::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +Ukey2ClientFinished::~Ukey2ClientFinished() { + // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientFinished) + SharedDtor(*this); +} +inline void Ukey2ClientFinished::SharedDtor(MessageLite& self) { + Ukey2ClientFinished& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Ukey2ClientFinished::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientFinished(arena); +} +constexpr auto Ukey2ClientFinished::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientFinished), + alignof(Ukey2ClientFinished)); +} +constexpr auto Ukey2ClientFinished::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<30>{ + { + &_Ukey2ClientFinished_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientFinished::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientFinished::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientFinished::ByteSizeLong, + &Ukey2ClientFinished::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientFinished", + }; +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_ = + Ukey2ClientFinished::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientFinished::GetClassData() const { + return Ukey2ClientFinished_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +Ukey2ClientFinished::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Ukey2ClientFinished_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientFinished>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientFinished::Clear() { +// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientFinished) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientFinished& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientFinished& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientFinished) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional bytes public_key = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientFinished) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientFinished::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientFinished& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientFinished::ByteSizeLong() const { + const Ukey2ClientFinished& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientFinished) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // optional bytes public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} + +void Ukey2ClientFinished::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientFinished) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_public_key(from._internal_public_key()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} + +void Ukey2ClientFinished::CopyFrom(const Ukey2ClientFinished& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientFinished) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void Ukey2ClientFinished::InternalSwap(Ukey2ClientFinished* 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_.public_key_, &other->_impl_.public_key_, arena); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/ukey.pb.h b/third_party/ukey2/compiled_proto/proto/ukey.pb.h new file mode 100644 index 00000000..5169cf9d --- /dev/null +++ b/third_party/ukey2/compiled_proto/proto/ukey.pb.h @@ -0,0 +1,2324 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: proto/ukey.proto +// Protobuf C++ Version: 6.33.3 + +#ifndef proto_2fukey_2eproto_2epb_2eh +#define proto_2fukey_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_proto_2fukey_2eproto + +namespace google { +namespace protobuf { +namespace internal { +template +::absl::string_view GetAnyMessageName(); +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_proto_2fukey_2eproto { + static const ::uint32_t offsets[]; +}; +namespace securegcm { +enum Ukey2Alert_AlertType : int; +extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; +enum Ukey2HandshakeCipher : int; +extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; +enum Ukey2Message_Type : int; +extern const uint32_t Ukey2Message_Type_internal_data_[]; +class Ukey2Alert; +struct Ukey2AlertDefaultTypeInternal; +extern Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; +class Ukey2ClientFinished; +struct Ukey2ClientFinishedDefaultTypeInternal; +extern Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; +class Ukey2ClientInit; +struct Ukey2ClientInitDefaultTypeInternal; +extern Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; +class Ukey2ClientInit_CipherCommitment; +struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal; +extern Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; +class Ukey2Message; +struct Ukey2MessageDefaultTypeInternal; +extern Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; +class Ukey2ServerInit; +struct Ukey2ServerInitDefaultTypeInternal; +extern Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; +} // namespace securegcm +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::Ukey2Alert_AlertType_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2Alert_AlertType>; +template <> +internal::EnumTraitsT<::securegcm::Ukey2HandshakeCipher_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2HandshakeCipher>; +template <> +internal::EnumTraitsT<::securegcm::Ukey2Message_Type_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2Message_Type>; +} // namespace protobuf +} // namespace google + +namespace securegcm { +enum Ukey2Message_Type : int { + Ukey2Message_Type_UNKNOWN_DO_NOT_USE = 0, + Ukey2Message_Type_ALERT = 1, + Ukey2Message_Type_CLIENT_INIT = 2, + Ukey2Message_Type_SERVER_INIT = 3, + Ukey2Message_Type_CLIENT_FINISH = 4, +}; + +extern const uint32_t Ukey2Message_Type_internal_data_[]; +inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MIN = + static_cast(0); +inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MAX = + static_cast(4); +inline bool Ukey2Message_Type_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int Ukey2Message_Type_Type_ARRAYSIZE = 4 + 1; +const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value); +template +const ::std::string& Ukey2Message_Type_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return Ukey2Message_Type_Name(static_cast(value)); +} +bool Ukey2Message_Type_Parse( + ::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value); +enum Ukey2Alert_AlertType : int { + Ukey2Alert_AlertType_BAD_MESSAGE = 1, + Ukey2Alert_AlertType_BAD_MESSAGE_TYPE = 2, + Ukey2Alert_AlertType_INCORRECT_MESSAGE = 3, + Ukey2Alert_AlertType_BAD_MESSAGE_DATA = 4, + Ukey2Alert_AlertType_BAD_VERSION = 100, + Ukey2Alert_AlertType_BAD_RANDOM = 101, + Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER = 102, + Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL = 103, + Ukey2Alert_AlertType_BAD_PUBLIC_KEY = 104, + Ukey2Alert_AlertType_INTERNAL_ERROR = 200, +}; + +extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; +inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MIN = + static_cast(1); +inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MAX = + static_cast(200); +inline bool Ukey2Alert_AlertType_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Ukey2Alert_AlertType_internal_data_); +} +inline constexpr int Ukey2Alert_AlertType_AlertType_ARRAYSIZE = 200 + 1; +const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value); +template +const ::std::string& Ukey2Alert_AlertType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to AlertType_Name()."); + return Ukey2Alert_AlertType_Name(static_cast(value)); +} +bool Ukey2Alert_AlertType_Parse( + ::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value); +enum Ukey2HandshakeCipher : int { + RESERVED = 0, + P256_SHA512 = 100, + CURVE25519_SHA512 = 200, +}; + +extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; +inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MIN = + static_cast(0); +inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MAX = + static_cast(200); +inline bool Ukey2HandshakeCipher_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Ukey2HandshakeCipher_internal_data_); +} +inline constexpr int Ukey2HandshakeCipher_ARRAYSIZE = 200 + 1; +const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value); +template +const ::std::string& Ukey2HandshakeCipher_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to Ukey2HandshakeCipher_Name()."); + return Ukey2HandshakeCipher_Name(static_cast(value)); +} +bool Ukey2HandshakeCipher_Parse( + ::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value); + +// =================================================================== + + +// ------------------------------------------------------------------- + +class Ukey2ServerInit final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ServerInit) */ { + public: + inline Ukey2ServerInit() : Ukey2ServerInit(nullptr) {} + ~Ukey2ServerInit() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ServerInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ServerInit)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ServerInit(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ServerInit(const Ukey2ServerInit& from) : Ukey2ServerInit(nullptr, from) {} + inline Ukey2ServerInit(Ukey2ServerInit&& from) noexcept + : Ukey2ServerInit(nullptr, ::std::move(from)) {} + inline Ukey2ServerInit& operator=(const Ukey2ServerInit& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ServerInit& operator=(Ukey2ServerInit&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ServerInit& default_instance() { + return *reinterpret_cast( + &_Ukey2ServerInit_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(Ukey2ServerInit& a, Ukey2ServerInit& b) { a.Swap(&b); } + inline void Swap(Ukey2ServerInit* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ServerInit* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ServerInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ServerInit& from); + void MergeFrom(const Ukey2ServerInit& from) { Ukey2ServerInit::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ServerInit* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ServerInit"; } + + explicit Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ServerInit& from); + Ukey2ServerInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ServerInit&& from) noexcept + : Ukey2ServerInit(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRandomFieldNumber = 2, + kPublicKeyFieldNumber = 4, + kVersionFieldNumber = 1, + kHandshakeCipherFieldNumber = 3, + }; + // optional bytes random = 2; + bool has_random() const; + void clear_random() ; + const ::std::string& random() const; + template + void set_random(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_random(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); + void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_random() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); + + public: + // optional bytes public_key = 4; + bool has_public_key() const; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // optional int32 version = 1; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + bool has_handshake_cipher() const; + void clear_handshake_cipher() ; + ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; + void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + private: + ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; + void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ServerInit) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ServerInit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr random_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::int32_t version_; + int handshake_cipher_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; +// ------------------------------------------------------------------- + +class Ukey2Message final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Message) */ { + public: + inline Ukey2Message() : Ukey2Message(nullptr) {} + ~Ukey2Message() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2Message* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Message)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2Message(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2Message(const Ukey2Message& from) : Ukey2Message(nullptr, from) {} + inline Ukey2Message(Ukey2Message&& from) noexcept + : Ukey2Message(nullptr, ::std::move(from)) {} + inline Ukey2Message& operator=(const Ukey2Message& from) { + CopyFrom(from); + return *this; + } + inline Ukey2Message& operator=(Ukey2Message&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2Message& default_instance() { + return *reinterpret_cast( + &_Ukey2Message_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Ukey2Message& a, Ukey2Message& b) { a.Swap(&b); } + inline void Swap(Ukey2Message* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2Message* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2Message* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2Message& from); + void MergeFrom(const Ukey2Message& from) { Ukey2Message::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2Message* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Message"; } + + explicit Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Message& from); + Ukey2Message( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Message&& from) noexcept + : Ukey2Message(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using Type = Ukey2Message_Type; + static constexpr Type UNKNOWN_DO_NOT_USE = Ukey2Message_Type_UNKNOWN_DO_NOT_USE; + static constexpr Type ALERT = Ukey2Message_Type_ALERT; + static constexpr Type CLIENT_INIT = Ukey2Message_Type_CLIENT_INIT; + static constexpr Type SERVER_INIT = Ukey2Message_Type_SERVER_INIT; + static constexpr Type CLIENT_FINISH = Ukey2Message_Type_CLIENT_FINISH; + static inline bool Type_IsValid(int value) { + return Ukey2Message_Type_IsValid(value); + } + static constexpr Type Type_MIN = Ukey2Message_Type_Type_MIN; + static constexpr Type Type_MAX = Ukey2Message_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = Ukey2Message_Type_Type_ARRAYSIZE; + template + static inline const ::std::string& Type_Name(T value) { + return Ukey2Message_Type_Name(value); + } + static inline bool Type_Parse( + ::absl::string_view name, Type* PROTOBUF_NONNULL value) { + return Ukey2Message_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kMessageDataFieldNumber = 2, + kMessageTypeFieldNumber = 1, + }; + // optional bytes message_data = 2; + bool has_message_data() const; + void clear_message_data() ; + const ::std::string& message_data() const; + template + void set_message_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_message_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message_data(); + void set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_message_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_message_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_message_data(); + + public: + // optional .securegcm.Ukey2Message.Type message_type = 1; + bool has_message_type() const; + void clear_message_type() ; + ::securegcm::Ukey2Message_Type message_type() const; + void set_message_type(::securegcm::Ukey2Message_Type value); + + private: + ::securegcm::Ukey2Message_Type _internal_message_type() const; + void _internal_set_message_type(::securegcm::Ukey2Message_Type value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2Message) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2Message& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_data_; + int message_type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; +// ------------------------------------------------------------------- + +class Ukey2ClientInit_CipherCommitment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit.CipherCommitment) */ { + public: + inline Ukey2ClientInit_CipherCommitment() : Ukey2ClientInit_CipherCommitment(nullptr) {} + ~Ukey2ClientInit_CipherCommitment() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit_CipherCommitment)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from) : Ukey2ClientInit_CipherCommitment(nullptr, from) {} + inline Ukey2ClientInit_CipherCommitment(Ukey2ClientInit_CipherCommitment&& from) noexcept + : Ukey2ClientInit_CipherCommitment(nullptr, ::std::move(from)) {} + inline Ukey2ClientInit_CipherCommitment& operator=(const Ukey2ClientInit_CipherCommitment& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ClientInit_CipherCommitment& operator=(Ukey2ClientInit_CipherCommitment&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ClientInit_CipherCommitment& default_instance() { + return *reinterpret_cast( + &_Ukey2ClientInit_CipherCommitment_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Ukey2ClientInit_CipherCommitment& a, Ukey2ClientInit_CipherCommitment& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ClientInit_CipherCommitment& from); + void MergeFrom(const Ukey2ClientInit_CipherCommitment& from) { Ukey2ClientInit_CipherCommitment::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit.CipherCommitment"; } + + explicit Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit_CipherCommitment& from); + Ukey2ClientInit_CipherCommitment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit_CipherCommitment&& from) noexcept + : Ukey2ClientInit_CipherCommitment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCommitmentFieldNumber = 2, + kHandshakeCipherFieldNumber = 1, + }; + // optional bytes commitment = 2; + bool has_commitment() const; + void clear_commitment() ; + const ::std::string& commitment() const; + template + void set_commitment(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); + void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); + + public: + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + bool has_handshake_cipher() const; + void clear_handshake_cipher() ; + ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; + void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + private: + ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; + void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit.CipherCommitment) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientInit_CipherCommitment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr commitment_; + int handshake_cipher_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; +// ------------------------------------------------------------------- + +class Ukey2ClientFinished final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientFinished) */ { + public: + inline Ukey2ClientFinished() : Ukey2ClientFinished(nullptr) {} + ~Ukey2ClientFinished() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientFinished* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientFinished)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientFinished(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientFinished(const Ukey2ClientFinished& from) : Ukey2ClientFinished(nullptr, from) {} + inline Ukey2ClientFinished(Ukey2ClientFinished&& from) noexcept + : Ukey2ClientFinished(nullptr, ::std::move(from)) {} + inline Ukey2ClientFinished& operator=(const Ukey2ClientFinished& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ClientFinished& operator=(Ukey2ClientFinished&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ClientFinished& default_instance() { + return *reinterpret_cast( + &_Ukey2ClientFinished_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(Ukey2ClientFinished& a, Ukey2ClientFinished& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ClientFinished* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ClientFinished& from); + void MergeFrom(const Ukey2ClientFinished& from) { Ukey2ClientFinished::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientFinished"; } + + explicit Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientFinished& from); + Ukey2ClientFinished( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientFinished&& from) noexcept + : Ukey2ClientFinished(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + }; + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientFinished) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientFinished& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; +// ------------------------------------------------------------------- + +class Ukey2Alert final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Alert) */ { + public: + inline Ukey2Alert() : Ukey2Alert(nullptr) {} + ~Ukey2Alert() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2Alert* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Alert)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2Alert(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2Alert(const Ukey2Alert& from) : Ukey2Alert(nullptr, from) {} + inline Ukey2Alert(Ukey2Alert&& from) noexcept + : Ukey2Alert(nullptr, ::std::move(from)) {} + inline Ukey2Alert& operator=(const Ukey2Alert& from) { + CopyFrom(from); + return *this; + } + inline Ukey2Alert& operator=(Ukey2Alert&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2Alert& default_instance() { + return *reinterpret_cast( + &_Ukey2Alert_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Ukey2Alert& a, Ukey2Alert& b) { a.Swap(&b); } + inline void Swap(Ukey2Alert* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2Alert* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2Alert* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2Alert& from); + void MergeFrom(const Ukey2Alert& from) { Ukey2Alert::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2Alert* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Alert"; } + + explicit Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Alert& from); + Ukey2Alert( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Alert&& from) noexcept + : Ukey2Alert(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using AlertType = Ukey2Alert_AlertType; + static constexpr AlertType BAD_MESSAGE = Ukey2Alert_AlertType_BAD_MESSAGE; + static constexpr AlertType BAD_MESSAGE_TYPE = Ukey2Alert_AlertType_BAD_MESSAGE_TYPE; + static constexpr AlertType INCORRECT_MESSAGE = Ukey2Alert_AlertType_INCORRECT_MESSAGE; + static constexpr AlertType BAD_MESSAGE_DATA = Ukey2Alert_AlertType_BAD_MESSAGE_DATA; + static constexpr AlertType BAD_VERSION = Ukey2Alert_AlertType_BAD_VERSION; + static constexpr AlertType BAD_RANDOM = Ukey2Alert_AlertType_BAD_RANDOM; + static constexpr AlertType BAD_HANDSHAKE_CIPHER = Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER; + static constexpr AlertType BAD_NEXT_PROTOCOL = Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL; + static constexpr AlertType BAD_PUBLIC_KEY = Ukey2Alert_AlertType_BAD_PUBLIC_KEY; + static constexpr AlertType INTERNAL_ERROR = Ukey2Alert_AlertType_INTERNAL_ERROR; + static inline bool AlertType_IsValid(int value) { + return Ukey2Alert_AlertType_IsValid(value); + } + static constexpr AlertType AlertType_MIN = Ukey2Alert_AlertType_AlertType_MIN; + static constexpr AlertType AlertType_MAX = Ukey2Alert_AlertType_AlertType_MAX; + static constexpr int AlertType_ARRAYSIZE = Ukey2Alert_AlertType_AlertType_ARRAYSIZE; + template + static inline const ::std::string& AlertType_Name(T value) { + return Ukey2Alert_AlertType_Name(value); + } + static inline bool AlertType_Parse( + ::absl::string_view name, AlertType* PROTOBUF_NONNULL value) { + return Ukey2Alert_AlertType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kErrorMessageFieldNumber = 2, + kTypeFieldNumber = 1, + }; + // optional string error_message = 2; + bool has_error_message() const; + void clear_error_message() ; + const ::std::string& error_message() const; + template + void set_error_message(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_error_message(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error_message(); + void set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_error_message() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error_message(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error_message(); + + public: + // optional .securegcm.Ukey2Alert.AlertType type = 1; + bool has_type() const; + void clear_type() ; + ::securegcm::Ukey2Alert_AlertType type() const; + void set_type(::securegcm::Ukey2Alert_AlertType value); + + private: + ::securegcm::Ukey2Alert_AlertType _internal_type() const; + void _internal_set_type(::securegcm::Ukey2Alert_AlertType value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2Alert) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2Alert& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr error_message_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; +// ------------------------------------------------------------------- + +class Ukey2ClientInit final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit) */ { + public: + inline Ukey2ClientInit() : Ukey2ClientInit(nullptr) {} + ~Ukey2ClientInit() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientInit(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientInit(const Ukey2ClientInit& from) : Ukey2ClientInit(nullptr, from) {} + inline Ukey2ClientInit(Ukey2ClientInit&& from) noexcept + : Ukey2ClientInit(nullptr, ::std::move(from)) {} + inline Ukey2ClientInit& operator=(const Ukey2ClientInit& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ClientInit& operator=(Ukey2ClientInit&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ClientInit& default_instance() { + return *reinterpret_cast( + &_Ukey2ClientInit_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Ukey2ClientInit& a, Ukey2ClientInit& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientInit* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ClientInit* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ClientInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ClientInit& from); + void MergeFrom(const Ukey2ClientInit& from) { Ukey2ClientInit::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientInit* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit"; } + + explicit Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit& from); + Ukey2ClientInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit&& from) noexcept + : Ukey2ClientInit(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using CipherCommitment = Ukey2ClientInit_CipherCommitment; + + // accessors ------------------------------------------------------- + enum : int { + kCipherCommitmentsFieldNumber = 3, + kRandomFieldNumber = 2, + kNextProtocolFieldNumber = 4, + kVersionFieldNumber = 1, + }; + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + int cipher_commitments_size() const; + private: + int _internal_cipher_commitments_size() const; + + public: + void clear_cipher_commitments() ; + ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL mutable_cipher_commitments(int index); + ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL mutable_cipher_commitments(); + + private: + const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& _internal_cipher_commitments() const; + ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL _internal_mutable_cipher_commitments(); + public: + const ::securegcm::Ukey2ClientInit_CipherCommitment& cipher_commitments(int index) const; + ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL add_cipher_commitments(); + const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& cipher_commitments() const; + // optional bytes random = 2; + bool has_random() const; + void clear_random() ; + const ::std::string& random() const; + template + void set_random(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_random(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); + void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_random() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); + + public: + // optional string next_protocol = 4; + bool has_next_protocol() const; + void clear_next_protocol() ; + const ::std::string& next_protocol() const; + template + void set_next_protocol(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_next_protocol(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_next_protocol(); + void set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_next_protocol() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_next_protocol(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_next_protocol(); + + public: + // optional int32 version = 1; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientInit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment > cipher_commitments_; + ::google::protobuf::internal::ArenaStringPtr random_; + ::google::protobuf::internal::ArenaStringPtr next_protocol_; + ::int32_t version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_proto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// Ukey2Message + +// optional .securegcm.Ukey2Message.Type message_type = 1; +inline bool Ukey2Message::has_message_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Ukey2Message::clear_message_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::securegcm::Ukey2Message_Type Ukey2Message::message_type() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_type) + return _internal_message_type(); +} +inline void Ukey2Message::set_message_type(::securegcm::Ukey2Message_Type value) { + _internal_set_message_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_type) +} +inline ::securegcm::Ukey2Message_Type Ukey2Message::_internal_message_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2Message_Type>(_impl_.message_type_); +} +inline void Ukey2Message::_internal_set_message_type(::securegcm::Ukey2Message_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2Message_Type_internal_data_)); + _impl_.message_type_ = value; +} + +// optional bytes message_data = 2; +inline bool Ukey2Message::has_message_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Ukey2Message::clear_message_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Ukey2Message::message_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_data) + return _internal_message_data(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2Message::set_message_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.message_data_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_data) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2Message::mutable_message_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_message_data(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Message.message_data) + return _s; +} +inline const ::std::string& Ukey2Message::_internal_message_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.message_data_.Get(); +} +inline void Ukey2Message::_internal_set_message_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_data_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2Message::_internal_mutable_message_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.message_data_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2Message::release_message_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2Message.message_data) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.message_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.message_data_.Set("", GetArena()); + } + return released; +} +inline void Ukey2Message::set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.message_data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_data_.IsDefault()) { + _impl_.message_data_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Message.message_data) +} + +// ------------------------------------------------------------------- + +// Ukey2Alert + +// optional .securegcm.Ukey2Alert.AlertType type = 1; +inline bool Ukey2Alert::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Ukey2Alert::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::type() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.type) + return _internal_type(); +} +inline void Ukey2Alert::set_type(::securegcm::Ukey2Alert_AlertType value) { + _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.type) +} +inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2Alert_AlertType>(_impl_.type_); +} +inline void Ukey2Alert::_internal_set_type(::securegcm::Ukey2Alert_AlertType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2Alert_AlertType_internal_data_)); + _impl_.type_ = value; +} + +// optional string error_message = 2; +inline bool Ukey2Alert::has_error_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Ukey2Alert::clear_error_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_message_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Ukey2Alert::error_message() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.error_message) + return _internal_error_message(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2Alert::set_error_message(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.error_message_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.error_message) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::mutable_error_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error_message(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Alert.error_message) + return _s; +} +inline const ::std::string& Ukey2Alert::_internal_error_message() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.error_message_.Get(); +} +inline void Ukey2Alert::_internal_set_error_message(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_message_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::_internal_mutable_error_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.error_message_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2Alert::release_error_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2Alert.error_message) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_message_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_message_.Set("", GetArena()); + } + return released; +} +inline void Ukey2Alert::set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.error_message_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_message_.IsDefault()) { + _impl_.error_message_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Alert.error_message) +} + +// ------------------------------------------------------------------- + +// Ukey2ClientInit_CipherCommitment + +// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; +inline bool Ukey2ClientInit_CipherCommitment::has_handshake_cipher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Ukey2ClientInit_CipherCommitment::clear_handshake_cipher() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_cipher_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::handshake_cipher() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) + return _internal_handshake_cipher(); +} +inline void Ukey2ClientInit_CipherCommitment::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + _internal_set_handshake_cipher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) +} +inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::_internal_handshake_cipher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); +} +inline void Ukey2ClientInit_CipherCommitment::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); + _impl_.handshake_cipher_ = value; +} + +// optional bytes commitment = 2; +inline bool Ukey2ClientInit_CipherCommitment::has_commitment() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Ukey2ClientInit_CipherCommitment::clear_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commitment_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Ukey2ClientInit_CipherCommitment::commitment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.commitment) + return _internal_commitment(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit_CipherCommitment::set_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.commitment) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::mutable_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_commitment(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.CipherCommitment.commitment) + return _s; +} +inline const ::std::string& Ukey2ClientInit_CipherCommitment::_internal_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.commitment_.Get(); +} +inline void Ukey2ClientInit_CipherCommitment::_internal_set_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commitment_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_internal_mutable_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.commitment_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit_CipherCommitment::release_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.CipherCommitment.commitment) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commitment_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.commitment_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { + _impl_.commitment_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.CipherCommitment.commitment) +} + +// ------------------------------------------------------------------- + +// Ukey2ClientInit + +// optional int32 version = 1; +inline bool Ukey2ClientInit::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void Ukey2ClientInit::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline ::int32_t Ukey2ClientInit::version() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.version) + return _internal_version(); +} +inline void Ukey2ClientInit::set_version(::int32_t value) { + _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.version) +} +inline ::int32_t Ukey2ClientInit::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void Ukey2ClientInit::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} + +// optional bytes random = 2; +inline bool Ukey2ClientInit::has_random() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Ukey2ClientInit::clear_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& Ukey2ClientInit::random() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.random) + return _internal_random(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_random(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.random) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_random() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_random(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.random) + return _s; +} +inline const ::std::string& Ukey2ClientInit::_internal_random() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.random_.Get(); +} +inline void Ukey2ClientInit::_internal_set_random(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.random_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.random) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.random_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.random_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ClientInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.random_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { + _impl_.random_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.random) +} + +// repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; +inline int Ukey2ClientInit::_internal_cipher_commitments_size() const { + return _internal_cipher_commitments().size(); +} +inline int Ukey2ClientInit::cipher_commitments_size() const { + return _internal_cipher_commitments_size(); +} +inline void Ukey2ClientInit::clear_cipher_commitments() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cipher_commitments_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); +} +inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.cipher_commitments) + return _internal_mutable_cipher_commitments()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:securegcm.Ukey2ClientInit.cipher_commitments) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_cipher_commitments(); +} +inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::cipher_commitments(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.cipher_commitments) + return _internal_cipher_commitments().Get(index); +} +inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::add_cipher_commitments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::securegcm::Ukey2ClientInit_CipherCommitment* _add = + _internal_mutable_cipher_commitments()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_add:securegcm.Ukey2ClientInit.cipher_commitments) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& Ukey2ClientInit::cipher_commitments() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:securegcm.Ukey2ClientInit.cipher_commitments) + return _internal_cipher_commitments(); +} +inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& +Ukey2ClientInit::_internal_cipher_commitments() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cipher_commitments_; +} +inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL +Ukey2ClientInit::_internal_mutable_cipher_commitments() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.cipher_commitments_; +} + +// optional string next_protocol = 4; +inline bool Ukey2ClientInit::has_next_protocol() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void Ukey2ClientInit::clear_next_protocol() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_protocol_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& Ukey2ClientInit::next_protocol() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.next_protocol) + return _internal_next_protocol(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_next_protocol(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.next_protocol_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.next_protocol) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_next_protocol() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_next_protocol(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.next_protocol) + return _s; +} +inline const ::std::string& Ukey2ClientInit::_internal_next_protocol() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.next_protocol_.Get(); +} +inline void Ukey2ClientInit::_internal_set_next_protocol(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_protocol_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_next_protocol() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.next_protocol_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_next_protocol() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.next_protocol) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.next_protocol_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.next_protocol_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ClientInit::set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.next_protocol_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.next_protocol_.IsDefault()) { + _impl_.next_protocol_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.next_protocol) +} + +// ------------------------------------------------------------------- + +// Ukey2ServerInit + +// optional int32 version = 1; +inline bool Ukey2ServerInit::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + return value; +} +inline void Ukey2ServerInit::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::int32_t Ukey2ServerInit::version() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.version) + return _internal_version(); +} +inline void Ukey2ServerInit::set_version(::int32_t value) { + _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.version) +} +inline ::int32_t Ukey2ServerInit::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void Ukey2ServerInit::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} + +// optional bytes random = 2; +inline bool Ukey2ServerInit::has_random() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Ukey2ServerInit::clear_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Ukey2ServerInit::random() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.random) + return _internal_random(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_random(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.random) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_random() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_random(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.random) + return _s; +} +inline const ::std::string& Ukey2ServerInit::_internal_random() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.random_.Get(); +} +inline void Ukey2ServerInit::_internal_set_random(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.random_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.random) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.random_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.random_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ServerInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.random_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { + _impl_.random_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.random) +} + +// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; +inline bool Ukey2ServerInit::has_handshake_cipher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + return value; +} +inline void Ukey2ServerInit::clear_handshake_cipher() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_cipher_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); +} +inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::handshake_cipher() const { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.handshake_cipher) + return _internal_handshake_cipher(); +} +inline void Ukey2ServerInit::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + _internal_set_handshake_cipher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.handshake_cipher) +} +inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::_internal_handshake_cipher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); +} +inline void Ukey2ServerInit::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); + _impl_.handshake_cipher_ = value; +} + +// optional bytes public_key = 4; +inline bool Ukey2ServerInit::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void Ukey2ServerInit::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& Ukey2ServerInit::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.public_key) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.public_key) + return _s; +} +inline const ::std::string& Ukey2ServerInit::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void Ukey2ServerInit::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.public_key) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ServerInit::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.public_key) +} + +// ------------------------------------------------------------------- + +// Ukey2ClientFinished + +// optional bytes public_key = 1; +inline bool Ukey2ClientFinished::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + return value; +} +inline void Ukey2ClientFinished::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& Ukey2ClientFinished::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientFinished.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientFinished::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientFinished.public_key) +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientFinished.public_key) + return _s; +} +inline const ::std::string& Ukey2ClientFinished::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void Ukey2ClientFinished::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientFinished::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientFinished.public_key) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void Ukey2ClientFinished::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientFinished.public_key) +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace securegcm + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::securegcm::Ukey2Message_Type> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Ukey2Alert_AlertType> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Ukey2HandshakeCipher> : std::true_type {}; + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // proto_2fukey_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.cc index 09acd422..26151dca 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.cc +++ b/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.cc @@ -1,1586 +1,1834 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/device_to_device_messages.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/device_to_device_messages.proto +// Protobuf C++ Version: 6.33.3 -#include "proto/device_to_device_messages.pb.h" +#include "src/main/proto/device_to_device_messages.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// 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 securegcm { -constexpr DeviceToDeviceMessage::DeviceToDeviceMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sequence_number_(0){} -struct DeviceToDeviceMessageDefaultTypeInternal { - constexpr DeviceToDeviceMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DeviceToDeviceMessageDefaultTypeInternal() {} - union { - DeviceToDeviceMessage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; -constexpr InitiatorHello::InitiatorHello( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : public_dh_key_(nullptr) - , protocol_version_(0){} -struct InitiatorHelloDefaultTypeInternal { - constexpr InitiatorHelloDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~InitiatorHelloDefaultTypeInternal() {} - union { - InitiatorHello _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; -constexpr ResponderHello::ResponderHello( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : public_dh_key_(nullptr) - , protocol_version_(0){} -struct ResponderHelloDefaultTypeInternal { - constexpr ResponderHelloDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ResponderHelloDefaultTypeInternal() {} - union { - ResponderHello _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; -constexpr EcPoint::EcPoint( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : x_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , y_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , curve_(1) -{} + +inline constexpr EcPoint::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + x_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + curve_{static_cast< ::securegcm::Curve >(1)} {} + +template +PROTOBUF_CONSTEXPR EcPoint::EcPoint(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(EcPoint_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct EcPointDefaultTypeInternal { - constexpr EcPointDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EcPointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EcPointDefaultTypeInternal() {} union { EcPoint _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EcPointDefaultTypeInternal _EcPoint_default_instance_; -constexpr SpakeHandshakeMessage::SpakeHandshakeMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : hash_value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ec_point_(nullptr) - , flow_number_(0){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcPointDefaultTypeInternal _EcPoint_default_instance_; + +inline constexpr DeviceToDeviceMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + message_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + sequence_number_{0} {} + +template +PROTOBUF_CONSTEXPR DeviceToDeviceMessage::DeviceToDeviceMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DeviceToDeviceMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DeviceToDeviceMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeviceToDeviceMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DeviceToDeviceMessageDefaultTypeInternal() {} + union { + DeviceToDeviceMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; + +inline constexpr SpakeHandshakeMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + hash_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + payload_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ec_point_{nullptr}, + flow_number_{0} {} + +template +PROTOBUF_CONSTEXPR SpakeHandshakeMessage::SpakeHandshakeMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SpakeHandshakeMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SpakeHandshakeMessageDefaultTypeInternal { - constexpr SpakeHandshakeMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SpakeHandshakeMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SpakeHandshakeMessageDefaultTypeInternal() {} union { SpakeHandshakeMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; + +inline constexpr ResponderHello::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_dh_key_{nullptr}, + protocol_version_{0} {} + +template +PROTOBUF_CONSTEXPR ResponderHello::ResponderHello(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ResponderHello_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ResponderHelloDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponderHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponderHelloDefaultTypeInternal() {} + union { + ResponderHello _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; + +inline constexpr InitiatorHello::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_dh_key_{nullptr}, + protocol_version_{0} {} + +template +PROTOBUF_CONSTEXPR InitiatorHello::InitiatorHello(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(InitiatorHello_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct InitiatorHelloDefaultTypeInternal { + PROTOBUF_CONSTEXPR InitiatorHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InitiatorHelloDefaultTypeInternal() {} + union { + InitiatorHello _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; } // namespace securegcm namespace securegcm { -bool Curve_IsValid(int value) { - switch (value) { - case 1: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Curve_internal_data_[] = { + 65537u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Curve_strings[1] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Curve_strings[1] = {}; +static const char Curve_names[] = { + "ED_25519" +}; -static const char Curve_names[] = - "ED_25519"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Curve_entries[] = { - { {Curve_names + 0, 8}, 1 }, +static const ::google::protobuf::internal::EnumEntry Curve_entries[] = { + {{&Curve_names[0], 8}, 1}, }; static const int Curve_entries_by_number[] = { - 0, // 1 -> ED_25519 + 0, // 1 -> ED_25519 }; -const std::string& Curve_Name( - Curve value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Curve_entries, - Curve_entries_by_number, - 1, Curve_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Curve_entries, - Curve_entries_by_number, - 1, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Curve_strings[idx].get(); +const ::std::string& Curve_Name(Curve value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Curve_entries, Curve_entries_by_number, 1, + Curve_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Curve_entries, + Curve_entries_by_number, + 1, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Curve_strings[idx].get(); } -bool Curve_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Curve* value) { + +bool Curve_Parse(::absl::string_view name, Curve* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Curve_entries, 1, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class DeviceToDeviceMessage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_message(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_sequence_number(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_); }; -DeviceToDeviceMessage::DeviceToDeviceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DeviceToDeviceMessage::DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.DeviceToDeviceMessage) } -DeviceToDeviceMessage::DeviceToDeviceMessage(const DeviceToDeviceMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_message()) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), - GetArenaForAllocation()); - } - sequence_number_ = from.sequence_number_; +PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::DeviceToDeviceMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + message_(arena, from.message_) {} + +DeviceToDeviceMessage::DeviceToDeviceMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DeviceToDeviceMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DeviceToDeviceMessage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.sequence_number_ = from._impl_.sequence_number_; + // @@protoc_insertion_point(copy_constructor:securegcm.DeviceToDeviceMessage) } +PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + message_(arena) {} -inline void DeviceToDeviceMessage::SharedCtor() { -message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -sequence_number_ = 0; +inline void DeviceToDeviceMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.sequence_number_ = {}; } - DeviceToDeviceMessage::~DeviceToDeviceMessage() { // @@protoc_insertion_point(destructor:securegcm.DeviceToDeviceMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void DeviceToDeviceMessage::SharedDtor(MessageLite& self) { + DeviceToDeviceMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.message_.Destroy(); + this_._impl_.~Impl_(); } -inline void DeviceToDeviceMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL DeviceToDeviceMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DeviceToDeviceMessage(arena); +} +constexpr auto DeviceToDeviceMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DeviceToDeviceMessage), + alignof(DeviceToDeviceMessage)); +} +constexpr auto DeviceToDeviceMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_DeviceToDeviceMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DeviceToDeviceMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DeviceToDeviceMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DeviceToDeviceMessage::ByteSizeLong, + &DeviceToDeviceMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._cached_size_), + true, + }, + "securegcm.DeviceToDeviceMessage", + }; } -void DeviceToDeviceMessage::ArenaDtor(void* object) { - DeviceToDeviceMessage* _this = reinterpret_cast< DeviceToDeviceMessage* >(object); - (void)_this; -} -void DeviceToDeviceMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DeviceToDeviceMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_ = + DeviceToDeviceMessage::InternalGenerateClassData_(); -void DeviceToDeviceMessage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DeviceToDeviceMessage::GetClassData() const { + return DeviceToDeviceMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +DeviceToDeviceMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DeviceToDeviceMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::DeviceToDeviceMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 sequence_number = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_)}}, + // optional bytes message = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes message = 1; + {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 sequence_number = 2; + {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DeviceToDeviceMessage::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.DeviceToDeviceMessage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - message_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.message_.ClearNonDefaultToEmpty(); } - sequence_number_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.sequence_number_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* DeviceToDeviceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes message = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 sequence_number = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_sequence_number(&has_bits); - sequence_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DeviceToDeviceMessage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DeviceToDeviceMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DeviceToDeviceMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.DeviceToDeviceMessage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes message = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_message(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_message(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional int32 sequence_number = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_sequence_number(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_sequence_number(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.DeviceToDeviceMessage) return target; } -size_t DeviceToDeviceMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceToDeviceMessage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DeviceToDeviceMessage::ByteSizeLong(const MessageLite& base) { + const DeviceToDeviceMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DeviceToDeviceMessage::ByteSizeLong() const { + const DeviceToDeviceMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceToDeviceMessage) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes message = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_message()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_message()); } - // optional int32 sequence_number = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sequence_number()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_sequence_number()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DeviceToDeviceMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DeviceToDeviceMessage::MergeFrom(const DeviceToDeviceMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceToDeviceMessage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_message(from._internal_message()); - } - if (cached_has_bits & 0x00000002u) { - sequence_number_ = from.sequence_number_; - } - _has_bits_[0] |= cached_has_bits; +void DeviceToDeviceMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceToDeviceMessage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_message(from._internal_message()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.sequence_number_ = from._impl_.sequence_number_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DeviceToDeviceMessage::CopyFrom(const DeviceToDeviceMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceToDeviceMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceToDeviceMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool DeviceToDeviceMessage::IsInitialized() const { - return true; -} -void DeviceToDeviceMessage::InternalSwap(DeviceToDeviceMessage* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void DeviceToDeviceMessage::InternalSwap(DeviceToDeviceMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &message_, lhs_arena, - &other->message_, rhs_arena - ); - swap(sequence_number_, other->sequence_number_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + swap(_impl_.sequence_number_, other->_impl_.sequence_number_); } -std::string DeviceToDeviceMessage::GetTypeName() const { - return "securegcm.DeviceToDeviceMessage"; -} - - // =================================================================== class InitiatorHello::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::securemessage::GenericPublicKey& public_dh_key(const InitiatorHello* msg); - static void set_has_public_dh_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_protocol_version(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._has_bits_); }; -const ::securemessage::GenericPublicKey& -InitiatorHello::_Internal::public_dh_key(const InitiatorHello* msg) { - return *msg->public_dh_key_; -} void InitiatorHello::clear_public_dh_key() { - if (public_dh_key_ != nullptr) public_dh_key_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -InitiatorHello::InitiatorHello(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +InitiatorHello::InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.InitiatorHello) } -InitiatorHello::InitiatorHello(const InitiatorHello& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_public_dh_key()) { - public_dh_key_ = new ::securemessage::GenericPublicKey(*from.public_dh_key_); - } else { - public_dh_key_ = nullptr; - } - protocol_version_ = from.protocol_version_; +PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::InitiatorHello& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +InitiatorHello::InitiatorHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const InitiatorHello& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + InitiatorHello* 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_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) + : nullptr; + _impl_.protocol_version_ = from._impl_.protocol_version_; + // @@protoc_insertion_point(copy_constructor:securegcm.InitiatorHello) } +PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void InitiatorHello::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&public_dh_key_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&protocol_version_) - - reinterpret_cast(&public_dh_key_)) + sizeof(protocol_version_)); +inline void InitiatorHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, public_dh_key_), + 0, + offsetof(Impl_, protocol_version_) - + offsetof(Impl_, public_dh_key_) + + sizeof(Impl_::protocol_version_)); } - InitiatorHello::~InitiatorHello() { // @@protoc_insertion_point(destructor:securegcm.InitiatorHello) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void InitiatorHello::SharedDtor(MessageLite& self) { + InitiatorHello& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.public_dh_key_; + this_._impl_.~Impl_(); } -inline void InitiatorHello::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete public_dh_key_; +inline void* PROTOBUF_NONNULL InitiatorHello::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) InitiatorHello(arena); +} +constexpr auto InitiatorHello::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InitiatorHello), + alignof(InitiatorHello)); +} +constexpr auto InitiatorHello::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_InitiatorHello_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + InitiatorHello::IsInitializedImpl, + &InitiatorHello::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InitiatorHello::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &InitiatorHello::ByteSizeLong, + &InitiatorHello::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._cached_size_), + true, + }, + "securegcm.InitiatorHello", + }; } -void InitiatorHello::ArenaDtor(void* object) { - InitiatorHello* _this = reinterpret_cast< InitiatorHello* >(object); - (void)_this; -} -void InitiatorHello::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void InitiatorHello::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_ = + InitiatorHello::InternalGenerateClassData_(); -void InitiatorHello::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +InitiatorHello::GetClassData() const { + return InitiatorHello_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +InitiatorHello::_table_ = { + { + PROTOBUF_FIELD_OFFSET(InitiatorHello, _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), + InitiatorHello_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::InitiatorHello>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 protocol_version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_)}}, + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 protocol_version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void InitiatorHello::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.InitiatorHello) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(public_dh_key_ != nullptr); - public_dh_key_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); + _impl_.public_dh_key_->Clear(); } - protocol_version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.protocol_version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* InitiatorHello::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .securemessage.GenericPublicKey public_dh_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_public_dh_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 protocol_version = 2 [default = 0]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_protocol_version(&has_bits); - protocol_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* InitiatorHello::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const InitiatorHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const InitiatorHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.InitiatorHello) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::public_dh_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, + stream); } // optional int32 protocol_version = 2 [default = 0]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_protocol_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_protocol_version(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.InitiatorHello) return target; } -size_t InitiatorHello::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.InitiatorHello) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t InitiatorHello::ByteSizeLong(const MessageLite& base) { + const InitiatorHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t InitiatorHello::ByteSizeLong() const { + const InitiatorHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.InitiatorHello) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *public_dh_key_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); } - // optional int32 protocol_version = 2 [default = 0]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_protocol_version()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_protocol_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void InitiatorHello::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void InitiatorHello::MergeFrom(const InitiatorHello& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.InitiatorHello) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_public_dh_key()->::securemessage::GenericPublicKey::MergeFrom(from._internal_public_dh_key()); - } - if (cached_has_bits & 0x00000002u) { - protocol_version_ = from.protocol_version_; - } - _has_bits_[0] |= cached_has_bits; +void InitiatorHello::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.InitiatorHello) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); + if (_this->_impl_.public_dh_key_ == nullptr) { + _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); + } else { + _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.protocol_version_ = from._impl_.protocol_version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void InitiatorHello::CopyFrom(const InitiatorHello& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.InitiatorHello) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.InitiatorHello) if (&from == this) return; Clear(); MergeFrom(from); } -bool InitiatorHello::IsInitialized() const { - if (_internal_has_public_dh_key()) { - if (!public_dh_key_->IsInitialized()) return false; +PROTOBUF_NOINLINE bool InitiatorHello::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.public_dh_key_->IsInitialized()) return false; } return true; } -void InitiatorHello::InternalSwap(InitiatorHello* other) { - using std::swap; +void InitiatorHello::InternalSwap(InitiatorHello* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(InitiatorHello, protocol_version_) - + sizeof(InitiatorHello::protocol_version_) - - PROTOBUF_FIELD_OFFSET(InitiatorHello, public_dh_key_)>( - reinterpret_cast(&public_dh_key_), - reinterpret_cast(&other->public_dh_key_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_) + + sizeof(InitiatorHello::_impl_.protocol_version_) + - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)>( + reinterpret_cast(&_impl_.public_dh_key_), + reinterpret_cast(&other->_impl_.public_dh_key_)); } -std::string InitiatorHello::GetTypeName() const { - return "securegcm.InitiatorHello"; -} - - // =================================================================== class ResponderHello::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::securemessage::GenericPublicKey& public_dh_key(const ResponderHello* msg); - static void set_has_public_dh_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_protocol_version(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._has_bits_); }; -const ::securemessage::GenericPublicKey& -ResponderHello::_Internal::public_dh_key(const ResponderHello* msg) { - return *msg->public_dh_key_; -} void ResponderHello::clear_public_dh_key() { - if (public_dh_key_ != nullptr) public_dh_key_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -ResponderHello::ResponderHello(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ResponderHello::ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.ResponderHello) } -ResponderHello::ResponderHello(const ResponderHello& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_public_dh_key()) { - public_dh_key_ = new ::securemessage::GenericPublicKey(*from.public_dh_key_); - } else { - public_dh_key_ = nullptr; - } - protocol_version_ = from.protocol_version_; +PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::ResponderHello& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +ResponderHello::ResponderHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ResponderHello& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ResponderHello* 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_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) + : nullptr; + _impl_.protocol_version_ = from._impl_.protocol_version_; + // @@protoc_insertion_point(copy_constructor:securegcm.ResponderHello) } +PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void ResponderHello::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&public_dh_key_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&protocol_version_) - - reinterpret_cast(&public_dh_key_)) + sizeof(protocol_version_)); +inline void ResponderHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, public_dh_key_), + 0, + offsetof(Impl_, protocol_version_) - + offsetof(Impl_, public_dh_key_) + + sizeof(Impl_::protocol_version_)); } - ResponderHello::~ResponderHello() { // @@protoc_insertion_point(destructor:securegcm.ResponderHello) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ResponderHello::SharedDtor(MessageLite& self) { + ResponderHello& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.public_dh_key_; + this_._impl_.~Impl_(); } -inline void ResponderHello::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete public_dh_key_; +inline void* PROTOBUF_NONNULL ResponderHello::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ResponderHello(arena); +} +constexpr auto ResponderHello::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ResponderHello), + alignof(ResponderHello)); +} +constexpr auto ResponderHello::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_ResponderHello_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + ResponderHello::IsInitializedImpl, + &ResponderHello::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResponderHello::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ResponderHello::ByteSizeLong, + &ResponderHello::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._cached_size_), + true, + }, + "securegcm.ResponderHello", + }; } -void ResponderHello::ArenaDtor(void* object) { - ResponderHello* _this = reinterpret_cast< ResponderHello* >(object); - (void)_this; -} -void ResponderHello::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ResponderHello::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_ = + ResponderHello::InternalGenerateClassData_(); -void ResponderHello::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ResponderHello::GetClassData() const { + return ResponderHello_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +ResponderHello::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ResponderHello, _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), + ResponderHello_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::ResponderHello>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 protocol_version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_)}}, + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securemessage.GenericPublicKey public_dh_key = 1; + {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 protocol_version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ResponderHello::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.ResponderHello) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(public_dh_key_ != nullptr); - public_dh_key_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); + _impl_.public_dh_key_->Clear(); } - protocol_version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.protocol_version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* ResponderHello::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .securemessage.GenericPublicKey public_dh_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_public_dh_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 protocol_version = 2 [default = 0]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_protocol_version(&has_bits); - protocol_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ResponderHello::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ResponderHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ResponderHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.ResponderHello) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::public_dh_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, + stream); } // optional int32 protocol_version = 2 [default = 0]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_protocol_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_protocol_version(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.ResponderHello) return target; } -size_t ResponderHello::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.ResponderHello) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ResponderHello::ByteSizeLong(const MessageLite& base) { + const ResponderHello& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ResponderHello::ByteSizeLong() const { + const ResponderHello& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.ResponderHello) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *public_dh_key_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); } - // optional int32 protocol_version = 2 [default = 0]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_protocol_version()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_protocol_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ResponderHello::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ResponderHello::MergeFrom(const ResponderHello& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.ResponderHello) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_public_dh_key()->::securemessage::GenericPublicKey::MergeFrom(from._internal_public_dh_key()); - } - if (cached_has_bits & 0x00000002u) { - protocol_version_ = from.protocol_version_; - } - _has_bits_[0] |= cached_has_bits; +void ResponderHello::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.ResponderHello) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); + if (_this->_impl_.public_dh_key_ == nullptr) { + _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); + } else { + _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.protocol_version_ = from._impl_.protocol_version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ResponderHello::CopyFrom(const ResponderHello& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.ResponderHello) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.ResponderHello) if (&from == this) return; Clear(); MergeFrom(from); } -bool ResponderHello::IsInitialized() const { - if (_internal_has_public_dh_key()) { - if (!public_dh_key_->IsInitialized()) return false; +PROTOBUF_NOINLINE bool ResponderHello::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.public_dh_key_->IsInitialized()) return false; } return true; } -void ResponderHello::InternalSwap(ResponderHello* other) { - using std::swap; +void ResponderHello::InternalSwap(ResponderHello* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResponderHello, protocol_version_) - + sizeof(ResponderHello::protocol_version_) - - PROTOBUF_FIELD_OFFSET(ResponderHello, public_dh_key_)>( - reinterpret_cast(&public_dh_key_), - reinterpret_cast(&other->public_dh_key_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_) + + sizeof(ResponderHello::_impl_.protocol_version_) + - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)>( + reinterpret_cast(&_impl_.public_dh_key_), + reinterpret_cast(&other->_impl_.public_dh_key_)); } -std::string ResponderHello::GetTypeName() const { - return "securegcm.ResponderHello"; -} - - // =================================================================== class EcPoint::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_curve(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; } }; -EcPoint::EcPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +EcPoint::EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.EcPoint) } -EcPoint::EcPoint(const EcPoint& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - x_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_x()) { - x_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_x(), - GetArenaForAllocation()); - } - y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_y()) { - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_y(), - GetArenaForAllocation()); - } - curve_ = from.curve_; +PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::EcPoint& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + x_(arena, from.x_), + y_(arena, from.y_) {} + +EcPoint::EcPoint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EcPoint& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EcPoint* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.curve_ = from._impl_.curve_; + // @@protoc_insertion_point(copy_constructor:securegcm.EcPoint) } +PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + x_(arena), + y_(arena), + curve_{static_cast< ::securegcm::Curve >(1)} {} -inline void EcPoint::SharedCtor() { -x_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -curve_ = 1; +inline void EcPoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - EcPoint::~EcPoint() { // @@protoc_insertion_point(destructor:securegcm.EcPoint) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void EcPoint::SharedDtor(MessageLite& self) { + EcPoint& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.x_.Destroy(); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); } -inline void EcPoint::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - x_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - y_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL EcPoint::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EcPoint(arena); +} +constexpr auto EcPoint::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcPoint), + alignof(EcPoint)); +} +constexpr auto EcPoint::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<18>{ + { + &_EcPoint_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + EcPoint::IsInitializedImpl, + &EcPoint::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EcPoint::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &EcPoint::ByteSizeLong, + &EcPoint::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._cached_size_), + true, + }, + "securegcm.EcPoint", + }; } -void EcPoint::ArenaDtor(void* object) { - EcPoint* _this = reinterpret_cast< EcPoint* >(object); - (void)_this; -} -void EcPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EcPoint::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_ = + EcPoint::InternalGenerateClassData_(); -void EcPoint::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EcPoint::GetClassData() const { + return EcPoint_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +EcPoint::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + EcPoint_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::EcPoint>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // required .securegcm.Curve curve = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 2, 1, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_)}}, + // required bytes x = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_)}}, + // required bytes y = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securegcm.Curve curve = 1; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // required bytes x = 2; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes y = 3; + {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {1, 1}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void EcPoint::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.EcPoint) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - x_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.x_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - y_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.y_.ClearNonDefaultToEmpty(); } - curve_ = 1; + _impl_.curve_ = 1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* EcPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required .securegcm.Curve curve = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Curve_IsValid(val))) { - _internal_set_curve(static_cast<::securegcm::Curve>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // required bytes x = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_x(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // required bytes y = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_y(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EcPoint::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EcPoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EcPoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.EcPoint) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required .securegcm.Curve curve = 1; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_curve(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_curve(), target); } // required bytes x = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_x(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_x(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // required bytes y = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_y(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.EcPoint) return target; } -size_t EcPoint::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securegcm.EcPoint) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EcPoint::ByteSizeLong(const MessageLite& base) { + const EcPoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EcPoint::ByteSizeLong() const { + const EcPoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.EcPoint) + ::size_t total_size = 0; - if (_internal_has_x()) { - // required bytes x = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_x()); - } - - if (_internal_has_y()) { - // required bytes y = 3; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_y()); - } - - if (_internal_has_curve()) { - // required .securegcm.Curve curve = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_curve()); - } - - return total_size; -} -size_t EcPoint::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.EcPoint) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required bytes x = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_x()); - - // required bytes y = 3; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_y()); - - // required .securegcm.Curve curve = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_curve()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // required bytes x = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_x()); + } + // required bytes y = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } + // required .securegcm.Curve curve = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_curve()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void EcPoint::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void EcPoint::MergeFrom(const EcPoint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.EcPoint) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_x(from._internal_x()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_y(from._internal_y()); - } - if (cached_has_bits & 0x00000004u) { - curve_ = from.curve_; - } - _has_bits_[0] |= cached_has_bits; +void EcPoint::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.EcPoint) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_x(from._internal_x()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_y(from._internal_y()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.curve_ = from._impl_.curve_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void EcPoint::CopyFrom(const EcPoint& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.EcPoint) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.EcPoint) if (&from == this) return; Clear(); MergeFrom(from); } -bool EcPoint::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool EcPoint::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void EcPoint::InternalSwap(EcPoint* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void EcPoint::InternalSwap(EcPoint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &x_, lhs_arena, - &other->x_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &y_, lhs_arena, - &other->y_, rhs_arena - ); - swap(curve_, other->curve_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.x_, &other->_impl_.x_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); + swap(_impl_.curve_, other->_impl_.curve_); } -std::string EcPoint::GetTypeName() const { - return "securegcm.EcPoint"; -} - - // =================================================================== class SpakeHandshakeMessage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_flow_number(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::securegcm::EcPoint& ec_point(const SpakeHandshakeMessage* msg); - static void set_has_ec_point(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_hash_value(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_payload(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._has_bits_); }; -const ::securegcm::EcPoint& -SpakeHandshakeMessage::_Internal::ec_point(const SpakeHandshakeMessage* msg) { - return *msg->ec_point_; -} -SpakeHandshakeMessage::SpakeHandshakeMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SpakeHandshakeMessage::SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.SpakeHandshakeMessage) } -SpakeHandshakeMessage::SpakeHandshakeMessage(const SpakeHandshakeMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - hash_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - hash_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_hash_value()) { - hash_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash_value(), - GetArenaForAllocation()); - } - payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - payload_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_payload()) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(), - GetArenaForAllocation()); - } - if (from._internal_has_ec_point()) { - ec_point_ = new ::securegcm::EcPoint(*from.ec_point_); - } else { - ec_point_ = nullptr; - } - flow_number_ = from.flow_number_; +PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::SpakeHandshakeMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + hash_value_(arena, from.hash_value_), + payload_(arena, from.payload_) {} + +SpakeHandshakeMessage::SpakeHandshakeMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SpakeHandshakeMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SpakeHandshakeMessage* 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_.ec_point_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_) + : nullptr; + _impl_.flow_number_ = from._impl_.flow_number_; + // @@protoc_insertion_point(copy_constructor:securegcm.SpakeHandshakeMessage) } +PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + hash_value_(arena), + payload_(arena) {} -inline void SpakeHandshakeMessage::SharedCtor() { -hash_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - hash_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - payload_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ec_point_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&flow_number_) - - reinterpret_cast(&ec_point_)) + sizeof(flow_number_)); +inline void SpakeHandshakeMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, ec_point_), + 0, + offsetof(Impl_, flow_number_) - + offsetof(Impl_, ec_point_) + + sizeof(Impl_::flow_number_)); } - SpakeHandshakeMessage::~SpakeHandshakeMessage() { // @@protoc_insertion_point(destructor:securegcm.SpakeHandshakeMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SpakeHandshakeMessage::SharedDtor(MessageLite& self) { + SpakeHandshakeMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hash_value_.Destroy(); + this_._impl_.payload_.Destroy(); + delete this_._impl_.ec_point_; + this_._impl_.~Impl_(); } -inline void SpakeHandshakeMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - hash_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete ec_point_; +inline void* PROTOBUF_NONNULL SpakeHandshakeMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SpakeHandshakeMessage(arena); +} +constexpr auto SpakeHandshakeMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SpakeHandshakeMessage), + alignof(SpakeHandshakeMessage)); +} +constexpr auto SpakeHandshakeMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_SpakeHandshakeMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SpakeHandshakeMessage::IsInitializedImpl, + &SpakeHandshakeMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SpakeHandshakeMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SpakeHandshakeMessage::ByteSizeLong, + &SpakeHandshakeMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._cached_size_), + true, + }, + "securegcm.SpakeHandshakeMessage", + }; } -void SpakeHandshakeMessage::ArenaDtor(void* object) { - SpakeHandshakeMessage* _this = reinterpret_cast< SpakeHandshakeMessage* >(object); - (void)_this; -} -void SpakeHandshakeMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SpakeHandshakeMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_ = + SpakeHandshakeMessage::InternalGenerateClassData_(); -void SpakeHandshakeMessage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SpakeHandshakeMessage::GetClassData() const { + return SpakeHandshakeMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +SpakeHandshakeMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _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), + SpakeHandshakeMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::SpakeHandshakeMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes payload = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_)}}, + // optional int32 flow_number = 1; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_)}}, + // optional .securegcm.EcPoint ec_point = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)}}, + // optional bytes hash_value = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 flow_number = 1; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .securegcm.EcPoint ec_point = 2; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bytes hash_value = 3; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes payload = 4; + {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securegcm::EcPoint>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SpakeHandshakeMessage::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.SpakeHandshakeMessage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - hash_value_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.hash_value_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - payload_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.payload_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(ec_point_ != nullptr); - ec_point_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.ec_point_ != nullptr); + _impl_.ec_point_->Clear(); } } - flow_number_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.flow_number_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SpakeHandshakeMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 flow_number = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_flow_number(&has_bits); - flow_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securegcm.EcPoint ec_point = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_ec_point(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes hash_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_hash_value(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes payload = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_payload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SpakeHandshakeMessage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SpakeHandshakeMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SpakeHandshakeMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.SpakeHandshakeMessage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 flow_number = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_flow_number(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_flow_number(), target); } // optional .securegcm.EcPoint ec_point = 2; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::ec_point(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.ec_point_, this_._impl_.ec_point_->GetCachedSize(), target, + stream); } // optional bytes hash_value = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_hash_value(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_hash_value(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional bytes payload = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_payload(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_payload(); + target = stream->WriteBytesMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.SpakeHandshakeMessage) return target; } -size_t SpakeHandshakeMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.SpakeHandshakeMessage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SpakeHandshakeMessage::ByteSizeLong(const MessageLite& base) { + const SpakeHandshakeMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SpakeHandshakeMessage::ByteSizeLong() const { + const SpakeHandshakeMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.SpakeHandshakeMessage) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional bytes hash_value = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_hash_value()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash_value()); } - // optional bytes payload = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_payload()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_payload()); } - // optional .securegcm.EcPoint ec_point = 2; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ec_point_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_point_); } - // optional int32 flow_number = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_flow_number()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_flow_number()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SpakeHandshakeMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SpakeHandshakeMessage::MergeFrom(const SpakeHandshakeMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.SpakeHandshakeMessage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_hash_value(from._internal_hash_value()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_payload(from._internal_payload()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_ec_point()->::securegcm::EcPoint::MergeFrom(from._internal_ec_point()); - } - if (cached_has_bits & 0x00000008u) { - flow_number_ = from.flow_number_; - } - _has_bits_[0] |= cached_has_bits; +void SpakeHandshakeMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.SpakeHandshakeMessage) + 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_hash_value(from._internal_hash_value()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_payload(from._internal_payload()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.ec_point_ != nullptr); + if (_this->_impl_.ec_point_ == nullptr) { + _this->_impl_.ec_point_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_); + } else { + _this->_impl_.ec_point_->MergeFrom(*from._impl_.ec_point_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.flow_number_ = from._impl_.flow_number_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SpakeHandshakeMessage::CopyFrom(const SpakeHandshakeMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.SpakeHandshakeMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.SpakeHandshakeMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool SpakeHandshakeMessage::IsInitialized() const { - if (_internal_has_ec_point()) { - if (!ec_point_->IsInitialized()) return false; +PROTOBUF_NOINLINE bool SpakeHandshakeMessage::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { + if (!this_._impl_.ec_point_->IsInitialized()) return false; } return true; } -void SpakeHandshakeMessage::InternalSwap(SpakeHandshakeMessage* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SpakeHandshakeMessage::InternalSwap(SpakeHandshakeMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &hash_value_, lhs_arena, - &other->hash_value_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &payload_, lhs_arena, - &other->payload_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, flow_number_) - + sizeof(SpakeHandshakeMessage::flow_number_) - - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, ec_point_)>( - reinterpret_cast(&ec_point_), - reinterpret_cast(&other->ec_point_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_value_, &other->_impl_.hash_value_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_) + + sizeof(SpakeHandshakeMessage::_impl_.flow_number_) + - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)>( + reinterpret_cast(&_impl_.ec_point_), + reinterpret_cast(&other->_impl_.ec_point_)); } -std::string SpakeHandshakeMessage::GetTypeName() const { - return "securegcm.SpakeHandshakeMessage"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securegcm::DeviceToDeviceMessage* Arena::CreateMaybeMessage< ::securegcm::DeviceToDeviceMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::DeviceToDeviceMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::InitiatorHello* Arena::CreateMaybeMessage< ::securegcm::InitiatorHello >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::InitiatorHello >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::ResponderHello* Arena::CreateMaybeMessage< ::securegcm::ResponderHello >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::ResponderHello >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::EcPoint* Arena::CreateMaybeMessage< ::securegcm::EcPoint >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::EcPoint >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::SpakeHandshakeMessage* Arena::CreateMaybeMessage< ::securegcm::SpakeHandshakeMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::SpakeHandshakeMessage >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.h index e6f048a6..6d6b2436 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.h +++ b/third_party/ukey2/compiled_proto/src/main/proto/device_to_device_messages.pb.h @@ -1,613 +1,141 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/device_to_device_messages.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/device_to_device_messages.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto +#ifndef src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh +#define src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" #include "securemessage.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto -PROTOBUF_NAMESPACE_OPEN + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; +struct TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto { + static const ::uint32_t offsets[]; }; namespace securegcm { +enum Curve : int; +extern const uint32_t Curve_internal_data_[]; class DeviceToDeviceMessage; struct DeviceToDeviceMessageDefaultTypeInternal; extern DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; class EcPoint; struct EcPointDefaultTypeInternal; extern EcPointDefaultTypeInternal _EcPoint_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; class InitiatorHello; struct InitiatorHelloDefaultTypeInternal; extern InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; class ResponderHello; struct ResponderHelloDefaultTypeInternal; extern ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; class SpakeHandshakeMessage; struct SpakeHandshakeMessageDefaultTypeInternal; extern SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::DeviceToDeviceMessage* Arena::CreateMaybeMessage<::securegcm::DeviceToDeviceMessage>(Arena*); -template<> ::securegcm::EcPoint* Arena::CreateMaybeMessage<::securegcm::EcPoint>(Arena*); -template<> ::securegcm::InitiatorHello* Arena::CreateMaybeMessage<::securegcm::InitiatorHello>(Arena*); -template<> ::securegcm::ResponderHello* Arena::CreateMaybeMessage<::securegcm::ResponderHello>(Arena*); -template<> ::securegcm::SpakeHandshakeMessage* Arena::CreateMaybeMessage<::securegcm::SpakeHandshakeMessage>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::Curve_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Curve>; +} // namespace protobuf +} // namespace google + namespace securegcm { - enum Curve : int { - ED_25519 = 1 + ED_25519 = 1, }; -bool Curve_IsValid(int value); -constexpr Curve Curve_MIN = ED_25519; -constexpr Curve Curve_MAX = ED_25519; -constexpr int Curve_ARRAYSIZE = Curve_MAX + 1; -const std::string& Curve_Name(Curve value); -template -inline const std::string& Curve_Name(T enum_t_value) { +extern const uint32_t Curve_internal_data_[]; +inline constexpr Curve Curve_MIN = + static_cast(1); +inline constexpr Curve Curve_MAX = + static_cast(1); +inline bool Curve_IsValid(int value) { + return 1 <= value && value <= 1; +} +inline constexpr int Curve_ARRAYSIZE = 1 + 1; +const ::std::string& Curve_Name(Curve value); +template +const ::std::string& Curve_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Curve_Name."); - return Curve_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Curve_Name()."); + return Curve_Name(static_cast(value)); } bool Curve_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Curve* value); + ::absl::string_view name, Curve* PROTOBUF_NONNULL value); + // =================================================================== -class DeviceToDeviceMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.DeviceToDeviceMessage) */ { - public: - inline DeviceToDeviceMessage() : DeviceToDeviceMessage(nullptr) {} - ~DeviceToDeviceMessage() override; - explicit constexpr DeviceToDeviceMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DeviceToDeviceMessage(const DeviceToDeviceMessage& from); - DeviceToDeviceMessage(DeviceToDeviceMessage&& from) noexcept - : DeviceToDeviceMessage() { - *this = ::std::move(from); - } - - inline DeviceToDeviceMessage& operator=(const DeviceToDeviceMessage& from) { - CopyFrom(from); - return *this; - } - inline DeviceToDeviceMessage& operator=(DeviceToDeviceMessage&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const DeviceToDeviceMessage& default_instance() { - return *internal_default_instance(); - } - static inline const DeviceToDeviceMessage* internal_default_instance() { - return reinterpret_cast( - &_DeviceToDeviceMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(DeviceToDeviceMessage& a, DeviceToDeviceMessage& b) { - a.Swap(&b); - } - inline void Swap(DeviceToDeviceMessage* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeviceToDeviceMessage* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeviceToDeviceMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DeviceToDeviceMessage& from); - void MergeFrom(const DeviceToDeviceMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DeviceToDeviceMessage* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.DeviceToDeviceMessage"; - } - protected: - explicit DeviceToDeviceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMessageFieldNumber = 1, - kSequenceNumberFieldNumber = 2, - }; - // optional bytes message = 1; - bool has_message() const; - private: - bool _internal_has_message() const; - public: - void clear_message(); - const std::string& message() const; - template - void set_message(ArgT0&& arg0, ArgT... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* message); - private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); - std::string* _internal_mutable_message(); - public: - - // optional int32 sequence_number = 2; - bool has_sequence_number() const; - private: - bool _internal_has_sequence_number() const; - public: - void clear_sequence_number(); - int32_t sequence_number() const; - void set_sequence_number(int32_t value); - private: - int32_t _internal_sequence_number() const; - void _internal_set_sequence_number(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.DeviceToDeviceMessage) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; - int32_t sequence_number_; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; // ------------------------------------------------------------------- -class InitiatorHello final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.InitiatorHello) */ { - public: - inline InitiatorHello() : InitiatorHello(nullptr) {} - ~InitiatorHello() override; - explicit constexpr InitiatorHello(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - InitiatorHello(const InitiatorHello& from); - InitiatorHello(InitiatorHello&& from) noexcept - : InitiatorHello() { - *this = ::std::move(from); - } - - inline InitiatorHello& operator=(const InitiatorHello& from) { - CopyFrom(from); - return *this; - } - inline InitiatorHello& operator=(InitiatorHello&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const InitiatorHello& default_instance() { - return *internal_default_instance(); - } - static inline const InitiatorHello* internal_default_instance() { - return reinterpret_cast( - &_InitiatorHello_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(InitiatorHello& a, InitiatorHello& b) { - a.Swap(&b); - } - inline void Swap(InitiatorHello* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InitiatorHello* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InitiatorHello* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const InitiatorHello& from); - void MergeFrom(const InitiatorHello& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InitiatorHello* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.InitiatorHello"; - } - protected: - explicit InitiatorHello(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicDhKeyFieldNumber = 1, - kProtocolVersionFieldNumber = 2, - }; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - bool has_public_dh_key() const; - private: - bool _internal_has_public_dh_key() const; - public: - void clear_public_dh_key(); - const ::securemessage::GenericPublicKey& public_dh_key() const; - PROTOBUF_NODISCARD ::securemessage::GenericPublicKey* release_public_dh_key(); - ::securemessage::GenericPublicKey* mutable_public_dh_key(); - void set_allocated_public_dh_key(::securemessage::GenericPublicKey* public_dh_key); - private: - const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; - ::securemessage::GenericPublicKey* _internal_mutable_public_dh_key(); - public: - void unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* public_dh_key); - ::securemessage::GenericPublicKey* unsafe_arena_release_public_dh_key(); - - // optional int32 protocol_version = 2 [default = 0]; - bool has_protocol_version() const; - private: - bool _internal_has_protocol_version() const; - public: - void clear_protocol_version(); - int32_t protocol_version() const; - void set_protocol_version(int32_t value); - private: - int32_t _internal_protocol_version() const; - void _internal_set_protocol_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.InitiatorHello) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::securemessage::GenericPublicKey* public_dh_key_; - int32_t protocol_version_; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; -// ------------------------------------------------------------------- - -class ResponderHello final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.ResponderHello) */ { - public: - inline ResponderHello() : ResponderHello(nullptr) {} - ~ResponderHello() override; - explicit constexpr ResponderHello(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ResponderHello(const ResponderHello& from); - ResponderHello(ResponderHello&& from) noexcept - : ResponderHello() { - *this = ::std::move(from); - } - - inline ResponderHello& operator=(const ResponderHello& from) { - CopyFrom(from); - return *this; - } - inline ResponderHello& operator=(ResponderHello&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ResponderHello& default_instance() { - return *internal_default_instance(); - } - static inline const ResponderHello* internal_default_instance() { - return reinterpret_cast( - &_ResponderHello_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ResponderHello& a, ResponderHello& b) { - a.Swap(&b); - } - inline void Swap(ResponderHello* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResponderHello* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResponderHello* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ResponderHello& from); - void MergeFrom(const ResponderHello& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ResponderHello* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.ResponderHello"; - } - protected: - explicit ResponderHello(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicDhKeyFieldNumber = 1, - kProtocolVersionFieldNumber = 2, - }; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - bool has_public_dh_key() const; - private: - bool _internal_has_public_dh_key() const; - public: - void clear_public_dh_key(); - const ::securemessage::GenericPublicKey& public_dh_key() const; - PROTOBUF_NODISCARD ::securemessage::GenericPublicKey* release_public_dh_key(); - ::securemessage::GenericPublicKey* mutable_public_dh_key(); - void set_allocated_public_dh_key(::securemessage::GenericPublicKey* public_dh_key); - private: - const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; - ::securemessage::GenericPublicKey* _internal_mutable_public_dh_key(); - public: - void unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* public_dh_key); - ::securemessage::GenericPublicKey* unsafe_arena_release_public_dh_key(); - - // optional int32 protocol_version = 2 [default = 0]; - bool has_protocol_version() const; - private: - bool _internal_has_protocol_version() const; - public: - void clear_protocol_version(); - int32_t protocol_version() const; - void set_protocol_version(int32_t value); - private: - int32_t _internal_protocol_version() const; - void _internal_set_protocol_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.ResponderHello) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::securemessage::GenericPublicKey* public_dh_key_; - int32_t protocol_version_; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; -// ------------------------------------------------------------------- - -class EcPoint final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.EcPoint) */ { +class EcPoint final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.EcPoint) */ { public: inline EcPoint() : EcPoint(nullptr) {} - ~EcPoint() override; - explicit constexpr EcPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EcPoint() PROTOBUF_FINAL; - EcPoint(const EcPoint& from); - EcPoint(EcPoint&& from) noexcept - : EcPoint() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EcPoint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EcPoint)); } +#endif + template + explicit PROTOBUF_CONSTEXPR EcPoint(::google::protobuf::internal::ConstantInitialized); + + inline EcPoint(const EcPoint& from) : EcPoint(nullptr, from) {} + inline EcPoint(EcPoint&& from) noexcept + : EcPoint(nullptr, ::std::move(from)) {} inline EcPoint& operator=(const EcPoint& from) { CopyFrom(from); return *this; } inline EcPoint& operator=(EcPoint&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -615,87 +143,107 @@ class EcPoint final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const EcPoint& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_EcPoint_default_instance_); } - static inline const EcPoint* internal_default_instance() { - return reinterpret_cast( - &_EcPoint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(EcPoint& a, EcPoint& b) { - a.Swap(&b); - } - inline void Swap(EcPoint* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(EcPoint& a, EcPoint& b) { a.Swap(&b); } + inline void Swap(EcPoint* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EcPoint* other) { + void UnsafeArenaSwap(EcPoint* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EcPoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EcPoint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const EcPoint& from); - void MergeFrom(const EcPoint& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const EcPoint& from) { EcPoint::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(EcPoint* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.EcPoint"; - } - protected: - explicit EcPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EcPoint* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.EcPoint"; } + + explicit EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcPoint& from); + EcPoint( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcPoint&& from) noexcept + : EcPoint(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kXFieldNumber = 2, kYFieldNumber = 3, @@ -703,96 +251,111 @@ class EcPoint final : }; // required bytes x = 2; bool has_x() const; - private: - bool _internal_has_x() const; - public: - void clear_x(); - const std::string& x() const; - template - void set_x(ArgT0&& arg0, ArgT... args); - std::string* mutable_x(); - PROTOBUF_NODISCARD std::string* release_x(); - void set_allocated_x(std::string* x); - private: - const std::string& _internal_x() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_x(const std::string& value); - std::string* _internal_mutable_x(); - public: + void clear_x() ; + const ::std::string& x() const; + template + void set_x(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_x(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); + void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_x() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); + + public: // required bytes y = 3; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); - const std::string& y() const; - template - void set_y(ArgT0&& arg0, ArgT... args); - std::string* mutable_y(); - PROTOBUF_NODISCARD std::string* release_y(); - void set_allocated_y(std::string* y); - private: - const std::string& _internal_y() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_y(const std::string& value); - std::string* _internal_mutable_y(); - public: + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: // required .securegcm.Curve curve = 1; bool has_curve() const; - private: - bool _internal_has_curve() const; - public: - void clear_curve(); + void clear_curve() ; ::securegcm::Curve curve() const; void set_curve(::securegcm::Curve value); + private: ::securegcm::Curve _internal_curve() const; void _internal_set_curve(::securegcm::Curve value); - public: + public: // @@protoc_insertion_point(class_scope:securegcm.EcPoint) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> + _table_; - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr x_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr y_; - int curve_; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EcPoint& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr x_; + ::google::protobuf::internal::ArenaStringPtr y_; + int curve_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; // ------------------------------------------------------------------- -class SpakeHandshakeMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.SpakeHandshakeMessage) */ { +class DeviceToDeviceMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.DeviceToDeviceMessage) */ { public: - inline SpakeHandshakeMessage() : SpakeHandshakeMessage(nullptr) {} - ~SpakeHandshakeMessage() override; - explicit constexpr SpakeHandshakeMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DeviceToDeviceMessage() : DeviceToDeviceMessage(nullptr) {} + ~DeviceToDeviceMessage() PROTOBUF_FINAL; - SpakeHandshakeMessage(const SpakeHandshakeMessage& from); - SpakeHandshakeMessage(SpakeHandshakeMessage&& from) noexcept - : SpakeHandshakeMessage() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DeviceToDeviceMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DeviceToDeviceMessage)); } +#endif - inline SpakeHandshakeMessage& operator=(const SpakeHandshakeMessage& from) { + template + explicit PROTOBUF_CONSTEXPR DeviceToDeviceMessage(::google::protobuf::internal::ConstantInitialized); + + inline DeviceToDeviceMessage(const DeviceToDeviceMessage& from) : DeviceToDeviceMessage(nullptr, from) {} + inline DeviceToDeviceMessage(DeviceToDeviceMessage&& from) noexcept + : DeviceToDeviceMessage(nullptr, ::std::move(from)) {} + inline DeviceToDeviceMessage& operator=(const DeviceToDeviceMessage& from) { CopyFrom(from); return *this; } - inline SpakeHandshakeMessage& operator=(SpakeHandshakeMessage&& from) noexcept { + inline DeviceToDeviceMessage& operator=(DeviceToDeviceMessage&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -800,87 +363,304 @@ class SpakeHandshakeMessage final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const SpakeHandshakeMessage& default_instance() { - return *internal_default_instance(); + static const DeviceToDeviceMessage& default_instance() { + return *reinterpret_cast( + &_DeviceToDeviceMessage_default_instance_); } - static inline const SpakeHandshakeMessage* internal_default_instance() { - return reinterpret_cast( - &_SpakeHandshakeMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(SpakeHandshakeMessage& a, SpakeHandshakeMessage& b) { - a.Swap(&b); - } - inline void Swap(SpakeHandshakeMessage* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(DeviceToDeviceMessage& a, DeviceToDeviceMessage& b) { a.Swap(&b); } + inline void Swap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SpakeHandshakeMessage* other) { + void UnsafeArenaSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SpakeHandshakeMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeviceToDeviceMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SpakeHandshakeMessage& from); - void MergeFrom(const SpakeHandshakeMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const DeviceToDeviceMessage& from); + void MergeFrom(const DeviceToDeviceMessage& from) { DeviceToDeviceMessage::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SpakeHandshakeMessage* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.SpakeHandshakeMessage"; - } - protected: - explicit SpakeHandshakeMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.DeviceToDeviceMessage"; } + + explicit DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeviceToDeviceMessage& from); + DeviceToDeviceMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DeviceToDeviceMessage&& from) noexcept + : DeviceToDeviceMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kMessageFieldNumber = 1, + kSequenceNumberFieldNumber = 2, + }; + // optional bytes message = 1; + bool has_message() const; + void clear_message() ; + const ::std::string& message() const; + template + void set_message(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_message(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message(); + void set_allocated_message(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_message() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_message(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_message(); + + public: + // optional int32 sequence_number = 2; + bool has_sequence_number() const; + void clear_sequence_number() ; + ::int32_t sequence_number() const; + void set_sequence_number(::int32_t value); + + private: + ::int32_t _internal_sequence_number() const; + void _internal_set_sequence_number(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.DeviceToDeviceMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DeviceToDeviceMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::int32_t sequence_number_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; +// ------------------------------------------------------------------- + +class SpakeHandshakeMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.SpakeHandshakeMessage) */ { + public: + inline SpakeHandshakeMessage() : SpakeHandshakeMessage(nullptr) {} + ~SpakeHandshakeMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SpakeHandshakeMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SpakeHandshakeMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SpakeHandshakeMessage(::google::protobuf::internal::ConstantInitialized); + + inline SpakeHandshakeMessage(const SpakeHandshakeMessage& from) : SpakeHandshakeMessage(nullptr, from) {} + inline SpakeHandshakeMessage(SpakeHandshakeMessage&& from) noexcept + : SpakeHandshakeMessage(nullptr, ::std::move(from)) {} + inline SpakeHandshakeMessage& operator=(const SpakeHandshakeMessage& from) { + CopyFrom(from); + return *this; + } + inline SpakeHandshakeMessage& operator=(SpakeHandshakeMessage&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SpakeHandshakeMessage& default_instance() { + return *reinterpret_cast( + &_SpakeHandshakeMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(SpakeHandshakeMessage& a, SpakeHandshakeMessage& b) { a.Swap(&b); } + inline void Swap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SpakeHandshakeMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SpakeHandshakeMessage& from); + void MergeFrom(const SpakeHandshakeMessage& from) { SpakeHandshakeMessage::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.SpakeHandshakeMessage"; } + + explicit SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SpakeHandshakeMessage& from); + SpakeHandshakeMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SpakeHandshakeMessage&& from) noexcept + : SpakeHandshakeMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- enum : int { kHashValueFieldNumber = 3, kPayloadFieldNumber = 4, @@ -889,602 +669,1039 @@ class SpakeHandshakeMessage final : }; // optional bytes hash_value = 3; bool has_hash_value() const; - private: - bool _internal_has_hash_value() const; - public: - void clear_hash_value(); - const std::string& hash_value() const; - template - void set_hash_value(ArgT0&& arg0, ArgT... args); - std::string* mutable_hash_value(); - PROTOBUF_NODISCARD std::string* release_hash_value(); - void set_allocated_hash_value(std::string* hash_value); - private: - const std::string& _internal_hash_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash_value(const std::string& value); - std::string* _internal_mutable_hash_value(); - public: + void clear_hash_value() ; + const ::std::string& hash_value() const; + template + void set_hash_value(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_hash_value(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash_value(); + void set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_hash_value() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash_value(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash_value(); + + public: // optional bytes payload = 4; bool has_payload() const; - private: - bool _internal_has_payload() const; - public: - void clear_payload(); - const std::string& payload() const; - template - void set_payload(ArgT0&& arg0, ArgT... args); - std::string* mutable_payload(); - PROTOBUF_NODISCARD std::string* release_payload(); - void set_allocated_payload(std::string* payload); - private: - const std::string& _internal_payload() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); - std::string* _internal_mutable_payload(); - public: + void clear_payload() ; + const ::std::string& payload() const; + template + void set_payload(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_payload(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload(); + void set_allocated_payload(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_payload() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_payload(); + + public: // optional .securegcm.EcPoint ec_point = 2; bool has_ec_point() const; - private: - bool _internal_has_ec_point() const; - public: - void clear_ec_point(); + void clear_ec_point() ; const ::securegcm::EcPoint& ec_point() const; - PROTOBUF_NODISCARD ::securegcm::EcPoint* release_ec_point(); - ::securegcm::EcPoint* mutable_ec_point(); - void set_allocated_ec_point(::securegcm::EcPoint* ec_point); + [[nodiscard]] ::securegcm::EcPoint* PROTOBUF_NULLABLE release_ec_point(); + ::securegcm::EcPoint* PROTOBUF_NONNULL mutable_ec_point(); + void set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); + ::securegcm::EcPoint* PROTOBUF_NULLABLE unsafe_arena_release_ec_point(); + private: const ::securegcm::EcPoint& _internal_ec_point() const; - ::securegcm::EcPoint* _internal_mutable_ec_point(); - public: - void unsafe_arena_set_allocated_ec_point( - ::securegcm::EcPoint* ec_point); - ::securegcm::EcPoint* unsafe_arena_release_ec_point(); + ::securegcm::EcPoint* PROTOBUF_NONNULL _internal_mutable_ec_point(); + public: // optional int32 flow_number = 1; bool has_flow_number() const; - private: - bool _internal_has_flow_number() const; - public: - void clear_flow_number(); - int32_t flow_number() const; - void set_flow_number(int32_t value); - private: - int32_t _internal_flow_number() const; - void _internal_set_flow_number(int32_t value); - public: + void clear_flow_number() ; + ::int32_t flow_number() const; + void set_flow_number(::int32_t value); + private: + ::int32_t _internal_flow_number() const; + void _internal_set_flow_number(::int32_t value); + + public: // @@protoc_insertion_point(class_scope:securegcm.SpakeHandshakeMessage) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_value_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - ::securegcm::EcPoint* ec_point_; - int32_t flow_number_; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SpakeHandshakeMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr hash_value_; + ::google::protobuf::internal::ArenaStringPtr payload_; + ::securegcm::EcPoint* PROTOBUF_NULLABLE ec_point_; + ::int32_t flow_number_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; +// ------------------------------------------------------------------- + +class ResponderHello final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.ResponderHello) */ { + public: + inline ResponderHello() : ResponderHello(nullptr) {} + ~ResponderHello() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ResponderHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ResponderHello)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ResponderHello(::google::protobuf::internal::ConstantInitialized); + + inline ResponderHello(const ResponderHello& from) : ResponderHello(nullptr, from) {} + inline ResponderHello(ResponderHello&& from) noexcept + : ResponderHello(nullptr, ::std::move(from)) {} + inline ResponderHello& operator=(const ResponderHello& from) { + CopyFrom(from); + return *this; + } + inline ResponderHello& operator=(ResponderHello&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const ResponderHello& default_instance() { + return *reinterpret_cast( + &_ResponderHello_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ResponderHello& a, ResponderHello& b) { a.Swap(&b); } + inline void Swap(ResponderHello* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ResponderHello* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResponderHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const ResponderHello& from); + void MergeFrom(const ResponderHello& from) { ResponderHello::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ResponderHello* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.ResponderHello"; } + + explicit ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ResponderHello& from); + ResponderHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ResponderHello&& from) noexcept + : ResponderHello(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicDhKeyFieldNumber = 1, + kProtocolVersionFieldNumber = 2, + }; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + bool has_public_dh_key() const; + void clear_public_dh_key() ; + const ::securemessage::GenericPublicKey& public_dh_key() const; + [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); + void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); + + private: + const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); + + public: + // optional int32 protocol_version = 2 [default = 0]; + bool has_protocol_version() const; + void clear_protocol_version() ; + ::int32_t protocol_version() const; + void set_protocol_version(::int32_t value); + + private: + ::int32_t _internal_protocol_version() const; + void _internal_set_protocol_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.ResponderHello) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ResponderHello& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; + ::int32_t protocol_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; +// ------------------------------------------------------------------- + +class InitiatorHello final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.InitiatorHello) */ { + public: + inline InitiatorHello() : InitiatorHello(nullptr) {} + ~InitiatorHello() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(InitiatorHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(InitiatorHello)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR InitiatorHello(::google::protobuf::internal::ConstantInitialized); + + inline InitiatorHello(const InitiatorHello& from) : InitiatorHello(nullptr, from) {} + inline InitiatorHello(InitiatorHello&& from) noexcept + : InitiatorHello(nullptr, ::std::move(from)) {} + inline InitiatorHello& operator=(const InitiatorHello& from) { + CopyFrom(from); + return *this; + } + inline InitiatorHello& operator=(InitiatorHello&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const InitiatorHello& default_instance() { + return *reinterpret_cast( + &_InitiatorHello_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(InitiatorHello& a, InitiatorHello& b) { a.Swap(&b); } + inline void Swap(InitiatorHello* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitiatorHello* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InitiatorHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const InitiatorHello& from); + void MergeFrom(const InitiatorHello& from) { InitiatorHello::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(InitiatorHello* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.InitiatorHello"; } + + explicit InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitiatorHello& from); + InitiatorHello( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitiatorHello&& from) noexcept + : InitiatorHello(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicDhKeyFieldNumber = 1, + kProtocolVersionFieldNumber = 2, + }; + // optional .securemessage.GenericPublicKey public_dh_key = 1; + bool has_public_dh_key() const; + void clear_public_dh_key() ; + const ::securemessage::GenericPublicKey& public_dh_key() const; + [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); + void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); + + private: + const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; + ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); + + public: + // optional int32 protocol_version = 2 [default = 0]; + bool has_protocol_version() const; + void clear_protocol_version() ; + ::int32_t protocol_version() const; + void set_protocol_version(::int32_t value); + + private: + ::int32_t _internal_protocol_version() const; + void _internal_set_protocol_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.InitiatorHello) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const InitiatorHello& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; + ::int32_t protocol_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // DeviceToDeviceMessage // optional bytes message = 1; -inline bool DeviceToDeviceMessage::_internal_has_message() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool DeviceToDeviceMessage::has_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool DeviceToDeviceMessage::has_message() const { - return _internal_has_message(); -} inline void DeviceToDeviceMessage::clear_message() { - message_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& DeviceToDeviceMessage::message() const { +inline const ::std::string& DeviceToDeviceMessage::message() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceToDeviceMessage::set_message(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - message_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void DeviceToDeviceMessage::set_message(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.message_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.message) } -inline std::string* DeviceToDeviceMessage::mutable_message() { - std::string* _s = _internal_mutable_message(); +inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::mutable_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:securegcm.DeviceToDeviceMessage.message) return _s; } -inline const std::string& DeviceToDeviceMessage::_internal_message() const { - return message_.Get(); +inline const ::std::string& DeviceToDeviceMessage::_internal_message() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.message_.Get(); } -inline void DeviceToDeviceMessage::_internal_set_message(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void DeviceToDeviceMessage::_internal_set_message(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_.Set(value, GetArena()); } -inline std::string* DeviceToDeviceMessage::_internal_mutable_message() { - _has_bits_[0] |= 0x00000001u; - return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::_internal_mutable_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.message_.Mutable( GetArena()); } -inline std::string* DeviceToDeviceMessage::release_message() { +inline ::std::string* PROTOBUF_NULLABLE DeviceToDeviceMessage::release_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.DeviceToDeviceMessage.message) - if (!_internal_has_message()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.message_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void DeviceToDeviceMessage::set_allocated_message(std::string* message) { - if (message != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void DeviceToDeviceMessage::set_allocated_message(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.message_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) { + _impl_.message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.DeviceToDeviceMessage.message) } // optional int32 sequence_number = 2; -inline bool DeviceToDeviceMessage::_internal_has_sequence_number() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool DeviceToDeviceMessage::has_sequence_number() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool DeviceToDeviceMessage::has_sequence_number() const { - return _internal_has_sequence_number(); -} inline void DeviceToDeviceMessage::clear_sequence_number() { - sequence_number_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sequence_number_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t DeviceToDeviceMessage::_internal_sequence_number() const { - return sequence_number_; -} -inline int32_t DeviceToDeviceMessage::sequence_number() const { +inline ::int32_t DeviceToDeviceMessage::sequence_number() const { // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.sequence_number) return _internal_sequence_number(); } -inline void DeviceToDeviceMessage::_internal_set_sequence_number(int32_t value) { - _has_bits_[0] |= 0x00000002u; - sequence_number_ = value; -} -inline void DeviceToDeviceMessage::set_sequence_number(int32_t value) { +inline void DeviceToDeviceMessage::set_sequence_number(::int32_t value) { _internal_set_sequence_number(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.sequence_number) } +inline ::int32_t DeviceToDeviceMessage::_internal_sequence_number() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sequence_number_; +} +inline void DeviceToDeviceMessage::_internal_set_sequence_number(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sequence_number_ = value; +} // ------------------------------------------------------------------- // InitiatorHello // optional .securemessage.GenericPublicKey public_dh_key = 1; -inline bool InitiatorHello::_internal_has_public_dh_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || public_dh_key_ != nullptr); +inline bool InitiatorHello::has_public_dh_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); return value; } -inline bool InitiatorHello::has_public_dh_key() const { - return _internal_has_public_dh_key(); -} inline const ::securemessage::GenericPublicKey& InitiatorHello::_internal_public_dh_key() const { - const ::securemessage::GenericPublicKey* p = public_dh_key_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_GenericPublicKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); } -inline const ::securemessage::GenericPublicKey& InitiatorHello::public_dh_key() const { +inline const ::securemessage::GenericPublicKey& InitiatorHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.public_dh_key) return _internal_public_dh_key(); } inline void InitiatorHello::unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* public_dh_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key_); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); } - public_dh_key_ = public_dh_key; - if (public_dh_key) { - _has_bits_[0] |= 0x00000001u; + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.InitiatorHello.public_dh_key) } -inline ::securemessage::GenericPublicKey* InitiatorHello::release_public_dh_key() { - _has_bits_[0] &= ~0x00000001u; - ::securemessage::GenericPublicKey* temp = public_dh_key_; - public_dh_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::GenericPublicKey* InitiatorHello::unsafe_arena_release_public_dh_key() { +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::unsafe_arena_release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.InitiatorHello.public_dh_key) - _has_bits_[0] &= ~0x00000001u; - ::securemessage::GenericPublicKey* temp = public_dh_key_; - public_dh_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; return temp; } -inline ::securemessage::GenericPublicKey* InitiatorHello::_internal_mutable_public_dh_key() { - _has_bits_[0] |= 0x00000001u; - if (public_dh_key_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::GenericPublicKey>(GetArenaForAllocation()); - public_dh_key_ = p; +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::_internal_mutable_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); } - return public_dh_key_; + return _impl_.public_dh_key_; } -inline ::securemessage::GenericPublicKey* InitiatorHello::mutable_public_dh_key() { +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::mutable_public_dh_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); // @@protoc_insertion_point(field_mutable:securegcm.InitiatorHello.public_dh_key) return _msg; } -inline void InitiatorHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* public_dh_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void InitiatorHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); } - if (public_dh_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - public_dh_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, public_dh_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - public_dh_key_ = public_dh_key; + + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); // @@protoc_insertion_point(field_set_allocated:securegcm.InitiatorHello.public_dh_key) } // optional int32 protocol_version = 2 [default = 0]; -inline bool InitiatorHello::_internal_has_protocol_version() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool InitiatorHello::has_protocol_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool InitiatorHello::has_protocol_version() const { - return _internal_has_protocol_version(); -} inline void InitiatorHello::clear_protocol_version() { - protocol_version_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t InitiatorHello::_internal_protocol_version() const { - return protocol_version_; -} -inline int32_t InitiatorHello::protocol_version() const { +inline ::int32_t InitiatorHello::protocol_version() const { // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.protocol_version) return _internal_protocol_version(); } -inline void InitiatorHello::_internal_set_protocol_version(int32_t value) { - _has_bits_[0] |= 0x00000002u; - protocol_version_ = value; -} -inline void InitiatorHello::set_protocol_version(int32_t value) { +inline void InitiatorHello::set_protocol_version(::int32_t value) { _internal_set_protocol_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.InitiatorHello.protocol_version) } +inline ::int32_t InitiatorHello::_internal_protocol_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.protocol_version_; +} +inline void InitiatorHello::_internal_set_protocol_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = value; +} // ------------------------------------------------------------------- // ResponderHello // optional .securemessage.GenericPublicKey public_dh_key = 1; -inline bool ResponderHello::_internal_has_public_dh_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || public_dh_key_ != nullptr); +inline bool ResponderHello::has_public_dh_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); return value; } -inline bool ResponderHello::has_public_dh_key() const { - return _internal_has_public_dh_key(); -} inline const ::securemessage::GenericPublicKey& ResponderHello::_internal_public_dh_key() const { - const ::securemessage::GenericPublicKey* p = public_dh_key_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_GenericPublicKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); } -inline const ::securemessage::GenericPublicKey& ResponderHello::public_dh_key() const { +inline const ::securemessage::GenericPublicKey& ResponderHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.ResponderHello.public_dh_key) return _internal_public_dh_key(); } inline void ResponderHello::unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* public_dh_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key_); + ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); } - public_dh_key_ = public_dh_key; - if (public_dh_key) { - _has_bits_[0] |= 0x00000001u; + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.ResponderHello.public_dh_key) } -inline ::securemessage::GenericPublicKey* ResponderHello::release_public_dh_key() { - _has_bits_[0] &= ~0x00000001u; - ::securemessage::GenericPublicKey* temp = public_dh_key_; - public_dh_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::GenericPublicKey* ResponderHello::unsafe_arena_release_public_dh_key() { +inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::unsafe_arena_release_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.ResponderHello.public_dh_key) - _has_bits_[0] &= ~0x00000001u; - ::securemessage::GenericPublicKey* temp = public_dh_key_; - public_dh_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; + _impl_.public_dh_key_ = nullptr; return temp; } -inline ::securemessage::GenericPublicKey* ResponderHello::_internal_mutable_public_dh_key() { - _has_bits_[0] |= 0x00000001u; - if (public_dh_key_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::GenericPublicKey>(GetArenaForAllocation()); - public_dh_key_ = p; +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::_internal_mutable_public_dh_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.public_dh_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); } - return public_dh_key_; + return _impl_.public_dh_key_; } -inline ::securemessage::GenericPublicKey* ResponderHello::mutable_public_dh_key() { +inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::mutable_public_dh_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); // @@protoc_insertion_point(field_mutable:securegcm.ResponderHello.public_dh_key) return _msg; } -inline void ResponderHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* public_dh_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void ResponderHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); } - if (public_dh_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_dh_key)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - public_dh_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, public_dh_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - public_dh_key_ = public_dh_key; + + _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); // @@protoc_insertion_point(field_set_allocated:securegcm.ResponderHello.public_dh_key) } // optional int32 protocol_version = 2 [default = 0]; -inline bool ResponderHello::_internal_has_protocol_version() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool ResponderHello::has_protocol_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool ResponderHello::has_protocol_version() const { - return _internal_has_protocol_version(); -} inline void ResponderHello::clear_protocol_version() { - protocol_version_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t ResponderHello::_internal_protocol_version() const { - return protocol_version_; -} -inline int32_t ResponderHello::protocol_version() const { +inline ::int32_t ResponderHello::protocol_version() const { // @@protoc_insertion_point(field_get:securegcm.ResponderHello.protocol_version) return _internal_protocol_version(); } -inline void ResponderHello::_internal_set_protocol_version(int32_t value) { - _has_bits_[0] |= 0x00000002u; - protocol_version_ = value; -} -inline void ResponderHello::set_protocol_version(int32_t value) { +inline void ResponderHello::set_protocol_version(::int32_t value) { _internal_set_protocol_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.ResponderHello.protocol_version) } +inline ::int32_t ResponderHello::_internal_protocol_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.protocol_version_; +} +inline void ResponderHello::_internal_set_protocol_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.protocol_version_ = value; +} // ------------------------------------------------------------------- // EcPoint // required .securegcm.Curve curve = 1; -inline bool EcPoint::_internal_has_curve() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool EcPoint::has_curve() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool EcPoint::has_curve() const { - return _internal_has_curve(); -} inline void EcPoint::clear_curve() { - curve_ = 1; - _has_bits_[0] &= ~0x00000004u; -} -inline ::securegcm::Curve EcPoint::_internal_curve() const { - return static_cast< ::securegcm::Curve >(curve_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.curve_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::securegcm::Curve EcPoint::curve() const { // @@protoc_insertion_point(field_get:securegcm.EcPoint.curve) return _internal_curve(); } -inline void EcPoint::_internal_set_curve(::securegcm::Curve value) { - assert(::securegcm::Curve_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - curve_ = value; -} inline void EcPoint::set_curve(::securegcm::Curve value) { _internal_set_curve(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:securegcm.EcPoint.curve) } +inline ::securegcm::Curve EcPoint::_internal_curve() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Curve>(_impl_.curve_); +} +inline void EcPoint::_internal_set_curve(::securegcm::Curve value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Curve_internal_data_)); + _impl_.curve_ = value; +} // required bytes x = 2; -inline bool EcPoint::_internal_has_x() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool EcPoint::has_x() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool EcPoint::has_x() const { - return _internal_has_x(); -} inline void EcPoint::clear_x() { - x_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& EcPoint::x() const { +inline const ::std::string& EcPoint::x() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.EcPoint.x) return _internal_x(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EcPoint::set_x(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - x_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void EcPoint::set_x(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.EcPoint.x) } -inline std::string* EcPoint::mutable_x() { - std::string* _s = _internal_mutable_x(); +inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_x() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_x(); // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.x) return _s; } -inline const std::string& EcPoint::_internal_x() const { - return x_.Get(); +inline const ::std::string& EcPoint::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_.Get(); } -inline void EcPoint::_internal_set_x(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - x_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void EcPoint::_internal_set_x(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.Set(value, GetArena()); } -inline std::string* EcPoint::_internal_mutable_x() { - _has_bits_[0] |= 0x00000001u; - return x_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.x_.Mutable( GetArena()); } -inline std::string* EcPoint::release_x() { +inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.EcPoint.x) - if (!_internal_has_x()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = x_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (x_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.x_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.x_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EcPoint::set_allocated_x(std::string* x) { - if (x != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void EcPoint::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - x_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), x, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (x_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.x_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { + _impl_.x_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.x) } // required bytes y = 3; -inline bool EcPoint::_internal_has_y() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool EcPoint::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool EcPoint::has_y() const { - return _internal_has_y(); -} inline void EcPoint::clear_y() { - y_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& EcPoint::y() const { +inline const ::std::string& EcPoint::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.EcPoint.y) return _internal_y(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EcPoint::set_y(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - y_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void EcPoint::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.EcPoint.y) } -inline std::string* EcPoint::mutable_y() { - std::string* _s = _internal_mutable_y(); +inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_y(); // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.y) return _s; } -inline const std::string& EcPoint::_internal_y() const { - return y_.Get(); +inline const ::std::string& EcPoint::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); } -inline void EcPoint::_internal_set_y(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void EcPoint::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); } -inline std::string* EcPoint::_internal_mutable_y() { - _has_bits_[0] |= 0x00000002u; - return y_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); } -inline std::string* EcPoint::release_y() { +inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.EcPoint.y) - if (!_internal_has_y()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = y_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EcPoint::set_allocated_y(std::string* y) { - if (y != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void EcPoint::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - y_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), y, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.y) } @@ -1493,284 +1710,290 @@ inline void EcPoint::set_allocated_y(std::string* y) { // SpakeHandshakeMessage // optional int32 flow_number = 1; -inline bool SpakeHandshakeMessage::_internal_has_flow_number() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool SpakeHandshakeMessage::has_flow_number() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool SpakeHandshakeMessage::has_flow_number() const { - return _internal_has_flow_number(); -} inline void SpakeHandshakeMessage::clear_flow_number() { - flow_number_ = 0; - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_number_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t SpakeHandshakeMessage::_internal_flow_number() const { - return flow_number_; -} -inline int32_t SpakeHandshakeMessage::flow_number() const { +inline ::int32_t SpakeHandshakeMessage::flow_number() const { // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.flow_number) return _internal_flow_number(); } -inline void SpakeHandshakeMessage::_internal_set_flow_number(int32_t value) { - _has_bits_[0] |= 0x00000008u; - flow_number_ = value; -} -inline void SpakeHandshakeMessage::set_flow_number(int32_t value) { +inline void SpakeHandshakeMessage::set_flow_number(::int32_t value) { _internal_set_flow_number(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.flow_number) } +inline ::int32_t SpakeHandshakeMessage::_internal_flow_number() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flow_number_; +} +inline void SpakeHandshakeMessage::_internal_set_flow_number(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flow_number_ = value; +} // optional .securegcm.EcPoint ec_point = 2; -inline bool SpakeHandshakeMessage::_internal_has_ec_point() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || ec_point_ != nullptr); +inline bool SpakeHandshakeMessage::has_ec_point() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.ec_point_ != nullptr); return value; } -inline bool SpakeHandshakeMessage::has_ec_point() const { - return _internal_has_ec_point(); -} inline void SpakeHandshakeMessage::clear_ec_point() { - if (ec_point_ != nullptr) ec_point_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_point_ != nullptr) _impl_.ec_point_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::securegcm::EcPoint& SpakeHandshakeMessage::_internal_ec_point() const { - const ::securegcm::EcPoint* p = ec_point_; - return p != nullptr ? *p : reinterpret_cast( - ::securegcm::_EcPoint_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securegcm::EcPoint* p = _impl_.ec_point_; + return p != nullptr ? *p : reinterpret_cast(::securegcm::_EcPoint_default_instance_); } -inline const ::securegcm::EcPoint& SpakeHandshakeMessage::ec_point() const { +inline const ::securegcm::EcPoint& SpakeHandshakeMessage::ec_point() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.ec_point) return _internal_ec_point(); } inline void SpakeHandshakeMessage::unsafe_arena_set_allocated_ec_point( - ::securegcm::EcPoint* ec_point) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ec_point_); + ::securegcm::EcPoint* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); } - ec_point_ = ec_point; - if (ec_point) { - _has_bits_[0] |= 0x00000004u; + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) } -inline ::securegcm::EcPoint* SpakeHandshakeMessage::release_ec_point() { - _has_bits_[0] &= ~0x00000004u; - ::securegcm::EcPoint* temp = ec_point_; - ec_point_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securegcm::EcPoint* released = _impl_.ec_point_; + _impl_.ec_point_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securegcm::EcPoint* SpakeHandshakeMessage::unsafe_arena_release_ec_point() { +inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::unsafe_arena_release_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.ec_point) - _has_bits_[0] &= ~0x00000004u; - ::securegcm::EcPoint* temp = ec_point_; - ec_point_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securegcm::EcPoint* temp = _impl_.ec_point_; + _impl_.ec_point_ = nullptr; return temp; } -inline ::securegcm::EcPoint* SpakeHandshakeMessage::_internal_mutable_ec_point() { - _has_bits_[0] |= 0x00000004u; - if (ec_point_ == nullptr) { - auto* p = CreateMaybeMessage<::securegcm::EcPoint>(GetArenaForAllocation()); - ec_point_ = p; +inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_ec_point() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_point_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securegcm::EcPoint>(GetArena()); + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(p); } - return ec_point_; + return _impl_.ec_point_; } -inline ::securegcm::EcPoint* SpakeHandshakeMessage::mutable_ec_point() { +inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_ec_point() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::securegcm::EcPoint* _msg = _internal_mutable_ec_point(); // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.ec_point) return _msg; } -inline void SpakeHandshakeMessage::set_allocated_ec_point(::securegcm::EcPoint* ec_point) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SpakeHandshakeMessage::set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete ec_point_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); } - if (ec_point) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::securegcm::EcPoint>::GetOwningArena(ec_point); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - ec_point = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ec_point, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - ec_point_ = ec_point; + + _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) } // optional bytes hash_value = 3; -inline bool SpakeHandshakeMessage::_internal_has_hash_value() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SpakeHandshakeMessage::has_hash_value() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SpakeHandshakeMessage::has_hash_value() const { - return _internal_has_hash_value(); -} inline void SpakeHandshakeMessage::clear_hash_value() { - hash_value_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hash_value_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SpakeHandshakeMessage::hash_value() const { +inline const ::std::string& SpakeHandshakeMessage::hash_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.hash_value) return _internal_hash_value(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SpakeHandshakeMessage::set_hash_value(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - hash_value_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_hash_value(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.hash_value_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.hash_value) } -inline std::string* SpakeHandshakeMessage::mutable_hash_value() { - std::string* _s = _internal_mutable_hash_value(); +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_hash_value() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_hash_value(); // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.hash_value) return _s; } -inline const std::string& SpakeHandshakeMessage::_internal_hash_value() const { - return hash_value_.Get(); +inline const ::std::string& SpakeHandshakeMessage::_internal_hash_value() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.hash_value_.Get(); } -inline void SpakeHandshakeMessage::_internal_set_hash_value(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - hash_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SpakeHandshakeMessage::_internal_set_hash_value(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hash_value_.Set(value, GetArena()); } -inline std::string* SpakeHandshakeMessage::_internal_mutable_hash_value() { - _has_bits_[0] |= 0x00000001u; - return hash_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_hash_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.hash_value_.Mutable( GetArena()); } -inline std::string* SpakeHandshakeMessage::release_hash_value() { +inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_hash_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.hash_value) - if (!_internal_has_hash_value()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = hash_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (hash_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - hash_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.hash_value_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SpakeHandshakeMessage::set_allocated_hash_value(std::string* hash_value) { - if (hash_value != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SpakeHandshakeMessage::set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - hash_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash_value, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (hash_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - hash_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.hash_value_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_value_.IsDefault()) { + _impl_.hash_value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.hash_value) } // optional bytes payload = 4; -inline bool SpakeHandshakeMessage::_internal_has_payload() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SpakeHandshakeMessage::has_payload() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SpakeHandshakeMessage::has_payload() const { - return _internal_has_payload(); -} inline void SpakeHandshakeMessage::clear_payload() { - payload_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payload_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SpakeHandshakeMessage::payload() const { +inline const ::std::string& SpakeHandshakeMessage::payload() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.payload) return _internal_payload(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SpakeHandshakeMessage::set_payload(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - payload_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_payload(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.payload_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.payload) } -inline std::string* SpakeHandshakeMessage::mutable_payload() { - std::string* _s = _internal_mutable_payload(); +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_payload() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.payload) return _s; } -inline const std::string& SpakeHandshakeMessage::_internal_payload() const { - return payload_.Get(); +inline const ::std::string& SpakeHandshakeMessage::_internal_payload() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payload_.Get(); } -inline void SpakeHandshakeMessage::_internal_set_payload(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SpakeHandshakeMessage::_internal_set_payload(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payload_.Set(value, GetArena()); } -inline std::string* SpakeHandshakeMessage::_internal_mutable_payload() { - _has_bits_[0] |= 0x00000002u; - return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_payload() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.payload_.Mutable( GetArena()); } -inline std::string* SpakeHandshakeMessage::release_payload() { +inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_payload() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.payload) - if (!_internal_has_payload()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = payload_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (payload_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - payload_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.payload_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.payload_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SpakeHandshakeMessage::set_allocated_payload(std::string* payload) { - if (payload != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SpakeHandshakeMessage::set_allocated_payload(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (payload_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - payload_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.payload_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.payload) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::securegcm::Curve> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::securegcm::Curve> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // src_2fmain_2fproto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.cc index e26324e4..6cdd8913 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.cc +++ b/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.cc @@ -1,3021 +1,2620 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/securegcm.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/securegcm.proto +// Protobuf C++ Version: 6.33.3 -#include "proto/securegcm.pb.h" +#include "src/main/proto/securegcm.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// 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 securegcm { -constexpr GcmDeviceInfo::GcmDeviceInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : supported_software_features_() - , enabled_software_features_() - , user_public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_model_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , locale_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_handle_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_os_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_os_release_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_os_codename_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_software_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_software_package_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , long_device_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_manufacturer_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , gcm_registration_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_master_key_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , apn_registration_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , bluetooth_mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , enrollment_session_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , oauth_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , android_device_id_(uint64_t{0u}) - , counter_(int64_t{0}) - , device_os_version_code_(int64_t{0}) - , device_software_version_code_(int64_t{0}) - , device_display_diagonal_mils_(0) - , device_authzen_version_(0) - , pixel_experience_(false) - , arc_plus_plus_(false) - , is_screenlock_state_flaky_(false) - , using_secure_screenlock_(false) - , auto_unlock_screenlock_supported_(false) - , auto_unlock_screenlock_enabled_(false) - , bluetooth_radio_supported_(false) - , bluetooth_radio_enabled_(false) - , mobile_data_supported_(false) - , tethering_supported_(false) - , ble_radio_supported_(false) - , device_type_(1) - , notification_enabled_(true){} -struct GcmDeviceInfoDefaultTypeInternal { - constexpr GcmDeviceInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~GcmDeviceInfoDefaultTypeInternal() {} - union { - GcmDeviceInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; -constexpr GcmMetadata::GcmMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : type_(0) +inline constexpr Tickle::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + expiry_time_{::uint64_t{0u}} {} - , version_(0){} -struct GcmMetadataDefaultTypeInternal { - constexpr GcmMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~GcmMetadataDefaultTypeInternal() {} - union { - GcmMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; -constexpr Tickle::Tickle( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : expiry_time_(uint64_t{0u}){} +template +PROTOBUF_CONSTEXPR Tickle::Tickle(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Tickle_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TickleDefaultTypeInternal { - constexpr TickleDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TickleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TickleDefaultTypeInternal() {} union { Tickle _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TickleDefaultTypeInternal _Tickle_default_instance_; -constexpr LoginNotificationInfo::LoginNotificationInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : email_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , host_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , source_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , event_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , creation_time_(uint64_t{0u}){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TickleDefaultTypeInternal _Tickle_default_instance_; + +inline constexpr LoginNotificationInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + email_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + host_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + source_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + event_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + creation_time_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR LoginNotificationInfo::LoginNotificationInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LoginNotificationInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LoginNotificationInfoDefaultTypeInternal { - constexpr LoginNotificationInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LoginNotificationInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LoginNotificationInfoDefaultTypeInternal() {} union { LoginNotificationInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; + +inline constexpr GcmMetadata::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_{static_cast< ::securegcm::Type >(0)}, + version_{0} {} + +template +PROTOBUF_CONSTEXPR GcmMetadata::GcmMetadata(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GcmMetadata_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GcmMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcmMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GcmMetadataDefaultTypeInternal() {} + union { + GcmMetadata _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; + +inline constexpr GcmDeviceInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + enabled_software_features_{}, + user_public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_model_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + locale_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + key_handle_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_release_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_os_codename_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_software_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_software_package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + long_device_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_manufacturer_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + device_master_key_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + apn_registration_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + bluetooth_mac_address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + android_device_id_{::uint64_t{0u}}, + counter_{::int64_t{0}}, + device_os_version_code_{::int64_t{0}}, + device_software_version_code_{::int64_t{0}}, + device_display_diagonal_mils_{0}, + device_authzen_version_{0}, + bluetooth_radio_enabled_{false}, + mobile_data_supported_{false}, + arc_plus_plus_{false}, + notification_enabled_{true}, + supported_software_features_{}, + gcm_registration_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + enrollment_session_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + oauth_token_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + using_secure_screenlock_{false}, + auto_unlock_screenlock_supported_{false}, + auto_unlock_screenlock_enabled_{false}, + bluetooth_radio_supported_{false}, + tethering_supported_{false}, + ble_radio_supported_{false}, + pixel_experience_{false}, + is_screenlock_state_flaky_{false}, + device_type_{static_cast< ::securegcm::DeviceType >(1)} {} + +template +PROTOBUF_CONSTEXPR GcmDeviceInfo::GcmDeviceInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GcmDeviceInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GcmDeviceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcmDeviceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GcmDeviceInfoDefaultTypeInternal() {} + union { + GcmDeviceInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; } // namespace securegcm namespace securegcm { -bool AppleDeviceDiagonalMils_IsValid(int value) { - switch (value) { - case 4000: - case 7900: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t AppleDeviceDiagonalMils_internal_data_[] = { + 69536u, 65536u, 7900u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + AppleDeviceDiagonalMils_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AppleDeviceDiagonalMils_strings[2] = {}; +static const char AppleDeviceDiagonalMils_names[] = { + "APPLE_PAD" + "APPLE_PHONE" +}; -static const char AppleDeviceDiagonalMils_names[] = - "APPLE_PAD" - "APPLE_PHONE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AppleDeviceDiagonalMils_entries[] = { - { {AppleDeviceDiagonalMils_names + 0, 9}, 7900 }, - { {AppleDeviceDiagonalMils_names + 9, 11}, 4000 }, +static const ::google::protobuf::internal::EnumEntry AppleDeviceDiagonalMils_entries[] = { + {{&AppleDeviceDiagonalMils_names[0], 9}, 7900}, + {{&AppleDeviceDiagonalMils_names[9], 11}, 4000}, }; static const int AppleDeviceDiagonalMils_entries_by_number[] = { - 1, // 4000 -> APPLE_PHONE - 0, // 7900 -> APPLE_PAD + 1, // 4000 -> APPLE_PHONE + 0, // 7900 -> APPLE_PAD }; -const std::string& AppleDeviceDiagonalMils_Name( - AppleDeviceDiagonalMils value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - AppleDeviceDiagonalMils_entries, - AppleDeviceDiagonalMils_entries_by_number, - 2, AppleDeviceDiagonalMils_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - AppleDeviceDiagonalMils_entries, - AppleDeviceDiagonalMils_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - AppleDeviceDiagonalMils_strings[idx].get(); +const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + AppleDeviceDiagonalMils_entries, AppleDeviceDiagonalMils_entries_by_number, 2, + AppleDeviceDiagonalMils_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(AppleDeviceDiagonalMils_entries, + AppleDeviceDiagonalMils_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AppleDeviceDiagonalMils_strings[idx].get(); } -bool AppleDeviceDiagonalMils_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppleDeviceDiagonalMils* value) { + +bool AppleDeviceDiagonalMils_Parse(::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( AppleDeviceDiagonalMils_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { + 393216u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + DeviceType_strings[6] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[6] = {}; +static const char DeviceType_names[] = { + "ANDROID" + "BROWSER" + "CHROME" + "IOS" + "OSX" + "UNKNOWN" +}; -static const char DeviceType_names[] = - "ANDROID" - "BROWSER" - "CHROME" - "IOS" - "OSX" - "UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = { - { {DeviceType_names + 0, 7}, 1 }, - { {DeviceType_names + 7, 7}, 4 }, - { {DeviceType_names + 14, 6}, 2 }, - { {DeviceType_names + 20, 3}, 3 }, - { {DeviceType_names + 23, 3}, 5 }, - { {DeviceType_names + 26, 7}, 0 }, +static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { + {{&DeviceType_names[0], 7}, 1}, + {{&DeviceType_names[7], 7}, 4}, + {{&DeviceType_names[14], 6}, 2}, + {{&DeviceType_names[20], 3}, 3}, + {{&DeviceType_names[23], 3}, 5}, + {{&DeviceType_names[26], 7}, 0}, }; static const int DeviceType_entries_by_number[] = { - 5, // 0 -> UNKNOWN - 0, // 1 -> ANDROID - 2, // 2 -> CHROME - 3, // 3 -> IOS - 1, // 4 -> BROWSER - 4, // 5 -> OSX + 5, // 0 -> UNKNOWN + 0, // 1 -> ANDROID + 2, // 2 -> CHROME + 3, // 3 -> IOS + 1, // 4 -> BROWSER + 4, // 5 -> OSX }; -const std::string& DeviceType_Name( - DeviceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DeviceType_entries, - DeviceType_entries_by_number, - 6, DeviceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DeviceType_entries, - DeviceType_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DeviceType_strings[idx].get(); +const ::std::string& DeviceType_Name(DeviceType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + DeviceType_entries, DeviceType_entries_by_number, 6, + DeviceType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, + DeviceType_entries_by_number, + 6, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); } -bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { + +bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( DeviceType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool SoftwareFeature_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SoftwareFeature_internal_data_[] = { + 589824u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SoftwareFeature_strings[9] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SoftwareFeature_strings[9] = {}; +static const char SoftwareFeature_names[] = { + "BETTER_TOGETHER_CLIENT" + "BETTER_TOGETHER_HOST" + "EASY_UNLOCK_CLIENT" + "EASY_UNLOCK_HOST" + "MAGIC_TETHER_CLIENT" + "MAGIC_TETHER_HOST" + "SMS_CONNECT_CLIENT" + "SMS_CONNECT_HOST" + "UNKNOWN_FEATURE" +}; -static const char SoftwareFeature_names[] = - "BETTER_TOGETHER_CLIENT" - "BETTER_TOGETHER_HOST" - "EASY_UNLOCK_CLIENT" - "EASY_UNLOCK_HOST" - "MAGIC_TETHER_CLIENT" - "MAGIC_TETHER_HOST" - "SMS_CONNECT_CLIENT" - "SMS_CONNECT_HOST" - "UNKNOWN_FEATURE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SoftwareFeature_entries[] = { - { {SoftwareFeature_names + 0, 22}, 2 }, - { {SoftwareFeature_names + 22, 20}, 1 }, - { {SoftwareFeature_names + 42, 18}, 4 }, - { {SoftwareFeature_names + 60, 16}, 3 }, - { {SoftwareFeature_names + 76, 19}, 6 }, - { {SoftwareFeature_names + 95, 17}, 5 }, - { {SoftwareFeature_names + 112, 18}, 8 }, - { {SoftwareFeature_names + 130, 16}, 7 }, - { {SoftwareFeature_names + 146, 15}, 0 }, +static const ::google::protobuf::internal::EnumEntry SoftwareFeature_entries[] = { + {{&SoftwareFeature_names[0], 22}, 2}, + {{&SoftwareFeature_names[22], 20}, 1}, + {{&SoftwareFeature_names[42], 18}, 4}, + {{&SoftwareFeature_names[60], 16}, 3}, + {{&SoftwareFeature_names[76], 19}, 6}, + {{&SoftwareFeature_names[95], 17}, 5}, + {{&SoftwareFeature_names[112], 18}, 8}, + {{&SoftwareFeature_names[130], 16}, 7}, + {{&SoftwareFeature_names[146], 15}, 0}, }; static const int SoftwareFeature_entries_by_number[] = { - 8, // 0 -> UNKNOWN_FEATURE - 1, // 1 -> BETTER_TOGETHER_HOST - 0, // 2 -> BETTER_TOGETHER_CLIENT - 3, // 3 -> EASY_UNLOCK_HOST - 2, // 4 -> EASY_UNLOCK_CLIENT - 5, // 5 -> MAGIC_TETHER_HOST - 4, // 6 -> MAGIC_TETHER_CLIENT - 7, // 7 -> SMS_CONNECT_HOST - 6, // 8 -> SMS_CONNECT_CLIENT + 8, // 0 -> UNKNOWN_FEATURE + 1, // 1 -> BETTER_TOGETHER_HOST + 0, // 2 -> BETTER_TOGETHER_CLIENT + 3, // 3 -> EASY_UNLOCK_HOST + 2, // 4 -> EASY_UNLOCK_CLIENT + 5, // 5 -> MAGIC_TETHER_HOST + 4, // 6 -> MAGIC_TETHER_CLIENT + 7, // 7 -> SMS_CONNECT_HOST + 6, // 8 -> SMS_CONNECT_CLIENT }; -const std::string& SoftwareFeature_Name( - SoftwareFeature value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SoftwareFeature_entries, - SoftwareFeature_entries_by_number, - 9, SoftwareFeature_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SoftwareFeature_entries, - SoftwareFeature_entries_by_number, - 9, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SoftwareFeature_strings[idx].get(); +const ::std::string& SoftwareFeature_Name(SoftwareFeature value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SoftwareFeature_entries, SoftwareFeature_entries_by_number, 9, + SoftwareFeature_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SoftwareFeature_entries, + SoftwareFeature_entries_by_number, + 9, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SoftwareFeature_strings[idx].get(); } -bool SoftwareFeature_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SoftwareFeature* value) { + +bool SoftwareFeature_Parse(::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SoftwareFeature_entries, 9, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool InvocationReason_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t InvocationReason_internal_data_[] = { + 1048576u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + InvocationReason_strings[16] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed InvocationReason_strings[16] = {}; +static const char InvocationReason_names[] = { + "REASON_ADDRESS_CHANGE" + "REASON_CHANGED_ACCOUNT" + "REASON_CUSTOM_KEY_INVALIDATION" + "REASON_EXPIRATION" + "REASON_FAILURE_RECOVERY" + "REASON_FAST_PERIODIC" + "REASON_FEATURE_TOGGLED" + "REASON_INITIALIZATION" + "REASON_MANUAL" + "REASON_NEW_ACCOUNT" + "REASON_PERIODIC" + "REASON_PROXIMITY_PERIODIC" + "REASON_SERVER_INITIATED" + "REASON_SLOW_PERIODIC" + "REASON_SOFTWARE_UPDATE" + "REASON_UNKNOWN" +}; -static const char InvocationReason_names[] = - "REASON_ADDRESS_CHANGE" - "REASON_CHANGED_ACCOUNT" - "REASON_CUSTOM_KEY_INVALIDATION" - "REASON_EXPIRATION" - "REASON_FAILURE_RECOVERY" - "REASON_FAST_PERIODIC" - "REASON_FEATURE_TOGGLED" - "REASON_INITIALIZATION" - "REASON_MANUAL" - "REASON_NEW_ACCOUNT" - "REASON_PERIODIC" - "REASON_PROXIMITY_PERIODIC" - "REASON_SERVER_INITIATED" - "REASON_SLOW_PERIODIC" - "REASON_SOFTWARE_UPDATE" - "REASON_UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry InvocationReason_entries[] = { - { {InvocationReason_names + 0, 21}, 11 }, - { {InvocationReason_names + 21, 22}, 8 }, - { {InvocationReason_names + 43, 30}, 14 }, - { {InvocationReason_names + 73, 17}, 5 }, - { {InvocationReason_names + 90, 23}, 6 }, - { {InvocationReason_names + 113, 20}, 4 }, - { {InvocationReason_names + 133, 22}, 9 }, - { {InvocationReason_names + 155, 21}, 1 }, - { {InvocationReason_names + 176, 13}, 13 }, - { {InvocationReason_names + 189, 18}, 7 }, - { {InvocationReason_names + 207, 15}, 2 }, - { {InvocationReason_names + 222, 25}, 15 }, - { {InvocationReason_names + 247, 23}, 10 }, - { {InvocationReason_names + 270, 20}, 3 }, - { {InvocationReason_names + 290, 22}, 12 }, - { {InvocationReason_names + 312, 14}, 0 }, +static const ::google::protobuf::internal::EnumEntry InvocationReason_entries[] = { + {{&InvocationReason_names[0], 21}, 11}, + {{&InvocationReason_names[21], 22}, 8}, + {{&InvocationReason_names[43], 30}, 14}, + {{&InvocationReason_names[73], 17}, 5}, + {{&InvocationReason_names[90], 23}, 6}, + {{&InvocationReason_names[113], 20}, 4}, + {{&InvocationReason_names[133], 22}, 9}, + {{&InvocationReason_names[155], 21}, 1}, + {{&InvocationReason_names[176], 13}, 13}, + {{&InvocationReason_names[189], 18}, 7}, + {{&InvocationReason_names[207], 15}, 2}, + {{&InvocationReason_names[222], 25}, 15}, + {{&InvocationReason_names[247], 23}, 10}, + {{&InvocationReason_names[270], 20}, 3}, + {{&InvocationReason_names[290], 22}, 12}, + {{&InvocationReason_names[312], 14}, 0}, }; static const int InvocationReason_entries_by_number[] = { - 15, // 0 -> REASON_UNKNOWN - 7, // 1 -> REASON_INITIALIZATION - 10, // 2 -> REASON_PERIODIC - 13, // 3 -> REASON_SLOW_PERIODIC - 5, // 4 -> REASON_FAST_PERIODIC - 3, // 5 -> REASON_EXPIRATION - 4, // 6 -> REASON_FAILURE_RECOVERY - 9, // 7 -> REASON_NEW_ACCOUNT - 1, // 8 -> REASON_CHANGED_ACCOUNT - 6, // 9 -> REASON_FEATURE_TOGGLED - 12, // 10 -> REASON_SERVER_INITIATED - 0, // 11 -> REASON_ADDRESS_CHANGE - 14, // 12 -> REASON_SOFTWARE_UPDATE - 8, // 13 -> REASON_MANUAL - 2, // 14 -> REASON_CUSTOM_KEY_INVALIDATION - 11, // 15 -> REASON_PROXIMITY_PERIODIC + 15, // 0 -> REASON_UNKNOWN + 7, // 1 -> REASON_INITIALIZATION + 10, // 2 -> REASON_PERIODIC + 13, // 3 -> REASON_SLOW_PERIODIC + 5, // 4 -> REASON_FAST_PERIODIC + 3, // 5 -> REASON_EXPIRATION + 4, // 6 -> REASON_FAILURE_RECOVERY + 9, // 7 -> REASON_NEW_ACCOUNT + 1, // 8 -> REASON_CHANGED_ACCOUNT + 6, // 9 -> REASON_FEATURE_TOGGLED + 12, // 10 -> REASON_SERVER_INITIATED + 0, // 11 -> REASON_ADDRESS_CHANGE + 14, // 12 -> REASON_SOFTWARE_UPDATE + 8, // 13 -> REASON_MANUAL + 2, // 14 -> REASON_CUSTOM_KEY_INVALIDATION + 11, // 15 -> REASON_PROXIMITY_PERIODIC }; -const std::string& InvocationReason_Name( - InvocationReason value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - InvocationReason_entries, - InvocationReason_entries_by_number, - 16, InvocationReason_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - InvocationReason_entries, - InvocationReason_entries_by_number, - 16, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - InvocationReason_strings[idx].get(); +const ::std::string& InvocationReason_Name(InvocationReason value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + InvocationReason_entries, InvocationReason_entries_by_number, 16, + InvocationReason_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(InvocationReason_entries, + InvocationReason_entries_by_number, + 16, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InvocationReason_strings[idx].get(); } -bool InvocationReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InvocationReason* value) { + +bool InvocationReason_Parse(::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( InvocationReason_entries, 16, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 101: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Type_internal_data_[] = { + 589824u, 65568u, 126u, 101u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Type_strings[16] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Type_strings[16] = {}; +static const char Type_names[] = { + "DEVICE_INFO_UPDATE" + "DEVICE_PROXIMITY_CALLBACK" + "DEVICE_TO_DEVICE_MESSAGE" + "DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD" + "ENROLLMENT" + "GCMV1_IDENTITY_ASSERTION" + "LOGIN_NOTIFICATION" + "PROXIMITYAUTH_PAIRING" + "TICKLE" + "TX_CANCEL_REQUEST" + "TX_PING" + "TX_REPLY" + "TX_REQUEST" + "TX_SYNC_REQUEST" + "TX_SYNC_RESPONSE" + "UNLOCK_KEY_SIGNED_CHALLENGE" +}; -static const char Type_names[] = - "DEVICE_INFO_UPDATE" - "DEVICE_PROXIMITY_CALLBACK" - "DEVICE_TO_DEVICE_MESSAGE" - "DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD" - "ENROLLMENT" - "GCMV1_IDENTITY_ASSERTION" - "LOGIN_NOTIFICATION" - "PROXIMITYAUTH_PAIRING" - "TICKLE" - "TX_CANCEL_REQUEST" - "TX_PING" - "TX_REPLY" - "TX_REQUEST" - "TX_SYNC_REQUEST" - "TX_SYNC_RESPONSE" - "UNLOCK_KEY_SIGNED_CHALLENGE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Type_entries[] = { - { {Type_names + 0, 18}, 7 }, - { {Type_names + 18, 25}, 14 }, - { {Type_names + 43, 24}, 13 }, - { {Type_names + 67, 40}, 12 }, - { {Type_names + 107, 10}, 0 }, - { {Type_names + 117, 24}, 11 }, - { {Type_names + 141, 18}, 101 }, - { {Type_names + 159, 21}, 10 }, - { {Type_names + 180, 6}, 1 }, - { {Type_names + 186, 17}, 8 }, - { {Type_names + 203, 7}, 6 }, - { {Type_names + 210, 8}, 3 }, - { {Type_names + 218, 10}, 2 }, - { {Type_names + 228, 15}, 4 }, - { {Type_names + 243, 16}, 5 }, - { {Type_names + 259, 27}, 15 }, +static const ::google::protobuf::internal::EnumEntry Type_entries[] = { + {{&Type_names[0], 18}, 7}, + {{&Type_names[18], 25}, 14}, + {{&Type_names[43], 24}, 13}, + {{&Type_names[67], 40}, 12}, + {{&Type_names[107], 10}, 0}, + {{&Type_names[117], 24}, 11}, + {{&Type_names[141], 18}, 101}, + {{&Type_names[159], 21}, 10}, + {{&Type_names[180], 6}, 1}, + {{&Type_names[186], 17}, 8}, + {{&Type_names[203], 7}, 6}, + {{&Type_names[210], 8}, 3}, + {{&Type_names[218], 10}, 2}, + {{&Type_names[228], 15}, 4}, + {{&Type_names[243], 16}, 5}, + {{&Type_names[259], 27}, 15}, }; static const int Type_entries_by_number[] = { - 4, // 0 -> ENROLLMENT - 8, // 1 -> TICKLE - 12, // 2 -> TX_REQUEST - 11, // 3 -> TX_REPLY - 13, // 4 -> TX_SYNC_REQUEST - 14, // 5 -> TX_SYNC_RESPONSE - 10, // 6 -> TX_PING - 0, // 7 -> DEVICE_INFO_UPDATE - 9, // 8 -> TX_CANCEL_REQUEST - 7, // 10 -> PROXIMITYAUTH_PAIRING - 5, // 11 -> GCMV1_IDENTITY_ASSERTION - 3, // 12 -> DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD - 2, // 13 -> DEVICE_TO_DEVICE_MESSAGE - 1, // 14 -> DEVICE_PROXIMITY_CALLBACK - 15, // 15 -> UNLOCK_KEY_SIGNED_CHALLENGE - 6, // 101 -> LOGIN_NOTIFICATION + 4, // 0 -> ENROLLMENT + 8, // 1 -> TICKLE + 12, // 2 -> TX_REQUEST + 11, // 3 -> TX_REPLY + 13, // 4 -> TX_SYNC_REQUEST + 14, // 5 -> TX_SYNC_RESPONSE + 10, // 6 -> TX_PING + 0, // 7 -> DEVICE_INFO_UPDATE + 9, // 8 -> TX_CANCEL_REQUEST + 7, // 10 -> PROXIMITYAUTH_PAIRING + 5, // 11 -> GCMV1_IDENTITY_ASSERTION + 3, // 12 -> DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD + 2, // 13 -> DEVICE_TO_DEVICE_MESSAGE + 1, // 14 -> DEVICE_PROXIMITY_CALLBACK + 15, // 15 -> UNLOCK_KEY_SIGNED_CHALLENGE + 6, // 101 -> LOGIN_NOTIFICATION }; -const std::string& Type_Name( - Type value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Type_entries, - Type_entries_by_number, - 16, Type_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Type_entries, - Type_entries_by_number, - 16, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Type_strings[idx].get(); +const ::std::string& Type_Name(Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Type_entries, Type_entries_by_number, 16, + Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Type_entries, + Type_entries_by_number, + 16, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Type_strings[idx].get(); } -bool Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type* value) { + +bool Type_Parse(::absl::string_view name, Type* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Type_entries, 16, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class GcmDeviceInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_android_device_id(HasBits* has_bits) { - (*has_bits)[0] |= 131072u; - } - static void set_has_gcm_registration_id(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_apn_registration_id(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_notification_enabled(HasBits* has_bits) { - (*has_bits)[1] |= 8u; - } - static void set_has_bluetooth_mac_address(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_device_master_key_hash(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_user_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_device_model(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_locale(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_key_handle(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_counter(HasBits* has_bits) { - (*has_bits)[0] |= 262144u; - } - static void set_has_device_os_version(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_device_os_version_code(HasBits* has_bits) { - (*has_bits)[0] |= 524288u; - } - static void set_has_device_os_release(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_device_os_codename(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_device_software_version(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_device_software_version_code(HasBits* has_bits) { - (*has_bits)[0] |= 1048576u; - } - static void set_has_device_software_package(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_device_display_diagonal_mils(HasBits* has_bits) { - (*has_bits)[0] |= 2097152u; - } - static void set_has_device_authzen_version(HasBits* has_bits) { - (*has_bits)[0] |= 4194304u; - } - static void set_has_long_device_id(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_device_manufacturer(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[1] |= 4u; - } - static void set_has_using_secure_screenlock(HasBits* has_bits) { - (*has_bits)[0] |= 67108864u; - } - static void set_has_auto_unlock_screenlock_supported(HasBits* has_bits) { - (*has_bits)[0] |= 134217728u; - } - static void set_has_auto_unlock_screenlock_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 268435456u; - } - static void set_has_bluetooth_radio_supported(HasBits* has_bits) { - (*has_bits)[0] |= 536870912u; - } - static void set_has_bluetooth_radio_enabled(HasBits* has_bits) { - (*has_bits)[0] |= 1073741824u; - } - static void set_has_mobile_data_supported(HasBits* has_bits) { - (*has_bits)[0] |= 2147483648u; - } - static void set_has_tethering_supported(HasBits* has_bits) { - (*has_bits)[1] |= 1u; - } - static void set_has_ble_radio_supported(HasBits* has_bits) { - (*has_bits)[1] |= 2u; - } - static void set_has_pixel_experience(HasBits* has_bits) { - (*has_bits)[0] |= 8388608u; - } - static void set_has_arc_plus_plus(HasBits* has_bits) { - (*has_bits)[0] |= 16777216u; - } - static void set_has_is_screenlock_state_flaky(HasBits* has_bits) { - (*has_bits)[0] |= 33554432u; - } - static void set_has_enrollment_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static void set_has_oauth_token(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; } }; -GcmDeviceInfo::GcmDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - supported_software_features_(arena), - enabled_software_features_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +GcmDeviceInfo::GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.GcmDeviceInfo) } -GcmDeviceInfo::GcmDeviceInfo(const GcmDeviceInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - supported_software_features_(from.supported_software_features_), - enabled_software_features_(from.enabled_software_features_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - user_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - user_public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_user_public_key()) { - user_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_user_public_key(), - GetArenaForAllocation()); - } - device_model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_model()) { - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_model(), - GetArenaForAllocation()); - } - locale_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - locale_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_locale()) { - locale_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_locale(), - GetArenaForAllocation()); - } - key_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_key_handle()) { - key_handle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key_handle(), - GetArenaForAllocation()); - } - device_os_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_os_version()) { - device_os_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_os_version(), - GetArenaForAllocation()); - } - device_os_release_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_release_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_os_release()) { - device_os_release_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_os_release(), - GetArenaForAllocation()); - } - device_os_codename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_codename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_os_codename()) { - device_os_codename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_os_codename(), - GetArenaForAllocation()); - } - device_software_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_software_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_software_version()) { - device_software_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_software_version(), - GetArenaForAllocation()); - } - device_software_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_software_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_software_package()) { - device_software_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_software_package(), - GetArenaForAllocation()); - } - long_device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - long_device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_long_device_id()) { - long_device_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_long_device_id(), - GetArenaForAllocation()); - } - device_manufacturer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_manufacturer()) { - device_manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_manufacturer(), - GetArenaForAllocation()); - } - gcm_registration_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - gcm_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_gcm_registration_id()) { - gcm_registration_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_gcm_registration_id(), - GetArenaForAllocation()); - } - device_master_key_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_master_key_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_master_key_hash()) { - device_master_key_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_master_key_hash(), - GetArenaForAllocation()); - } - apn_registration_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - apn_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_apn_registration_id()) { - apn_registration_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_apn_registration_id(), - GetArenaForAllocation()); - } - bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_bluetooth_mac_address()) { - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bluetooth_mac_address(), - GetArenaForAllocation()); - } - enrollment_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - enrollment_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_enrollment_session_id()) { - enrollment_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_enrollment_session_id(), - GetArenaForAllocation()); - } - oauth_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - oauth_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_oauth_token()) { - oauth_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_oauth_token(), - GetArenaForAllocation()); - } - ::memcpy(&android_device_id_, &from.android_device_id_, - static_cast(reinterpret_cast(¬ification_enabled_) - - reinterpret_cast(&android_device_id_)) + sizeof(notification_enabled_)); +PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::GcmDeviceInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + enabled_software_features_{visibility, arena, from.enabled_software_features_}, + user_public_key_(arena, from.user_public_key_), + device_model_(arena, from.device_model_), + locale_(arena, from.locale_), + key_handle_(arena, from.key_handle_), + device_os_version_(arena, from.device_os_version_), + device_os_release_(arena, from.device_os_release_), + device_os_codename_(arena, from.device_os_codename_), + device_software_version_(arena, from.device_software_version_), + device_software_package_(arena, from.device_software_package_), + long_device_id_(arena, from.long_device_id_), + device_manufacturer_(arena, from.device_manufacturer_), + device_master_key_hash_(arena, from.device_master_key_hash_), + apn_registration_id_(arena, from.apn_registration_id_), + bluetooth_mac_address_(arena, from.bluetooth_mac_address_), + supported_software_features_{visibility, arena, from.supported_software_features_}, + gcm_registration_id_(arena, from.gcm_registration_id_), + enrollment_session_id_(arena, from.enrollment_session_id_), + oauth_token_(arena, from.oauth_token_) {} + +GcmDeviceInfo::GcmDeviceInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GcmDeviceInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GcmDeviceInfo* 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(&_impl_) + + offsetof(Impl_, android_device_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, android_device_id_), + offsetof(Impl_, notification_enabled_) - + offsetof(Impl_, android_device_id_) + + sizeof(Impl_::notification_enabled_)); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, using_secure_screenlock_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, using_secure_screenlock_), + offsetof(Impl_, device_type_) - + offsetof(Impl_, using_secure_screenlock_) + + sizeof(Impl_::device_type_)); + // @@protoc_insertion_point(copy_constructor:securegcm.GcmDeviceInfo) } +PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + enabled_software_features_{visibility, arena}, + user_public_key_(arena), + device_model_(arena), + locale_(arena), + key_handle_(arena), + device_os_version_(arena), + device_os_release_(arena), + device_os_codename_(arena), + device_software_version_(arena), + device_software_package_(arena), + long_device_id_(arena), + device_manufacturer_(arena), + device_master_key_hash_(arena), + apn_registration_id_(arena), + bluetooth_mac_address_(arena), + notification_enabled_{true}, + supported_software_features_{visibility, arena}, + gcm_registration_id_(arena), + enrollment_session_id_(arena), + oauth_token_(arena), + device_type_{static_cast< ::securegcm::DeviceType >(1)} {} -inline void GcmDeviceInfo::SharedCtor() { -user_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - user_public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -locale_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - locale_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -key_handle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - key_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_os_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_os_release_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_release_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_os_codename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_os_codename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_software_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_software_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_software_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_software_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -long_device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - long_device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_manufacturer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -gcm_registration_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - gcm_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_master_key_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_master_key_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -apn_registration_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - apn_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -enrollment_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - enrollment_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -oauth_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - oauth_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&android_device_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ble_radio_supported_) - - reinterpret_cast(&android_device_id_)) + sizeof(ble_radio_supported_)); -device_type_ = 1; -notification_enabled_ = true; +inline void GcmDeviceInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, android_device_id_), + 0, + offsetof(Impl_, arc_plus_plus_) - + offsetof(Impl_, android_device_id_) + + sizeof(Impl_::arc_plus_plus_)); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, using_secure_screenlock_), + 0, + offsetof(Impl_, is_screenlock_state_flaky_) - + offsetof(Impl_, using_secure_screenlock_) + + sizeof(Impl_::is_screenlock_state_flaky_)); } - GcmDeviceInfo::~GcmDeviceInfo() { // @@protoc_insertion_point(destructor:securegcm.GcmDeviceInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void GcmDeviceInfo::SharedDtor(MessageLite& self) { + GcmDeviceInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.user_public_key_.Destroy(); + this_._impl_.device_model_.Destroy(); + this_._impl_.locale_.Destroy(); + this_._impl_.key_handle_.Destroy(); + this_._impl_.device_os_version_.Destroy(); + this_._impl_.device_os_release_.Destroy(); + this_._impl_.device_os_codename_.Destroy(); + this_._impl_.device_software_version_.Destroy(); + this_._impl_.device_software_package_.Destroy(); + this_._impl_.long_device_id_.Destroy(); + this_._impl_.device_manufacturer_.Destroy(); + this_._impl_.device_master_key_hash_.Destroy(); + this_._impl_.apn_registration_id_.Destroy(); + this_._impl_.bluetooth_mac_address_.Destroy(); + this_._impl_.gcm_registration_id_.Destroy(); + this_._impl_.enrollment_session_id_.Destroy(); + this_._impl_.oauth_token_.Destroy(); + this_._impl_.~Impl_(); } -inline void GcmDeviceInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - user_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_model_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - locale_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_handle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_os_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_os_release_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_os_codename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_software_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_software_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - long_device_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_manufacturer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gcm_registration_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_master_key_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - apn_registration_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - bluetooth_mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - enrollment_session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - oauth_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL GcmDeviceInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GcmDeviceInfo(arena); +} +constexpr auto GcmDeviceInfo::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_) + + decltype(GcmDeviceInfo::_impl_.supported_software_features_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_) + + decltype(GcmDeviceInfo::_impl_.enabled_software_features_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GcmDeviceInfo), alignof(GcmDeviceInfo), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GcmDeviceInfo::PlacementNew_, + sizeof(GcmDeviceInfo), + alignof(GcmDeviceInfo)); + } +} +constexpr auto GcmDeviceInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<24>{ + { + &_GcmDeviceInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GcmDeviceInfo::IsInitializedImpl, + &GcmDeviceInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GcmDeviceInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GcmDeviceInfo::ByteSizeLong, + &GcmDeviceInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._cached_size_), + true, + }, + "securegcm.GcmDeviceInfo", + }; } -void GcmDeviceInfo::ArenaDtor(void* object) { - GcmDeviceInfo* _this = reinterpret_cast< GcmDeviceInfo* >(object); - (void)_this; -} -void GcmDeviceInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GcmDeviceInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_ = + GcmDeviceInfo::InternalGenerateClassData_(); -void GcmDeviceInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GcmDeviceInfo::GetClassData() const { + return GcmDeviceInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 38, 3, 0, 27> +GcmDeviceInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_), + 0, // no _extensions_ + 1001, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 794297910, // skipmap + offsetof(decltype(_table_), field_entries), + 38, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GcmDeviceInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::GcmDeviceInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional fixed64 android_device_id = 1; + {::_pbi::TcParser::FastF64S1, + {9, 15, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // required bytes user_public_key = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional string device_model = 7; + {::_pbi::TcParser::FastBS1, + {58, 2, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_)}}, + // optional string locale = 8; + {::_pbi::TcParser::FastBS1, + {66, 3, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_)}}, + // optional bytes key_handle = 9; + {::_pbi::TcParser::FastBS1, + {74, 4, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional int64 counter = 12 [default = 0]; + {::_pbi::TcParser::FastV64S1, + {96, 16, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_)}}, + // optional string device_os_version = 13; + {::_pbi::TcParser::FastBS1, + {106, 5, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_)}}, + // optional int64 device_os_version_code = 14; + {::_pbi::TcParser::FastV64S1, + {112, 17, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_)}}, + // optional string device_os_release = 15; + {::_pbi::TcParser::FastBS1, + {122, 6, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_)}}, + // optional string device_os_codename = 16; + {::_pbi::TcParser::FastBS2, + {386, 7, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_)}}, + // optional string device_software_version = 17; + {::_pbi::TcParser::FastBS2, + {394, 8, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_)}}, + // optional int64 device_software_version_code = 18; + {::_pbi::TcParser::FastV64S2, + {400, 18, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_)}}, + // optional string device_software_package = 19; + {::_pbi::TcParser::FastBS2, + {410, 9, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_)}}, + // optional bool bluetooth_radio_enabled = 404 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6560, 21, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_)}}, + // optional bool mobile_data_supported = 405 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6568, 22, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_)}}, + // optional int32 device_display_diagonal_mils = 22; + {::_pbi::TcParser::FastV32S2, + {432, 19, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_)}}, + // optional bytes device_master_key_hash = 103; + {::_pbi::TcParser::FastBS2, + {1722, 12, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_)}}, + // optional int32 device_authzen_version = 24; + {::_pbi::TcParser::FastV32S2, + {448, 20, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_)}}, + // optional bool arc_plus_plus = 409 [default = false]; + {::_pbi::TcParser::FastV8S2, + {6600, 23, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_)}}, + // optional bytes apn_registration_id = 202; + {::_pbi::TcParser::FastBS2, + {3282, 13, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_)}}, + // optional bool notification_enabled = 203 [default = true]; + {::_pbi::TcParser::FastV8S2, + {3288, 24, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_)}}, + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + {::_pbi::TcParser::FastEr0R2, + {6624, 0, 8, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_)}}, + // optional bytes long_device_id = 29; + {::_pbi::TcParser::FastBS2, + {490, 10, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_)}}, + // optional string bluetooth_mac_address = 302; + {::_pbi::TcParser::FastBS2, + {4850, 14, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_)}}, + // optional string device_manufacturer = 31; + {::_pbi::TcParser::FastBS2, + {506, 11, 0, + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_)}}, + }}, {{ + 102, 0, 1, + 65532, 18, + 202, 0, 1, + 65532, 20, + 302, 0, 1, + 65534, 22, + 400, 0, 1, + 57344, 23, + 1000, 0, 1, + 65532, 36, + 65535, 65535 + }}, {{ + // optional fixed64 android_device_id = 1; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + // required bytes user_public_key = 4; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_model = 7; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string locale = 8; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes key_handle = 9; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 counter = 12 [default = 0]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_os_version = 13; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 device_os_version_code = 14; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_os_release = 15; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_os_codename = 16; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_software_version = 17; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int64 device_software_version_code = 18; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional string device_software_package = 19; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 device_display_diagonal_mils = 22; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 device_authzen_version = 24; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes long_device_id = 29; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string device_manufacturer = 31; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_), _Internal::kHasBitsOffset + 37, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes gcm_registration_id = 102; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.gcm_registration_id_), _Internal::kHasBitsOffset + 26, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes device_master_key_hash = 103; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes apn_registration_id = 202; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool notification_enabled = 203 [default = true]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string bluetooth_mac_address = 302; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bool using_secure_screenlock = 400 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_), _Internal::kHasBitsOffset + 29, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool auto_unlock_screenlock_supported = 401 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_supported_), _Internal::kHasBitsOffset + 30, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_enabled_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool bluetooth_radio_supported = 403 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_supported_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool bluetooth_radio_enabled = 404 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool mobile_data_supported = 405 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool tethering_supported = 406 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.tethering_supported_), _Internal::kHasBitsOffset + 33, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool ble_radio_supported = 407 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.ble_radio_supported_), _Internal::kHasBitsOffset + 34, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool pixel_experience = 408 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.pixel_experience_), _Internal::kHasBitsOffset + 35, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool arc_plus_plus = 409 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool is_screenlock_state_flaky = 410 [default = false]; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.is_screenlock_state_flaky_), _Internal::kHasBitsOffset + 36, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_), _Internal::kHasBitsOffset + 25, 1, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // optional bytes enrollment_session_id = 1000; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enrollment_session_id_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string oauth_token = 1001; + {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.oauth_token_), _Internal::kHasBitsOffset + 28, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 5}, + {0, 8}, + {0, 8}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GcmDeviceInfo::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.GcmDeviceInfo) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - supported_software_features_.Clear(); - enabled_software_features_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - user_public_key_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.enabled_software_features_.Clear(); } - if (cached_has_bits & 0x00000002u) { - device_model_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.user_public_key_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - locale_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.device_model_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - key_handle_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.locale_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000010u) { - device_os_version_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.key_handle_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000020u) { - device_os_release_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.device_os_version_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000040u) { - device_os_codename_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _impl_.device_os_release_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000080u) { - device_software_version_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _impl_.device_os_codename_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - device_software_package_.ClearNonDefaultToEmpty(); + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _impl_.device_software_version_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000200u) { - long_device_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _impl_.device_software_package_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000400u) { - device_manufacturer_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _impl_.long_device_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000800u) { - gcm_registration_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _impl_.device_manufacturer_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00001000u) { - device_master_key_hash_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _impl_.device_master_key_hash_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00002000u) { - apn_registration_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _impl_.apn_registration_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00004000u) { - bluetooth_mac_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00008000u) { - enrollment_session_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + _impl_.bluetooth_mac_address_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x00010000u) { - oauth_token_.ClearNonDefaultToEmpty(); + _impl_.android_device_id_ = ::uint64_t{0u}; + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + ::memset(&_impl_.counter_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.arc_plus_plus_) - + reinterpret_cast(&_impl_.counter_)) + sizeof(_impl_.arc_plus_plus_)); } - if (cached_has_bits & 0x00fe0000u) { - ::memset(&android_device_id_, 0, static_cast( - reinterpret_cast(&pixel_experience_) - - reinterpret_cast(&android_device_id_)) + sizeof(pixel_experience_)); + if (BatchCheckHasBit(cached_has_bits, 0x1f000000U)) { + _impl_.notification_enabled_ = true; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + _impl_.supported_software_features_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + _impl_.gcm_registration_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + _impl_.enrollment_session_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + _impl_.oauth_token_.ClearNonDefaultToEmpty(); + } } - if (cached_has_bits & 0xff000000u) { - ::memset(&arc_plus_plus_, 0, static_cast( - reinterpret_cast(&mobile_data_supported_) - - reinterpret_cast(&arc_plus_plus_)) + sizeof(mobile_data_supported_)); + if (BatchCheckHasBit(cached_has_bits, 0xe0000000U)) { + ::memset(&_impl_.using_secure_screenlock_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.auto_unlock_screenlock_enabled_) - + reinterpret_cast(&_impl_.using_secure_screenlock_)) + sizeof(_impl_.auto_unlock_screenlock_enabled_)); } - cached_has_bits = _has_bits_[1]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&tethering_supported_, 0, static_cast( - reinterpret_cast(&ble_radio_supported_) - - reinterpret_cast(&tethering_supported_)) + sizeof(ble_radio_supported_)); - device_type_ = 1; - notification_enabled_ = true; + cached_has_bits = _impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + ::memset(&_impl_.bluetooth_radio_supported_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_screenlock_state_flaky_) - + reinterpret_cast(&_impl_.bluetooth_radio_supported_)) + sizeof(_impl_.is_screenlock_state_flaky_)); + _impl_.device_type_ = 1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* GcmDeviceInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional fixed64 android_device_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { - _Internal::set_has_android_device_id(&_has_bits_); - android_device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(uint64_t); - } else - goto handle_unusual; - continue; - // required bytes user_public_key = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_user_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_model = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_device_model(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string locale = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_locale(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes key_handle = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_key_handle(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 counter = 12 [default = 0]; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - _Internal::set_has_counter(&_has_bits_); - counter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_os_version = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - auto str = _internal_mutable_device_os_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_os_version_code = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_device_os_version_code(&_has_bits_); - device_os_version_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_os_release = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - auto str = _internal_mutable_device_os_release(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_os_codename = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - auto str = _internal_mutable_device_os_codename(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_software_version = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - auto str = _internal_mutable_device_software_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_software_version_code = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { - _Internal::set_has_device_software_version_code(&_has_bits_); - device_software_version_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_software_package = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { - auto str = _internal_mutable_device_software_package(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 device_display_diagonal_mils = 22; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - _Internal::set_has_device_display_diagonal_mils(&_has_bits_); - device_display_diagonal_mils_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 device_authzen_version = 24; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 192)) { - _Internal::set_has_device_authzen_version(&_has_bits_); - device_authzen_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes long_device_id = 29; - case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 234)) { - auto str = _internal_mutable_long_device_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_manufacturer = 31; - case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 250)) { - auto str = _internal_mutable_device_manufacturer(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - case 32: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 0)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::securegcm::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(32, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes gcm_registration_id = 102; - case 102: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_gcm_registration_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes device_master_key_hash = 103; - case 103: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_device_master_key_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes apn_registration_id = 202; - case 202: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_apn_registration_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool notification_enabled = 203 [default = true]; - case 203: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_notification_enabled(&_has_bits_); - notification_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string bluetooth_mac_address = 302; - case 302: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - auto str = _internal_mutable_bluetooth_mac_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool using_secure_screenlock = 400 [default = false]; - case 400: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { - _Internal::set_has_using_secure_screenlock(&_has_bits_); - using_secure_screenlock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - case 401: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - _Internal::set_has_auto_unlock_screenlock_supported(&_has_bits_); - auto_unlock_screenlock_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - case 402: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { - _Internal::set_has_auto_unlock_screenlock_enabled(&_has_bits_); - auto_unlock_screenlock_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool bluetooth_radio_supported = 403 [default = false]; - case 403: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 152)) { - _Internal::set_has_bluetooth_radio_supported(&_has_bits_); - bluetooth_radio_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool bluetooth_radio_enabled = 404 [default = false]; - case 404: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - _Internal::set_has_bluetooth_radio_enabled(&_has_bits_); - bluetooth_radio_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool mobile_data_supported = 405 [default = false]; - case 405: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - _Internal::set_has_mobile_data_supported(&_has_bits_); - mobile_data_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool tethering_supported = 406 [default = false]; - case 406: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - _Internal::set_has_tethering_supported(&_has_bits_); - tethering_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool ble_radio_supported = 407 [default = false]; - case 407: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 184)) { - _Internal::set_has_ble_radio_supported(&_has_bits_); - ble_radio_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool pixel_experience = 408 [default = false]; - case 408: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 192)) { - _Internal::set_has_pixel_experience(&_has_bits_); - pixel_experience_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool arc_plus_plus = 409 [default = false]; - case 409: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 200)) { - _Internal::set_has_arc_plus_plus(&_has_bits_); - arc_plus_plus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_screenlock_state_flaky = 410 [default = false]; - case 410: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 208)) { - _Internal::set_has_is_screenlock_state_flaky(&_has_bits_); - is_screenlock_state_flaky_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - case 411: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 216)) { - ptr -= 2; - do { - ptr += 2; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::SoftwareFeature_IsValid(val))) { - _internal_add_supported_software_features(static_cast<::securegcm::SoftwareFeature>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(411, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<3288>(ptr)); - } else if (static_cast(tag) == 218) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_supported_software_features(), ptr, ctx, ::securegcm::SoftwareFeature_IsValid, &_internal_metadata_, 411); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - case 412: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 224)) { - ptr -= 2; - do { - ptr += 2; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::SoftwareFeature_IsValid(val))) { - _internal_add_enabled_software_features(static_cast<::securegcm::SoftwareFeature>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(412, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<3296>(ptr)); - } else if (static_cast(tag) == 226) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_enabled_software_features(), ptr, ctx, ::securegcm::SoftwareFeature_IsValid, &_internal_metadata_, 412); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes enrollment_session_id = 1000; - case 1000: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_enrollment_session_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string oauth_token = 1001; - case 1001: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_oauth_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* GcmDeviceInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GcmDeviceInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GcmDeviceInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmDeviceInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional fixed64 android_device_id = 1; - if (cached_has_bits & 0x00020000u) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->_internal_android_device_id(), target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 1, this_._internal_android_device_id(), target); } // required bytes user_public_key = 4; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_user_public_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_user_public_key(); + target = stream->WriteBytesMaybeAliased(4, _s, target); } // optional string device_model = 7; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 7, this->_internal_device_model(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_device_model(); + target = stream->WriteStringMaybeAliased(7, _s, target); } // optional string locale = 8; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 8, this->_internal_locale(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_locale(); + target = stream->WriteStringMaybeAliased(8, _s, target); } // optional bytes key_handle = 9; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 9, this->_internal_key_handle(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + const ::std::string& _s = this_._internal_key_handle(); + target = stream->WriteBytesMaybeAliased(9, _s, target); } // optional int64 counter = 12 [default = 0]; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(12, this->_internal_counter(), target); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>( + stream, this_._internal_counter(), target); } // optional string device_os_version = 13; - if (cached_has_bits & 0x00000010u) { - target = stream->WriteStringMaybeAliased( - 13, this->_internal_device_os_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + const ::std::string& _s = this_._internal_device_os_version(); + target = stream->WriteStringMaybeAliased(13, _s, target); } // optional int64 device_os_version_code = 14; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(14, this->_internal_device_os_version_code(), target); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>( + stream, this_._internal_device_os_version_code(), target); } // optional string device_os_release = 15; - if (cached_has_bits & 0x00000020u) { - target = stream->WriteStringMaybeAliased( - 15, this->_internal_device_os_release(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + const ::std::string& _s = this_._internal_device_os_release(); + target = stream->WriteStringMaybeAliased(15, _s, target); } // optional string device_os_codename = 16; - if (cached_has_bits & 0x00000040u) { - target = stream->WriteStringMaybeAliased( - 16, this->_internal_device_os_codename(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + const ::std::string& _s = this_._internal_device_os_codename(); + target = stream->WriteStringMaybeAliased(16, _s, target); } // optional string device_software_version = 17; - if (cached_has_bits & 0x00000080u) { - target = stream->WriteStringMaybeAliased( - 17, this->_internal_device_software_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + const ::std::string& _s = this_._internal_device_software_version(); + target = stream->WriteStringMaybeAliased(17, _s, target); } // optional int64 device_software_version_code = 18; - if (cached_has_bits & 0x00100000u) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(18, this->_internal_device_software_version_code(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray( + 18, this_._internal_device_software_version_code(), target); } // optional string device_software_package = 19; - if (cached_has_bits & 0x00000100u) { - target = stream->WriteStringMaybeAliased( - 19, this->_internal_device_software_package(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + const ::std::string& _s = this_._internal_device_software_package(); + target = stream->WriteStringMaybeAliased(19, _s, target); } // optional int32 device_display_diagonal_mils = 22; - if (cached_has_bits & 0x00200000u) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_device_display_diagonal_mils(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 22, this_._internal_device_display_diagonal_mils(), target); } // optional int32 device_authzen_version = 24; - if (cached_has_bits & 0x00400000u) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_device_authzen_version(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 24, this_._internal_device_authzen_version(), target); } // optional bytes long_device_id = 29; - if (cached_has_bits & 0x00000200u) { - target = stream->WriteBytesMaybeAliased( - 29, this->_internal_long_device_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + const ::std::string& _s = this_._internal_long_device_id(); + target = stream->WriteBytesMaybeAliased(29, _s, target); } // optional string device_manufacturer = 31; - if (cached_has_bits & 0x00000400u) { - target = stream->WriteStringMaybeAliased( - 31, this->_internal_device_manufacturer(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + const ::std::string& _s = this_._internal_device_manufacturer(); + target = stream->WriteStringMaybeAliased(31, _s, target); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = this_._impl_._has_bits_[1]; // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 32, this->_internal_device_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 32, this_._internal_device_type(), target); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes gcm_registration_id = 102; - if (cached_has_bits & 0x00000800u) { - target = stream->WriteBytesMaybeAliased( - 102, this->_internal_gcm_registration_id(), target); + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + const ::std::string& _s = this_._internal_gcm_registration_id(); + target = stream->WriteBytesMaybeAliased(102, _s, target); } // optional bytes device_master_key_hash = 103; - if (cached_has_bits & 0x00001000u) { - target = stream->WriteBytesMaybeAliased( - 103, this->_internal_device_master_key_hash(), target); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + const ::std::string& _s = this_._internal_device_master_key_hash(); + target = stream->WriteBytesMaybeAliased(103, _s, target); } // optional bytes apn_registration_id = 202; - if (cached_has_bits & 0x00002000u) { - target = stream->WriteBytesMaybeAliased( - 202, this->_internal_apn_registration_id(), target); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + const ::std::string& _s = this_._internal_apn_registration_id(); + target = stream->WriteBytesMaybeAliased(202, _s, target); } - cached_has_bits = _has_bits_[1]; // optional bool notification_enabled = 203 [default = true]; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(203, this->_internal_notification_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 203, this_._internal_notification_enabled(), target); } - cached_has_bits = _has_bits_[0]; // optional string bluetooth_mac_address = 302; - if (cached_has_bits & 0x00004000u) { - target = stream->WriteStringMaybeAliased( - 302, this->_internal_bluetooth_mac_address(), target); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + const ::std::string& _s = this_._internal_bluetooth_mac_address(); + target = stream->WriteStringMaybeAliased(302, _s, target); } // optional bool using_secure_screenlock = 400 [default = false]; - if (cached_has_bits & 0x04000000u) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(400, this->_internal_using_secure_screenlock(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 400, this_._internal_using_secure_screenlock(), target); } // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - if (cached_has_bits & 0x08000000u) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(401, this->_internal_auto_unlock_screenlock_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 401, this_._internal_auto_unlock_screenlock_supported(), target); } // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - if (cached_has_bits & 0x10000000u) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(402, this->_internal_auto_unlock_screenlock_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 402, this_._internal_auto_unlock_screenlock_enabled(), target); } + cached_has_bits = this_._impl_._has_bits_[1]; // optional bool bluetooth_radio_supported = 403 [default = false]; - if (cached_has_bits & 0x20000000u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(403, this->_internal_bluetooth_radio_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 403, this_._internal_bluetooth_radio_supported(), target); } + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool bluetooth_radio_enabled = 404 [default = false]; - if (cached_has_bits & 0x40000000u) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(404, this->_internal_bluetooth_radio_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 404, this_._internal_bluetooth_radio_enabled(), target); } // optional bool mobile_data_supported = 405 [default = false]; - if (cached_has_bits & 0x80000000u) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(405, this->_internal_mobile_data_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 405, this_._internal_mobile_data_supported(), target); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = this_._impl_._has_bits_[1]; // optional bool tethering_supported = 406 [default = false]; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(406, this->_internal_tethering_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 406, this_._internal_tethering_supported(), target); } // optional bool ble_radio_supported = 407 [default = false]; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(407, this->_internal_ble_radio_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 407, this_._internal_ble_radio_supported(), target); } - cached_has_bits = _has_bits_[0]; // optional bool pixel_experience = 408 [default = false]; - if (cached_has_bits & 0x00800000u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(408, this->_internal_pixel_experience(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 408, this_._internal_pixel_experience(), target); } + cached_has_bits = this_._impl_._has_bits_[0]; // optional bool arc_plus_plus = 409 [default = false]; - if (cached_has_bits & 0x01000000u) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(409, this->_internal_arc_plus_plus(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 409, this_._internal_arc_plus_plus(), target); } + cached_has_bits = this_._impl_._has_bits_[1]; // optional bool is_screenlock_state_flaky = 410 [default = false]; - if (cached_has_bits & 0x02000000u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(410, this->_internal_is_screenlock_state_flaky(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 410, this_._internal_is_screenlock_state_flaky(), target); } + cached_has_bits = this_._impl_._has_bits_[0]; // repeated .securegcm.SoftwareFeature supported_software_features = 411; - for (int i = 0, n = this->_internal_supported_software_features_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 411, this->_internal_supported_software_features(i), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + for (int i = 0, n = this_._internal_supported_software_features_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 411, static_cast<::securegcm::SoftwareFeature>(this_._internal_supported_software_features().Get(i)), + target); + } } // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - for (int i = 0, n = this->_internal_enabled_software_features_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 412, this->_internal_enabled_software_features(i), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_enabled_software_features_size(); i < n; ++i) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 412, static_cast<::securegcm::SoftwareFeature>(this_._internal_enabled_software_features().Get(i)), + target); + } } // optional bytes enrollment_session_id = 1000; - if (cached_has_bits & 0x00008000u) { - target = stream->WriteBytesMaybeAliased( - 1000, this->_internal_enrollment_session_id(), target); + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + const ::std::string& _s = this_._internal_enrollment_session_id(); + target = stream->WriteBytesMaybeAliased(1000, _s, target); } // optional string oauth_token = 1001; - if (cached_has_bits & 0x00010000u) { - target = stream->WriteStringMaybeAliased( - 1001, this->_internal_oauth_token(), target); + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + const ::std::string& _s = this_._internal_oauth_token(); + target = stream->WriteStringMaybeAliased(1001, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmDeviceInfo) return target; } -size_t GcmDeviceInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.GcmDeviceInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GcmDeviceInfo::ByteSizeLong(const MessageLite& base) { + const GcmDeviceInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GcmDeviceInfo::ByteSizeLong() const { + const GcmDeviceInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmDeviceInfo) + ::size_t total_size = 0; - // required bytes user_public_key = 4; - if (_internal_has_user_public_key()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_user_public_key()); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_supported_software_features_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_supported_software_features(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00008000U & cached_has_bits) * 9; + total_size += ::absl::popcount(0xe1e00000U & cached_has_bits) * 3; + { + // repeated .securegcm.SoftwareFeature enabled_software_features = 412; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_enabled_software_features()); + ::size_t tag_size = ::size_t{2} * + ::_pbi::FromIntSize(this_._internal_enabled_software_features_size()); + total_size += data_size + tag_size; } - total_size += (2UL * count) + data_size; } - - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_enabled_software_features_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_enabled_software_features(static_cast(i))); + { + // required bytes user_public_key = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_user_public_key()); } - total_size += (2UL * count) + data_size; } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000feu) { + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { // optional string device_model = 7; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_model()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_model()); } - // optional string locale = 8; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_locale()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_locale()); } - // optional bytes key_handle = 9; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_key_handle()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_key_handle()); } - // optional string device_os_version = 13; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_os_version()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_version()); } - // optional string device_os_release = 15; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_os_release()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_release()); } - // optional string device_os_codename = 16; - if (cached_has_bits & 0x00000040u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_os_codename()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_os_codename()); } - + } + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { // optional string device_software_version = 17; - if (cached_has_bits & 0x00000080u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_software_version()); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_software_version()); } - - } - if (cached_has_bits & 0x0000ff00u) { // optional string device_software_package = 19; - if (cached_has_bits & 0x00000100u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_software_package()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_software_package()); } - // optional bytes long_device_id = 29; - if (cached_has_bits & 0x00000200u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_long_device_id()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_long_device_id()); } - // optional string device_manufacturer = 31; - if (cached_has_bits & 0x00000400u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_manufacturer()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_device_manufacturer()); } - - // optional bytes gcm_registration_id = 102; - if (cached_has_bits & 0x00000800u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_gcm_registration_id()); - } - // optional bytes device_master_key_hash = 103; - if (cached_has_bits & 0x00001000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_device_master_key_hash()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_device_master_key_hash()); } - // optional bytes apn_registration_id = 202; - if (cached_has_bits & 0x00002000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_apn_registration_id()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_apn_registration_id()); } - // optional string bluetooth_mac_address = 302; - if (cached_has_bits & 0x00004000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_bluetooth_mac_address()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_bluetooth_mac_address()); } - - // optional bytes enrollment_session_id = 1000; - if (cached_has_bits & 0x00008000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_enrollment_session_id()); - } - } - if (cached_has_bits & 0x00ff0000u) { - // optional string oauth_token = 1001; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_oauth_token()); - } - - // optional fixed64 android_device_id = 1; - if (cached_has_bits & 0x00020000u) { - total_size += 1 + 8; - } - + if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) { // optional int64 counter = 12 [default = 0]; - if (cached_has_bits & 0x00040000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_counter()); + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_counter()); } - // optional int64 device_os_version_code = 14; - if (cached_has_bits & 0x00080000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_os_version_code()); + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_device_os_version_code()); } - // optional int64 device_software_version_code = 18; - if (cached_has_bits & 0x00100000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_device_software_version_code()); + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int64Size( + this_._internal_device_software_version_code()); } - // optional int32 device_display_diagonal_mils = 22; - if (cached_has_bits & 0x00200000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_device_display_diagonal_mils()); + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_device_display_diagonal_mils()); } - // optional int32 device_authzen_version = 24; - if (cached_has_bits & 0x00400000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_device_authzen_version()); + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_device_authzen_version()); } - - // optional bool pixel_experience = 408 [default = false]; - if (cached_has_bits & 0x00800000u) { - total_size += 2 + 1; - } - } - if (cached_has_bits & 0xff000000u) { - // optional bool arc_plus_plus = 409 [default = false]; - if (cached_has_bits & 0x01000000u) { - total_size += 2 + 1; + if (BatchCheckHasBit(cached_has_bits, 0x1e000000U)) { + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + ::size_t data_size = + ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_software_features()); + ::size_t tag_size = ::size_t{2} * + ::_pbi::FromIntSize(this_._internal_supported_software_features_size()); + total_size += data_size + tag_size; } - - // optional bool is_screenlock_state_flaky = 410 [default = false]; - if (cached_has_bits & 0x02000000u) { - total_size += 2 + 1; + // optional bytes gcm_registration_id = 102; + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_gcm_registration_id()); } - - // optional bool using_secure_screenlock = 400 [default = false]; - if (cached_has_bits & 0x04000000u) { - total_size += 2 + 1; + // optional bytes enrollment_session_id = 1000; + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_enrollment_session_id()); } - - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - if (cached_has_bits & 0x08000000u) { - total_size += 2 + 1; + // optional string oauth_token = 1001; + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_oauth_token()); } - - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - if (cached_has_bits & 0x10000000u) { - total_size += 2 + 1; - } - - // optional bool bluetooth_radio_supported = 403 [default = false]; - if (cached_has_bits & 0x20000000u) { - total_size += 2 + 1; - } - - // optional bool bluetooth_radio_enabled = 404 [default = false]; - if (cached_has_bits & 0x40000000u) { - total_size += 2 + 1; - } - - // optional bool mobile_data_supported = 405 [default = false]; - if (cached_has_bits & 0x80000000u) { - total_size += 2 + 1; - } - } - cached_has_bits = _has_bits_[1]; - if (cached_has_bits & 0x0000000fu) { - // optional bool tethering_supported = 406 [default = false]; - if (cached_has_bits & 0x00000001u) { - total_size += 2 + 1; - } - - // optional bool ble_radio_supported = 407 [default = false]; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + 1; - } - + cached_has_bits = this_._impl_._has_bits_[1]; + total_size += ::absl::popcount(0x0000001fU & cached_has_bits) * 3; + { // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); } - - // optional bool notification_enabled = 203 [default = true]; - if (cached_has_bits & 0x00000008u) { - total_size += 2 + 1; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void GcmDeviceInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void GcmDeviceInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmDeviceInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void GcmDeviceInfo::MergeFrom(const GcmDeviceInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmDeviceInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - supported_software_features_.MergeFrom(from.supported_software_features_); - enabled_software_features_.MergeFrom(from.enabled_software_features_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_user_public_key(from._internal_user_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_enabled_software_features()->MergeFrom(from._internal_enabled_software_features()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_device_model(from._internal_device_model()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_user_public_key(from._internal_user_public_key()); } - if (cached_has_bits & 0x00000004u) { - _internal_set_locale(from._internal_locale()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_device_model(from._internal_device_model()); } - if (cached_has_bits & 0x00000008u) { - _internal_set_key_handle(from._internal_key_handle()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_locale(from._internal_locale()); } - if (cached_has_bits & 0x00000010u) { - _internal_set_device_os_version(from._internal_device_os_version()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_set_key_handle(from._internal_key_handle()); } - if (cached_has_bits & 0x00000020u) { - _internal_set_device_os_release(from._internal_device_os_release()); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_internal_set_device_os_version(from._internal_device_os_version()); } - if (cached_has_bits & 0x00000040u) { - _internal_set_device_os_codename(from._internal_device_os_codename()); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_internal_set_device_os_release(from._internal_device_os_release()); } - if (cached_has_bits & 0x00000080u) { - _internal_set_device_software_version(from._internal_device_software_version()); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_internal_set_device_os_codename(from._internal_device_os_codename()); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - _internal_set_device_software_package(from._internal_device_software_package()); + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_internal_set_device_software_version(from._internal_device_software_version()); } - if (cached_has_bits & 0x00000200u) { - _internal_set_long_device_id(from._internal_long_device_id()); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_internal_set_device_software_package(from._internal_device_software_package()); } - if (cached_has_bits & 0x00000400u) { - _internal_set_device_manufacturer(from._internal_device_manufacturer()); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_internal_set_long_device_id(from._internal_long_device_id()); } - if (cached_has_bits & 0x00000800u) { - _internal_set_gcm_registration_id(from._internal_gcm_registration_id()); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_internal_set_device_manufacturer(from._internal_device_manufacturer()); } - if (cached_has_bits & 0x00001000u) { - _internal_set_device_master_key_hash(from._internal_device_master_key_hash()); + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + _this->_internal_set_device_master_key_hash(from._internal_device_master_key_hash()); } - if (cached_has_bits & 0x00002000u) { - _internal_set_apn_registration_id(from._internal_apn_registration_id()); + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + _this->_internal_set_apn_registration_id(from._internal_apn_registration_id()); } - if (cached_has_bits & 0x00004000u) { - _internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + _this->_internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); } - if (cached_has_bits & 0x00008000u) { - _internal_set_enrollment_session_id(from._internal_enrollment_session_id()); + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + _this->_impl_.android_device_id_ = from._impl_.android_device_id_; } } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - _internal_set_oauth_token(from._internal_oauth_token()); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + _this->_impl_.counter_ = from._impl_.counter_; } - if (cached_has_bits & 0x00020000u) { - android_device_id_ = from.android_device_id_; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + _this->_impl_.device_os_version_code_ = from._impl_.device_os_version_code_; } - if (cached_has_bits & 0x00040000u) { - counter_ = from.counter_; + if (CheckHasBit(cached_has_bits, 0x00040000U)) { + _this->_impl_.device_software_version_code_ = from._impl_.device_software_version_code_; } - if (cached_has_bits & 0x00080000u) { - device_os_version_code_ = from.device_os_version_code_; + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + _this->_impl_.device_display_diagonal_mils_ = from._impl_.device_display_diagonal_mils_; } - if (cached_has_bits & 0x00100000u) { - device_software_version_code_ = from.device_software_version_code_; + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + _this->_impl_.device_authzen_version_ = from._impl_.device_authzen_version_; } - if (cached_has_bits & 0x00200000u) { - device_display_diagonal_mils_ = from.device_display_diagonal_mils_; + if (CheckHasBit(cached_has_bits, 0x00200000U)) { + _this->_impl_.bluetooth_radio_enabled_ = from._impl_.bluetooth_radio_enabled_; } - if (cached_has_bits & 0x00400000u) { - device_authzen_version_ = from.device_authzen_version_; + if (CheckHasBit(cached_has_bits, 0x00400000U)) { + _this->_impl_.mobile_data_supported_ = from._impl_.mobile_data_supported_; } - if (cached_has_bits & 0x00800000u) { - pixel_experience_ = from.pixel_experience_; + if (CheckHasBit(cached_has_bits, 0x00800000U)) { + _this->_impl_.arc_plus_plus_ = from._impl_.arc_plus_plus_; } - _has_bits_[0] |= cached_has_bits; } - if (cached_has_bits & 0xff000000u) { - if (cached_has_bits & 0x01000000u) { - arc_plus_plus_ = from.arc_plus_plus_; + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + _this->_impl_.notification_enabled_ = from._impl_.notification_enabled_; } - if (cached_has_bits & 0x02000000u) { - is_screenlock_state_flaky_ = from.is_screenlock_state_flaky_; + if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { + _this->_internal_mutable_supported_software_features()->MergeFrom(from._internal_supported_software_features()); } - if (cached_has_bits & 0x04000000u) { - using_secure_screenlock_ = from.using_secure_screenlock_; + if (CheckHasBit(cached_has_bits, 0x04000000U)) { + _this->_internal_set_gcm_registration_id(from._internal_gcm_registration_id()); } - if (cached_has_bits & 0x08000000u) { - auto_unlock_screenlock_supported_ = from.auto_unlock_screenlock_supported_; + if (CheckHasBit(cached_has_bits, 0x08000000U)) { + _this->_internal_set_enrollment_session_id(from._internal_enrollment_session_id()); } - if (cached_has_bits & 0x10000000u) { - auto_unlock_screenlock_enabled_ = from.auto_unlock_screenlock_enabled_; + if (CheckHasBit(cached_has_bits, 0x10000000U)) { + _this->_internal_set_oauth_token(from._internal_oauth_token()); } - if (cached_has_bits & 0x20000000u) { - bluetooth_radio_supported_ = from.bluetooth_radio_supported_; + if (CheckHasBit(cached_has_bits, 0x20000000U)) { + _this->_impl_.using_secure_screenlock_ = from._impl_.using_secure_screenlock_; } - if (cached_has_bits & 0x40000000u) { - bluetooth_radio_enabled_ = from.bluetooth_radio_enabled_; + if (CheckHasBit(cached_has_bits, 0x40000000U)) { + _this->_impl_.auto_unlock_screenlock_supported_ = from._impl_.auto_unlock_screenlock_supported_; } - if (cached_has_bits & 0x80000000u) { - mobile_data_supported_ = from.mobile_data_supported_; + if (CheckHasBit(cached_has_bits, 0x80000000U)) { + _this->_impl_.auto_unlock_screenlock_enabled_ = from._impl_.auto_unlock_screenlock_enabled_; } - _has_bits_[0] |= cached_has_bits; } - cached_has_bits = from._has_bits_[1]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - tethering_supported_ = from.tethering_supported_; + cached_has_bits = from._impl_._has_bits_[1]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.bluetooth_radio_supported_ = from._impl_.bluetooth_radio_supported_; } - if (cached_has_bits & 0x00000002u) { - ble_radio_supported_ = from.ble_radio_supported_; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.tethering_supported_ = from._impl_.tethering_supported_; } - if (cached_has_bits & 0x00000004u) { - device_type_ = from.device_type_; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.ble_radio_supported_ = from._impl_.ble_radio_supported_; } - if (cached_has_bits & 0x00000008u) { - notification_enabled_ = from.notification_enabled_; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.pixel_experience_ = from._impl_.pixel_experience_; + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.is_screenlock_state_flaky_ = from._impl_.is_screenlock_state_flaky_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.device_type_ = from._impl_.device_type_; } - _has_bits_[1] |= cached_has_bits; } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_.Or(from._impl_._has_bits_); + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void GcmDeviceInfo::CopyFrom(const GcmDeviceInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmDeviceInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmDeviceInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool GcmDeviceInfo::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool GcmDeviceInfo::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void GcmDeviceInfo::InternalSwap(GcmDeviceInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void GcmDeviceInfo::InternalSwap(GcmDeviceInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(_has_bits_[1], other->_has_bits_[1]); - supported_software_features_.InternalSwap(&other->supported_software_features_); - enabled_software_features_.InternalSwap(&other->enabled_software_features_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &user_public_key_, lhs_arena, - &other->user_public_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_model_, lhs_arena, - &other->device_model_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &locale_, lhs_arena, - &other->locale_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &key_handle_, lhs_arena, - &other->key_handle_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_os_version_, lhs_arena, - &other->device_os_version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_os_release_, lhs_arena, - &other->device_os_release_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_os_codename_, lhs_arena, - &other->device_os_codename_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_software_version_, lhs_arena, - &other->device_software_version_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_software_package_, lhs_arena, - &other->device_software_package_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &long_device_id_, lhs_arena, - &other->long_device_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_manufacturer_, lhs_arena, - &other->device_manufacturer_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &gcm_registration_id_, lhs_arena, - &other->gcm_registration_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_master_key_hash_, lhs_arena, - &other->device_master_key_hash_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &apn_registration_id_, lhs_arena, - &other->apn_registration_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bluetooth_mac_address_, lhs_arena, - &other->bluetooth_mac_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &enrollment_session_id_, lhs_arena, - &other->enrollment_session_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &oauth_token_, lhs_arena, - &other->oauth_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, ble_radio_supported_) - + sizeof(GcmDeviceInfo::ble_radio_supported_) - - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, android_device_id_)>( - reinterpret_cast(&android_device_id_), - reinterpret_cast(&other->android_device_id_)); - swap(device_type_, other->device_type_); - swap(notification_enabled_, other->notification_enabled_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); + _impl_.enabled_software_features_.InternalSwap(&other->_impl_.enabled_software_features_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_public_key_, &other->_impl_.user_public_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_model_, &other->_impl_.device_model_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.locale_, &other->_impl_.locale_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_handle_, &other->_impl_.key_handle_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_version_, &other->_impl_.device_os_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_release_, &other->_impl_.device_os_release_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_codename_, &other->_impl_.device_os_codename_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_version_, &other->_impl_.device_software_version_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_package_, &other->_impl_.device_software_package_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.long_device_id_, &other->_impl_.long_device_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_manufacturer_, &other->_impl_.device_manufacturer_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_master_key_hash_, &other->_impl_.device_master_key_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.apn_registration_id_, &other->_impl_.apn_registration_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bluetooth_mac_address_, &other->_impl_.bluetooth_mac_address_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_) + + sizeof(GcmDeviceInfo::_impl_.notification_enabled_) + - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)>( + reinterpret_cast(&_impl_.android_device_id_), + reinterpret_cast(&other->_impl_.android_device_id_)); + _impl_.supported_software_features_.InternalSwap(&other->_impl_.supported_software_features_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.gcm_registration_id_, &other->_impl_.gcm_registration_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.enrollment_session_id_, &other->_impl_.enrollment_session_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.oauth_token_, &other->_impl_.oauth_token_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_) + + sizeof(GcmDeviceInfo::_impl_.device_type_) + - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_)>( + reinterpret_cast(&_impl_.using_secure_screenlock_), + reinterpret_cast(&other->_impl_.using_secure_screenlock_)); } -std::string GcmDeviceInfo::GetTypeName() const { - return "securegcm.GcmDeviceInfo"; -} - - // =================================================================== class GcmMetadata::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; } }; -GcmMetadata::GcmMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +GcmMetadata::GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmMetadata_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.GcmMetadata) } -GcmMetadata::GcmMetadata(const GcmMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&type_, &from.type_, - static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&type_)) + sizeof(version_)); - // @@protoc_insertion_point(copy_constructor:securegcm.GcmMetadata) +GcmMetadata::GcmMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GcmMetadata_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 GcmMetadata::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void GcmMetadata::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&type_)) + sizeof(version_)); +inline void GcmMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, version_) - + offsetof(Impl_, type_) + + sizeof(Impl_::version_)); } - GcmMetadata::~GcmMetadata() { // @@protoc_insertion_point(destructor:securegcm.GcmMetadata) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void GcmMetadata::SharedDtor(MessageLite& self) { + GcmMetadata& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void GcmMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL GcmMetadata::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GcmMetadata(arena); +} +constexpr auto GcmMetadata::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GcmMetadata), + alignof(GcmMetadata)); +} +constexpr auto GcmMetadata::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<22>{ + { + &_GcmMetadata_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GcmMetadata::IsInitializedImpl, + &GcmMetadata::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GcmMetadata::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GcmMetadata::ByteSizeLong, + &GcmMetadata::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._cached_size_), + true, + }, + "securegcm.GcmMetadata", + }; } -void GcmMetadata::ArenaDtor(void* object) { - GcmMetadata* _this = reinterpret_cast< GcmMetadata* >(object); - (void)_this; -} -void GcmMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GcmMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_ = + GcmMetadata::InternalGenerateClassData_(); -void GcmMetadata::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GcmMetadata::GetClassData() const { + return GcmMetadata_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +GcmMetadata::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GcmMetadata, _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), + GcmMetadata_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::GcmMetadata>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 version = 2 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_)}}, + // required .securegcm.Type type = 1; + {::_pbi::TcParser::FastEvS1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securegcm.Type type = 1; + {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional int32 version = 2 [default = 0]; + {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Type_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GcmMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.GcmMetadata) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&type_, 0, static_cast( - reinterpret_cast(&version_) - - reinterpret_cast(&type_)) + sizeof(version_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.type_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.version_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* GcmMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required .securegcm.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Type_IsValid(val))) { - _internal_set_type(static_cast<::securegcm::Type>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 version = 2 [default = 0]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_version(&has_bits); - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* GcmMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GcmMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GcmMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmMetadata) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required .securegcm.Type type = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional int32 version = 2 [default = 0]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_version(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmMetadata) return target; } -size_t GcmMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.GcmMetadata) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GcmMetadata::ByteSizeLong(const MessageLite& base) { + const GcmMetadata& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GcmMetadata::ByteSizeLong() const { + const GcmMetadata& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmMetadata) + ::size_t total_size = 0; - // required .securegcm.Type type = 1; - if (_internal_has_type()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 version = 2 [default = 0]; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // required .securegcm.Type type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + { + // optional int32 version = 2 [default = 0]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void GcmMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void GcmMetadata::MergeFrom(const GcmMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000002u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; +void GcmMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmMetadata) + 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_.type_ = from._impl_.type_; + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void GcmMetadata::CopyFrom(const GcmMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmMetadata) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool GcmMetadata::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool GcmMetadata::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void GcmMetadata::InternalSwap(GcmMetadata* other) { - using std::swap; +void GcmMetadata::InternalSwap(GcmMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GcmMetadata, version_) - + sizeof(GcmMetadata::version_) - - PROTOBUF_FIELD_OFFSET(GcmMetadata, type_)>( - reinterpret_cast(&type_), - reinterpret_cast(&other->type_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_) + + sizeof(GcmMetadata::_impl_.version_) + - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)>( + reinterpret_cast(&_impl_.type_), + reinterpret_cast(&other->_impl_.type_)); } -std::string GcmMetadata::GetTypeName() const { - return "securegcm.GcmMetadata"; -} - - // =================================================================== class Tickle::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_expiry_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_); }; -Tickle::Tickle(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Tickle::Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Tickle_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Tickle) } -Tickle::Tickle(const Tickle& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - expiry_time_ = from.expiry_time_; - // @@protoc_insertion_point(copy_constructor:securegcm.Tickle) +Tickle::Tickle( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Tickle_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 Tickle::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} -inline void Tickle::SharedCtor() { -expiry_time_ = uint64_t{0u}; +inline void Tickle::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.expiry_time_ = {}; } - Tickle::~Tickle() { // @@protoc_insertion_point(destructor:securegcm.Tickle) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Tickle::SharedDtor(MessageLite& self) { + Tickle& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -inline void Tickle::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void* PROTOBUF_NONNULL Tickle::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Tickle(arena); +} +constexpr auto Tickle::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Tickle), + alignof(Tickle)); +} +constexpr auto Tickle::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<17>{ + { + &_Tickle_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Tickle::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Tickle::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Tickle::ByteSizeLong, + &Tickle::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Tickle, _impl_._cached_size_), + true, + }, + "securegcm.Tickle", + }; } -void Tickle::ArenaDtor(void* object) { - Tickle* _this = reinterpret_cast< Tickle* >(object); - (void)_this; -} -void Tickle::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Tickle::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_ = + Tickle::InternalGenerateClassData_(); -void Tickle::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Tickle::GetClassData() const { + return Tickle_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +Tickle::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Tickle_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Tickle>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional fixed64 expiry_time = 1; + {::_pbi::TcParser::FastF64S1, + {9, 0, 0, + PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional fixed64 expiry_time = 1; + {PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void Tickle::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Tickle) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - expiry_time_ = uint64_t{0u}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.expiry_time_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Tickle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional fixed64 expiry_time = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { - _Internal::set_has_expiry_time(&has_bits); - expiry_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(uint64_t); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Tickle::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Tickle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Tickle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Tickle) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional fixed64 expiry_time = 1; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(1, this->_internal_expiry_time(), target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 1, this_._internal_expiry_time(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Tickle) return target; } -size_t Tickle::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Tickle) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Tickle::ByteSizeLong(const MessageLite& base) { + const Tickle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Tickle::ByteSizeLong() const { + const Tickle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Tickle) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional fixed64 expiry_time = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 8; + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000001U & cached_has_bits) * 9; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Tickle::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Tickle::MergeFrom(const Tickle& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Tickle) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_expiry_time()) { - _internal_set_expiry_time(from._internal_expiry_time()); +void Tickle::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Tickle) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.expiry_time_ = from._impl_.expiry_time_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Tickle::CopyFrom(const Tickle& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Tickle) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Tickle) if (&from == this) return; Clear(); MergeFrom(from); } -bool Tickle::IsInitialized() const { - return true; -} -void Tickle::InternalSwap(Tickle* other) { - using std::swap; +void Tickle::InternalSwap(Tickle* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(expiry_time_, other->expiry_time_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.expiry_time_, other->_impl_.expiry_time_); } -std::string Tickle::GetTypeName() const { - return "securegcm.Tickle"; -} - - // =================================================================== class LoginNotificationInfo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_creation_time(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_email(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_host(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_source(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_); }; -LoginNotificationInfo::LoginNotificationInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LoginNotificationInfo::LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.LoginNotificationInfo) } -LoginNotificationInfo::LoginNotificationInfo(const LoginNotificationInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - email_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - email_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_email()) { - email_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_email(), - GetArenaForAllocation()); - } - host_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_host()) { - host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_host(), - GetArenaForAllocation()); - } - source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - source_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_source()) { - source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_source(), - GetArenaForAllocation()); - } - event_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - event_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_event_type()) { - event_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_event_type(), - GetArenaForAllocation()); - } - creation_time_ = from.creation_time_; +PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::LoginNotificationInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + email_(arena, from.email_), + host_(arena, from.host_), + source_(arena, from.source_), + event_type_(arena, from.event_type_) {} + +LoginNotificationInfo::LoginNotificationInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LoginNotificationInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LoginNotificationInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.creation_time_ = from._impl_.creation_time_; + // @@protoc_insertion_point(copy_constructor:securegcm.LoginNotificationInfo) } +PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + email_(arena), + host_(arena), + source_(arena), + event_type_(arena) {} -inline void LoginNotificationInfo::SharedCtor() { -email_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - email_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -host_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - source_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -event_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - event_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -creation_time_ = uint64_t{0u}; +inline void LoginNotificationInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.creation_time_ = {}; } - LoginNotificationInfo::~LoginNotificationInfo() { // @@protoc_insertion_point(destructor:securegcm.LoginNotificationInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void LoginNotificationInfo::SharedDtor(MessageLite& self) { + LoginNotificationInfo& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.email_.Destroy(); + this_._impl_.host_.Destroy(); + this_._impl_.source_.Destroy(); + this_._impl_.event_type_.Destroy(); + this_._impl_.~Impl_(); } -inline void LoginNotificationInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - email_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - host_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - source_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - event_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL LoginNotificationInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LoginNotificationInfo(arena); +} +constexpr auto LoginNotificationInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LoginNotificationInfo), + alignof(LoginNotificationInfo)); +} +constexpr auto LoginNotificationInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_LoginNotificationInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LoginNotificationInfo::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LoginNotificationInfo::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LoginNotificationInfo::ByteSizeLong, + &LoginNotificationInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._cached_size_), + true, + }, + "securegcm.LoginNotificationInfo", + }; } -void LoginNotificationInfo::ArenaDtor(void* object) { - LoginNotificationInfo* _this = reinterpret_cast< LoginNotificationInfo* >(object); - (void)_this; -} -void LoginNotificationInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LoginNotificationInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_ = + LoginNotificationInfo::InternalGenerateClassData_(); -void LoginNotificationInfo::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LoginNotificationInfo::GetClassData() const { + return LoginNotificationInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +LoginNotificationInfo::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967233, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + LoginNotificationInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::LoginNotificationInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional fixed64 creation_time = 2; + {::_pbi::TcParser::FastF64S1, + {17, 4, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_)}}, + // optional string email = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_)}}, + // optional string host = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_)}}, + // optional string source = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_)}}, + // optional string event_type = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional fixed64 creation_time = 2; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, + // optional string email = 3; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string host = 4; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string source = 5; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string event_type = 6; + {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void LoginNotificationInfo::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.LoginNotificationInfo) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - email_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.email_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - host_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.host_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - source_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.source_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - event_type_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.event_type_.ClearNonDefaultToEmpty(); } } - creation_time_ = uint64_t{0u}; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.creation_time_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* LoginNotificationInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional fixed64 creation_time = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - _Internal::set_has_creation_time(&has_bits); - creation_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(uint64_t); - } else - goto handle_unusual; - continue; - // optional string email = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_email(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string host = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_host(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string source = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_source(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string event_type = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_event_type(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LoginNotificationInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LoginNotificationInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LoginNotificationInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.LoginNotificationInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional fixed64 creation_time = 2; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed64ToArray(2, this->_internal_creation_time(), target); + target = ::_pbi::WireFormatLite::WriteFixed64ToArray( + 2, this_._internal_creation_time(), target); } // optional string email = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_email(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_email(); + target = stream->WriteStringMaybeAliased(3, _s, target); } // optional string host = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_host(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_host(); + target = stream->WriteStringMaybeAliased(4, _s, target); } // optional string source = 5; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_source(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_source(); + target = stream->WriteStringMaybeAliased(5, _s, target); } // optional string event_type = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteStringMaybeAliased( - 6, this->_internal_event_type(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_event_type(); + target = stream->WriteStringMaybeAliased(6, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.LoginNotificationInfo) return target; } -size_t LoginNotificationInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.LoginNotificationInfo) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LoginNotificationInfo::ByteSizeLong(const MessageLite& base) { + const LoginNotificationInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LoginNotificationInfo::ByteSizeLong() const { + const LoginNotificationInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.LoginNotificationInfo) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + total_size += static_cast(0x00000010U & cached_has_bits) * 9; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional string email = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_email()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_email()); } - // optional string host = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_host()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_host()); } - // optional string source = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_source()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_source()); } - // optional string event_type = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_event_type()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_event_type()); } - - // optional fixed64 creation_time = 2; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 8; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void LoginNotificationInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void LoginNotificationInfo::MergeFrom(const LoginNotificationInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.LoginNotificationInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_email(from._internal_email()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_host(from._internal_host()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_source(from._internal_source()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_event_type(from._internal_event_type()); - } - if (cached_has_bits & 0x00000010u) { - creation_time_ = from.creation_time_; - } - _has_bits_[0] |= cached_has_bits; +void LoginNotificationInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.LoginNotificationInfo) + 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->_internal_set_email(from._internal_email()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_host(from._internal_host()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_source(from._internal_source()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_event_type(from._internal_event_type()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.creation_time_ = from._impl_.creation_time_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LoginNotificationInfo::CopyFrom(const LoginNotificationInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.LoginNotificationInfo) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.LoginNotificationInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool LoginNotificationInfo::IsInitialized() const { - return true; -} -void LoginNotificationInfo::InternalSwap(LoginNotificationInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void LoginNotificationInfo::InternalSwap(LoginNotificationInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &email_, lhs_arena, - &other->email_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &host_, lhs_arena, - &other->host_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &source_, lhs_arena, - &other->source_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &event_type_, lhs_arena, - &other->event_type_, rhs_arena - ); - swap(creation_time_, other->creation_time_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.event_type_, &other->_impl_.event_type_, arena); + swap(_impl_.creation_time_, other->_impl_.creation_time_); } -std::string LoginNotificationInfo::GetTypeName() const { - return "securegcm.LoginNotificationInfo"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securegcm::GcmDeviceInfo* Arena::CreateMaybeMessage< ::securegcm::GcmDeviceInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::GcmDeviceInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::GcmMetadata* Arena::CreateMaybeMessage< ::securegcm::GcmMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::GcmMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Tickle* Arena::CreateMaybeMessage< ::securegcm::Tickle >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Tickle >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::LoginNotificationInfo* Arena::CreateMaybeMessage< ::securegcm::LoginNotificationInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::LoginNotificationInfo >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.h index b56caf75..08413b30 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.h +++ b/third_party/ukey2/compiled_proto/src/main/proto/securegcm.pb.h @@ -1,120 +1,153 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/securegcm.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/securegcm.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuregcm_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuregcm_2eproto +#ifndef src_2fmain_2fproto_2fsecuregcm_2eproto_2epb_2eh +#define src_2fmain_2fproto_2fsecuregcm_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuregcm_2eproto -PROTOBUF_NAMESPACE_OPEN + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_src_2fmain_2fproto_2fsecuregcm_2eproto + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fsecuregcm_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; +struct TableStruct_src_2fmain_2fproto_2fsecuregcm_2eproto { + static const ::uint32_t offsets[]; }; namespace securegcm { +enum AppleDeviceDiagonalMils : int; +extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; +enum DeviceType : int; +extern const uint32_t DeviceType_internal_data_[]; +enum InvocationReason : int; +extern const uint32_t InvocationReason_internal_data_[]; +enum SoftwareFeature : int; +extern const uint32_t SoftwareFeature_internal_data_[]; +enum Type : int; +extern const uint32_t Type_internal_data_[]; class GcmDeviceInfo; struct GcmDeviceInfoDefaultTypeInternal; extern GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; class GcmMetadata; struct GcmMetadataDefaultTypeInternal; extern GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; class LoginNotificationInfo; struct LoginNotificationInfoDefaultTypeInternal; extern LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; class Tickle; struct TickleDefaultTypeInternal; extern TickleDefaultTypeInternal _Tickle_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::GcmDeviceInfo* Arena::CreateMaybeMessage<::securegcm::GcmDeviceInfo>(Arena*); -template<> ::securegcm::GcmMetadata* Arena::CreateMaybeMessage<::securegcm::GcmMetadata>(Arena*); -template<> ::securegcm::LoginNotificationInfo* Arena::CreateMaybeMessage<::securegcm::LoginNotificationInfo>(Arena*); -template<> ::securegcm::Tickle* Arena::CreateMaybeMessage<::securegcm::Tickle>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securegcm { +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::AppleDeviceDiagonalMils_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::AppleDeviceDiagonalMils>; +template <> +internal::EnumTraitsT<::securegcm::DeviceType_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::DeviceType>; +template <> +internal::EnumTraitsT<::securegcm::InvocationReason_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::InvocationReason>; +template <> +internal::EnumTraitsT<::securegcm::SoftwareFeature_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::SoftwareFeature>; +template <> +internal::EnumTraitsT<::securegcm::Type_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Type>; +} // namespace protobuf +} // namespace google +namespace securegcm { enum AppleDeviceDiagonalMils : int { APPLE_PHONE = 4000, - APPLE_PAD = 7900 + APPLE_PAD = 7900, }; -bool AppleDeviceDiagonalMils_IsValid(int value); -constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MIN = APPLE_PHONE; -constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MAX = APPLE_PAD; -constexpr int AppleDeviceDiagonalMils_ARRAYSIZE = AppleDeviceDiagonalMils_MAX + 1; -const std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value); -template -inline const std::string& AppleDeviceDiagonalMils_Name(T enum_t_value) { +extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; +inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MIN = + static_cast(4000); +inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MAX = + static_cast(7900); +inline bool AppleDeviceDiagonalMils_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, AppleDeviceDiagonalMils_internal_data_); +} +inline constexpr int AppleDeviceDiagonalMils_ARRAYSIZE = 7900 + 1; +const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value); +template +const ::std::string& AppleDeviceDiagonalMils_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AppleDeviceDiagonalMils_Name."); - return AppleDeviceDiagonalMils_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AppleDeviceDiagonalMils_Name()."); + return AppleDeviceDiagonalMils_Name(static_cast(value)); } bool AppleDeviceDiagonalMils_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppleDeviceDiagonalMils* value); + ::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value); enum DeviceType : int { UNKNOWN = 0, ANDROID = 1, CHROME = 2, IOS = 3, BROWSER = 4, - OSX = 5 + OSX = 5, }; -bool DeviceType_IsValid(int value); -constexpr DeviceType DeviceType_MIN = UNKNOWN; -constexpr DeviceType DeviceType_MAX = OSX; -constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; -const std::string& DeviceType_Name(DeviceType value); -template -inline const std::string& DeviceType_Name(T enum_t_value) { +extern const uint32_t DeviceType_internal_data_[]; +inline constexpr DeviceType DeviceType_MIN = + static_cast(0); +inline constexpr DeviceType DeviceType_MAX = + static_cast(5); +inline bool DeviceType_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int DeviceType_ARRAYSIZE = 5 + 1; +const ::std::string& DeviceType_Name(DeviceType value); +template +const ::std::string& DeviceType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return DeviceType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to DeviceType_Name()."); + return DeviceType_Name(static_cast(value)); } bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value); + ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); enum SoftwareFeature : int { UNKNOWN_FEATURE = 0, BETTER_TOGETHER_HOST = 1, @@ -124,23 +157,28 @@ enum SoftwareFeature : int { MAGIC_TETHER_HOST = 5, MAGIC_TETHER_CLIENT = 6, SMS_CONNECT_HOST = 7, - SMS_CONNECT_CLIENT = 8 + SMS_CONNECT_CLIENT = 8, }; -bool SoftwareFeature_IsValid(int value); -constexpr SoftwareFeature SoftwareFeature_MIN = UNKNOWN_FEATURE; -constexpr SoftwareFeature SoftwareFeature_MAX = SMS_CONNECT_CLIENT; -constexpr int SoftwareFeature_ARRAYSIZE = SoftwareFeature_MAX + 1; -const std::string& SoftwareFeature_Name(SoftwareFeature value); -template -inline const std::string& SoftwareFeature_Name(T enum_t_value) { +extern const uint32_t SoftwareFeature_internal_data_[]; +inline constexpr SoftwareFeature SoftwareFeature_MIN = + static_cast(0); +inline constexpr SoftwareFeature SoftwareFeature_MAX = + static_cast(8); +inline bool SoftwareFeature_IsValid(int value) { + return 0 <= value && value <= 8; +} +inline constexpr int SoftwareFeature_ARRAYSIZE = 8 + 1; +const ::std::string& SoftwareFeature_Name(SoftwareFeature value); +template +const ::std::string& SoftwareFeature_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SoftwareFeature_Name."); - return SoftwareFeature_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SoftwareFeature_Name()."); + return SoftwareFeature_Name(static_cast(value)); } bool SoftwareFeature_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SoftwareFeature* value); + ::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value); enum InvocationReason : int { REASON_UNKNOWN = 0, REASON_INITIALIZATION = 1, @@ -157,23 +195,28 @@ enum InvocationReason : int { REASON_SOFTWARE_UPDATE = 12, REASON_MANUAL = 13, REASON_CUSTOM_KEY_INVALIDATION = 14, - REASON_PROXIMITY_PERIODIC = 15 + REASON_PROXIMITY_PERIODIC = 15, }; -bool InvocationReason_IsValid(int value); -constexpr InvocationReason InvocationReason_MIN = REASON_UNKNOWN; -constexpr InvocationReason InvocationReason_MAX = REASON_PROXIMITY_PERIODIC; -constexpr int InvocationReason_ARRAYSIZE = InvocationReason_MAX + 1; -const std::string& InvocationReason_Name(InvocationReason value); -template -inline const std::string& InvocationReason_Name(T enum_t_value) { +extern const uint32_t InvocationReason_internal_data_[]; +inline constexpr InvocationReason InvocationReason_MIN = + static_cast(0); +inline constexpr InvocationReason InvocationReason_MAX = + static_cast(15); +inline bool InvocationReason_IsValid(int value) { + return 0 <= value && value <= 15; +} +inline constexpr int InvocationReason_ARRAYSIZE = 15 + 1; +const ::std::string& InvocationReason_Name(InvocationReason value); +template +const ::std::string& InvocationReason_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function InvocationReason_Name."); - return InvocationReason_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to InvocationReason_Name()."); + return InvocationReason_Name(static_cast(value)); } bool InvocationReason_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InvocationReason* value); + ::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value); enum Type : int { ENROLLMENT = 0, TICKLE = 1, @@ -190,49 +233,60 @@ enum Type : int { DEVICE_TO_DEVICE_MESSAGE = 13, DEVICE_PROXIMITY_CALLBACK = 14, UNLOCK_KEY_SIGNED_CHALLENGE = 15, - LOGIN_NOTIFICATION = 101 + LOGIN_NOTIFICATION = 101, }; -bool Type_IsValid(int value); -constexpr Type Type_MIN = ENROLLMENT; -constexpr Type Type_MAX = LOGIN_NOTIFICATION; -constexpr int Type_ARRAYSIZE = Type_MAX + 1; -const std::string& Type_Name(Type value); -template -inline const std::string& Type_Name(T enum_t_value) { +extern const uint32_t Type_internal_data_[]; +inline constexpr Type Type_MIN = + static_cast(0); +inline constexpr Type Type_MAX = + static_cast(101); +inline bool Type_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Type_internal_data_); +} +inline constexpr int Type_ARRAYSIZE = 101 + 1; +const ::std::string& Type_Name(Type value); +template +const ::std::string& Type_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return Type_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return Type_Name(static_cast(value)); } bool Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type* value); + ::absl::string_view name, Type* PROTOBUF_NONNULL value); + // =================================================================== -class GcmDeviceInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.GcmDeviceInfo) */ { + +// ------------------------------------------------------------------- + +class Tickle final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Tickle) */ { public: - inline GcmDeviceInfo() : GcmDeviceInfo(nullptr) {} - ~GcmDeviceInfo() override; - explicit constexpr GcmDeviceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Tickle() : Tickle(nullptr) {} + ~Tickle() PROTOBUF_FINAL; - GcmDeviceInfo(const GcmDeviceInfo& from); - GcmDeviceInfo(GcmDeviceInfo&& from) noexcept - : GcmDeviceInfo() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Tickle* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Tickle)); } +#endif - inline GcmDeviceInfo& operator=(const GcmDeviceInfo& from) { + template + explicit PROTOBUF_CONSTEXPR Tickle(::google::protobuf::internal::ConstantInitialized); + + inline Tickle(const Tickle& from) : Tickle(nullptr, from) {} + inline Tickle(Tickle&& from) noexcept + : Tickle(nullptr, ::std::move(from)) {} + inline Tickle& operator=(const Tickle& from) { CopyFrom(from); return *this; } - inline GcmDeviceInfo& operator=(GcmDeviceInfo&& from) noexcept { + inline Tickle& operator=(Tickle&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -240,89 +294,735 @@ class GcmDeviceInfo final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const GcmDeviceInfo& default_instance() { - return *internal_default_instance(); + static const Tickle& default_instance() { + return *reinterpret_cast( + &_Tickle_default_instance_); } - static inline const GcmDeviceInfo* internal_default_instance() { - return reinterpret_cast( - &_GcmDeviceInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(GcmDeviceInfo& a, GcmDeviceInfo& b) { - a.Swap(&b); - } - inline void Swap(GcmDeviceInfo* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(Tickle& a, Tickle& b) { a.Swap(&b); } + inline void Swap(Tickle* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GcmDeviceInfo* other) { + void UnsafeArenaSwap(Tickle* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GcmDeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Tickle* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const GcmDeviceInfo& from); - void MergeFrom(const GcmDeviceInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const Tickle& from); + void MergeFrom(const Tickle& from) { Tickle::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GcmDeviceInfo* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.GcmDeviceInfo"; - } - protected: - explicit GcmDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Tickle* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Tickle"; } + + explicit Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from); + Tickle( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Tickle&& from) noexcept + : Tickle(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kExpiryTimeFieldNumber = 1, + }; + // optional fixed64 expiry_time = 1; + bool has_expiry_time() const; + void clear_expiry_time() ; + ::uint64_t expiry_time() const; + void set_expiry_time(::uint64_t value); + + private: + ::uint64_t _internal_expiry_time() const; + void _internal_set_expiry_time(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Tickle) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Tickle& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t expiry_time_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; +// ------------------------------------------------------------------- + +class LoginNotificationInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.LoginNotificationInfo) */ { + public: + inline LoginNotificationInfo() : LoginNotificationInfo(nullptr) {} + ~LoginNotificationInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LoginNotificationInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LoginNotificationInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR LoginNotificationInfo(::google::protobuf::internal::ConstantInitialized); + + inline LoginNotificationInfo(const LoginNotificationInfo& from) : LoginNotificationInfo(nullptr, from) {} + inline LoginNotificationInfo(LoginNotificationInfo&& from) noexcept + : LoginNotificationInfo(nullptr, ::std::move(from)) {} + inline LoginNotificationInfo& operator=(const LoginNotificationInfo& from) { + CopyFrom(from); + return *this; + } + inline LoginNotificationInfo& operator=(LoginNotificationInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const LoginNotificationInfo& default_instance() { + return *reinterpret_cast( + &_LoginNotificationInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(LoginNotificationInfo& a, LoginNotificationInfo& b) { a.Swap(&b); } + inline void Swap(LoginNotificationInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LoginNotificationInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LoginNotificationInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const LoginNotificationInfo& from); + void MergeFrom(const LoginNotificationInfo& from) { LoginNotificationInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LoginNotificationInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.LoginNotificationInfo"; } + + explicit LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LoginNotificationInfo& from); + LoginNotificationInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LoginNotificationInfo&& from) noexcept + : LoginNotificationInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kEmailFieldNumber = 3, + kHostFieldNumber = 4, + kSourceFieldNumber = 5, + kEventTypeFieldNumber = 6, + kCreationTimeFieldNumber = 2, + }; + // optional string email = 3; + bool has_email() const; + void clear_email() ; + const ::std::string& email() const; + template + void set_email(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_email(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_email(); + void set_allocated_email(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_email() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_email(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_email(); + + public: + // optional string host = 4; + bool has_host() const; + void clear_host() ; + const ::std::string& host() const; + template + void set_host(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_host(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_host(); + void set_allocated_host(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_host() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_host(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_host(); + + public: + // optional string source = 5; + bool has_source() const; + void clear_source() ; + const ::std::string& source() const; + template + void set_source(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_source(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_source(); + void set_allocated_source(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_source() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_source(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_source(); + + public: + // optional string event_type = 6; + bool has_event_type() const; + void clear_event_type() ; + const ::std::string& event_type() const; + template + void set_event_type(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_event_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_event_type(); + void set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_event_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_event_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_event_type(); + + public: + // optional fixed64 creation_time = 2; + bool has_creation_time() const; + void clear_creation_time() ; + ::uint64_t creation_time() const; + void set_creation_time(::uint64_t value); + + private: + ::uint64_t _internal_creation_time() const; + void _internal_set_creation_time(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.LoginNotificationInfo) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LoginNotificationInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr email_; + ::google::protobuf::internal::ArenaStringPtr host_; + ::google::protobuf::internal::ArenaStringPtr source_; + ::google::protobuf::internal::ArenaStringPtr event_type_; + ::uint64_t creation_time_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; +// ------------------------------------------------------------------- + +class GcmMetadata final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.GcmMetadata) */ { + public: + inline GcmMetadata() : GcmMetadata(nullptr) {} + ~GcmMetadata() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GcmMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmMetadata)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GcmMetadata(::google::protobuf::internal::ConstantInitialized); + + inline GcmMetadata(const GcmMetadata& from) : GcmMetadata(nullptr, from) {} + inline GcmMetadata(GcmMetadata&& from) noexcept + : GcmMetadata(nullptr, ::std::move(from)) {} + inline GcmMetadata& operator=(const GcmMetadata& from) { + CopyFrom(from); + return *this; + } + inline GcmMetadata& operator=(GcmMetadata&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const GcmMetadata& default_instance() { + return *reinterpret_cast( + &_GcmMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(GcmMetadata& a, GcmMetadata& b) { a.Swap(&b); } + inline void Swap(GcmMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcmMetadata* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcmMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const GcmMetadata& from); + void MergeFrom(const GcmMetadata& from) { GcmMetadata::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GcmMetadata* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.GcmMetadata"; } + + explicit GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from); + GcmMetadata( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmMetadata&& from) noexcept + : GcmMetadata(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTypeFieldNumber = 1, + kVersionFieldNumber = 2, + }; + // required .securegcm.Type type = 1; + bool has_type() const; + void clear_type() ; + ::securegcm::Type type() const; + void set_type(::securegcm::Type value); + + private: + ::securegcm::Type _internal_type() const; + void _internal_set_type(::securegcm::Type value); + + public: + // optional int32 version = 2 [default = 0]; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.GcmMetadata) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GcmMetadata& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + int type_; + ::int32_t version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuregcm_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; +// ------------------------------------------------------------------- + +class GcmDeviceInfo final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.GcmDeviceInfo) */ { + public: + inline GcmDeviceInfo() : GcmDeviceInfo(nullptr) {} + ~GcmDeviceInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GcmDeviceInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmDeviceInfo)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GcmDeviceInfo(::google::protobuf::internal::ConstantInitialized); + + inline GcmDeviceInfo(const GcmDeviceInfo& from) : GcmDeviceInfo(nullptr, from) {} + inline GcmDeviceInfo(GcmDeviceInfo&& from) noexcept + : GcmDeviceInfo(nullptr, ::std::move(from)) {} + inline GcmDeviceInfo& operator=(const GcmDeviceInfo& from) { + CopyFrom(from); + return *this; + } + inline GcmDeviceInfo& operator=(GcmDeviceInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const GcmDeviceInfo& default_instance() { + return *reinterpret_cast( + &_GcmDeviceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(GcmDeviceInfo& a, GcmDeviceInfo& b) { a.Swap(&b); } + inline void Swap(GcmDeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcmDeviceInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcmDeviceInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const GcmDeviceInfo& from); + void MergeFrom(const GcmDeviceInfo& from) { GcmDeviceInfo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GcmDeviceInfo* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.GcmDeviceInfo"; } + + explicit GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmDeviceInfo& from); + GcmDeviceInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmDeviceInfo&& from) noexcept + : GcmDeviceInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSupportedSoftwareFeaturesFieldNumber = 411, kEnabledSoftwareFeaturesFieldNumber = 412, kUserPublicKeyFieldNumber = 4, kDeviceModelFieldNumber = 7, @@ -335,2993 +1035,2476 @@ class GcmDeviceInfo final : kDeviceSoftwarePackageFieldNumber = 19, kLongDeviceIdFieldNumber = 29, kDeviceManufacturerFieldNumber = 31, - kGcmRegistrationIdFieldNumber = 102, kDeviceMasterKeyHashFieldNumber = 103, kApnRegistrationIdFieldNumber = 202, kBluetoothMacAddressFieldNumber = 302, - kEnrollmentSessionIdFieldNumber = 1000, - kOauthTokenFieldNumber = 1001, kAndroidDeviceIdFieldNumber = 1, kCounterFieldNumber = 12, kDeviceOsVersionCodeFieldNumber = 14, kDeviceSoftwareVersionCodeFieldNumber = 18, kDeviceDisplayDiagonalMilsFieldNumber = 22, kDeviceAuthzenVersionFieldNumber = 24, - kPixelExperienceFieldNumber = 408, + kBluetoothRadioEnabledFieldNumber = 404, + kMobileDataSupportedFieldNumber = 405, kArcPlusPlusFieldNumber = 409, - kIsScreenlockStateFlakyFieldNumber = 410, + kNotificationEnabledFieldNumber = 203, + kSupportedSoftwareFeaturesFieldNumber = 411, + kGcmRegistrationIdFieldNumber = 102, + kEnrollmentSessionIdFieldNumber = 1000, + kOauthTokenFieldNumber = 1001, kUsingSecureScreenlockFieldNumber = 400, kAutoUnlockScreenlockSupportedFieldNumber = 401, kAutoUnlockScreenlockEnabledFieldNumber = 402, kBluetoothRadioSupportedFieldNumber = 403, - kBluetoothRadioEnabledFieldNumber = 404, - kMobileDataSupportedFieldNumber = 405, kTetheringSupportedFieldNumber = 406, kBleRadioSupportedFieldNumber = 407, + kPixelExperienceFieldNumber = 408, + kIsScreenlockStateFlakyFieldNumber = 410, kDeviceTypeFieldNumber = 32, - kNotificationEnabledFieldNumber = 203, }; - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - int supported_software_features_size() const; - private: - int _internal_supported_software_features_size() const; - public: - void clear_supported_software_features(); - private: - ::securegcm::SoftwareFeature _internal_supported_software_features(int index) const; - void _internal_add_supported_software_features(::securegcm::SoftwareFeature value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_supported_software_features(); - public: - ::securegcm::SoftwareFeature supported_software_features(int index) const; - void set_supported_software_features(int index, ::securegcm::SoftwareFeature value); - void add_supported_software_features(::securegcm::SoftwareFeature value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& supported_software_features() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_supported_software_features(); - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; int enabled_software_features_size() const; private: int _internal_enabled_software_features_size() const; + public: - void clear_enabled_software_features(); - private: - ::securegcm::SoftwareFeature _internal_enabled_software_features(int index) const; - void _internal_add_enabled_software_features(::securegcm::SoftwareFeature value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_enabled_software_features(); + void clear_enabled_software_features() ; public: ::securegcm::SoftwareFeature enabled_software_features(int index) const; void set_enabled_software_features(int index, ::securegcm::SoftwareFeature value); void add_enabled_software_features(::securegcm::SoftwareFeature value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& enabled_software_features() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_enabled_software_features(); + const ::google::protobuf::RepeatedField& enabled_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_enabled_software_features(); + private: + const ::google::protobuf::RepeatedField& _internal_enabled_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_enabled_software_features(); + + public: // required bytes user_public_key = 4; bool has_user_public_key() const; - private: - bool _internal_has_user_public_key() const; - public: - void clear_user_public_key(); - const std::string& user_public_key() const; - template - void set_user_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_user_public_key(); - PROTOBUF_NODISCARD std::string* release_user_public_key(); - void set_allocated_user_public_key(std::string* user_public_key); - private: - const std::string& _internal_user_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_public_key(const std::string& value); - std::string* _internal_mutable_user_public_key(); - public: + void clear_user_public_key() ; + const ::std::string& user_public_key() const; + template + void set_user_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_user_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_public_key(); + void set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_user_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_user_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_user_public_key(); + + public: // optional string device_model = 7; bool has_device_model() const; - private: - bool _internal_has_device_model() const; - public: - void clear_device_model(); - const std::string& device_model() const; - template - void set_device_model(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_model(); - PROTOBUF_NODISCARD std::string* release_device_model(); - void set_allocated_device_model(std::string* device_model); - private: - const std::string& _internal_device_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const std::string& value); - std::string* _internal_mutable_device_model(); - public: + void clear_device_model() ; + const ::std::string& device_model() const; + template + void set_device_model(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_model(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model(); + void set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_model() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model(); + + public: // optional string locale = 8; bool has_locale() const; - private: - bool _internal_has_locale() const; - public: - void clear_locale(); - const std::string& locale() const; - template - void set_locale(ArgT0&& arg0, ArgT... args); - std::string* mutable_locale(); - PROTOBUF_NODISCARD std::string* release_locale(); - void set_allocated_locale(std::string* locale); - private: - const std::string& _internal_locale() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const std::string& value); - std::string* _internal_mutable_locale(); - public: + void clear_locale() ; + const ::std::string& locale() const; + template + void set_locale(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_locale(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_locale(); + void set_allocated_locale(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_locale() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_locale(); + + public: // optional bytes key_handle = 9; bool has_key_handle() const; - private: - bool _internal_has_key_handle() const; - public: - void clear_key_handle(); - const std::string& key_handle() const; - template - void set_key_handle(ArgT0&& arg0, ArgT... args); - std::string* mutable_key_handle(); - PROTOBUF_NODISCARD std::string* release_key_handle(); - void set_allocated_key_handle(std::string* key_handle); - private: - const std::string& _internal_key_handle() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key_handle(const std::string& value); - std::string* _internal_mutable_key_handle(); - public: + void clear_key_handle() ; + const ::std::string& key_handle() const; + template + void set_key_handle(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_key_handle(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_handle(); + void set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_key_handle() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_key_handle(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_key_handle(); + + public: // optional string device_os_version = 13; bool has_device_os_version() const; - private: - bool _internal_has_device_os_version() const; - public: - void clear_device_os_version(); - const std::string& device_os_version() const; - template - void set_device_os_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_os_version(); - PROTOBUF_NODISCARD std::string* release_device_os_version(); - void set_allocated_device_os_version(std::string* device_os_version); - private: - const std::string& _internal_device_os_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_version(const std::string& value); - std::string* _internal_mutable_device_os_version(); - public: + void clear_device_os_version() ; + const ::std::string& device_os_version() const; + template + void set_device_os_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_version(); + void set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_os_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_version(); + + public: // optional string device_os_release = 15; bool has_device_os_release() const; - private: - bool _internal_has_device_os_release() const; - public: - void clear_device_os_release(); - const std::string& device_os_release() const; - template - void set_device_os_release(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_os_release(); - PROTOBUF_NODISCARD std::string* release_device_os_release(); - void set_allocated_device_os_release(std::string* device_os_release); - private: - const std::string& _internal_device_os_release() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_release(const std::string& value); - std::string* _internal_mutable_device_os_release(); - public: + void clear_device_os_release() ; + const ::std::string& device_os_release() const; + template + void set_device_os_release(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_release(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_release(); + void set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_os_release() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_release(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_release(); + + public: // optional string device_os_codename = 16; bool has_device_os_codename() const; - private: - bool _internal_has_device_os_codename() const; - public: - void clear_device_os_codename(); - const std::string& device_os_codename() const; - template - void set_device_os_codename(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_os_codename(); - PROTOBUF_NODISCARD std::string* release_device_os_codename(); - void set_allocated_device_os_codename(std::string* device_os_codename); - private: - const std::string& _internal_device_os_codename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_codename(const std::string& value); - std::string* _internal_mutable_device_os_codename(); - public: + void clear_device_os_codename() ; + const ::std::string& device_os_codename() const; + template + void set_device_os_codename(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_os_codename(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_codename(); + void set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_os_codename() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_codename(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_codename(); + + public: // optional string device_software_version = 17; bool has_device_software_version() const; - private: - bool _internal_has_device_software_version() const; - public: - void clear_device_software_version(); - const std::string& device_software_version() const; - template - void set_device_software_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_software_version(); - PROTOBUF_NODISCARD std::string* release_device_software_version(); - void set_allocated_device_software_version(std::string* device_software_version); - private: - const std::string& _internal_device_software_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_version(const std::string& value); - std::string* _internal_mutable_device_software_version(); - public: + void clear_device_software_version() ; + const ::std::string& device_software_version() const; + template + void set_device_software_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_software_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_version(); + void set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_software_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_version(); + + public: // optional string device_software_package = 19; bool has_device_software_package() const; - private: - bool _internal_has_device_software_package() const; - public: - void clear_device_software_package(); - const std::string& device_software_package() const; - template - void set_device_software_package(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_software_package(); - PROTOBUF_NODISCARD std::string* release_device_software_package(); - void set_allocated_device_software_package(std::string* device_software_package); - private: - const std::string& _internal_device_software_package() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_package(const std::string& value); - std::string* _internal_mutable_device_software_package(); - public: + void clear_device_software_package() ; + const ::std::string& device_software_package() const; + template + void set_device_software_package(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_software_package(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_package(); + void set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_software_package() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_package(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_package(); + + public: // optional bytes long_device_id = 29; bool has_long_device_id() const; - private: - bool _internal_has_long_device_id() const; - public: - void clear_long_device_id(); - const std::string& long_device_id() const; - template - void set_long_device_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_long_device_id(); - PROTOBUF_NODISCARD std::string* release_long_device_id(); - void set_allocated_long_device_id(std::string* long_device_id); - private: - const std::string& _internal_long_device_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_long_device_id(const std::string& value); - std::string* _internal_mutable_long_device_id(); - public: + void clear_long_device_id() ; + const ::std::string& long_device_id() const; + template + void set_long_device_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_long_device_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_long_device_id(); + void set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_long_device_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_long_device_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_long_device_id(); + + public: // optional string device_manufacturer = 31; bool has_device_manufacturer() const; - private: - bool _internal_has_device_manufacturer() const; - public: - void clear_device_manufacturer(); - const std::string& device_manufacturer() const; - template - void set_device_manufacturer(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_manufacturer(); - PROTOBUF_NODISCARD std::string* release_device_manufacturer(); - void set_allocated_device_manufacturer(std::string* device_manufacturer); - private: - const std::string& _internal_device_manufacturer() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const std::string& value); - std::string* _internal_mutable_device_manufacturer(); - public: + void clear_device_manufacturer() ; + const ::std::string& device_manufacturer() const; + template + void set_device_manufacturer(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_manufacturer(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_manufacturer(); + void set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value); - // optional bytes gcm_registration_id = 102; - bool has_gcm_registration_id() const; private: - bool _internal_has_gcm_registration_id() const; - public: - void clear_gcm_registration_id(); - const std::string& gcm_registration_id() const; - template - void set_gcm_registration_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_gcm_registration_id(); - PROTOBUF_NODISCARD std::string* release_gcm_registration_id(); - void set_allocated_gcm_registration_id(std::string* gcm_registration_id); - private: - const std::string& _internal_gcm_registration_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gcm_registration_id(const std::string& value); - std::string* _internal_mutable_gcm_registration_id(); - public: + const ::std::string& _internal_device_manufacturer() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_manufacturer(); + public: // optional bytes device_master_key_hash = 103; bool has_device_master_key_hash() const; - private: - bool _internal_has_device_master_key_hash() const; - public: - void clear_device_master_key_hash(); - const std::string& device_master_key_hash() const; - template - void set_device_master_key_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_master_key_hash(); - PROTOBUF_NODISCARD std::string* release_device_master_key_hash(); - void set_allocated_device_master_key_hash(std::string* device_master_key_hash); - private: - const std::string& _internal_device_master_key_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_master_key_hash(const std::string& value); - std::string* _internal_mutable_device_master_key_hash(); - public: + void clear_device_master_key_hash() ; + const ::std::string& device_master_key_hash() const; + template + void set_device_master_key_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_device_master_key_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_master_key_hash(); + void set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_device_master_key_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_device_master_key_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_device_master_key_hash(); + + public: // optional bytes apn_registration_id = 202; bool has_apn_registration_id() const; - private: - bool _internal_has_apn_registration_id() const; - public: - void clear_apn_registration_id(); - const std::string& apn_registration_id() const; - template - void set_apn_registration_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_apn_registration_id(); - PROTOBUF_NODISCARD std::string* release_apn_registration_id(); - void set_allocated_apn_registration_id(std::string* apn_registration_id); - private: - const std::string& _internal_apn_registration_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_apn_registration_id(const std::string& value); - std::string* _internal_mutable_apn_registration_id(); - public: + void clear_apn_registration_id() ; + const ::std::string& apn_registration_id() const; + template + void set_apn_registration_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_apn_registration_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_apn_registration_id(); + void set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_apn_registration_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_apn_registration_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_apn_registration_id(); + + public: // optional string bluetooth_mac_address = 302; bool has_bluetooth_mac_address() const; - private: - bool _internal_has_bluetooth_mac_address() const; - public: - void clear_bluetooth_mac_address(); - const std::string& bluetooth_mac_address() const; - template - void set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_bluetooth_mac_address(); - PROTOBUF_NODISCARD std::string* release_bluetooth_mac_address(); - void set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address); - private: - const std::string& _internal_bluetooth_mac_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const std::string& value); - std::string* _internal_mutable_bluetooth_mac_address(); - public: + void clear_bluetooth_mac_address() ; + const ::std::string& bluetooth_mac_address() const; + template + void set_bluetooth_mac_address(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); + void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); - // optional bytes enrollment_session_id = 1000; - bool has_enrollment_session_id() const; private: - bool _internal_has_enrollment_session_id() const; - public: - void clear_enrollment_session_id(); - const std::string& enrollment_session_id() const; - template - void set_enrollment_session_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_enrollment_session_id(); - PROTOBUF_NODISCARD std::string* release_enrollment_session_id(); - void set_allocated_enrollment_session_id(std::string* enrollment_session_id); - private: - const std::string& _internal_enrollment_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_enrollment_session_id(const std::string& value); - std::string* _internal_mutable_enrollment_session_id(); - public: + const ::std::string& _internal_bluetooth_mac_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); - // optional string oauth_token = 1001; - bool has_oauth_token() const; - private: - bool _internal_has_oauth_token() const; public: - void clear_oauth_token(); - const std::string& oauth_token() const; - template - void set_oauth_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_oauth_token(); - PROTOBUF_NODISCARD std::string* release_oauth_token(); - void set_allocated_oauth_token(std::string* oauth_token); - private: - const std::string& _internal_oauth_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_oauth_token(const std::string& value); - std::string* _internal_mutable_oauth_token(); - public: - // optional fixed64 android_device_id = 1; bool has_android_device_id() const; - private: - bool _internal_has_android_device_id() const; - public: - void clear_android_device_id(); - uint64_t android_device_id() const; - void set_android_device_id(uint64_t value); - private: - uint64_t _internal_android_device_id() const; - void _internal_set_android_device_id(uint64_t value); - public: + void clear_android_device_id() ; + ::uint64_t android_device_id() const; + void set_android_device_id(::uint64_t value); + private: + ::uint64_t _internal_android_device_id() const; + void _internal_set_android_device_id(::uint64_t value); + + public: // optional int64 counter = 12 [default = 0]; bool has_counter() const; - private: - bool _internal_has_counter() const; - public: - void clear_counter(); - int64_t counter() const; - void set_counter(int64_t value); - private: - int64_t _internal_counter() const; - void _internal_set_counter(int64_t value); - public: + void clear_counter() ; + ::int64_t counter() const; + void set_counter(::int64_t value); + private: + ::int64_t _internal_counter() const; + void _internal_set_counter(::int64_t value); + + public: // optional int64 device_os_version_code = 14; bool has_device_os_version_code() const; - private: - bool _internal_has_device_os_version_code() const; - public: - void clear_device_os_version_code(); - int64_t device_os_version_code() const; - void set_device_os_version_code(int64_t value); - private: - int64_t _internal_device_os_version_code() const; - void _internal_set_device_os_version_code(int64_t value); - public: + void clear_device_os_version_code() ; + ::int64_t device_os_version_code() const; + void set_device_os_version_code(::int64_t value); + private: + ::int64_t _internal_device_os_version_code() const; + void _internal_set_device_os_version_code(::int64_t value); + + public: // optional int64 device_software_version_code = 18; bool has_device_software_version_code() const; - private: - bool _internal_has_device_software_version_code() const; - public: - void clear_device_software_version_code(); - int64_t device_software_version_code() const; - void set_device_software_version_code(int64_t value); - private: - int64_t _internal_device_software_version_code() const; - void _internal_set_device_software_version_code(int64_t value); - public: + void clear_device_software_version_code() ; + ::int64_t device_software_version_code() const; + void set_device_software_version_code(::int64_t value); + private: + ::int64_t _internal_device_software_version_code() const; + void _internal_set_device_software_version_code(::int64_t value); + + public: // optional int32 device_display_diagonal_mils = 22; bool has_device_display_diagonal_mils() const; - private: - bool _internal_has_device_display_diagonal_mils() const; - public: - void clear_device_display_diagonal_mils(); - int32_t device_display_diagonal_mils() const; - void set_device_display_diagonal_mils(int32_t value); - private: - int32_t _internal_device_display_diagonal_mils() const; - void _internal_set_device_display_diagonal_mils(int32_t value); - public: + void clear_device_display_diagonal_mils() ; + ::int32_t device_display_diagonal_mils() const; + void set_device_display_diagonal_mils(::int32_t value); + private: + ::int32_t _internal_device_display_diagonal_mils() const; + void _internal_set_device_display_diagonal_mils(::int32_t value); + + public: // optional int32 device_authzen_version = 24; bool has_device_authzen_version() const; - private: - bool _internal_has_device_authzen_version() const; - public: - void clear_device_authzen_version(); - int32_t device_authzen_version() const; - void set_device_authzen_version(int32_t value); - private: - int32_t _internal_device_authzen_version() const; - void _internal_set_device_authzen_version(int32_t value); - public: + void clear_device_authzen_version() ; + ::int32_t device_authzen_version() const; + void set_device_authzen_version(::int32_t value); - // optional bool pixel_experience = 408 [default = false]; - bool has_pixel_experience() const; private: - bool _internal_has_pixel_experience() const; - public: - void clear_pixel_experience(); - bool pixel_experience() const; - void set_pixel_experience(bool value); - private: - bool _internal_pixel_experience() const; - void _internal_set_pixel_experience(bool value); - public: + ::int32_t _internal_device_authzen_version() const; + void _internal_set_device_authzen_version(::int32_t value); - // optional bool arc_plus_plus = 409 [default = false]; - bool has_arc_plus_plus() const; - private: - bool _internal_has_arc_plus_plus() const; public: - void clear_arc_plus_plus(); - bool arc_plus_plus() const; - void set_arc_plus_plus(bool value); - private: - bool _internal_arc_plus_plus() const; - void _internal_set_arc_plus_plus(bool value); - public: - - // optional bool is_screenlock_state_flaky = 410 [default = false]; - bool has_is_screenlock_state_flaky() const; - private: - bool _internal_has_is_screenlock_state_flaky() const; - public: - void clear_is_screenlock_state_flaky(); - bool is_screenlock_state_flaky() const; - void set_is_screenlock_state_flaky(bool value); - private: - bool _internal_is_screenlock_state_flaky() const; - void _internal_set_is_screenlock_state_flaky(bool value); - public: - - // optional bool using_secure_screenlock = 400 [default = false]; - bool has_using_secure_screenlock() const; - private: - bool _internal_has_using_secure_screenlock() const; - public: - void clear_using_secure_screenlock(); - bool using_secure_screenlock() const; - void set_using_secure_screenlock(bool value); - private: - bool _internal_using_secure_screenlock() const; - void _internal_set_using_secure_screenlock(bool value); - public: - - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - bool has_auto_unlock_screenlock_supported() const; - private: - bool _internal_has_auto_unlock_screenlock_supported() const; - public: - void clear_auto_unlock_screenlock_supported(); - bool auto_unlock_screenlock_supported() const; - void set_auto_unlock_screenlock_supported(bool value); - private: - bool _internal_auto_unlock_screenlock_supported() const; - void _internal_set_auto_unlock_screenlock_supported(bool value); - public: - - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - bool has_auto_unlock_screenlock_enabled() const; - private: - bool _internal_has_auto_unlock_screenlock_enabled() const; - public: - void clear_auto_unlock_screenlock_enabled(); - bool auto_unlock_screenlock_enabled() const; - void set_auto_unlock_screenlock_enabled(bool value); - private: - bool _internal_auto_unlock_screenlock_enabled() const; - void _internal_set_auto_unlock_screenlock_enabled(bool value); - public: - - // optional bool bluetooth_radio_supported = 403 [default = false]; - bool has_bluetooth_radio_supported() const; - private: - bool _internal_has_bluetooth_radio_supported() const; - public: - void clear_bluetooth_radio_supported(); - bool bluetooth_radio_supported() const; - void set_bluetooth_radio_supported(bool value); - private: - bool _internal_bluetooth_radio_supported() const; - void _internal_set_bluetooth_radio_supported(bool value); - public: - // optional bool bluetooth_radio_enabled = 404 [default = false]; bool has_bluetooth_radio_enabled() const; - private: - bool _internal_has_bluetooth_radio_enabled() const; - public: - void clear_bluetooth_radio_enabled(); + void clear_bluetooth_radio_enabled() ; bool bluetooth_radio_enabled() const; void set_bluetooth_radio_enabled(bool value); + private: bool _internal_bluetooth_radio_enabled() const; void _internal_set_bluetooth_radio_enabled(bool value); - public: + public: // optional bool mobile_data_supported = 405 [default = false]; bool has_mobile_data_supported() const; - private: - bool _internal_has_mobile_data_supported() const; - public: - void clear_mobile_data_supported(); + void clear_mobile_data_supported() ; bool mobile_data_supported() const; void set_mobile_data_supported(bool value); + private: bool _internal_mobile_data_supported() const; void _internal_set_mobile_data_supported(bool value); - public: - // optional bool tethering_supported = 406 [default = false]; - bool has_tethering_supported() const; - private: - bool _internal_has_tethering_supported() const; - public: - void clear_tethering_supported(); - bool tethering_supported() const; - void set_tethering_supported(bool value); - private: - bool _internal_tethering_supported() const; - void _internal_set_tethering_supported(bool value); public: + // optional bool arc_plus_plus = 409 [default = false]; + bool has_arc_plus_plus() const; + void clear_arc_plus_plus() ; + bool arc_plus_plus() const; + void set_arc_plus_plus(bool value); - // optional bool ble_radio_supported = 407 [default = false]; - bool has_ble_radio_supported() const; private: - bool _internal_has_ble_radio_supported() const; - public: - void clear_ble_radio_supported(); - bool ble_radio_supported() const; - void set_ble_radio_supported(bool value); - private: - bool _internal_ble_radio_supported() const; - void _internal_set_ble_radio_supported(bool value); - public: + bool _internal_arc_plus_plus() const; + void _internal_set_arc_plus_plus(bool value); - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; public: - void clear_device_type(); - ::securegcm::DeviceType device_type() const; - void set_device_type(::securegcm::DeviceType value); - private: - ::securegcm::DeviceType _internal_device_type() const; - void _internal_set_device_type(::securegcm::DeviceType value); - public: - // optional bool notification_enabled = 203 [default = true]; bool has_notification_enabled() const; - private: - bool _internal_has_notification_enabled() const; - public: - void clear_notification_enabled(); + void clear_notification_enabled() ; bool notification_enabled() const; void set_notification_enabled(bool value); + private: bool _internal_notification_enabled() const; void _internal_set_notification_enabled(bool value); - public: + public: + // repeated .securegcm.SoftwareFeature supported_software_features = 411; + int supported_software_features_size() const; + private: + int _internal_supported_software_features_size() const; + + public: + void clear_supported_software_features() ; + public: + ::securegcm::SoftwareFeature supported_software_features(int index) const; + void set_supported_software_features(int index, ::securegcm::SoftwareFeature value); + void add_supported_software_features(::securegcm::SoftwareFeature value); + const ::google::protobuf::RepeatedField& supported_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_supported_software_features(); + + private: + const ::google::protobuf::RepeatedField& _internal_supported_software_features() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_supported_software_features(); + + public: + // optional bytes gcm_registration_id = 102; + bool has_gcm_registration_id() const; + void clear_gcm_registration_id() ; + const ::std::string& gcm_registration_id() const; + template + void set_gcm_registration_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_gcm_registration_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_gcm_registration_id(); + void set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_gcm_registration_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_gcm_registration_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_gcm_registration_id(); + + public: + // optional bytes enrollment_session_id = 1000; + bool has_enrollment_session_id() const; + void clear_enrollment_session_id() ; + const ::std::string& enrollment_session_id() const; + template + void set_enrollment_session_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_enrollment_session_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_enrollment_session_id(); + void set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_enrollment_session_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_enrollment_session_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_enrollment_session_id(); + + public: + // optional string oauth_token = 1001; + bool has_oauth_token() const; + void clear_oauth_token() ; + const ::std::string& oauth_token() const; + template + void set_oauth_token(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_oauth_token(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_oauth_token(); + void set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_oauth_token() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_oauth_token(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_oauth_token(); + + public: + // optional bool using_secure_screenlock = 400 [default = false]; + bool has_using_secure_screenlock() const; + void clear_using_secure_screenlock() ; + bool using_secure_screenlock() const; + void set_using_secure_screenlock(bool value); + + private: + bool _internal_using_secure_screenlock() const; + void _internal_set_using_secure_screenlock(bool value); + + public: + // optional bool auto_unlock_screenlock_supported = 401 [default = false]; + bool has_auto_unlock_screenlock_supported() const; + void clear_auto_unlock_screenlock_supported() ; + bool auto_unlock_screenlock_supported() const; + void set_auto_unlock_screenlock_supported(bool value); + + private: + bool _internal_auto_unlock_screenlock_supported() const; + void _internal_set_auto_unlock_screenlock_supported(bool value); + + public: + // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; + bool has_auto_unlock_screenlock_enabled() const; + void clear_auto_unlock_screenlock_enabled() ; + bool auto_unlock_screenlock_enabled() const; + void set_auto_unlock_screenlock_enabled(bool value); + + private: + bool _internal_auto_unlock_screenlock_enabled() const; + void _internal_set_auto_unlock_screenlock_enabled(bool value); + + public: + // optional bool bluetooth_radio_supported = 403 [default = false]; + bool has_bluetooth_radio_supported() const; + void clear_bluetooth_radio_supported() ; + bool bluetooth_radio_supported() const; + void set_bluetooth_radio_supported(bool value); + + private: + bool _internal_bluetooth_radio_supported() const; + void _internal_set_bluetooth_radio_supported(bool value); + + public: + // optional bool tethering_supported = 406 [default = false]; + bool has_tethering_supported() const; + void clear_tethering_supported() ; + bool tethering_supported() const; + void set_tethering_supported(bool value); + + private: + bool _internal_tethering_supported() const; + void _internal_set_tethering_supported(bool value); + + public: + // optional bool ble_radio_supported = 407 [default = false]; + bool has_ble_radio_supported() const; + void clear_ble_radio_supported() ; + bool ble_radio_supported() const; + void set_ble_radio_supported(bool value); + + private: + bool _internal_ble_radio_supported() const; + void _internal_set_ble_radio_supported(bool value); + + public: + // optional bool pixel_experience = 408 [default = false]; + bool has_pixel_experience() const; + void clear_pixel_experience() ; + bool pixel_experience() const; + void set_pixel_experience(bool value); + + private: + bool _internal_pixel_experience() const; + void _internal_set_pixel_experience(bool value); + + public: + // optional bool is_screenlock_state_flaky = 410 [default = false]; + bool has_is_screenlock_state_flaky() const; + void clear_is_screenlock_state_flaky() ; + bool is_screenlock_state_flaky() const; + void set_is_screenlock_state_flaky(bool value); + + private: + bool _internal_is_screenlock_state_flaky() const; + void _internal_set_is_screenlock_state_flaky(bool value); + + public: + // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; + bool has_device_type() const; + void clear_device_type() ; + ::securegcm::DeviceType device_type() const; + void set_device_type(::securegcm::DeviceType value); + + private: + ::securegcm::DeviceType _internal_device_type() const; + void _internal_set_device_type(::securegcm::DeviceType value); + + public: // @@protoc_insertion_point(class_scope:securegcm.GcmDeviceInfo) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<5, 38, + 3, 0, + 27> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<2> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField supported_software_features_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField enabled_software_features_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_model_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr locale_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_handle_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_os_version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_os_release_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_os_codename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_software_version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_software_package_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr long_device_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_manufacturer_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gcm_registration_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_master_key_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr apn_registration_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bluetooth_mac_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr enrollment_session_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr oauth_token_; - uint64_t android_device_id_; - int64_t counter_; - int64_t device_os_version_code_; - int64_t device_software_version_code_; - int32_t device_display_diagonal_mils_; - int32_t device_authzen_version_; - bool pixel_experience_; - bool arc_plus_plus_; - bool is_screenlock_state_flaky_; - bool using_secure_screenlock_; - bool auto_unlock_screenlock_supported_; - bool auto_unlock_screenlock_enabled_; - bool bluetooth_radio_supported_; - bool bluetooth_radio_enabled_; - bool mobile_data_supported_; - bool tethering_supported_; - bool ble_radio_supported_; - int device_type_; - bool notification_enabled_; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; -// ------------------------------------------------------------------- - -class GcmMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.GcmMetadata) */ { - public: - inline GcmMetadata() : GcmMetadata(nullptr) {} - ~GcmMetadata() override; - explicit constexpr GcmMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GcmMetadata(const GcmMetadata& from); - GcmMetadata(GcmMetadata&& from) noexcept - : GcmMetadata() { - *this = ::std::move(from); - } - - inline GcmMetadata& operator=(const GcmMetadata& from) { - CopyFrom(from); - return *this; - } - inline GcmMetadata& operator=(GcmMetadata&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const GcmMetadata& default_instance() { - return *internal_default_instance(); - } - static inline const GcmMetadata* internal_default_instance() { - return reinterpret_cast( - &_GcmMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(GcmMetadata& a, GcmMetadata& b) { - a.Swap(&b); - } - inline void Swap(GcmMetadata* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GcmMetadata* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GcmMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const GcmMetadata& from); - void MergeFrom(const GcmMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GcmMetadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.GcmMetadata"; - } - protected: - explicit GcmMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeFieldNumber = 1, - kVersionFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GcmDeviceInfo& from_msg); + ::google::protobuf::internal::HasBits<2> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField enabled_software_features_; + ::google::protobuf::internal::ArenaStringPtr user_public_key_; + ::google::protobuf::internal::ArenaStringPtr device_model_; + ::google::protobuf::internal::ArenaStringPtr locale_; + ::google::protobuf::internal::ArenaStringPtr key_handle_; + ::google::protobuf::internal::ArenaStringPtr device_os_version_; + ::google::protobuf::internal::ArenaStringPtr device_os_release_; + ::google::protobuf::internal::ArenaStringPtr device_os_codename_; + ::google::protobuf::internal::ArenaStringPtr device_software_version_; + ::google::protobuf::internal::ArenaStringPtr device_software_package_; + ::google::protobuf::internal::ArenaStringPtr long_device_id_; + ::google::protobuf::internal::ArenaStringPtr device_manufacturer_; + ::google::protobuf::internal::ArenaStringPtr device_master_key_hash_; + ::google::protobuf::internal::ArenaStringPtr apn_registration_id_; + ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; + ::uint64_t android_device_id_; + ::int64_t counter_; + ::int64_t device_os_version_code_; + ::int64_t device_software_version_code_; + ::int32_t device_display_diagonal_mils_; + ::int32_t device_authzen_version_; + bool bluetooth_radio_enabled_; + bool mobile_data_supported_; + bool arc_plus_plus_; + bool notification_enabled_; + ::google::protobuf::RepeatedField supported_software_features_; + ::google::protobuf::internal::ArenaStringPtr gcm_registration_id_; + ::google::protobuf::internal::ArenaStringPtr enrollment_session_id_; + ::google::protobuf::internal::ArenaStringPtr oauth_token_; + bool using_secure_screenlock_; + bool auto_unlock_screenlock_supported_; + bool auto_unlock_screenlock_enabled_; + bool bluetooth_radio_supported_; + bool tethering_supported_; + bool ble_radio_supported_; + bool pixel_experience_; + bool is_screenlock_state_flaky_; + int device_type_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // required .securegcm.Type type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::securegcm::Type type() const; - void set_type(::securegcm::Type value); - private: - ::securegcm::Type _internal_type() const; - void _internal_set_type(::securegcm::Type value); - public: - - // optional int32 version = 2 [default = 0]; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.GcmMetadata) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int type_; - int32_t version_; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuregcm_2eproto; }; -// ------------------------------------------------------------------- -class Tickle final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Tickle) */ { - public: - inline Tickle() : Tickle(nullptr) {} - ~Tickle() override; - explicit constexpr Tickle(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); +extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; - Tickle(const Tickle& from); - Tickle(Tickle&& from) noexcept - : Tickle() { - *this = ::std::move(from); - } - - inline Tickle& operator=(const Tickle& from) { - CopyFrom(from); - return *this; - } - inline Tickle& operator=(Tickle&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Tickle& default_instance() { - return *internal_default_instance(); - } - static inline const Tickle* internal_default_instance() { - return reinterpret_cast( - &_Tickle_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Tickle& a, Tickle& b) { - a.Swap(&b); - } - inline void Swap(Tickle* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Tickle* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Tickle* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Tickle& from); - void MergeFrom(const Tickle& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Tickle* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Tickle"; - } - protected: - explicit Tickle(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExpiryTimeFieldNumber = 1, - }; - // optional fixed64 expiry_time = 1; - bool has_expiry_time() const; - private: - bool _internal_has_expiry_time() const; - public: - void clear_expiry_time(); - uint64_t expiry_time() const; - void set_expiry_time(uint64_t value); - private: - uint64_t _internal_expiry_time() const; - void _internal_set_expiry_time(uint64_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Tickle) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint64_t expiry_time_; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; -// ------------------------------------------------------------------- - -class LoginNotificationInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.LoginNotificationInfo) */ { - public: - inline LoginNotificationInfo() : LoginNotificationInfo(nullptr) {} - ~LoginNotificationInfo() override; - explicit constexpr LoginNotificationInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LoginNotificationInfo(const LoginNotificationInfo& from); - LoginNotificationInfo(LoginNotificationInfo&& from) noexcept - : LoginNotificationInfo() { - *this = ::std::move(from); - } - - inline LoginNotificationInfo& operator=(const LoginNotificationInfo& from) { - CopyFrom(from); - return *this; - } - inline LoginNotificationInfo& operator=(LoginNotificationInfo&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const LoginNotificationInfo& default_instance() { - return *internal_default_instance(); - } - static inline const LoginNotificationInfo* internal_default_instance() { - return reinterpret_cast( - &_LoginNotificationInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(LoginNotificationInfo& a, LoginNotificationInfo& b) { - a.Swap(&b); - } - inline void Swap(LoginNotificationInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LoginNotificationInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LoginNotificationInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LoginNotificationInfo& from); - void MergeFrom(const LoginNotificationInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LoginNotificationInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.LoginNotificationInfo"; - } - protected: - explicit LoginNotificationInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEmailFieldNumber = 3, - kHostFieldNumber = 4, - kSourceFieldNumber = 5, - kEventTypeFieldNumber = 6, - kCreationTimeFieldNumber = 2, - }; - // optional string email = 3; - bool has_email() const; - private: - bool _internal_has_email() const; - public: - void clear_email(); - const std::string& email() const; - template - void set_email(ArgT0&& arg0, ArgT... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* email); - private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); - std::string* _internal_mutable_email(); - public: - - // optional string host = 4; - bool has_host() const; - private: - bool _internal_has_host() const; - public: - void clear_host(); - const std::string& host() const; - template - void set_host(ArgT0&& arg0, ArgT... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* host); - private: - const std::string& _internal_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); - std::string* _internal_mutable_host(); - public: - - // optional string source = 5; - bool has_source() const; - private: - bool _internal_has_source() const; - public: - void clear_source(); - const std::string& source() const; - template - void set_source(ArgT0&& arg0, ArgT... args); - std::string* mutable_source(); - PROTOBUF_NODISCARD std::string* release_source(); - void set_allocated_source(std::string* source); - private: - const std::string& _internal_source() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source(const std::string& value); - std::string* _internal_mutable_source(); - public: - - // optional string event_type = 6; - bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); - const std::string& event_type() const; - template - void set_event_type(ArgT0&& arg0, ArgT... args); - std::string* mutable_event_type(); - PROTOBUF_NODISCARD std::string* release_event_type(); - void set_allocated_event_type(std::string* event_type); - private: - const std::string& _internal_event_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_event_type(const std::string& value); - std::string* _internal_mutable_event_type(); - public: - - // optional fixed64 creation_time = 2; - bool has_creation_time() const; - private: - bool _internal_has_creation_time() const; - public: - void clear_creation_time(); - uint64_t creation_time() const; - void set_creation_time(uint64_t value); - private: - uint64_t _internal_creation_time() const; - void _internal_set_creation_time(uint64_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.LoginNotificationInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr event_type_; - uint64_t creation_time_; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // GcmDeviceInfo // optional fixed64 android_device_id = 1; -inline bool GcmDeviceInfo::_internal_has_android_device_id() const { - bool value = (_has_bits_[0] & 0x00020000u) != 0; +inline bool GcmDeviceInfo::has_android_device_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00008000U); return value; } -inline bool GcmDeviceInfo::has_android_device_id() const { - return _internal_has_android_device_id(); -} inline void GcmDeviceInfo::clear_android_device_id() { - android_device_id_ = uint64_t{0u}; - _has_bits_[0] &= ~0x00020000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.android_device_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } -inline uint64_t GcmDeviceInfo::_internal_android_device_id() const { - return android_device_id_; -} -inline uint64_t GcmDeviceInfo::android_device_id() const { +inline ::uint64_t GcmDeviceInfo::android_device_id() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.android_device_id) return _internal_android_device_id(); } -inline void GcmDeviceInfo::_internal_set_android_device_id(uint64_t value) { - _has_bits_[0] |= 0x00020000u; - android_device_id_ = value; -} -inline void GcmDeviceInfo::set_android_device_id(uint64_t value) { +inline void GcmDeviceInfo::set_android_device_id(::uint64_t value) { _internal_set_android_device_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.android_device_id) } +inline ::uint64_t GcmDeviceInfo::_internal_android_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.android_device_id_; +} +inline void GcmDeviceInfo::_internal_set_android_device_id(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.android_device_id_ = value; +} // optional bytes gcm_registration_id = 102; -inline bool GcmDeviceInfo::_internal_has_gcm_registration_id() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; +inline bool GcmDeviceInfo::has_gcm_registration_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x04000000U); return value; } -inline bool GcmDeviceInfo::has_gcm_registration_id() const { - return _internal_has_gcm_registration_id(); -} inline void GcmDeviceInfo::clear_gcm_registration_id() { - gcm_registration_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000800u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gcm_registration_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x04000000U); } -inline const std::string& GcmDeviceInfo::gcm_registration_id() const { +inline const ::std::string& GcmDeviceInfo::gcm_registration_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.gcm_registration_id) return _internal_gcm_registration_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_gcm_registration_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000800u; - gcm_registration_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_gcm_registration_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x04000000U); + _impl_.gcm_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.gcm_registration_id) } -inline std::string* GcmDeviceInfo::mutable_gcm_registration_id() { - std::string* _s = _internal_mutable_gcm_registration_id(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_gcm_registration_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); + ::std::string* _s = _internal_mutable_gcm_registration_id(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.gcm_registration_id) return _s; } -inline const std::string& GcmDeviceInfo::_internal_gcm_registration_id() const { - return gcm_registration_id_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_gcm_registration_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.gcm_registration_id_.Get(); } -inline void GcmDeviceInfo::_internal_set_gcm_registration_id(const std::string& value) { - _has_bits_[0] |= 0x00000800u; - gcm_registration_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_gcm_registration_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gcm_registration_id_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_gcm_registration_id() { - _has_bits_[0] |= 0x00000800u; - return gcm_registration_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_gcm_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.gcm_registration_id_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_gcm_registration_id() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_gcm_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.gcm_registration_id) - if (!_internal_has_gcm_registration_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x04000000U)) { return nullptr; } - _has_bits_[0] &= ~0x00000800u; - auto* p = gcm_registration_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (gcm_registration_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - gcm_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); + auto* released = _impl_.gcm_registration_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.gcm_registration_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_gcm_registration_id(std::string* gcm_registration_id) { - if (gcm_registration_id != nullptr) { - _has_bits_[0] |= 0x00000800u; +inline void GcmDeviceInfo::set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x04000000U); } else { - _has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x04000000U); } - gcm_registration_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gcm_registration_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (gcm_registration_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - gcm_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.gcm_registration_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.gcm_registration_id_.IsDefault()) { + _impl_.gcm_registration_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.gcm_registration_id) } // optional bytes apn_registration_id = 202; -inline bool GcmDeviceInfo::_internal_has_apn_registration_id() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; +inline bool GcmDeviceInfo::has_apn_registration_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); return value; } -inline bool GcmDeviceInfo::has_apn_registration_id() const { - return _internal_has_apn_registration_id(); -} inline void GcmDeviceInfo::clear_apn_registration_id() { - apn_registration_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00002000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apn_registration_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } -inline const std::string& GcmDeviceInfo::apn_registration_id() const { +inline const ::std::string& GcmDeviceInfo::apn_registration_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.apn_registration_id) return _internal_apn_registration_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_apn_registration_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00002000u; - apn_registration_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_apn_registration_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + _impl_.apn_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.apn_registration_id) } -inline std::string* GcmDeviceInfo::mutable_apn_registration_id() { - std::string* _s = _internal_mutable_apn_registration_id(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_apn_registration_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); + ::std::string* _s = _internal_mutable_apn_registration_id(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.apn_registration_id) return _s; } -inline const std::string& GcmDeviceInfo::_internal_apn_registration_id() const { - return apn_registration_id_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_apn_registration_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apn_registration_id_.Get(); } -inline void GcmDeviceInfo::_internal_set_apn_registration_id(const std::string& value) { - _has_bits_[0] |= 0x00002000u; - apn_registration_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_apn_registration_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apn_registration_id_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_apn_registration_id() { - _has_bits_[0] |= 0x00002000u; - return apn_registration_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_apn_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.apn_registration_id_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_apn_registration_id() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_apn_registration_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.apn_registration_id) - if (!_internal_has_apn_registration_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00002000U)) { return nullptr; } - _has_bits_[0] &= ~0x00002000u; - auto* p = apn_registration_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (apn_registration_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - apn_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + auto* released = _impl_.apn_registration_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.apn_registration_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_apn_registration_id(std::string* apn_registration_id) { - if (apn_registration_id != nullptr) { - _has_bits_[0] |= 0x00002000u; +inline void GcmDeviceInfo::set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00002000U); } else { - _has_bits_[0] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); } - apn_registration_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), apn_registration_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (apn_registration_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - apn_registration_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.apn_registration_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.apn_registration_id_.IsDefault()) { + _impl_.apn_registration_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.apn_registration_id) } // optional bool notification_enabled = 203 [default = true]; -inline bool GcmDeviceInfo::_internal_has_notification_enabled() const { - bool value = (_has_bits_[1] & 0x00000008u) != 0; +inline bool GcmDeviceInfo::has_notification_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x01000000U); return value; } -inline bool GcmDeviceInfo::has_notification_enabled() const { - return _internal_has_notification_enabled(); -} inline void GcmDeviceInfo::clear_notification_enabled() { - notification_enabled_ = true; - _has_bits_[1] &= ~0x00000008u; -} -inline bool GcmDeviceInfo::_internal_notification_enabled() const { - return notification_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notification_enabled_ = true; + ClearHasBit(_impl_._has_bits_[0], + 0x01000000U); } inline bool GcmDeviceInfo::notification_enabled() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.notification_enabled) return _internal_notification_enabled(); } -inline void GcmDeviceInfo::_internal_set_notification_enabled(bool value) { - _has_bits_[1] |= 0x00000008u; - notification_enabled_ = value; -} inline void GcmDeviceInfo::set_notification_enabled(bool value) { _internal_set_notification_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x01000000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.notification_enabled) } +inline bool GcmDeviceInfo::_internal_notification_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.notification_enabled_; +} +inline void GcmDeviceInfo::_internal_set_notification_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.notification_enabled_ = value; +} // optional string bluetooth_mac_address = 302; -inline bool GcmDeviceInfo::_internal_has_bluetooth_mac_address() const { - bool value = (_has_bits_[0] & 0x00004000u) != 0; +inline bool GcmDeviceInfo::has_bluetooth_mac_address() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); return value; } -inline bool GcmDeviceInfo::has_bluetooth_mac_address() const { - return _internal_has_bluetooth_mac_address(); -} inline void GcmDeviceInfo::clear_bluetooth_mac_address() { - bluetooth_mac_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00004000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } -inline const std::string& GcmDeviceInfo::bluetooth_mac_address() const { +inline const ::std::string& GcmDeviceInfo::bluetooth_mac_address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_mac_address) return _internal_bluetooth_mac_address(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00004000u; - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); + _impl_.bluetooth_mac_address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_mac_address) } -inline std::string* GcmDeviceInfo::mutable_bluetooth_mac_address() { - std::string* _s = _internal_mutable_bluetooth_mac_address(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_bluetooth_mac_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); + ::std::string* _s = _internal_mutable_bluetooth_mac_address(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.bluetooth_mac_address) return _s; } -inline const std::string& GcmDeviceInfo::_internal_bluetooth_mac_address() const { - return bluetooth_mac_address_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_bluetooth_mac_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_mac_address_.Get(); } -inline void GcmDeviceInfo::_internal_set_bluetooth_mac_address(const std::string& value) { - _has_bits_[0] |= 0x00004000u; - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_bluetooth_mac_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_mac_address_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_bluetooth_mac_address() { - _has_bits_[0] |= 0x00004000u; - return bluetooth_mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bluetooth_mac_address_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_bluetooth_mac_address() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_bluetooth_mac_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.bluetooth_mac_address) - if (!_internal_has_bluetooth_mac_address()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00004000U)) { return nullptr; } - _has_bits_[0] &= ~0x00004000u; - auto* p = bluetooth_mac_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bluetooth_mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + auto* released = _impl_.bluetooth_mac_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address) { - if (bluetooth_mac_address != nullptr) { - _has_bits_[0] |= 0x00004000u; +inline void GcmDeviceInfo::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00004000U); } else { - _has_bits_[0] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); } - bluetooth_mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bluetooth_mac_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bluetooth_mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { + _impl_.bluetooth_mac_address_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.bluetooth_mac_address) } // optional bytes device_master_key_hash = 103; -inline bool GcmDeviceInfo::_internal_has_device_master_key_hash() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; +inline bool GcmDeviceInfo::has_device_master_key_hash() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); return value; } -inline bool GcmDeviceInfo::has_device_master_key_hash() const { - return _internal_has_device_master_key_hash(); -} inline void GcmDeviceInfo::clear_device_master_key_hash() { - device_master_key_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00001000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_master_key_hash_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } -inline const std::string& GcmDeviceInfo::device_master_key_hash() const { +inline const ::std::string& GcmDeviceInfo::device_master_key_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_master_key_hash) return _internal_device_master_key_hash(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_master_key_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00001000u; - device_master_key_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_master_key_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + _impl_.device_master_key_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_master_key_hash) } -inline std::string* GcmDeviceInfo::mutable_device_master_key_hash() { - std::string* _s = _internal_mutable_device_master_key_hash(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_master_key_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); + ::std::string* _s = _internal_mutable_device_master_key_hash(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_master_key_hash) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_master_key_hash() const { - return device_master_key_hash_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_master_key_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_master_key_hash_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_master_key_hash(const std::string& value) { - _has_bits_[0] |= 0x00001000u; - device_master_key_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_master_key_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_master_key_hash_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_master_key_hash() { - _has_bits_[0] |= 0x00001000u; - return device_master_key_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_master_key_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_master_key_hash_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_master_key_hash() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_master_key_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_master_key_hash) - if (!_internal_has_device_master_key_hash()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00001000U)) { return nullptr; } - _has_bits_[0] &= ~0x00001000u; - auto* p = device_master_key_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_master_key_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_master_key_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + auto* released = _impl_.device_master_key_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_master_key_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_master_key_hash(std::string* device_master_key_hash) { - if (device_master_key_hash != nullptr) { - _has_bits_[0] |= 0x00001000u; +inline void GcmDeviceInfo::set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00001000U); } else { - _has_bits_[0] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); } - device_master_key_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_master_key_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_master_key_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_master_key_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_master_key_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_master_key_hash_.IsDefault()) { + _impl_.device_master_key_hash_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_master_key_hash) } // required bytes user_public_key = 4; -inline bool GcmDeviceInfo::_internal_has_user_public_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool GcmDeviceInfo::has_user_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool GcmDeviceInfo::has_user_public_key() const { - return _internal_has_user_public_key(); -} inline void GcmDeviceInfo::clear_user_public_key() { - user_public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& GcmDeviceInfo::user_public_key() const { +inline const ::std::string& GcmDeviceInfo::user_public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.user_public_key) return _internal_user_public_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_user_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - user_public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_user_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.user_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.user_public_key) } -inline std::string* GcmDeviceInfo::mutable_user_public_key() { - std::string* _s = _internal_mutable_user_public_key(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_user_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_user_public_key(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.user_public_key) return _s; } -inline const std::string& GcmDeviceInfo::_internal_user_public_key() const { - return user_public_key_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_user_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.user_public_key_.Get(); } -inline void GcmDeviceInfo::_internal_set_user_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - user_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_user_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.user_public_key_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_user_public_key() { - _has_bits_[0] |= 0x00000001u; - return user_public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_user_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.user_public_key_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_user_public_key() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_user_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.user_public_key) - if (!_internal_has_user_public_key()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = user_public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (user_public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - user_public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.user_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.user_public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_user_public_key(std::string* user_public_key) { - if (user_public_key != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void GcmDeviceInfo::set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - user_public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), user_public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (user_public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - user_public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.user_public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_public_key_.IsDefault()) { + _impl_.user_public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.user_public_key) } // optional string device_model = 7; -inline bool GcmDeviceInfo::_internal_has_device_model() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool GcmDeviceInfo::has_device_model() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool GcmDeviceInfo::has_device_model() const { - return _internal_has_device_model(); -} inline void GcmDeviceInfo::clear_device_model() { - device_model_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& GcmDeviceInfo::device_model() const { +inline const ::std::string& GcmDeviceInfo::device_model() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_model) return _internal_device_model(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_model(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_model(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.device_model_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_model) } -inline std::string* GcmDeviceInfo::mutable_device_model() { - std::string* _s = _internal_mutable_device_model(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_model() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_device_model(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_model) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_model() const { - return device_model_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_model() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_model_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_model(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - device_model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_model(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_model_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_model() { - _has_bits_[0] |= 0x00000002u; - return device_model_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_model_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_model() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_model) - if (!_internal_has_device_model()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = device_model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.device_model_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_model_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_model(std::string* device_model) { - if (device_model != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void GcmDeviceInfo::set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - device_model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_model, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_model_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_.IsDefault()) { + _impl_.device_model_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_model) } // optional string locale = 8; -inline bool GcmDeviceInfo::_internal_has_locale() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool GcmDeviceInfo::has_locale() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool GcmDeviceInfo::has_locale() const { - return _internal_has_locale(); -} inline void GcmDeviceInfo::clear_locale() { - locale_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locale_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& GcmDeviceInfo::locale() const { +inline const ::std::string& GcmDeviceInfo::locale() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.locale) return _internal_locale(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_locale(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - locale_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_locale(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.locale_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.locale) } -inline std::string* GcmDeviceInfo::mutable_locale() { - std::string* _s = _internal_mutable_locale(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_locale() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_locale(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.locale) return _s; } -inline const std::string& GcmDeviceInfo::_internal_locale() const { - return locale_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_locale() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locale_.Get(); } -inline void GcmDeviceInfo::_internal_set_locale(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - locale_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_locale(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locale_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_locale() { - _has_bits_[0] |= 0x00000004u; - return locale_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_locale() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.locale_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_locale() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_locale() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.locale) - if (!_internal_has_locale()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = locale_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (locale_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - locale_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.locale_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.locale_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_locale(std::string* locale) { - if (locale != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void GcmDeviceInfo::set_allocated_locale(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - locale_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), locale, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (locale_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - locale_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.locale_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.locale_.IsDefault()) { + _impl_.locale_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.locale) } // optional bytes key_handle = 9; -inline bool GcmDeviceInfo::_internal_has_key_handle() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool GcmDeviceInfo::has_key_handle() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool GcmDeviceInfo::has_key_handle() const { - return _internal_has_key_handle(); -} inline void GcmDeviceInfo::clear_key_handle() { - key_handle_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_handle_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& GcmDeviceInfo::key_handle() const { +inline const ::std::string& GcmDeviceInfo::key_handle() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.key_handle) return _internal_key_handle(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_key_handle(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - key_handle_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_key_handle(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_.key_handle_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.key_handle) } -inline std::string* GcmDeviceInfo::mutable_key_handle() { - std::string* _s = _internal_mutable_key_handle(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_key_handle() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_key_handle(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.key_handle) return _s; } -inline const std::string& GcmDeviceInfo::_internal_key_handle() const { - return key_handle_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_key_handle() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.key_handle_.Get(); } -inline void GcmDeviceInfo::_internal_set_key_handle(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - key_handle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_key_handle(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.key_handle_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_key_handle() { - _has_bits_[0] |= 0x00000008u; - return key_handle_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_key_handle() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.key_handle_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_key_handle() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_key_handle() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.key_handle) - if (!_internal_has_key_handle()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = key_handle_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (key_handle_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - key_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.key_handle_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.key_handle_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_key_handle(std::string* key_handle) { - if (key_handle != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void GcmDeviceInfo::set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - key_handle_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_handle, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (key_handle_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - key_handle_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.key_handle_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_handle_.IsDefault()) { + _impl_.key_handle_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.key_handle) } // optional int64 counter = 12 [default = 0]; -inline bool GcmDeviceInfo::_internal_has_counter() const { - bool value = (_has_bits_[0] & 0x00040000u) != 0; +inline bool GcmDeviceInfo::has_counter() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00010000U); return value; } -inline bool GcmDeviceInfo::has_counter() const { - return _internal_has_counter(); -} inline void GcmDeviceInfo::clear_counter() { - counter_ = int64_t{0}; - _has_bits_[0] &= ~0x00040000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.counter_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } -inline int64_t GcmDeviceInfo::_internal_counter() const { - return counter_; -} -inline int64_t GcmDeviceInfo::counter() const { +inline ::int64_t GcmDeviceInfo::counter() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.counter) return _internal_counter(); } -inline void GcmDeviceInfo::_internal_set_counter(int64_t value) { - _has_bits_[0] |= 0x00040000u; - counter_ = value; -} -inline void GcmDeviceInfo::set_counter(int64_t value) { +inline void GcmDeviceInfo::set_counter(::int64_t value) { _internal_set_counter(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.counter) } +inline ::int64_t GcmDeviceInfo::_internal_counter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.counter_; +} +inline void GcmDeviceInfo::_internal_set_counter(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.counter_ = value; +} // optional string device_os_version = 13; -inline bool GcmDeviceInfo::_internal_has_device_os_version() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool GcmDeviceInfo::has_device_os_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool GcmDeviceInfo::has_device_os_version() const { - return _internal_has_device_os_version(); -} inline void GcmDeviceInfo::clear_device_os_version() { - device_os_version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline const std::string& GcmDeviceInfo::device_os_version() const { +inline const ::std::string& GcmDeviceInfo::device_os_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version) return _internal_device_os_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_os_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000010u; - device_os_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_.device_os_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version) } -inline std::string* GcmDeviceInfo::mutable_device_os_version() { - std::string* _s = _internal_mutable_device_os_version(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); + ::std::string* _s = _internal_mutable_device_os_version(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_version) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_os_version() const { - return device_os_version_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_os_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_version_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_os_version(const std::string& value) { - _has_bits_[0] |= 0x00000010u; - device_os_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_os_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_os_version() { - _has_bits_[0] |= 0x00000010u; - return device_os_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_version_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_os_version() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_version) - if (!_internal_has_device_os_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _has_bits_[0] &= ~0x00000010u; - auto* p = device_os_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + auto* released = _impl_.device_os_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_os_version(std::string* device_os_version) { - if (device_os_version != nullptr) { - _has_bits_[0] |= 0x00000010u; +inline void GcmDeviceInfo::set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - device_os_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_os_version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_os_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_version_.IsDefault()) { + _impl_.device_os_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_version) } // optional int64 device_os_version_code = 14; -inline bool GcmDeviceInfo::_internal_has_device_os_version_code() const { - bool value = (_has_bits_[0] & 0x00080000u) != 0; +inline bool GcmDeviceInfo::has_device_os_version_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00020000U); return value; } -inline bool GcmDeviceInfo::has_device_os_version_code() const { - return _internal_has_device_os_version_code(); -} inline void GcmDeviceInfo::clear_device_os_version_code() { - device_os_version_code_ = int64_t{0}; - _has_bits_[0] &= ~0x00080000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_code_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00020000U); } -inline int64_t GcmDeviceInfo::_internal_device_os_version_code() const { - return device_os_version_code_; -} -inline int64_t GcmDeviceInfo::device_os_version_code() const { +inline ::int64_t GcmDeviceInfo::device_os_version_code() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version_code) return _internal_device_os_version_code(); } -inline void GcmDeviceInfo::_internal_set_device_os_version_code(int64_t value) { - _has_bits_[0] |= 0x00080000u; - device_os_version_code_ = value; -} -inline void GcmDeviceInfo::set_device_os_version_code(int64_t value) { +inline void GcmDeviceInfo::set_device_os_version_code(::int64_t value) { _internal_set_device_os_version_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00020000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version_code) } +inline ::int64_t GcmDeviceInfo::_internal_device_os_version_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_version_code_; +} +inline void GcmDeviceInfo::_internal_set_device_os_version_code(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_version_code_ = value; +} // optional string device_os_release = 15; -inline bool GcmDeviceInfo::_internal_has_device_os_release() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool GcmDeviceInfo::has_device_os_release() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool GcmDeviceInfo::has_device_os_release() const { - return _internal_has_device_os_release(); -} inline void GcmDeviceInfo::clear_device_os_release() { - device_os_release_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_release_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline const std::string& GcmDeviceInfo::device_os_release() const { +inline const ::std::string& GcmDeviceInfo::device_os_release() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_release) return _internal_device_os_release(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_os_release(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000020u; - device_os_release_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_release(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_.device_os_release_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_release) } -inline std::string* GcmDeviceInfo::mutable_device_os_release() { - std::string* _s = _internal_mutable_device_os_release(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_release() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); + ::std::string* _s = _internal_mutable_device_os_release(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_release) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_os_release() const { - return device_os_release_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_os_release() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_release_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_os_release(const std::string& value) { - _has_bits_[0] |= 0x00000020u; - device_os_release_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_os_release(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_release_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_os_release() { - _has_bits_[0] |= 0x00000020u; - return device_os_release_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_release() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_release_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_os_release() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_release() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_release) - if (!_internal_has_device_os_release()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _has_bits_[0] &= ~0x00000020u; - auto* p = device_os_release_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_release_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_release_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + auto* released = _impl_.device_os_release_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_release_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_os_release(std::string* device_os_release) { - if (device_os_release != nullptr) { - _has_bits_[0] |= 0x00000020u; +inline void GcmDeviceInfo::set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } - device_os_release_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_os_release, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_release_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_release_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_os_release_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_release_.IsDefault()) { + _impl_.device_os_release_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_release) } // optional string device_os_codename = 16; -inline bool GcmDeviceInfo::_internal_has_device_os_codename() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool GcmDeviceInfo::has_device_os_codename() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } -inline bool GcmDeviceInfo::has_device_os_codename() const { - return _internal_has_device_os_codename(); -} inline void GcmDeviceInfo::clear_device_os_codename() { - device_os_codename_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000040u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_codename_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } -inline const std::string& GcmDeviceInfo::device_os_codename() const { +inline const ::std::string& GcmDeviceInfo::device_os_codename() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_codename) return _internal_device_os_codename(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_os_codename(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000040u; - device_os_codename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_codename(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_.device_os_codename_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_codename) } -inline std::string* GcmDeviceInfo::mutable_device_os_codename() { - std::string* _s = _internal_mutable_device_os_codename(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_codename() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); + ::std::string* _s = _internal_mutable_device_os_codename(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_codename) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_os_codename() const { - return device_os_codename_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_os_codename() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_os_codename_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_os_codename(const std::string& value) { - _has_bits_[0] |= 0x00000040u; - device_os_codename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_os_codename(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_os_codename_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_os_codename() { - _has_bits_[0] |= 0x00000040u; - return device_os_codename_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_codename() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_os_codename_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_os_codename() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_codename() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_codename) - if (!_internal_has_device_os_codename()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { return nullptr; } - _has_bits_[0] &= ~0x00000040u; - auto* p = device_os_codename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_codename_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_codename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + auto* released = _impl_.device_os_codename_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_os_codename_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_os_codename(std::string* device_os_codename) { - if (device_os_codename != nullptr) { - _has_bits_[0] |= 0x00000040u; +inline void GcmDeviceInfo::set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } - device_os_codename_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_os_codename, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_os_codename_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_os_codename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_os_codename_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_codename_.IsDefault()) { + _impl_.device_os_codename_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_codename) } // optional string device_software_version = 17; -inline bool GcmDeviceInfo::_internal_has_device_software_version() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; +inline bool GcmDeviceInfo::has_device_software_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } -inline bool GcmDeviceInfo::has_device_software_version() const { - return _internal_has_device_software_version(); -} inline void GcmDeviceInfo::clear_device_software_version() { - device_software_version_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000080u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } -inline const std::string& GcmDeviceInfo::device_software_version() const { +inline const ::std::string& GcmDeviceInfo::device_software_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version) return _internal_device_software_version(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_software_version(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000080u; - device_software_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_.device_software_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version) } -inline std::string* GcmDeviceInfo::mutable_device_software_version() { - std::string* _s = _internal_mutable_device_software_version(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); + ::std::string* _s = _internal_mutable_device_software_version(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_version) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_software_version() const { - return device_software_version_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_software_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_version_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_software_version(const std::string& value) { - _has_bits_[0] |= 0x00000080u; - device_software_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_software_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_software_version() { - _has_bits_[0] |= 0x00000080u; - return device_software_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_software_version_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_software_version() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_version) - if (!_internal_has_device_software_version()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { return nullptr; } - _has_bits_[0] &= ~0x00000080u; - auto* p = device_software_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_software_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_software_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + auto* released = _impl_.device_software_version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_software_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_software_version(std::string* device_software_version) { - if (device_software_version != nullptr) { - _has_bits_[0] |= 0x00000080u; +inline void GcmDeviceInfo::set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } - device_software_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_software_version, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_software_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_software_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_software_version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_version_.IsDefault()) { + _impl_.device_software_version_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_version) } // optional int64 device_software_version_code = 18; -inline bool GcmDeviceInfo::_internal_has_device_software_version_code() const { - bool value = (_has_bits_[0] & 0x00100000u) != 0; +inline bool GcmDeviceInfo::has_device_software_version_code() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00040000U); return value; } -inline bool GcmDeviceInfo::has_device_software_version_code() const { - return _internal_has_device_software_version_code(); -} inline void GcmDeviceInfo::clear_device_software_version_code() { - device_software_version_code_ = int64_t{0}; - _has_bits_[0] &= ~0x00100000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_code_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00040000U); } -inline int64_t GcmDeviceInfo::_internal_device_software_version_code() const { - return device_software_version_code_; -} -inline int64_t GcmDeviceInfo::device_software_version_code() const { +inline ::int64_t GcmDeviceInfo::device_software_version_code() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version_code) return _internal_device_software_version_code(); } -inline void GcmDeviceInfo::_internal_set_device_software_version_code(int64_t value) { - _has_bits_[0] |= 0x00100000u; - device_software_version_code_ = value; -} -inline void GcmDeviceInfo::set_device_software_version_code(int64_t value) { +inline void GcmDeviceInfo::set_device_software_version_code(::int64_t value) { _internal_set_device_software_version_code(value); + SetHasBit(_impl_._has_bits_[0], 0x00040000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version_code) } +inline ::int64_t GcmDeviceInfo::_internal_device_software_version_code() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_version_code_; +} +inline void GcmDeviceInfo::_internal_set_device_software_version_code(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_version_code_ = value; +} // optional string device_software_package = 19; -inline bool GcmDeviceInfo::_internal_has_device_software_package() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; +inline bool GcmDeviceInfo::has_device_software_package() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } -inline bool GcmDeviceInfo::has_device_software_package() const { - return _internal_has_device_software_package(); -} inline void GcmDeviceInfo::clear_device_software_package() { - device_software_package_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000100u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_package_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } -inline const std::string& GcmDeviceInfo::device_software_package() const { +inline const ::std::string& GcmDeviceInfo::device_software_package() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_package) return _internal_device_software_package(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_software_package(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000100u; - device_software_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_package(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_.device_software_package_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_package) } -inline std::string* GcmDeviceInfo::mutable_device_software_package() { - std::string* _s = _internal_mutable_device_software_package(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_package() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); + ::std::string* _s = _internal_mutable_device_software_package(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_package) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_software_package() const { - return device_software_package_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_software_package() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_software_package_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_software_package(const std::string& value) { - _has_bits_[0] |= 0x00000100u; - device_software_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_software_package(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_software_package_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_software_package() { - _has_bits_[0] |= 0x00000100u; - return device_software_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_software_package_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_software_package() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_package) - if (!_internal_has_device_software_package()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { return nullptr; } - _has_bits_[0] &= ~0x00000100u; - auto* p = device_software_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_software_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_software_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + auto* released = _impl_.device_software_package_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_software_package_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_software_package(std::string* device_software_package) { - if (device_software_package != nullptr) { - _has_bits_[0] |= 0x00000100u; +inline void GcmDeviceInfo::set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } - device_software_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_software_package, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_software_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_software_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_software_package_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_package_.IsDefault()) { + _impl_.device_software_package_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_package) } // optional int32 device_display_diagonal_mils = 22; -inline bool GcmDeviceInfo::_internal_has_device_display_diagonal_mils() const { - bool value = (_has_bits_[0] & 0x00200000u) != 0; +inline bool GcmDeviceInfo::has_device_display_diagonal_mils() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00080000U); return value; } -inline bool GcmDeviceInfo::has_device_display_diagonal_mils() const { - return _internal_has_device_display_diagonal_mils(); -} inline void GcmDeviceInfo::clear_device_display_diagonal_mils() { - device_display_diagonal_mils_ = 0; - _has_bits_[0] &= ~0x00200000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_display_diagonal_mils_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00080000U); } -inline int32_t GcmDeviceInfo::_internal_device_display_diagonal_mils() const { - return device_display_diagonal_mils_; -} -inline int32_t GcmDeviceInfo::device_display_diagonal_mils() const { +inline ::int32_t GcmDeviceInfo::device_display_diagonal_mils() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_display_diagonal_mils) return _internal_device_display_diagonal_mils(); } -inline void GcmDeviceInfo::_internal_set_device_display_diagonal_mils(int32_t value) { - _has_bits_[0] |= 0x00200000u; - device_display_diagonal_mils_ = value; -} -inline void GcmDeviceInfo::set_device_display_diagonal_mils(int32_t value) { +inline void GcmDeviceInfo::set_device_display_diagonal_mils(::int32_t value) { _internal_set_device_display_diagonal_mils(value); + SetHasBit(_impl_._has_bits_[0], 0x00080000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_display_diagonal_mils) } +inline ::int32_t GcmDeviceInfo::_internal_device_display_diagonal_mils() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_display_diagonal_mils_; +} +inline void GcmDeviceInfo::_internal_set_device_display_diagonal_mils(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_display_diagonal_mils_ = value; +} // optional int32 device_authzen_version = 24; -inline bool GcmDeviceInfo::_internal_has_device_authzen_version() const { - bool value = (_has_bits_[0] & 0x00400000u) != 0; +inline bool GcmDeviceInfo::has_device_authzen_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00100000U); return value; } -inline bool GcmDeviceInfo::has_device_authzen_version() const { - return _internal_has_device_authzen_version(); -} inline void GcmDeviceInfo::clear_device_authzen_version() { - device_authzen_version_ = 0; - _has_bits_[0] &= ~0x00400000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_authzen_version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00100000U); } -inline int32_t GcmDeviceInfo::_internal_device_authzen_version() const { - return device_authzen_version_; -} -inline int32_t GcmDeviceInfo::device_authzen_version() const { +inline ::int32_t GcmDeviceInfo::device_authzen_version() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_authzen_version) return _internal_device_authzen_version(); } -inline void GcmDeviceInfo::_internal_set_device_authzen_version(int32_t value) { - _has_bits_[0] |= 0x00400000u; - device_authzen_version_ = value; -} -inline void GcmDeviceInfo::set_device_authzen_version(int32_t value) { +inline void GcmDeviceInfo::set_device_authzen_version(::int32_t value) { _internal_set_device_authzen_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00100000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_authzen_version) } +inline ::int32_t GcmDeviceInfo::_internal_device_authzen_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_authzen_version_; +} +inline void GcmDeviceInfo::_internal_set_device_authzen_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_authzen_version_ = value; +} // optional bytes long_device_id = 29; -inline bool GcmDeviceInfo::_internal_has_long_device_id() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; +inline bool GcmDeviceInfo::has_long_device_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); return value; } -inline bool GcmDeviceInfo::has_long_device_id() const { - return _internal_has_long_device_id(); -} inline void GcmDeviceInfo::clear_long_device_id() { - long_device_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000200u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.long_device_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } -inline const std::string& GcmDeviceInfo::long_device_id() const { +inline const ::std::string& GcmDeviceInfo::long_device_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.long_device_id) return _internal_long_device_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_long_device_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000200u; - long_device_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_long_device_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_.long_device_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.long_device_id) } -inline std::string* GcmDeviceInfo::mutable_long_device_id() { - std::string* _s = _internal_mutable_long_device_id(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_long_device_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); + ::std::string* _s = _internal_mutable_long_device_id(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.long_device_id) return _s; } -inline const std::string& GcmDeviceInfo::_internal_long_device_id() const { - return long_device_id_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_long_device_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.long_device_id_.Get(); } -inline void GcmDeviceInfo::_internal_set_long_device_id(const std::string& value) { - _has_bits_[0] |= 0x00000200u; - long_device_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_long_device_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.long_device_id_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_long_device_id() { - _has_bits_[0] |= 0x00000200u; - return long_device_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_long_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.long_device_id_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_long_device_id() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_long_device_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.long_device_id) - if (!_internal_has_long_device_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { return nullptr; } - _has_bits_[0] &= ~0x00000200u; - auto* p = long_device_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (long_device_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - long_device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + auto* released = _impl_.long_device_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.long_device_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_long_device_id(std::string* long_device_id) { - if (long_device_id != nullptr) { - _has_bits_[0] |= 0x00000200u; +inline void GcmDeviceInfo::set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } - long_device_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), long_device_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (long_device_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - long_device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.long_device_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.long_device_id_.IsDefault()) { + _impl_.long_device_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.long_device_id) } // optional string device_manufacturer = 31; -inline bool GcmDeviceInfo::_internal_has_device_manufacturer() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; +inline bool GcmDeviceInfo::has_device_manufacturer() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); return value; } -inline bool GcmDeviceInfo::has_device_manufacturer() const { - return _internal_has_device_manufacturer(); -} inline void GcmDeviceInfo::clear_device_manufacturer() { - device_manufacturer_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000400u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } -inline const std::string& GcmDeviceInfo::device_manufacturer() const { +inline const ::std::string& GcmDeviceInfo::device_manufacturer() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_manufacturer) return _internal_device_manufacturer(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_device_manufacturer(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000400u; - device_manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_manufacturer(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_.device_manufacturer_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_manufacturer) } -inline std::string* GcmDeviceInfo::mutable_device_manufacturer() { - std::string* _s = _internal_mutable_device_manufacturer(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_manufacturer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); + ::std::string* _s = _internal_mutable_device_manufacturer(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_manufacturer) return _s; } -inline const std::string& GcmDeviceInfo::_internal_device_manufacturer() const { - return device_manufacturer_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_device_manufacturer() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.device_manufacturer_.Get(); } -inline void GcmDeviceInfo::_internal_set_device_manufacturer(const std::string& value) { - _has_bits_[0] |= 0x00000400u; - device_manufacturer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_device_manufacturer(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_manufacturer_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_device_manufacturer() { - _has_bits_[0] |= 0x00000400u; - return device_manufacturer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.device_manufacturer_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_device_manufacturer() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_manufacturer() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_manufacturer) - if (!_internal_has_device_manufacturer()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000800U)) { return nullptr; } - _has_bits_[0] &= ~0x00000400u; - auto* p = device_manufacturer_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_manufacturer_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + auto* released = _impl_.device_manufacturer_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.device_manufacturer_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_device_manufacturer(std::string* device_manufacturer) { - if (device_manufacturer != nullptr) { - _has_bits_[0] |= 0x00000400u; +inline void GcmDeviceInfo::set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } - device_manufacturer_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_manufacturer, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_manufacturer_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_manufacturer_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.device_manufacturer_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_manufacturer_.IsDefault()) { + _impl_.device_manufacturer_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_manufacturer) } // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; -inline bool GcmDeviceInfo::_internal_has_device_type() const { - bool value = (_has_bits_[1] & 0x00000004u) != 0; +inline bool GcmDeviceInfo::has_device_type() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000020U); return value; } -inline bool GcmDeviceInfo::has_device_type() const { - return _internal_has_device_type(); -} inline void GcmDeviceInfo::clear_device_type() { - device_type_ = 1; - _has_bits_[1] &= ~0x00000004u; -} -inline ::securegcm::DeviceType GcmDeviceInfo::_internal_device_type() const { - return static_cast< ::securegcm::DeviceType >(device_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.device_type_ = 1; + ClearHasBit(_impl_._has_bits_[1], + 0x00000020U); } inline ::securegcm::DeviceType GcmDeviceInfo::device_type() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_type) return _internal_device_type(); } -inline void GcmDeviceInfo::_internal_set_device_type(::securegcm::DeviceType value) { - assert(::securegcm::DeviceType_IsValid(value)); - _has_bits_[1] |= 0x00000004u; - device_type_ = value; -} inline void GcmDeviceInfo::set_device_type(::securegcm::DeviceType value) { _internal_set_device_type(value); + SetHasBit(_impl_._has_bits_[1], 0x00000020U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_type) } +inline ::securegcm::DeviceType GcmDeviceInfo::_internal_device_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::DeviceType>(_impl_.device_type_); +} +inline void GcmDeviceInfo::_internal_set_device_type(::securegcm::DeviceType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::DeviceType_internal_data_)); + _impl_.device_type_ = value; +} // optional bool using_secure_screenlock = 400 [default = false]; -inline bool GcmDeviceInfo::_internal_has_using_secure_screenlock() const { - bool value = (_has_bits_[0] & 0x04000000u) != 0; +inline bool GcmDeviceInfo::has_using_secure_screenlock() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x20000000U); return value; } -inline bool GcmDeviceInfo::has_using_secure_screenlock() const { - return _internal_has_using_secure_screenlock(); -} inline void GcmDeviceInfo::clear_using_secure_screenlock() { - using_secure_screenlock_ = false; - _has_bits_[0] &= ~0x04000000u; -} -inline bool GcmDeviceInfo::_internal_using_secure_screenlock() const { - return using_secure_screenlock_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.using_secure_screenlock_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x20000000U); } inline bool GcmDeviceInfo::using_secure_screenlock() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.using_secure_screenlock) return _internal_using_secure_screenlock(); } -inline void GcmDeviceInfo::_internal_set_using_secure_screenlock(bool value) { - _has_bits_[0] |= 0x04000000u; - using_secure_screenlock_ = value; -} inline void GcmDeviceInfo::set_using_secure_screenlock(bool value) { _internal_set_using_secure_screenlock(value); + SetHasBit(_impl_._has_bits_[0], 0x20000000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.using_secure_screenlock) } +inline bool GcmDeviceInfo::_internal_using_secure_screenlock() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.using_secure_screenlock_; +} +inline void GcmDeviceInfo::_internal_set_using_secure_screenlock(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.using_secure_screenlock_ = value; +} // optional bool auto_unlock_screenlock_supported = 401 [default = false]; -inline bool GcmDeviceInfo::_internal_has_auto_unlock_screenlock_supported() const { - bool value = (_has_bits_[0] & 0x08000000u) != 0; +inline bool GcmDeviceInfo::has_auto_unlock_screenlock_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x40000000U); return value; } -inline bool GcmDeviceInfo::has_auto_unlock_screenlock_supported() const { - return _internal_has_auto_unlock_screenlock_supported(); -} inline void GcmDeviceInfo::clear_auto_unlock_screenlock_supported() { - auto_unlock_screenlock_supported_ = false; - _has_bits_[0] &= ~0x08000000u; -} -inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_supported() const { - return auto_unlock_screenlock_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_supported_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x40000000U); } inline bool GcmDeviceInfo::auto_unlock_screenlock_supported() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) return _internal_auto_unlock_screenlock_supported(); } -inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_supported(bool value) { - _has_bits_[0] |= 0x08000000u; - auto_unlock_screenlock_supported_ = value; -} inline void GcmDeviceInfo::set_auto_unlock_screenlock_supported(bool value) { _internal_set_auto_unlock_screenlock_supported(value); + SetHasBit(_impl_._has_bits_[0], 0x40000000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) } +inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.auto_unlock_screenlock_supported_; +} +inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_supported_ = value; +} // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; -inline bool GcmDeviceInfo::_internal_has_auto_unlock_screenlock_enabled() const { - bool value = (_has_bits_[0] & 0x10000000u) != 0; +inline bool GcmDeviceInfo::has_auto_unlock_screenlock_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x80000000U); return value; } -inline bool GcmDeviceInfo::has_auto_unlock_screenlock_enabled() const { - return _internal_has_auto_unlock_screenlock_enabled(); -} inline void GcmDeviceInfo::clear_auto_unlock_screenlock_enabled() { - auto_unlock_screenlock_enabled_ = false; - _has_bits_[0] &= ~0x10000000u; -} -inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_enabled() const { - return auto_unlock_screenlock_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x80000000U); } inline bool GcmDeviceInfo::auto_unlock_screenlock_enabled() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) return _internal_auto_unlock_screenlock_enabled(); } -inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_enabled(bool value) { - _has_bits_[0] |= 0x10000000u; - auto_unlock_screenlock_enabled_ = value; -} inline void GcmDeviceInfo::set_auto_unlock_screenlock_enabled(bool value) { _internal_set_auto_unlock_screenlock_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x80000000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) } +inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.auto_unlock_screenlock_enabled_; +} +inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.auto_unlock_screenlock_enabled_ = value; +} // optional bool bluetooth_radio_supported = 403 [default = false]; -inline bool GcmDeviceInfo::_internal_has_bluetooth_radio_supported() const { - bool value = (_has_bits_[0] & 0x20000000u) != 0; +inline bool GcmDeviceInfo::has_bluetooth_radio_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000001U); return value; } -inline bool GcmDeviceInfo::has_bluetooth_radio_supported() const { - return _internal_has_bluetooth_radio_supported(); -} inline void GcmDeviceInfo::clear_bluetooth_radio_supported() { - bluetooth_radio_supported_ = false; - _has_bits_[0] &= ~0x20000000u; -} -inline bool GcmDeviceInfo::_internal_bluetooth_radio_supported() const { - return bluetooth_radio_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000001U); } inline bool GcmDeviceInfo::bluetooth_radio_supported() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_supported) return _internal_bluetooth_radio_supported(); } -inline void GcmDeviceInfo::_internal_set_bluetooth_radio_supported(bool value) { - _has_bits_[0] |= 0x20000000u; - bluetooth_radio_supported_ = value; -} inline void GcmDeviceInfo::set_bluetooth_radio_supported(bool value) { _internal_set_bluetooth_radio_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000001U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_supported) } +inline bool GcmDeviceInfo::_internal_bluetooth_radio_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_radio_supported_; +} +inline void GcmDeviceInfo::_internal_set_bluetooth_radio_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_supported_ = value; +} // optional bool bluetooth_radio_enabled = 404 [default = false]; -inline bool GcmDeviceInfo::_internal_has_bluetooth_radio_enabled() const { - bool value = (_has_bits_[0] & 0x40000000u) != 0; +inline bool GcmDeviceInfo::has_bluetooth_radio_enabled() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00200000U); return value; } -inline bool GcmDeviceInfo::has_bluetooth_radio_enabled() const { - return _internal_has_bluetooth_radio_enabled(); -} inline void GcmDeviceInfo::clear_bluetooth_radio_enabled() { - bluetooth_radio_enabled_ = false; - _has_bits_[0] &= ~0x40000000u; -} -inline bool GcmDeviceInfo::_internal_bluetooth_radio_enabled() const { - return bluetooth_radio_enabled_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00200000U); } inline bool GcmDeviceInfo::bluetooth_radio_enabled() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) return _internal_bluetooth_radio_enabled(); } -inline void GcmDeviceInfo::_internal_set_bluetooth_radio_enabled(bool value) { - _has_bits_[0] |= 0x40000000u; - bluetooth_radio_enabled_ = value; -} inline void GcmDeviceInfo::set_bluetooth_radio_enabled(bool value) { _internal_set_bluetooth_radio_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00200000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) } +inline bool GcmDeviceInfo::_internal_bluetooth_radio_enabled() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluetooth_radio_enabled_; +} +inline void GcmDeviceInfo::_internal_set_bluetooth_radio_enabled(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluetooth_radio_enabled_ = value; +} // optional bool mobile_data_supported = 405 [default = false]; -inline bool GcmDeviceInfo::_internal_has_mobile_data_supported() const { - bool value = (_has_bits_[0] & 0x80000000u) != 0; +inline bool GcmDeviceInfo::has_mobile_data_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00400000U); return value; } -inline bool GcmDeviceInfo::has_mobile_data_supported() const { - return _internal_has_mobile_data_supported(); -} inline void GcmDeviceInfo::clear_mobile_data_supported() { - mobile_data_supported_ = false; - _has_bits_[0] &= ~0x80000000u; -} -inline bool GcmDeviceInfo::_internal_mobile_data_supported() const { - return mobile_data_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_data_supported_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00400000U); } inline bool GcmDeviceInfo::mobile_data_supported() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.mobile_data_supported) return _internal_mobile_data_supported(); } -inline void GcmDeviceInfo::_internal_set_mobile_data_supported(bool value) { - _has_bits_[0] |= 0x80000000u; - mobile_data_supported_ = value; -} inline void GcmDeviceInfo::set_mobile_data_supported(bool value) { _internal_set_mobile_data_supported(value); + SetHasBit(_impl_._has_bits_[0], 0x00400000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.mobile_data_supported) } +inline bool GcmDeviceInfo::_internal_mobile_data_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mobile_data_supported_; +} +inline void GcmDeviceInfo::_internal_set_mobile_data_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mobile_data_supported_ = value; +} // optional bool tethering_supported = 406 [default = false]; -inline bool GcmDeviceInfo::_internal_has_tethering_supported() const { - bool value = (_has_bits_[1] & 0x00000001u) != 0; +inline bool GcmDeviceInfo::has_tethering_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000002U); return value; } -inline bool GcmDeviceInfo::has_tethering_supported() const { - return _internal_has_tethering_supported(); -} inline void GcmDeviceInfo::clear_tethering_supported() { - tethering_supported_ = false; - _has_bits_[1] &= ~0x00000001u; -} -inline bool GcmDeviceInfo::_internal_tethering_supported() const { - return tethering_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tethering_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000002U); } inline bool GcmDeviceInfo::tethering_supported() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.tethering_supported) return _internal_tethering_supported(); } -inline void GcmDeviceInfo::_internal_set_tethering_supported(bool value) { - _has_bits_[1] |= 0x00000001u; - tethering_supported_ = value; -} inline void GcmDeviceInfo::set_tethering_supported(bool value) { _internal_set_tethering_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.tethering_supported) } +inline bool GcmDeviceInfo::_internal_tethering_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.tethering_supported_; +} +inline void GcmDeviceInfo::_internal_set_tethering_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tethering_supported_ = value; +} // optional bool ble_radio_supported = 407 [default = false]; -inline bool GcmDeviceInfo::_internal_has_ble_radio_supported() const { - bool value = (_has_bits_[1] & 0x00000002u) != 0; +inline bool GcmDeviceInfo::has_ble_radio_supported() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000004U); return value; } -inline bool GcmDeviceInfo::has_ble_radio_supported() const { - return _internal_has_ble_radio_supported(); -} inline void GcmDeviceInfo::clear_ble_radio_supported() { - ble_radio_supported_ = false; - _has_bits_[1] &= ~0x00000002u; -} -inline bool GcmDeviceInfo::_internal_ble_radio_supported() const { - return ble_radio_supported_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ble_radio_supported_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000004U); } inline bool GcmDeviceInfo::ble_radio_supported() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.ble_radio_supported) return _internal_ble_radio_supported(); } -inline void GcmDeviceInfo::_internal_set_ble_radio_supported(bool value) { - _has_bits_[1] |= 0x00000002u; - ble_radio_supported_ = value; -} inline void GcmDeviceInfo::set_ble_radio_supported(bool value) { _internal_set_ble_radio_supported(value); + SetHasBit(_impl_._has_bits_[1], 0x00000004U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.ble_radio_supported) } +inline bool GcmDeviceInfo::_internal_ble_radio_supported() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ble_radio_supported_; +} +inline void GcmDeviceInfo::_internal_set_ble_radio_supported(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ble_radio_supported_ = value; +} // optional bool pixel_experience = 408 [default = false]; -inline bool GcmDeviceInfo::_internal_has_pixel_experience() const { - bool value = (_has_bits_[0] & 0x00800000u) != 0; +inline bool GcmDeviceInfo::has_pixel_experience() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000008U); return value; } -inline bool GcmDeviceInfo::has_pixel_experience() const { - return _internal_has_pixel_experience(); -} inline void GcmDeviceInfo::clear_pixel_experience() { - pixel_experience_ = false; - _has_bits_[0] &= ~0x00800000u; -} -inline bool GcmDeviceInfo::_internal_pixel_experience() const { - return pixel_experience_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pixel_experience_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000008U); } inline bool GcmDeviceInfo::pixel_experience() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.pixel_experience) return _internal_pixel_experience(); } -inline void GcmDeviceInfo::_internal_set_pixel_experience(bool value) { - _has_bits_[0] |= 0x00800000u; - pixel_experience_ = value; -} inline void GcmDeviceInfo::set_pixel_experience(bool value) { _internal_set_pixel_experience(value); + SetHasBit(_impl_._has_bits_[1], 0x00000008U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.pixel_experience) } +inline bool GcmDeviceInfo::_internal_pixel_experience() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pixel_experience_; +} +inline void GcmDeviceInfo::_internal_set_pixel_experience(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pixel_experience_ = value; +} // optional bool arc_plus_plus = 409 [default = false]; -inline bool GcmDeviceInfo::_internal_has_arc_plus_plus() const { - bool value = (_has_bits_[0] & 0x01000000u) != 0; +inline bool GcmDeviceInfo::has_arc_plus_plus() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00800000U); return value; } -inline bool GcmDeviceInfo::has_arc_plus_plus() const { - return _internal_has_arc_plus_plus(); -} inline void GcmDeviceInfo::clear_arc_plus_plus() { - arc_plus_plus_ = false; - _has_bits_[0] &= ~0x01000000u; -} -inline bool GcmDeviceInfo::_internal_arc_plus_plus() const { - return arc_plus_plus_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arc_plus_plus_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00800000U); } inline bool GcmDeviceInfo::arc_plus_plus() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.arc_plus_plus) return _internal_arc_plus_plus(); } -inline void GcmDeviceInfo::_internal_set_arc_plus_plus(bool value) { - _has_bits_[0] |= 0x01000000u; - arc_plus_plus_ = value; -} inline void GcmDeviceInfo::set_arc_plus_plus(bool value) { _internal_set_arc_plus_plus(value); + SetHasBit(_impl_._has_bits_[0], 0x00800000U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.arc_plus_plus) } +inline bool GcmDeviceInfo::_internal_arc_plus_plus() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.arc_plus_plus_; +} +inline void GcmDeviceInfo::_internal_set_arc_plus_plus(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.arc_plus_plus_ = value; +} // optional bool is_screenlock_state_flaky = 410 [default = false]; -inline bool GcmDeviceInfo::_internal_has_is_screenlock_state_flaky() const { - bool value = (_has_bits_[0] & 0x02000000u) != 0; +inline bool GcmDeviceInfo::has_is_screenlock_state_flaky() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000010U); return value; } -inline bool GcmDeviceInfo::has_is_screenlock_state_flaky() const { - return _internal_has_is_screenlock_state_flaky(); -} inline void GcmDeviceInfo::clear_is_screenlock_state_flaky() { - is_screenlock_state_flaky_ = false; - _has_bits_[0] &= ~0x02000000u; -} -inline bool GcmDeviceInfo::_internal_is_screenlock_state_flaky() const { - return is_screenlock_state_flaky_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_screenlock_state_flaky_ = false; + ClearHasBit(_impl_._has_bits_[1], + 0x00000010U); } inline bool GcmDeviceInfo::is_screenlock_state_flaky() const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) return _internal_is_screenlock_state_flaky(); } -inline void GcmDeviceInfo::_internal_set_is_screenlock_state_flaky(bool value) { - _has_bits_[0] |= 0x02000000u; - is_screenlock_state_flaky_ = value; -} inline void GcmDeviceInfo::set_is_screenlock_state_flaky(bool value) { _internal_set_is_screenlock_state_flaky(value); + SetHasBit(_impl_._has_bits_[1], 0x00000010U); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) } +inline bool GcmDeviceInfo::_internal_is_screenlock_state_flaky() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_screenlock_state_flaky_; +} +inline void GcmDeviceInfo::_internal_set_is_screenlock_state_flaky(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_screenlock_state_flaky_ = value; +} // repeated .securegcm.SoftwareFeature supported_software_features = 411; inline int GcmDeviceInfo::_internal_supported_software_features_size() const { - return supported_software_features_.size(); + return _internal_supported_software_features().size(); } inline int GcmDeviceInfo::supported_software_features_size() const { return _internal_supported_software_features_size(); } inline void GcmDeviceInfo::clear_supported_software_features() { - supported_software_features_.Clear(); -} -inline ::securegcm::SoftwareFeature GcmDeviceInfo::_internal_supported_software_features(int index) const { - return static_cast< ::securegcm::SoftwareFeature >(supported_software_features_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.supported_software_features_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x02000000U); } inline ::securegcm::SoftwareFeature GcmDeviceInfo::supported_software_features(int index) const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.supported_software_features) - return _internal_supported_software_features(index); + return static_cast<::securegcm::SoftwareFeature>(_internal_supported_software_features().Get(index)); } inline void GcmDeviceInfo::set_supported_software_features(int index, ::securegcm::SoftwareFeature value) { - assert(::securegcm::SoftwareFeature_IsValid(value)); - supported_software_features_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + _internal_mutable_supported_software_features()->Set(index, value); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.supported_software_features) } -inline void GcmDeviceInfo::_internal_add_supported_software_features(::securegcm::SoftwareFeature value) { - assert(::securegcm::SoftwareFeature_IsValid(value)); - supported_software_features_.Add(value); -} inline void GcmDeviceInfo::add_supported_software_features(::securegcm::SoftwareFeature value) { - _internal_add_supported_software_features(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_supported_software_features()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.supported_software_features) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -GcmDeviceInfo::supported_software_features() const { +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::supported_software_features() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.supported_software_features) - return supported_software_features_; + return _internal_supported_software_features(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -GcmDeviceInfo::_internal_mutable_supported_software_features() { - return &supported_software_features_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -GcmDeviceInfo::mutable_supported_software_features() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_supported_software_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.supported_software_features) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_supported_software_features(); } +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_supported_software_features() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.supported_software_features_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +GcmDeviceInfo::_internal_mutable_supported_software_features() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.supported_software_features_; +} // repeated .securegcm.SoftwareFeature enabled_software_features = 412; inline int GcmDeviceInfo::_internal_enabled_software_features_size() const { - return enabled_software_features_.size(); + return _internal_enabled_software_features().size(); } inline int GcmDeviceInfo::enabled_software_features_size() const { return _internal_enabled_software_features_size(); } inline void GcmDeviceInfo::clear_enabled_software_features() { - enabled_software_features_.Clear(); -} -inline ::securegcm::SoftwareFeature GcmDeviceInfo::_internal_enabled_software_features(int index) const { - return static_cast< ::securegcm::SoftwareFeature >(enabled_software_features_.Get(index)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enabled_software_features_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::securegcm::SoftwareFeature GcmDeviceInfo::enabled_software_features(int index) const { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enabled_software_features) - return _internal_enabled_software_features(index); + return static_cast<::securegcm::SoftwareFeature>(_internal_enabled_software_features().Get(index)); } inline void GcmDeviceInfo::set_enabled_software_features(int index, ::securegcm::SoftwareFeature value) { - assert(::securegcm::SoftwareFeature_IsValid(value)); - enabled_software_features_.Set(index, value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + _internal_mutable_enabled_software_features()->Set(index, value); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enabled_software_features) } -inline void GcmDeviceInfo::_internal_add_enabled_software_features(::securegcm::SoftwareFeature value) { - assert(::securegcm::SoftwareFeature_IsValid(value)); - enabled_software_features_.Add(value); -} inline void GcmDeviceInfo::add_enabled_software_features(::securegcm::SoftwareFeature value) { - _internal_add_enabled_software_features(value); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::SoftwareFeature_internal_data_)); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_enabled_software_features()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.enabled_software_features) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -GcmDeviceInfo::enabled_software_features() const { +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::enabled_software_features() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.enabled_software_features) - return enabled_software_features_; + return _internal_enabled_software_features(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -GcmDeviceInfo::_internal_mutable_enabled_software_features() { - return &enabled_software_features_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -GcmDeviceInfo::mutable_enabled_software_features() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enabled_software_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.enabled_software_features) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_enabled_software_features(); } +inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_enabled_software_features() + const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.enabled_software_features_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +GcmDeviceInfo::_internal_mutable_enabled_software_features() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.enabled_software_features_; +} // optional bytes enrollment_session_id = 1000; -inline bool GcmDeviceInfo::_internal_has_enrollment_session_id() const { - bool value = (_has_bits_[0] & 0x00008000u) != 0; +inline bool GcmDeviceInfo::has_enrollment_session_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x08000000U); return value; } -inline bool GcmDeviceInfo::has_enrollment_session_id() const { - return _internal_has_enrollment_session_id(); -} inline void GcmDeviceInfo::clear_enrollment_session_id() { - enrollment_session_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00008000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enrollment_session_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x08000000U); } -inline const std::string& GcmDeviceInfo::enrollment_session_id() const { +inline const ::std::string& GcmDeviceInfo::enrollment_session_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enrollment_session_id) return _internal_enrollment_session_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_enrollment_session_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00008000u; - enrollment_session_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_enrollment_session_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x08000000U); + _impl_.enrollment_session_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enrollment_session_id) } -inline std::string* GcmDeviceInfo::mutable_enrollment_session_id() { - std::string* _s = _internal_mutable_enrollment_session_id(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enrollment_session_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); + ::std::string* _s = _internal_mutable_enrollment_session_id(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.enrollment_session_id) return _s; } -inline const std::string& GcmDeviceInfo::_internal_enrollment_session_id() const { - return enrollment_session_id_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_enrollment_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.enrollment_session_id_.Get(); } -inline void GcmDeviceInfo::_internal_set_enrollment_session_id(const std::string& value) { - _has_bits_[0] |= 0x00008000u; - enrollment_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_enrollment_session_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enrollment_session_id_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_enrollment_session_id() { - _has_bits_[0] |= 0x00008000u; - return enrollment_session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_enrollment_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.enrollment_session_id_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_enrollment_session_id() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_enrollment_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.enrollment_session_id) - if (!_internal_has_enrollment_session_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x08000000U)) { return nullptr; } - _has_bits_[0] &= ~0x00008000u; - auto* p = enrollment_session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (enrollment_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - enrollment_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); + auto* released = _impl_.enrollment_session_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.enrollment_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_enrollment_session_id(std::string* enrollment_session_id) { - if (enrollment_session_id != nullptr) { - _has_bits_[0] |= 0x00008000u; +inline void GcmDeviceInfo::set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x08000000U); } else { - _has_bits_[0] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[0], 0x08000000U); } - enrollment_session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), enrollment_session_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (enrollment_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - enrollment_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.enrollment_session_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.enrollment_session_id_.IsDefault()) { + _impl_.enrollment_session_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.enrollment_session_id) } // optional string oauth_token = 1001; -inline bool GcmDeviceInfo::_internal_has_oauth_token() const { - bool value = (_has_bits_[0] & 0x00010000u) != 0; +inline bool GcmDeviceInfo::has_oauth_token() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x10000000U); return value; } -inline bool GcmDeviceInfo::has_oauth_token() const { - return _internal_has_oauth_token(); -} inline void GcmDeviceInfo::clear_oauth_token() { - oauth_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00010000u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oauth_token_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x10000000U); } -inline const std::string& GcmDeviceInfo::oauth_token() const { +inline const ::std::string& GcmDeviceInfo::oauth_token() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.oauth_token) return _internal_oauth_token(); } -template -inline PROTOBUF_ALWAYS_INLINE -void GcmDeviceInfo::set_oauth_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00010000u; - oauth_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_oauth_token(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x10000000U); + _impl_.oauth_token_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.oauth_token) } -inline std::string* GcmDeviceInfo::mutable_oauth_token() { - std::string* _s = _internal_mutable_oauth_token(); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_oauth_token() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); + ::std::string* _s = _internal_mutable_oauth_token(); // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.oauth_token) return _s; } -inline const std::string& GcmDeviceInfo::_internal_oauth_token() const { - return oauth_token_.Get(); +inline const ::std::string& GcmDeviceInfo::_internal_oauth_token() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.oauth_token_.Get(); } -inline void GcmDeviceInfo::_internal_set_oauth_token(const std::string& value) { - _has_bits_[0] |= 0x00010000u; - oauth_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void GcmDeviceInfo::_internal_set_oauth_token(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oauth_token_.Set(value, GetArena()); } -inline std::string* GcmDeviceInfo::_internal_mutable_oauth_token() { - _has_bits_[0] |= 0x00010000u; - return oauth_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_oauth_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.oauth_token_.Mutable( GetArena()); } -inline std::string* GcmDeviceInfo::release_oauth_token() { +inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_oauth_token() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.oauth_token) - if (!_internal_has_oauth_token()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x10000000U)) { return nullptr; } - _has_bits_[0] &= ~0x00010000u; - auto* p = oauth_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (oauth_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - oauth_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); + auto* released = _impl_.oauth_token_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.oauth_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void GcmDeviceInfo::set_allocated_oauth_token(std::string* oauth_token) { - if (oauth_token != nullptr) { - _has_bits_[0] |= 0x00010000u; +inline void GcmDeviceInfo::set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x10000000U); } else { - _has_bits_[0] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[0], 0x10000000U); } - oauth_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), oauth_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (oauth_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - oauth_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.oauth_token_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.oauth_token_.IsDefault()) { + _impl_.oauth_token_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.oauth_token) } @@ -3330,427 +3513,435 @@ inline void GcmDeviceInfo::set_allocated_oauth_token(std::string* oauth_token) { // GcmMetadata // required .securegcm.Type type = 1; -inline bool GcmMetadata::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool GcmMetadata::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool GcmMetadata::has_type() const { - return _internal_has_type(); -} inline void GcmMetadata::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::securegcm::Type GcmMetadata::_internal_type() const { - return static_cast< ::securegcm::Type >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::securegcm::Type GcmMetadata::type() const { // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.type) return _internal_type(); } -inline void GcmMetadata::_internal_set_type(::securegcm::Type value) { - assert(::securegcm::Type_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - type_ = value; -} inline void GcmMetadata::set_type(::securegcm::Type value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.type) } +inline ::securegcm::Type GcmMetadata::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Type>(_impl_.type_); +} +inline void GcmMetadata::_internal_set_type(::securegcm::Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Type_internal_data_)); + _impl_.type_ = value; +} // optional int32 version = 2 [default = 0]; -inline bool GcmMetadata::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool GcmMetadata::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool GcmMetadata::has_version() const { - return _internal_has_version(); -} inline void GcmMetadata::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t GcmMetadata::_internal_version() const { - return version_; -} -inline int32_t GcmMetadata::version() const { +inline ::int32_t GcmMetadata::version() const { // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.version) return _internal_version(); } -inline void GcmMetadata::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000002u; - version_ = value; -} -inline void GcmMetadata::set_version(int32_t value) { +inline void GcmMetadata::set_version(::int32_t value) { _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.version) } +inline ::int32_t GcmMetadata::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void GcmMetadata::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} // ------------------------------------------------------------------- // Tickle // optional fixed64 expiry_time = 1; -inline bool Tickle::_internal_has_expiry_time() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Tickle::has_expiry_time() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Tickle::has_expiry_time() const { - return _internal_has_expiry_time(); -} inline void Tickle::clear_expiry_time() { - expiry_time_ = uint64_t{0u}; - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.expiry_time_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline uint64_t Tickle::_internal_expiry_time() const { - return expiry_time_; -} -inline uint64_t Tickle::expiry_time() const { +inline ::uint64_t Tickle::expiry_time() const { // @@protoc_insertion_point(field_get:securegcm.Tickle.expiry_time) return _internal_expiry_time(); } -inline void Tickle::_internal_set_expiry_time(uint64_t value) { - _has_bits_[0] |= 0x00000001u; - expiry_time_ = value; -} -inline void Tickle::set_expiry_time(uint64_t value) { +inline void Tickle::set_expiry_time(::uint64_t value) { _internal_set_expiry_time(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:securegcm.Tickle.expiry_time) } +inline ::uint64_t Tickle::_internal_expiry_time() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.expiry_time_; +} +inline void Tickle::_internal_set_expiry_time(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.expiry_time_ = value; +} // ------------------------------------------------------------------- // LoginNotificationInfo // optional fixed64 creation_time = 2; -inline bool LoginNotificationInfo::_internal_has_creation_time() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool LoginNotificationInfo::has_creation_time() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool LoginNotificationInfo::has_creation_time() const { - return _internal_has_creation_time(); -} inline void LoginNotificationInfo::clear_creation_time() { - creation_time_ = uint64_t{0u}; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.creation_time_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline uint64_t LoginNotificationInfo::_internal_creation_time() const { - return creation_time_; -} -inline uint64_t LoginNotificationInfo::creation_time() const { +inline ::uint64_t LoginNotificationInfo::creation_time() const { // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.creation_time) return _internal_creation_time(); } -inline void LoginNotificationInfo::_internal_set_creation_time(uint64_t value) { - _has_bits_[0] |= 0x00000010u; - creation_time_ = value; -} -inline void LoginNotificationInfo::set_creation_time(uint64_t value) { +inline void LoginNotificationInfo::set_creation_time(::uint64_t value) { _internal_set_creation_time(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.creation_time) } +inline ::uint64_t LoginNotificationInfo::_internal_creation_time() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.creation_time_; +} +inline void LoginNotificationInfo::_internal_set_creation_time(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.creation_time_ = value; +} // optional string email = 3; -inline bool LoginNotificationInfo::_internal_has_email() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool LoginNotificationInfo::has_email() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool LoginNotificationInfo::has_email() const { - return _internal_has_email(); -} inline void LoginNotificationInfo::clear_email() { - email_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.email_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& LoginNotificationInfo::email() const { +inline const ::std::string& LoginNotificationInfo::email() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.email) return _internal_email(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LoginNotificationInfo::set_email(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - email_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_email(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.email_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.email) } -inline std::string* LoginNotificationInfo::mutable_email() { - std::string* _s = _internal_mutable_email(); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_email() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_email(); // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.email) return _s; } -inline const std::string& LoginNotificationInfo::_internal_email() const { - return email_.Get(); +inline const ::std::string& LoginNotificationInfo::_internal_email() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.email_.Get(); } -inline void LoginNotificationInfo::_internal_set_email(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - email_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LoginNotificationInfo::_internal_set_email(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.email_.Set(value, GetArena()); } -inline std::string* LoginNotificationInfo::_internal_mutable_email() { - _has_bits_[0] |= 0x00000001u; - return email_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_email() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.email_.Mutable( GetArena()); } -inline std::string* LoginNotificationInfo::release_email() { +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_email() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.email) - if (!_internal_has_email()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = email_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (email_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - email_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.email_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.email_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LoginNotificationInfo::set_allocated_email(std::string* email) { - if (email != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void LoginNotificationInfo::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - email_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), email, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (email_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - email_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.email_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.email_.IsDefault()) { + _impl_.email_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.email) } // optional string host = 4; -inline bool LoginNotificationInfo::_internal_has_host() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool LoginNotificationInfo::has_host() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool LoginNotificationInfo::has_host() const { - return _internal_has_host(); -} inline void LoginNotificationInfo::clear_host() { - host_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.host_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& LoginNotificationInfo::host() const { +inline const ::std::string& LoginNotificationInfo::host() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.host) return _internal_host(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LoginNotificationInfo::set_host(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_host(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.host_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.host) } -inline std::string* LoginNotificationInfo::mutable_host() { - std::string* _s = _internal_mutable_host(); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_host() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.host) return _s; } -inline const std::string& LoginNotificationInfo::_internal_host() const { - return host_.Get(); +inline const ::std::string& LoginNotificationInfo::_internal_host() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.host_.Get(); } -inline void LoginNotificationInfo::_internal_set_host(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LoginNotificationInfo::_internal_set_host(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.host_.Set(value, GetArena()); } -inline std::string* LoginNotificationInfo::_internal_mutable_host() { - _has_bits_[0] |= 0x00000002u; - return host_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_host() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.host_.Mutable( GetArena()); } -inline std::string* LoginNotificationInfo::release_host() { +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_host() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.host) - if (!_internal_has_host()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = host_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (host_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.host_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.host_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LoginNotificationInfo::set_allocated_host(std::string* host) { - if (host != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void LoginNotificationInfo::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - host_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), host, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (host_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.host_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.host_.IsDefault()) { + _impl_.host_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.host) } // optional string source = 5; -inline bool LoginNotificationInfo::_internal_has_source() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool LoginNotificationInfo::has_source() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool LoginNotificationInfo::has_source() const { - return _internal_has_source(); -} inline void LoginNotificationInfo::clear_source() { - source_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& LoginNotificationInfo::source() const { +inline const ::std::string& LoginNotificationInfo::source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.source) return _internal_source(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LoginNotificationInfo::set_source(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_source(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.source_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.source) } -inline std::string* LoginNotificationInfo::mutable_source() { - std::string* _s = _internal_mutable_source(); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_source() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_source(); // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.source) return _s; } -inline const std::string& LoginNotificationInfo::_internal_source() const { - return source_.Get(); +inline const ::std::string& LoginNotificationInfo::_internal_source() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.source_.Get(); } -inline void LoginNotificationInfo::_internal_set_source(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LoginNotificationInfo::_internal_set_source(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.source_.Set(value, GetArena()); } -inline std::string* LoginNotificationInfo::_internal_mutable_source() { - _has_bits_[0] |= 0x00000004u; - return source_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.source_.Mutable( GetArena()); } -inline std::string* LoginNotificationInfo::release_source() { +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.source) - if (!_internal_has_source()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = source_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (source_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - source_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.source_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.source_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LoginNotificationInfo::set_allocated_source(std::string* source) { - if (source != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void LoginNotificationInfo::set_allocated_source(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - source_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (source_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - source_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.source_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.source_.IsDefault()) { + _impl_.source_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.source) } // optional string event_type = 6; -inline bool LoginNotificationInfo::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool LoginNotificationInfo::has_event_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool LoginNotificationInfo::has_event_type() const { - return _internal_has_event_type(); -} inline void LoginNotificationInfo::clear_event_type() { - event_type_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& LoginNotificationInfo::event_type() const { +inline const ::std::string& LoginNotificationInfo::event_type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.event_type) return _internal_event_type(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LoginNotificationInfo::set_event_type(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - event_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_event_type(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.event_type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.event_type) } -inline std::string* LoginNotificationInfo::mutable_event_type() { - std::string* _s = _internal_mutable_event_type(); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_event_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_event_type(); // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.event_type) return _s; } -inline const std::string& LoginNotificationInfo::_internal_event_type() const { - return event_type_.Get(); +inline const ::std::string& LoginNotificationInfo::_internal_event_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.event_type_.Get(); } -inline void LoginNotificationInfo::_internal_set_event_type(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - event_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void LoginNotificationInfo::_internal_set_event_type(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.event_type_.Set(value, GetArena()); } -inline std::string* LoginNotificationInfo::_internal_mutable_event_type() { - _has_bits_[0] |= 0x00000008u; - return event_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_event_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.event_type_.Mutable( GetArena()); } -inline std::string* LoginNotificationInfo::release_event_type() { +inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_event_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.event_type) - if (!_internal_has_event_type()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = event_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (event_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - event_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.event_type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.event_type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LoginNotificationInfo::set_allocated_event_type(std::string* event_type) { - if (event_type != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void LoginNotificationInfo::set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - event_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), event_type, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (event_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - event_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.event_type_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.event_type_.IsDefault()) { + _impl_.event_type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.event_type) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::securegcm::AppleDeviceDiagonalMils> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::DeviceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::SoftwareFeature> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::InvocationReason> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::Type> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::securegcm::AppleDeviceDiagonalMils> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::DeviceType> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::SoftwareFeature> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::InvocationReason> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Type> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuregcm_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // src_2fmain_2fproto_2fsecuregcm_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.cc index cabae499..110c84c9 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.cc +++ b/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.cc @@ -1,2773 +1,3031 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/securemessage.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/securemessage.proto +// Protobuf C++ Version: 6.33.3 -#include "proto/securemessage.pb.h" +#include "src/main/proto/securemessage.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// 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 securemessage { -constexpr SecureMessage::SecureMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : header_and_body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , signature_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct SecureMessageDefaultTypeInternal { - constexpr SecureMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SecureMessageDefaultTypeInternal() {} - union { - SecureMessage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; -constexpr Header::Header( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : verification_key_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , decryption_key_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , iv_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , public_metadata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , associated_data_length_(0u) - , signature_scheme_(1) - , encryption_scheme_(1) -{} -struct HeaderDefaultTypeInternal { - constexpr HeaderDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~HeaderDefaultTypeInternal() {} - union { - Header _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HeaderDefaultTypeInternal _Header_default_instance_; -constexpr HeaderAndBody::HeaderAndBody( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , header_(nullptr){} -struct HeaderAndBodyDefaultTypeInternal { - constexpr HeaderAndBodyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~HeaderAndBodyDefaultTypeInternal() {} - union { - HeaderAndBody _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; -constexpr HeaderAndBodyInternal::HeaderAndBodyInternal( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : header_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct HeaderAndBodyInternalDefaultTypeInternal { - constexpr HeaderAndBodyInternalDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~HeaderAndBodyInternalDefaultTypeInternal() {} - union { - HeaderAndBodyInternal _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; -constexpr EcP256PublicKey::EcP256PublicKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : x_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , y_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct EcP256PublicKeyDefaultTypeInternal { - constexpr EcP256PublicKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~EcP256PublicKeyDefaultTypeInternal() {} - union { - EcP256PublicKey _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; -constexpr SimpleRsaPublicKey::SimpleRsaPublicKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : n_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , e_(65537){} +inline constexpr SimpleRsaPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + n_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + e_{65537} {} + +template +PROTOBUF_CONSTEXPR SimpleRsaPublicKey::SimpleRsaPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SimpleRsaPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SimpleRsaPublicKeyDefaultTypeInternal { - constexpr SimpleRsaPublicKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SimpleRsaPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SimpleRsaPublicKeyDefaultTypeInternal() {} union { SimpleRsaPublicKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; -constexpr DhPublicKey::DhPublicKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : y_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; + +inline constexpr SecureMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_and_body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR SecureMessage::SecureMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SecureMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SecureMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecureMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecureMessageDefaultTypeInternal() {} + union { + SecureMessage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; + +inline constexpr HeaderAndBodyInternal::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR HeaderAndBodyInternal::HeaderAndBodyInternal(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(HeaderAndBodyInternal_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderAndBodyInternalDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderAndBodyInternalDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderAndBodyInternalDefaultTypeInternal() {} + union { + HeaderAndBodyInternal _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; + +inline constexpr Header::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + verification_key_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + decryption_key_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + iv_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_metadata_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + associated_data_length_{0u}, + signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, + encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} + +template +PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Header_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderDefaultTypeInternal() {} + union { + Header _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; + +inline constexpr EcP256PublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + x_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR EcP256PublicKey::EcP256PublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(EcP256PublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EcP256PublicKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR EcP256PublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EcP256PublicKeyDefaultTypeInternal() {} + union { + EcP256PublicKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; + +inline constexpr DhPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + y_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR DhPublicKey::DhPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DhPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DhPublicKeyDefaultTypeInternal { - constexpr DhPublicKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DhPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DhPublicKeyDefaultTypeInternal() {} union { DhPublicKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; -constexpr GenericPublicKey::GenericPublicKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ec_p256_public_key_(nullptr) - , rsa2048_public_key_(nullptr) - , dh2048_public_key_(nullptr) - , type_(1) -{} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; + +inline constexpr HeaderAndBody::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + header_{nullptr} {} + +template +PROTOBUF_CONSTEXPR HeaderAndBody::HeaderAndBody(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(HeaderAndBody_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct HeaderAndBodyDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderAndBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderAndBodyDefaultTypeInternal() {} + union { + HeaderAndBody _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; + +inline constexpr GenericPublicKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ec_p256_public_key_{nullptr}, + rsa2048_public_key_{nullptr}, + dh2048_public_key_{nullptr}, + type_{static_cast< ::securemessage::PublicKeyType >(1)} {} + +template +PROTOBUF_CONSTEXPR GenericPublicKey::GenericPublicKey(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(GenericPublicKey_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GenericPublicKeyDefaultTypeInternal { - constexpr GenericPublicKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GenericPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GenericPublicKeyDefaultTypeInternal() {} union { GenericPublicKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; } // namespace securemessage namespace securemessage { -bool SigScheme_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t SigScheme_internal_data_[] = { + 196609u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + SigScheme_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SigScheme_strings[3] = {}; +static const char SigScheme_names[] = { + "ECDSA_P256_SHA256" + "HMAC_SHA256" + "RSA2048_SHA256" +}; -static const char SigScheme_names[] = - "ECDSA_P256_SHA256" - "HMAC_SHA256" - "RSA2048_SHA256"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SigScheme_entries[] = { - { {SigScheme_names + 0, 17}, 2 }, - { {SigScheme_names + 17, 11}, 1 }, - { {SigScheme_names + 28, 14}, 3 }, +static const ::google::protobuf::internal::EnumEntry SigScheme_entries[] = { + {{&SigScheme_names[0], 17}, 2}, + {{&SigScheme_names[17], 11}, 1}, + {{&SigScheme_names[28], 14}, 3}, }; static const int SigScheme_entries_by_number[] = { - 1, // 1 -> HMAC_SHA256 - 0, // 2 -> ECDSA_P256_SHA256 - 2, // 3 -> RSA2048_SHA256 + 1, // 1 -> HMAC_SHA256 + 0, // 2 -> ECDSA_P256_SHA256 + 2, // 3 -> RSA2048_SHA256 }; -const std::string& SigScheme_Name( - SigScheme value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - SigScheme_entries, - SigScheme_entries_by_number, - 3, SigScheme_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - SigScheme_entries, - SigScheme_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - SigScheme_strings[idx].get(); +const ::std::string& SigScheme_Name(SigScheme value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + SigScheme_entries, SigScheme_entries_by_number, 3, + SigScheme_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(SigScheme_entries, + SigScheme_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SigScheme_strings[idx].get(); } -bool SigScheme_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SigScheme* value) { + +bool SigScheme_Parse(::absl::string_view name, SigScheme* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( SigScheme_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool EncScheme_IsValid(int value) { - switch (value) { - case 1: - case 2: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t EncScheme_internal_data_[] = { + 131073u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + EncScheme_strings[2] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EncScheme_strings[2] = {}; +static const char EncScheme_names[] = { + "AES_256_CBC" + "NONE" +}; -static const char EncScheme_names[] = - "AES_256_CBC" - "NONE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EncScheme_entries[] = { - { {EncScheme_names + 0, 11}, 2 }, - { {EncScheme_names + 11, 4}, 1 }, +static const ::google::protobuf::internal::EnumEntry EncScheme_entries[] = { + {{&EncScheme_names[0], 11}, 2}, + {{&EncScheme_names[11], 4}, 1}, }; static const int EncScheme_entries_by_number[] = { - 1, // 1 -> NONE - 0, // 2 -> AES_256_CBC + 1, // 1 -> NONE + 0, // 2 -> AES_256_CBC }; -const std::string& EncScheme_Name( - EncScheme value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - EncScheme_entries, - EncScheme_entries_by_number, - 2, EncScheme_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - EncScheme_entries, - EncScheme_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - EncScheme_strings[idx].get(); +const ::std::string& EncScheme_Name(EncScheme value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + EncScheme_entries, EncScheme_entries_by_number, 2, + EncScheme_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(EncScheme_entries, + EncScheme_entries_by_number, + 2, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EncScheme_strings[idx].get(); } -bool EncScheme_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EncScheme* value) { + +bool EncScheme_Parse(::absl::string_view name, EncScheme* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( EncScheme_entries, 2, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -bool PublicKeyType_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t PublicKeyType_internal_data_[] = { + 196609u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + PublicKeyType_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PublicKeyType_strings[3] = {}; +static const char PublicKeyType_names[] = { + "DH2048_MODP" + "EC_P256" + "RSA2048" +}; -static const char PublicKeyType_names[] = - "DH2048_MODP" - "EC_P256" - "RSA2048"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PublicKeyType_entries[] = { - { {PublicKeyType_names + 0, 11}, 3 }, - { {PublicKeyType_names + 11, 7}, 1 }, - { {PublicKeyType_names + 18, 7}, 2 }, +static const ::google::protobuf::internal::EnumEntry PublicKeyType_entries[] = { + {{&PublicKeyType_names[0], 11}, 3}, + {{&PublicKeyType_names[11], 7}, 1}, + {{&PublicKeyType_names[18], 7}, 2}, }; static const int PublicKeyType_entries_by_number[] = { - 1, // 1 -> EC_P256 - 2, // 2 -> RSA2048 - 0, // 3 -> DH2048_MODP + 1, // 1 -> EC_P256 + 2, // 2 -> RSA2048 + 0, // 3 -> DH2048_MODP }; -const std::string& PublicKeyType_Name( - PublicKeyType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PublicKeyType_entries, - PublicKeyType_entries_by_number, - 3, PublicKeyType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PublicKeyType_entries, - PublicKeyType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PublicKeyType_strings[idx].get(); +const ::std::string& PublicKeyType_Name(PublicKeyType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + PublicKeyType_entries, PublicKeyType_entries_by_number, 3, + PublicKeyType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(PublicKeyType_entries, + PublicKeyType_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PublicKeyType_strings[idx].get(); } -bool PublicKeyType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PublicKeyType* value) { + +bool PublicKeyType_Parse(::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( PublicKeyType_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class SecureMessage::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_header_and_body(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_signature(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; } }; -SecureMessage::SecureMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SecureMessage::SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.SecureMessage) } -SecureMessage::SecureMessage(const SecureMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - header_and_body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - header_and_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_header_and_body()) { - header_and_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_header_and_body(), - GetArenaForAllocation()); - } - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_signature()) { - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signature(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::SecureMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_and_body_(arena, from.header_and_body_), + signature_(arena, from.signature_) {} + +SecureMessage::SecureMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SecureMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SecureMessage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:securemessage.SecureMessage) } +PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_and_body_(arena), + signature_(arena) {} -inline void SecureMessage::SharedCtor() { -header_and_body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - header_and_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void SecureMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SecureMessage::~SecureMessage() { // @@protoc_insertion_point(destructor:securemessage.SecureMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SecureMessage::SharedDtor(MessageLite& self) { + SecureMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_and_body_.Destroy(); + this_._impl_.signature_.Destroy(); + this_._impl_.~Impl_(); } -inline void SecureMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - header_and_body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SecureMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecureMessage(arena); +} +constexpr auto SecureMessage::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecureMessage), + alignof(SecureMessage)); +} +constexpr auto SecureMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_SecureMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SecureMessage::IsInitializedImpl, + &SecureMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecureMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SecureMessage::ByteSizeLong, + &SecureMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._cached_size_), + true, + }, + "securemessage.SecureMessage", + }; } -void SecureMessage::ArenaDtor(void* object) { - SecureMessage* _this = reinterpret_cast< SecureMessage* >(object); - (void)_this; -} -void SecureMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SecureMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_ = + SecureMessage::InternalGenerateClassData_(); -void SecureMessage::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecureMessage::GetClassData() const { + return SecureMessage_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SecureMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SecureMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::SecureMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes signature = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_)}}, + // required bytes header_and_body = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes header_and_body = 1; + {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes signature = 2; + {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SecureMessage::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.SecureMessage) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - header_and_body_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.header_and_body_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - signature_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.signature_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SecureMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required bytes header_and_body = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_header_and_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // required bytes signature = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SecureMessage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SecureMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SecureMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.SecureMessage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required bytes header_and_body = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_header_and_body(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_header_and_body(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // required bytes signature = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_signature(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_signature(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.SecureMessage) return target; } -size_t SecureMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securemessage.SecureMessage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SecureMessage::ByteSizeLong(const MessageLite& base) { + const SecureMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SecureMessage::ByteSizeLong() const { + const SecureMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.SecureMessage) + ::size_t total_size = 0; - if (_internal_has_header_and_body()) { - // required bytes header_and_body = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_header_and_body()); - } - - if (_internal_has_signature()) { - // required bytes signature = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signature()); - } - - return total_size; -} -size_t SecureMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.SecureMessage) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes header_and_body = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_header_and_body()); - - // required bytes signature = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signature()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // required bytes header_and_body = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header_and_body()); + } + // required bytes signature = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_signature()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SecureMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void SecureMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SecureMessage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void SecureMessage::MergeFrom(const SecureMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SecureMessage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_header_and_body(from._internal_header_and_body()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_header_and_body(from._internal_header_and_body()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_signature(from._internal_signature()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_signature(from._internal_signature()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SecureMessage::CopyFrom(const SecureMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SecureMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SecureMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool SecureMessage::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool SecureMessage::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void SecureMessage::InternalSwap(SecureMessage* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SecureMessage::InternalSwap(SecureMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &header_and_body_, lhs_arena, - &other->header_and_body_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &signature_, lhs_arena, - &other->signature_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_and_body_, &other->_impl_.header_and_body_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_, &other->_impl_.signature_, arena); } -std::string SecureMessage::GetTypeName() const { - return "securemessage.SecureMessage"; -} - - // =================================================================== class Header::_Internal { public: - using HasBits = decltype(std::declval
()._has_bits_); - static void set_has_signature_scheme(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_encryption_scheme(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_verification_key_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_decryption_key_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_iv(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_public_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_associated_data_length(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(::std::declval
()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000060) ^ 0x00000060) != 0; } }; -Header::Header(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.Header) } -Header::Header(const Header& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - verification_key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - verification_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_verification_key_id()) { - verification_key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_verification_key_id(), - GetArenaForAllocation()); - } - decryption_key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - decryption_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_decryption_key_id()) { - decryption_key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_decryption_key_id(), - GetArenaForAllocation()); - } - iv_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_iv()) { - iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_iv(), - GetArenaForAllocation()); - } - public_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_public_metadata()) { - public_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_metadata(), - GetArenaForAllocation()); - } - ::memcpy(&associated_data_length_, &from.associated_data_length_, - static_cast(reinterpret_cast(&encryption_scheme_) - - reinterpret_cast(&associated_data_length_)) + sizeof(encryption_scheme_)); +PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::Header& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + verification_key_id_(arena, from.verification_key_id_), + decryption_key_id_(arena, from.decryption_key_id_), + iv_(arena, from.iv_), + public_metadata_(arena, from.public_metadata_) {} + +Header::Header( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Header& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Header* 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(&_impl_) + + offsetof(Impl_, associated_data_length_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, associated_data_length_), + offsetof(Impl_, encryption_scheme_) - + offsetof(Impl_, associated_data_length_) + + sizeof(Impl_::encryption_scheme_)); + // @@protoc_insertion_point(copy_constructor:securemessage.Header) } +PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + verification_key_id_(arena), + decryption_key_id_(arena), + iv_(arena), + public_metadata_(arena), + signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, + encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} -inline void Header::SharedCtor() { -verification_key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - verification_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -decryption_key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - decryption_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -iv_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -public_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -associated_data_length_ = 0u; -signature_scheme_ = 1; -encryption_scheme_ = 1; +inline void Header::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.associated_data_length_ = {}; } - Header::~Header() { // @@protoc_insertion_point(destructor:securemessage.Header) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Header::SharedDtor(MessageLite& self) { + Header& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.verification_key_id_.Destroy(); + this_._impl_.decryption_key_id_.Destroy(); + this_._impl_.iv_.Destroy(); + this_._impl_.public_metadata_.Destroy(); + this_._impl_.~Impl_(); } -inline void Header::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - verification_key_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - decryption_key_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - iv_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_metadata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Header::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Header(arena); +} +constexpr auto Header::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), + alignof(Header)); +} +constexpr auto Header::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<21>{ + { + &_Header_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + Header::IsInitializedImpl, + &Header::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl
(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Header::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl
(), &Header::ByteSizeLong, + &Header::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), + true, + }, + "securemessage.Header", + }; } -void Header::ArenaDtor(void* object) { - Header* _this = reinterpret_cast< Header* >(object); - (void)_this; -} -void Header::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Header::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_ = + Header::InternalGenerateClassData_(); -void Header::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Header::GetClassData() const { + return Header_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 2, 0, 2> +Header::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + Header_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::Header>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // required .securemessage.SigScheme signature_scheme = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 5, 3, + PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_)}}, + // required .securemessage.EncScheme encryption_scheme = 2; + {::_pbi::TcParser::FastEr1S1, + {16, 6, 2, + PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_)}}, + // optional bytes verification_key_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_)}}, + // optional bytes decryption_key_id = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_)}}, + // optional bytes iv = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_)}}, + // optional bytes public_metadata = 6; + {::_pbi::TcParser::FastBS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_)}}, + // optional uint32 associated_data_length = 7 [default = 0]; + {::_pbi::TcParser::FastV32S1, + {56, 4, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.SigScheme signature_scheme = 1; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // required .securemessage.EncScheme encryption_scheme = 2; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes verification_key_id = 3; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes decryption_key_id = 4; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes iv = 5; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional bytes public_metadata = 6; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional uint32 associated_data_length = 7 [default = 0]; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + {{ + {1, 3}, + {1, 2}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Header::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.Header) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - verification_key_id_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.verification_key_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - decryption_key_id_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.decryption_key_id_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { - iv_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.iv_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { - public_metadata_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.public_metadata_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x00000070u) { - associated_data_length_ = 0u; - signature_scheme_ = 1; - encryption_scheme_ = 1; + if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) { + _impl_.associated_data_length_ = 0u; + _impl_.signature_scheme_ = 1; + _impl_.encryption_scheme_ = 1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Header::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required .securemessage.SigScheme signature_scheme = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securemessage::SigScheme_IsValid(val))) { - _internal_set_signature_scheme(static_cast<::securemessage::SigScheme>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // required .securemessage.EncScheme encryption_scheme = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securemessage::EncScheme_IsValid(val))) { - _internal_set_encryption_scheme(static_cast<::securemessage::EncScheme>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes verification_key_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_verification_key_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes decryption_key_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_decryption_key_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes iv = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_iv(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes public_metadata = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_public_metadata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 associated_data_length = 7 [default = 0]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_associated_data_length(&has_bits); - associated_data_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Header::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Header& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Header& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.Header) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required .securemessage.SigScheme signature_scheme = 1; - if (cached_has_bits & 0x00000020u) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_signature_scheme(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_signature_scheme(), target); } // required .securemessage.EncScheme encryption_scheme = 2; - if (cached_has_bits & 0x00000040u) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_encryption_scheme(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_encryption_scheme(), target); } // optional bytes verification_key_id = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_verification_key_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_verification_key_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); } // optional bytes decryption_key_id = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_decryption_key_id(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_decryption_key_id(); + target = stream->WriteBytesMaybeAliased(4, _s, target); } // optional bytes iv = 5; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_iv(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_iv(); + target = stream->WriteBytesMaybeAliased(5, _s, target); } // optional bytes public_metadata = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_public_metadata(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + const ::std::string& _s = this_._internal_public_metadata(); + target = stream->WriteBytesMaybeAliased(6, _s, target); } // optional uint32 associated_data_length = 7 [default = 0]; - if (cached_has_bits & 0x00000010u) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_associated_data_length(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 7, this_._internal_associated_data_length(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.Header) return target; } -size_t Header::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securemessage.Header) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Header::ByteSizeLong(const MessageLite& base) { + const Header& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Header::ByteSizeLong() const { + const Header& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.Header) + ::size_t total_size = 0; - if (_internal_has_signature_scheme()) { - // required .securemessage.SigScheme signature_scheme = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_signature_scheme()); - } - - if (_internal_has_encryption_scheme()) { - // required .securemessage.EncScheme encryption_scheme = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_encryption_scheme()); - } - - return total_size; -} -size_t Header::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.Header) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000060) ^ 0x00000060) == 0) { // All required fields are present. - // required .securemessage.SigScheme signature_scheme = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_signature_scheme()); - - // required .securemessage.EncScheme encryption_scheme = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_encryption_scheme()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // optional bytes verification_key_id = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_verification_key_id()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_verification_key_id()); } - // optional bytes decryption_key_id = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_decryption_key_id()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_decryption_key_id()); } - // optional bytes iv = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_iv()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_iv()); } - // optional bytes public_metadata = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_metadata()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_metadata()); } - // optional uint32 associated_data_length = 7 [default = 0]; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_associated_data_length()); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_associated_data_length()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (BatchCheckHasBit(cached_has_bits, 0x00000060U)) { + // required .securemessage.SigScheme signature_scheme = 1; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_signature_scheme()); + } + // required .securemessage.EncScheme encryption_scheme = 2; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_encryption_scheme()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Header::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Header::MergeFrom(const Header& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.Header) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_verification_key_id(from._internal_verification_key_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_decryption_key_id(from._internal_decryption_key_id()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_iv(from._internal_iv()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_public_metadata(from._internal_public_metadata()); - } - if (cached_has_bits & 0x00000010u) { - associated_data_length_ = from.associated_data_length_; - } - if (cached_has_bits & 0x00000020u) { - signature_scheme_ = from.signature_scheme_; - } - if (cached_has_bits & 0x00000040u) { - encryption_scheme_ = from.encryption_scheme_; - } - _has_bits_[0] |= cached_has_bits; +void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.Header) + 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_verification_key_id(from._internal_verification_key_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_decryption_key_id(from._internal_decryption_key_id()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_iv(from._internal_iv()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_set_public_metadata(from._internal_public_metadata()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.associated_data_length_ = from._impl_.associated_data_length_; + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.signature_scheme_ = from._impl_.signature_scheme_; + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.encryption_scheme_ = from._impl_.encryption_scheme_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Header::CopyFrom(const Header& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.Header) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.Header) if (&from == this) return; Clear(); MergeFrom(from); } -bool Header::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool Header::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void Header::InternalSwap(Header* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Header::InternalSwap(Header* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &verification_key_id_, lhs_arena, - &other->verification_key_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &decryption_key_id_, lhs_arena, - &other->decryption_key_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &iv_, lhs_arena, - &other->iv_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &public_metadata_, lhs_arena, - &other->public_metadata_, rhs_arena - ); - swap(associated_data_length_, other->associated_data_length_); - swap(signature_scheme_, other->signature_scheme_); - swap(encryption_scheme_, other->encryption_scheme_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.verification_key_id_, &other->_impl_.verification_key_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.decryption_key_id_, &other->_impl_.decryption_key_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iv_, &other->_impl_.iv_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_metadata_, &other->_impl_.public_metadata_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_) + + sizeof(Header::_impl_.encryption_scheme_) + - PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)>( + reinterpret_cast(&_impl_.associated_data_length_), + reinterpret_cast(&other->_impl_.associated_data_length_)); } -std::string Header::GetTypeName() const { - return "securemessage.Header"; -} - - // =================================================================== class HeaderAndBody::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::securemessage::Header& header(const HeaderAndBody* msg); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; } }; -const ::securemessage::Header& -HeaderAndBody::_Internal::header(const HeaderAndBody* msg) { - return *msg->header_; -} -HeaderAndBody::HeaderAndBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +HeaderAndBody::HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBody) } -HeaderAndBody::HeaderAndBody(const HeaderAndBody& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_body()) { - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArenaForAllocation()); - } - if (from._internal_has_header()) { - header_ = new ::securemessage::Header(*from.header_); - } else { - header_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::HeaderAndBody& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + body_(arena, from.body_) {} + +HeaderAndBody::HeaderAndBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const HeaderAndBody& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + HeaderAndBody* 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_.header_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBody) } +PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + body_(arena) {} -inline void HeaderAndBody::SharedCtor() { -body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -header_ = nullptr; +inline void HeaderAndBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.header_ = {}; } - HeaderAndBody::~HeaderAndBody() { // @@protoc_insertion_point(destructor:securemessage.HeaderAndBody) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void HeaderAndBody::SharedDtor(MessageLite& self) { + HeaderAndBody& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.body_.Destroy(); + delete this_._impl_.header_; + this_._impl_.~Impl_(); } -inline void HeaderAndBody::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete header_; +inline void* PROTOBUF_NONNULL HeaderAndBody::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HeaderAndBody(arena); +} +constexpr auto HeaderAndBody::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBody), + alignof(HeaderAndBody)); +} +constexpr auto HeaderAndBody::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_HeaderAndBody_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + HeaderAndBody::IsInitializedImpl, + &HeaderAndBody::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HeaderAndBody::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBody::ByteSizeLong, + &HeaderAndBody::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._cached_size_), + true, + }, + "securemessage.HeaderAndBody", + }; } -void HeaderAndBody::ArenaDtor(void* object) { - HeaderAndBody* _this = reinterpret_cast< HeaderAndBody* >(object); - (void)_this; -} -void HeaderAndBody::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void HeaderAndBody::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_ = + HeaderAndBody::InternalGenerateClassData_(); -void HeaderAndBody::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HeaderAndBody::GetClassData() const { + return HeaderAndBody_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +HeaderAndBody::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _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), + HeaderAndBody_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBody>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes body = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_)}}, + // required .securemessage.Header header = 1; + {::_pbi::TcParser::FastMtS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.Header header = 1; + {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // required bytes body = 2; + {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::Header>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void HeaderAndBody::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBody) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - body_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.body_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(header_ != nullptr); - header_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* HeaderAndBody::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required .securemessage.Header header = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // required bytes body = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* HeaderAndBody::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HeaderAndBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HeaderAndBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBody) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required .securemessage.Header header = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::header(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); } // required bytes body = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_body(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_body(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBody) return target; } -size_t HeaderAndBody::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securemessage.HeaderAndBody) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HeaderAndBody::ByteSizeLong(const MessageLite& base) { + const HeaderAndBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t HeaderAndBody::ByteSizeLong() const { + const HeaderAndBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBody) + ::size_t total_size = 0; - if (_internal_has_body()) { - // required bytes body = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); - } - - if (_internal_has_header()) { - // required .securemessage.Header header = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_); - } - - return total_size; -} -size_t HeaderAndBody::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBody) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes body = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); - - // required .securemessage.Header header = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body()); + } + // required .securemessage.Header header = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void HeaderAndBody::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void HeaderAndBody::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBody) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void HeaderAndBody::MergeFrom(const HeaderAndBody& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBody) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_body(from._internal_body()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_body(from._internal_body()); } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_header()->::securemessage::Header::MergeFrom(from._internal_header()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void HeaderAndBody::CopyFrom(const HeaderAndBody& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBody) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBody) if (&from == this) return; Clear(); MergeFrom(from); } -bool HeaderAndBody::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; - if (_internal_has_header()) { - if (!header_->IsInitialized()) return false; +PROTOBUF_NOINLINE bool HeaderAndBody::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { + if (!this_._impl_.header_->IsInitialized()) return false; } return true; } -void HeaderAndBody::InternalSwap(HeaderAndBody* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void HeaderAndBody::InternalSwap(HeaderAndBody* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &body_, lhs_arena, - &other->body_, rhs_arena - ); - swap(header_, other->header_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); + swap(_impl_.header_, other->_impl_.header_); } -std::string HeaderAndBody::GetTypeName() const { - return "securemessage.HeaderAndBody"; -} - - // =================================================================== class HeaderAndBodyInternal::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; } }; -HeaderAndBodyInternal::HeaderAndBodyInternal(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +HeaderAndBodyInternal::HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBodyInternal) } -HeaderAndBodyInternal::HeaderAndBodyInternal(const HeaderAndBodyInternal& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - header_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - header_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_header()) { - header_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_header(), - GetArenaForAllocation()); - } - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_body()) { - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::HeaderAndBodyInternal& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_(arena, from.header_), + body_(arena, from.body_) {} + +HeaderAndBodyInternal::HeaderAndBodyInternal( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const HeaderAndBodyInternal& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + HeaderAndBodyInternal* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBodyInternal) } +PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_(arena), + body_(arena) {} -inline void HeaderAndBodyInternal::SharedCtor() { -header_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - header_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void HeaderAndBodyInternal::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - HeaderAndBodyInternal::~HeaderAndBodyInternal() { // @@protoc_insertion_point(destructor:securemessage.HeaderAndBodyInternal) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void HeaderAndBodyInternal::SharedDtor(MessageLite& self) { + HeaderAndBodyInternal& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_.Destroy(); + this_._impl_.body_.Destroy(); + this_._impl_.~Impl_(); } -inline void HeaderAndBodyInternal::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - header_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL HeaderAndBodyInternal::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HeaderAndBodyInternal(arena); +} +constexpr auto HeaderAndBodyInternal::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBodyInternal), + alignof(HeaderAndBodyInternal)); +} +constexpr auto HeaderAndBodyInternal::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<36>{ + { + &_HeaderAndBodyInternal_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + HeaderAndBodyInternal::IsInitializedImpl, + &HeaderAndBodyInternal::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HeaderAndBodyInternal::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBodyInternal::ByteSizeLong, + &HeaderAndBodyInternal::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._cached_size_), + true, + }, + "securemessage.HeaderAndBodyInternal", + }; } -void HeaderAndBodyInternal::ArenaDtor(void* object) { - HeaderAndBodyInternal* _this = reinterpret_cast< HeaderAndBodyInternal* >(object); - (void)_this; -} -void HeaderAndBodyInternal::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void HeaderAndBodyInternal::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_ = + HeaderAndBodyInternal::InternalGenerateClassData_(); -void HeaderAndBodyInternal::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HeaderAndBodyInternal::GetClassData() const { + return HeaderAndBodyInternal_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +HeaderAndBodyInternal::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + HeaderAndBodyInternal_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBodyInternal>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes body = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_)}}, + // required bytes header = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes header = 1; + {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes body = 2; + {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void HeaderAndBodyInternal::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBodyInternal) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - header_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.header_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - body_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.body_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* HeaderAndBodyInternal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required bytes header = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_header(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // required bytes body = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* HeaderAndBodyInternal::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HeaderAndBodyInternal& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HeaderAndBodyInternal& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBodyInternal) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required bytes header = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_header(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_header(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // required bytes body = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_body(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_body(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBodyInternal) return target; } -size_t HeaderAndBodyInternal::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securemessage.HeaderAndBodyInternal) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HeaderAndBodyInternal::ByteSizeLong(const MessageLite& base) { + const HeaderAndBodyInternal& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t HeaderAndBodyInternal::ByteSizeLong() const { + const HeaderAndBodyInternal& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBodyInternal) + ::size_t total_size = 0; - if (_internal_has_header()) { - // required bytes header = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_header()); - } - - if (_internal_has_body()) { - // required bytes body = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); - } - - return total_size; -} -size_t HeaderAndBodyInternal::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBodyInternal) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes header = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_header()); - - // required bytes body = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // required bytes header = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header()); + } + // required bytes body = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void HeaderAndBodyInternal::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void HeaderAndBodyInternal::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBodyInternal) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void HeaderAndBodyInternal::MergeFrom(const HeaderAndBodyInternal& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBodyInternal) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_header(from._internal_header()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_header(from._internal_header()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_body(from._internal_body()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_body(from._internal_body()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void HeaderAndBodyInternal::CopyFrom(const HeaderAndBodyInternal& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBodyInternal) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBodyInternal) if (&from == this) return; Clear(); MergeFrom(from); } -bool HeaderAndBodyInternal::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool HeaderAndBodyInternal::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void HeaderAndBodyInternal::InternalSwap(HeaderAndBodyInternal* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void HeaderAndBodyInternal::InternalSwap(HeaderAndBodyInternal* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &header_, lhs_arena, - &other->header_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &body_, lhs_arena, - &other->body_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_, &other->_impl_.header_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); } -std::string HeaderAndBodyInternal::GetTypeName() const { - return "securemessage.HeaderAndBodyInternal"; -} - - // =================================================================== class EcP256PublicKey::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; } }; -EcP256PublicKey::EcP256PublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +EcP256PublicKey::EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.EcP256PublicKey) } -EcP256PublicKey::EcP256PublicKey(const EcP256PublicKey& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - x_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_x()) { - x_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_x(), - GetArenaForAllocation()); - } - y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_y()) { - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_y(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::EcP256PublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + x_(arena, from.x_), + y_(arena, from.y_) {} + +EcP256PublicKey::EcP256PublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EcP256PublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EcP256PublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:securemessage.EcP256PublicKey) } +PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + x_(arena), + y_(arena) {} -inline void EcP256PublicKey::SharedCtor() { -x_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EcP256PublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - EcP256PublicKey::~EcP256PublicKey() { // @@protoc_insertion_point(destructor:securemessage.EcP256PublicKey) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void EcP256PublicKey::SharedDtor(MessageLite& self) { + EcP256PublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.x_.Destroy(); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); } -inline void EcP256PublicKey::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - x_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - y_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL EcP256PublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EcP256PublicKey(arena); +} +constexpr auto EcP256PublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcP256PublicKey), + alignof(EcP256PublicKey)); +} +constexpr auto EcP256PublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<30>{ + { + &_EcP256PublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + EcP256PublicKey::IsInitializedImpl, + &EcP256PublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EcP256PublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &EcP256PublicKey::ByteSizeLong, + &EcP256PublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._cached_size_), + true, + }, + "securemessage.EcP256PublicKey", + }; } -void EcP256PublicKey::ArenaDtor(void* object) { - EcP256PublicKey* _this = reinterpret_cast< EcP256PublicKey* >(object); - (void)_this; -} -void EcP256PublicKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EcP256PublicKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_ = + EcP256PublicKey::InternalGenerateClassData_(); -void EcP256PublicKey::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EcP256PublicKey::GetClassData() const { + return EcP256PublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +EcP256PublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + EcP256PublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes y = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_)}}, + // required bytes x = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes x = 1; + {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // required bytes y = 2; + {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void EcP256PublicKey::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.EcP256PublicKey) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - x_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.x_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - y_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.y_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* EcP256PublicKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required bytes x = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_x(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // required bytes y = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_y(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EcP256PublicKey::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EcP256PublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EcP256PublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.EcP256PublicKey) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required bytes x = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_x(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_x(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // required bytes y = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_y(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.EcP256PublicKey) return target; } -size_t EcP256PublicKey::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:securemessage.EcP256PublicKey) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EcP256PublicKey::ByteSizeLong(const MessageLite& base) { + const EcP256PublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EcP256PublicKey::ByteSizeLong() const { + const EcP256PublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.EcP256PublicKey) + ::size_t total_size = 0; - if (_internal_has_x()) { - // required bytes x = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_x()); - } - - if (_internal_has_y()) { - // required bytes y = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_y()); - } - - return total_size; -} -size_t EcP256PublicKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.EcP256PublicKey) - size_t total_size = 0; - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes x = 1; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_x()); - - // required bytes y = 2; - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_y()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // required bytes x = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_x()); + } + // required bytes y = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void EcP256PublicKey::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} +void EcP256PublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.EcP256PublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; -void EcP256PublicKey::MergeFrom(const EcP256PublicKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.EcP256PublicKey) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_x(from._internal_x()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_x(from._internal_x()); } - if (cached_has_bits & 0x00000002u) { - _internal_set_y(from._internal_y()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_y(from._internal_y()); } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void EcP256PublicKey::CopyFrom(const EcP256PublicKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.EcP256PublicKey) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.EcP256PublicKey) if (&from == this) return; Clear(); MergeFrom(from); } -bool EcP256PublicKey::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool EcP256PublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void EcP256PublicKey::InternalSwap(EcP256PublicKey* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void EcP256PublicKey::InternalSwap(EcP256PublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &x_, lhs_arena, - &other->x_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &y_, lhs_arena, - &other->y_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.x_, &other->_impl_.x_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); } -std::string EcP256PublicKey::GetTypeName() const { - return "securemessage.EcP256PublicKey"; -} - - // =================================================================== class SimpleRsaPublicKey::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_n(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_e(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; } }; -SimpleRsaPublicKey::SimpleRsaPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SimpleRsaPublicKey::SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.SimpleRsaPublicKey) } -SimpleRsaPublicKey::SimpleRsaPublicKey(const SimpleRsaPublicKey& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - n_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - n_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_n()) { - n_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_n(), - GetArenaForAllocation()); - } - e_ = from.e_; +PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::SimpleRsaPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + n_(arena, from.n_) {} + +SimpleRsaPublicKey::SimpleRsaPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SimpleRsaPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SimpleRsaPublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.e_ = from._impl_.e_; + // @@protoc_insertion_point(copy_constructor:securemessage.SimpleRsaPublicKey) } +PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + n_(arena), + e_{65537} {} -inline void SimpleRsaPublicKey::SharedCtor() { -n_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - n_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -e_ = 65537; +inline void SimpleRsaPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - SimpleRsaPublicKey::~SimpleRsaPublicKey() { // @@protoc_insertion_point(destructor:securemessage.SimpleRsaPublicKey) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SimpleRsaPublicKey::SharedDtor(MessageLite& self) { + SimpleRsaPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.n_.Destroy(); + this_._impl_.~Impl_(); } -inline void SimpleRsaPublicKey::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - n_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL SimpleRsaPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SimpleRsaPublicKey(arena); +} +constexpr auto SimpleRsaPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SimpleRsaPublicKey), + alignof(SimpleRsaPublicKey)); +} +constexpr auto SimpleRsaPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<33>{ + { + &_SimpleRsaPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + SimpleRsaPublicKey::IsInitializedImpl, + &SimpleRsaPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SimpleRsaPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SimpleRsaPublicKey::ByteSizeLong, + &SimpleRsaPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.SimpleRsaPublicKey", + }; } -void SimpleRsaPublicKey::ArenaDtor(void* object) { - SimpleRsaPublicKey* _this = reinterpret_cast< SimpleRsaPublicKey* >(object); - (void)_this; -} -void SimpleRsaPublicKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SimpleRsaPublicKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_ = + SimpleRsaPublicKey::InternalGenerateClassData_(); -void SimpleRsaPublicKey::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SimpleRsaPublicKey::GetClassData() const { + return SimpleRsaPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +SimpleRsaPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SimpleRsaPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional int32 e = 2 [default = 65537]; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_)}}, + // required bytes n = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes n = 1; + {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional int32 e = 2 [default = 65537]; + {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void SimpleRsaPublicKey::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.SimpleRsaPublicKey) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - n_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.n_.ClearNonDefaultToEmpty(); } - e_ = 65537; + _impl_.e_ = 65537; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* SimpleRsaPublicKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required bytes n = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_n(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 e = 2 [default = 65537]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_e(&has_bits); - e_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SimpleRsaPublicKey::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SimpleRsaPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SimpleRsaPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.SimpleRsaPublicKey) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required bytes n = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_n(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_n(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } // optional int32 e = 2 [default = 65537]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_e(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_e(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.SimpleRsaPublicKey) return target; } -size_t SimpleRsaPublicKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.SimpleRsaPublicKey) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SimpleRsaPublicKey::ByteSizeLong(const MessageLite& base) { + const SimpleRsaPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SimpleRsaPublicKey::ByteSizeLong() const { + const SimpleRsaPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.SimpleRsaPublicKey) + ::size_t total_size = 0; - // required bytes n = 1; - if (_internal_has_n()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_n()); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional int32 e = 2 [default = 65537]; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_e()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // required bytes n = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_n()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + { + // optional int32 e = 2 [default = 65537]; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_e()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SimpleRsaPublicKey::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SimpleRsaPublicKey::MergeFrom(const SimpleRsaPublicKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SimpleRsaPublicKey) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_n(from._internal_n()); - } - if (cached_has_bits & 0x00000002u) { - e_ = from.e_; - } - _has_bits_[0] |= cached_has_bits; +void SimpleRsaPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SimpleRsaPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_n(from._internal_n()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.e_ = from._impl_.e_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SimpleRsaPublicKey::CopyFrom(const SimpleRsaPublicKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SimpleRsaPublicKey) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SimpleRsaPublicKey) if (&from == this) return; Clear(); MergeFrom(from); } -bool SimpleRsaPublicKey::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool SimpleRsaPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void SimpleRsaPublicKey::InternalSwap(SimpleRsaPublicKey* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void SimpleRsaPublicKey::InternalSwap(SimpleRsaPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &n_, lhs_arena, - &other->n_, rhs_arena - ); - swap(e_, other->e_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.n_, &other->_impl_.n_, arena); + swap(_impl_.e_, other->_impl_.e_); } -std::string SimpleRsaPublicKey::GetTypeName() const { - return "securemessage.SimpleRsaPublicKey"; -} - - // =================================================================== class DhPublicKey::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; } }; -DhPublicKey::DhPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DhPublicKey::DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.DhPublicKey) } -DhPublicKey::DhPublicKey(const DhPublicKey& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_y()) { - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_y(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::DhPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + y_(arena, from.y_) {} + +DhPublicKey::DhPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DhPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DhPublicKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:securemessage.DhPublicKey) } +PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + y_(arena) {} -inline void DhPublicKey::SharedCtor() { -y_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void DhPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - DhPublicKey::~DhPublicKey() { // @@protoc_insertion_point(destructor:securemessage.DhPublicKey) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void DhPublicKey::SharedDtor(MessageLite& self) { + DhPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.y_.Destroy(); + this_._impl_.~Impl_(); } -inline void DhPublicKey::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - y_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL DhPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DhPublicKey(arena); +} +constexpr auto DhPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DhPublicKey), + alignof(DhPublicKey)); +} +constexpr auto DhPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_DhPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + DhPublicKey::IsInitializedImpl, + &DhPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DhPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DhPublicKey::ByteSizeLong, + &DhPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.DhPublicKey", + }; } -void DhPublicKey::ArenaDtor(void* object) { - DhPublicKey* _this = reinterpret_cast< DhPublicKey* >(object); - (void)_this; -} -void DhPublicKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DhPublicKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_ = + DhPublicKey::InternalGenerateClassData_(); -void DhPublicKey::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DhPublicKey::GetClassData() const { + return DhPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +DhPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DhPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // required bytes y = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required bytes y = 1; + {PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DhPublicKey::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.DhPublicKey) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - y_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.y_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* DhPublicKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required bytes y = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_y(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DhPublicKey::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DhPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DhPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.DhPublicKey) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required bytes y = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_y(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_y(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.DhPublicKey) return target; } -size_t DhPublicKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.DhPublicKey) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DhPublicKey::ByteSizeLong(const MessageLite& base) { + const DhPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DhPublicKey::ByteSizeLong() const { + const DhPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.DhPublicKey) + ::size_t total_size = 0; - // required bytes y = 1; - if (_internal_has_y()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_y()); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + { + // required bytes y = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_y()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DhPublicKey::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DhPublicKey::MergeFrom(const DhPublicKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.DhPublicKey) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_y()) { - _internal_set_y(from._internal_y()); +void DhPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.DhPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_y(from._internal_y()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DhPublicKey::CopyFrom(const DhPublicKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.DhPublicKey) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.DhPublicKey) if (&from == this) return; Clear(); MergeFrom(from); } -bool DhPublicKey::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; +PROTOBUF_NOINLINE bool DhPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; + } return true; } -void DhPublicKey::InternalSwap(DhPublicKey* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void DhPublicKey::InternalSwap(DhPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &y_, lhs_arena, - &other->y_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); } -std::string DhPublicKey::GetTypeName() const { - return "securemessage.DhPublicKey"; -} - - // =================================================================== class GenericPublicKey::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::securemessage::EcP256PublicKey& ec_p256_public_key(const GenericPublicKey* msg); - static void set_has_ec_p256_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::securemessage::SimpleRsaPublicKey& rsa2048_public_key(const GenericPublicKey* msg); - static void set_has_rsa2048_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::securemessage::DhPublicKey& dh2048_public_key(const GenericPublicKey* msg); - static void set_has_dh2048_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_); static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000008) ^ 0x00000008) != 0; } }; -const ::securemessage::EcP256PublicKey& -GenericPublicKey::_Internal::ec_p256_public_key(const GenericPublicKey* msg) { - return *msg->ec_p256_public_key_; -} -const ::securemessage::SimpleRsaPublicKey& -GenericPublicKey::_Internal::rsa2048_public_key(const GenericPublicKey* msg) { - return *msg->rsa2048_public_key_; -} -const ::securemessage::DhPublicKey& -GenericPublicKey::_Internal::dh2048_public_key(const GenericPublicKey* msg) { - return *msg->dh2048_public_key_; -} -GenericPublicKey::GenericPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +GenericPublicKey::GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securemessage.GenericPublicKey) } -GenericPublicKey::GenericPublicKey(const GenericPublicKey& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_ec_p256_public_key()) { - ec_p256_public_key_ = new ::securemessage::EcP256PublicKey(*from.ec_p256_public_key_); - } else { - ec_p256_public_key_ = nullptr; - } - if (from._internal_has_rsa2048_public_key()) { - rsa2048_public_key_ = new ::securemessage::SimpleRsaPublicKey(*from.rsa2048_public_key_); - } else { - rsa2048_public_key_ = nullptr; - } - if (from._internal_has_dh2048_public_key()) { - dh2048_public_key_ = new ::securemessage::DhPublicKey(*from.dh2048_public_key_); - } else { - dh2048_public_key_ = nullptr; - } - type_ = from.type_; +PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securemessage::GenericPublicKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GenericPublicKey::GenericPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GenericPublicKey& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GenericPublicKey* 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_.ec_p256_public_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_) + : nullptr; + _impl_.rsa2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_) + : nullptr; + _impl_.dh2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_) + : nullptr; + _impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:securemessage.GenericPublicKey) } +PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + type_{static_cast< ::securemessage::PublicKeyType >(1)} {} -inline void GenericPublicKey::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ec_p256_public_key_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&dh2048_public_key_) - - reinterpret_cast(&ec_p256_public_key_)) + sizeof(dh2048_public_key_)); -type_ = 1; +inline void GenericPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, ec_p256_public_key_), + 0, + offsetof(Impl_, dh2048_public_key_) - + offsetof(Impl_, ec_p256_public_key_) + + sizeof(Impl_::dh2048_public_key_)); } - GenericPublicKey::~GenericPublicKey() { // @@protoc_insertion_point(destructor:securemessage.GenericPublicKey) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void GenericPublicKey::SharedDtor(MessageLite& self) { + GenericPublicKey& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.ec_p256_public_key_; + delete this_._impl_.rsa2048_public_key_; + delete this_._impl_.dh2048_public_key_; + this_._impl_.~Impl_(); } -inline void GenericPublicKey::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete ec_p256_public_key_; - if (this != internal_default_instance()) delete rsa2048_public_key_; - if (this != internal_default_instance()) delete dh2048_public_key_; +inline void* PROTOBUF_NONNULL GenericPublicKey::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GenericPublicKey(arena); +} +constexpr auto GenericPublicKey::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GenericPublicKey), + alignof(GenericPublicKey)); +} +constexpr auto GenericPublicKey::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<31>{ + { + &_GenericPublicKey_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + GenericPublicKey::IsInitializedImpl, + &GenericPublicKey::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GenericPublicKey::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &GenericPublicKey::ByteSizeLong, + &GenericPublicKey::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._cached_size_), + true, + }, + "securemessage.GenericPublicKey", + }; } -void GenericPublicKey::ArenaDtor(void* object) { - GenericPublicKey* _this = reinterpret_cast< GenericPublicKey* >(object); - (void)_this; -} -void GenericPublicKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GenericPublicKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_ = + GenericPublicKey::InternalGenerateClassData_(); -void GenericPublicKey::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GenericPublicKey::GetClassData() const { + return GenericPublicKey_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 4, 0, 2> +GenericPublicKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GenericPublicKey_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + {::_pbi::TcParser::FastMtS1, + {34, 2, 2, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_)}}, + // required .securemessage.PublicKeyType type = 1; + {::_pbi::TcParser::FastEr1S1, + {8, 3, 3, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_)}}, + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)}}, + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required .securemessage.PublicKeyType type = 1; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .securemessage.DhPublicKey dh2048_public_key = 4; + {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>()}, + {::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>()}, + {::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>()}, + {1, 3}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GenericPublicKey::Clear() { // @@protoc_insertion_point(message_clear_start:securemessage.GenericPublicKey) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(ec_p256_public_key_ != nullptr); - ec_p256_public_key_->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(_impl_.ec_p256_public_key_ != nullptr); + _impl_.ec_p256_public_key_->Clear(); } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(rsa2048_public_key_ != nullptr); - rsa2048_public_key_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.rsa2048_public_key_ != nullptr); + _impl_.rsa2048_public_key_->Clear(); } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(dh2048_public_key_ != nullptr); - dh2048_public_key_->Clear(); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.dh2048_public_key_ != nullptr); + _impl_.dh2048_public_key_->Clear(); } - type_ = 1; + _impl_.type_ = 1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* GenericPublicKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required .securemessage.PublicKeyType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securemessage::PublicKeyType_IsValid(val))) { - _internal_set_type(static_cast<::securemessage::PublicKeyType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_ec_p256_public_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_rsa2048_public_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_dh2048_public_key(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* GenericPublicKey::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GenericPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GenericPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securemessage.GenericPublicKey) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // required .securemessage.PublicKeyType type = 1; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::ec_p256_public_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.ec_p256_public_key_, this_._impl_.ec_p256_public_key_->GetCachedSize(), target, + stream); } // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::rsa2048_public_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.rsa2048_public_key_, this_._impl_.rsa2048_public_key_->GetCachedSize(), target, + stream); } // optional .securemessage.DhPublicKey dh2048_public_key = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::dh2048_public_key(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.dh2048_public_key_, this_._impl_.dh2048_public_key_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securemessage.GenericPublicKey) return target; } -size_t GenericPublicKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securemessage.GenericPublicKey) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GenericPublicKey::ByteSizeLong(const MessageLite& base) { + const GenericPublicKey& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GenericPublicKey::ByteSizeLong() const { + const GenericPublicKey& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securemessage.GenericPublicKey) + ::size_t total_size = 0; - // required .securemessage.PublicKeyType type = 1; - if (_internal_has_type()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ec_p256_public_key_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_p256_public_key_); } - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *rsa2048_public_key_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rsa2048_public_key_); } - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - if (cached_has_bits & 0x00000004u) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *dh2048_public_key_); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dh2048_public_key_); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + { + // required .securemessage.PublicKeyType type = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); + } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void GenericPublicKey::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void GenericPublicKey::MergeFrom(const GenericPublicKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securemessage.GenericPublicKey) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_ec_p256_public_key()->::securemessage::EcP256PublicKey::MergeFrom(from._internal_ec_p256_public_key()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_rsa2048_public_key()->::securemessage::SimpleRsaPublicKey::MergeFrom(from._internal_rsa2048_public_key()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_dh2048_public_key()->::securemessage::DhPublicKey::MergeFrom(from._internal_dh2048_public_key()); - } - if (cached_has_bits & 0x00000008u) { - type_ = from.type_; - } - _has_bits_[0] |= cached_has_bits; +void GenericPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.GenericPublicKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.ec_p256_public_key_ != nullptr); + if (_this->_impl_.ec_p256_public_key_ == nullptr) { + _this->_impl_.ec_p256_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_); + } else { + _this->_impl_.ec_p256_public_key_->MergeFrom(*from._impl_.ec_p256_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.rsa2048_public_key_ != nullptr); + if (_this->_impl_.rsa2048_public_key_ == nullptr) { + _this->_impl_.rsa2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_); + } else { + _this->_impl_.rsa2048_public_key_->MergeFrom(*from._impl_.rsa2048_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.dh2048_public_key_ != nullptr); + if (_this->_impl_.dh2048_public_key_ == nullptr) { + _this->_impl_.dh2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_); + } else { + _this->_impl_.dh2048_public_key_->MergeFrom(*from._impl_.dh2048_public_key_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.type_ = from._impl_.type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void GenericPublicKey::CopyFrom(const GenericPublicKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securemessage.GenericPublicKey) + // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.GenericPublicKey) if (&from == this) return; Clear(); MergeFrom(from); } -bool GenericPublicKey::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; - if (_internal_has_ec_p256_public_key()) { - if (!ec_p256_public_key_->IsInitialized()) return false; +PROTOBUF_NOINLINE bool GenericPublicKey::IsInitializedImpl( + const MessageLite& msg) { + auto& this_ = static_cast(msg); + if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { + return false; } - if (_internal_has_rsa2048_public_key()) { - if (!rsa2048_public_key_->IsInitialized()) return false; + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { + if (!this_._impl_.ec_p256_public_key_->IsInitialized()) return false; } - if (_internal_has_dh2048_public_key()) { - if (!dh2048_public_key_->IsInitialized()) return false; + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { + if (!this_._impl_.rsa2048_public_key_->IsInitialized()) return false; + } + if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { + if (!this_._impl_.dh2048_public_key_->IsInitialized()) return false; } return true; } -void GenericPublicKey::InternalSwap(GenericPublicKey* other) { - using std::swap; +void GenericPublicKey::InternalSwap(GenericPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GenericPublicKey, dh2048_public_key_) - + sizeof(GenericPublicKey::dh2048_public_key_) - - PROTOBUF_FIELD_OFFSET(GenericPublicKey, ec_p256_public_key_)>( - reinterpret_cast(&ec_p256_public_key_), - reinterpret_cast(&other->ec_p256_public_key_)); - swap(type_, other->type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_) + + sizeof(GenericPublicKey::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)>( + reinterpret_cast(&_impl_.ec_p256_public_key_), + reinterpret_cast(&other->_impl_.ec_p256_public_key_)); } -std::string GenericPublicKey::GetTypeName() const { - return "securemessage.GenericPublicKey"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace securemessage -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securemessage::SecureMessage* Arena::CreateMaybeMessage< ::securemessage::SecureMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::SecureMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::Header* Arena::CreateMaybeMessage< ::securemessage::Header >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::Header >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::HeaderAndBody* Arena::CreateMaybeMessage< ::securemessage::HeaderAndBody >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::HeaderAndBody >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::HeaderAndBodyInternal* Arena::CreateMaybeMessage< ::securemessage::HeaderAndBodyInternal >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::HeaderAndBodyInternal >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::EcP256PublicKey* Arena::CreateMaybeMessage< ::securemessage::EcP256PublicKey >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::EcP256PublicKey >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::SimpleRsaPublicKey* Arena::CreateMaybeMessage< ::securemessage::SimpleRsaPublicKey >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::SimpleRsaPublicKey >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::DhPublicKey* Arena::CreateMaybeMessage< ::securemessage::DhPublicKey >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::DhPublicKey >(arena); -} -template<> PROTOBUF_NOINLINE ::securemessage::GenericPublicKey* Arena::CreateMaybeMessage< ::securemessage::GenericPublicKey >(Arena* arena) { - return Arena::CreateMessageInternal< ::securemessage::GenericPublicKey >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.h index de0cf362..f5513c3c 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.h +++ b/third_party/ukey2/compiled_proto/src/main/proto/securemessage.pb.h @@ -1,179 +1,415 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/securemessage.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/securemessage.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuremessage_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuremessage_2eproto +#ifndef src_2fmain_2fproto_2fsecuremessage_2eproto_2epb_2eh +#define src_2fmain_2fproto_2fsecuremessage_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuremessage_2eproto -PROTOBUF_NAMESPACE_OPEN + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_src_2fmain_2fproto_2fsecuremessage_2eproto + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fsecuremessage_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; +struct TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto { + static const ::uint32_t offsets[]; }; namespace securemessage { +enum EncScheme : int; +extern const uint32_t EncScheme_internal_data_[]; +enum PublicKeyType : int; +extern const uint32_t PublicKeyType_internal_data_[]; +enum SigScheme : int; +extern const uint32_t SigScheme_internal_data_[]; class DhPublicKey; struct DhPublicKeyDefaultTypeInternal; extern DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; class EcP256PublicKey; struct EcP256PublicKeyDefaultTypeInternal; extern EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; class GenericPublicKey; struct GenericPublicKeyDefaultTypeInternal; extern GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; class Header; struct HeaderDefaultTypeInternal; extern HeaderDefaultTypeInternal _Header_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; class HeaderAndBody; struct HeaderAndBodyDefaultTypeInternal; extern HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; class HeaderAndBodyInternal; struct HeaderAndBodyInternalDefaultTypeInternal; extern HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; class SecureMessage; struct SecureMessageDefaultTypeInternal; extern SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; class SimpleRsaPublicKey; struct SimpleRsaPublicKeyDefaultTypeInternal; extern SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; } // namespace securemessage -PROTOBUF_NAMESPACE_OPEN -template<> ::securemessage::DhPublicKey* Arena::CreateMaybeMessage<::securemessage::DhPublicKey>(Arena*); -template<> ::securemessage::EcP256PublicKey* Arena::CreateMaybeMessage<::securemessage::EcP256PublicKey>(Arena*); -template<> ::securemessage::GenericPublicKey* Arena::CreateMaybeMessage<::securemessage::GenericPublicKey>(Arena*); -template<> ::securemessage::Header* Arena::CreateMaybeMessage<::securemessage::Header>(Arena*); -template<> ::securemessage::HeaderAndBody* Arena::CreateMaybeMessage<::securemessage::HeaderAndBody>(Arena*); -template<> ::securemessage::HeaderAndBodyInternal* Arena::CreateMaybeMessage<::securemessage::HeaderAndBodyInternal>(Arena*); -template<> ::securemessage::SecureMessage* Arena::CreateMaybeMessage<::securemessage::SecureMessage>(Arena*); -template<> ::securemessage::SimpleRsaPublicKey* Arena::CreateMaybeMessage<::securemessage::SimpleRsaPublicKey>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securemessage { +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securemessage::EncScheme_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::EncScheme>; +template <> +internal::EnumTraitsT<::securemessage::PublicKeyType_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::PublicKeyType>; +template <> +internal::EnumTraitsT<::securemessage::SigScheme_internal_data_> + internal::EnumTraitsImpl::value<::securemessage::SigScheme>; +} // namespace protobuf +} // namespace google +namespace securemessage { enum SigScheme : int { HMAC_SHA256 = 1, ECDSA_P256_SHA256 = 2, - RSA2048_SHA256 = 3 + RSA2048_SHA256 = 3, }; -bool SigScheme_IsValid(int value); -constexpr SigScheme SigScheme_MIN = HMAC_SHA256; -constexpr SigScheme SigScheme_MAX = RSA2048_SHA256; -constexpr int SigScheme_ARRAYSIZE = SigScheme_MAX + 1; -const std::string& SigScheme_Name(SigScheme value); -template -inline const std::string& SigScheme_Name(T enum_t_value) { +extern const uint32_t SigScheme_internal_data_[]; +inline constexpr SigScheme SigScheme_MIN = + static_cast(1); +inline constexpr SigScheme SigScheme_MAX = + static_cast(3); +inline bool SigScheme_IsValid(int value) { + return 1 <= value && value <= 3; +} +inline constexpr int SigScheme_ARRAYSIZE = 3 + 1; +const ::std::string& SigScheme_Name(SigScheme value); +template +const ::std::string& SigScheme_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SigScheme_Name."); - return SigScheme_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to SigScheme_Name()."); + return SigScheme_Name(static_cast(value)); } bool SigScheme_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SigScheme* value); + ::absl::string_view name, SigScheme* PROTOBUF_NONNULL value); enum EncScheme : int { NONE = 1, - AES_256_CBC = 2 + AES_256_CBC = 2, }; -bool EncScheme_IsValid(int value); -constexpr EncScheme EncScheme_MIN = NONE; -constexpr EncScheme EncScheme_MAX = AES_256_CBC; -constexpr int EncScheme_ARRAYSIZE = EncScheme_MAX + 1; -const std::string& EncScheme_Name(EncScheme value); -template -inline const std::string& EncScheme_Name(T enum_t_value) { +extern const uint32_t EncScheme_internal_data_[]; +inline constexpr EncScheme EncScheme_MIN = + static_cast(1); +inline constexpr EncScheme EncScheme_MAX = + static_cast(2); +inline bool EncScheme_IsValid(int value) { + return 1 <= value && value <= 2; +} +inline constexpr int EncScheme_ARRAYSIZE = 2 + 1; +const ::std::string& EncScheme_Name(EncScheme value); +template +const ::std::string& EncScheme_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EncScheme_Name."); - return EncScheme_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to EncScheme_Name()."); + return EncScheme_Name(static_cast(value)); } bool EncScheme_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EncScheme* value); + ::absl::string_view name, EncScheme* PROTOBUF_NONNULL value); enum PublicKeyType : int { EC_P256 = 1, RSA2048 = 2, - DH2048_MODP = 3 + DH2048_MODP = 3, }; -bool PublicKeyType_IsValid(int value); -constexpr PublicKeyType PublicKeyType_MIN = EC_P256; -constexpr PublicKeyType PublicKeyType_MAX = DH2048_MODP; -constexpr int PublicKeyType_ARRAYSIZE = PublicKeyType_MAX + 1; -const std::string& PublicKeyType_Name(PublicKeyType value); -template -inline const std::string& PublicKeyType_Name(T enum_t_value) { +extern const uint32_t PublicKeyType_internal_data_[]; +inline constexpr PublicKeyType PublicKeyType_MIN = + static_cast(1); +inline constexpr PublicKeyType PublicKeyType_MAX = + static_cast(3); +inline bool PublicKeyType_IsValid(int value) { + return 1 <= value && value <= 3; +} +inline constexpr int PublicKeyType_ARRAYSIZE = 3 + 1; +const ::std::string& PublicKeyType_Name(PublicKeyType value); +template +const ::std::string& PublicKeyType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PublicKeyType_Name."); - return PublicKeyType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to PublicKeyType_Name()."); + return PublicKeyType_Name(static_cast(value)); } bool PublicKeyType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PublicKeyType* value); + ::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value); + // =================================================================== -class SecureMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.SecureMessage) */ { - public: - inline SecureMessage() : SecureMessage(nullptr) {} - ~SecureMessage() override; - explicit constexpr SecureMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - SecureMessage(const SecureMessage& from); - SecureMessage(SecureMessage&& from) noexcept - : SecureMessage() { - *this = ::std::move(from); +// ------------------------------------------------------------------- + +class SimpleRsaPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.SimpleRsaPublicKey) */ { + public: + inline SimpleRsaPublicKey() : SimpleRsaPublicKey(nullptr) {} + ~SimpleRsaPublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SimpleRsaPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SimpleRsaPublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SimpleRsaPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline SimpleRsaPublicKey(const SimpleRsaPublicKey& from) : SimpleRsaPublicKey(nullptr, from) {} + inline SimpleRsaPublicKey(SimpleRsaPublicKey&& from) noexcept + : SimpleRsaPublicKey(nullptr, ::std::move(from)) {} + inline SimpleRsaPublicKey& operator=(const SimpleRsaPublicKey& from) { + CopyFrom(from); + return *this; + } + inline SimpleRsaPublicKey& operator=(SimpleRsaPublicKey&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const SimpleRsaPublicKey& default_instance() { + return *reinterpret_cast( + &_SimpleRsaPublicKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SimpleRsaPublicKey& a, SimpleRsaPublicKey& b) { a.Swap(&b); } + inline void Swap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SimpleRsaPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const SimpleRsaPublicKey& from); + void MergeFrom(const SimpleRsaPublicKey& from) { SimpleRsaPublicKey::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.SimpleRsaPublicKey"; } + + explicit SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SimpleRsaPublicKey& from); + SimpleRsaPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SimpleRsaPublicKey&& from) noexcept + : SimpleRsaPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kNFieldNumber = 1, + kEFieldNumber = 2, + }; + // required bytes n = 1; + bool has_n() const; + void clear_n() ; + const ::std::string& n() const; + template + void set_n(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_n(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_n(); + void set_allocated_n(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_n() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_n(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_n(); + + public: + // optional int32 e = 2 [default = 65537]; + bool has_e() const; + void clear_e() ; + ::int32_t e() const; + void set_e(::int32_t value); + + private: + ::int32_t _internal_e() const; + void _internal_set_e(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:securemessage.SimpleRsaPublicKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SimpleRsaPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr n_; + ::int32_t e_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; +// ------------------------------------------------------------------- + +class SecureMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.SecureMessage) */ { + public: + inline SecureMessage() : SecureMessage(nullptr) {} + ~SecureMessage() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SecureMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SecureMessage)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SecureMessage(::google::protobuf::internal::ConstantInitialized); + + inline SecureMessage(const SecureMessage& from) : SecureMessage(nullptr, from) {} + inline SecureMessage(SecureMessage&& from) noexcept + : SecureMessage(nullptr, ::std::move(from)) {} inline SecureMessage& operator=(const SecureMessage& from) { CopyFrom(from); return *this; } inline SecureMessage& operator=(SecureMessage&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -181,169 +417,206 @@ class SecureMessage final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const SecureMessage& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_SecureMessage_default_instance_); } - static inline const SecureMessage* internal_default_instance() { - return reinterpret_cast( - &_SecureMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SecureMessage& a, SecureMessage& b) { - a.Swap(&b); - } - inline void Swap(SecureMessage* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(SecureMessage& a, SecureMessage& b) { a.Swap(&b); } + inline void Swap(SecureMessage* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SecureMessage* other) { + void UnsafeArenaSwap(SecureMessage* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SecureMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SecureMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const SecureMessage& from); - void MergeFrom(const SecureMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const SecureMessage& from) { SecureMessage::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SecureMessage* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.SecureMessage"; - } - protected: - explicit SecureMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SecureMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.SecureMessage"; } + + explicit SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecureMessage& from); + SecureMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SecureMessage&& from) noexcept + : SecureMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeaderAndBodyFieldNumber = 1, kSignatureFieldNumber = 2, }; // required bytes header_and_body = 1; bool has_header_and_body() const; - private: - bool _internal_has_header_and_body() const; - public: - void clear_header_and_body(); - const std::string& header_and_body() const; - template - void set_header_and_body(ArgT0&& arg0, ArgT... args); - std::string* mutable_header_and_body(); - PROTOBUF_NODISCARD std::string* release_header_and_body(); - void set_allocated_header_and_body(std::string* header_and_body); - private: - const std::string& _internal_header_and_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header_and_body(const std::string& value); - std::string* _internal_mutable_header_and_body(); - public: + void clear_header_and_body() ; + const ::std::string& header_and_body() const; + template + void set_header_and_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header_and_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_and_body(); + void set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_header_and_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header_and_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header_and_body(); + + public: // required bytes signature = 2; bool has_signature() const; - private: - bool _internal_has_signature() const; - public: - void clear_signature(); - const std::string& signature() const; - template - void set_signature(ArgT0&& arg0, ArgT... args); - std::string* mutable_signature(); - PROTOBUF_NODISCARD std::string* release_signature(); - void set_allocated_signature(std::string* signature); - private: - const std::string& _internal_signature() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const std::string& value); - std::string* _internal_mutable_signature(); - public: + void clear_signature() ; + const ::std::string& signature() const; + template + void set_signature(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_signature(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature(); + void set_allocated_signature(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_signature() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signature(); + + public: // @@protoc_insertion_point(class_scope:securemessage.SecureMessage) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr header_and_body_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SecureMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr header_and_body_; + ::google::protobuf::internal::ArenaStringPtr signature_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; // ------------------------------------------------------------------- -class Header final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.Header) */ { +class HeaderAndBodyInternal final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBodyInternal) */ { public: - inline Header() : Header(nullptr) {} - ~Header() override; - explicit constexpr Header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline HeaderAndBodyInternal() : HeaderAndBodyInternal(nullptr) {} + ~HeaderAndBodyInternal() PROTOBUF_FINAL; - Header(const Header& from); - Header(Header&& from) noexcept - : Header() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HeaderAndBodyInternal* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBodyInternal)); } +#endif - inline Header& operator=(const Header& from) { + template + explicit PROTOBUF_CONSTEXPR HeaderAndBodyInternal(::google::protobuf::internal::ConstantInitialized); + + inline HeaderAndBodyInternal(const HeaderAndBodyInternal& from) : HeaderAndBodyInternal(nullptr, from) {} + inline HeaderAndBodyInternal(HeaderAndBodyInternal&& from) noexcept + : HeaderAndBodyInternal(nullptr, ::std::move(from)) {} + inline HeaderAndBodyInternal& operator=(const HeaderAndBodyInternal& from) { CopyFrom(from); return *this; } - inline Header& operator=(Header&& from) noexcept { + inline HeaderAndBodyInternal& operator=(HeaderAndBodyInternal&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -351,87 +624,314 @@ class Header final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const Header& default_instance() { - return *internal_default_instance(); + static const HeaderAndBodyInternal& default_instance() { + return *reinterpret_cast( + &_HeaderAndBodyInternal_default_instance_); } - static inline const Header* internal_default_instance() { - return reinterpret_cast( - &_Header_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Header& a, Header& b) { - a.Swap(&b); - } - inline void Swap(Header* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(HeaderAndBodyInternal& a, HeaderAndBodyInternal& b) { a.Swap(&b); } + inline void Swap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Header* other) { + void UnsafeArenaSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Header* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage
(arena); + HeaderAndBodyInternal* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Header& from); - void MergeFrom(const Header& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const HeaderAndBodyInternal& from); + void MergeFrom(const HeaderAndBodyInternal& from) { HeaderAndBodyInternal::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Header* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.Header"; - } - protected: - explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBodyInternal"; } + + explicit HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBodyInternal& from); + HeaderAndBodyInternal( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBodyInternal&& from) noexcept + : HeaderAndBodyInternal(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kHeaderFieldNumber = 1, + kBodyFieldNumber = 2, + }; + // required bytes header = 1; + bool has_header() const; + void clear_header() ; + const ::std::string& header() const; + template + void set_header(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header(); + void set_allocated_header(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_header() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // required bytes body = 2; + bool has_body() const; + void clear_body() ; + const ::std::string& body() const; + template + void set_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); + void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBodyInternal) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HeaderAndBodyInternal& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr header_; + ::google::protobuf::internal::ArenaStringPtr body_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; +// ------------------------------------------------------------------- + +class Header final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.Header) */ { + public: + inline Header() : Header(nullptr) {} + ~Header() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Header* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Header)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Header(::google::protobuf::internal::ConstantInitialized); + + inline Header(const Header& from) : Header(nullptr, from) {} + inline Header(Header&& from) noexcept + : Header(nullptr, ::std::move(from)) {} + inline Header& operator=(const Header& from) { + CopyFrom(from); + return *this; + } + inline Header& operator=(Header&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Header& default_instance() { + return *reinterpret_cast( + &_Header_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Header& a, Header& b) { a.Swap(&b); } + inline void Swap(Header* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Header* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Header* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct
(arena); + } + void CopyFrom(const Header& from); + void MergeFrom(const Header& from) { Header::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Header* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.Header"; } + + explicit Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from); + Header( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Header&& from) noexcept + : Header(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- enum : int { kVerificationKeyIdFieldNumber = 3, kDecryptionKeyIdFieldNumber = 4, @@ -443,502 +943,169 @@ class Header final : }; // optional bytes verification_key_id = 3; bool has_verification_key_id() const; - private: - bool _internal_has_verification_key_id() const; - public: - void clear_verification_key_id(); - const std::string& verification_key_id() const; - template - void set_verification_key_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_verification_key_id(); - PROTOBUF_NODISCARD std::string* release_verification_key_id(); - void set_allocated_verification_key_id(std::string* verification_key_id); - private: - const std::string& _internal_verification_key_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_verification_key_id(const std::string& value); - std::string* _internal_mutable_verification_key_id(); - public: + void clear_verification_key_id() ; + const ::std::string& verification_key_id() const; + template + void set_verification_key_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_verification_key_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_verification_key_id(); + void set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_verification_key_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_verification_key_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_verification_key_id(); + + public: // optional bytes decryption_key_id = 4; bool has_decryption_key_id() const; - private: - bool _internal_has_decryption_key_id() const; - public: - void clear_decryption_key_id(); - const std::string& decryption_key_id() const; - template - void set_decryption_key_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_decryption_key_id(); - PROTOBUF_NODISCARD std::string* release_decryption_key_id(); - void set_allocated_decryption_key_id(std::string* decryption_key_id); - private: - const std::string& _internal_decryption_key_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_decryption_key_id(const std::string& value); - std::string* _internal_mutable_decryption_key_id(); - public: + void clear_decryption_key_id() ; + const ::std::string& decryption_key_id() const; + template + void set_decryption_key_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_decryption_key_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_decryption_key_id(); + void set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_decryption_key_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_decryption_key_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_decryption_key_id(); + + public: // optional bytes iv = 5; bool has_iv() const; - private: - bool _internal_has_iv() const; - public: - void clear_iv(); - const std::string& iv() const; - template - void set_iv(ArgT0&& arg0, ArgT... args); - std::string* mutable_iv(); - PROTOBUF_NODISCARD std::string* release_iv(); - void set_allocated_iv(std::string* iv); - private: - const std::string& _internal_iv() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_iv(const std::string& value); - std::string* _internal_mutable_iv(); - public: + void clear_iv() ; + const ::std::string& iv() const; + template + void set_iv(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_iv(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_iv(); + void set_allocated_iv(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_iv() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_iv(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_iv(); + + public: // optional bytes public_metadata = 6; bool has_public_metadata() const; - private: - bool _internal_has_public_metadata() const; - public: - void clear_public_metadata(); - const std::string& public_metadata() const; - template - void set_public_metadata(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_metadata(); - PROTOBUF_NODISCARD std::string* release_public_metadata(); - void set_allocated_public_metadata(std::string* public_metadata); - private: - const std::string& _internal_public_metadata() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_metadata(const std::string& value); - std::string* _internal_mutable_public_metadata(); - public: + void clear_public_metadata() ; + const ::std::string& public_metadata() const; + template + void set_public_metadata(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_metadata(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_metadata(); + void set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_public_metadata() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_metadata(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_metadata(); + + public: // optional uint32 associated_data_length = 7 [default = 0]; bool has_associated_data_length() const; - private: - bool _internal_has_associated_data_length() const; - public: - void clear_associated_data_length(); - uint32_t associated_data_length() const; - void set_associated_data_length(uint32_t value); - private: - uint32_t _internal_associated_data_length() const; - void _internal_set_associated_data_length(uint32_t value); - public: + void clear_associated_data_length() ; + ::uint32_t associated_data_length() const; + void set_associated_data_length(::uint32_t value); + private: + ::uint32_t _internal_associated_data_length() const; + void _internal_set_associated_data_length(::uint32_t value); + + public: // required .securemessage.SigScheme signature_scheme = 1; bool has_signature_scheme() const; - private: - bool _internal_has_signature_scheme() const; - public: - void clear_signature_scheme(); + void clear_signature_scheme() ; ::securemessage::SigScheme signature_scheme() const; void set_signature_scheme(::securemessage::SigScheme value); + private: ::securemessage::SigScheme _internal_signature_scheme() const; void _internal_set_signature_scheme(::securemessage::SigScheme value); - public: + public: // required .securemessage.EncScheme encryption_scheme = 2; bool has_encryption_scheme() const; - private: - bool _internal_has_encryption_scheme() const; - public: - void clear_encryption_scheme(); + void clear_encryption_scheme() ; ::securemessage::EncScheme encryption_scheme() const; void set_encryption_scheme(::securemessage::EncScheme value); + private: ::securemessage::EncScheme _internal_encryption_scheme() const; void _internal_set_encryption_scheme(::securemessage::EncScheme value); - public: + public: // @@protoc_insertion_point(class_scope:securemessage.Header) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 2, 0, + 2> + _table_; - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr verification_key_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr decryption_key_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iv_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_metadata_; - uint32_t associated_data_length_; - int signature_scheme_; - int encryption_scheme_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; -// ------------------------------------------------------------------- - -class HeaderAndBody final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBody) */ { - public: - inline HeaderAndBody() : HeaderAndBody(nullptr) {} - ~HeaderAndBody() override; - explicit constexpr HeaderAndBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - HeaderAndBody(const HeaderAndBody& from); - HeaderAndBody(HeaderAndBody&& from) noexcept - : HeaderAndBody() { - *this = ::std::move(from); - } - - inline HeaderAndBody& operator=(const HeaderAndBody& from) { - CopyFrom(from); - return *this; - } - inline HeaderAndBody& operator=(HeaderAndBody&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const HeaderAndBody& default_instance() { - return *internal_default_instance(); - } - static inline const HeaderAndBody* internal_default_instance() { - return reinterpret_cast( - &_HeaderAndBody_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(HeaderAndBody& a, HeaderAndBody& b) { - a.Swap(&b); - } - inline void Swap(HeaderAndBody* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HeaderAndBody* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HeaderAndBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const HeaderAndBody& from); - void MergeFrom(const HeaderAndBody& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(HeaderAndBody* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.HeaderAndBody"; - } - protected: - explicit HeaderAndBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBodyFieldNumber = 2, - kHeaderFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Header& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr verification_key_id_; + ::google::protobuf::internal::ArenaStringPtr decryption_key_id_; + ::google::protobuf::internal::ArenaStringPtr iv_; + ::google::protobuf::internal::ArenaStringPtr public_metadata_; + ::uint32_t associated_data_length_; + int signature_scheme_; + int encryption_scheme_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // required bytes body = 2; - bool has_body() const; - private: - bool _internal_has_body() const; - public: - void clear_body(); - const std::string& body() const; - template - void set_body(ArgT0&& arg0, ArgT... args); - std::string* mutable_body(); - PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* body); - private: - const std::string& _internal_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); - std::string* _internal_mutable_body(); - public: - - // required .securemessage.Header header = 1; - bool has_header() const; - private: - bool _internal_has_header() const; - public: - void clear_header(); - const ::securemessage::Header& header() const; - PROTOBUF_NODISCARD ::securemessage::Header* release_header(); - ::securemessage::Header* mutable_header(); - void set_allocated_header(::securemessage::Header* header); - private: - const ::securemessage::Header& _internal_header() const; - ::securemessage::Header* _internal_mutable_header(); - public: - void unsafe_arena_set_allocated_header( - ::securemessage::Header* header); - ::securemessage::Header* unsafe_arena_release_header(); - - // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBody) - private: - class _Internal; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - ::securemessage::Header* header_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; // ------------------------------------------------------------------- -class HeaderAndBodyInternal final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBodyInternal) */ { - public: - inline HeaderAndBodyInternal() : HeaderAndBodyInternal(nullptr) {} - ~HeaderAndBodyInternal() override; - explicit constexpr HeaderAndBodyInternal(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - HeaderAndBodyInternal(const HeaderAndBodyInternal& from); - HeaderAndBodyInternal(HeaderAndBodyInternal&& from) noexcept - : HeaderAndBodyInternal() { - *this = ::std::move(from); - } - - inline HeaderAndBodyInternal& operator=(const HeaderAndBodyInternal& from) { - CopyFrom(from); - return *this; - } - inline HeaderAndBodyInternal& operator=(HeaderAndBodyInternal&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const HeaderAndBodyInternal& default_instance() { - return *internal_default_instance(); - } - static inline const HeaderAndBodyInternal* internal_default_instance() { - return reinterpret_cast( - &_HeaderAndBodyInternal_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(HeaderAndBodyInternal& a, HeaderAndBodyInternal& b) { - a.Swap(&b); - } - inline void Swap(HeaderAndBodyInternal* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HeaderAndBodyInternal* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HeaderAndBodyInternal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const HeaderAndBodyInternal& from); - void MergeFrom(const HeaderAndBodyInternal& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(HeaderAndBodyInternal* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.HeaderAndBodyInternal"; - } - protected: - explicit HeaderAndBodyInternal(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kHeaderFieldNumber = 1, - kBodyFieldNumber = 2, - }; - // required bytes header = 1; - bool has_header() const; - private: - bool _internal_has_header() const; - public: - void clear_header(); - const std::string& header() const; - template - void set_header(ArgT0&& arg0, ArgT... args); - std::string* mutable_header(); - PROTOBUF_NODISCARD std::string* release_header(); - void set_allocated_header(std::string* header); - private: - const std::string& _internal_header() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header(const std::string& value); - std::string* _internal_mutable_header(); - public: - - // required bytes body = 2; - bool has_body() const; - private: - bool _internal_has_body() const; - public: - void clear_body(); - const std::string& body() const; - template - void set_body(ArgT0&& arg0, ArgT... args); - std::string* mutable_body(); - PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* body); - private: - const std::string& _internal_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); - std::string* _internal_mutable_body(); - public: - - // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBodyInternal) - private: - class _Internal; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr header_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; -// ------------------------------------------------------------------- - -class EcP256PublicKey final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.EcP256PublicKey) */ { +class EcP256PublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.EcP256PublicKey) */ { public: inline EcP256PublicKey() : EcP256PublicKey(nullptr) {} - ~EcP256PublicKey() override; - explicit constexpr EcP256PublicKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EcP256PublicKey() PROTOBUF_FINAL; - EcP256PublicKey(const EcP256PublicKey& from); - EcP256PublicKey(EcP256PublicKey&& from) noexcept - : EcP256PublicKey() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EcP256PublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EcP256PublicKey)); } +#endif + template + explicit PROTOBUF_CONSTEXPR EcP256PublicKey(::google::protobuf::internal::ConstantInitialized); + + inline EcP256PublicKey(const EcP256PublicKey& from) : EcP256PublicKey(nullptr, from) {} + inline EcP256PublicKey(EcP256PublicKey&& from) noexcept + : EcP256PublicKey(nullptr, ::std::move(from)) {} inline EcP256PublicKey& operator=(const EcP256PublicKey& from) { CopyFrom(from); return *this; } inline EcP256PublicKey& operator=(EcP256PublicKey&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -946,331 +1113,206 @@ class EcP256PublicKey final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const EcP256PublicKey& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_EcP256PublicKey_default_instance_); } - static inline const EcP256PublicKey* internal_default_instance() { - return reinterpret_cast( - &_EcP256PublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(EcP256PublicKey& a, EcP256PublicKey& b) { - a.Swap(&b); - } - inline void Swap(EcP256PublicKey* other) { + static constexpr int kIndexInFileMessages = 4; + friend void swap(EcP256PublicKey& a, EcP256PublicKey& b) { a.Swap(&b); } + inline void Swap(EcP256PublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EcP256PublicKey* other) { + void UnsafeArenaSwap(EcP256PublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EcP256PublicKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EcP256PublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const EcP256PublicKey& from); - void MergeFrom(const EcP256PublicKey& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const EcP256PublicKey& from) { EcP256PublicKey::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(EcP256PublicKey* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.EcP256PublicKey"; - } - protected: - explicit EcP256PublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EcP256PublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.EcP256PublicKey"; } + + explicit EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcP256PublicKey& from); + EcP256PublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcP256PublicKey&& from) noexcept + : EcP256PublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kXFieldNumber = 1, kYFieldNumber = 2, }; // required bytes x = 1; bool has_x() const; - private: - bool _internal_has_x() const; - public: - void clear_x(); - const std::string& x() const; - template - void set_x(ArgT0&& arg0, ArgT... args); - std::string* mutable_x(); - PROTOBUF_NODISCARD std::string* release_x(); - void set_allocated_x(std::string* x); - private: - const std::string& _internal_x() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_x(const std::string& value); - std::string* _internal_mutable_x(); - public: + void clear_x() ; + const ::std::string& x() const; + template + void set_x(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_x(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); + void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_x() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); + + public: // required bytes y = 2; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); - const std::string& y() const; - template - void set_y(ArgT0&& arg0, ArgT... args); - std::string* mutable_y(); - PROTOBUF_NODISCARD std::string* release_y(); - void set_allocated_y(std::string* y); - private: - const std::string& _internal_y() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_y(const std::string& value); - std::string* _internal_mutable_y(); - public: + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: // @@protoc_insertion_point(class_scope:securemessage.EcP256PublicKey) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr x_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr y_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; -// ------------------------------------------------------------------- - -class SimpleRsaPublicKey final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.SimpleRsaPublicKey) */ { - public: - inline SimpleRsaPublicKey() : SimpleRsaPublicKey(nullptr) {} - ~SimpleRsaPublicKey() override; - explicit constexpr SimpleRsaPublicKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SimpleRsaPublicKey(const SimpleRsaPublicKey& from); - SimpleRsaPublicKey(SimpleRsaPublicKey&& from) noexcept - : SimpleRsaPublicKey() { - *this = ::std::move(from); - } - - inline SimpleRsaPublicKey& operator=(const SimpleRsaPublicKey& from) { - CopyFrom(from); - return *this; - } - inline SimpleRsaPublicKey& operator=(SimpleRsaPublicKey&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const SimpleRsaPublicKey& default_instance() { - return *internal_default_instance(); - } - static inline const SimpleRsaPublicKey* internal_default_instance() { - return reinterpret_cast( - &_SimpleRsaPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SimpleRsaPublicKey& a, SimpleRsaPublicKey& b) { - a.Swap(&b); - } - inline void Swap(SimpleRsaPublicKey* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SimpleRsaPublicKey* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SimpleRsaPublicKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SimpleRsaPublicKey& from); - void MergeFrom(const SimpleRsaPublicKey& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SimpleRsaPublicKey* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.SimpleRsaPublicKey"; - } - protected: - explicit SimpleRsaPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNFieldNumber = 1, - kEFieldNumber = 2, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EcP256PublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr x_; + ::google::protobuf::internal::ArenaStringPtr y_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // required bytes n = 1; - bool has_n() const; - private: - bool _internal_has_n() const; - public: - void clear_n(); - const std::string& n() const; - template - void set_n(ArgT0&& arg0, ArgT... args); - std::string* mutable_n(); - PROTOBUF_NODISCARD std::string* release_n(); - void set_allocated_n(std::string* n); - private: - const std::string& _internal_n() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_n(const std::string& value); - std::string* _internal_mutable_n(); - public: - - // optional int32 e = 2 [default = 65537]; - bool has_e() const; - private: - bool _internal_has_e() const; - public: - void clear_e(); - int32_t e() const; - void set_e(int32_t value); - private: - int32_t _internal_e() const; - void _internal_set_e(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securemessage.SimpleRsaPublicKey) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr n_; - int32_t e_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; // ------------------------------------------------------------------- -class DhPublicKey final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.DhPublicKey) */ { +class DhPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.DhPublicKey) */ { public: inline DhPublicKey() : DhPublicKey(nullptr) {} - ~DhPublicKey() override; - explicit constexpr DhPublicKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~DhPublicKey() PROTOBUF_FINAL; - DhPublicKey(const DhPublicKey& from); - DhPublicKey(DhPublicKey&& from) noexcept - : DhPublicKey() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DhPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DhPublicKey)); } +#endif + template + explicit PROTOBUF_CONSTEXPR DhPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline DhPublicKey(const DhPublicKey& from) : DhPublicKey(nullptr, from) {} + inline DhPublicKey(DhPublicKey&& from) noexcept + : DhPublicKey(nullptr, ::std::move(from)) {} inline DhPublicKey& operator=(const DhPublicKey& from) { CopyFrom(from); return *this; } inline DhPublicKey& operator=(DhPublicKey&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1278,146 +1320,394 @@ class DhPublicKey final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const DhPublicKey& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_DhPublicKey_default_instance_); } - static inline const DhPublicKey* internal_default_instance() { - return reinterpret_cast( - &_DhPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(DhPublicKey& a, DhPublicKey& b) { - a.Swap(&b); - } - inline void Swap(DhPublicKey* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(DhPublicKey& a, DhPublicKey& b) { a.Swap(&b); } + inline void Swap(DhPublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DhPublicKey* other) { + void UnsafeArenaSwap(DhPublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DhPublicKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DhPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const DhPublicKey& from); - void MergeFrom(const DhPublicKey& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const DhPublicKey& from) { DhPublicKey::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DhPublicKey* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.DhPublicKey"; - } - protected: - explicit DhPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DhPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.DhPublicKey"; } + + explicit DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DhPublicKey& from); + DhPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DhPublicKey&& from) noexcept + : DhPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kYFieldNumber = 1, }; // required bytes y = 1; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); - const std::string& y() const; - template - void set_y(ArgT0&& arg0, ArgT... args); - std::string* mutable_y(); - PROTOBUF_NODISCARD std::string* release_y(); - void set_allocated_y(std::string* y); - private: - const std::string& _internal_y() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_y(const std::string& value); - std::string* _internal_mutable_y(); - public: + void clear_y() ; + const ::std::string& y() const; + template + void set_y(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); + void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); + + public: // @@protoc_insertion_point(class_scope:securemessage.DhPublicKey) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr y_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DhPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr y_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; // ------------------------------------------------------------------- -class GenericPublicKey final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securemessage.GenericPublicKey) */ { +class HeaderAndBody final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBody) */ { public: - inline GenericPublicKey() : GenericPublicKey(nullptr) {} - ~GenericPublicKey() override; - explicit constexpr GenericPublicKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline HeaderAndBody() : HeaderAndBody(nullptr) {} + ~HeaderAndBody() PROTOBUF_FINAL; - GenericPublicKey(const GenericPublicKey& from); - GenericPublicKey(GenericPublicKey&& from) noexcept - : GenericPublicKey() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HeaderAndBody* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBody)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR HeaderAndBody(::google::protobuf::internal::ConstantInitialized); + + inline HeaderAndBody(const HeaderAndBody& from) : HeaderAndBody(nullptr, from) {} + inline HeaderAndBody(HeaderAndBody&& from) noexcept + : HeaderAndBody(nullptr, ::std::move(from)) {} + inline HeaderAndBody& operator=(const HeaderAndBody& from) { + CopyFrom(from); + return *this; + } + inline HeaderAndBody& operator=(HeaderAndBody&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const HeaderAndBody& default_instance() { + return *reinterpret_cast( + &_HeaderAndBody_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(HeaderAndBody& a, HeaderAndBody& b) { a.Swap(&b); } + inline void Swap(HeaderAndBody* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HeaderAndBody* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HeaderAndBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const HeaderAndBody& from); + void MergeFrom(const HeaderAndBody& from) { HeaderAndBody::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } + + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HeaderAndBody* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBody"; } + + explicit HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBody& from); + HeaderAndBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBody&& from) noexcept + : HeaderAndBody(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kBodyFieldNumber = 2, + kHeaderFieldNumber = 1, + }; + // required bytes body = 2; + bool has_body() const; + void clear_body() ; + const ::std::string& body() const; + template + void set_body(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); + void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); + + public: + // required .securemessage.Header header = 1; + bool has_header() const; + void clear_header() ; + const ::securemessage::Header& header() const; + [[nodiscard]] ::securemessage::Header* PROTOBUF_NULLABLE release_header(); + ::securemessage::Header* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); + ::securemessage::Header* PROTOBUF_NULLABLE unsafe_arena_release_header(); + + private: + const ::securemessage::Header& _internal_header() const; + ::securemessage::Header* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBody) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HeaderAndBody& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr body_; + ::securemessage::Header* PROTOBUF_NULLABLE header_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; +// ------------------------------------------------------------------- + +class GenericPublicKey final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securemessage.GenericPublicKey) */ { + public: + inline GenericPublicKey() : GenericPublicKey(nullptr) {} + ~GenericPublicKey() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GenericPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GenericPublicKey)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GenericPublicKey(::google::protobuf::internal::ConstantInitialized); + + inline GenericPublicKey(const GenericPublicKey& from) : GenericPublicKey(nullptr, from) {} + inline GenericPublicKey(GenericPublicKey&& from) noexcept + : GenericPublicKey(nullptr, ::std::move(from)) {} inline GenericPublicKey& operator=(const GenericPublicKey& from) { CopyFrom(from); return *this; } inline GenericPublicKey& operator=(GenericPublicKey&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1425,87 +1715,107 @@ class GenericPublicKey final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const GenericPublicKey& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_GenericPublicKey_default_instance_); } - static inline const GenericPublicKey* internal_default_instance() { - return reinterpret_cast( - &_GenericPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GenericPublicKey& a, GenericPublicKey& b) { - a.Swap(&b); - } - inline void Swap(GenericPublicKey* other) { + static constexpr int kIndexInFileMessages = 7; + friend void swap(GenericPublicKey& a, GenericPublicKey& b) { a.Swap(&b); } + inline void Swap(GenericPublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GenericPublicKey* other) { + void UnsafeArenaSwap(GenericPublicKey* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GenericPublicKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GenericPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const GenericPublicKey& from); - void MergeFrom(const GenericPublicKey& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const GenericPublicKey& from) { GenericPublicKey::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GenericPublicKey* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securemessage.GenericPublicKey"; - } - protected: - explicit GenericPublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return IsInitializedImpl(*this); + } - std::string GetTypeName() const final; + private: + static bool IsInitializedImpl(const MessageLite& msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GenericPublicKey* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securemessage.GenericPublicKey"; } + + explicit GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GenericPublicKey& from); + GenericPublicKey( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GenericPublicKey&& from) noexcept + : GenericPublicKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kEcP256PublicKeyFieldNumber = 2, kRsa2048PublicKeyFieldNumber = 3, @@ -1514,232 +1824,249 @@ class GenericPublicKey final : }; // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; bool has_ec_p256_public_key() const; - private: - bool _internal_has_ec_p256_public_key() const; - public: - void clear_ec_p256_public_key(); + void clear_ec_p256_public_key() ; const ::securemessage::EcP256PublicKey& ec_p256_public_key() const; - PROTOBUF_NODISCARD ::securemessage::EcP256PublicKey* release_ec_p256_public_key(); - ::securemessage::EcP256PublicKey* mutable_ec_p256_public_key(); - void set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* ec_p256_public_key); + [[nodiscard]] ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE release_ec_p256_public_key(); + ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL mutable_ec_p256_public_key(); + void set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE unsafe_arena_release_ec_p256_public_key(); + private: const ::securemessage::EcP256PublicKey& _internal_ec_p256_public_key() const; - ::securemessage::EcP256PublicKey* _internal_mutable_ec_p256_public_key(); - public: - void unsafe_arena_set_allocated_ec_p256_public_key( - ::securemessage::EcP256PublicKey* ec_p256_public_key); - ::securemessage::EcP256PublicKey* unsafe_arena_release_ec_p256_public_key(); + ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL _internal_mutable_ec_p256_public_key(); + public: // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; bool has_rsa2048_public_key() const; - private: - bool _internal_has_rsa2048_public_key() const; - public: - void clear_rsa2048_public_key(); + void clear_rsa2048_public_key() ; const ::securemessage::SimpleRsaPublicKey& rsa2048_public_key() const; - PROTOBUF_NODISCARD ::securemessage::SimpleRsaPublicKey* release_rsa2048_public_key(); - ::securemessage::SimpleRsaPublicKey* mutable_rsa2048_public_key(); - void set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* rsa2048_public_key); + [[nodiscard]] ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE release_rsa2048_public_key(); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL mutable_rsa2048_public_key(); + void set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_rsa2048_public_key(); + private: const ::securemessage::SimpleRsaPublicKey& _internal_rsa2048_public_key() const; - ::securemessage::SimpleRsaPublicKey* _internal_mutable_rsa2048_public_key(); - public: - void unsafe_arena_set_allocated_rsa2048_public_key( - ::securemessage::SimpleRsaPublicKey* rsa2048_public_key); - ::securemessage::SimpleRsaPublicKey* unsafe_arena_release_rsa2048_public_key(); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL _internal_mutable_rsa2048_public_key(); + public: // optional .securemessage.DhPublicKey dh2048_public_key = 4; bool has_dh2048_public_key() const; - private: - bool _internal_has_dh2048_public_key() const; - public: - void clear_dh2048_public_key(); + void clear_dh2048_public_key() ; const ::securemessage::DhPublicKey& dh2048_public_key() const; - PROTOBUF_NODISCARD ::securemessage::DhPublicKey* release_dh2048_public_key(); - ::securemessage::DhPublicKey* mutable_dh2048_public_key(); - void set_allocated_dh2048_public_key(::securemessage::DhPublicKey* dh2048_public_key); + [[nodiscard]] ::securemessage::DhPublicKey* PROTOBUF_NULLABLE release_dh2048_public_key(); + ::securemessage::DhPublicKey* PROTOBUF_NONNULL mutable_dh2048_public_key(); + void set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_dh2048_public_key(); + private: const ::securemessage::DhPublicKey& _internal_dh2048_public_key() const; - ::securemessage::DhPublicKey* _internal_mutable_dh2048_public_key(); - public: - void unsafe_arena_set_allocated_dh2048_public_key( - ::securemessage::DhPublicKey* dh2048_public_key); - ::securemessage::DhPublicKey* unsafe_arena_release_dh2048_public_key(); + ::securemessage::DhPublicKey* PROTOBUF_NONNULL _internal_mutable_dh2048_public_key(); + public: // required .securemessage.PublicKeyType type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::securemessage::PublicKeyType type() const; void set_type(::securemessage::PublicKeyType value); + private: ::securemessage::PublicKeyType _internal_type() const; void _internal_set_type(::securemessage::PublicKeyType value); - public: + public: // @@protoc_insertion_point(class_scope:securemessage.GenericPublicKey) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 4, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::securemessage::EcP256PublicKey* ec_p256_public_key_; - ::securemessage::SimpleRsaPublicKey* rsa2048_public_key_; - ::securemessage::DhPublicKey* dh2048_public_key_; - int type_; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GenericPublicKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE ec_p256_public_key_; + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE rsa2048_public_key_; + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE dh2048_public_key_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fsecuremessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SecureMessage // required bytes header_and_body = 1; -inline bool SecureMessage::_internal_has_header_and_body() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SecureMessage::has_header_and_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SecureMessage::has_header_and_body() const { - return _internal_has_header_and_body(); -} inline void SecureMessage::clear_header_and_body() { - header_and_body_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_and_body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SecureMessage::header_and_body() const { +inline const ::std::string& SecureMessage::header_and_body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.SecureMessage.header_and_body) return _internal_header_and_body(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SecureMessage::set_header_and_body(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - header_and_body_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SecureMessage::set_header_and_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.header_and_body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.SecureMessage.header_and_body) } -inline std::string* SecureMessage::mutable_header_and_body() { - std::string* _s = _internal_mutable_header_and_body(); +inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_header_and_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_header_and_body(); // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.header_and_body) return _s; } -inline const std::string& SecureMessage::_internal_header_and_body() const { - return header_and_body_.Get(); +inline const ::std::string& SecureMessage::_internal_header_and_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_and_body_.Get(); } -inline void SecureMessage::_internal_set_header_and_body(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - header_and_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SecureMessage::_internal_set_header_and_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_and_body_.Set(value, GetArena()); } -inline std::string* SecureMessage::_internal_mutable_header_and_body() { - _has_bits_[0] |= 0x00000001u; - return header_and_body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_header_and_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.header_and_body_.Mutable( GetArena()); } -inline std::string* SecureMessage::release_header_and_body() { +inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_header_and_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.SecureMessage.header_and_body) - if (!_internal_has_header_and_body()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = header_and_body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (header_and_body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - header_and_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.header_and_body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_and_body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SecureMessage::set_allocated_header_and_body(std::string* header_and_body) { - if (header_and_body != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SecureMessage::set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - header_and_body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), header_and_body, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (header_and_body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - header_and_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.header_and_body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_and_body_.IsDefault()) { + _impl_.header_and_body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.header_and_body) } // required bytes signature = 2; -inline bool SecureMessage::_internal_has_signature() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SecureMessage::has_signature() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SecureMessage::has_signature() const { - return _internal_has_signature(); -} inline void SecureMessage::clear_signature() { - signature_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& SecureMessage::signature() const { +inline const ::std::string& SecureMessage::signature() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.SecureMessage.signature) return _internal_signature(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SecureMessage::set_signature(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - signature_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SecureMessage::set_signature(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.SecureMessage.signature) } -inline std::string* SecureMessage::mutable_signature() { - std::string* _s = _internal_mutable_signature(); +inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_signature(); // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.signature) return _s; } -inline const std::string& SecureMessage::_internal_signature() const { - return signature_.Get(); +inline const ::std::string& SecureMessage::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signature_.Get(); } -inline void SecureMessage::_internal_set_signature(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SecureMessage::_internal_set_signature(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_.Set(value, GetArena()); } -inline std::string* SecureMessage::_internal_mutable_signature() { - _has_bits_[0] |= 0x00000002u; - return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.signature_.Mutable( GetArena()); } -inline std::string* SecureMessage::release_signature() { +inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.SecureMessage.signature) - if (!_internal_has_signature()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signature_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.signature_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signature_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SecureMessage::set_allocated_signature(std::string* signature) { - if (signature != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void SecureMessage::set_allocated_signature(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signature_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.signature_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_.IsDefault()) { + _impl_.signature_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.signature) } @@ -1748,527 +2075,543 @@ inline void SecureMessage::set_allocated_signature(std::string* signature) { // Header // required .securemessage.SigScheme signature_scheme = 1; -inline bool Header::_internal_has_signature_scheme() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; +inline bool Header::has_signature_scheme() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } -inline bool Header::has_signature_scheme() const { - return _internal_has_signature_scheme(); -} inline void Header::clear_signature_scheme() { - signature_scheme_ = 1; - _has_bits_[0] &= ~0x00000020u; -} -inline ::securemessage::SigScheme Header::_internal_signature_scheme() const { - return static_cast< ::securemessage::SigScheme >(signature_scheme_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signature_scheme_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::securemessage::SigScheme Header::signature_scheme() const { // @@protoc_insertion_point(field_get:securemessage.Header.signature_scheme) return _internal_signature_scheme(); } -inline void Header::_internal_set_signature_scheme(::securemessage::SigScheme value) { - assert(::securemessage::SigScheme_IsValid(value)); - _has_bits_[0] |= 0x00000020u; - signature_scheme_ = value; -} inline void Header::set_signature_scheme(::securemessage::SigScheme value) { _internal_set_signature_scheme(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:securemessage.Header.signature_scheme) } +inline ::securemessage::SigScheme Header::_internal_signature_scheme() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::SigScheme>(_impl_.signature_scheme_); +} +inline void Header::_internal_set_signature_scheme(::securemessage::SigScheme value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::SigScheme_internal_data_)); + _impl_.signature_scheme_ = value; +} // required .securemessage.EncScheme encryption_scheme = 2; -inline bool Header::_internal_has_encryption_scheme() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; +inline bool Header::has_encryption_scheme() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } -inline bool Header::has_encryption_scheme() const { - return _internal_has_encryption_scheme(); -} inline void Header::clear_encryption_scheme() { - encryption_scheme_ = 1; - _has_bits_[0] &= ~0x00000040u; -} -inline ::securemessage::EncScheme Header::_internal_encryption_scheme() const { - return static_cast< ::securemessage::EncScheme >(encryption_scheme_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encryption_scheme_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::securemessage::EncScheme Header::encryption_scheme() const { // @@protoc_insertion_point(field_get:securemessage.Header.encryption_scheme) return _internal_encryption_scheme(); } -inline void Header::_internal_set_encryption_scheme(::securemessage::EncScheme value) { - assert(::securemessage::EncScheme_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - encryption_scheme_ = value; -} inline void Header::set_encryption_scheme(::securemessage::EncScheme value) { _internal_set_encryption_scheme(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:securemessage.Header.encryption_scheme) } +inline ::securemessage::EncScheme Header::_internal_encryption_scheme() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::EncScheme>(_impl_.encryption_scheme_); +} +inline void Header::_internal_set_encryption_scheme(::securemessage::EncScheme value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::EncScheme_internal_data_)); + _impl_.encryption_scheme_ = value; +} // optional bytes verification_key_id = 3; -inline bool Header::_internal_has_verification_key_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Header::has_verification_key_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Header::has_verification_key_id() const { - return _internal_has_verification_key_id(); -} inline void Header::clear_verification_key_id() { - verification_key_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.verification_key_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Header::verification_key_id() const { +inline const ::std::string& Header::verification_key_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.Header.verification_key_id) return _internal_verification_key_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Header::set_verification_key_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - verification_key_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Header::set_verification_key_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.verification_key_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.Header.verification_key_id) } -inline std::string* Header::mutable_verification_key_id() { - std::string* _s = _internal_mutable_verification_key_id(); +inline ::std::string* PROTOBUF_NONNULL Header::mutable_verification_key_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_verification_key_id(); // @@protoc_insertion_point(field_mutable:securemessage.Header.verification_key_id) return _s; } -inline const std::string& Header::_internal_verification_key_id() const { - return verification_key_id_.Get(); +inline const ::std::string& Header::_internal_verification_key_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.verification_key_id_.Get(); } -inline void Header::_internal_set_verification_key_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - verification_key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Header::_internal_set_verification_key_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.verification_key_id_.Set(value, GetArena()); } -inline std::string* Header::_internal_mutable_verification_key_id() { - _has_bits_[0] |= 0x00000001u; - return verification_key_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_verification_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.verification_key_id_.Mutable( GetArena()); } -inline std::string* Header::release_verification_key_id() { +inline ::std::string* PROTOBUF_NULLABLE Header::release_verification_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.Header.verification_key_id) - if (!_internal_has_verification_key_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = verification_key_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (verification_key_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - verification_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.verification_key_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.verification_key_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Header::set_allocated_verification_key_id(std::string* verification_key_id) { - if (verification_key_id != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Header::set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - verification_key_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), verification_key_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (verification_key_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - verification_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.verification_key_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.verification_key_id_.IsDefault()) { + _impl_.verification_key_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.Header.verification_key_id) } // optional bytes decryption_key_id = 4; -inline bool Header::_internal_has_decryption_key_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Header::has_decryption_key_id() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Header::has_decryption_key_id() const { - return _internal_has_decryption_key_id(); -} inline void Header::clear_decryption_key_id() { - decryption_key_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decryption_key_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& Header::decryption_key_id() const { +inline const ::std::string& Header::decryption_key_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.Header.decryption_key_id) return _internal_decryption_key_id(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Header::set_decryption_key_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - decryption_key_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Header::set_decryption_key_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.decryption_key_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.Header.decryption_key_id) } -inline std::string* Header::mutable_decryption_key_id() { - std::string* _s = _internal_mutable_decryption_key_id(); +inline ::std::string* PROTOBUF_NONNULL Header::mutable_decryption_key_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_decryption_key_id(); // @@protoc_insertion_point(field_mutable:securemessage.Header.decryption_key_id) return _s; } -inline const std::string& Header::_internal_decryption_key_id() const { - return decryption_key_id_.Get(); +inline const ::std::string& Header::_internal_decryption_key_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.decryption_key_id_.Get(); } -inline void Header::_internal_set_decryption_key_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - decryption_key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Header::_internal_set_decryption_key_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decryption_key_id_.Set(value, GetArena()); } -inline std::string* Header::_internal_mutable_decryption_key_id() { - _has_bits_[0] |= 0x00000002u; - return decryption_key_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_decryption_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.decryption_key_id_.Mutable( GetArena()); } -inline std::string* Header::release_decryption_key_id() { +inline ::std::string* PROTOBUF_NULLABLE Header::release_decryption_key_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.Header.decryption_key_id) - if (!_internal_has_decryption_key_id()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = decryption_key_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (decryption_key_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - decryption_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.decryption_key_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.decryption_key_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Header::set_allocated_decryption_key_id(std::string* decryption_key_id) { - if (decryption_key_id != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void Header::set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - decryption_key_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), decryption_key_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (decryption_key_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - decryption_key_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.decryption_key_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.decryption_key_id_.IsDefault()) { + _impl_.decryption_key_id_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.Header.decryption_key_id) } // optional bytes iv = 5; -inline bool Header::_internal_has_iv() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool Header::has_iv() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool Header::has_iv() const { - return _internal_has_iv(); -} inline void Header::clear_iv() { - iv_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.iv_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& Header::iv() const { +inline const ::std::string& Header::iv() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.Header.iv) return _internal_iv(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Header::set_iv(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - iv_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Header::set_iv(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.iv_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.Header.iv) } -inline std::string* Header::mutable_iv() { - std::string* _s = _internal_mutable_iv(); +inline ::std::string* PROTOBUF_NONNULL Header::mutable_iv() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_iv(); // @@protoc_insertion_point(field_mutable:securemessage.Header.iv) return _s; } -inline const std::string& Header::_internal_iv() const { - return iv_.Get(); +inline const ::std::string& Header::_internal_iv() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.iv_.Get(); } -inline void Header::_internal_set_iv(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Header::_internal_set_iv(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.iv_.Set(value, GetArena()); } -inline std::string* Header::_internal_mutable_iv() { - _has_bits_[0] |= 0x00000004u; - return iv_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_iv() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.iv_.Mutable( GetArena()); } -inline std::string* Header::release_iv() { +inline ::std::string* PROTOBUF_NULLABLE Header::release_iv() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.Header.iv) - if (!_internal_has_iv()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000004u; - auto* p = iv_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (iv_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.iv_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.iv_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Header::set_allocated_iv(std::string* iv) { - if (iv != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void Header::set_allocated_iv(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - iv_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), iv, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (iv_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.iv_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.iv_.IsDefault()) { + _impl_.iv_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.Header.iv) } // optional bytes public_metadata = 6; -inline bool Header::_internal_has_public_metadata() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool Header::has_public_metadata() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool Header::has_public_metadata() const { - return _internal_has_public_metadata(); -} inline void Header::clear_public_metadata() { - public_metadata_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_metadata_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& Header::public_metadata() const { +inline const ::std::string& Header::public_metadata() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.Header.public_metadata) return _internal_public_metadata(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Header::set_public_metadata(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - public_metadata_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Header::set_public_metadata(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.public_metadata_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.Header.public_metadata) } -inline std::string* Header::mutable_public_metadata() { - std::string* _s = _internal_mutable_public_metadata(); +inline ::std::string* PROTOBUF_NONNULL Header::mutable_public_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_public_metadata(); // @@protoc_insertion_point(field_mutable:securemessage.Header.public_metadata) return _s; } -inline const std::string& Header::_internal_public_metadata() const { - return public_metadata_.Get(); +inline const ::std::string& Header::_internal_public_metadata() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_metadata_.Get(); } -inline void Header::_internal_set_public_metadata(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - public_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Header::_internal_set_public_metadata(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_metadata_.Set(value, GetArena()); } -inline std::string* Header::_internal_mutable_public_metadata() { - _has_bits_[0] |= 0x00000008u; - return public_metadata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_public_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_metadata_.Mutable( GetArena()); } -inline std::string* Header::release_public_metadata() { +inline ::std::string* PROTOBUF_NULLABLE Header::release_public_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.Header.public_metadata) - if (!_internal_has_public_metadata()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _has_bits_[0] &= ~0x00000008u; - auto* p = public_metadata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.public_metadata_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_metadata_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Header::set_allocated_public_metadata(std::string* public_metadata) { - if (public_metadata != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void Header::set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - public_metadata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_metadata, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.public_metadata_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_metadata_.IsDefault()) { + _impl_.public_metadata_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.Header.public_metadata) } // optional uint32 associated_data_length = 7 [default = 0]; -inline bool Header::_internal_has_associated_data_length() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; +inline bool Header::has_associated_data_length() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } -inline bool Header::has_associated_data_length() const { - return _internal_has_associated_data_length(); -} inline void Header::clear_associated_data_length() { - associated_data_length_ = 0u; - _has_bits_[0] &= ~0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.associated_data_length_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline uint32_t Header::_internal_associated_data_length() const { - return associated_data_length_; -} -inline uint32_t Header::associated_data_length() const { +inline ::uint32_t Header::associated_data_length() const { // @@protoc_insertion_point(field_get:securemessage.Header.associated_data_length) return _internal_associated_data_length(); } -inline void Header::_internal_set_associated_data_length(uint32_t value) { - _has_bits_[0] |= 0x00000010u; - associated_data_length_ = value; -} -inline void Header::set_associated_data_length(uint32_t value) { +inline void Header::set_associated_data_length(::uint32_t value) { _internal_set_associated_data_length(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:securemessage.Header.associated_data_length) } +inline ::uint32_t Header::_internal_associated_data_length() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.associated_data_length_; +} +inline void Header::_internal_set_associated_data_length(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.associated_data_length_ = value; +} // ------------------------------------------------------------------- // HeaderAndBody // required .securemessage.Header header = 1; -inline bool HeaderAndBody::_internal_has_header() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || header_ != nullptr); +inline bool HeaderAndBody::has_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); return value; } -inline bool HeaderAndBody::has_header() const { - return _internal_has_header(); -} inline void HeaderAndBody::clear_header() { - if (header_ != nullptr) header_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ != nullptr) _impl_.header_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::securemessage::Header& HeaderAndBody::_internal_header() const { - const ::securemessage::Header* p = header_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_Header_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::Header* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_Header_default_instance_); } -inline const ::securemessage::Header& HeaderAndBody::header() const { +inline const ::securemessage::Header& HeaderAndBody::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.header) return _internal_header(); } inline void HeaderAndBody::unsafe_arena_set_allocated_header( - ::securemessage::Header* header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_); + ::securemessage::Header* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } - header_ = header; - if (header) { - _has_bits_[0] |= 0x00000002u; + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.HeaderAndBody.header) } -inline ::securemessage::Header* HeaderAndBody::release_header() { - _has_bits_[0] &= ~0x00000002u; - ::securemessage::Header* temp = header_; - header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::Header* released = _impl_.header_; + _impl_.header_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::Header* HeaderAndBody::unsafe_arena_release_header() { +inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.header) - _has_bits_[0] &= ~0x00000002u; - ::securemessage::Header* temp = header_; - header_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::Header* temp = _impl_.header_; + _impl_.header_ = nullptr; return temp; } -inline ::securemessage::Header* HeaderAndBody::_internal_mutable_header() { - _has_bits_[0] |= 0x00000002u; - if (header_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::Header>(GetArenaForAllocation()); - header_ = p; +inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::Header>(GetArena()); + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(p); } - return header_; + return _impl_.header_; } -inline ::securemessage::Header* HeaderAndBody::mutable_header() { +inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::securemessage::Header* _msg = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.header) return _msg; } -inline void HeaderAndBody::set_allocated_header(::securemessage::Header* header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void HeaderAndBody::set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete header_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } - if (header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::securemessage::Header>::GetOwningArena(header); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, header, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - header_ = header; + + _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.header) } // required bytes body = 2; -inline bool HeaderAndBody::_internal_has_body() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool HeaderAndBody::has_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool HeaderAndBody::has_body() const { - return _internal_has_body(); -} inline void HeaderAndBody::clear_body() { - body_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& HeaderAndBody::body() const { +inline const ::std::string& HeaderAndBody::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.body) return _internal_body(); } -template -inline PROTOBUF_ALWAYS_INLINE -void HeaderAndBody::set_body(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - body_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBody::set_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.HeaderAndBody.body) } -inline std::string* HeaderAndBody::mutable_body() { - std::string* _s = _internal_mutable_body(); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.body) return _s; } -inline const std::string& HeaderAndBody::_internal_body() const { - return body_.Get(); +inline const ::std::string& HeaderAndBody::_internal_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.body_.Get(); } -inline void HeaderAndBody::_internal_set_body(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void HeaderAndBody::_internal_set_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.Set(value, GetArena()); } -inline std::string* HeaderAndBody::_internal_mutable_body() { - _has_bits_[0] |= 0x00000001u; - return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.body_.Mutable( GetArena()); } -inline std::string* HeaderAndBody::release_body() { +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBody::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.body) - if (!_internal_has_body()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void HeaderAndBody::set_allocated_body(std::string* body) { - if (body != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void HeaderAndBody::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.body) } @@ -2277,140 +2620,140 @@ inline void HeaderAndBody::set_allocated_body(std::string* body) { // HeaderAndBodyInternal // required bytes header = 1; -inline bool HeaderAndBodyInternal::_internal_has_header() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool HeaderAndBodyInternal::has_header() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool HeaderAndBodyInternal::has_header() const { - return _internal_has_header(); -} inline void HeaderAndBodyInternal::clear_header() { - header_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& HeaderAndBodyInternal::header() const { +inline const ::std::string& HeaderAndBodyInternal::header() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.header) return _internal_header(); } -template -inline PROTOBUF_ALWAYS_INLINE -void HeaderAndBodyInternal::set_header(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - header_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_header(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.header) } -inline std::string* HeaderAndBodyInternal::mutable_header() { - std::string* _s = _internal_mutable_header(); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.header) return _s; } -inline const std::string& HeaderAndBodyInternal::_internal_header() const { - return header_.Get(); +inline const ::std::string& HeaderAndBodyInternal::_internal_header() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_.Get(); } -inline void HeaderAndBodyInternal::_internal_set_header(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - header_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void HeaderAndBodyInternal::_internal_set_header(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_.Set(value, GetArena()); } -inline std::string* HeaderAndBodyInternal::_internal_mutable_header() { - _has_bits_[0] |= 0x00000001u; - return header_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.header_.Mutable( GetArena()); } -inline std::string* HeaderAndBodyInternal::release_header() { +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.header) - if (!_internal_has_header()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = header_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (header_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - header_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.header_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void HeaderAndBodyInternal::set_allocated_header(std::string* header) { - if (header != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void HeaderAndBodyInternal::set_allocated_header(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - header_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), header, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (header_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - header_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.header_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_.IsDefault()) { + _impl_.header_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.header) } // required bytes body = 2; -inline bool HeaderAndBodyInternal::_internal_has_body() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool HeaderAndBodyInternal::has_body() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool HeaderAndBodyInternal::has_body() const { - return _internal_has_body(); -} inline void HeaderAndBodyInternal::clear_body() { - body_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& HeaderAndBodyInternal::body() const { +inline const ::std::string& HeaderAndBodyInternal::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.body) return _internal_body(); } -template -inline PROTOBUF_ALWAYS_INLINE -void HeaderAndBodyInternal::set_body(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - body_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.body) } -inline std::string* HeaderAndBodyInternal::mutable_body() { - std::string* _s = _internal_mutable_body(); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.body) return _s; } -inline const std::string& HeaderAndBodyInternal::_internal_body() const { - return body_.Get(); +inline const ::std::string& HeaderAndBodyInternal::_internal_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.body_.Get(); } -inline void HeaderAndBodyInternal::_internal_set_body(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void HeaderAndBodyInternal::_internal_set_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.body_.Set(value, GetArena()); } -inline std::string* HeaderAndBodyInternal::_internal_mutable_body() { - _has_bits_[0] |= 0x00000002u; - return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.body_.Mutable( GetArena()); } -inline std::string* HeaderAndBodyInternal::release_body() { +inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.body) - if (!_internal_has_body()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void HeaderAndBodyInternal::set_allocated_body(std::string* body) { - if (body != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void HeaderAndBodyInternal::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.body_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.body) } @@ -2419,140 +2762,140 @@ inline void HeaderAndBodyInternal::set_allocated_body(std::string* body) { // EcP256PublicKey // required bytes x = 1; -inline bool EcP256PublicKey::_internal_has_x() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool EcP256PublicKey::has_x() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool EcP256PublicKey::has_x() const { - return _internal_has_x(); -} inline void EcP256PublicKey::clear_x() { - x_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& EcP256PublicKey::x() const { +inline const ::std::string& EcP256PublicKey::x() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.x) return _internal_x(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EcP256PublicKey::set_x(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - x_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_x(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.x) } -inline std::string* EcP256PublicKey::mutable_x() { - std::string* _s = _internal_mutable_x(); +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_x() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_x(); // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.x) return _s; } -inline const std::string& EcP256PublicKey::_internal_x() const { - return x_.Get(); +inline const ::std::string& EcP256PublicKey::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_.Get(); } -inline void EcP256PublicKey::_internal_set_x(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - x_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void EcP256PublicKey::_internal_set_x(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_.Set(value, GetArena()); } -inline std::string* EcP256PublicKey::_internal_mutable_x() { - _has_bits_[0] |= 0x00000001u; - return x_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.x_.Mutable( GetArena()); } -inline std::string* EcP256PublicKey::release_x() { +inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.x) - if (!_internal_has_x()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = x_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (x_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.x_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.x_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EcP256PublicKey::set_allocated_x(std::string* x) { - if (x != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void EcP256PublicKey::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - x_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), x, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (x_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - x_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.x_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { + _impl_.x_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.x) } // required bytes y = 2; -inline bool EcP256PublicKey::_internal_has_y() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool EcP256PublicKey::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool EcP256PublicKey::has_y() const { - return _internal_has_y(); -} inline void EcP256PublicKey::clear_y() { - y_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& EcP256PublicKey::y() const { +inline const ::std::string& EcP256PublicKey::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.y) return _internal_y(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EcP256PublicKey::set_y(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - y_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.y) } -inline std::string* EcP256PublicKey::mutable_y() { - std::string* _s = _internal_mutable_y(); +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_y(); // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.y) return _s; } -inline const std::string& EcP256PublicKey::_internal_y() const { - return y_.Get(); +inline const ::std::string& EcP256PublicKey::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); } -inline void EcP256PublicKey::_internal_set_y(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void EcP256PublicKey::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); } -inline std::string* EcP256PublicKey::_internal_mutable_y() { - _has_bits_[0] |= 0x00000002u; - return y_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); } -inline std::string* EcP256PublicKey::release_y() { +inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.y) - if (!_internal_has_y()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = y_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EcP256PublicKey::set_allocated_y(std::string* y) { - if (y != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void EcP256PublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - y_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), y, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.y) } @@ -2561,172 +2904,173 @@ inline void EcP256PublicKey::set_allocated_y(std::string* y) { // SimpleRsaPublicKey // required bytes n = 1; -inline bool SimpleRsaPublicKey::_internal_has_n() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool SimpleRsaPublicKey::has_n() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool SimpleRsaPublicKey::has_n() const { - return _internal_has_n(); -} inline void SimpleRsaPublicKey::clear_n() { - n_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.n_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& SimpleRsaPublicKey::n() const { +inline const ::std::string& SimpleRsaPublicKey::n() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.n) return _internal_n(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SimpleRsaPublicKey::set_n(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - n_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void SimpleRsaPublicKey::set_n(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.n_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.n) } -inline std::string* SimpleRsaPublicKey::mutable_n() { - std::string* _s = _internal_mutable_n(); +inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::mutable_n() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_n(); // @@protoc_insertion_point(field_mutable:securemessage.SimpleRsaPublicKey.n) return _s; } -inline const std::string& SimpleRsaPublicKey::_internal_n() const { - return n_.Get(); +inline const ::std::string& SimpleRsaPublicKey::_internal_n() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.n_.Get(); } -inline void SimpleRsaPublicKey::_internal_set_n(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - n_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void SimpleRsaPublicKey::_internal_set_n(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.n_.Set(value, GetArena()); } -inline std::string* SimpleRsaPublicKey::_internal_mutable_n() { - _has_bits_[0] |= 0x00000001u; - return n_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::_internal_mutable_n() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.n_.Mutable( GetArena()); } -inline std::string* SimpleRsaPublicKey::release_n() { +inline ::std::string* PROTOBUF_NULLABLE SimpleRsaPublicKey::release_n() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.SimpleRsaPublicKey.n) - if (!_internal_has_n()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = n_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (n_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - n_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.n_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.n_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SimpleRsaPublicKey::set_allocated_n(std::string* n) { - if (n != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void SimpleRsaPublicKey::set_allocated_n(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - n_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), n, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (n_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - n_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.n_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.n_.IsDefault()) { + _impl_.n_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.SimpleRsaPublicKey.n) } // optional int32 e = 2 [default = 65537]; -inline bool SimpleRsaPublicKey::_internal_has_e() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool SimpleRsaPublicKey::has_e() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool SimpleRsaPublicKey::has_e() const { - return _internal_has_e(); -} inline void SimpleRsaPublicKey::clear_e() { - e_ = 65537; - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.e_ = 65537; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline int32_t SimpleRsaPublicKey::_internal_e() const { - return e_; -} -inline int32_t SimpleRsaPublicKey::e() const { +inline ::int32_t SimpleRsaPublicKey::e() const { // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.e) return _internal_e(); } -inline void SimpleRsaPublicKey::_internal_set_e(int32_t value) { - _has_bits_[0] |= 0x00000002u; - e_ = value; -} -inline void SimpleRsaPublicKey::set_e(int32_t value) { +inline void SimpleRsaPublicKey::set_e(::int32_t value) { _internal_set_e(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.e) } +inline ::int32_t SimpleRsaPublicKey::_internal_e() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.e_; +} +inline void SimpleRsaPublicKey::_internal_set_e(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.e_ = value; +} // ------------------------------------------------------------------- // DhPublicKey // required bytes y = 1; -inline bool DhPublicKey::_internal_has_y() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool DhPublicKey::has_y() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool DhPublicKey::has_y() const { - return _internal_has_y(); -} inline void DhPublicKey::clear_y() { - y_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& DhPublicKey::y() const { +inline const ::std::string& DhPublicKey::y() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.DhPublicKey.y) return _internal_y(); } -template -inline PROTOBUF_ALWAYS_INLINE -void DhPublicKey::set_y(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - y_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void DhPublicKey::set_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securemessage.DhPublicKey.y) } -inline std::string* DhPublicKey::mutable_y() { - std::string* _s = _internal_mutable_y(); +inline ::std::string* PROTOBUF_NONNULL DhPublicKey::mutable_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_y(); // @@protoc_insertion_point(field_mutable:securemessage.DhPublicKey.y) return _s; } -inline const std::string& DhPublicKey::_internal_y() const { - return y_.Get(); +inline const ::std::string& DhPublicKey::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_.Get(); } -inline void DhPublicKey::_internal_set_y(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - y_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void DhPublicKey::_internal_set_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_.Set(value, GetArena()); } -inline std::string* DhPublicKey::_internal_mutable_y() { - _has_bits_[0] |= 0x00000001u; - return y_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL DhPublicKey::_internal_mutable_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.y_.Mutable( GetArena()); } -inline std::string* DhPublicKey::release_y() { +inline ::std::string* PROTOBUF_NULLABLE DhPublicKey::release_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.DhPublicKey.y) - if (!_internal_has_y()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = y_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void DhPublicKey::set_allocated_y(std::string* y) { - if (y != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void DhPublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - y_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), y, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (y_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - y_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.y_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { + _impl_.y_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securemessage.DhPublicKey.y) } @@ -2735,335 +3079,357 @@ inline void DhPublicKey::set_allocated_y(std::string* y) { // GenericPublicKey // required .securemessage.PublicKeyType type = 1; -inline bool GenericPublicKey::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool GenericPublicKey::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool GenericPublicKey::has_type() const { - return _internal_has_type(); -} inline void GenericPublicKey::clear_type() { - type_ = 1; - _has_bits_[0] &= ~0x00000008u; -} -inline ::securemessage::PublicKeyType GenericPublicKey::_internal_type() const { - return static_cast< ::securemessage::PublicKeyType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::securemessage::PublicKeyType GenericPublicKey::type() const { // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.type) return _internal_type(); } -inline void GenericPublicKey::_internal_set_type(::securemessage::PublicKeyType value) { - assert(::securemessage::PublicKeyType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - type_ = value; -} inline void GenericPublicKey::set_type(::securemessage::PublicKeyType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:securemessage.GenericPublicKey.type) } +inline ::securemessage::PublicKeyType GenericPublicKey::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securemessage::PublicKeyType>(_impl_.type_); +} +inline void GenericPublicKey::_internal_set_type(::securemessage::PublicKeyType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securemessage::PublicKeyType_internal_data_)); + _impl_.type_ = value; +} // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; -inline bool GenericPublicKey::_internal_has_ec_p256_public_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || ec_p256_public_key_ != nullptr); +inline bool GenericPublicKey::has_ec_p256_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + PROTOBUF_ASSUME(!value || _impl_.ec_p256_public_key_ != nullptr); return value; } -inline bool GenericPublicKey::has_ec_p256_public_key() const { - return _internal_has_ec_p256_public_key(); -} inline void GenericPublicKey::clear_ec_p256_public_key() { - if (ec_p256_public_key_ != nullptr) ec_p256_public_key_->Clear(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_p256_public_key_ != nullptr) _impl_.ec_p256_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::securemessage::EcP256PublicKey& GenericPublicKey::_internal_ec_p256_public_key() const { - const ::securemessage::EcP256PublicKey* p = ec_p256_public_key_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_EcP256PublicKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::EcP256PublicKey* p = _impl_.ec_p256_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_EcP256PublicKey_default_instance_); } -inline const ::securemessage::EcP256PublicKey& GenericPublicKey::ec_p256_public_key() const { +inline const ::securemessage::EcP256PublicKey& GenericPublicKey::ec_p256_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.ec_p256_public_key) return _internal_ec_p256_public_key(); } inline void GenericPublicKey::unsafe_arena_set_allocated_ec_p256_public_key( - ::securemessage::EcP256PublicKey* ec_p256_public_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ec_p256_public_key_); + ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); } - ec_p256_public_key_ = ec_p256_public_key; - if (ec_p256_public_key) { - _has_bits_[0] |= 0x00000001u; + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) } -inline ::securemessage::EcP256PublicKey* GenericPublicKey::release_ec_p256_public_key() { - _has_bits_[0] &= ~0x00000001u; - ::securemessage::EcP256PublicKey* temp = ec_p256_public_key_; - ec_p256_public_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::EcP256PublicKey* released = _impl_.ec_p256_public_key_; + _impl_.ec_p256_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::EcP256PublicKey* GenericPublicKey::unsafe_arena_release_ec_p256_public_key() { +inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.ec_p256_public_key) - _has_bits_[0] &= ~0x00000001u; - ::securemessage::EcP256PublicKey* temp = ec_p256_public_key_; - ec_p256_public_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + ::securemessage::EcP256PublicKey* temp = _impl_.ec_p256_public_key_; + _impl_.ec_p256_public_key_ = nullptr; return temp; } -inline ::securemessage::EcP256PublicKey* GenericPublicKey::_internal_mutable_ec_p256_public_key() { - _has_bits_[0] |= 0x00000001u; - if (ec_p256_public_key_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::EcP256PublicKey>(GetArenaForAllocation()); - ec_p256_public_key_ = p; +inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_ec_p256_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.ec_p256_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::EcP256PublicKey>(GetArena()); + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(p); } - return ec_p256_public_key_; + return _impl_.ec_p256_public_key_; } -inline ::securemessage::EcP256PublicKey* GenericPublicKey::mutable_ec_p256_public_key() { +inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_ec_p256_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::securemessage::EcP256PublicKey* _msg = _internal_mutable_ec_p256_public_key(); // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.ec_p256_public_key) return _msg; } -inline void GenericPublicKey::set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* ec_p256_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GenericPublicKey::set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete ec_p256_public_key_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); } - if (ec_p256_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::securemessage::EcP256PublicKey>::GetOwningArena(ec_p256_public_key); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - ec_p256_public_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ec_p256_public_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - ec_p256_public_key_ = ec_p256_public_key; + + _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) } // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; -inline bool GenericPublicKey::_internal_has_rsa2048_public_key() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || rsa2048_public_key_ != nullptr); +inline bool GenericPublicKey::has_rsa2048_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.rsa2048_public_key_ != nullptr); return value; } -inline bool GenericPublicKey::has_rsa2048_public_key() const { - return _internal_has_rsa2048_public_key(); -} inline void GenericPublicKey::clear_rsa2048_public_key() { - if (rsa2048_public_key_ != nullptr) rsa2048_public_key_->Clear(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rsa2048_public_key_ != nullptr) _impl_.rsa2048_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::_internal_rsa2048_public_key() const { - const ::securemessage::SimpleRsaPublicKey* p = rsa2048_public_key_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_SimpleRsaPublicKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::SimpleRsaPublicKey* p = _impl_.rsa2048_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_SimpleRsaPublicKey_default_instance_); } -inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::rsa2048_public_key() const { +inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::rsa2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.rsa2048_public_key) return _internal_rsa2048_public_key(); } inline void GenericPublicKey::unsafe_arena_set_allocated_rsa2048_public_key( - ::securemessage::SimpleRsaPublicKey* rsa2048_public_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rsa2048_public_key_); + ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); } - rsa2048_public_key_ = rsa2048_public_key; - if (rsa2048_public_key) { - _has_bits_[0] |= 0x00000002u; + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) } -inline ::securemessage::SimpleRsaPublicKey* GenericPublicKey::release_rsa2048_public_key() { - _has_bits_[0] &= ~0x00000002u; - ::securemessage::SimpleRsaPublicKey* temp = rsa2048_public_key_; - rsa2048_public_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::SimpleRsaPublicKey* released = _impl_.rsa2048_public_key_; + _impl_.rsa2048_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::SimpleRsaPublicKey* GenericPublicKey::unsafe_arena_release_rsa2048_public_key() { +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.rsa2048_public_key) - _has_bits_[0] &= ~0x00000002u; - ::securemessage::SimpleRsaPublicKey* temp = rsa2048_public_key_; - rsa2048_public_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::securemessage::SimpleRsaPublicKey* temp = _impl_.rsa2048_public_key_; + _impl_.rsa2048_public_key_ = nullptr; return temp; } -inline ::securemessage::SimpleRsaPublicKey* GenericPublicKey::_internal_mutable_rsa2048_public_key() { - _has_bits_[0] |= 0x00000002u; - if (rsa2048_public_key_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::SimpleRsaPublicKey>(GetArenaForAllocation()); - rsa2048_public_key_ = p; +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_rsa2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.rsa2048_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::SimpleRsaPublicKey>(GetArena()); + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(p); } - return rsa2048_public_key_; + return _impl_.rsa2048_public_key_; } -inline ::securemessage::SimpleRsaPublicKey* GenericPublicKey::mutable_rsa2048_public_key() { +inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_rsa2048_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::securemessage::SimpleRsaPublicKey* _msg = _internal_mutable_rsa2048_public_key(); // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.rsa2048_public_key) return _msg; } -inline void GenericPublicKey::set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* rsa2048_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GenericPublicKey::set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete rsa2048_public_key_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); } - if (rsa2048_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::securemessage::SimpleRsaPublicKey>::GetOwningArena(rsa2048_public_key); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - rsa2048_public_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rsa2048_public_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - rsa2048_public_key_ = rsa2048_public_key; + + _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) } // optional .securemessage.DhPublicKey dh2048_public_key = 4; -inline bool GenericPublicKey::_internal_has_dh2048_public_key() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || dh2048_public_key_ != nullptr); +inline bool GenericPublicKey::has_dh2048_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.dh2048_public_key_ != nullptr); return value; } -inline bool GenericPublicKey::has_dh2048_public_key() const { - return _internal_has_dh2048_public_key(); -} inline void GenericPublicKey::clear_dh2048_public_key() { - if (dh2048_public_key_ != nullptr) dh2048_public_key_->Clear(); - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dh2048_public_key_ != nullptr) _impl_.dh2048_public_key_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::securemessage::DhPublicKey& GenericPublicKey::_internal_dh2048_public_key() const { - const ::securemessage::DhPublicKey* p = dh2048_public_key_; - return p != nullptr ? *p : reinterpret_cast( - ::securemessage::_DhPublicKey_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::securemessage::DhPublicKey* p = _impl_.dh2048_public_key_; + return p != nullptr ? *p : reinterpret_cast(::securemessage::_DhPublicKey_default_instance_); } -inline const ::securemessage::DhPublicKey& GenericPublicKey::dh2048_public_key() const { +inline const ::securemessage::DhPublicKey& GenericPublicKey::dh2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.dh2048_public_key) return _internal_dh2048_public_key(); } inline void GenericPublicKey::unsafe_arena_set_allocated_dh2048_public_key( - ::securemessage::DhPublicKey* dh2048_public_key) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dh2048_public_key_); + ::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); } - dh2048_public_key_ = dh2048_public_key; - if (dh2048_public_key) { - _has_bits_[0] |= 0x00000004u; + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) } -inline ::securemessage::DhPublicKey* GenericPublicKey::release_dh2048_public_key() { - _has_bits_[0] &= ~0x00000004u; - ::securemessage::DhPublicKey* temp = dh2048_public_key_; - dh2048_public_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securemessage::DhPublicKey* released = _impl_.dh2048_public_key_; + _impl_.dh2048_public_key_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::securemessage::DhPublicKey* GenericPublicKey::unsafe_arena_release_dh2048_public_key() { +inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.dh2048_public_key) - _has_bits_[0] &= ~0x00000004u; - ::securemessage::DhPublicKey* temp = dh2048_public_key_; - dh2048_public_key_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::securemessage::DhPublicKey* temp = _impl_.dh2048_public_key_; + _impl_.dh2048_public_key_ = nullptr; return temp; } -inline ::securemessage::DhPublicKey* GenericPublicKey::_internal_mutable_dh2048_public_key() { - _has_bits_[0] |= 0x00000004u; - if (dh2048_public_key_ == nullptr) { - auto* p = CreateMaybeMessage<::securemessage::DhPublicKey>(GetArenaForAllocation()); - dh2048_public_key_ = p; +inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_dh2048_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.dh2048_public_key_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::DhPublicKey>(GetArena()); + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(p); } - return dh2048_public_key_; + return _impl_.dh2048_public_key_; } -inline ::securemessage::DhPublicKey* GenericPublicKey::mutable_dh2048_public_key() { +inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_dh2048_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::securemessage::DhPublicKey* _msg = _internal_mutable_dh2048_public_key(); // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.dh2048_public_key) return _msg; } -inline void GenericPublicKey::set_allocated_dh2048_public_key(::securemessage::DhPublicKey* dh2048_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GenericPublicKey::set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete dh2048_public_key_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); } - if (dh2048_public_key) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::securemessage::DhPublicKey>::GetOwningArena(dh2048_public_key); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - dh2048_public_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, dh2048_public_key, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - dh2048_public_key_ = dh2048_public_key; + + _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace securemessage -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::securemessage::SigScheme> : ::std::true_type {}; -template <> struct is_proto_enum< ::securemessage::EncScheme> : ::std::true_type {}; -template <> struct is_proto_enum< ::securemessage::PublicKeyType> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::securemessage::SigScheme> : std::true_type {}; +template <> +struct is_proto_enum<::securemessage::EncScheme> : std::true_type {}; +template <> +struct is_proto_enum<::securemessage::PublicKeyType> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fsecuremessage_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // src_2fmain_2fproto_2fsecuremessage_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.cc index 76d9768c..769b2043 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.cc +++ b/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.cc @@ -1,1990 +1,2211 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/ukey.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/ukey.proto +// Protobuf C++ Version: 6.33.3 -#include "proto/ukey.pb.h" +#include "src/main/proto/ukey.pb.h" #include - -#include -#include -#include -#include +#include +#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) -#include +// 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 securegcm { -constexpr Ukey2Message::Ukey2Message( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : message_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , message_type_(0) -{} -struct Ukey2MessageDefaultTypeInternal { - constexpr Ukey2MessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~Ukey2MessageDefaultTypeInternal() {} - union { - Ukey2Message _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; -constexpr Ukey2Alert::Ukey2Alert( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : error_message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , type_(1) -{} -struct Ukey2AlertDefaultTypeInternal { - constexpr Ukey2AlertDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~Ukey2AlertDefaultTypeInternal() {} - union { - Ukey2Alert _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; -constexpr Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : commitment_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , handshake_cipher_(0) -{} -struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal { - constexpr Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() {} - union { - Ukey2ClientInit_CipherCommitment _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; -constexpr Ukey2ClientInit::Ukey2ClientInit( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : cipher_commitments_() - , random_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , next_protocol_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , version_(0){} -struct Ukey2ClientInitDefaultTypeInternal { - constexpr Ukey2ClientInitDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~Ukey2ClientInitDefaultTypeInternal() {} - union { - Ukey2ClientInit _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; -constexpr Ukey2ServerInit::Ukey2ServerInit( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : random_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , version_(0) - , handshake_cipher_(0) -{} + +inline constexpr Ukey2ServerInit::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + random_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_{0}, + handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2ServerInit::Ukey2ServerInit(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ServerInit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct Ukey2ServerInitDefaultTypeInternal { - constexpr Ukey2ServerInitDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Ukey2ServerInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~Ukey2ServerInitDefaultTypeInternal() {} union { Ukey2ServerInit _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; -constexpr Ukey2ClientFinished::Ukey2ClientFinished( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; + +inline constexpr Ukey2Message::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + message_data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + message_type_{static_cast< ::securegcm::Ukey2Message_Type >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2Message::Ukey2Message(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2Message_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2MessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2MessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2MessageDefaultTypeInternal() {} + union { + Ukey2Message _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; + +inline constexpr Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + commitment_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientInit_CipherCommitment_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() {} + union { + Ukey2ClientInit_CipherCommitment _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; + +inline constexpr Ukey2ClientFinished::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientFinished::Ukey2ClientFinished(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientFinished_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct Ukey2ClientFinishedDefaultTypeInternal { - constexpr Ukey2ClientFinishedDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Ukey2ClientFinishedDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~Ukey2ClientFinishedDefaultTypeInternal() {} union { Ukey2ClientFinished _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; + +inline constexpr Ukey2Alert::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + error_message_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} + +template +PROTOBUF_CONSTEXPR Ukey2Alert::Ukey2Alert(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2Alert_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2AlertDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2AlertDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2AlertDefaultTypeInternal() {} + union { + Ukey2Alert _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; + +inline constexpr Ukey2ClientInit::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + cipher_commitments_{}, + random_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + next_protocol_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_{0} {} + +template +PROTOBUF_CONSTEXPR Ukey2ClientInit::Ukey2ClientInit(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Ukey2ClientInit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct Ukey2ClientInitDefaultTypeInternal { + PROTOBUF_CONSTEXPR Ukey2ClientInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Ukey2ClientInitDefaultTypeInternal() {} + union { + Ukey2ClientInit _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; } // namespace securegcm namespace securegcm { -bool Ukey2Message_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Ukey2Message_Type_internal_data_[] = { + 327680u, 0u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2Message_Type_strings[5] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Ukey2Message_Type_strings[5] = {}; +static const char Ukey2Message_Type_names[] = { + "ALERT" + "CLIENT_FINISH" + "CLIENT_INIT" + "SERVER_INIT" + "UNKNOWN_DO_NOT_USE" +}; -static const char Ukey2Message_Type_names[] = - "ALERT" - "CLIENT_FINISH" - "CLIENT_INIT" - "SERVER_INIT" - "UNKNOWN_DO_NOT_USE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Ukey2Message_Type_entries[] = { - { {Ukey2Message_Type_names + 0, 5}, 1 }, - { {Ukey2Message_Type_names + 5, 13}, 4 }, - { {Ukey2Message_Type_names + 18, 11}, 2 }, - { {Ukey2Message_Type_names + 29, 11}, 3 }, - { {Ukey2Message_Type_names + 40, 18}, 0 }, +static const ::google::protobuf::internal::EnumEntry Ukey2Message_Type_entries[] = { + {{&Ukey2Message_Type_names[0], 5}, 1}, + {{&Ukey2Message_Type_names[5], 13}, 4}, + {{&Ukey2Message_Type_names[18], 11}, 2}, + {{&Ukey2Message_Type_names[29], 11}, 3}, + {{&Ukey2Message_Type_names[40], 18}, 0}, }; static const int Ukey2Message_Type_entries_by_number[] = { - 4, // 0 -> UNKNOWN_DO_NOT_USE - 0, // 1 -> ALERT - 2, // 2 -> CLIENT_INIT - 3, // 3 -> SERVER_INIT - 1, // 4 -> CLIENT_FINISH + 4, // 0 -> UNKNOWN_DO_NOT_USE + 0, // 1 -> ALERT + 2, // 2 -> CLIENT_INIT + 3, // 3 -> SERVER_INIT + 1, // 4 -> CLIENT_FINISH }; -const std::string& Ukey2Message_Type_Name( - Ukey2Message_Type value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Ukey2Message_Type_entries, - Ukey2Message_Type_entries_by_number, - 5, Ukey2Message_Type_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Ukey2Message_Type_entries, - Ukey2Message_Type_entries_by_number, - 5, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Ukey2Message_Type_strings[idx].get(); +const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2Message_Type_entries, Ukey2Message_Type_entries_by_number, 5, + Ukey2Message_Type_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Message_Type_entries, + Ukey2Message_Type_entries_by_number, + 5, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Message_Type_strings[idx].get(); } -bool Ukey2Message_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Message_Type* value) { + +bool Ukey2Message_Type_Parse(::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Ukey2Message_Type_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr Ukey2Message_Type Ukey2Message::UNKNOWN_DO_NOT_USE; -constexpr Ukey2Message_Type Ukey2Message::ALERT; -constexpr Ukey2Message_Type Ukey2Message::CLIENT_INIT; -constexpr Ukey2Message_Type Ukey2Message::SERVER_INIT; -constexpr Ukey2Message_Type Ukey2Message::CLIENT_FINISH; -constexpr Ukey2Message_Type Ukey2Message::Type_MIN; -constexpr Ukey2Message_Type Ukey2Message::Type_MAX; -constexpr int Ukey2Message::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool Ukey2Alert_AlertType_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - case 4: - case 100: - case 101: - case 102: - case 103: - case 104: - case 200: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Ukey2Alert_AlertType_internal_data_[] = { + 262145u, 65664u, 0u, 0u, 2147483648u, 15u, 200u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2Alert_AlertType_strings[10] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Ukey2Alert_AlertType_strings[10] = {}; +static const char Ukey2Alert_AlertType_names[] = { + "BAD_HANDSHAKE_CIPHER" + "BAD_MESSAGE" + "BAD_MESSAGE_DATA" + "BAD_MESSAGE_TYPE" + "BAD_NEXT_PROTOCOL" + "BAD_PUBLIC_KEY" + "BAD_RANDOM" + "BAD_VERSION" + "INCORRECT_MESSAGE" + "INTERNAL_ERROR" +}; -static const char Ukey2Alert_AlertType_names[] = - "BAD_HANDSHAKE_CIPHER" - "BAD_MESSAGE" - "BAD_MESSAGE_DATA" - "BAD_MESSAGE_TYPE" - "BAD_NEXT_PROTOCOL" - "BAD_PUBLIC_KEY" - "BAD_RANDOM" - "BAD_VERSION" - "INCORRECT_MESSAGE" - "INTERNAL_ERROR"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Ukey2Alert_AlertType_entries[] = { - { {Ukey2Alert_AlertType_names + 0, 20}, 102 }, - { {Ukey2Alert_AlertType_names + 20, 11}, 1 }, - { {Ukey2Alert_AlertType_names + 31, 16}, 4 }, - { {Ukey2Alert_AlertType_names + 47, 16}, 2 }, - { {Ukey2Alert_AlertType_names + 63, 17}, 103 }, - { {Ukey2Alert_AlertType_names + 80, 14}, 104 }, - { {Ukey2Alert_AlertType_names + 94, 10}, 101 }, - { {Ukey2Alert_AlertType_names + 104, 11}, 100 }, - { {Ukey2Alert_AlertType_names + 115, 17}, 3 }, - { {Ukey2Alert_AlertType_names + 132, 14}, 200 }, +static const ::google::protobuf::internal::EnumEntry Ukey2Alert_AlertType_entries[] = { + {{&Ukey2Alert_AlertType_names[0], 20}, 102}, + {{&Ukey2Alert_AlertType_names[20], 11}, 1}, + {{&Ukey2Alert_AlertType_names[31], 16}, 4}, + {{&Ukey2Alert_AlertType_names[47], 16}, 2}, + {{&Ukey2Alert_AlertType_names[63], 17}, 103}, + {{&Ukey2Alert_AlertType_names[80], 14}, 104}, + {{&Ukey2Alert_AlertType_names[94], 10}, 101}, + {{&Ukey2Alert_AlertType_names[104], 11}, 100}, + {{&Ukey2Alert_AlertType_names[115], 17}, 3}, + {{&Ukey2Alert_AlertType_names[132], 14}, 200}, }; static const int Ukey2Alert_AlertType_entries_by_number[] = { - 1, // 1 -> BAD_MESSAGE - 3, // 2 -> BAD_MESSAGE_TYPE - 8, // 3 -> INCORRECT_MESSAGE - 2, // 4 -> BAD_MESSAGE_DATA - 7, // 100 -> BAD_VERSION - 6, // 101 -> BAD_RANDOM - 0, // 102 -> BAD_HANDSHAKE_CIPHER - 4, // 103 -> BAD_NEXT_PROTOCOL - 5, // 104 -> BAD_PUBLIC_KEY - 9, // 200 -> INTERNAL_ERROR + 1, // 1 -> BAD_MESSAGE + 3, // 2 -> BAD_MESSAGE_TYPE + 8, // 3 -> INCORRECT_MESSAGE + 2, // 4 -> BAD_MESSAGE_DATA + 7, // 100 -> BAD_VERSION + 6, // 101 -> BAD_RANDOM + 0, // 102 -> BAD_HANDSHAKE_CIPHER + 4, // 103 -> BAD_NEXT_PROTOCOL + 5, // 104 -> BAD_PUBLIC_KEY + 9, // 200 -> INTERNAL_ERROR }; -const std::string& Ukey2Alert_AlertType_Name( - Ukey2Alert_AlertType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Ukey2Alert_AlertType_entries, - Ukey2Alert_AlertType_entries_by_number, - 10, Ukey2Alert_AlertType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Ukey2Alert_AlertType_entries, - Ukey2Alert_AlertType_entries_by_number, - 10, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Ukey2Alert_AlertType_strings[idx].get(); +const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2Alert_AlertType_entries, Ukey2Alert_AlertType_entries_by_number, 10, + Ukey2Alert_AlertType_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Alert_AlertType_entries, + Ukey2Alert_AlertType_entries_by_number, + 10, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Alert_AlertType_strings[idx].get(); } -bool Ukey2Alert_AlertType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Alert_AlertType* value) { + +bool Ukey2Alert_AlertType_Parse(::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Ukey2Alert_AlertType_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_MESSAGE; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_MESSAGE_TYPE; -constexpr Ukey2Alert_AlertType Ukey2Alert::INCORRECT_MESSAGE; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_MESSAGE_DATA; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_VERSION; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_RANDOM; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_HANDSHAKE_CIPHER; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_NEXT_PROTOCOL; -constexpr Ukey2Alert_AlertType Ukey2Alert::BAD_PUBLIC_KEY; -constexpr Ukey2Alert_AlertType Ukey2Alert::INTERNAL_ERROR; -constexpr Ukey2Alert_AlertType Ukey2Alert::AlertType_MIN; -constexpr Ukey2Alert_AlertType Ukey2Alert::AlertType_MAX; -constexpr int Ukey2Alert::AlertType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool Ukey2HandshakeCipher_IsValid(int value) { - switch (value) { - case 0: - case 100: - case 200: - return true; - default: - return false; - } -} +PROTOBUF_CONSTINIT const uint32_t Ukey2HandshakeCipher_internal_data_[] = { + 65536u, 131072u, 200u, 100u, }; +static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> + Ukey2HandshakeCipher_strings[3] = {}; -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Ukey2HandshakeCipher_strings[3] = {}; +static const char Ukey2HandshakeCipher_names[] = { + "CURVE25519_SHA512" + "P256_SHA512" + "RESERVED" +}; -static const char Ukey2HandshakeCipher_names[] = - "CURVE25519_SHA512" - "P256_SHA512" - "RESERVED"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Ukey2HandshakeCipher_entries[] = { - { {Ukey2HandshakeCipher_names + 0, 17}, 200 }, - { {Ukey2HandshakeCipher_names + 17, 11}, 100 }, - { {Ukey2HandshakeCipher_names + 28, 8}, 0 }, +static const ::google::protobuf::internal::EnumEntry Ukey2HandshakeCipher_entries[] = { + {{&Ukey2HandshakeCipher_names[0], 17}, 200}, + {{&Ukey2HandshakeCipher_names[17], 11}, 100}, + {{&Ukey2HandshakeCipher_names[28], 8}, 0}, }; static const int Ukey2HandshakeCipher_entries_by_number[] = { - 2, // 0 -> RESERVED - 1, // 100 -> P256_SHA512 - 0, // 200 -> CURVE25519_SHA512 + 2, // 0 -> RESERVED + 1, // 100 -> P256_SHA512 + 0, // 200 -> CURVE25519_SHA512 }; -const std::string& Ukey2HandshakeCipher_Name( - Ukey2HandshakeCipher value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - Ukey2HandshakeCipher_entries, - Ukey2HandshakeCipher_entries_by_number, - 3, Ukey2HandshakeCipher_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - Ukey2HandshakeCipher_entries, - Ukey2HandshakeCipher_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - Ukey2HandshakeCipher_strings[idx].get(); +const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value) { + static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( + Ukey2HandshakeCipher_entries, Ukey2HandshakeCipher_entries_by_number, 3, + Ukey2HandshakeCipher_strings); + (void)kDummy; + + int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2HandshakeCipher_entries, + Ukey2HandshakeCipher_entries_by_number, + 3, value); + return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2HandshakeCipher_strings[idx].get(); } -bool Ukey2HandshakeCipher_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2HandshakeCipher* value) { + +bool Ukey2HandshakeCipher_Parse(::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value) { int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + bool success = ::google::protobuf::internal::LookUpEnumValue( Ukey2HandshakeCipher_entries, 3, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } - // =================================================================== class Ukey2Message::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_message_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_message_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._has_bits_); }; -Ukey2Message::Ukey2Message(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2Message::Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Message) } -Ukey2Message::Ukey2Message(const Ukey2Message& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - message_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_message_data()) { - message_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message_data(), - GetArenaForAllocation()); - } - message_type_ = from.message_type_; +PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2Message& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + message_data_(arena, from.message_data_) {} + +Ukey2Message::Ukey2Message( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2Message& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2Message* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.message_type_ = from._impl_.message_type_; + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Message) } +PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + message_data_(arena) {} -inline void Ukey2Message::SharedCtor() { -message_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -message_type_ = 0; +inline void Ukey2Message::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.message_type_ = {}; } - Ukey2Message::~Ukey2Message() { // @@protoc_insertion_point(destructor:securegcm.Ukey2Message) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2Message::SharedDtor(MessageLite& self) { + Ukey2Message& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.message_data_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2Message::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - message_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2Message::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2Message(arena); +} +constexpr auto Ukey2Message::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Message), + alignof(Ukey2Message)); +} +constexpr auto Ukey2Message::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<23>{ + { + &_Ukey2Message_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2Message::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2Message::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Message::ByteSizeLong, + &Ukey2Message::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2Message", + }; } -void Ukey2Message::ArenaDtor(void* object) { - Ukey2Message* _this = reinterpret_cast< Ukey2Message* >(object); - (void)_this; -} -void Ukey2Message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2Message::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_ = + Ukey2Message::InternalGenerateClassData_(); -void Ukey2Message::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2Message::GetClassData() const { + return Ukey2Message_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2Message::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2Message, _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), + Ukey2Message_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2Message>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes message_data = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_)}}, + // optional .securegcm.Ukey2Message.Type message_type = 1; + {::_pbi::TcParser::FastEr0S1, + {8, 1, 4, + PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2Message.Type message_type = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bytes message_data = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {0, 4}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2Message::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Message) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - message_data_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.message_data_.ClearNonDefaultToEmpty(); } - message_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.message_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .securegcm.Ukey2Message.Type message_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Ukey2Message_Type_IsValid(val))) { - _internal_set_message_type(static_cast<::securegcm::Ukey2Message_Type>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes message_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_message_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2Message::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2Message& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2Message& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Message) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .securegcm.Ukey2Message.Type message_type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_message_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_message_type(), target); } // optional bytes message_data = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_message_data(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_message_data(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Message) return target; } -size_t Ukey2Message::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Message) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2Message::ByteSizeLong(const MessageLite& base) { + const Ukey2Message& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2Message::ByteSizeLong() const { + const Ukey2Message& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Message) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes message_data = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_message_data()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_message_data()); } - // optional .securegcm.Ukey2Message.Type message_type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_message_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_message_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2Message::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2Message::MergeFrom(const Ukey2Message& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Message) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_message_data(from._internal_message_data()); - } - if (cached_has_bits & 0x00000002u) { - message_type_ = from.message_type_; - } - _has_bits_[0] |= cached_has_bits; +void Ukey2Message::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Message) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_message_data(from._internal_message_data()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.message_type_ = from._impl_.message_type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2Message::CopyFrom(const Ukey2Message& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Message) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Message) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2Message::IsInitialized() const { - return true; -} -void Ukey2Message::InternalSwap(Ukey2Message* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2Message::InternalSwap(Ukey2Message* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &message_data_, lhs_arena, - &other->message_data_, rhs_arena - ); - swap(message_type_, other->message_type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_data_, &other->_impl_.message_data_, arena); + swap(_impl_.message_type_, other->_impl_.message_type_); } -std::string Ukey2Message::GetTypeName() const { - return "securegcm.Ukey2Message"; -} - - // =================================================================== class Ukey2Alert::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_error_message(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._has_bits_); }; -Ukey2Alert::Ukey2Alert(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2Alert::Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Alert) } -Ukey2Alert::Ukey2Alert(const Ukey2Alert& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_error_message()) { - error_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_message(), - GetArenaForAllocation()); - } - type_ = from.type_; +PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2Alert& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + error_message_(arena, from.error_message_) {} + +Ukey2Alert::Ukey2Alert( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2Alert& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2Alert* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.type_ = from._impl_.type_; + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Alert) } +PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_message_(arena), + type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} -inline void Ukey2Alert::SharedCtor() { -error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -type_ = 1; +inline void Ukey2Alert::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Ukey2Alert::~Ukey2Alert() { // @@protoc_insertion_point(destructor:securegcm.Ukey2Alert) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2Alert::SharedDtor(MessageLite& self) { + Ukey2Alert& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.error_message_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2Alert::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2Alert::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2Alert(arena); +} +constexpr auto Ukey2Alert::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Alert), + alignof(Ukey2Alert)); +} +constexpr auto Ukey2Alert::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<21>{ + { + &_Ukey2Alert_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2Alert::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2Alert::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Alert::ByteSizeLong, + &Ukey2Alert::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2Alert", + }; } -void Ukey2Alert::ArenaDtor(void* object) { - Ukey2Alert* _this = reinterpret_cast< Ukey2Alert* >(object); - (void)_this; -} -void Ukey2Alert::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2Alert::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_ = + Ukey2Alert::InternalGenerateClassData_(); -void Ukey2Alert::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2Alert::GetClassData() const { + return Ukey2Alert_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2Alert::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _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), + Ukey2Alert_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2Alert>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string error_message = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_)}}, + // optional .securegcm.Ukey2Alert.AlertType type = 1; + {::_pbi::TcParser::FastEvS1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2Alert.AlertType type = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional string error_message = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2Alert_AlertType_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2Alert::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Alert) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - error_message_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_message_.ClearNonDefaultToEmpty(); } - type_ = 1; + _impl_.type_ = 1; } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2Alert::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .securegcm.Ukey2Alert.AlertType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Ukey2Alert_AlertType_IsValid(val))) { - _internal_set_type(static_cast<::securegcm::Ukey2Alert_AlertType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional string error_message = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_error_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2Alert::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2Alert& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2Alert& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Alert) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .securegcm.Ukey2Alert.AlertType type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); } // optional string error_message = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_error_message(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_error_message(); + target = stream->WriteStringMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Alert) return target; } -size_t Ukey2Alert::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Alert) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2Alert::ByteSizeLong(const MessageLite& base) { + const Ukey2Alert& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2Alert::ByteSizeLong() const { + const Ukey2Alert& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Alert) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional string error_message = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_error_message()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error_message()); } - // optional .securegcm.Ukey2Alert.AlertType type = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2Alert::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2Alert::MergeFrom(const Ukey2Alert& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Alert) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_error_message(from._internal_error_message()); - } - if (cached_has_bits & 0x00000002u) { - type_ = from.type_; - } - _has_bits_[0] |= cached_has_bits; +void Ukey2Alert::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Alert) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_error_message(from._internal_error_message()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.type_ = from._impl_.type_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2Alert::CopyFrom(const Ukey2Alert& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Alert) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Alert) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2Alert::IsInitialized() const { - return true; -} -void Ukey2Alert::InternalSwap(Ukey2Alert* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2Alert::InternalSwap(Ukey2Alert* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &error_message_, lhs_arena, - &other->error_message_, rhs_arena - ); - swap(type_, other->type_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_message_, &other->_impl_.error_message_, arena); + swap(_impl_.type_, other->_impl_.type_); } -std::string Ukey2Alert::GetTypeName() const { - return "securegcm.Ukey2Alert"; -} - - // =================================================================== class Ukey2ClientInit_CipherCommitment::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_handshake_cipher(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_commitment(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._has_bits_); }; -Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit.CipherCommitment) } -Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_commitment()) { - commitment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_commitment(), - GetArenaForAllocation()); - } - handshake_cipher_ = from.handshake_cipher_; +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientInit_CipherCommitment& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + commitment_(arena, from.commitment_) {} + +Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientInit_CipherCommitment& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientInit_CipherCommitment* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit.CipherCommitment) } +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + commitment_(arena) {} -inline void Ukey2ClientInit_CipherCommitment::SharedCtor() { -commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -handshake_cipher_ = 0; +inline void Ukey2ClientInit_CipherCommitment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.handshake_cipher_ = {}; } - Ukey2ClientInit_CipherCommitment::~Ukey2ClientInit_CipherCommitment() { // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit.CipherCommitment) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2ClientInit_CipherCommitment::SharedDtor(MessageLite& self) { + Ukey2ClientInit_CipherCommitment& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.commitment_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2ClientInit_CipherCommitment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - commitment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientInit_CipherCommitment(arena); +} +constexpr auto Ukey2ClientInit_CipherCommitment::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientInit_CipherCommitment), + alignof(Ukey2ClientInit_CipherCommitment)); +} +constexpr auto Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<43>{ + { + &_Ukey2ClientInit_CipherCommitment_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientInit_CipherCommitment::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientInit_CipherCommitment::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit_CipherCommitment::ByteSizeLong, + &Ukey2ClientInit_CipherCommitment::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientInit.CipherCommitment", + }; } -void Ukey2ClientInit_CipherCommitment::ArenaDtor(void* object) { - Ukey2ClientInit_CipherCommitment* _this = reinterpret_cast< Ukey2ClientInit_CipherCommitment* >(object); - (void)_this; -} -void Ukey2ClientInit_CipherCommitment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2ClientInit_CipherCommitment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_ = + Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_(); -void Ukey2ClientInit_CipherCommitment::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientInit_CipherCommitment::GetClassData() const { + return Ukey2ClientInit_CipherCommitment_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Ukey2ClientInit_CipherCommitment::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _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), + Ukey2ClientInit_CipherCommitment_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes commitment = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_)}}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + {::_pbi::TcParser::FastEvS1, + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional bytes commitment = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientInit_CipherCommitment::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit.CipherCommitment) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - commitment_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.commitment_.ClearNonDefaultToEmpty(); } - handshake_cipher_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.handshake_cipher_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2ClientInit_CipherCommitment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Ukey2HandshakeCipher_IsValid(val))) { - _internal_set_handshake_cipher(static_cast<::securegcm::Ukey2HandshakeCipher>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes commitment = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_commitment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2ClientInit_CipherCommitment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientInit_CipherCommitment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit.CipherCommitment) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_handshake_cipher(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_handshake_cipher(), target); } // optional bytes commitment = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_commitment(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_commitment(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit.CipherCommitment) return target; } -size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit.CipherCommitment) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong() const { + const Ukey2ClientInit_CipherCommitment& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit.CipherCommitment) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // optional bytes commitment = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_commitment()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitment()); } - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_handshake_cipher()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2ClientInit_CipherCommitment::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2ClientInit_CipherCommitment::MergeFrom(const Ukey2ClientInit_CipherCommitment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit.CipherCommitment) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_commitment(from._internal_commitment()); - } - if (cached_has_bits & 0x00000002u) { - handshake_cipher_ = from.handshake_cipher_; - } - _has_bits_[0] |= cached_has_bits; +void Ukey2ClientInit_CipherCommitment::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit.CipherCommitment) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_commitment(from._internal_commitment()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2ClientInit_CipherCommitment::CopyFrom(const Ukey2ClientInit_CipherCommitment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit.CipherCommitment) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit.CipherCommitment) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2ClientInit_CipherCommitment::IsInitialized() const { - return true; -} -void Ukey2ClientInit_CipherCommitment::InternalSwap(Ukey2ClientInit_CipherCommitment* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2ClientInit_CipherCommitment::InternalSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &commitment_, lhs_arena, - &other->commitment_, rhs_arena - ); - swap(handshake_cipher_, other->handshake_cipher_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.commitment_, &other->_impl_.commitment_, arena); + swap(_impl_.handshake_cipher_, other->_impl_.handshake_cipher_); } -std::string Ukey2ClientInit_CipherCommitment::GetTypeName() const { - return "securegcm.Ukey2ClientInit.CipherCommitment"; -} - - // =================================================================== class Ukey2ClientInit::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_random(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_next_protocol(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._has_bits_); }; -Ukey2ClientInit::Ukey2ClientInit(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - cipher_commitments_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2ClientInit::Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit) } -Ukey2ClientInit::Ukey2ClientInit(const Ukey2ClientInit& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - cipher_commitments_(from.cipher_commitments_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - random_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_random()) { - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_random(), - GetArenaForAllocation()); - } - next_protocol_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_next_protocol()) { - next_protocol_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_protocol(), - GetArenaForAllocation()); - } - version_ = from.version_; +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientInit& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + cipher_commitments_{visibility, arena, from.cipher_commitments_}, + random_(arena, from.random_), + next_protocol_(arena, from.next_protocol_) {} + +Ukey2ClientInit::Ukey2ClientInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientInit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientInit* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.version_ = from._impl_.version_; + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit) } +PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + cipher_commitments_{visibility, arena}, + random_(arena), + next_protocol_(arena) {} -inline void Ukey2ClientInit::SharedCtor() { -random_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -next_protocol_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -version_ = 0; +inline void Ukey2ClientInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.version_ = {}; } - Ukey2ClientInit::~Ukey2ClientInit() { // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2ClientInit::SharedDtor(MessageLite& self) { + Ukey2ClientInit& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.random_.Destroy(); + this_._impl_.next_protocol_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2ClientInit::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - random_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - next_protocol_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2ClientInit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientInit(arena); +} +constexpr auto Ukey2ClientInit::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_) + + decltype(Ukey2ClientInit::_impl_.cipher_commitments_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Ukey2ClientInit), alignof(Ukey2ClientInit), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Ukey2ClientInit::PlacementNew_, + sizeof(Ukey2ClientInit), + alignof(Ukey2ClientInit)); + } +} +constexpr auto Ukey2ClientInit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_Ukey2ClientInit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientInit::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientInit::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit::ByteSizeLong, + &Ukey2ClientInit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientInit", + }; } -void Ukey2ClientInit::ArenaDtor(void* object) { - Ukey2ClientInit* _this = reinterpret_cast< Ukey2ClientInit* >(object); - (void)_this; -} -void Ukey2ClientInit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2ClientInit::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_ = + Ukey2ClientInit::InternalGenerateClassData_(); -void Ukey2ClientInit::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientInit::GetClassData() const { + return Ukey2ClientInit_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +Ukey2ClientInit::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _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), + Ukey2ClientInit_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string next_protocol = 4; + {::_pbi::TcParser::FastBS1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_)}}, + // optional int32 version = 1; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_)}}, + // optional bytes random = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_)}}, + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + {::_pbi::TcParser::FastMtR1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 version = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes random = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string next_protocol = 4; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientInit::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cipher_commitments_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - random_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.cipher_commitments_.Clear(); } - if (cached_has_bits & 0x00000002u) { - next_protocol_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.random_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.next_protocol_.ClearNonDefaultToEmpty(); } } - version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_.version_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2ClientInit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_version(&has_bits); - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes random = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_random(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_cipher_commitments(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // optional string next_protocol = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_next_protocol(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2ClientInit::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 version = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_version(), target); } // optional bytes random = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_random(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_random(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_cipher_commitments_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_cipher_commitments(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_cipher_commitments_size()); + i < n; i++) { + const auto& repfield = this_._internal_cipher_commitments().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } } // optional string next_protocol = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_next_protocol(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + const ::std::string& _s = this_._internal_next_protocol(); + target = stream->WriteStringMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit) return target; } -size_t Ukey2ClientInit::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientInit::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientInit::ByteSizeLong() const { + const Ukey2ClientInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - total_size += 1UL * this->_internal_cipher_commitments_size(); - for (const auto& msg : this->cipher_commitments_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_cipher_commitments_size(); + for (const auto& msg : this_._internal_cipher_commitments()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } // optional bytes random = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_random()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_random()); } - // optional string next_protocol = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_next_protocol()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_next_protocol()); } - // optional int32 version = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version()); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2ClientInit::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2ClientInit::MergeFrom(const Ukey2ClientInit& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cipher_commitments_.MergeFrom(from.cipher_commitments_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_random(from._internal_random()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_next_protocol(from._internal_next_protocol()); - } - if (cached_has_bits & 0x00000004u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; +void Ukey2ClientInit::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit) + 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_cipher_commitments()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_cipher_commitments()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_random(from._internal_random()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_set_next_protocol(from._internal_next_protocol()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.version_ = from._impl_.version_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2ClientInit::CopyFrom(const Ukey2ClientInit& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2ClientInit::IsInitialized() const { - return true; -} -void Ukey2ClientInit::InternalSwap(Ukey2ClientInit* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2ClientInit::InternalSwap(Ukey2ClientInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - cipher_commitments_.InternalSwap(&other->cipher_commitments_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &random_, lhs_arena, - &other->random_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &next_protocol_, lhs_arena, - &other->next_protocol_, rhs_arena - ); - swap(version_, other->version_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.cipher_commitments_.InternalSwap(&other->_impl_.cipher_commitments_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.random_, &other->_impl_.random_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_protocol_, &other->_impl_.next_protocol_, arena); + swap(_impl_.version_, other->_impl_.version_); } -std::string Ukey2ClientInit::GetTypeName() const { - return "securegcm.Ukey2ClientInit"; -} - - // =================================================================== class Ukey2ServerInit::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_random(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_handshake_cipher(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._has_bits_); }; -Ukey2ServerInit::Ukey2ServerInit(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2ServerInit::Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ServerInit) } -Ukey2ServerInit::Ukey2ServerInit(const Ukey2ServerInit& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - random_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_random()) { - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_random(), - GetArenaForAllocation()); - } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_public_key()) { - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), - GetArenaForAllocation()); - } - ::memcpy(&version_, &from.version_, - static_cast(reinterpret_cast(&handshake_cipher_) - - reinterpret_cast(&version_)) + sizeof(handshake_cipher_)); +PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ServerInit& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + random_(arena, from.random_), + public_key_(arena, from.public_key_) {} + +Ukey2ServerInit::Ukey2ServerInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ServerInit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ServerInit* 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(&_impl_) + + offsetof(Impl_, version_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, version_), + offsetof(Impl_, handshake_cipher_) - + offsetof(Impl_, version_) + + sizeof(Impl_::handshake_cipher_)); + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ServerInit) } +PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + random_(arena), + public_key_(arena) {} -inline void Ukey2ServerInit::SharedCtor() { -random_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&version_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&handshake_cipher_) - - reinterpret_cast(&version_)) + sizeof(handshake_cipher_)); +inline void Ukey2ServerInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, version_), + 0, + offsetof(Impl_, handshake_cipher_) - + offsetof(Impl_, version_) + + sizeof(Impl_::handshake_cipher_)); } - Ukey2ServerInit::~Ukey2ServerInit() { // @@protoc_insertion_point(destructor:securegcm.Ukey2ServerInit) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2ServerInit::SharedDtor(MessageLite& self) { + Ukey2ServerInit& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.random_.Destroy(); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2ServerInit::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - random_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2ServerInit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ServerInit(arena); +} +constexpr auto Ukey2ServerInit::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ServerInit), + alignof(Ukey2ServerInit)); +} +constexpr auto Ukey2ServerInit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_Ukey2ServerInit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ServerInit::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ServerInit::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ServerInit::ByteSizeLong, + &Ukey2ServerInit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ServerInit", + }; } -void Ukey2ServerInit::ArenaDtor(void* object) { - Ukey2ServerInit* _this = reinterpret_cast< Ukey2ServerInit* >(object); - (void)_this; -} -void Ukey2ServerInit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2ServerInit::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_ = + Ukey2ServerInit::InternalGenerateClassData_(); -void Ukey2ServerInit::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ServerInit::GetClassData() const { + return Ukey2ServerInit_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +Ukey2ServerInit::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _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), + Ukey2ServerInit_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ServerInit>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes public_key = 4; + {::_pbi::TcParser::FastBS1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_)}}, + // optional int32 version = 1; + {::_pbi::TcParser::FastV32S1, + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)}}, + // optional bytes random = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_)}}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + {::_pbi::TcParser::FastEvS1, + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 version = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional bytes random = 2; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, + // optional bytes public_key = 4; + {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ServerInit::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ServerInit) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - random_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.random_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { - public_key_.ClearNonDefaultToEmpty(); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000000cu) { - ::memset(&version_, 0, static_cast( - reinterpret_cast(&handshake_cipher_) - - reinterpret_cast(&version_)) + sizeof(handshake_cipher_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { + ::memset(&_impl_.version_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.handshake_cipher_) - + reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.handshake_cipher_)); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2ServerInit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_version(&has_bits); - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes random = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_random(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::Ukey2HandshakeCipher_IsValid(val))) { - _internal_set_handshake_cipher(static_cast<::securegcm::Ukey2HandshakeCipher>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional bytes public_key = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2ServerInit::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ServerInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ServerInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ServerInit) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 version = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_version(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_version(), target); } // optional bytes random = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_random(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_random(); + target = stream->WriteBytesMaybeAliased(2, _s, target); } // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_handshake_cipher(), target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_handshake_cipher(), target); } // optional bytes public_key = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_public_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(4, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ServerInit) return target; } -size_t Ukey2ServerInit::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ServerInit) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ServerInit::ByteSizeLong(const MessageLite& base) { + const Ukey2ServerInit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ServerInit::ByteSizeLong() const { + const Ukey2ServerInit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ServerInit) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // optional bytes random = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_random()); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_random()); } - // optional bytes public_key = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); } - // optional int32 version = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version()); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_version()); } - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - if (cached_has_bits & 0x00000008u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_handshake_cipher()); + ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2ServerInit::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2ServerInit::MergeFrom(const Ukey2ServerInit& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ServerInit) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_random(from._internal_random()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_public_key(from._internal_public_key()); - } - if (cached_has_bits & 0x00000004u) { - version_ = from.version_; - } - if (cached_has_bits & 0x00000008u) { - handshake_cipher_ = from.handshake_cipher_; - } - _has_bits_[0] |= cached_has_bits; +void Ukey2ServerInit::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ServerInit) + 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_random(from._internal_random()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_public_key(from._internal_public_key()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.version_ = from._impl_.version_; + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2ServerInit::CopyFrom(const Ukey2ServerInit& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ServerInit) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ServerInit) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2ServerInit::IsInitialized() const { - return true; -} -void Ukey2ServerInit::InternalSwap(Ukey2ServerInit* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2ServerInit::InternalSwap(Ukey2ServerInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &random_, lhs_arena, - &other->random_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &public_key_, lhs_arena, - &other->public_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, handshake_cipher_) - + sizeof(Ukey2ServerInit::handshake_cipher_) - - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, version_)>( - reinterpret_cast(&version_), - reinterpret_cast(&other->version_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.random_, &other->_impl_.random_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_) + + sizeof(Ukey2ServerInit::_impl_.handshake_cipher_) + - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)>( + reinterpret_cast(&_impl_.version_), + reinterpret_cast(&other->_impl_.version_)); } -std::string Ukey2ServerInit::GetTypeName() const { - return "securegcm.Ukey2ServerInit"; -} - - // =================================================================== class Ukey2ClientFinished::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_public_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_); }; -Ukey2ClientFinished::Ukey2ClientFinished(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Ukey2ClientFinished::Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientFinished) } -Ukey2ClientFinished::Ukey2ClientFinished(const Ukey2ClientFinished& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_public_key()) { - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::securegcm::Ukey2ClientFinished& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +Ukey2ClientFinished::Ukey2ClientFinished( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Ukey2ClientFinished& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Ukey2ClientFinished* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientFinished) } +PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} -inline void Ukey2ClientFinished::SharedCtor() { -public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void Ukey2ClientFinished::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Ukey2ClientFinished::~Ukey2ClientFinished() { // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientFinished) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Ukey2ClientFinished::SharedDtor(MessageLite& self) { + Ukey2ClientFinished& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); } -inline void Ukey2ClientFinished::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void* PROTOBUF_NONNULL Ukey2ClientFinished::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Ukey2ClientFinished(arena); +} +constexpr auto Ukey2ClientFinished::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientFinished), + alignof(Ukey2ClientFinished)); +} +constexpr auto Ukey2ClientFinished::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<30>{ + { + &_Ukey2ClientFinished_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Ukey2ClientFinished::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Ukey2ClientFinished::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientFinished::ByteSizeLong, + &Ukey2ClientFinished::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._cached_size_), + true, + }, + "securegcm.Ukey2ClientFinished", + }; } -void Ukey2ClientFinished::ArenaDtor(void* object) { - Ukey2ClientFinished* _this = reinterpret_cast< Ukey2ClientFinished* >(object); - (void)_this; -} -void Ukey2ClientFinished::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Ukey2ClientFinished::SetCachedSize(int size) const { - _cached_size_.Set(size); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_ = + Ukey2ClientFinished::InternalGenerateClassData_(); -void Ukey2ClientFinished::Clear() { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Ukey2ClientFinished::GetClassData() const { + return Ukey2ClientFinished_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +Ukey2ClientFinished::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Ukey2ClientFinished_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientFinished>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void Ukey2ClientFinished::Clear() { // @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientFinished) - uint32_t cached_has_bits = 0; + ::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 = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - public_key_.ClearNonDefaultToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.public_key_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -const char* Ukey2ClientFinished::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Ukey2ClientFinished::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Ukey2ClientFinished& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Ukey2ClientFinished& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientFinished) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // optional bytes public_key = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_public_key(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).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(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientFinished) return target; } -size_t Ukey2ClientFinished::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientFinished) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Ukey2ClientFinished::ByteSizeLong(const MessageLite& base) { + const Ukey2ClientFinished& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Ukey2ClientFinished::ByteSizeLong() const { + const Ukey2ClientFinished& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientFinished) + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // optional bytes public_key = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + { + // optional bytes public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Ukey2ClientFinished::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Ukey2ClientFinished::MergeFrom(const Ukey2ClientFinished& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientFinished) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_public_key()) { - _internal_set_public_key(from._internal_public_key()); +void Ukey2ClientFinished::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientFinished) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_set_public_key(from._internal_public_key()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Ukey2ClientFinished::CopyFrom(const Ukey2ClientFinished& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientFinished) + // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientFinished) if (&from == this) return; Clear(); MergeFrom(from); } -bool Ukey2ClientFinished::IsInitialized() const { - return true; -} -void Ukey2ClientFinished::InternalSwap(Ukey2ClientFinished* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Ukey2ClientFinished::InternalSwap(Ukey2ClientFinished* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &public_key_, lhs_arena, - &other->public_key_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); } -std::string Ukey2ClientFinished::GetTypeName() const { - return "securegcm.Ukey2ClientFinished"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2Message* Arena::CreateMaybeMessage< ::securegcm::Ukey2Message >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2Message >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2Alert* Arena::CreateMaybeMessage< ::securegcm::Ukey2Alert >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2Alert >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2ClientInit_CipherCommitment* Arena::CreateMaybeMessage< ::securegcm::Ukey2ClientInit_CipherCommitment >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2ClientInit_CipherCommitment >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2ClientInit* Arena::CreateMaybeMessage< ::securegcm::Ukey2ClientInit >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2ClientInit >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2ServerInit* Arena::CreateMaybeMessage< ::securegcm::Ukey2ServerInit >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2ServerInit >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::Ukey2ClientFinished* Arena::CreateMaybeMessage< ::securegcm::Ukey2ClientFinished >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::Ukey2ClientFinished >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.h index 8c316a30..3789397c 100644 --- a/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.h +++ b/third_party/ukey2/compiled_proto/src/main/proto/ukey.pb.h @@ -1,108 +1,126 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/ukey.proto +// NO CHECKED-IN PROTOBUF GENCODE +// source: src/main/proto/ukey.proto +// Protobuf C++ Version: 6.33.3 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto +#ifndef src_2fmain_2fproto_2fukey_2eproto_2epb_2eh +#define src_2fmain_2fproto_2fukey_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3019000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033003 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_util.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fukey_2eproto -PROTOBUF_NAMESPACE_OPEN + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_src_2fmain_2fproto_2fukey_2eproto + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fukey_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; +struct TableStruct_src_2fmain_2fproto_2fukey_2eproto { + static const ::uint32_t offsets[]; }; namespace securegcm { +enum Ukey2Alert_AlertType : int; +extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; +enum Ukey2HandshakeCipher : int; +extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; +enum Ukey2Message_Type : int; +extern const uint32_t Ukey2Message_Type_internal_data_[]; class Ukey2Alert; struct Ukey2AlertDefaultTypeInternal; extern Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; class Ukey2ClientFinished; struct Ukey2ClientFinishedDefaultTypeInternal; extern Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; class Ukey2ClientInit; struct Ukey2ClientInitDefaultTypeInternal; extern Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; class Ukey2ClientInit_CipherCommitment; struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal; extern Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; class Ukey2Message; struct Ukey2MessageDefaultTypeInternal; extern Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; class Ukey2ServerInit; struct Ukey2ServerInitDefaultTypeInternal; extern Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::Ukey2Alert* Arena::CreateMaybeMessage<::securegcm::Ukey2Alert>(Arena*); -template<> ::securegcm::Ukey2ClientFinished* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientFinished>(Arena*); -template<> ::securegcm::Ukey2ClientInit* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientInit>(Arena*); -template<> ::securegcm::Ukey2ClientInit_CipherCommitment* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientInit_CipherCommitment>(Arena*); -template<> ::securegcm::Ukey2Message* Arena::CreateMaybeMessage<::securegcm::Ukey2Message>(Arena*); -template<> ::securegcm::Ukey2ServerInit* Arena::CreateMaybeMessage<::securegcm::Ukey2ServerInit>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securegcm { +namespace google { +namespace protobuf { +template <> +internal::EnumTraitsT<::securegcm::Ukey2Alert_AlertType_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2Alert_AlertType>; +template <> +internal::EnumTraitsT<::securegcm::Ukey2HandshakeCipher_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2HandshakeCipher>; +template <> +internal::EnumTraitsT<::securegcm::Ukey2Message_Type_internal_data_> + internal::EnumTraitsImpl::value<::securegcm::Ukey2Message_Type>; +} // namespace protobuf +} // namespace google +namespace securegcm { enum Ukey2Message_Type : int { Ukey2Message_Type_UNKNOWN_DO_NOT_USE = 0, Ukey2Message_Type_ALERT = 1, Ukey2Message_Type_CLIENT_INIT = 2, Ukey2Message_Type_SERVER_INIT = 3, - Ukey2Message_Type_CLIENT_FINISH = 4 + Ukey2Message_Type_CLIENT_FINISH = 4, }; -bool Ukey2Message_Type_IsValid(int value); -constexpr Ukey2Message_Type Ukey2Message_Type_Type_MIN = Ukey2Message_Type_UNKNOWN_DO_NOT_USE; -constexpr Ukey2Message_Type Ukey2Message_Type_Type_MAX = Ukey2Message_Type_CLIENT_FINISH; -constexpr int Ukey2Message_Type_Type_ARRAYSIZE = Ukey2Message_Type_Type_MAX + 1; -const std::string& Ukey2Message_Type_Name(Ukey2Message_Type value); -template -inline const std::string& Ukey2Message_Type_Name(T enum_t_value) { +extern const uint32_t Ukey2Message_Type_internal_data_[]; +inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MIN = + static_cast(0); +inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MAX = + static_cast(4); +inline bool Ukey2Message_Type_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int Ukey2Message_Type_Type_ARRAYSIZE = 4 + 1; +const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value); +template +const ::std::string& Ukey2Message_Type_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2Message_Type_Name."); - return Ukey2Message_Type_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return Ukey2Message_Type_Name(static_cast(value)); } bool Ukey2Message_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Message_Type* value); + ::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value); enum Ukey2Alert_AlertType : int { Ukey2Alert_AlertType_BAD_MESSAGE = 1, Ukey2Alert_AlertType_BAD_MESSAGE_TYPE = 2, @@ -113,69 +131,313 @@ enum Ukey2Alert_AlertType : int { Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER = 102, Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL = 103, Ukey2Alert_AlertType_BAD_PUBLIC_KEY = 104, - Ukey2Alert_AlertType_INTERNAL_ERROR = 200 + Ukey2Alert_AlertType_INTERNAL_ERROR = 200, }; -bool Ukey2Alert_AlertType_IsValid(int value); -constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MIN = Ukey2Alert_AlertType_BAD_MESSAGE; -constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MAX = Ukey2Alert_AlertType_INTERNAL_ERROR; -constexpr int Ukey2Alert_AlertType_AlertType_ARRAYSIZE = Ukey2Alert_AlertType_AlertType_MAX + 1; -const std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value); -template -inline const std::string& Ukey2Alert_AlertType_Name(T enum_t_value) { +extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; +inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MIN = + static_cast(1); +inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MAX = + static_cast(200); +inline bool Ukey2Alert_AlertType_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Ukey2Alert_AlertType_internal_data_); +} +inline constexpr int Ukey2Alert_AlertType_AlertType_ARRAYSIZE = 200 + 1; +const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value); +template +const ::std::string& Ukey2Alert_AlertType_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2Alert_AlertType_Name."); - return Ukey2Alert_AlertType_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to AlertType_Name()."); + return Ukey2Alert_AlertType_Name(static_cast(value)); } bool Ukey2Alert_AlertType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Alert_AlertType* value); + ::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value); enum Ukey2HandshakeCipher : int { RESERVED = 0, P256_SHA512 = 100, - CURVE25519_SHA512 = 200 + CURVE25519_SHA512 = 200, }; -bool Ukey2HandshakeCipher_IsValid(int value); -constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MIN = RESERVED; -constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MAX = CURVE25519_SHA512; -constexpr int Ukey2HandshakeCipher_ARRAYSIZE = Ukey2HandshakeCipher_MAX + 1; -const std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value); -template -inline const std::string& Ukey2HandshakeCipher_Name(T enum_t_value) { +extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; +inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MIN = + static_cast(0); +inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MAX = + static_cast(200); +inline bool Ukey2HandshakeCipher_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, Ukey2HandshakeCipher_internal_data_); +} +inline constexpr int Ukey2HandshakeCipher_ARRAYSIZE = 200 + 1; +const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value); +template +const ::std::string& Ukey2HandshakeCipher_Name(T value) { static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2HandshakeCipher_Name."); - return Ukey2HandshakeCipher_Name(static_cast(enum_t_value)); + ::std::is_integral::value, + "Incorrect type passed to Ukey2HandshakeCipher_Name()."); + return Ukey2HandshakeCipher_Name(static_cast(value)); } bool Ukey2HandshakeCipher_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2HandshakeCipher* value); + ::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value); + // =================================================================== -class Ukey2Message final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2Message) */ { - public: - inline Ukey2Message() : Ukey2Message(nullptr) {} - ~Ukey2Message() override; - explicit constexpr Ukey2Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - Ukey2Message(const Ukey2Message& from); - Ukey2Message(Ukey2Message&& from) noexcept - : Ukey2Message() { - *this = ::std::move(from); +// ------------------------------------------------------------------- + +class Ukey2ServerInit final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ServerInit) */ { + public: + inline Ukey2ServerInit() : Ukey2ServerInit(nullptr) {} + ~Ukey2ServerInit() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ServerInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ServerInit)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ServerInit(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ServerInit(const Ukey2ServerInit& from) : Ukey2ServerInit(nullptr, from) {} + inline Ukey2ServerInit(Ukey2ServerInit&& from) noexcept + : Ukey2ServerInit(nullptr, ::std::move(from)) {} + inline Ukey2ServerInit& operator=(const Ukey2ServerInit& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ServerInit& operator=(Ukey2ServerInit&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ServerInit& default_instance() { + return *reinterpret_cast( + &_Ukey2ServerInit_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(Ukey2ServerInit& a, Ukey2ServerInit& b) { a.Swap(&b); } + inline void Swap(Ukey2ServerInit* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ServerInit* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ServerInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ServerInit& from); + void MergeFrom(const Ukey2ServerInit& from) { Ukey2ServerInit::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ServerInit* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ServerInit"; } + + explicit Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ServerInit& from); + Ukey2ServerInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ServerInit&& from) noexcept + : Ukey2ServerInit(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRandomFieldNumber = 2, + kPublicKeyFieldNumber = 4, + kVersionFieldNumber = 1, + kHandshakeCipherFieldNumber = 3, + }; + // optional bytes random = 2; + bool has_random() const; + void clear_random() ; + const ::std::string& random() const; + template + void set_random(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_random(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); + void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_random() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); + + public: + // optional bytes public_key = 4; + bool has_public_key() const; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // optional int32 version = 1; + bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: + // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; + bool has_handshake_cipher() const; + void clear_handshake_cipher() ; + ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; + void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + private: + ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; + void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ServerInit) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ServerInit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr random_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::int32_t version_; + int handshake_cipher_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; +// ------------------------------------------------------------------- + +class Ukey2Message final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Message) */ { + public: + inline Ukey2Message() : Ukey2Message(nullptr) {} + ~Ukey2Message() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2Message* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Message)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2Message(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2Message(const Ukey2Message& from) : Ukey2Message(nullptr, from) {} + inline Ukey2Message(Ukey2Message&& from) noexcept + : Ukey2Message(nullptr, ::std::move(from)) {} inline Ukey2Message& operator=(const Ukey2Message& from) { CopyFrom(from); return *this; } inline Ukey2Message& operator=(Ukey2Message&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -183,397 +445,216 @@ class Ukey2Message final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const Ukey2Message& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_Ukey2Message_default_instance_); } - static inline const Ukey2Message* internal_default_instance() { - return reinterpret_cast( - &_Ukey2Message_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Ukey2Message& a, Ukey2Message& b) { - a.Swap(&b); - } - inline void Swap(Ukey2Message* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(Ukey2Message& a, Ukey2Message& b) { a.Swap(&b); } + inline void Swap(Ukey2Message* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Ukey2Message* other) { + void UnsafeArenaSwap(Ukey2Message* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Ukey2Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Ukey2Message* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const Ukey2Message& from); - void MergeFrom(const Ukey2Message& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const Ukey2Message& from) { Ukey2Message::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2Message* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2Message"; - } - protected: - explicit Ukey2Message(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2Message* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Message"; } + + explicit Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Message& from); + Ukey2Message( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Message&& from) noexcept + : Ukey2Message(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - - typedef Ukey2Message_Type Type; - static constexpr Type UNKNOWN_DO_NOT_USE = - Ukey2Message_Type_UNKNOWN_DO_NOT_USE; - static constexpr Type ALERT = - Ukey2Message_Type_ALERT; - static constexpr Type CLIENT_INIT = - Ukey2Message_Type_CLIENT_INIT; - static constexpr Type SERVER_INIT = - Ukey2Message_Type_SERVER_INIT; - static constexpr Type CLIENT_FINISH = - Ukey2Message_Type_CLIENT_FINISH; + using Type = Ukey2Message_Type; + static constexpr Type UNKNOWN_DO_NOT_USE = Ukey2Message_Type_UNKNOWN_DO_NOT_USE; + static constexpr Type ALERT = Ukey2Message_Type_ALERT; + static constexpr Type CLIENT_INIT = Ukey2Message_Type_CLIENT_INIT; + static constexpr Type SERVER_INIT = Ukey2Message_Type_SERVER_INIT; + static constexpr Type CLIENT_FINISH = Ukey2Message_Type_CLIENT_FINISH; static inline bool Type_IsValid(int value) { return Ukey2Message_Type_IsValid(value); } - static constexpr Type Type_MIN = - Ukey2Message_Type_Type_MIN; - static constexpr Type Type_MAX = - Ukey2Message_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - Ukey2Message_Type_Type_ARRAYSIZE; - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return Ukey2Message_Type_Name(enum_t_value); + static constexpr Type Type_MIN = Ukey2Message_Type_Type_MIN; + static constexpr Type Type_MAX = Ukey2Message_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = Ukey2Message_Type_Type_ARRAYSIZE; + template + static inline const ::std::string& Type_Name(T value) { + return Ukey2Message_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse( + ::absl::string_view name, Type* PROTOBUF_NONNULL value) { return Ukey2Message_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kMessageDataFieldNumber = 2, kMessageTypeFieldNumber = 1, }; // optional bytes message_data = 2; bool has_message_data() const; - private: - bool _internal_has_message_data() const; - public: - void clear_message_data(); - const std::string& message_data() const; - template - void set_message_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_message_data(); - PROTOBUF_NODISCARD std::string* release_message_data(); - void set_allocated_message_data(std::string* message_data); - private: - const std::string& _internal_message_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_data(const std::string& value); - std::string* _internal_mutable_message_data(); - public: + void clear_message_data() ; + const ::std::string& message_data() const; + template + void set_message_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_message_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message_data(); + void set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_message_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_message_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_message_data(); + + public: // optional .securegcm.Ukey2Message.Type message_type = 1; bool has_message_type() const; - private: - bool _internal_has_message_type() const; - public: - void clear_message_type(); + void clear_message_type() ; ::securegcm::Ukey2Message_Type message_type() const; void set_message_type(::securegcm::Ukey2Message_Type value); + private: ::securegcm::Ukey2Message_Type _internal_message_type() const; void _internal_set_message_type(::securegcm::Ukey2Message_Type value); - public: + public: // @@protoc_insertion_point(class_scope:securegcm.Ukey2Message) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_data_; - int message_type_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2Alert final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2Alert) */ { - public: - inline Ukey2Alert() : Ukey2Alert(nullptr) {} - ~Ukey2Alert() override; - explicit constexpr Ukey2Alert(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2Alert(const Ukey2Alert& from); - Ukey2Alert(Ukey2Alert&& from) noexcept - : Ukey2Alert() { - *this = ::std::move(from); - } - - inline Ukey2Alert& operator=(const Ukey2Alert& from) { - CopyFrom(from); - return *this; - } - inline Ukey2Alert& operator=(Ukey2Alert&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2Alert& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2Alert* internal_default_instance() { - return reinterpret_cast( - &_Ukey2Alert_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Ukey2Alert& a, Ukey2Alert& b) { - a.Swap(&b); - } - inline void Swap(Ukey2Alert* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2Alert* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2Alert* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2Alert& from); - void MergeFrom(const Ukey2Alert& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2Alert* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2Alert"; - } - protected: - explicit Ukey2Alert(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef Ukey2Alert_AlertType AlertType; - static constexpr AlertType BAD_MESSAGE = - Ukey2Alert_AlertType_BAD_MESSAGE; - static constexpr AlertType BAD_MESSAGE_TYPE = - Ukey2Alert_AlertType_BAD_MESSAGE_TYPE; - static constexpr AlertType INCORRECT_MESSAGE = - Ukey2Alert_AlertType_INCORRECT_MESSAGE; - static constexpr AlertType BAD_MESSAGE_DATA = - Ukey2Alert_AlertType_BAD_MESSAGE_DATA; - static constexpr AlertType BAD_VERSION = - Ukey2Alert_AlertType_BAD_VERSION; - static constexpr AlertType BAD_RANDOM = - Ukey2Alert_AlertType_BAD_RANDOM; - static constexpr AlertType BAD_HANDSHAKE_CIPHER = - Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER; - static constexpr AlertType BAD_NEXT_PROTOCOL = - Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL; - static constexpr AlertType BAD_PUBLIC_KEY = - Ukey2Alert_AlertType_BAD_PUBLIC_KEY; - static constexpr AlertType INTERNAL_ERROR = - Ukey2Alert_AlertType_INTERNAL_ERROR; - static inline bool AlertType_IsValid(int value) { - return Ukey2Alert_AlertType_IsValid(value); - } - static constexpr AlertType AlertType_MIN = - Ukey2Alert_AlertType_AlertType_MIN; - static constexpr AlertType AlertType_MAX = - Ukey2Alert_AlertType_AlertType_MAX; - static constexpr int AlertType_ARRAYSIZE = - Ukey2Alert_AlertType_AlertType_ARRAYSIZE; - template - static inline const std::string& AlertType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlertType_Name."); - return Ukey2Alert_AlertType_Name(enum_t_value); - } - static inline bool AlertType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - AlertType* value) { - return Ukey2Alert_AlertType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kErrorMessageFieldNumber = 2, - kTypeFieldNumber = 1, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2Message& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr message_data_; + int message_type_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional string error_message = 2; - bool has_error_message() const; - private: - bool _internal_has_error_message() const; - public: - void clear_error_message(); - const std::string& error_message() const; - template - void set_error_message(ArgT0&& arg0, ArgT... args); - std::string* mutable_error_message(); - PROTOBUF_NODISCARD std::string* release_error_message(); - void set_allocated_error_message(std::string* error_message); - private: - const std::string& _internal_error_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error_message(const std::string& value); - std::string* _internal_mutable_error_message(); - public: - - // optional .securegcm.Ukey2Alert.AlertType type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::securegcm::Ukey2Alert_AlertType type() const; - void set_type(::securegcm::Ukey2Alert_AlertType value); - private: - ::securegcm::Ukey2Alert_AlertType _internal_type() const; - void _internal_set_type(::securegcm::Ukey2Alert_AlertType value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2Alert) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_message_; - int type_; - friend struct ::TableStruct_proto_2fukey_2eproto; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; // ------------------------------------------------------------------- -class Ukey2ClientInit_CipherCommitment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit.CipherCommitment) */ { +class Ukey2ClientInit_CipherCommitment final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit.CipherCommitment) */ { public: inline Ukey2ClientInit_CipherCommitment() : Ukey2ClientInit_CipherCommitment(nullptr) {} - ~Ukey2ClientInit_CipherCommitment() override; - explicit constexpr Ukey2ClientInit_CipherCommitment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Ukey2ClientInit_CipherCommitment() PROTOBUF_FINAL; - Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from); - Ukey2ClientInit_CipherCommitment(Ukey2ClientInit_CipherCommitment&& from) noexcept - : Ukey2ClientInit_CipherCommitment() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit_CipherCommitment)); } +#endif + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from) : Ukey2ClientInit_CipherCommitment(nullptr, from) {} + inline Ukey2ClientInit_CipherCommitment(Ukey2ClientInit_CipherCommitment&& from) noexcept + : Ukey2ClientInit_CipherCommitment(nullptr, ::std::move(from)) {} inline Ukey2ClientInit_CipherCommitment& operator=(const Ukey2ClientInit_CipherCommitment& from) { CopyFrom(from); return *this; } inline Ukey2ClientInit_CipherCommitment& operator=(Ukey2ClientInit_CipherCommitment&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -581,161 +662,196 @@ class Ukey2ClientInit_CipherCommitment final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const Ukey2ClientInit_CipherCommitment& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_Ukey2ClientInit_CipherCommitment_default_instance_); } - static inline const Ukey2ClientInit_CipherCommitment* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientInit_CipherCommitment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Ukey2ClientInit_CipherCommitment& a, Ukey2ClientInit_CipherCommitment& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientInit_CipherCommitment* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(Ukey2ClientInit_CipherCommitment& a, Ukey2ClientInit_CipherCommitment& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Ukey2ClientInit_CipherCommitment* other) { + void UnsafeArenaSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Ukey2ClientInit_CipherCommitment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const Ukey2ClientInit_CipherCommitment& from); - void MergeFrom(const Ukey2ClientInit_CipherCommitment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const Ukey2ClientInit_CipherCommitment& from) { Ukey2ClientInit_CipherCommitment::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientInit_CipherCommitment* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientInit.CipherCommitment"; - } - protected: - explicit Ukey2ClientInit_CipherCommitment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit.CipherCommitment"; } + + explicit Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit_CipherCommitment& from); + Ukey2ClientInit_CipherCommitment( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit_CipherCommitment&& from) noexcept + : Ukey2ClientInit_CipherCommitment(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCommitmentFieldNumber = 2, kHandshakeCipherFieldNumber = 1, }; // optional bytes commitment = 2; bool has_commitment() const; - private: - bool _internal_has_commitment() const; - public: - void clear_commitment(); - const std::string& commitment() const; - template - void set_commitment(ArgT0&& arg0, ArgT... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* commitment); - private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const std::string& value); - std::string* _internal_mutable_commitment(); - public: + void clear_commitment() ; + const ::std::string& commitment() const; + template + void set_commitment(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); + void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); + + public: // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; bool has_handshake_cipher() const; - private: - bool _internal_has_handshake_cipher() const; - public: - void clear_handshake_cipher(); + void clear_handshake_cipher() ; ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); + private: ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - public: + public: // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit.CipherCommitment) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr commitment_; - int handshake_cipher_; - friend struct ::TableStruct_proto_2fukey_2eproto; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientInit_CipherCommitment& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr commitment_; + int handshake_cipher_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; // ------------------------------------------------------------------- -class Ukey2ClientInit final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit) */ { +class Ukey2ClientFinished final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientFinished) */ { public: - inline Ukey2ClientInit() : Ukey2ClientInit(nullptr) {} - ~Ukey2ClientInit() override; - explicit constexpr Ukey2ClientInit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Ukey2ClientFinished() : Ukey2ClientFinished(nullptr) {} + ~Ukey2ClientFinished() PROTOBUF_FINAL; - Ukey2ClientInit(const Ukey2ClientInit& from); - Ukey2ClientInit(Ukey2ClientInit&& from) noexcept - : Ukey2ClientInit() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientFinished* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientFinished)); } +#endif - inline Ukey2ClientInit& operator=(const Ukey2ClientInit& from) { + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientFinished(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientFinished(const Ukey2ClientFinished& from) : Ukey2ClientFinished(nullptr, from) {} + inline Ukey2ClientFinished(Ukey2ClientFinished&& from) noexcept + : Ukey2ClientFinished(nullptr, ::std::move(from)) {} + inline Ukey2ClientFinished& operator=(const Ukey2ClientFinished& from) { CopyFrom(from); return *this; } - inline Ukey2ClientInit& operator=(Ukey2ClientInit&& from) noexcept { + inline Ukey2ClientFinished& operator=(Ukey2ClientFinished&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -743,89 +859,509 @@ class Ukey2ClientInit final : return *this; } - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static const Ukey2ClientInit& default_instance() { - return *internal_default_instance(); + static const Ukey2ClientFinished& default_instance() { + return *reinterpret_cast( + &_Ukey2ClientFinished_default_instance_); } - static inline const Ukey2ClientInit* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientInit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Ukey2ClientInit& a, Ukey2ClientInit& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientInit* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(Ukey2ClientFinished& a, Ukey2ClientFinished& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Ukey2ClientInit* other) { + void UnsafeArenaSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Ukey2ClientInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Ukey2ClientFinished* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ClientInit& from); - void MergeFrom(const Ukey2ClientInit& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const Ukey2ClientFinished& from); + void MergeFrom(const Ukey2ClientFinished& from) { Ukey2ClientFinished::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientInit* other); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientInit"; - } - protected: - explicit Ukey2ClientInit(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - std::string GetTypeName() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientFinished"; } + + explicit Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientFinished& from); + Ukey2ClientFinished( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientFinished&& from) noexcept + : Ukey2ClientFinished(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- - typedef Ukey2ClientInit_CipherCommitment CipherCommitment; + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + }; + // optional bytes public_key = 1; + bool has_public_key() const; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientFinished) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientFinished& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; +// ------------------------------------------------------------------- + +class Ukey2Alert final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Alert) */ { + public: + inline Ukey2Alert() : Ukey2Alert(nullptr) {} + ~Ukey2Alert() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2Alert* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Alert)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2Alert(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2Alert(const Ukey2Alert& from) : Ukey2Alert(nullptr, from) {} + inline Ukey2Alert(Ukey2Alert&& from) noexcept + : Ukey2Alert(nullptr, ::std::move(from)) {} + inline Ukey2Alert& operator=(const Ukey2Alert& from) { + CopyFrom(from); + return *this; + } + inline Ukey2Alert& operator=(Ukey2Alert&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2Alert& default_instance() { + return *reinterpret_cast( + &_Ukey2Alert_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Ukey2Alert& a, Ukey2Alert& b) { a.Swap(&b); } + inline void Swap(Ukey2Alert* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2Alert* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2Alert* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2Alert& from); + void MergeFrom(const Ukey2Alert& from) { Ukey2Alert::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2Alert* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Alert"; } + + explicit Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Alert& from); + Ukey2Alert( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Alert&& from) noexcept + : Ukey2Alert(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using AlertType = Ukey2Alert_AlertType; + static constexpr AlertType BAD_MESSAGE = Ukey2Alert_AlertType_BAD_MESSAGE; + static constexpr AlertType BAD_MESSAGE_TYPE = Ukey2Alert_AlertType_BAD_MESSAGE_TYPE; + static constexpr AlertType INCORRECT_MESSAGE = Ukey2Alert_AlertType_INCORRECT_MESSAGE; + static constexpr AlertType BAD_MESSAGE_DATA = Ukey2Alert_AlertType_BAD_MESSAGE_DATA; + static constexpr AlertType BAD_VERSION = Ukey2Alert_AlertType_BAD_VERSION; + static constexpr AlertType BAD_RANDOM = Ukey2Alert_AlertType_BAD_RANDOM; + static constexpr AlertType BAD_HANDSHAKE_CIPHER = Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER; + static constexpr AlertType BAD_NEXT_PROTOCOL = Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL; + static constexpr AlertType BAD_PUBLIC_KEY = Ukey2Alert_AlertType_BAD_PUBLIC_KEY; + static constexpr AlertType INTERNAL_ERROR = Ukey2Alert_AlertType_INTERNAL_ERROR; + static inline bool AlertType_IsValid(int value) { + return Ukey2Alert_AlertType_IsValid(value); + } + static constexpr AlertType AlertType_MIN = Ukey2Alert_AlertType_AlertType_MIN; + static constexpr AlertType AlertType_MAX = Ukey2Alert_AlertType_AlertType_MAX; + static constexpr int AlertType_ARRAYSIZE = Ukey2Alert_AlertType_AlertType_ARRAYSIZE; + template + static inline const ::std::string& AlertType_Name(T value) { + return Ukey2Alert_AlertType_Name(value); + } + static inline bool AlertType_Parse( + ::absl::string_view name, AlertType* PROTOBUF_NONNULL value) { + return Ukey2Alert_AlertType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kErrorMessageFieldNumber = 2, + kTypeFieldNumber = 1, + }; + // optional string error_message = 2; + bool has_error_message() const; + void clear_error_message() ; + const ::std::string& error_message() const; + template + void set_error_message(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_error_message(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error_message(); + void set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_error_message() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error_message(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error_message(); + + public: + // optional .securegcm.Ukey2Alert.AlertType type = 1; + bool has_type() const; + void clear_type() ; + ::securegcm::Ukey2Alert_AlertType type() const; + void set_type(::securegcm::Ukey2Alert_AlertType value); + + private: + ::securegcm::Ukey2Alert_AlertType _internal_type() const; + void _internal_set_type(::securegcm::Ukey2Alert_AlertType value); + + public: + // @@protoc_insertion_point(class_scope:securegcm.Ukey2Alert) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2Alert& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr error_message_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; +// ------------------------------------------------------------------- + +class Ukey2ClientInit final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit) */ { + public: + inline Ukey2ClientInit() : Ukey2ClientInit(nullptr) {} + ~Ukey2ClientInit() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Ukey2ClientInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR Ukey2ClientInit(::google::protobuf::internal::ConstantInitialized); + + inline Ukey2ClientInit(const Ukey2ClientInit& from) : Ukey2ClientInit(nullptr, from) {} + inline Ukey2ClientInit(Ukey2ClientInit&& from) noexcept + : Ukey2ClientInit(nullptr, ::std::move(from)) {} + inline Ukey2ClientInit& operator=(const Ukey2ClientInit& from) { + CopyFrom(from); + return *this; + } + inline Ukey2ClientInit& operator=(Ukey2ClientInit&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); + } + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); + } + + static const Ukey2ClientInit& default_instance() { + return *reinterpret_cast( + &_Ukey2ClientInit_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Ukey2ClientInit& a, Ukey2ClientInit& b) { a.Swap(&b); } + inline void Swap(Ukey2ClientInit* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ukey2ClientInit* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ukey2ClientInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); + } + void CopyFrom(const Ukey2ClientInit& from); + void MergeFrom(const Ukey2ClientInit& from) { Ukey2ClientInit::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Ukey2ClientInit* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit"; } + + explicit Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit& from); + Ukey2ClientInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit&& from) noexcept + : Ukey2ClientInit(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + // nested types ---------------------------------------------------- + using CipherCommitment = Ukey2ClientInit_CipherCommitment; + + // accessors ------------------------------------------------------- enum : int { kCipherCommitmentsFieldNumber = 3, kRandomFieldNumber = 2, @@ -836,534 +1372,214 @@ class Ukey2ClientInit final : int cipher_commitments_size() const; private: int _internal_cipher_commitments_size() const; + public: - void clear_cipher_commitments(); - ::securegcm::Ukey2ClientInit_CipherCommitment* mutable_cipher_commitments(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >* - mutable_cipher_commitments(); + void clear_cipher_commitments() ; + ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL mutable_cipher_commitments(int index); + ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL mutable_cipher_commitments(); + private: - const ::securegcm::Ukey2ClientInit_CipherCommitment& _internal_cipher_commitments(int index) const; - ::securegcm::Ukey2ClientInit_CipherCommitment* _internal_add_cipher_commitments(); + const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& _internal_cipher_commitments() const; + ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL _internal_mutable_cipher_commitments(); public: const ::securegcm::Ukey2ClientInit_CipherCommitment& cipher_commitments(int index) const; - ::securegcm::Ukey2ClientInit_CipherCommitment* add_cipher_commitments(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >& - cipher_commitments() const; - + ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL add_cipher_commitments(); + const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& cipher_commitments() const; // optional bytes random = 2; bool has_random() const; - private: - bool _internal_has_random() const; - public: - void clear_random(); - const std::string& random() const; - template - void set_random(ArgT0&& arg0, ArgT... args); - std::string* mutable_random(); - PROTOBUF_NODISCARD std::string* release_random(); - void set_allocated_random(std::string* random); - private: - const std::string& _internal_random() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_random(const std::string& value); - std::string* _internal_mutable_random(); - public: + void clear_random() ; + const ::std::string& random() const; + template + void set_random(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_random(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); + void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_random() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); + + public: // optional string next_protocol = 4; bool has_next_protocol() const; - private: - bool _internal_has_next_protocol() const; - public: - void clear_next_protocol(); - const std::string& next_protocol() const; - template - void set_next_protocol(ArgT0&& arg0, ArgT... args); - std::string* mutable_next_protocol(); - PROTOBUF_NODISCARD std::string* release_next_protocol(); - void set_allocated_next_protocol(std::string* next_protocol); - private: - const std::string& _internal_next_protocol() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_protocol(const std::string& value); - std::string* _internal_mutable_next_protocol(); - public: + void clear_next_protocol() ; + const ::std::string& next_protocol() const; + template + void set_next_protocol(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_next_protocol(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_next_protocol(); + void set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value); + private: + const ::std::string& _internal_next_protocol() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_next_protocol(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_next_protocol(); + + public: // optional int32 version = 1; bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + private: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + + public: // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment > cipher_commitments_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr random_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_protocol_; - int32_t version_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2ServerInit final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ServerInit) */ { - public: - inline Ukey2ServerInit() : Ukey2ServerInit(nullptr) {} - ~Ukey2ServerInit() override; - explicit constexpr Ukey2ServerInit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2ServerInit(const Ukey2ServerInit& from); - Ukey2ServerInit(Ukey2ServerInit&& from) noexcept - : Ukey2ServerInit() { - *this = ::std::move(from); - } - - inline Ukey2ServerInit& operator=(const Ukey2ServerInit& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ServerInit& operator=(Ukey2ServerInit&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ServerInit& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ServerInit* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ServerInit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Ukey2ServerInit& a, Ukey2ServerInit& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ServerInit* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ServerInit* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ServerInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ServerInit& from); - void MergeFrom(const Ukey2ServerInit& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ServerInit* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ServerInit"; - } - protected: - explicit Ukey2ServerInit(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRandomFieldNumber = 2, - kPublicKeyFieldNumber = 4, - kVersionFieldNumber = 1, - kHandshakeCipherFieldNumber = 3, + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Ukey2ClientInit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment > cipher_commitments_; + ::google::protobuf::internal::ArenaStringPtr random_; + ::google::protobuf::internal::ArenaStringPtr next_protocol_; + ::int32_t version_; + PROTOBUF_TSAN_DECLARE_MEMBER }; - // optional bytes random = 2; - bool has_random() const; - private: - bool _internal_has_random() const; - public: - void clear_random(); - const std::string& random() const; - template - void set_random(ArgT0&& arg0, ArgT... args); - std::string* mutable_random(); - PROTOBUF_NODISCARD std::string* release_random(); - void set_allocated_random(std::string* random); - private: - const std::string& _internal_random() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_random(const std::string& value); - std::string* _internal_mutable_random(); - public: - - // optional bytes public_key = 4; - bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: - - // optional int32 version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - bool has_handshake_cipher() const; - private: - bool _internal_has_handshake_cipher() const; - public: - void clear_handshake_cipher(); - ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; - void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - private: - ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; - void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ServerInit) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr random_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - int32_t version_; - int handshake_cipher_; - friend struct ::TableStruct_proto_2fukey_2eproto; + union { Impl_ _impl_; }; + friend struct ::TableStruct_src_2fmain_2fproto_2fukey_2eproto; }; -// ------------------------------------------------------------------- -class Ukey2ClientFinished final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientFinished) */ { - public: - inline Ukey2ClientFinished() : Ukey2ClientFinished(nullptr) {} - ~Ukey2ClientFinished() override; - explicit constexpr Ukey2ClientFinished(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); +extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; - Ukey2ClientFinished(const Ukey2ClientFinished& from); - Ukey2ClientFinished(Ukey2ClientFinished&& from) noexcept - : Ukey2ClientFinished() { - *this = ::std::move(from); - } - - inline Ukey2ClientFinished& operator=(const Ukey2ClientFinished& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientFinished& operator=(Ukey2ClientFinished&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ClientFinished& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ClientFinished* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientFinished_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Ukey2ClientFinished& a, Ukey2ClientFinished& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientFinished* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientFinished* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientFinished* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ClientFinished& from); - void MergeFrom(const Ukey2ClientFinished& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientFinished* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientFinished"; - } - protected: - explicit Ukey2ClientFinished(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicKeyFieldNumber = 1, - }; - // optional bytes public_key = 1; - bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientFinished) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Ukey2Message // optional .securegcm.Ukey2Message.Type message_type = 1; -inline bool Ukey2Message::_internal_has_message_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Ukey2Message::has_message_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Ukey2Message::has_message_type() const { - return _internal_has_message_type(); -} inline void Ukey2Message::clear_message_type() { - message_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2Message_Type Ukey2Message::_internal_message_type() const { - return static_cast< ::securegcm::Ukey2Message_Type >(message_type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_type_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::securegcm::Ukey2Message_Type Ukey2Message::message_type() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_type) return _internal_message_type(); } -inline void Ukey2Message::_internal_set_message_type(::securegcm::Ukey2Message_Type value) { - assert(::securegcm::Ukey2Message_Type_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - message_type_ = value; -} inline void Ukey2Message::set_message_type(::securegcm::Ukey2Message_Type value) { _internal_set_message_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_type) } +inline ::securegcm::Ukey2Message_Type Ukey2Message::_internal_message_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2Message_Type>(_impl_.message_type_); +} +inline void Ukey2Message::_internal_set_message_type(::securegcm::Ukey2Message_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2Message_Type_internal_data_)); + _impl_.message_type_ = value; +} // optional bytes message_data = 2; -inline bool Ukey2Message::_internal_has_message_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2Message::has_message_data() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Ukey2Message::has_message_data() const { - return _internal_has_message_data(); -} inline void Ukey2Message::clear_message_data() { - message_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Ukey2Message::message_data() const { +inline const ::std::string& Ukey2Message::message_data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_data) return _internal_message_data(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2Message::set_message_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - message_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2Message::set_message_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.message_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_data) } -inline std::string* Ukey2Message::mutable_message_data() { - std::string* _s = _internal_mutable_message_data(); +inline ::std::string* PROTOBUF_NONNULL Ukey2Message::mutable_message_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_message_data(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Message.message_data) return _s; } -inline const std::string& Ukey2Message::_internal_message_data() const { - return message_data_.Get(); +inline const ::std::string& Ukey2Message::_internal_message_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.message_data_.Get(); } -inline void Ukey2Message::_internal_set_message_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - message_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2Message::_internal_set_message_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.message_data_.Set(value, GetArena()); } -inline std::string* Ukey2Message::_internal_mutable_message_data() { - _has_bits_[0] |= 0x00000001u; - return message_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2Message::_internal_mutable_message_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.message_data_.Mutable( GetArena()); } -inline std::string* Ukey2Message::release_message_data() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2Message::release_message_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2Message.message_data) - if (!_internal_has_message_data()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = message_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.message_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.message_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2Message::set_allocated_message_data(std::string* message_data) { - if (message_data != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2Message::set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - message_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.message_data_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_data_.IsDefault()) { + _impl_.message_data_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Message.message_data) } @@ -1372,100 +1588,103 @@ inline void Ukey2Message::set_allocated_message_data(std::string* message_data) // Ukey2Alert // optional .securegcm.Ukey2Alert.AlertType type = 1; -inline bool Ukey2Alert::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Ukey2Alert::has_type() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Ukey2Alert::has_type() const { - return _internal_has_type(); -} inline void Ukey2Alert::clear_type() { - type_ = 1; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::_internal_type() const { - return static_cast< ::securegcm::Ukey2Alert_AlertType >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 1; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::type() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.type) return _internal_type(); } -inline void Ukey2Alert::_internal_set_type(::securegcm::Ukey2Alert_AlertType value) { - assert(::securegcm::Ukey2Alert_AlertType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - type_ = value; -} inline void Ukey2Alert::set_type(::securegcm::Ukey2Alert_AlertType value) { _internal_set_type(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.type) } +inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2Alert_AlertType>(_impl_.type_); +} +inline void Ukey2Alert::_internal_set_type(::securegcm::Ukey2Alert_AlertType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2Alert_AlertType_internal_data_)); + _impl_.type_ = value; +} // optional string error_message = 2; -inline bool Ukey2Alert::_internal_has_error_message() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2Alert::has_error_message() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Ukey2Alert::has_error_message() const { - return _internal_has_error_message(); -} inline void Ukey2Alert::clear_error_message() { - error_message_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_message_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Ukey2Alert::error_message() const { +inline const ::std::string& Ukey2Alert::error_message() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.error_message) return _internal_error_message(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2Alert::set_error_message(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - error_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2Alert::set_error_message(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.error_message_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.error_message) } -inline std::string* Ukey2Alert::mutable_error_message() { - std::string* _s = _internal_mutable_error_message(); +inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::mutable_error_message() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error_message(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Alert.error_message) return _s; } -inline const std::string& Ukey2Alert::_internal_error_message() const { - return error_message_.Get(); +inline const ::std::string& Ukey2Alert::_internal_error_message() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.error_message_.Get(); } -inline void Ukey2Alert::_internal_set_error_message(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - error_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2Alert::_internal_set_error_message(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_message_.Set(value, GetArena()); } -inline std::string* Ukey2Alert::_internal_mutable_error_message() { - _has_bits_[0] |= 0x00000001u; - return error_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::_internal_mutable_error_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.error_message_.Mutable( GetArena()); } -inline std::string* Ukey2Alert::release_error_message() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2Alert::release_error_message() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2Alert.error_message) - if (!_internal_has_error_message()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = error_message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (error_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_message_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2Alert::set_allocated_error_message(std::string* error_message) { - if (error_message != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2Alert::set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - error_message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), error_message, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (error_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.error_message_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_message_.IsDefault()) { + _impl_.error_message_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Alert.error_message) } @@ -1474,100 +1693,103 @@ inline void Ukey2Alert::set_allocated_error_message(std::string* error_message) // Ukey2ClientInit_CipherCommitment // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; -inline bool Ukey2ClientInit_CipherCommitment::_internal_has_handshake_cipher() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Ukey2ClientInit_CipherCommitment::has_handshake_cipher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Ukey2ClientInit_CipherCommitment::has_handshake_cipher() const { - return _internal_has_handshake_cipher(); -} inline void Ukey2ClientInit_CipherCommitment::clear_handshake_cipher() { - handshake_cipher_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::_internal_handshake_cipher() const { - return static_cast< ::securegcm::Ukey2HandshakeCipher >(handshake_cipher_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_cipher_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::handshake_cipher() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) return _internal_handshake_cipher(); } -inline void Ukey2ClientInit_CipherCommitment::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - assert(::securegcm::Ukey2HandshakeCipher_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - handshake_cipher_ = value; -} inline void Ukey2ClientInit_CipherCommitment::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { _internal_set_handshake_cipher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) } +inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::_internal_handshake_cipher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); +} +inline void Ukey2ClientInit_CipherCommitment::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); + _impl_.handshake_cipher_ = value; +} // optional bytes commitment = 2; -inline bool Ukey2ClientInit_CipherCommitment::_internal_has_commitment() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2ClientInit_CipherCommitment::has_commitment() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Ukey2ClientInit_CipherCommitment::has_commitment() const { - return _internal_has_commitment(); -} inline void Ukey2ClientInit_CipherCommitment::clear_commitment() { - commitment_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commitment_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Ukey2ClientInit_CipherCommitment::commitment() const { +inline const ::std::string& Ukey2ClientInit_CipherCommitment::commitment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.commitment) return _internal_commitment(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit_CipherCommitment::set_commitment(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - commitment_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit_CipherCommitment::set_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.commitment) } -inline std::string* Ukey2ClientInit_CipherCommitment::mutable_commitment() { - std::string* _s = _internal_mutable_commitment(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::mutable_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_commitment(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.CipherCommitment.commitment) return _s; } -inline const std::string& Ukey2ClientInit_CipherCommitment::_internal_commitment() const { - return commitment_.Get(); +inline const ::std::string& Ukey2ClientInit_CipherCommitment::_internal_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.commitment_.Get(); } -inline void Ukey2ClientInit_CipherCommitment::_internal_set_commitment(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - commitment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ClientInit_CipherCommitment::_internal_set_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commitment_.Set(value, GetArena()); } -inline std::string* Ukey2ClientInit_CipherCommitment::_internal_mutable_commitment() { - _has_bits_[0] |= 0x00000001u; - return commitment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_internal_mutable_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.commitment_.Mutable( GetArena()); } -inline std::string* Ukey2ClientInit_CipherCommitment::release_commitment() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit_CipherCommitment::release_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - if (!_internal_has_commitment()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = commitment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (commitment_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commitment_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(std::string* commitment) { - if (commitment != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - commitment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), commitment, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (commitment_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.commitment_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { + _impl_.commitment_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.CipherCommitment.commitment) } @@ -1576,208 +1798,225 @@ inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(std::stri // Ukey2ClientInit // optional int32 version = 1; -inline bool Ukey2ClientInit::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool Ukey2ClientInit::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool Ukey2ClientInit::has_version() const { - return _internal_has_version(); -} inline void Ukey2ClientInit::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline int32_t Ukey2ClientInit::_internal_version() const { - return version_; -} -inline int32_t Ukey2ClientInit::version() const { +inline ::int32_t Ukey2ClientInit::version() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.version) return _internal_version(); } -inline void Ukey2ClientInit::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000004u; - version_ = value; -} -inline void Ukey2ClientInit::set_version(int32_t value) { +inline void Ukey2ClientInit::set_version(::int32_t value) { _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.version) } +inline ::int32_t Ukey2ClientInit::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void Ukey2ClientInit::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} // optional bytes random = 2; -inline bool Ukey2ClientInit::_internal_has_random() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2ClientInit::has_random() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Ukey2ClientInit::has_random() const { - return _internal_has_random(); -} inline void Ukey2ClientInit::clear_random() { - random_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& Ukey2ClientInit::random() const { +inline const ::std::string& Ukey2ClientInit::random() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.random) return _internal_random(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit::set_random(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - random_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_random(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.random) } -inline std::string* Ukey2ClientInit::mutable_random() { - std::string* _s = _internal_mutable_random(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_random() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_random(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.random) return _s; } -inline const std::string& Ukey2ClientInit::_internal_random() const { - return random_.Get(); +inline const ::std::string& Ukey2ClientInit::_internal_random() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.random_.Get(); } -inline void Ukey2ClientInit::_internal_set_random(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ClientInit::_internal_set_random(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.Set(value, GetArena()); } -inline std::string* Ukey2ClientInit::_internal_mutable_random() { - _has_bits_[0] |= 0x00000001u; - return random_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.random_.Mutable( GetArena()); } -inline std::string* Ukey2ClientInit::release_random() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.random) - if (!_internal_has_random()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = random_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.random_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.random_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ClientInit::set_allocated_random(std::string* random) { - if (random != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2ClientInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - random_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), random, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.random_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { + _impl_.random_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.random) } // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; inline int Ukey2ClientInit::_internal_cipher_commitments_size() const { - return cipher_commitments_.size(); + return _internal_cipher_commitments().size(); } inline int Ukey2ClientInit::cipher_commitments_size() const { return _internal_cipher_commitments_size(); } inline void Ukey2ClientInit::clear_cipher_commitments() { - cipher_commitments_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cipher_commitments_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::mutable_cipher_commitments(int index) { +inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.cipher_commitments) - return cipher_commitments_.Mutable(index); + return _internal_mutable_cipher_commitments()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >* -Ukey2ClientInit::mutable_cipher_commitments() { +inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:securegcm.Ukey2ClientInit.cipher_commitments) - return &cipher_commitments_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_cipher_commitments(); } -inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::_internal_cipher_commitments(int index) const { - return cipher_commitments_.Get(index); -} -inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::cipher_commitments(int index) const { +inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::cipher_commitments(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.cipher_commitments) - return _internal_cipher_commitments(index); + return _internal_cipher_commitments().Get(index); } -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::_internal_add_cipher_commitments() { - return cipher_commitments_.Add(); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::add_cipher_commitments() { - ::securegcm::Ukey2ClientInit_CipherCommitment* _add = _internal_add_cipher_commitments(); +inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::add_cipher_commitments() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::securegcm::Ukey2ClientInit_CipherCommitment* _add = + _internal_mutable_cipher_commitments()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:securegcm.Ukey2ClientInit.cipher_commitments) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >& -Ukey2ClientInit::cipher_commitments() const { +inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& Ukey2ClientInit::cipher_commitments() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:securegcm.Ukey2ClientInit.cipher_commitments) - return cipher_commitments_; + return _internal_cipher_commitments(); +} +inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& +Ukey2ClientInit::_internal_cipher_commitments() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cipher_commitments_; +} +inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL +Ukey2ClientInit::_internal_mutable_cipher_commitments() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.cipher_commitments_; } // optional string next_protocol = 4; -inline bool Ukey2ClientInit::_internal_has_next_protocol() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Ukey2ClientInit::has_next_protocol() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool Ukey2ClientInit::has_next_protocol() const { - return _internal_has_next_protocol(); -} inline void Ukey2ClientInit::clear_next_protocol() { - next_protocol_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_protocol_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& Ukey2ClientInit::next_protocol() const { +inline const ::std::string& Ukey2ClientInit::next_protocol() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.next_protocol) return _internal_next_protocol(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit::set_next_protocol(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - next_protocol_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_next_protocol(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.next_protocol_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.next_protocol) } -inline std::string* Ukey2ClientInit::mutable_next_protocol() { - std::string* _s = _internal_mutable_next_protocol(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_next_protocol() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_next_protocol(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.next_protocol) return _s; } -inline const std::string& Ukey2ClientInit::_internal_next_protocol() const { - return next_protocol_.Get(); +inline const ::std::string& Ukey2ClientInit::_internal_next_protocol() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.next_protocol_.Get(); } -inline void Ukey2ClientInit::_internal_set_next_protocol(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - next_protocol_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ClientInit::_internal_set_next_protocol(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.next_protocol_.Set(value, GetArena()); } -inline std::string* Ukey2ClientInit::_internal_mutable_next_protocol() { - _has_bits_[0] |= 0x00000002u; - return next_protocol_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_next_protocol() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.next_protocol_.Mutable( GetArena()); } -inline std::string* Ukey2ClientInit::release_next_protocol() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_next_protocol() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.next_protocol) - if (!_internal_has_next_protocol()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = next_protocol_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (next_protocol_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.next_protocol_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.next_protocol_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ClientInit::set_allocated_next_protocol(std::string* next_protocol) { - if (next_protocol != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void Ukey2ClientInit::set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - next_protocol_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_protocol, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (next_protocol_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.next_protocol_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.next_protocol_.IsDefault()) { + _impl_.next_protocol_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.next_protocol) } @@ -1786,197 +2025,201 @@ inline void Ukey2ClientInit::set_allocated_next_protocol(std::string* next_proto // Ukey2ServerInit // optional int32 version = 1; -inline bool Ukey2ServerInit::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; +inline bool Ukey2ServerInit::has_version() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); return value; } -inline bool Ukey2ServerInit::has_version() const { - return _internal_has_version(); -} inline void Ukey2ServerInit::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline int32_t Ukey2ServerInit::_internal_version() const { - return version_; -} -inline int32_t Ukey2ServerInit::version() const { +inline ::int32_t Ukey2ServerInit::version() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.version) return _internal_version(); } -inline void Ukey2ServerInit::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000004u; - version_ = value; -} -inline void Ukey2ServerInit::set_version(int32_t value) { +inline void Ukey2ServerInit::set_version(::int32_t value) { _internal_set_version(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.version) } +inline ::int32_t Ukey2ServerInit::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void Ukey2ServerInit::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} // optional bytes random = 2; -inline bool Ukey2ServerInit::_internal_has_random() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2ServerInit::has_random() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Ukey2ServerInit::has_random() const { - return _internal_has_random(); -} inline void Ukey2ServerInit::clear_random() { - random_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Ukey2ServerInit::random() const { +inline const ::std::string& Ukey2ServerInit::random() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.random) return _internal_random(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ServerInit::set_random(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - random_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_random(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.random) } -inline std::string* Ukey2ServerInit::mutable_random() { - std::string* _s = _internal_mutable_random(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_random() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_random(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.random) return _s; } -inline const std::string& Ukey2ServerInit::_internal_random() const { - return random_.Get(); +inline const ::std::string& Ukey2ServerInit::_internal_random() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.random_.Get(); } -inline void Ukey2ServerInit::_internal_set_random(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ServerInit::_internal_set_random(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.random_.Set(value, GetArena()); } -inline std::string* Ukey2ServerInit::_internal_mutable_random() { - _has_bits_[0] |= 0x00000001u; - return random_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.random_.Mutable( GetArena()); } -inline std::string* Ukey2ServerInit::release_random() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_random() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.random) - if (!_internal_has_random()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = random_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.random_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.random_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ServerInit::set_allocated_random(std::string* random) { - if (random != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2ServerInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - random_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), random, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.random_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { + _impl_.random_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.random) } // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; -inline bool Ukey2ServerInit::_internal_has_handshake_cipher() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; +inline bool Ukey2ServerInit::has_handshake_cipher() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); return value; } -inline bool Ukey2ServerInit::has_handshake_cipher() const { - return _internal_has_handshake_cipher(); -} inline void Ukey2ServerInit::clear_handshake_cipher() { - handshake_cipher_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::_internal_handshake_cipher() const { - return static_cast< ::securegcm::Ukey2HandshakeCipher >(handshake_cipher_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.handshake_cipher_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::handshake_cipher() const { // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.handshake_cipher) return _internal_handshake_cipher(); } -inline void Ukey2ServerInit::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - assert(::securegcm::Ukey2HandshakeCipher_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - handshake_cipher_ = value; -} inline void Ukey2ServerInit::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { _internal_set_handshake_cipher(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.handshake_cipher) } +inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::_internal_handshake_cipher() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); +} +inline void Ukey2ServerInit::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + + assert(::google::protobuf::internal::ValidateEnum( + value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); + _impl_.handshake_cipher_ = value; +} // optional bytes public_key = 4; -inline bool Ukey2ServerInit::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; +inline bool Ukey2ServerInit::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); return value; } -inline bool Ukey2ServerInit::has_public_key() const { - return _internal_has_public_key(); -} inline void Ukey2ServerInit::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& Ukey2ServerInit::public_key() const { +inline const ::std::string& Ukey2ServerInit::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.public_key) return _internal_public_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ServerInit::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.public_key) } -inline std::string* Ukey2ServerInit::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.public_key) return _s; } -inline const std::string& Ukey2ServerInit::_internal_public_key() const { - return public_key_.Get(); +inline const ::std::string& Ukey2ServerInit::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); } -inline void Ukey2ServerInit::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ServerInit::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); } -inline std::string* Ukey2ServerInit::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000002u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* Ukey2ServerInit::release_public_key() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.public_key) - if (!_internal_has_public_key()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ServerInit::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void Ukey2ServerInit::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.public_key) } @@ -1985,101 +2228,97 @@ inline void Ukey2ServerInit::set_allocated_public_key(std::string* public_key) { // Ukey2ClientFinished // optional bytes public_key = 1; -inline bool Ukey2ClientFinished::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; +inline bool Ukey2ClientFinished::has_public_key() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); return value; } -inline bool Ukey2ClientFinished::has_public_key() const { - return _internal_has_public_key(); -} inline void Ukey2ClientFinished::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Ukey2ClientFinished::public_key() const { +inline const ::std::string& Ukey2ClientFinished::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientFinished.public_key) return _internal_public_key(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientFinished::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Ukey2ClientFinished::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientFinished.public_key) } -inline std::string* Ukey2ClientFinished::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientFinished.public_key) return _s; } -inline const std::string& Ukey2ClientFinished::_internal_public_key() const { - return public_key_.Get(); +inline const ::std::string& Ukey2ClientFinished::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); } -inline void Ukey2ClientFinished::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Ukey2ClientFinished::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.Set(value, GetArena()); } -inline std::string* Ukey2ClientFinished::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000001u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* Ukey2ClientFinished::release_public_key() { +inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientFinished::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientFinished.public_key) - if (!_internal_has_public_key()) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Ukey2ClientFinished::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Ukey2ClientFinished::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientFinished.public_key) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::securegcm::Ukey2Message_Type> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::Ukey2Alert_AlertType> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::Ukey2HandshakeCipher> : ::std::true_type {}; +namespace google { +namespace protobuf { -PROTOBUF_NAMESPACE_CLOSE +template <> +struct is_proto_enum<::securegcm::Ukey2Message_Type> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Ukey2Alert_AlertType> : std::true_type {}; +template <> +struct is_proto_enum<::securegcm::Ukey2HandshakeCipher> : std::true_type {}; + +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // src_2fmain_2fproto_2fukey_2eproto_2epb_2eh